@powerlines/engine 0.44.5 → 0.44.7

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.
@@ -1432,10 +1432,7 @@ var VirtualFileSystem = class VirtualFileSystem {
1432
1432
  return ret;
1433
1433
  }, {});
1434
1434
  }
1435
- this.#logger = context.extendLogger({
1436
- source: "VFS",
1437
- category: "fs"
1438
- });
1435
+ this.#logger = context.extendLogger({ category: "fs" });
1439
1436
  }
1440
1437
  /**
1441
1438
  * Asynchronously checks if a file exists in the virtual file system (VFS).
@@ -3289,7 +3286,7 @@ function mergeConfigs(currentResult, previousResults) {
3289
3286
  async function callHook(context, key, options, ...args) {
3290
3287
  const hooks = context.selectHooks(key, options);
3291
3288
  if (hooks.length > 0) {
3292
- context.extendLogger({ category: "hooks" }).debug(` 🧩 Calling ${hooks.length} ${chalk.default.bold.cyanBright(`${key}${options?.order ? ` (${options.order})` : ""}`)} plugin hook${hooks.length > 1 ? "s" : ""}:\n${hooks.map((hook, index) => ` ${index + 1}. ${(0, _powerlines_core_plugin_utils_logging.colorText)(hook.plugin.name)}`).join("\n")}`);
3289
+ context.extendLogger({ category: "hooks" }).debug(`🧩 Calling ${hooks.length} ${chalk.default.bold.cyanBright(`${key}${options?.order ? ` (${options.order})` : ""}`)} plugin hook${hooks.length > 1 ? "s" : ""}:\n${hooks.map((hook, index) => ` ${index + 1}. ${(0, _powerlines_core_plugin_utils_logging.colorText)(hook.plugin.name)}`).join("\n")}`);
3293
3290
  const invokeHook = async (hook, hookArgs) => {
3294
3291
  return Reflect.apply(hook.handler, hook.context, hookArgs);
3295
3292
  };
@@ -1399,10 +1399,7 @@ var VirtualFileSystem = class VirtualFileSystem {
1399
1399
  return ret;
1400
1400
  }, {});
1401
1401
  }
1402
- this.#logger = context.extendLogger({
1403
- source: "VFS",
1404
- category: "fs"
1405
- });
1402
+ this.#logger = context.extendLogger({ category: "fs" });
1406
1403
  }
1407
1404
  /**
1408
1405
  * Asynchronously checks if a file exists in the virtual file system (VFS).
@@ -3256,7 +3253,7 @@ function mergeConfigs(currentResult, previousResults) {
3256
3253
  async function callHook(context, key, options, ...args) {
3257
3254
  const hooks = context.selectHooks(key, options);
3258
3255
  if (hooks.length > 0) {
3259
- context.extendLogger({ category: "hooks" }).debug(` 🧩 Calling ${hooks.length} ${chalk.bold.cyanBright(`${key}${options?.order ? ` (${options.order})` : ""}`)} plugin hook${hooks.length > 1 ? "s" : ""}:\n${hooks.map((hook, index) => ` ${index + 1}. ${colorText(hook.plugin.name)}`).join("\n")}`);
3256
+ context.extendLogger({ category: "hooks" }).debug(`🧩 Calling ${hooks.length} ${chalk.bold.cyanBright(`${key}${options?.order ? ` (${options.order})` : ""}`)} plugin hook${hooks.length > 1 ? "s" : ""}:\n${hooks.map((hook, index) => ` ${index + 1}. ${colorText(hook.plugin.name)}`).join("\n")}`);
3260
3257
  const invokeHook = async (hook, hookArgs) => {
3261
3258
  return Reflect.apply(hook.handler, hook.context, hookArgs);
3262
3259
  };