@powerlines/core 0.43.31 → 0.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/constants/index.cjs +5 -1
  2. package/dist/constants/index.d.cts +2 -1
  3. package/dist/constants/index.d.mts +2 -1
  4. package/dist/constants/index.mjs +3 -2
  5. package/dist/constants/log-level.cjs +43 -0
  6. package/dist/constants/log-level.d.cts +40 -0
  7. package/dist/constants/log-level.d.cts.map +1 -0
  8. package/dist/constants/log-level.d.mts +40 -0
  9. package/dist/constants/log-level.d.mts.map +1 -0
  10. package/dist/constants/log-level.mjs +41 -0
  11. package/dist/constants/log-level.mjs.map +1 -0
  12. package/dist/index.cjs +6 -6
  13. package/dist/index.d.cts +3 -3
  14. package/dist/index.d.mts +3 -3
  15. package/dist/index.mjs +3 -2
  16. package/dist/lib/index.cjs +0 -6
  17. package/dist/lib/index.d.cts +1 -2
  18. package/dist/lib/index.d.mts +1 -2
  19. package/dist/lib/index.mjs +1 -2
  20. package/dist/lib/unplugin/plugin.cjs +9 -11
  21. package/dist/lib/unplugin/plugin.d.cts.map +1 -1
  22. package/dist/lib/unplugin/plugin.d.mts.map +1 -1
  23. package/dist/lib/unplugin/plugin.mjs +9 -11
  24. package/dist/lib/unplugin/plugin.mjs.map +1 -1
  25. package/dist/lib/utilities/write-file.cjs +1 -2
  26. package/dist/lib/utilities/write-file.d.cts +1 -1
  27. package/dist/lib/utilities/write-file.d.cts.map +1 -1
  28. package/dist/lib/utilities/write-file.d.mts +1 -1
  29. package/dist/lib/utilities/write-file.d.mts.map +1 -1
  30. package/dist/lib/utilities/write-file.mjs +1 -2
  31. package/dist/lib/utilities/write-file.mjs.map +1 -1
  32. package/dist/plugin-utils/index.cjs +15 -1
  33. package/dist/plugin-utils/index.d.cts +2 -2
  34. package/dist/plugin-utils/index.d.mts +2 -2
  35. package/dist/plugin-utils/index.mjs +2 -2
  36. package/dist/plugin-utils/logging.cjs +375 -1
  37. package/dist/plugin-utils/logging.d.cts +85 -1
  38. package/dist/plugin-utils/logging.d.cts.map +1 -1
  39. package/dist/plugin-utils/logging.d.mts +85 -1
  40. package/dist/plugin-utils/logging.d.mts.map +1 -1
  41. package/dist/plugin-utils/logging.mjs +360 -1
  42. package/dist/plugin-utils/logging.mjs.map +1 -1
  43. package/dist/types/config.d.cts +33 -28
  44. package/dist/types/config.d.cts.map +1 -1
  45. package/dist/types/config.d.mts +33 -28
  46. package/dist/types/config.d.mts.map +1 -1
  47. package/dist/types/context.d.cts +20 -34
  48. package/dist/types/context.d.cts.map +1 -1
  49. package/dist/types/context.d.mts +20 -34
  50. package/dist/types/context.d.mts.map +1 -1
  51. package/dist/types/index.cjs +1 -0
  52. package/dist/types/index.d.cts +2 -1
  53. package/dist/types/index.d.mts +2 -1
  54. package/dist/types/index.mjs +3 -0
  55. package/dist/types/logging.cjs +48 -0
  56. package/dist/types/logging.d.cts +174 -0
  57. package/dist/types/logging.d.cts.map +1 -0
  58. package/dist/types/logging.d.mts +174 -0
  59. package/dist/types/logging.d.mts.map +1 -0
  60. package/dist/types/logging.mjs +45 -0
  61. package/dist/types/logging.mjs.map +1 -0
  62. package/package.json +74 -442
  63. package/dist/lib/logger.cjs +0 -100
  64. package/dist/lib/logger.d.cts +0 -54
  65. package/dist/lib/logger.d.cts.map +0 -1
  66. package/dist/lib/logger.d.mts +0 -54
  67. package/dist/lib/logger.d.mts.map +0 -1
  68. package/dist/lib/logger.mjs +0 -94
  69. package/dist/lib/logger.mjs.map +0 -1
@@ -1,9 +1,7 @@
1
- import { extendLog } from "../logger.mjs";
2
1
  import { combineContexts } from "./helpers.mjs";
3
2
  import { VIRTUAL_MODULE_PREFIX_REGEX } from "../../constants/virtual-modules.mjs";
4
3
  import { createUnpluginModuleResolutionFunctions } from "./module-resolution.mjs";
5
4
  import { getString } from "../utilities/source-file.mjs";
6
- import { LogLevelLabel } from "@storm-software/config-tools/types";
7
5
  import { kebabCase } from "@stryke/string-format/kebab-case";
8
6
  import { titleCase } from "@stryke/string-format/title-case";
9
7
  import { setParseImpl } from "unplugin";
