@powerlines/engine 0.44.11 → 0.45.0

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 (40) hide show
  1. package/dist/_internal/worker.cjs +141 -106
  2. package/dist/_internal/worker.d.cts +16 -8
  3. package/dist/_internal/worker.d.cts.map +1 -1
  4. package/dist/_internal/worker.d.mts +16 -8
  5. package/dist/_internal/worker.d.mts.map +1 -1
  6. package/dist/_internal/worker.mjs +142 -107
  7. package/dist/_internal/worker.mjs.map +1 -1
  8. package/dist/api.cjs +60 -46
  9. package/dist/api.d.cts +18 -13
  10. package/dist/api.d.cts.map +1 -1
  11. package/dist/api.d.mts +18 -13
  12. package/dist/api.d.mts.map +1 -1
  13. package/dist/api.mjs +60 -46
  14. package/dist/api.mjs.map +1 -1
  15. package/dist/{base-context-C6yzgs6K.mjs → base-context-BSAC5sO9.mjs} +21 -15
  16. package/dist/base-context-BSAC5sO9.mjs.map +1 -0
  17. package/dist/{base-context-trNQZNsX.cjs → base-context-Byizvf4F.cjs} +20 -14
  18. package/dist/context/index.cjs +3 -3
  19. package/dist/context/index.d.cts +13 -8
  20. package/dist/context/index.d.cts.map +1 -1
  21. package/dist/context/index.d.mts +13 -8
  22. package/dist/context/index.d.mts.map +1 -1
  23. package/dist/context/index.mjs +3 -3
  24. package/dist/{engine-context-D1_U6xVC.cjs → engine-context-CI_0NWIk.cjs} +5 -3
  25. package/dist/{engine-context-C-11i43N.mjs → engine-context-_RMFwG4J.mjs} +6 -4
  26. package/dist/engine-context-_RMFwG4J.mjs.map +1 -0
  27. package/dist/{execution-context-C-M-Mxse.cjs → execution-context-BFCOc0mH.cjs} +61 -48
  28. package/dist/{execution-context-D9Enw3J5.mjs → execution-context-Cr_VUBrP.mjs} +63 -50
  29. package/dist/execution-context-Cr_VUBrP.mjs.map +1 -0
  30. package/dist/index.cjs +30 -20
  31. package/dist/index.d.cts +9 -8
  32. package/dist/index.d.cts.map +1 -1
  33. package/dist/index.d.mts +9 -8
  34. package/dist/index.d.mts.map +1 -1
  35. package/dist/index.mjs +30 -20
  36. package/dist/index.mjs.map +1 -1
  37. package/package.json +3 -3
  38. package/dist/base-context-C6yzgs6K.mjs.map +0 -1
  39. package/dist/engine-context-C-11i43N.mjs.map +0 -1
  40. package/dist/execution-context-D9Enw3J5.mjs.map +0 -1
@@ -64,7 +64,11 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
64
64
  /**
65
65
  * The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context
66
66
  */
67
- inputOptions = {};
67
+ initialOptions = {};
68
+ /**
69
+ * The initial configuration provided when initializing the context, which may be used during the setup process to ensure that the configuration is properly merged and applied to the context. 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.
70
+ */
71
+ initialConfig = {};
68
72
  /**
69
73
  * The parsed configuration file for the project
70
74
  */
@@ -104,7 +108,7 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
104
108
  */
105
109
  async clone() {
106
110
  const clone = new PowerlinesBaseContext();
107
- await clone.init(this.options);
111
+ await clone.init(this.options, this.initialConfig);
108
112
  return clone;
109
113
  }
110
114
  /**
@@ -208,9 +212,9 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
208
212
  * @returns A promise that resolves to the workspace configuration object, or undefined if no configuration file is found.
209
213
  */
