@powerlines/engine 0.44.7 → 0.44.8

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.
@@ -4586,8 +4586,14 @@ ${formatTypes(code)}
4586
4586
  };
4587
4587
  const timer = api.context.timer("Initialization");
4588
4588
  for (const plugin of api.context.config.plugins.flatMap((p) => (0, _stryke_convert_to_array.toArray)(p)) ?? []) await api.addPlugin(plugin);
4589
- if (api.context.plugins.length === 0) api.context.warn("No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended.");
4590
- else api.context.info(`Loaded ${api.context.plugins.length} ${(0, _stryke_string_format_title_case.titleCase)(api.context.config.framework)} plugin${api.context.plugins.length > 1 ? "s" : ""}: \n${api.context.plugins.map((plugin, index) => ` ${index + 1}. ${(0, _powerlines_core_plugin_utils_logging.colorText)(plugin.name)}`).join("\n")}`);
4589
+ if (api.context.plugins.length === 0) api.context.warn({
4590
+ meta: { category: "plugins" },
4591
+ message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
4592
+ });
4593
+ else api.context.info({
4594
+ meta: { category: "plugins" },
4595
+ message: `Loaded ${api.context.plugins.length} ${(0, _stryke_string_format_title_case.titleCase)(api.context.config.framework)} plugin${api.context.plugins.length > 1 ? "s" : ""}: \n${api.context.plugins.map((plugin, index) => ` ${index + 1}. ${(0, _powerlines_core_plugin_utils_logging.colorText)(plugin.name)}`).join("\n")}`
4596
+ });
4591
4597
  const pluginConfig = await api.callHook("config", {
4592
4598
  environment: await api.context.getEnvironment(),
4593
4599
  sequential: true,
@@ -4917,7 +4923,10 @@ ${formatTypes(code)}
4917
4923
  const result = await this.#initPlugin(config);
4918
4924
  if (!result) return;
4919
4925
  for (const plugin of result) {
4920
- this.context.debug(`Successfully initialized the ${chalk.default.bold.cyanBright(plugin.name)} plugin`);
4926
+ this.context.debug({
4927
+ meta: { category: "plugins" },
4928
+ message: `Successfully initialized the ${chalk.default.bold.cyanBright(plugin.name)} plugin`
4929
+ });
4921
4930
  await this.context.addPlugin(plugin);
4922
4931
  }
4923
4932
  }
@@ -4553,8 +4553,14 @@ ${formatTypes(code)}
4553
4553
  };
4554
4554
  const timer = api.context.timer("Initialization");
4555
4555
  for (const plugin of api.context.config.plugins.flatMap((p) => toArray(p)) ?? []) await api.addPlugin(plugin);
4556
- if (api.context.plugins.length === 0) api.context.warn("No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended.");
4557
- else api.context.info(`Loaded ${api.context.plugins.length} ${titleCase(api.context.config.framework)} plugin${api.context.plugins.length > 1 ? "s" : ""}: \n${api.context.plugins.map((plugin, index) => ` ${index + 1}. ${colorText(plugin.name)}`).join("\n")}`);
4556
+ if (api.context.plugins.length === 0) api.context.warn({
4557
+ meta: { category: "plugins" },
4558
+ message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
4559
+ });
4560
+ else api.context.info({
4561
+ meta: { category: "plugins" },
4562
+ message: `Loaded ${api.context.plugins.length} ${titleCase(api.context.config.framework)} plugin${api.context.plugins.length > 1 ? "s" : ""}: \n${api.context.plugins.map((plugin, index) => ` ${index + 1}. ${colorText(plugin.name)}`).join("\n")}`
4563
+ });
4558
4564
  const pluginConfig = await api.callHook("config", {
4559
4565
  environment: await api.context.getEnvironment(),
4560
4566
  sequential: true,
@@ -4884,7 +4890,10 @@ ${formatTypes(code)}
4884
4890
  const result = await this.#initPlugin(config);
4885
4891
  if (!result) return;
4886
4892
  for (const plugin of result) {
4887
- this.context.debug(`Successfully initialized the ${chalk.bold.cyanBright(plugin.name)} plugin`);
4893
+ this.context.debug({
4894
+ meta: { category: "plugins" },
4895
+ message: `Successfully initialized the ${chalk.bold.cyanBright(plugin.name)} plugin`
4896
+ });
4888
4897
  await this.context.addPlugin(plugin);
4889
4898
  }
4890
4899
  }