@@ -20,8 +18,8 @@ function createUnpluginResolver(context, options = {}) {
20
18
  setParseImpl(ctx.parse);
21
19
  const name = options.name || "powerlines";
22
20
  return () => {
23
- const log = extendLog(ctx.log, name);
24
- log(LogLevelLabel.DEBUG, `Initializing ${titleCase(name)} plugin`);
21
+ const logger = ctx.extendLogger({ source: name });
22
+ logger.debug(`Initializing ${titleCase(name)} plugin`);
25
23
  try {
26
24
  const { resolveId, load } = createUnpluginModuleResolutionFunctions(context, options);
27
25
  return {
@@ -31,7 +29,7 @@ function createUnpluginResolver(context, options = {}) {
31
29
  load
32
30
  };
33
31
  } catch (error) {
34
- log(LogLevelLabel.FATAL, error?.message);
32
+ logger.error(error instanceof Error ? error.message : String(error));
35
33
  throw error;
36
34
  }
37
35
  };
@@ -47,12 +45,12 @@ function createUnplugin(context, options = {}) {
47
45
  setParseImpl(ctx.parse);
48
46
  const name = options.name || "powerlines";
49
47
  return () => {
50
- const log = options.name ? extendLog(ctx.log, name) : ctx.log;
51
- log(LogLevelLabel.DEBUG, `Initializing ${titleCase(name)} plugin`);
48
+ const logger = ctx.extendLogger({ source: name });
49
+ logger.debug(`Initializing ${titleCase(name)} plugin`);
52
50
  try {
53
51
  const { resolveId, load } = createUnpluginModuleResolutionFunctions(context, options);
54
52
  async function buildStart() {
55
- if (!options.silenceHookLogging) log(LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
53
+ if (!options.silenceHookLogging) logger.debug("Powerlines build plugin starting...");
56
54
  await ctx.$$internal.callHook("buildStart", { sequential: true });
57
55
  }
58
56
  async function transform(code, id) {
@@ -64,11 +62,11 @@ function createUnplugin(context, options = {}) {
64
62
  return transformed;
65
63
  }
66
64
  async function buildEnd() {
67
- if (!options.silenceHookLogging) log(LogLevelLabel.DEBUG, "Powerlines build plugin finishing...");
65
+ if (!options.silenceHookLogging) logger.debug("Powerlines build plugin finishing...");
68
66
  return ctx.$$internal.callHook("buildEnd", { sequential: true });
69
67
  }
70
68
  async function writeBundle() {
71
- if (!options.silenceHookLogging) log(LogLevelLabel.DEBUG, "Finalizing Powerlines project output...");
69
+ if (!options.silenceHookLogging) logger.debug("Finalizing Powerlines project output...");
72
70
  return ctx.$$internal.callHook("writeBundle", { sequential: true });
73
71
  }
74
72
  return {
@@ -83,7 +81,7 @@ function createUnplugin(context, options = {}) {
83
81
  vite: { sharedDuringBuild: true }
84
82
  };
85
83
  } catch (error) {
86
- log(LogLevelLabel.FATAL, error?.message);
84
+ logger.error(error instanceof Error ? error.message : String(error));
87
85
  throw error;
88
86
  }
89
87
  };
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.mjs","names":[],"sources":["../../../src/lib/unplugin/plugin.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 { Unstable_PluginContext } from \"@powerlines/core/types/_internal\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport type {\n TransformResult,\n UnpluginBuildContext,\n UnpluginContext\n} from \"unplugin\";\nimport { setParseImpl } from \"unplugin\";\nimport { VIRTUAL_MODULE_PREFIX_REGEX } from \"../../constants/virtual-modules\";\nimport { PluginContext } from \"../../types/context\";\nimport { UnpluginFactory } from \"../../types/unplugin\";\nimport { extendLog } from \"../logger\";\nimport { getString } from \"../utilities/source-file\";\nimport { combineContexts } from \"./helpers\";\nimport {\n createUnpluginModuleResolutionFunctions,\n CreateUnpluginModuleResolutionFunctionsOptions\n} from \"./module-resolution\";\n\nexport interface CreateUnpluginResolverOptions extends CreateUnpluginModuleResolutionFunctionsOptions {\n /**\n * A name to use for the unplugin instance. This is used for logging and to generate the plugin name. It does not affect the functionality of the plugin.\n *\n * @remarks\n * If not provided, the plugin will be named \"powerlines\". If provided, the plugin will be named `${name} - Powerlines` (e.g., \"MyPlugin - Powerlines\").\n *\n * @defaultValue \"powerlines\"\n */\n name?: string;\n}\n\n/**\n * Creates a Powerlines unplugin instance.\n *\n * @param context - The plugin context.\n * @returns The unplugin instance.\n */\nexport function createUnpluginResolver<\n TContext extends PluginContext = PluginContext\n>(\n context: TContext,\n options: CreateUnpluginResolverOptions = {}\n): UnpluginFactory<TContext> {\n const ctx = context as unknown as Unstable_PluginContext;\n setParseImpl(ctx.parse);\n\n const name = options.name || \"powerlines\";\n\n return () => {\n const log = extendLog(ctx.log, name);\n log(LogLevelLabel.DEBUG, `Initializing ${titleCase(name)} plugin`);\n\n try {\n const { resolveId, load } =\n createUnpluginModuleResolutionFunctions<TContext>(context, options);\n\n return {\n name:\n name.toLowerCase() === \"powerlines\"\n ? \"powerlines\"\n : `powerlines:${kebabCase(name)}`,\n api: ctx.$$internal.api,\n resolveId,\n load\n };\n } catch (error) {\n log(LogLevelLabel.FATAL, (error as Error)?.message);\n\n throw error;\n }\n };\n}\n\nexport interface CreateUnpluginOptions extends CreateUnpluginResolverOptions {\n /**\n * Whether to silence logging for the plugin hooks. This can be useful for plugins that run frequently or have hooks that are called often, to reduce noise in the logs. When set to `true`, the plugin will not log any messages for its hooks. When set to `false` (the default), the plugin will log messages for its hooks as normal.\n *\n * @defaultValue false\n */\n silenceHookLogging?: boolean;\n}\n\n/**\n * Creates a Powerlines unplugin instance.\n *\n * @param context - The plugin context.\n * @returns The unplugin instance.\n */\nexport function createUnplugin<TContext extends PluginContext = PluginContext>(\n context: TContext,\n options: CreateUnpluginOptions = {}\n): UnpluginFactory<TContext> {\n const ctx = context as unknown as Unstable_PluginContext;\n setParseImpl(ctx.parse);\n\n const name = options.name || \"powerlines\";\n\n return () => {\n const log = options.name ? extendLog(ctx.log, name) : ctx.log;\n log(LogLevelLabel.DEBUG, `Initializing ${titleCase(name)} plugin`);\n\n try {\n const { resolveId, load } =\n createUnpluginModuleResolutionFunctions<TContext>(context, options);\n\n async function buildStart(this: UnpluginBuildContext) {\n if (!options.silenceHookLogging) {\n log(LogLevelLabel.DEBUG, \"Powerlines build plugin starting...\");\n }\n\n await ctx.$$internal.callHook(\"buildStart\", {\n sequential: true\n });\n }\n\n async function transform(\n this: UnpluginBuildContext & UnpluginContext,\n code: string,\n id: string\n ): Promise<TransformResult | null | undefined> {\n let transformed: TransformResult | string = code;\n\n for (const hook of ctx.$$internal.environment.selectHooks(\n \"transform\"\n )) {\n const result: TransformResult | string | undefined =\n await hook.handler.apply(combineContexts(ctx, this), [\n getString(transformed),\n id.replace(VIRTUAL_MODULE_PREFIX_REGEX, \"\")\n ]);\n if (result) {\n transformed = result;\n }\n }\n\n return transformed;\n }\n\n async function buildEnd(this: UnpluginBuildContext): Promise<void> {\n if (!options.silenceHookLogging) {\n log(LogLevelLabel.DEBUG, \"Powerlines build plugin finishing...\");\n }\n\n return ctx.$$internal.callHook(\"buildEnd\", {\n sequential: true\n });\n }\n\n async function writeBundle(): Promise<void> {\n if (!options.silenceHookLogging) {\n log(LogLevelLabel.DEBUG, \"Finalizing Powerlines project output...\");\n }\n\n return ctx.$$internal.callHook(\"writeBundle\", {\n sequential: true\n });\n }\n\n return {\n name:\n name.toLowerCase() === \"powerlines\"\n ? \"powerlines\"\n : `powerlines:${kebabCase(name)}`,\n api: ctx.$$internal.api,\n resolveId,\n load,\n transform,\n buildStart,\n buildEnd,\n writeBundle,\n vite: {\n sharedDuringBuild: true\n }\n };\n } catch (error) {\n log(LogLevelLabel.FATAL, (error as Error)?.message);\n\n throw error;\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAyDA,SAAgB,uBAGd,SACA,UAAyC,EAAE,EAChB;CAC3B,MAAM,MAAM;AACZ,cAAa,IAAI,MAAM;CAEvB,MAAM,OAAO,QAAQ,QAAQ;AAE7B,cAAa;EACX,MAAM,MAAM,UAAU,IAAI,KAAK,KAAK;AACpC,MAAI,cAAc,OAAO,gBAAgB,UAAU,KAAK,CAAC,SAAS;AAElE,MAAI;GACF,MAAM,EAAE,WAAW,SACjB,wCAAkD,SAAS,QAAQ;AAErE,UAAO;IACL,MACE,KAAK,aAAa,KAAK,eACnB,eACA,cAAc,UAAU,KAAK;IACnC,KAAK,IAAI,WAAW;IACpB;IACA;IACD;WACM,OAAO;AACd,OAAI,cAAc,OAAQ,OAAiB,QAAQ;AAEnD,SAAM;;;;;;;;;;AAoBZ,SAAgB,eACd,SACA,UAAiC,EAAE,EACR;CAC3B,MAAM,MAAM;AACZ,cAAa,IAAI,MAAM;CAEvB,MAAM,OAAO,QAAQ,QAAQ;AAE7B,cAAa;EACX,MAAM,MAAM,QAAQ,OAAO,UAAU,IAAI,KAAK,KAAK,GAAG,IAAI;AAC1D,MAAI,cAAc,OAAO,gBAAgB,UAAU,KAAK,CAAC,SAAS;AAElE,MAAI;GACF,MAAM,EAAE,WAAW,SACjB,wCAAkD,SAAS,QAAQ;GAErE,eAAe,aAAuC;AACpD,QAAI,CAAC,QAAQ,mBACX,KAAI,cAAc,OAAO,sCAAsC;AAGjE,UAAM,IAAI,WAAW,SAAS,cAAc,EAC1C,YAAY,MACb,CAAC;;GAGJ,eAAe,UAEb,MACA,IAC6C;IAC7C,IAAI,cAAwC;AAE5C,SAAK,MAAM,QAAQ,IAAI,WAAW,YAAY,YAC5C,YACD,EAAE;KACD,MAAM,SACJ,MAAM,KAAK,QAAQ,MAAM,gBAAgB,KAAK,KAAK,EAAE,CACnD,UAAU,YAAY,EACtB,GAAG,QAAQ,6BAA6B,GAAG,CAC5C,CAAC;AACJ,SAAI,OACF,eAAc;;AAIlB,WAAO;;GAGT,eAAe,WAAoD;AACjE,QAAI,CAAC,QAAQ,mBACX,KAAI,cAAc,OAAO,uCAAuC;AAGlE,WAAO,IAAI,WAAW,SAAS,YAAY,EACzC,YAAY,MACb,CAAC;;GAGJ,eAAe,cAA6B;AAC1C,QAAI,CAAC,QAAQ,mBACX,KAAI,cAAc,OAAO,0CAA0C;AAGrE,WAAO,IAAI,WAAW,SAAS,eAAe,EAC5C,YAAY,MACb,CAAC;;AAGJ,UAAO;IACL,MACE,KAAK,aAAa,KAAK,eACnB,eACA,cAAc,UAAU,KAAK;IACnC,KAAK,IAAI,WAAW;IACpB;IACA;IACA;IACA;IACA;IACA;IACA,MAAM,EACJ,mBAAmB,MACpB;IACF;WACM,OAAO;AACd,OAAI,cAAc,OAAQ,OAAiB,QAAQ;AAEnD,SAAM"}
1
+ {"version":3,"file":"plugin.mjs","names":[],"sources":["../../../src/lib/unplugin/plugin.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 { Unstable_PluginContext } from \"@powerlines/core/types/_internal\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport type {\n TransformResult,\n UnpluginBuildContext,\n UnpluginContext\n} from \"unplugin\";\nimport { setParseImpl } from \"unplugin\";\nimport { VIRTUAL_MODULE_PREFIX_REGEX } from \"../../constants/virtual-modules\";\nimport { PluginContext } from \"../../types/context\";\nimport { UnpluginFactory } from \"../../types/unplugin\";\nimport { getString } from \"../utilities/source-file\";\nimport { combineContexts } from \"./helpers\";\nimport {\n createUnpluginModuleResolutionFunctions,\n CreateUnpluginModuleResolutionFunctionsOptions\n} from \"./module-resolution\";\n\nexport interface CreateUnpluginResolverOptions extends CreateUnpluginModuleResolutionFunctionsOptions {\n /**\n * A name to use for the unplugin instance. This is used for logging and to generate the plugin name. It does not affect the functionality of the plugin.\n *\n * @remarks\n * If not provided, the plugin will be named \"powerlines\". If provided, the plugin will be named `${name} - Powerlines` (e.g., \"MyPlugin - Powerlines\").\n *\n * @defaultValue \"powerlines\"\n */\n name?: string;\n}\n\n/**\n * Creates a Powerlines unplugin instance.\n *\n * @param context - The plugin context.\n * @returns The unplugin instance.\n */\nexport function createUnpluginResolver<\n TContext extends PluginContext = PluginContext\n>(\n context: TContext,\n options: CreateUnpluginResolverOptions = {}\n): UnpluginFactory<TContext> {\n const ctx = context as unknown as Unstable_PluginContext;\n setParseImpl(ctx.parse);\n\n const name = options.name || \"powerlines\";\n\n return () => {\n const logger = ctx.extendLogger({ source: name });\n logger.debug(`Initializing ${titleCase(name)} plugin`);\n\n try {\n const { resolveId, load } =\n createUnpluginModuleResolutionFunctions<TContext>(context, options);\n\n return {\n name:\n name.toLowerCase() === \"powerlines\"\n ? \"powerlines\"\n : `powerlines:${kebabCase(name)}`,\n api: ctx.$$internal.api,\n resolveId,\n load\n };\n } catch (error) {\n logger.error(error instanceof Error ? error.message : String(error));\n\n throw error;\n }\n };\n}\n\nexport interface CreateUnpluginOptions extends CreateUnpluginResolverOptions {\n /**\n * Whether to silence logging for the plugin hooks. This can be useful for plugins that run frequently or have hooks that are called often, to reduce noise in the logs. When set to `true`, the plugin will not log any messages for its hooks. When set to `false` (the default), the plugin will log messages for its hooks as normal.\n *\n * @defaultValue false\n */\n silenceHookLogging?: boolean;\n}\n\n/**\n * Creates a Powerlines unplugin instance.\n *\n * @param context - The plugin context.\n * @returns The unplugin instance.\n */\nexport function createUnplugin<TContext extends PluginContext = PluginContext>(\n context: TContext,\n options: CreateUnpluginOptions = {}\n): UnpluginFactory<TContext> {\n const ctx = context as unknown as Unstable_PluginContext;\n setParseImpl(ctx.parse);\n\n const name = options.name || \"powerlines\";\n\n return () => {\n const logger = ctx.extendLogger({ source: name });\n logger.debug(`Initializing ${titleCase(name)} plugin`);\n\n try {\n const { resolveId, load } =\n createUnpluginModuleResolutionFunctions<TContext>(context, options);\n\n async function buildStart(this: UnpluginBuildContext) {\n if (!options.silenceHookLogging) {\n logger.debug(\"Powerlines build plugin starting...\");\n }\n\n await ctx.$$internal.callHook(\"buildStart\", {\n sequential: true\n });\n }\n\n async function transform(\n this: UnpluginBuildContext & UnpluginContext,\n code: string,\n id: string\n ): Promise<TransformResult | null | undefined> {\n let transformed: TransformResult | string = code;\n\n for (const hook of ctx.$$internal.environment.selectHooks(\n \"transform\"\n )) {\n const result: TransformResult | string | undefined =\n await hook.handler.apply(combineContexts(ctx, this), [\n getString(transformed),\n id.replace(VIRTUAL_MODULE_PREFIX_REGEX, \"\")\n ]);\n if (result) {\n transformed = result;\n }\n }\n\n return transformed;\n }\n\n async function buildEnd(this: UnpluginBuildContext): Promise<void> {\n if (!options.silenceHookLogging) {\n logger.debug(\"Powerlines build plugin finishing...\");\n }\n\n return ctx.$$internal.callHook(\"buildEnd\", {\n sequential: true\n });\n }\n\n async function writeBundle(): Promise<void> {\n if (!options.silenceHookLogging) {\n logger.debug(\"Finalizing Powerlines project output...\");\n }\n\n return ctx.$$internal.callHook(\"writeBundle\", {\n sequential: true\n });\n }\n\n return {\n name:\n name.toLowerCase() === \"powerlines\"\n ? \"powerlines\"\n : `powerlines:${kebabCase(name)}`,\n api: ctx.$$internal.api,\n resolveId,\n load,\n transform,\n buildStart,\n buildEnd,\n writeBundle,\n vite: {\n sharedDuringBuild: true\n }\n };\n } catch (error) {\n logger.error(error instanceof Error ? error.message : String(error));\n\n throw error;\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;AAuDA,SAAgB,uBAGd,SACA,UAAyC,EAAE,EAChB;CAC3B,MAAM,MAAM;AACZ,cAAa,IAAI,MAAM;CAEvB,MAAM,OAAO,QAAQ,QAAQ;AAE7B,cAAa;EACX,MAAM,SAAS,IAAI,aAAa,EAAE,QAAQ,MAAM,CAAC;AACjD,SAAO,MAAM,gBAAgB,UAAU,KAAK,CAAC,SAAS;AAEtD,MAAI;GACF,MAAM,EAAE,WAAW,SACjB,wCAAkD,SAAS,QAAQ;AAErE,UAAO;IACL,MACE,KAAK,aAAa,KAAK,eACnB,eACA,cAAc,UAAU,KAAK;IACnC,KAAK,IAAI,WAAW;IACpB;IACA;IACD;WACM,OAAO;AACd,UAAO,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,MAAM,CAAC;AAEpE,SAAM;;;;;;;;;;AAoBZ,SAAgB,eACd,SACA,UAAiC,EAAE,EACR;CAC3B,MAAM,MAAM;AACZ,cAAa,IAAI,MAAM;CAEvB,MAAM,OAAO,QAAQ,QAAQ;AAE7B,cAAa;EACX,MAAM,SAAS,IAAI,aAAa,EAAE,QAAQ,MAAM,CAAC;AACjD,SAAO,MAAM,gBAAgB,UAAU,KAAK,CAAC,SAAS;AAEtD,MAAI;GACF,MAAM,EAAE,WAAW,SACjB,wCAAkD,SAAS,QAAQ;GAErE,eAAe,aAAuC;AACpD,QAAI,CAAC,QAAQ,mBACX,QAAO,MAAM,sCAAsC;AAGrD,UAAM,IAAI,WAAW,SAAS,cAAc,EAC1C,YAAY,MACb,CAAC;;GAGJ,eAAe,UAEb,MACA,IAC6C;IAC7C,IAAI,cAAwC;AAE5C,SAAK,MAAM,QAAQ,IAAI,WAAW,YAAY,YAC5C,YACD,EAAE;KACD,MAAM,SACJ,MAAM,KAAK,QAAQ,MAAM,gBAAgB,KAAK,KAAK,EAAE,CACnD,UAAU,YAAY,EACtB,GAAG,QAAQ,6BAA6B,GAAG,CAC5C,CAAC;AACJ,SAAI,OACF,eAAc;;AAIlB,WAAO;;GAGT,eAAe,WAAoD;AACjE,QAAI,CAAC,QAAQ,mBACX,QAAO,MAAM,uCAAuC;AAGtD,WAAO,IAAI,WAAW,SAAS,YAAY,EACzC,YAAY,MACb,CAAC;;GAGJ,eAAe,cAA6B;AAC1C,QAAI,CAAC,QAAQ,mBACX,QAAO,MAAM,0CAA0C;AAGzD,WAAO,IAAI,WAAW,SAAS,eAAe,EAC5C,YAAY,MACb,CAAC;;AAGJ,UAAO;IACL,MACE,KAAK,aAAa,KAAK,eACnB,eACA,cAAc,UAAU,KAAK;IACnC,KAAK,IAAI,WAAW;IACpB;IACA;IACA;IACA;IACA;IACA;IACA,MAAM,EACJ,mBAAmB,MACpB;IACF;WACM,OAAO;AACd,UAAO,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,MAAM,CAAC;AAEpE,SAAM"}
@@ -1,6 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
- let _storm_software_config_tools_types = require("@storm-software/config-tools/types");
4
3
  let prettier = require("prettier");
5
4
  let _stryke_fs_write_file = require("@stryke/fs/write-file");
6
5
 
@@ -21,7 +20,7 @@ async function writeFile(log, filepath, content, skipFormat = false) {
21
20
  filepath
22
21
  }) || "");
23
22
  } catch (error) {
24
- log(_storm_software_config_tools_types.LogLevelLabel.ERROR, `Failed to write file ${filepath} to disk \n${error?.message ? error.message : ""}`);
23
+ log("error", `Failed to write file ${filepath} to disk \n${error?.message ? error.message : ""}`);
25
24
  }
26
25
  }
27
26
 
@@ -1,4 +1,4 @@
1
- import { LogFn } from "../../types/config.cjs";
1
+ import { LogFn } from "../../types/logging.cjs";
2
2
 
3
3
  //#region src/lib/utilities/write-file.d.ts
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"write-file.d.cts","names":[],"sources":["../../../src/lib/utilities/write-file.ts"],"mappings":";;;;;AA+BA;;;;;;iBAAsB,SAAA,CACpB,GAAA,EAAK,KAAA,EACL,QAAA,UACA,OAAA,UACA,UAAA,aAAkB,OAAA"}
1
+ {"version":3,"file":"write-file.d.cts","names":[],"sources":["../../../src/lib/utilities/write-file.ts"],"mappings":";;;;;AA8BA;;;;;;iBAAsB,SAAA,CACpB,GAAA,EAAK,KAAA,EACL,QAAA,UACA,OAAA,UACA,UAAA,aAAkB,OAAA"}
@@ -1,4 +1,4 @@
1
- import { LogFn } from "../../types/config.mjs";
1
+ import { LogFn } from "../../types/logging.mjs";
2
2
 
3
3
  //#region src/lib/utilities/write-file.d.ts
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"write-file.d.mts","names":[],"sources":["../../../src/lib/utilities/write-file.ts"],"mappings":";;;;;AA+BA;;;;;;iBAAsB,SAAA,CACpB,GAAA,EAAK,KAAA,EACL,QAAA,UACA,OAAA,UACA,UAAA,aAAkB,OAAA"}
1
+ {"version":3,"file":"write-file.d.mts","names":[],"sources":["../../../src/lib/utilities/write-file.ts"],"mappings":";;;;;AA8BA;;;;;;iBAAsB,SAAA,CACpB,GAAA,EAAK,KAAA,EACL,QAAA,UACA,OAAA,UACA,UAAA,aAAkB,OAAA"}
@@ -1,4 +1,3 @@
1
- import { LogLevelLabel } from "@storm-software/config-tools/types";
2
1
  import { format, resolveConfig } from "prettier";
