@powerlines/engine 0.44.0 → 0.44.2

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 (44) hide show
  1. package/dist/_internal/worker.cjs +186 -169
  2. package/dist/_internal/worker.d.cts.map +1 -1
  3. package/dist/_internal/worker.d.mts.map +1 -1
  4. package/dist/_internal/worker.mjs +187 -170
  5. package/dist/_internal/worker.mjs.map +1 -1
  6. package/dist/api.cjs +7 -7
  7. package/dist/api.mjs +5 -5
  8. package/dist/api.mjs.map +1 -1
  9. package/dist/{base-context-5_AZZYFu.cjs → base-context-CAA1druQ.cjs} +62 -33
  10. package/dist/{base-context-D_ZidDDm.mjs → base-context-fOM4ZWUo.mjs} +67 -38
  11. package/dist/base-context-fOM4ZWUo.mjs.map +1 -0
  12. package/dist/context/index.cjs +3 -3
  13. package/dist/context/index.d.cts +38 -52
  14. package/dist/context/index.d.cts.map +1 -1
  15. package/dist/context/index.d.mts +38 -52
  16. package/dist/context/index.d.mts.map +1 -1
  17. package/dist/context/index.mjs +3 -3
  18. package/dist/{engine-context-PQ3BgcgR.mjs → engine-context-BWGxMU_n.mjs} +2 -2
  19. package/dist/{engine-context-PQ3BgcgR.mjs.map → engine-context-BWGxMU_n.mjs.map} +1 -1
  20. package/dist/{engine-context-w4fts28j.cjs → engine-context-CUPubmrM.cjs} +1 -1
  21. package/dist/{execution-context-0GmpbWbs.cjs → execution-context-BoJhCK0d.cjs} +125 -117
  22. package/dist/{execution-context-zedP0h4Z.mjs → execution-context-CFJst4Fz.mjs} +127 -119
  23. package/dist/execution-context-CFJst4Fz.mjs.map +1 -0
  24. package/dist/index.cjs +114 -53
  25. package/dist/index.d.cts +8 -0
  26. package/dist/index.d.cts.map +1 -1
  27. package/dist/index.d.mts +8 -0
  28. package/dist/index.d.mts.map +1 -1
  29. package/dist/index.mjs +114 -53
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/storage/index.cjs +1 -1
  32. package/dist/storage/index.mjs +1 -1
  33. package/dist/{tsconfig-Cstsoprg.mjs → tsconfig-CI6bla4E.mjs} +2 -2
  34. package/dist/{tsconfig-Cstsoprg.mjs.map → tsconfig-CI6bla4E.mjs.map} +1 -1
  35. package/dist/{tsconfig-DeyWQC2N.cjs → tsconfig-QMSxSwBD.cjs} +1 -1
  36. package/dist/typescript/index.cjs +1 -1
  37. package/dist/typescript/index.mjs +1 -1
  38. package/dist/{virtual-CUgOdyIa.mjs → virtual-CYGZHTDd.mjs} +5 -5
  39. package/dist/virtual-CYGZHTDd.mjs.map +1 -0
  40. package/dist/{virtual-1hYa9zCy.cjs → virtual-Ct3ZqPeN.cjs} +2 -2
  41. package/package.json +3 -3
  42. package/dist/base-context-D_ZidDDm.mjs.map +0 -1
  43. package/dist/execution-context-zedP0h4Z.mjs.map +0 -1
  44. package/dist/virtual-CUgOdyIa.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { BaseContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EngineOptions, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, ExecutionContext, ExecutionOptions, ExecutionState, FetchOptions, HooksList, InlineConfig, LogFn, LogFnConfig, LogLevelResolvedConfig, MetaInfo, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, Plugin, PluginContext, PowerlinesMessage, ResolveOptions, ResolveResult, ResolvedConfig, ResolvedEngineOptions, ResolvedEntryTypeDefinition, ResolvedExecutionOptions, Resolver, SelectHookResult, SelectHooksOptions, TransformResult, VirtualFile, VirtualFileSystemInterface } from "@powerlines/core";