210
214
  async getWorkspaceConfig() {
211
- return tryGetWorkspaceConfig(false, this.options || this.inputOptions ? {
212
- cwd: this.options?.root || this.inputOptions?.root ? appendPath(this.options?.root || this.inputOptions?.root || ".", this.options?.cwd || this.inputOptions?.cwd) : void 0,
213
- workspaceRoot: this.options?.cwd || this.inputOptions?.cwd
215
+ return tryGetWorkspaceConfig(false, this.options || this.initialOptions ? {
216
+ cwd: this.options?.root || this.initialOptions?.root ? appendPath(this.options?.root || this.initialOptions?.root || ".", this.options?.cwd || this.initialOptions?.cwd) : void 0,
217
+ workspaceRoot: this.options?.cwd || this.initialOptions?.cwd
214
218
  } : void 0);
215
219
  }
216
220
  /**
@@ -229,7 +233,7 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
229
233
  */
230
234
  async getDefaultLogLevel() {
231
235
  const workspaceConfig = await this.getWorkspaceConfig();
232
- return resolveLogLevel(workspaceConfig?.logLevel ? workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" ? "info" : workspaceConfig.logLevel === "all" ? "debug" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel : void 0, this.options?.mode || this.inputOptions?.mode || workspaceConfig?.mode || await this.getDefaultMode());
236
+ return resolveLogLevel(workspaceConfig?.logLevel ? workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" ? "info" : workspaceConfig.logLevel === "all" ? "debug" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel : void 0, this.options?.mode || this.initialOptions?.mode || workspaceConfig?.mode || await this.getDefaultMode());
233
237
  }
234
238
  /**
235
239
  * Initialize the context with the provided configuration options
@@ -238,9 +242,11 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
238
242
  * 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.
239
243
  *
240
244
  * @param options - The configuration options to initialize the context with
245
+ * @param initialConfig - The initial configuration to initialize the context with
241
246
  */
242
- async init(options) {
243
- this.inputOptions = { ...options };
247
+ async init(options, initialConfig) {
248
+ this.initialOptions = { ...options };
249
+ this.initialConfig = { ...initialConfig };
244
250
  if (!this.powerlinesPath) {
245
251
  const powerlinesPath = await resolvePackage("powerlines");
246
252
  if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
@@ -249,14 +255,14 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
249
255
  const cwd = options.cwd || this.options?.cwd || process.cwd();
250
256
  const root = replacePath((options.root || this.options?.root) && (options.root || this.options.root).replace(/^\.\/?/, "") && !isEqual(options.root || this.options.root, cwd) ? options.root || this.options.root : ".", cwd);
251
257
  this.options = defu({
252
- name: options.name,
258
+ name: options.name || this.initialConfig.name,
253
259
  root,
254
260
  cwd,
255
- mode: options.mode,
256
- logLevel: options.logLevel,
257
- framework: options.framework,
258
- organization: options.organization,
259
- configFile: options.configFile
261
+ mode: options.mode || this.initialConfig.mode,
262
+ logLevel: options.logLevel || this.initialConfig.logLevel,
263
+ framework: options.framework || this.initialConfig.framework,
264
+ organization: options.organization || this.initialConfig.organization,
265
+ configFile: options.configFile || this.initialConfig.configFile
260
266
  }, this.options ?? {}, {
261
267
  mode: await this.getDefaultMode(),
262
268
  logLevel: await this.getDefaultLogLevel()
@@ -298,4 +304,4 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
298
304
 
299
305
  //#endregion
300
306
  export { PowerlinesBaseContext as t };
301
- //# sourceMappingURL=base-context-C6yzgs6K.mjs.map
307
+ //# sourceMappingURL=base-context-BSAC5sO9.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-context-BSAC5sO9.mjs","names":["joinPaths","#timestamp","createLogger"],"sources":["../src/_internal/helpers/resolver.ts","../src/context/base-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 { ResolvedConfig, Resolver } from \"@powerlines/core\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport { JitiOptions, createJiti } from \"jiti\";\n\nexport type CreateResolverOptions = Omit<\n JitiOptions,\n \"fsCache\" | \"moduleCache\" | \"interopDefault\"\n> &\n Partial<Pick<ResolvedConfig, \"mode\" | \"skipCache\">> & {\n workspaceRoot: string;\n root: string;\n cacheDir: string;\n };\n\n/**\n * Create a Jiti resolver for the given workspace and project root.\n *\n * @param options - The options for creating the resolver.\n * @returns A Jiti instance configured for the specified workspace and project root.\n */\nfunction resolveOptions(options: CreateResolverOptions): JitiOptions {\n return defu(options, {\n interopDefault: true,\n fsCache:\n options.mode !== \"development\"\n ? joinPaths(options.cacheDir, \"jiti\")\n : false,\n moduleCache: options.mode !== \"development\"\n });\n}\n\n/**\n * Create a Jiti resolver for the given workspace and project root.\n *\n * @param options - The options for creating the resolver.\n * @returns A Jiti instance configured for the specified workspace and project root.\n */\nexport function createResolver(options: CreateResolverOptions): Resolver {\n const baseResolver = createJiti(\n joinPaths(options.workspaceRoot, options.root),\n resolveOptions(options)\n ) as Resolver;\n baseResolver.plugin = createJiti(\n joinPaths(options.workspaceRoot, options.root),\n resolveOptions(options)\n );\n\n return baseResolver;\n}\n","/* -------------------------------------------------------------------\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 BaseContext,\n EngineOptions,\n InitialConfig,\n LogFn,\n Logger,\n LoggerOptions,\n LogLevelResolvedConfig,\n LogMessage,\n Mode,\n ParsedUserConfig,\n Resolver,\n WorkspaceConfig\n} from \"@powerlines/core\";\nimport { loadUserConfigFile } from \"@powerlines/core/lib/config\";\nimport { resolveLogLevel } from \"@powerlines/core/plugin-utils\";\nimport {\n createLogger,\n extendLogger\n} from \"@powerlines/core/plugin-utils/logging\";\nimport { tryGetWorkspaceConfig } from \"@storm-software/config-tools/get-config\";\nimport {\n isDevelopment,\n isProduction,\n isTest\n} from \"@stryke/env/environment-checks\";\nimport { EnvPaths, getEnvPaths } from \"@stryke/env/get-env-paths\";\nimport { readJsonFile } from \"@stryke/fs\";\nimport { resolvePackage } from \"@stryke/fs/resolve\";\nimport { joinPaths } from \"@stryke/path\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { isEqual } from \"@stryke/path/is-equal\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport chalk from \"chalk\";\nimport { formatDistanceToNowStrict } from \"date-fns/formatDistanceToNowStrict\";\nimport defu from \"defu\";\nimport { existsSync } from \"node:fs\";\nimport { UserConfig } from \"tsdown/config\";\nimport { createResolver } from \"../_internal/helpers/resolver\";\n\nexport class PowerlinesBaseContext implements BaseContext {\n #timestamp: number = Date.now();\n\n /**\n * The path to the Powerlines package\n */\n public powerlinesPath!: string;\n\n /**\n * The module resolver for the project\n */\n public resolver!: Resolver;\n\n /**\n * The options provided to the Powerlines process\n */\n public options!: EngineOptions;\n\n /**\n * The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context\n */\n public initialOptions: Partial<EngineOptions> = {};\n\n /**\n * The initial configuration provided when initializing the context, which may be used during the setup process to ensure that the configuration is properly merged and applied to the context. 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 initialConfig: InitialConfig<any> = {};\n\n /**\n * The parsed configuration file for the project\n */\n public configFile!: ParsedUserConfig;\n\n /**\n * The logger instance for the context, which can be used to create log messages with consistent formatting and metadata. This logger is extended by plugin contexts to include additional metadata such as the plugin name and category, which can be used to filter and format log messages in a more granular way.\n */\n public get logger(): Logger {\n return this.createLogger({});\n }\n\n /**\n * A timestamp representing when the context was initialized\n */\n public get timestamp(): number {\n return this.#timestamp;\n }\n\n public get logLevel(): LogLevelResolvedConfig {\n return resolveLogLevel(this.options.logLevel, this.options.mode);\n }\n\n /**\n * The environment paths for the project\n */\n public get envPaths(): EnvPaths {\n return getEnvPaths({\n orgId: this.options.organization,\n appId: this.options.framework || \"powerlines\",\n workspaceRoot: this.options.cwd\n });\n }\n\n /**\n * Creates a clone of the current context with the same configuration and workspace settings. This can be useful for running multiple builds in parallel or for creating isolated contexts for different parts of the build process.\n *\n * @remarks\n * The cloned context will have the same configuration and workspace settings as the original context, but will have a different build ID, release ID, and timestamp. The virtual file system and caches will also be separate between the original and cloned contexts.\n *\n * @returns A promise that resolves to the cloned context.\n */\n public async clone(): Promise<BaseContext> {\n const clone = new PowerlinesBaseContext();\n await clone.init(this.options, this.initialConfig);\n\n return clone;\n }\n\n /**\n * A logging function for fatal messages\n *\n * @param message - The message to log.\n */\n public fatal(message: string | LogMessage) {\n this.logger.error(message);\n }\n\n /**\n * A logging function for error messages\n *\n * @param message - The message to log.\n */\n public error(message: string | LogMessage) {\n this.logger.error(message);\n }\n\n /**\n * A logging function for warning messages\n *\n * @param message - The message to log.\n */\n public warn(message: string | LogMessage) {\n this.logger.warn(message);\n }\n\n /**\n * A logging function for informational messages\n *\n * @param message - The message to log.\n */\n public info(message: string | LogMessage) {\n this.logger.info(message);\n }\n\n /**\n * A logging function for debug messages\n *\n * @param message - The message to log.\n */\n public debug(message: string | LogMessage) {\n this.logger.debug(message);\n }\n\n /**\n * A logging function for trace messages\n *\n * @param message - The message to log.\n */\n public trace(message: string | LogMessage) {\n this.logger.trace(message);\n }\n\n /**\n * A function to create a timer for measuring the duration of asynchronous operations\n *\n * @example\n * ```ts\n * const stopTimer = context.timer(\"Your Async Operation\");\n * await performAsyncOperation();\n * stopTimer(); // \"Your Async Operation completed in 123.45 milliseconds\"\n * ```\n *\n * @param name - The name of the timer.\n * @returns A function that, when called, stops the timer and logs the duration.\n */\n public timer(name: string): () => void {\n const startDate = Date.now();\n const startDuration = performance.now();\n\n return () => {\n const duration = performance.now() - startDuration;\n this.logger.info({\n meta: {\n category: \"performance\"\n },\n message: `${chalk.bold.cyanBright(name)} completed in ${chalk.bold.cyanBright(\n duration < 1000\n ? `${duration.toFixed(2)} milliseconds`\n : formatDistanceToNowStrict(startDate)\n )}`\n });\n };\n }\n\n /**\n * Create a new logger instance\n *\n * @param options - The configuration options to use for the logger instance, which can be used to customize the appearance and behavior of the log messages generated by the logger. This is typically the name of the plugin or module that is creating the logger instance.\n * @param logFn - The custom logging function to use for logging messages, which can be used to override the default logging behavior of the original logger.\n * @returns A logger client instance that can be used to generate log messages with consistent formatting and metadata.\n */\n public createLogger(options: LoggerOptions, logFn?: LogFn): Logger {\n return createLogger(\n this.options.name || this.options.root,\n { ...this.configFile.config, ...this.options, ...options },\n logFn\n );\n }\n\n /**\n * Extend the base logger with additional configuration options\n *\n * @param options - The configuration options to extend the base logger with, which can be used to add additional metadata or customize the appearance of log messages generated by the logger. This is typically the name of the plugin or module that is creating the logger instance, as well as any additional metadata such as the plugin category or environment.\n * @returns A new logger client instance that extends the base logger with the provided configuration options.\n */\n public extendLogger(options: LoggerOptions): Logger {\n return extendLogger(this.logger, options);\n }\n\n /**\n * Retrieve the workspace configuration for the current project, if it exists. This function will look for a configuration file in the project root and return its contents as a JavaScript object. If no configuration file is found, it will return undefined.\n *\n * @returns A promise that resolves to the workspace configuration object, or undefined if no configuration file is found.\n */\n protected async getWorkspaceConfig(): Promise<WorkspaceConfig | undefined> {\n return tryGetWorkspaceConfig(\n false,\n this.options || this.initialOptions\n ? {\n cwd:\n this.options?.root || this.initialOptions?.root\n ? appendPath(\n this.options?.root || this.initialOptions?.root || \".\",\n this.options?.cwd || this.initialOptions?.cwd\n )\n : undefined,\n workspaceRoot: this.options?.cwd || this.initialOptions?.cwd\n }\n : undefined\n );\n }\n\n /**\n * Determine the default mode for the current execution based on the environment and workspace configuration. This function will check the `NODE_ENV` environment variable to determine if the current environment is development, production, or test. If `NODE_ENV` is not set, it will look for a `mode` property in the workspace configuration file. If no mode is specified in the workspace configuration, it will default to \"production\".\n *\n * @returns A promise that resolves to the default mode for the current execution, which can be \"development\", \"production\", or \"test\".\n */\n protected async getDefaultMode(): Promise<Mode> {\n const workspaceConfig = await this.getWorkspaceConfig();\n\n return isProduction\n ? \"production\"\n : isDevelopment\n ? \"development\"\n : isTest\n ? \"test\"\n : workspaceConfig?.mode || \"production\";\n }\n\n /**\n * Determine the default log level for the current execution based on the environment and workspace configuration. This function will check the `logLevel` property in the workspace configuration file and resolve it to a `LogLevelResolvedConfig` value. If no log level is specified in the workspace configuration, it will default to \"info\" for development mode and \"warn\" for production mode.\n *\n * @returns A promise that resolves to the default log level for the current execution, which can be \"fatal\", \"error\", \"warn\", \"info\", \"debug\", or \"trace\".\n */\n protected async getDefaultLogLevel(): Promise<LogLevelResolvedConfig> {\n const workspaceConfig = await this.getWorkspaceConfig();\n\n return resolveLogLevel(\n workspaceConfig?.logLevel\n ? workspaceConfig.logLevel === \"success\" ||\n workspaceConfig.logLevel === \"performance\"\n ? \"info\"\n : workspaceConfig.logLevel === \"all\"\n ? \"debug\"\n : workspaceConfig.logLevel === \"fatal\"\n ? \"error\"\n : workspaceConfig.logLevel\n : undefined,\n this.options?.mode ||\n this.initialOptions?.mode ||\n workspaceConfig?.mode ||\n (await this.getDefaultMode())\n );\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 * @param options - The configuration options to initialize the context with\n * @param initialConfig - The initial configuration to initialize the context with\n */\n protected async init(options: EngineOptions, initialConfig: InitialConfig) {\n this.initialOptions = { ...options };\n this.initialConfig = { ...initialConfig };\n\n if (!this.powerlinesPath) {\n const powerlinesPath = await resolvePackage(\"powerlines\");\n if (!powerlinesPath) {\n throw new Error(\"Could not resolve `powerlines` package location.\");\n }\n this.powerlinesPath = powerlinesPath;\n }\n\n const cwd = options.cwd || this.options?.cwd || process.cwd();\n const root = replacePath(\n (options.root || this.options?.root) &&\n (options.root || this.options.root).replace(/^\\.\\/?/, \"\") &&\n !isEqual(options.root || this.options.root, cwd)\n ? options.root || this.options.root\n : \".\",\n cwd\n );\n\n this.options = defu(\n {\n name: options.name || this.initialConfig.name,\n root,\n cwd,\n mode: options.mode || this.initialConfig.mode,\n logLevel: options.logLevel || this.initialConfig.logLevel,\n framework: options.framework || this.initialConfig.framework,\n organization: options.organization || this.initialConfig.organization,\n configFile: options.configFile || this.initialConfig.configFile\n },\n this.options ?? {},\n {\n mode: await this.getDefaultMode(),\n logLevel: await this.getDefaultLogLevel()\n }\n );\n\n this.resolver = createResolver({\n workspaceRoot: cwd,\n root,\n cacheDir: this.envPaths.cache,\n mode: this.options.mode\n });\n\n this.configFile = await loadUserConfigFile(this.options, this.resolver);\n if (!this.options.name) {\n if (this.configFile.config) {\n if (\n isSetObject(this.configFile.config) &&\n isSetString((this.configFile.config as UserConfig).name)\n ) {\n this.options.name = (this.configFile.config as UserConfig).name;\n } else if (Array.isArray(this.configFile.config)) {\n for (const config of this.configFile.config) {\n if (\n isSetObject(config) &&\n isSetString((config as UserConfig).name)\n ) {\n this.options.name = (config as UserConfig).name;\n break;\n }\n }\n }\n }\n\n if (!this.options.name) {\n const packageJsonPath = joinPaths(\n appendPath(this.options.root, this.options.cwd),\n \"package.json\"\n );\n if (existsSync(packageJsonPath)) {\n const packageJson = await readJsonFile(packageJsonPath);\n this.options.name = packageJson.name;\n }\n\n if (!this.options.name) {\n const projectJsonPath = joinPaths(\n appendPath(this.options.root, this.options.cwd),\n \"project.json\"\n );\n if (existsSync(projectJsonPath)) {\n const projectJson = await readJsonFile(projectJsonPath);\n this.options.name = projectJson.name;\n }\n }\n }\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,SAAS,eAAe,SAA6C;AACnE,QAAO,KAAK,SAAS;EACnB,gBAAgB;EAChB,SACE,QAAQ,SAAS,gBACbA,YAAU,QAAQ,UAAU,OAAO,GACnC;EACN,aAAa,QAAQ,SAAS;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QAAQ,MAAM;AACtB,OAAI,KAAK,WAAW,QAClB;QACE,YAAY,KAAK,WAAW,OAAO,IACnC,YAAa,KAAK,WAAW,OAAsB,KAAK,CAExD,MAAK,QAAQ,OAAQ,KAAK,WAAW,OAAsB;aAClD,MAAM,QAAQ,KAAK,WAAW,OAAO,EAC9C;UAAK,MAAM,UAAU,KAAK,WAAW,OACnC,KACE,YAAY,OAAO,IACnB,YAAa,OAAsB,KAAK,EACxC;AACA,WAAK,QAAQ,OAAQ,OAAsB;AAC3C;;;;AAMR,OAAI,CAAC,KAAK,QAAQ,MAAM;IACtB,MAAM,kBAAkB,UACtB,WAAW,KAAK,QAAQ,MAAM,KAAK,QAAQ,IAAI,EAC/C,eACD;AACD,QAAI,WAAW,gBAAgB,EAAE;KAC/B,MAAM,cAAc,MAAM,aAAa,gBAAgB;AACvD,UAAK,QAAQ,OAAO,YAAY;;AAGlC,QAAI,CAAC,KAAK,QAAQ,MAAM;KACtB,MAAM,kBAAkB,UACtB,WAAW,KAAK,QAAQ,MAAM,KAAK,QAAQ,IAAI,EAC/C,eACD;AACD,SAAI,WAAW,gBAAgB,EAAE;MAC/B,MAAM,cAAc,MAAM,aAAa,gBAAgB;AACvD,WAAK,QAAQ,OAAO,YAAY"}
@@ -67,7 +67,11 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
67
67
  /**
68
68
  * The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context
69
69
  */
70
- inputOptions = {};
70
+ initialOptions = {};
71
+ /**
72
+ * The initial configuration provided when initializing the context, which may be used during the setup process to ensure that the configuration is properly merged and applied to the context. 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.
73
+ */
74
+ initialConfig = {};
71
75
  /**
72
76
  * The parsed configuration file for the project
73
77
  */
@@ -107,7 +111,7 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
107
111
  */
108
112
  async clone() {
109
113
  const clone = new PowerlinesBaseContext();
110
- await clone.init(this.options);
114
+ await clone.init(this.options, this.initialConfig);
111
115
  return clone;
112
116
  }
113
117
  /**
@@ -211,9 +215,9 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
211
215
  * @returns A promise that resolves to the workspace configuration object, or undefined if no configuration file is found.
212
216
  */
213
217
  async getWorkspaceConfig() {
214
- return (0, _storm_software_config_tools_get_config.tryGetWorkspaceConfig)(false, this.options || this.inputOptions ? {
215
- cwd: this.options?.root || this.inputOptions?.root ? (0, _stryke_path_append.appendPath)(this.options?.root || this.inputOptions?.root || ".", this.options?.cwd || this.inputOptions?.cwd) : void 0,
216
- workspaceRoot: this.options?.cwd || this.inputOptions?.cwd
218
+ return (0, _storm_software_config_tools_get_config.tryGetWorkspaceConfig)(false, this.options || this.initialOptions ? {
219
+ cwd: this.options?.root || this.initialOptions?.root ? (0, _stryke_path_append.appendPath)(this.options?.root || this.initialOptions?.root || ".", this.options?.cwd || this.initialOptions?.cwd) : void 0,
220
+ workspaceRoot: this.options?.cwd || this.initialOptions?.cwd
217
221
  } : void 0);
218
222
  }
219
223
  /**
@@ -232,7 +236,7 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
232
236
  */
233
237
  async getDefaultLogLevel() {
234
238
  const workspaceConfig = await this.getWorkspaceConfig();
235
- return (0, _powerlines_core_plugin_utils.resolveLogLevel)(workspaceConfig?.logLevel ? workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" ? "info" : workspaceConfig.logLevel === "all" ? "debug" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel : void 0, this.options?.mode || this.inputOptions?.mode || workspaceConfig?.mode || await this.getDefaultMode());
239
+ return (0, _powerlines_core_plugin_utils.resolveLogLevel)(workspaceConfig?.logLevel ? workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" ? "info" : workspaceConfig.logLevel === "all" ? "debug" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel : void 0, this.options?.mode || this.initialOptions?.mode || workspaceConfig?.mode || await this.getDefaultMode());
236
240
  }
237
241
  /**
238
242
  * Initialize the context with the provided configuration options
@@ -241,9 +245,11 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
241
245
  * 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.
242
246
  *
243
247
  * @param options - The configuration options to initialize the context with
248
+ * @param initialConfig - The initial configuration to initialize the context with
244
249
  */
245
- async init(options) {
246
- this.inputOptions = { ...options };
250
+ async init(options, initialConfig) {
251
+ this.initialOptions = { ...options };
252
+ this.initialConfig = { ...initialConfig };
247
253
  if (!this.powerlinesPath) {
248
254
  const powerlinesPath = await (0, _stryke_fs_resolve.resolvePackage)("powerlines");
249
255
  if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
@@ -252,14 +258,14 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
252
258
  const cwd = options.cwd || this.options?.cwd || process.cwd();
253
259
  const root = (0, _stryke_path_replace.replacePath)((options.root || this.options?.root) && (options.root || this.options.root).replace(/^\.\/?/, "") && !(0, _stryke_path_is_equal.isEqual)(options.root || this.options.root, cwd) ? options.root || this.options.root : ".", cwd);
254
260
  this.options = (0, defu.default)({
255
- name: options.name,
261
+ name: options.name || this.initialConfig.name,
256
262
  root,
257
263
  cwd,
258
- mode: options.mode,
259
- logLevel: options.logLevel,
260
- framework: options.framework,
261
- organization: options.organization,
262
- configFile: options.configFile
264
+ mode: options.mode || this.initialConfig.mode,
265
+ logLevel: options.logLevel || this.initialConfig.logLevel,
266
+ framework: options.framework || this.initialConfig.framework,
267
+ organization: options.organization || this.initialConfig.organization,
268
+ configFile: options.configFile || this.initialConfig.configFile
263
269
  }, this.options ?? {}, {
264
270
  mode: await this.getDefaultMode(),
265
271
  logLevel: await this.getDefaultLogLevel()
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_base_context = require('../base-context-trNQZNsX.cjs');
3
- const require_engine_context = require('../engine-context-D1_U6xVC.cjs');
4
- const require_execution_context = require('../execution-context-C-M-Mxse.cjs');
2
+ const require_base_context = require('../base-context-Byizvf4F.cjs');
3
+ const require_engine_context = require('../engine-context-CI_0NWIk.cjs');
4
+ const require_execution_context = require('../execution-context-BFCOc0mH.cjs');
5
5
 
6
6
  exports.PowerlinesBaseContext = require_base_context.PowerlinesBaseContext;
7
7
  exports.PowerlinesContext = require_execution_context.PowerlinesContext;
@@ -1,4 +1,4 @@
1
- import { BaseContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EngineOptions, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, ExecutionContext, ExecutionOptions, ExecutionState, FetchOptions, HooksList, InlineConfig, LogFn, LogLevelResolvedConfig, LogMessage, Logger, LoggerOptions, MetaInfo, Mode, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, Plugin, PluginContext, ResolveOptions, ResolveResult, ResolvedConfig, ResolvedEntryTypeDefinition, Resolver, SelectHookResult, SelectHooksOptions, TransformResult, VirtualFile, VirtualFileSystemInterface, WorkspaceConfig } from "@powerlines/core";
1
+ import { BaseContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EngineOptions, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, ExecutionContext, ExecutionOptions, ExecutionState, FetchOptions, HooksList, InitialConfig, InlineConfig, LogFn, LogLevelResolvedConfig, LogMessage, Logger, LoggerOptions, MetaInfo, Mode, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, Plugin, PluginContext, ResolveOptions, ResolveResult, ResolvedConfig, ResolvedEntryTypeDefinition, Resolver, SelectHookResult, SelectHooksOptions, TransformResult, VirtualFile, VirtualFileSystemInterface, WorkspaceConfig } from "@powerlines/core";
2
2
  import { EnvPaths } from "@stryke/env/get-env-paths";
3
3
  import { Unstable_ContextInternal, Unstable_EnvironmentContext, Unstable_PluginContext } from "@powerlines/core/types/_internal";
4
4
  import { PackageJson } from "@stryke/types/package-json";
@@ -25,7 +25,11 @@ declare class PowerlinesBaseContext implements BaseContext {
25
25
  /**
26
26
  * The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context
27
27
  */
28
- inputOptions: Partial<EngineOptions>;
28
+ initialOptions: Partial<EngineOptions>;
29
+ /**
30
+ * The initial configuration provided when initializing the context, which may be used during the setup process to ensure that the configuration is properly merged and applied to the context. 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.
31
+ */
32
+ initialConfig: InitialConfig<any>;
29
33
  /**
30
34
  * The parsed configuration file for the project
31
35
  */
@@ -142,8 +146,9 @@ declare class PowerlinesBaseContext implements BaseContext {
142
146
  * 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.
143
147
  *
144
148
  * @param options - The configuration options to initialize the context with
149
+ * @param initialConfig - The initial configuration to initialize the context with
145
150
  */
146
- protected init(options: EngineOptions): Promise<void>;
151
+ protected init(options: EngineOptions, initialConfig: InitialConfig): Promise<void>;
147
152
  }
148
153
  //#endregion
149
154
  //#region src/context/context.d.ts
@@ -155,7 +160,7 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
155
160
  * @param options - The options for resolving the context.
156
161
  * @returns A promise that resolves to the new context.
157
162
  */
158
- static fromOptions<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions): Promise<Context<TResolvedConfig>>;
163
+ static init<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions, initialConfig: InitialConfig<any>): Promise<Context<TResolvedConfig>>;
159
164
  /**
160
165
  * The options provided to the Powerlines process
161
166
  */
@@ -490,7 +495,7 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
490
495
  *
491
496
  * @param options - The configuration options to initialize the context with
492
497
  */
493
- protected init(options: ExecutionOptions): Promise<void>;
498
+ protected init(options: ExecutionOptions, initialConfig?: InitialConfig<any>): Promise<void>;
494
499
  /**
495
500
  * Initialize the context with the provided configuration options
496
501
  */
@@ -506,7 +511,7 @@ declare class PowerlinesEngineContext extends PowerlinesBaseContext implements E
506
511
  * @param options - The options to initialize the context with.
507
512
  * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.
508
513
  */
509
- static fromOptions(options: EngineOptions): Promise<PowerlinesEngineContext>;
514
+ static init(options: EngineOptions, initialConfig?: InitialConfig<any>): Promise<PowerlinesEngineContext>;
510
515
  /**
511
516
  * A list of all command executions that will be run during the lifecycle of the engine
512
517
  *
@@ -596,14 +601,14 @@ declare class PowerlinesExecutionContext<TResolvedConfig extends ResolvedConfig
596
601
  * @param options - The options for resolving the context.
597
602
  * @returns A promise that resolves to the new context.
598
603
  */
599
- static fromOptions<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions): Promise<ExecutionContext<TResolvedConfig>>;
604
+ static init<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions, initialConfig: InitialConfig<TResolvedConfig["userConfig"]>): Promise<ExecutionContext<TResolvedConfig>>;
600
605
  /**
601
606
  * Create a new Storm context from the workspace root and user config.
602
607
  *
603
608
  * @param options - The options for resolving the context.
604
609
  * @returns A promise that resolves to the new context.
605
610
  */
606
- static fromConfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions, config: InlineConfig): Promise<ExecutionContext<TResolvedConfig>>;
611
+ static inline<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions, initialConfig: InitialConfig<TResolvedConfig["userConfig"]>, inlineConfig: InlineConfig<TResolvedConfig["userConfig"]>): Promise<ExecutionContext<TResolvedConfig>>;
607
612
  /**
608
613
  * Internal context fields and methods
609
614
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","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":";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AAiB,cAAA,CAAA,CAEzC,QAAA,UACA,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,IAC7B,WAAA,EAAa,2BAAA,CAA4B,eAAA,IACxC,sBAAA,CAAuB,eAAA"}
1
+ {"version":3,"file":"index.d.cts","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;;;;;;;;EAjMjB,KAAA,CAAA,GAAS,OAAA,CAAQ,WAAA;EA3DvB;;;;;EAuEA,KAAA,CAAM,OAAA,WAAkB,UAAA;EA7DA;;;;;EAsExB,KAAA,CAAM,OAAA,WAAkB,UAAA;EAvDV;;;;;EAgEd,IAAA,CAAK,OAAA,WAAkB,UAAA;EA9BjB;;;;;EAuCN,IAAA,CAAK,OAAA,WAAkB,UAAA;EAlBvB;;;;;EA2BA,KAAA,CAAM,OAAA,WAAkB,UAAA;EATxB;;;;;EAkBA,KAAA,CAAM,OAAA,WAAkB,UAAA;EAAxB;;;;;;;;;;;;;EAiBA,KAAA,CAAM,IAAA;EAwCgC;;;;;;;EAdtC,YAAA,CAAa,OAAA,EAAS,aAAA,EAAe,KAAA,GAAQ,KAAA,GAAQ,MAAA;EA+DtB;;;;;;EAjD/B,Y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Q,gBAAA,CAAiB,eAAA;EJvEjD;;;;;;EIsGM,EAAA,CACX,WAAA,EAAa,yBAAA,GACZ,OAAA,CAAQ,2BAAA,CAA4B,eAAA;EJtFR;;;EIiHT,KAAA,CAAA,GAAK,OAAA;EJxGd;;;;;EI8HA,SAAA,CAAU,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,KAAiB,OAAA;EJnFjB;;;;;;EImGvC,cAAA,CAAe,IAAA,YAAa,OAAA,CAAA,kBAAA,CAAA,eAAA;EJ5EzB;;;;;;EImHH,kBAAA,CACX,IAAA,YACC,OAAA,CAAQ,kBAAA,CAAmB,eAAA;EJ7EQ;;;;;;;;EI6FzB,aAAA,CAAA,GAAiB,OAAA,CAAQ,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;;iBCrV3C,mBAAA,yBACU,cAAA,GAAiB,cAAA,CAAA,CAEzC,QAAA,UACA,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,IAC7B,WAAA,EAAa,2BAAA,CAA4B,eAAA,IACxC,sBAAA,CAAuB,eAAA"}
@@ -2,7 +2,7 @@ import { EnvPaths } from "@stryke/env/get-env-paths";
2
2
  import { FlatCache } from "flat-cache";
3
3
  import { ParseResult } from "oxc-parser";
4
4
  import { RequestInfo, Response } from "undici";
5
- import { BaseContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EngineOptions, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, ExecutionContext, ExecutionOptions, ExecutionState, FetchOptions, HooksList, InlineConfig, LogFn, LogLevelResolvedConfig, LogMessage, Logger, LoggerOptions, MetaInfo, Mode, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, Plugin, PluginContext, ResolveOptions, ResolveResult, ResolvedConfig, ResolvedEntryTypeDefinition, Resolver, SelectHookResult, SelectHooksOptions, TransformResult, VirtualFile, VirtualFileSystemInterface, WorkspaceConfig } from "@powerlines/core";
5
+ import { BaseContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EngineOptions, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, ExecutionContext, ExecutionOptions, ExecutionState, FetchOptions, HooksList, InitialConfig, InlineConfig, LogFn, LogLevelResolvedConfig, LogMessage, Logger, LoggerOptions, MetaInfo, Mode, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, Plugin, PluginContext, ResolveOptions, ResolveResult, ResolvedConfig, ResolvedEntryTypeDefinition, Resolver, SelectHookResult, SelectHooksOptions, TransformResult, VirtualFile, VirtualFileSystemInterface, WorkspaceConfig } from "@powerlines/core";
6
6
  import { Unstable_ContextInternal, Unstable_EnvironmentContext, Unstable_PluginContext } from "@powerlines/core/types/_internal";
7
7
  import { PackageJson } from "@stryke/types/package-json";
8
8
  import { Range } from "semver";
@@ -25,7 +25,11 @@ declare class PowerlinesBaseContext implements BaseContext {
25
25
  /**
26
26
  * The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context
27
27
  */
28
- inputOptions: Partial<EngineOptions>;
28
+ initialOptions: Partial<EngineOptions>;
29
+ /**
30
+ * The initial configuration provided when initializing the context, which may be used during the setup process to ensure that the configuration is properly merged and applied to the context. 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.
31
+ */
32
+ initialConfig: InitialConfig<any>;
29
33
  /**
30
34
  * The parsed configuration file for the project
31
35
  */
@@ -142,8 +146,9 @@ declare class PowerlinesBaseContext implements BaseContext {
142
146
  * 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.
143
147
  *
144
148
  * @param options - The configuration options to initialize the context with
149
+ * @param initialConfig - The initial configuration to initialize the context with
145
150
  */
146
- protected init(options: EngineOptions): Promise<void>;
151
+ protected init(options: EngineOptions, initialConfig: InitialConfig): Promise<void>;
147
152
  }
148
153
  //#endregion
149
154
  //#region src/context/context.d.ts
@@ -155,7 +160,7 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
155
160
  * @param options - The options for resolving the context.
156
161
  * @returns A promise that resolves to the new context.
157
162
  */
158
- static fromOptions<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions): Promise<Context<TResolvedConfig>>;
163
+ static init<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions, initialConfig: InitialConfig<any>): Promise<Context<TResolvedConfig>>;
159
164
  /**
160
165
  * The options provided to the Powerlines process
161
166
  */
@@ -490,7 +495,7 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
490
495
  *
491
496
  * @param options - The configuration options to initialize the context with
492
497
  */
493
- protected init(options: ExecutionOptions): Promise<void>;
498
+ protected init(options: ExecutionOptions, initialConfig?: InitialConfig<any>): Promise<void>;
494
499
  /**
495
500
  * Initialize the context with the provided configuration options
496
501
  */
@@ -506,7 +511,7 @@ declare class PowerlinesEngineContext extends PowerlinesBaseContext implements E
506
511
  * @param options - The options to initialize the context with.
507
512
  * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.
508
513
  */
509
- static fromOptions(options: EngineOptions): Promise<PowerlinesEngineContext>;
514
+ static init(options: EngineOptions, initialConfig?: InitialConfig<any>): Promise<PowerlinesEngineContext>;
510
515
  /**
511
516
  * A list of all command executions that will be run during the lifecycle of the engine
512
517
  *
@@ -596,14 +601,14 @@ declare class PowerlinesExecutionContext<TResolvedConfig extends ResolvedConfig
596
601
  * @param options - The options for resolving the context.
597
602
  * @returns A promise that resolves to the new context.
598
603
  */
599
- static fromOptions<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions): Promise<ExecutionContext<TResolvedConfig>>;
604
+ static init<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions, initialConfig: InitialConfig<TResolvedConfig["userConfig"]>): Promise<ExecutionContext<TResolvedConfig>>;
600
605
  /**
601
606
  * Create a new Storm context from the workspace root and user config.
602
607
  *
603
608
  * @param options - The options for resolving the context.
604
609
  * @returns A promise that resolves to the new context.
605
610
  */
606
- static fromConfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions, config: InlineConfig): Promise<ExecutionContext<TResolvedConfig>>;
611
+ static inline<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions, initialConfig: InitialConfig<TResolvedConfig["userConfig"]>, inlineConfig: InlineConfig<TResolvedConfig["userConfig"]>): Promise<ExecutionContext<TResolvedConfig>>;
607
612
  /**
608
613
  * Internal context fields and methods
609
614
  *
@@ -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":";;;;;;;;;;cA2Da,qBAAA,YAAiC,WAAA;EAAA;;;;EAMrC,cAAA;;;AANT;EAWS,QAAA,EAAW,QAAA;;;;EAKX,OAAA,EAAU,aAAA;EAKI;;;EAAd,YAAA,EAAc,OAAA,CAAQ,aAAA;EA4BN;;;EAvBhB,UAAA,EAAa,gBAAA;EA4DW;;;EAAA,IAvDpB,MAAA,CAAA,GAAU,MAAA;EA2FU;;;EAAA,IApFpB,SAAA,CAAA;EAAA,IAIA,QAAA,CAAA,GAAY,sBAAA;EAyIsB;;;EAAA,IAlIlC,QAAA,CAAA,GAAY,QAAA;EAkKW;;;;;;;;EAlJrB,KAAA,CAAA,GAAS,OAAA,CAAQ,WAAA;;;;;;EAYvB,KAAA,CAAM,OAAA,WAAkB,UAAA;EAxDxB;;;;;EAiEA,KAAA,CAAM,OAAA,WAAkB,UAAA;EAvDV;;;;;EAgEd,IAAA,CAAK,OAAA,WAAkB,UAAA;EA9BjB;;;;;EAuCN,IAAA,CAAK,OAAA,WAAkB,UAAA;EAlBvB;;;;;EA2BA,KAAA,CAAM,OAAA,WAAkB,UAAA;EATxB;;;;;EAkBA,KAAA,CAAM,OAAA,WAAkB,UAAA;EAAxB;;;;;;;;;;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WAAA,EAAa,yBAAA,GACZ,OAAA,CAAQ,2BAAA,CAA4B,eAAA;EJ1E1B;;;EIqGS,KAAA,CAAA,GAAK,OAAA;EJ1DE;;;;;EIgFhB,SAAA,CAAU,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,KAAiB,OAAA;EJlExC;;;;;;EIkFhB,cAAA,CAAe,IAAA,YAAa,OAAA,CAAA,kBAAA,CAAA,eAAA;EJlDP;;;;;;EIyFrB,kBAAA,CACX,IAAA,YACC,OAAA,CAAQ,kBAAA,CAAmB,eAAA;EJ7CT;;;;;;;ACzKvB;EGsOe,aAAA,CAAA,GAAiB,OAAA,CAAQ,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;;iBC5U3C,mBAAA,yBACU,cAAA,GAAiB,cAAA,CAAA,CAEzC,QAAA,UACA,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,IAC7B,WAAA,EAAa,2BAAA,CAA4B,eAAA,IACxC,sBAAA,CAAuB,eAAA"}
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;;;;;;;;EAjMjB,KAAA,CAAA,GAAS,OAAA,C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owerlinesEngineContext } from "../engine-context-C-11i43N.mjs";
3
- import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-D9Enw3J5.mjs";
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-Cr_VUBrP.mjs";
4
4
 
5
5
  export { PowerlinesBaseContext, PowerlinesContext, PowerlinesEngineContext, PowerlinesEnvironmentContext, PowerlinesExecutionContext, createPluginContext };
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-C0xms8kb.cjs');
2
- const require_base_context = require('./base-context-trNQZNsX.cjs');
2
+ const require_base_context = require('./base-context-Byizvf4F.cjs');
3
3
  let _stryke_unique_id_uuid = require("@stryke/unique-id/uuid");
4
4
 
5
5
  //#region src/context/engine-context.ts
@@ -11,9 +11,9 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends require_base
11
11
  * @param options - The options to initialize the context with.
12
12
  * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.
13
13
  */
14
- static async fromOptions(options) {
14
+ static async init(options, initialConfig = {}) {
15
15
  const context = new PowerlinesEngineContext();
16
- await context.init(options);
16
+ await context.init(options, initialConfig);
17
17
  if (!context.configFile?.config) {
18
18
  context.fatal("No configuration file found. Please ensure you have a valid configuration file in your project.");
19
19
  throw new Error("No configuration file found");
@@ -23,6 +23,7 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends require_base
23
23
  return {
24
24
  executionId,
25
25
  options: {
26
+ cwd: process.cwd(),
26
27
  ...context.options,
27
28
  executionId,
28
29
  executionIndex
@@ -39,6 +40,7 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends require_base
39
40
  context.#executions = [{
40
41
  executionId,
41
42
  options: {
43
+ cwd: process.cwd(),
42
44
  ...context.options,
43
45
  executionId,
44
46
  executionIndex: 0
@@ -1,4 +1,4 @@
1
- import { t as PowerlinesBaseContext } from "./base-context-C6yzgs6K.mjs";
1
+ import { t as PowerlinesBaseContext } from "./base-context-BSAC5sO9.mjs";
2
2
  import { uuid } from "@stryke/unique-id/uuid";
3
3
 
4
4
  //#region src/context/engine-context.ts
@@ -10,9 +10,9 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends PowerlinesBa
10
10
  * @param options - The options to initialize the context with.
11
11
  * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.
12
12
  */
13
- static async fromOptions(options) {
13
+ static async init(options, initialConfig = {}) {
14
14
  const context = new PowerlinesEngineContext();
15
- await context.init(options);
15
+ await context.init(options, initialConfig);
16
16
  if (!context.configFile?.config) {
17
17
  context.fatal("No configuration file found. Please ensure you have a valid configuration file in your project.");
18
18
  throw new Error("No configuration file found");
@@ -22,6 +22,7 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends PowerlinesBa
22
22
  return {
23
23
  executionId,
24
24
  options: {
25
+ cwd: process.cwd(),
25
26
  ...context.options,
26
27
  executionId,
27
28
  executionIndex
@@ -38,6 +39,7 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends PowerlinesBa
38
39
  context.#executions = [{
39
40
  executionId,
40
41
  options: {
42
+ cwd: process.cwd(),
41
43
  ...context.options,
42
44
  executionId,
43
45
  executionIndex: 0
@@ -63,4 +65,4 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends PowerlinesBa
63
65
 
64
66
  //#endregion
65
67
  export { PowerlinesEngineContext as t };
66
- //# sourceMappingURL=engine-context-C-11i43N.mjs.map
68
+ //# sourceMappingURL=engine-context-_RMFwG4J.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine-context-_RMFwG4J.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 InitialConfig\n} from \"@powerlines/core\";\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 init(\n options: EngineOptions,\n initialConfig: InitialConfig<any> = {}\n ): Promise<PowerlinesEngineContext> {\n const context = new PowerlinesEngineContext();\n await context.init(options, initialConfig);\n\n if (!context.configFile?.config) {\n context.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 if (Array.isArray(context.configFile.config)) {\n context.#executions = await Promise.all(\n context.configFile.config.map(async (_, executionIndex) => {\n const executionId = uuid();\n\n return {\n executionId,\n options: {\n cwd: process.cwd(),\n ...context.options,\n executionId,\n executionIndex\n },\n active: {\n command: null,\n hook: null,\n plugin: null\n }\n };\n })\n );\n } else {\n const executionId = uuid();\n context.#executions = [\n {\n executionId,\n options: {\n cwd: process.cwd(),\n ...context.options,\n executionId,\n executionIndex: 0\n },\n active: {\n command: null,\n hook: null,\n plugin: null\n }\n }\n ];\n }\n\n return context;\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":";;;;AA2BA,IAAa,0BAAb,MAAa,gCACH,sBAEV;CACE,cAAgC,EAAE;;;;;;;CAQlC,aAAoB,KAClB,SACA,gBAAoC,EAAE,EACJ;EAClC,MAAM,UAAU,IAAI,yBAAyB;AAC7C,QAAM,QAAQ,KAAK,SAAS,cAAc;AAE1C,MAAI,CAAC,QAAQ,YAAY,QAAQ;AAC/B,WAAQ,MACN,kGACD;AACD,SAAM,IAAI,MAAM,8BAA8B;;AAGhD,MAAI,MAAM,QAAQ,QAAQ,WAAW,OAAO,CAC1C,UAAQA,aAAc,MAAM,QAAQ,IAClC,QAAQ,WAAW,OAAO,IAAI,OAAO,GAAG,mBAAmB;GACzD,MAAM,cAAc,MAAM;AAE1B,UAAO;IACL;IACA,SAAS;KACP,KAAK,QAAQ,KAAK;KAClB,GAAG,QAAQ;KACX;KACA;KACD;IACD,QAAQ;KACN,SAAS;KACT,MAAM;KACN,QAAQ;KACT;IACF;IACD,CACH;OACI;GACL,MAAM,cAAc,MAAM;AAC1B,YAAQA,aAAc,CACpB;IACE;IACA,SAAS;KACP,KAAK,QAAQ,KAAK;KAClB,GAAG,QAAQ;KACX;KACA,gBAAgB;KACjB;IACD,QAAQ;KACN,SAAS;KACT,MAAM;KACN,QAAQ;KACT;IACF,CACF;;AAGH,SAAO;;;;;;;CAQT,IAAW,aAA+B;AACxC,SAAO,MAAKA"}