3
2
  import { writeFile as writeFile$1 } from "@stryke/fs/write-file";
4
3
 
@@ -19,7 +18,7 @@ async function writeFile(log, filepath, content, skipFormat = false) {
19
18
  filepath
20
19
  }) || "");
21
20
  } catch (error) {
22
- log(LogLevelLabel.ERROR, `Failed to write file ${filepath} to disk \n${error?.message ? error.message : ""}`);
21
+ log("error", `Failed to write file ${filepath} to disk \n${error?.message ? error.message : ""}`);
23
22
  }
24
23
  }
25
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"write-file.mjs","names":["writeFileBase"],"sources":["../../../src/lib/utilities/write-file.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 { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { writeFile as writeFileBase } from \"@stryke/fs/write-file\";\nimport { format, resolveConfig } from \"prettier\";\nimport type { LogFn } from \"../../types/config\";\n\n/**\n * Writes and formats a file to the file system\n *\n * @param log - The logging function to use for logging errors\n * @param filepath - The file path to write the file\n * @param content - The content to write to the file\n * @param skipFormat - Should the plugin skip formatting the `content` string with Prettier\n */\nexport async function writeFile(\n log: LogFn,\n filepath: string,\n content: string,\n skipFormat = false\n) {\n try {\n if (skipFormat) {\n await writeFileBase(filepath, content);\n } else {\n const config = await resolveConfig(filepath);\n const formatted = await format(content, {\n ...(config ?? {}),\n filepath\n });\n\n await writeFileBase(filepath, formatted || \"\");\n }\n } catch (error) {\n log(\n LogLevelLabel.ERROR,\n `Failed to write file ${filepath} to disk \\n${(error as Error)?.message ? (error as Error).message : \"\"}`\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;AA+BA,eAAsB,UACpB,KACA,UACA,SACA,aAAa,OACb;AACA,KAAI;AACF,MAAI,WACF,OAAMA,YAAc,UAAU,QAAQ;MAQtC,OAAMA,YAAc,UAAU,MALN,OAAO,SAAS;GACtC,GAAI,MAFe,cAAc,SAAS,IAE5B,EAAE;GAChB;GACD,CAAC,IAEyC,GAAG;UAEzC,OAAO;AACd,MACE,cAAc,OACd,wBAAwB,SAAS,aAAc,OAAiB,UAAW,MAAgB,UAAU,KACtG"}
1
+ {"version":3,"file":"write-file.mjs","names":["writeFileBase"],"sources":["../../../src/lib/utilities/write-file.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 { writeFile as writeFileBase } from \"@stryke/fs/write-file\";\nimport { format, resolveConfig } from \"prettier\";\nimport type { LogFn } from \"../../types/logging\";\n\n/**\n * Writes and formats a file to the file system\n *\n * @param log - The logging function to use for logging errors\n * @param filepath - The file path to write the file\n * @param content - The content to write to the file\n * @param skipFormat - Should the plugin skip formatting the `content` string with Prettier\n */\nexport async function writeFile(\n log: LogFn,\n filepath: string,\n content: string,\n skipFormat = false\n) {\n try {\n if (skipFormat) {\n await writeFileBase(filepath, content);\n } else {\n const config = await resolveConfig(filepath);\n const formatted = await format(content, {\n ...(config ?? {}),\n filepath\n });\n\n await writeFileBase(filepath, formatted || \"\");\n }\n } catch (error) {\n log(\n \"error\",\n `Failed to write file ${filepath} to disk \\n${(error as Error)?.message ? (error as Error).message : \"\"}`\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;AA8BA,eAAsB,UACpB,KACA,UACA,SACA,aAAa,OACb;AACA,KAAI;AACF,MAAI,WACF,OAAMA,YAAc,UAAU,QAAQ;MAQtC,OAAMA,YAAc,UAAU,MALN,OAAO,SAAS;GACtC,GAAI,MAFe,cAAc,SAAS,IAE5B,EAAE;GAChB;GACD,CAAC,IAEyC,GAAG;UAEzC,OAAO;AACd,MACE,SACA,wBAAwB,SAAS,aAAc,OAAiB,UAAW,MAAgB,UAAU,KACtG"}
@@ -14,15 +14,23 @@ const require_plugin_utils_logging = require('./logging.cjs');
14
14
  const require_plugin_utils_modules = require('./modules.cjs');
15
15
 
16
16
  exports.addPluginHook = require_plugin_utils_helpers.addPluginHook;
17
+ exports.colorBackground = require_plugin_utils_logging.colorBackground;
18
+ exports.colorText = require_plugin_utils_logging.colorText;
17
19
  exports.combinePluginOptions = require_plugin_utils_combine_plugins.combinePluginOptions;
18
20
  exports.combinePlugins = require_plugin_utils_combine_plugins.combinePlugins;
21
+ exports.consoleLog = require_plugin_utils_logging.consoleLog;
22
+ exports.consoleLogger = require_plugin_utils_logging.consoleLogger;
19
23
  exports.createCodeFilter = require_plugin_utils_filter.createCodeFilter;
20
24
  exports.createFilter = require_plugin_utils_filter.createFilter;
21
25
  exports.createFilterForId = require_plugin_utils_filter.createFilterForId;
22
26
  exports.createFilterForTransform = require_plugin_utils_filter.createFilterForTransform;
23
27
  exports.createIdFilter = require_plugin_utils_filter.createIdFilter;
28
+ exports.createLogFn = require_plugin_utils_logging.createLogFn;
29
+ exports.createLogger = require_plugin_utils_logging.createLogger;
24
30
  exports.dedupeHooklist = require_plugin_utils_helpers.dedupeHooklist;
25
31
  exports.extend = require_plugin_utils_extend.extend;
32
+ exports.extendLogFn = require_plugin_utils_logging.extendLogFn;
33
+ exports.extendLogger = require_plugin_utils_logging.extendLogger;
26
34
  exports.extractPluginHook = require_plugin_utils_helpers.extractPluginHook;
27
35
  exports.findInvalidPluginConfig = require_plugin_utils_helpers.findInvalidPluginConfig;
28
36
  exports.formatPackageJson = require_plugin_utils_format_package_json.formatPackageJson;
@@ -31,6 +39,7 @@ exports.getDependencyConfig = require_plugin_utils_build_helpers.getDependencyCo
31
39
  exports.getDocsOutputPath = require_plugin_utils_docs_helper.getDocsOutputPath;
32
40
  exports.getHookHandler = require_plugin_utils_helpers.getHookHandler;
33
41
  exports.getOrganizationName = require_plugin_utils_context_helpers.getOrganizationName;
42
+ exports.getTextColor = require_plugin_utils_logging.getTextColor;
34
43
  exports.getWorkspaceName = require_plugin_utils_context_helpers.getWorkspaceName;
35
44
  exports.isBuiltinModule = require_plugin_utils_modules.isBuiltinModule;
36
45
  exports.isDuplicate = require_plugin_utils_helpers.isDuplicate;
@@ -44,10 +53,15 @@ exports.isPluginHookFunction = require_plugin_utils_helpers.isPluginHookFunction
44
53
  exports.isPluginHookObject = require_plugin_utils_helpers.isPluginHookObject;
45
54
  exports.isUnpluginHookField = require_plugin_utils_helpers.isUnpluginHookField;
46
55
  exports.isUnpluginHookKey = require_plugin_utils_helpers.isUnpluginHookKey;
56
+ exports.isValidLogLevel = require_plugin_utils_logging.isValidLogLevel;
57
+ exports.isValidLogLevelConfig = require_plugin_utils_logging.isValidLogLevelConfig;
47
58
  exports.isVerbose = require_plugin_utils_logging.isVerbose;
48
59
  exports.merge = require_plugin_utils_merge.merge;
49
60
  exports.mergeConfig = require_plugin_utils_merge.mergeConfig;
50
61
  exports.normalizeFilter = require_plugin_utils_filter.normalizeFilter;
51
62
  exports.patternToCodeFilter = require_plugin_utils_filter.patternToCodeFilter;
52
63
  exports.patternToIdFilter = require_plugin_utils_filter.patternToIdFilter;
53
- exports.replacePathTokens = require_plugin_utils_paths.replacePathTokens;
64
+ exports.replacePathTokens = require_plugin_utils_paths.replacePathTokens;
65
+ exports.resolveLogLevel = require_plugin_utils_logging.resolveLogLevel;
66
+ exports.withCustomLogger = require_plugin_utils_logging.withCustomLogger;
67
+ exports.withLogger = require_plugin_utils_logging.withLogger;
@@ -7,8 +7,8 @@ import { createCodeFilter, createFilter, createFilterForId, createFilterForTrans
7
7
  import { formatPackageJson } from "./format-package-json.cjs";
8
8
  import { getConfigPath } from "./get-config-path.cjs";
9
9
  import { GetHookHandlerReturnType, __ΩGetHookHandlerReturnType, addPluginHook, dedupeHooklist, extractPluginHook, findInvalidPluginConfig, getHookHandler, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey } from "./helpers.cjs";
10
- import { isVerbose } from "./logging.cjs";
10
+ import { colorBackground, colorText, consoleLog, consoleLogger, createLogFn, createLogger, extendLogFn, extendLogger, getTextColor, isValidLogLevel, isValidLogLevelConfig, isVerbose, resolveLogLevel, withCustomLogger, withLogger } from "./logging.cjs";
11
11
  import { MergeResult, __ΩMergeResult, merge, mergeConfig } from "./merge.cjs";
12
12
  import { isBuiltinModule } from "./modules.cjs";
13
13
  import { replacePathTokens } from "./paths.cjs";
14
- export { CombinePluginsOptions, GetDependencyConfigResult, GetHookHandlerReturnType, MergeResult, __ΩCombinePluginsOptions, __ΩGetDependencyConfigResult, __ΩGetHookHandlerReturnType, __ΩMergeResult, addPluginHook, combinePluginOptions, combinePlugins, createCodeFilter, createFilter, createFilterForId, createFilterForTransform, createIdFilter, dedupeHooklist, extend, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getDocsOutputPath, getHookHandler, getOrganizationName, getWorkspaceName, isBuiltinModule, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, isVerbose, merge, mergeConfig, normalizeFilter, patternToCodeFilter, patternToIdFilter, replacePathTokens };
14
+ export { CombinePluginsOptions, GetDependencyConfigResult, GetHookHandlerReturnType, MergeResult, __ΩCombinePluginsOptions, __ΩGetDependencyConfigResult, __ΩGetHookHandlerReturnType, __ΩMergeResult, addPluginHook, colorBackground, colorText, combinePluginOptions, combinePlugins, consoleLog, consoleLogger, createCodeFilter, createFilter, createFilterForId, createFilterForTransform, createIdFilter, createLogFn, createLogger, dedupeHooklist, extend, extendLogFn, extendLogger, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getDocsOutputPath, getHookHandler, getOrganizationName, getTextColor, getWorkspaceName, isBuiltinModule, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, isValidLogLevel, isValidLogLevelConfig, isVerbose, merge, mergeConfig, normalizeFilter, patternToCodeFilter, patternToIdFilter, replacePathTokens, resolveLogLevel, withCustomLogger, withLogger };
@@ -7,8 +7,8 @@ import { createCodeFilter, createFilter, createFilterForId, createFilterForTrans
7
7
  import { formatPackageJson } from "./format-package-json.mjs";
8
8
  import { getConfigPath } from "./get-config-path.mjs";
9
9
  import { GetHookHandlerReturnType, __ΩGetHookHandlerReturnType, addPluginHook, dedupeHooklist, extractPluginHook, findInvalidPluginConfig, getHookHandler, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey } from "./helpers.mjs";
10
- import { isVerbose } from "./logging.mjs";
10
+ import { colorBackground, colorText, consoleLog, consoleLogger, createLogFn, createLogger, extendLogFn, extendLogger, getTextColor, isValidLogLevel, isValidLogLevelConfig, isVerbose, resolveLogLevel, withCustomLogger, withLogger } from "./logging.mjs";
11
11
  import { MergeResult, __ΩMergeResult, merge, mergeConfig } from "./merge.mjs";
12
12
  import { isBuiltinModule } from "./modules.mjs";
13
13
  import { replacePathTokens } from "./paths.mjs";
14
- export { CombinePluginsOptions, GetDependencyConfigResult, GetHookHandlerReturnType, MergeResult, __ΩCombinePluginsOptions, __ΩGetDependencyConfigResult, __ΩGetHookHandlerReturnType, __ΩMergeResult, addPluginHook, combinePluginOptions, combinePlugins, createCodeFilter, createFilter, createFilterForId, createFilterForTransform, createIdFilter, dedupeHooklist, extend, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getDocsOutputPath, getHookHandler, getOrganizationName, getWorkspaceName, isBuiltinModule, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, isVerbose, merge, mergeConfig, normalizeFilter, patternToCodeFilter, patternToIdFilter, replacePathTokens };
14
+ export { CombinePluginsOptions, GetDependencyConfigResult, GetHookHandlerReturnType, MergeResult, __ΩCombinePluginsOptions, __ΩGetDependencyConfigResult, __ΩGetHookHandlerReturnType, __ΩMergeResult, addPluginHook, colorBackground, colorText, combinePluginOptions, combinePlugins, consoleLog, consoleLogger, createCodeFilter, createFilter, createFilterForId, createFilterForTransform, createIdFilter, createLogFn, createLogger, dedupeHooklist, extend, extendLogFn, extendLogger, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getDocsOutputPath, getHookHandler, getOrganizationName, getTextColor, getWorkspaceName, isBuiltinModule, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, isValidLogLevel, isValidLogLevelConfig, isVerbose, merge, mergeConfig, normalizeFilter, patternToCodeFilter, patternToIdFilter, replacePathTokens, resolveLogLevel, withCustomLogger, withLogger };
@@ -9,7 +9,7 @@ import { getDocsOutputPath } from "./docs-helper.mjs";
9
9
  import { extend } from "./extend.mjs";
10
10
  import { createCodeFilter, createFilter, createFilterForId, createFilterForTransform, createIdFilter, normalizeFilter, patternToCodeFilter, patternToIdFilter } from "./filter.mjs";
11
11
  import { getConfigPath } from "./get-config-path.mjs";
12
- import { isVerbose } from "./logging.mjs";
12
+ import { colorBackground, colorText, consoleLog, consoleLogger, createLogFn, createLogger, extendLogFn, extendLogger, getTextColor, isValidLogLevel, isValidLogLevelConfig, isVerbose, resolveLogLevel, withCustomLogger, withLogger } from "./logging.mjs";
13
13
  import { isBuiltinModule } from "./modules.mjs";
14
14
 
15
- export { addPluginHook, combinePluginOptions, combinePlugins, createCodeFilter, createFilter, createFilterForId, createFilterForTransform, createIdFilter, dedupeHooklist, extend, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getDocsOutputPath, getHookHandler, getOrganizationName, getWorkspaceName, isBuiltinModule, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, isVerbose, merge, mergeConfig, normalizeFilter, patternToCodeFilter, patternToIdFilter, replacePathTokens };
15
+ export { addPluginHook, colorBackground, colorText, combinePluginOptions, combinePlugins, consoleLog, consoleLogger, createCodeFilter, createFilter, createFilterForId, createFilterForTransform, createIdFilter, createLogFn, createLogger, dedupeHooklist, extend, extendLogFn, extendLogger, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getDocsOutputPath, getHookHandler, getOrganizationName, getTextColor, getWorkspaceName, isBuiltinModule, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, isValidLogLevel, isValidLogLevelConfig, isVerbose, merge, mergeConfig, normalizeFilter, patternToCodeFilter, patternToIdFilter, replacePathTokens, resolveLogLevel, withCustomLogger, withLogger };