1
+ import { BaseContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EngineOptions, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, ExecutionContext, ExecutionOptions, ExecutionState, FetchOptions, HooksList, InlineConfig, LogLevelResolvedConfig, LogMessage, Logger, LoggerMessage, LoggerOptions, MetaInfo, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, Plugin, PluginContext, ResolveOptions, ResolveResult, ResolvedConfig, ResolvedEngineOptions, ResolvedEntryTypeDefinition, ResolvedExecutionOptions, Resolver, SelectHookResult, SelectHooksOptions, TransformResult, VirtualFile, VirtualFileSystemInterface } 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";
@@ -30,15 +30,15 @@ declare class PowerlinesBaseContext implements BaseContext {
30
30
  * The parsed configuration file for the project
31
31
  */
32
32
  configFile: ParsedUserConfig;
33
+ /**
34
+ * 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.
35
+ */
36
+ get logger(): Logger;
33
37
  /**
34
38
  * A timestamp representing when the context was initialized
35
39
  */
36
40
  get timestamp(): number;
37
41
  get logLevel(): LogLevelResolvedConfig;
38
- /**
39
- * The logger function
40
- */
41
- get log(): LogFn;
42
42
  /**
43
43
  * The environment paths for the project
44
44
  */
@@ -57,37 +57,37 @@ declare class PowerlinesBaseContext implements BaseContext {
57
57
  *
58
58
  * @param message - The message to log.
59
59
  */
60
- fatal(message: string | PowerlinesMessage): void;
60
+ fatal(message: string | LogMessage): void;
61
61
  /**
62
62
  * A logging function for error messages
63
63
  *
64
64
  * @param message - The message to log.
65
65
  */
66
- error(message: string | PowerlinesMessage): void;
66
+ error(message: string | LogMessage): void;
67
67
  /**
68
68
  * A logging function for warning messages
69
69
  *
70
70
  * @param message - The message to log.
71
71
  */
72
- warn(message: string | PowerlinesMessage): void;
72
+ warn(message: string | LogMessage): void;
73
73
  /**
74
74
  * A logging function for informational messages
75
75
  *
76
76
  * @param message - The message to log.
77
77
  */
78
- info(message: string | PowerlinesMessage): void;
78
+ info(message: string | LogMessage): void;
79
79
  /**
80
80
  * A logging function for debug messages
81
81
  *
82
82
  * @param message - The message to log.
83
83
  */
84
- debug(message: string | PowerlinesMessage): void;
84
+ debug(message: string | LogMessage): void;
85
85
  /**
86
86
  * A logging function for trace messages
87
87
  *
88
88
  * @param message - The message to log.
89
89
  */
90
- trace(message: string | PowerlinesMessage): void;
90
+ trace(message: string | LogMessage): void;
91
91
  /**
92
92
  * A function to create a timer for measuring the duration of asynchronous operations
93
93
  *
@@ -105,21 +105,17 @@ declare class PowerlinesBaseContext implements BaseContext {
105
105
  /**
106
106
  * Create a new logger instance
107
107
  *
108
- * @param config - 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.
109
- * @returns A logger function
108
+ * @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.
109
+ * @returns A logger client instance that can be used to generate log messages with consistent formatting and metadata.
110
110
  */
111
- createLog(config?: LogFnConfig): LogFn;
111
+ createLogger(options: LoggerOptions, callback?: (message: string | LoggerMessage) => void): Logger;
112
112
  /**
113
- * Extend the current logger instance with a new source
113
+ * Extend the base logger with additional configuration options
114
114
  *
115
- * @param config - The overlay metadata to use for the badge in the log output, which can be used to customize the appearance and behavior of the log messages generated by the extended logger. This typically includes the name of the plugin or module that is creating the logger instance, and can also include other metadata such as the command or environment.
116
- * @returns A new logger function that includes the badge in its output.
115
+ * @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.
116
+ * @returns A new logger client instance that extends the base logger with the provided configuration options.
117
117
  */
118
- extendLog(config: LogFnConfig): LogFn;
119
- /**
120
- * A logger function specific to this context
121
- */
122
- protected logger: Logger;
118
+ extendLogger(options: LoggerOptions): Logger;
123
119
  /**
124
120
  * Initialize the context with the provided configuration options
125
121
  *
@@ -262,6 +258,10 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
262
258
  * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
263
259
  */
264
260
  get alias(): Record<string, string>;
261
+ /**
262
+ * 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.
263
+ */
264
+ get logger(): Logger;
265
265
  /**
266
266
  * Gets the parser cache.
267
267
  */
@@ -280,20 +280,6 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
280
280
  * @param options - The options to use for creating the context, including the resolved configuration and workspace settings.
281
281
  */
282
282
  protected constructor(options: ResolvedExecutionOptions);
283
- /**
284
- * Create a new log function with the specified configuration, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
285
- *
286
- * @param config - Optional configuration for the log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
287
- * @returns A log function that can be used to log messages with the specified configuration.
288
- */
289
- createLog(config?: LogFnConfig): LogFn;
290
- /**
291
- * Extend the current log function instance with a new name
292
- *
293
- * @param config - The configuration for the extended log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the log function instance according to your needs.
294
- * @returns A log function
295
- */
296
- extendLog(config: LogFnConfig): LogFn;
297
283
  /**
298
284
  * 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.
299
285
  *
@@ -526,19 +512,19 @@ declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfi
526
512
  */
527
513
  get hooks(): Record<string, HooksList<PluginContext<TResolvedConfig>>>;
528
514
  /**
529
- * Create a new log function with the specified configuration, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
515
+ * Create a new logger instance
530
516
  *
531
- * @param config - Optional configuration for the log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
532
- * @returns A log function that can be used to log messages with the specified configuration.
517
+ * @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.
518
+ * @returns A logger client instance that can be used to generate log messages with consistent formatting and metadata.
533
519
  */
534
- createLog(config?: LogFnConfig): LogFn;
520
+ createLogger(options: LoggerOptions, callback?: (message: string | LoggerMessage) => void): Logger;
535
521
  /**
536
- * Extend the current log function instance with a new name
522
+ * Extend the base logger with additional configuration options
537
523
  *
538
- * @param config - The configuration for the extended log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the log function instance according to your needs.
539
- * @returns A log function
524
+ * @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.
525
+ * @returns A new logger client instance that extends the base logger with the provided configuration options.
540
526
  */
541
- extendLog(config: LogFnConfig): LogFn;
527
+ extendLogger(options: LoggerOptions): Logger;
542
528
  /**
543
529
  * 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.
544
530
  *
@@ -620,19 +606,19 @@ declare class PowerlinesExecutionContext<TResolvedConfig extends ResolvedConfig
620
606
  */
621
607
  protected constructor(options: ResolvedExecutionOptions);
622
608
  /**
623
- * Create a new log function with the specified configuration, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
609
+ * Create a new logger instance
624
610
  *
625
- * @param config - Optional configuration for the log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
626
- * @returns A log function that can be used to log messages with the specified configuration.
611
+ * @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.
612
+ * @returns A logger client instance that can be used to generate log messages with consistent formatting and metadata.
627
613
  */
628
- createLog(config?: LogFnConfig): LogFn;
614
+ createLogger(options: LoggerOptions, callback?: (message: string | LoggerMessage) => void): Logger;
629
615
  /**
630
- * Extend the current log function instance with a new name
616
+ * Extend the base logger with additional configuration options
631
617
  *
632
- * @param config - The configuration for the extended log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the log function instance according to your needs.
633
- * @returns A log function
618
+ * @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.
619
+ * @returns A new logger client instance that extends the base logger with the provided configuration options.
634
620
  */
635
- extendLog(config: LogFnConfig): LogFn;
621
+ extendLogger(options: LoggerOptions): Logger;
636
622
  /**
637
623
  * 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.
638
624
  *
@@ -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":";;;;;;;;;;cA2Ca,qBAAA,YAAiC,WAAA;EAAA;;;;EAMrC,cAAA;;;AANT;EAWS,QAAA,EAAW,QAAA;;;;EAKX,OAAA,EAAU,qBAAA;EAKI;;;EAAd,YAAA,EAAc,OAAA,CAAQ,aAAA;EA4BN;;;EAvBhB,UAAA,EAAa,gBAAA;EA+DW;;;EAAA,IA1DpB,SAAA,CAAA;EAAA,IAIA,QAAA,CAAA,GAAY,sBAAA;EAiJG;;;EAAA,IA1If,GAAA,CAAA,GAAO,KAAA;EA2JC;;;EAAA,IApJR,QAAA,CAAA,GAAY,QAAA;EAjDqB;;;;;;;;EAiE/B,KAAA,CAAA,GAAS,OAAA,CAAQ,WAAA;EAjDb;;;;;EA6DV,KAAA,CAAM,OAAA,WAAkB,iBAAA;EA9CpB;;;;;EA0DJ,K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;EJ7BhC;;;EIwDe,KAAA,CAAA,GAAK,OAAA;EJ9CpB;;;;;EIoEM,SAAA,CAAU,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,KAAiB,OAAA;EJnDrD;;;;;;EImEH,cAAA,CAAe,IAAA,YAAa,OAAA,CAAA,kBAAA,CAAA,eAAA;;;;AHnL3C;;;EG0Ne,kBAAA,CACX,IAAA,YACC,OAAA,CAAQ,kBAAA,CAAmB,eAAA;EH3NW;;;;;;;;EG2O5B,aAAA,CAAA,GAAiB,OAAA,CAAQ,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;;iBC3U3C,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.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":";;;;;;;;;;cAsDa,qBAAA,YAAiC,WAAA;EAAA;;;;EAQrC,cAAA;;;AART;EAaS,QAAA,EAAW,QAAA;;;;EAKX,OAAA,EAAU,qBAAA;EAKI;;;EAAd,YAAA,EAAc,OAAA,CAAQ,aAAA;EA4BN;;;EAvBhB,UAAA,EAAa,gBAAA;EA8DW;;;EAAA,IAzDpB,MAAA,CAAA,GAAU,MAAA;EAqGU;;;EAAA,IA9FpB,SAAA,CAAA;EAAA,IAIA,QAAA,CAAA,GAAY,sBAAA;EAuJsB;;;EAAA,IAhJlC,QAAA,CAAA,GAAY,QAAA;EAnDqB;;;;;;;;EAmE/B,KAAA,CAAA,GAAS,OAAA,CAAQ,WAAA;EAjDb;;;;;EA6DV,KAAA,CAAM,OAAA,WAAkB,UAAA;EA9CpB;;;;;EAyDJ,KAAA,CAAM,OAAA,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AAA,GAAK,OAAA;EJpDb;;;;;EI0ED,SAAA,CAAU,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,KAAiB,OAAA;EJ3DxB;;;;;;EI2EhC,cAAA,CAAe,IAAA,YAAa,OAAA,CAAA,kBAAA,CAAA,eAAA;EJ/DgB;;;;ACtH3D;;EG4Ne,kBAAA,CACX,IAAA,YACC,OAAA,CAAQ,kBAAA,CAAmB,eAAA;EH7NN;;;;;;;;EG6OX,aAAA,CAAA,GAAiB,OAAA,CAAQ,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;;iBCnV3C,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,8 +1,8 @@
1
- import { BaseContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EngineOptions, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, ExecutionContext, ExecutionOptions, ExecutionState, FetchOptions, HooksList, InlineConfig, LogFn, LogFnConfig, LogLevelResolvedConfig, MetaInfo, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, Plugin, PluginContext, PowerlinesMessage, ResolveOptions, ResolveResult, ResolvedConfig, ResolvedEngineOptions, ResolvedEntryTypeDefinition, ResolvedExecutionOptions, Resolver, SelectHookResult, SelectHooksOptions, TransformResult, VirtualFile, VirtualFileSystemInterface } from "@powerlines/core";
2
1
  import { EnvPaths } from "@stryke/env/get-env-paths";
3
2
  import { FlatCache } from "flat-cache";
4
3
  import { ParseResult } from "oxc-parser";
5
4
  import { RequestInfo, Response } from "undici";
5
+ import { BaseContext, Context, EmitEntryOptions, EmitOptions, EngineContext, EngineOptions, EnvironmentContext, EnvironmentContextPlugin, EnvironmentResolvedConfig, ExecutionContext, ExecutionOptions, ExecutionState, FetchOptions, HooksList, InlineConfig, LogLevelResolvedConfig, LogMessage, Logger, LoggerMessage, LoggerOptions, MetaInfo, ParseOptions, ParsedTypeScriptConfig, ParsedUserConfig, Plugin, PluginContext, ResolveOptions, ResolveResult, ResolvedConfig, ResolvedEngineOptions, ResolvedEntryTypeDefinition, ResolvedExecutionOptions, Resolver, SelectHookResult, SelectHooksOptions, TransformResult, VirtualFile, VirtualFileSystemInterface } 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";
@@ -30,15 +30,15 @@ declare class PowerlinesBaseContext implements BaseContext {
30
30
  * The parsed configuration file for the project
31
31
  */
32
32
  configFile: ParsedUserConfig;
33
+ /**
34
+ * 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.
35
+ */
36
+ get logger(): Logger;
33
37
  /**
34
38
  * A timestamp representing when the context was initialized
35
39
  */
36
40
  get timestamp(): number;
37
41
  get logLevel(): LogLevelResolvedConfig;
38
- /**
39
- * The logger function
40
- */
41
- get log(): LogFn;
42
42
  /**
43
43
  * The environment paths for the project
44
44
  */
@@ -57,37 +57,37 @@ declare class PowerlinesBaseContext implements BaseContext {
57
57
  *
58
58
  * @param message - The message to log.
59
59
  */
60
- fatal(message: string | PowerlinesMessage): void;
60
+ fatal(message: string | LogMessage): void;
61
61
  /**
62
62
  * A logging function for error messages
63
63
  *
64
64
  * @param message - The message to log.
65
65
  */
66
- error(message: string | PowerlinesMessage): void;
66
+ error(message: string | LogMessage): void;
67
67
  /**
68
68
  * A logging function for warning messages
69
69
  *
70
70
  * @param message - The message to log.
71
71
  */
72
- warn(message: string | PowerlinesMessage): void;
72
+ warn(message: string | LogMessage): void;
73
73
  /**
74
74
  * A logging function for informational messages
75
75
  *
76
76
  * @param message - The message to log.
77
77
  */
78
- info(message: string | PowerlinesMessage): void;
78
+ info(message: string | LogMessage): void;
79
79
  /**
80
80
  * A logging function for debug messages
81
81
  *
82
82
  * @param message - The message to log.
83
83
  */
84
- debug(message: string | PowerlinesMessage): void;
84
+ debug(message: string | LogMessage): void;
85
85
  /**
86
86
  * A logging function for trace messages
87
87
  *
88
88
  * @param message - The message to log.
89
89
  */
90
- trace(message: string | PowerlinesMessage): void;
90
+ trace(message: string | LogMessage): void;
91
91
  /**
92
92
  * A function to create a timer for measuring the duration of asynchronous operations
93
93
  *
@@ -105,21 +105,17 @@ declare class PowerlinesBaseContext implements BaseContext {
105
105
  /**
106
106
  * Create a new logger instance
107
107
  *
108
- * @param config - 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.
109
- * @returns A logger function
108
+ * @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.
109
+ * @returns A logger client instance that can be used to generate log messages with consistent formatting and metadata.
110
110
  */
111
- createLog(config?: LogFnConfig): LogFn;
111
+ createLogger(options: LoggerOptions, callback?: (message: string | LoggerMessage) => void): Logger;
112
112
  /**
113
- * Extend the current logger instance with a new source
113
+ * Extend the base logger with additional configuration options
114
114
  *
115
- * @param config - The overlay metadata to use for the badge in the log output, which can be used to customize the appearance and behavior of the log messages generated by the extended logger. This typically includes the name of the plugin or module that is creating the logger instance, and can also include other metadata such as the command or environment.
116
- * @returns A new logger function that includes the badge in its output.
115
+ * @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.
116
+ * @returns A new logger client instance that extends the base logger with the provided configuration options.
117
117
  */
118
- extendLog(config: LogFnConfig): LogFn;
119
- /**
120
- * A logger function specific to this context
121
- */
122
- protected logger: Logger;
118
+ extendLogger(options: LoggerOptions): Logger;
123
119
  /**
124
120
  * Initialize the context with the provided configuration options
125
121
  *
@@ -262,6 +258,10 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
262
258
  * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
263
259
  */
264
260
  get alias(): Record<string, string>;
261
+ /**
262
+ * 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.
263
+ */
264
+ get logger(): Logger;
265
265
  /**
266
266
  * Gets the parser cache.
267
267
  */
@@ -280,20 +280,6 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
280
280
  * @param options - The options to use for creating the context, including the resolved configuration and workspace settings.
281
281
  */
282
282
  protected constructor(options: ResolvedExecutionOptions);
283
- /**
284
- * Create a new log function with the specified configuration, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
285
- *
286
- * @param config - Optional configuration for the log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
287
- * @returns A log function that can be used to log messages with the specified configuration.
288
- */
289
- createLog(config?: LogFnConfig): LogFn;
290
- /**
291
- * Extend the current log function instance with a new name
292
- *
293
- * @param config - The configuration for the extended log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the log function instance according to your needs.
294
- * @returns A log function
295
- */
296
- extendLog(config: LogFnConfig): LogFn;
297
283
  /**
298
284
  * 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.
299
285
  *
@@ -526,19 +512,19 @@ declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfi
526
512
  */
527
513
  get hooks(): Record<string, HooksList<PluginContext<TResolvedConfig>>>;
528
514
  /**
529
- * Create a new log function with the specified configuration, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
515
+ * Create a new logger instance
530
516
  *
531
- * @param config - Optional configuration for the log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
532
- * @returns A log function that can be used to log messages with the specified configuration.
517
+ * @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.
518
+ * @returns A logger client instance that can be used to generate log messages with consistent formatting and metadata.
533
519
  */
534
- createLog(config?: LogFnConfig): LogFn;
520
+ createLogger(options: LoggerOptions, callback?: (message: string | LoggerMessage) => void): Logger;
535
521
  /**
536
- * Extend the current log function instance with a new name
522
+ * Extend the base logger with additional configuration options
537
523
  *
538
- * @param config - The configuration for the extended log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the log function instance according to your needs.
539
- * @returns A log function
524
+ * @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.
525
+ * @returns A new logger client instance that extends the base logger with the provided configuration options.
540
526
  */
541
- extendLog(config: LogFnConfig): LogFn;
527
+ extendLogger(options: LoggerOptions): Logger;
542
528
  /**
543
529
  * 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.
544
530
  *
@@ -620,19 +606,19 @@ declare class PowerlinesExecutionContext<TResolvedConfig extends ResolvedConfig
620
606
  */
621
607
  protected constructor(options: ResolvedExecutionOptions);
622
608
  /**
623
- * Create a new log function with the specified configuration, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
609
+ * Create a new logger instance
624
610
  *
625
- * @param config - Optional configuration for the log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the logger instance according to your needs.
626
- * @returns A log function that can be used to log messages with the specified configuration.
611
+ * @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.
612
+ * @returns A logger client instance that can be used to generate log messages with consistent formatting and metadata.
627
613
  */
628
- createLog(config?: LogFnConfig): LogFn;
614
+ createLogger(options: LoggerOptions, callback?: (message: string | LoggerMessage) => void): Logger;
629
615
  /**
630
- * Extend the current log function instance with a new name
616
+ * Extend the base logger with additional configuration options
631
617
  *
632
- * @param config - The configuration for the extended log function instance, which can include properties such as log level, colors, and other metadata to be included with each log message. This allows you to customize the behavior and appearance of the log function instance according to your needs.
633
- * @returns A log function
618
+ * @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.
619
+ * @returns A new logger client instance that extends the base logger with the provided configuration options.
634
620
  */
635
- extendLog(config: LogFnConfig): LogFn;
621
+ extendLogger(options: LoggerOptions): Logger;
636
622
  /**
637
623
  * 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.
638
624
  *
@@ -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":";;;;;;;;;;cA2Ca,qBAAA,YAAiC,WAAA;EAAA;;;;EAMrC,cAAA;;;AANT;EAWS,QAAA,EAAW,QAAA;;;;EAKX,OAAA,EAAU,qBAAA;EAKI;;;EAAd,YAAA,EAAc,OAAA,CAAQ,aAAA;EA4BN;;;EAvBhB,UAAA,EAAa,gBAAA;EA+DW;;;EAAA,IA1DpB,SAAA,CAAA;EAAA,IAIA,QAAA,CAAA,GAAY,sBAAA;EAiJG;;;EAAA,IA1If,GAAA,CAAA,GAAO,KAAA;EA2JC;;;EAAA,IApJR,QAAA,CAAA,GAAY,QAAA;EAjDqB;;;;;;;;EAiE/B,KAAA,CAAA,GAAS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AA;EJxDzB;;;;;;EIkFlB,EAAA,CACX,WAAA,EAAa,yBAAA,GACZ,OAAA,CAAQ,2BAAA,CAA4B,eAAA;EJ7BhC;;;EIwDe,KAAA,CAAA,GAAK,OAAA;EJ9CpB;;;;;EIoEM,SAAA,CAAU,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,KAAiB,OAAA;EJnDrD;;;;;;EImEH,cAAA,CAAe,IAAA,YAAa,OAAA,CAAA,kBAAA,CAAA,eAAA;;;;AHnL3C;;;EG0Ne,kBAAA,CACX,IAAA,YACC,OAAA,CAAQ,kBAAA,CAAmB,eAAA;EH3NW;;;;;;;;EG2O5B,aAAA,CAAA,GAAiB,OAAA,CAAQ,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;;iBC3U3C,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":";;;;;;;;;;cAsDa,qBAAA,YAAiC,WAAA;EAAA;;;;EAQrC,cAAA;;;AART;EAaS,QAAA,EAAW,QAAA;;;;EAKX,OAAA,EAAU,qBAAA;EAKI;;;EAAd,YAAA,EAAc,OAAA,CAAQ,aAAA;EA4BN;;;EAvBhB,UAAA,EAAa,gBAAA;EA8DW;;;EAAA,IAzDpB,MAAA,CAAA,GAAU,MAAA;EAqGU;;;EAAA,IA9FpB,SAAA,CAAA;EAAA,IAIA,QAAA,CAAA,GAAY,sBAAA;EAuJsB;;;EAAA,IAhJlC,QAAA,CAAA,GAAY,QAAA;EAnDqB;;;;;;;;EAmE/B,KAAA,CAAA,GAAS,OAAA,CAAQ,W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AAA,CACX,WAAA,EAAa,yBAAA,GACZ,OAAA,CAAQ,2BAAA,CAA4B,eAAA;EJ3BhC;;;EIsDe,KAAA,CAAA,GAAK,OAAA;EJpDb;;;;;EI0ED,SAAA,CAAU,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,KAAiB,OAAA;EJ3DxB;;;;;;EI2EhC,cAAA,CAAe,IAAA,YAAa,OAAA,CAAA,kBAAA,CAAA,eAAA;EJ/DgB;;;;ACtH3D;;EG4Ne,kBAAA,CACX,IAAA,YACC,OAAA,CAAQ,kBAAA,CAAmB,eAAA;EH7NN;;;;;;;;EG6OX,aAAA,CAAA,GAAiB,OAAA,CAAQ,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;;iBCnV3C,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,5 +1,5 @@
1
- import { t as PowerlinesBaseContext } from "../base-context-D_ZidDDm.mjs";
2
- import { t as PowerlinesEngineContext } from "../engine-context-PQ3BgcgR.mjs";
3
- import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-zedP0h4Z.mjs";
1
+ import { t as PowerlinesBaseContext } from "../base-context-fOM4ZWUo.mjs";
2
+ import { t as PowerlinesEngineContext } from "../engine-context-BWGxMU_n.mjs";
3
+ import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-CFJst4Fz.mjs";
4
4
 
5
5
  export { PowerlinesBaseContext, PowerlinesContext, PowerlinesEngineContext, PowerlinesEnvironmentContext, PowerlinesExecutionContext, createPluginContext };
@@ -1,4 +1,4 @@
1
- import { t as PowerlinesBaseContext } from "./base-context-D_ZidDDm.mjs";
1
+ import { t as PowerlinesBaseContext } from "./base-context-fOM4ZWUo.mjs";
2
2
  import { uuid } from "@stryke/unique-id/uuid";
3
3
 
4
4
  //#region src/context/engine-context.ts
@@ -63,4 +63,4 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends PowerlinesBa
63
63
 
64
64
  //#endregion
65
65
  export { PowerlinesEngineContext as t };
66
- //# sourceMappingURL=engine-context-PQ3BgcgR.mjs.map
66
+ //# sourceMappingURL=engine-context-BWGxMU_n.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"engine-context-PQ3BgcgR.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} 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 fromOptions(\n options: EngineOptions\n ): Promise<PowerlinesEngineContext> {\n const context = new PowerlinesEngineContext();\n await context.init(options);\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: { ...context.options, executionId, executionIndex },\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: { ...context.options, executionId, executionIndex: 0 },\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":";;;;AA0BA,IAAa,0BAAb,MAAa,gCACH,sBAEV;CACE,cAAgC,EAAE;;;;;;;CAQlC,aAAoB,YAClB,SACkC;EAClC,MAAM,UAAU,IAAI,yBAAyB;AAC7C,QAAM,QAAQ,KAAK,QAAQ;AAE3B,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;KAAE,GAAG,QAAQ;KAAS;KAAa;KAAgB;IAC5D,QAAQ;KACN,SAAS;KACT,MAAM;KACN,QAAQ;KACT;IACF;IACD,CACH;OACI;GACL,MAAM,cAAc,MAAM;AAC1B,YAAQA,aAAc,CACpB;IACE;IACA,SAAS;KAAE,GAAG,QAAQ;KAAS;KAAa,gBAAgB;KAAG;IAC/D,QAAQ;KACN,SAAS;KACT,MAAM;KACN,QAAQ;KACT;IACF,CACF;;AAGH,SAAO;;;;;;;CAQT,IAAW,aAA+B;AACxC,SAAO,MAAKA"}
1
+ {"version":3,"file":"engine-context-BWGxMU_n.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} 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 fromOptions(\n options: EngineOptions\n ): Promise<PowerlinesEngineContext> {\n const context = new PowerlinesEngineContext();\n await context.init(options);\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: { ...context.options, executionId, executionIndex },\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: { ...context.options, executionId, executionIndex: 0 },\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":";;;;AA0BA,IAAa,0BAAb,MAAa,gCACH,sBAEV;CACE,cAAgC,EAAE;;;;;;;CAQlC,aAAoB,YAClB,SACkC;EAClC,MAAM,UAAU,IAAI,yBAAyB;AAC7C,QAAM,QAAQ,KAAK,QAAQ;AAE3B,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;KAAE,GAAG,QAAQ;KAAS;KAAa;KAAgB;IAC5D,QAAQ;KACN,SAAS;KACT,MAAM;KACN,QAAQ;KACT;IACF;IACD,CACH;OACI;GACL,MAAM,cAAc,MAAM;AAC1B,YAAQA,aAAc,CACpB;IACE;IACA,SAAS;KAAE,GAAG,QAAQ;KAAS;KAAa,gBAAgB;KAAG;IAC/D,QAAQ;KACN,SAAS;KACT,MAAM;KACN,QAAQ;KACT;IACF,CACF;;AAGH,SAAO;;;;;;;CAQT,IAAW,aAA+B;AACxC,SAAO,MAAKA"}
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-C0xms8kb.cjs');
2
- const require_base_context = require('./base-context-5_AZZYFu.cjs');
2
+ const require_base_context = require('./base-context-CAA1druQ.cjs');
3
3
  let _stryke_unique_id_uuid = require("@stryke/unique-id/uuid");
4
4
 
5
5
  //#region src/context/engine-context.ts