@powerlines/core 0.15.0 → 0.15.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.
- package/dist/constants/api.cjs +6 -5
- package/dist/constants/api.d.cts +3 -3
- package/dist/constants/api.d.cts.map +1 -1
- package/dist/constants/api.d.mts +3 -3
- package/dist/constants/api.d.mts.map +1 -1
- package/dist/constants/api.mjs +4 -4
- package/dist/constants/api.mjs.map +1 -1
- package/dist/constants/commands.cjs +3 -2
- package/dist/constants/commands.d.cts +1 -1
- package/dist/constants/commands.d.mts +1 -1
- package/dist/constants/commands.mjs +2 -2
- package/dist/constants/commands.mjs.map +1 -1
- package/dist/constants/devtools.cjs +23 -0
- package/dist/constants/devtools.d.cts +13 -0
- package/dist/constants/devtools.d.cts.map +1 -0
- package/dist/constants/devtools.d.mts +13 -0
- package/dist/constants/devtools.d.mts.map +1 -0
- package/dist/constants/devtools.mjs +14 -0
- package/dist/constants/devtools.mjs.map +1 -0
- package/dist/constants/environments.cjs +1 -0
- package/dist/constants/extensions.cjs +21 -0
- package/dist/constants/extensions.d.cts +5 -0
- package/dist/constants/extensions.d.cts.map +1 -0
- package/dist/constants/extensions.d.mts +5 -0
- package/dist/constants/extensions.d.mts.map +1 -0
- package/dist/constants/extensions.mjs +20 -0
- package/dist/constants/extensions.mjs.map +1 -0
- package/dist/constants/fs.cjs +1 -0
- package/dist/constants/hooks.cjs +1 -0
- package/dist/constants/index.cjs +48 -30
- package/dist/constants/index.d.cts +5 -3
- package/dist/constants/index.d.mts +5 -3
- package/dist/constants/index.mjs +5 -3
- package/dist/constants/log-level.cjs +90 -0
- package/dist/constants/log-level.d.cts +63 -0
- package/dist/constants/log-level.d.cts.map +1 -0
- package/dist/constants/log-level.d.mts +63 -0
- package/dist/constants/log-level.d.mts.map +1 -0
- package/dist/constants/log-level.mjs +82 -0
- package/dist/constants/log-level.mjs.map +1 -0
- package/dist/constants/meta.cjs +1 -0
- package/dist/constants/plugin.cjs +3 -2
- package/dist/constants/plugin.d.cts +2 -2
- package/dist/constants/plugin.d.mts +2 -2
- package/dist/context/base-context.cjs +127 -0
- package/dist/context/base-context.d.cts +81 -0
- package/dist/context/base-context.d.cts.map +1 -0
- package/dist/context/base-context.d.mts +81 -0
- package/dist/context/base-context.d.mts.map +1 -0
- package/dist/context/base-context.mjs +125 -0
- package/dist/context/base-context.mjs.map +1 -0
- package/dist/context/context.cjs +934 -0
- package/dist/context/context.d.cts +369 -0
- package/dist/context/context.d.cts.map +1 -0
- package/dist/context/context.d.mts +369 -0
- package/dist/context/context.d.mts.map +1 -0
- package/dist/context/context.mjs +932 -0
- package/dist/context/context.mjs.map +1 -0
- package/dist/context/environment-context.cjs +219 -0
- package/dist/context/environment-context.d.cts +100 -0
- package/dist/context/environment-context.d.cts.map +1 -0
- package/dist/context/environment-context.d.mts +100 -0
- package/dist/context/environment-context.d.mts.map +1 -0
- package/dist/context/environment-context.mjs +218 -0
- package/dist/context/environment-context.mjs.map +1 -0
- package/dist/context/execution-context.cjs +230 -0
- package/dist/context/execution-context.d.cts +101 -0
- package/dist/context/execution-context.d.cts.map +1 -0
- package/dist/context/execution-context.d.mts +101 -0
- package/dist/context/execution-context.d.mts.map +1 -0
- package/dist/context/execution-context.mjs +228 -0
- package/dist/context/execution-context.mjs.map +1 -0
- package/dist/context/index.cjs +12 -0
- package/dist/context/index.d.cts +6 -0
- package/dist/context/index.d.mts +6 -0
- package/dist/context/index.mjs +7 -0
- package/dist/context/plugin-context.cjs +83 -0
- package/dist/context/plugin-context.d.cts +18 -0
- package/dist/context/plugin-context.d.cts.map +1 -0
- package/dist/context/plugin-context.d.mts +18 -0
- package/dist/context/plugin-context.d.mts.map +1 -0
- package/dist/context/plugin-context.mjs +82 -0
- package/dist/context/plugin-context.mjs.map +1 -0
- package/dist/index.cjs +62 -9
- package/dist/index.d.cts +20 -9
- package/dist/index.d.mts +20 -9
- package/dist/index.mjs +17 -5
- package/dist/lib/config.cjs +160 -15
- package/dist/lib/config.d.cts +92 -6
- package/dist/lib/config.d.cts.map +1 -1
- package/dist/lib/config.d.mts +92 -6
- package/dist/lib/config.d.mts.map +1 -1
- package/dist/lib/config.mjs +154 -16
- package/dist/lib/config.mjs.map +1 -1
- package/dist/lib/context-helpers.cjs +43 -0
- package/dist/lib/context-helpers.d.cts +19 -0
- package/dist/lib/context-helpers.d.cts.map +1 -0
- package/dist/lib/context-helpers.d.mts +19 -0
- package/dist/lib/context-helpers.d.mts.map +1 -0
- package/dist/lib/context-helpers.mjs +41 -0
- package/dist/lib/context-helpers.mjs.map +1 -0
- package/dist/lib/entry.cjs +5 -5
- package/dist/lib/entry.d.cts +5 -5
- package/dist/lib/entry.d.cts.map +1 -1
- package/dist/lib/entry.d.mts +5 -5
- package/dist/lib/entry.d.mts.map +1 -1
- package/dist/lib/entry.mjs +5 -5
- package/dist/lib/entry.mjs.map +1 -1
- package/dist/lib/environment.cjs +72 -0
- package/dist/lib/environment.d.cts +12 -0
- package/dist/lib/environment.d.cts.map +1 -0
- package/dist/lib/environment.d.mts +12 -0
- package/dist/lib/environment.d.mts.map +1 -0
- package/dist/lib/environment.mjs +67 -0
- package/dist/lib/environment.mjs.map +1 -0
- package/dist/lib/events.cjs +43 -0
- package/dist/lib/events.d.cts +10 -0
- package/dist/lib/events.d.cts.map +1 -0
- package/dist/lib/events.d.mts +10 -0
- package/dist/lib/events.d.mts.map +1 -0
- package/dist/lib/events.mjs +42 -0
- package/dist/lib/events.mjs.map +1 -0
- package/dist/lib/generate-types.cjs +371 -0
- package/dist/lib/generate-types.d.cts +67 -0
- package/dist/lib/generate-types.d.cts.map +1 -0
- package/dist/lib/generate-types.d.mts +67 -0
- package/dist/lib/generate-types.d.mts.map +1 -0
- package/dist/lib/generate-types.mjs +368 -0
- package/dist/lib/generate-types.mjs.map +1 -0
- package/dist/lib/hooks.cjs +152 -0
- package/dist/lib/hooks.d.cts +28 -0
- package/dist/lib/hooks.d.cts.map +1 -0
- package/dist/lib/hooks.d.mts +28 -0
- package/dist/lib/hooks.d.mts.map +1 -0
- package/dist/lib/hooks.mjs +147 -0
- package/dist/lib/hooks.mjs.map +1 -0
- package/dist/lib/index.cjs +64 -9
- package/dist/lib/index.d.cts +15 -3
- package/dist/lib/index.d.mts +15 -3
- package/dist/lib/index.mjs +19 -5
- package/dist/lib/install-dependencies.cjs +25 -0
- package/dist/lib/install-dependencies.d.cts +12 -0
- package/dist/lib/install-dependencies.d.cts.map +1 -0
- package/dist/lib/install-dependencies.d.mts +12 -0
- package/dist/lib/install-dependencies.d.mts.map +1 -0
- package/dist/lib/install-dependencies.mjs +24 -0
- package/dist/lib/install-dependencies.mjs.map +1 -0
- package/dist/lib/meta.cjs +57 -0
- package/dist/lib/meta.d.cts +34 -0
- package/dist/lib/meta.d.cts.map +1 -0
- package/dist/lib/meta.d.mts +34 -0
- package/dist/lib/meta.d.mts.map +1 -0
- package/dist/lib/meta.mjs +54 -0
- package/dist/lib/meta.mjs.map +1 -0
- package/dist/lib/plugins.cjs +150 -0
- package/dist/lib/plugins.d.cts +40 -0
- package/dist/lib/plugins.d.cts.map +1 -0
- package/dist/lib/plugins.d.mts +40 -0
- package/dist/lib/plugins.d.mts.map +1 -0
- package/dist/lib/plugins.mjs +146 -0
- package/dist/lib/plugins.mjs.map +1 -0
- package/dist/lib/resolver.cjs +35 -0
- package/dist/lib/resolver.d.cts +21 -0
- package/dist/lib/resolver.d.cts.map +1 -0
- package/dist/lib/resolver.d.mts +21 -0
- package/dist/lib/resolver.d.mts.map +1 -0
- package/dist/lib/resolver.mjs +33 -0
- package/dist/lib/resolver.mjs.map +1 -0
- package/dist/lib/schemas.cjs +9 -0
- package/dist/lib/schemas.d.cts +2 -0
- package/dist/lib/schemas.d.mts +2 -0
- package/dist/lib/schemas.mjs +3 -0
- package/dist/lib/streaming-channel.cjs +260 -0
- package/dist/lib/streaming-channel.d.cts +133 -0
- package/dist/lib/streaming-channel.d.cts.map +1 -0
- package/dist/lib/streaming-channel.d.mts +133 -0
- package/dist/lib/streaming-channel.d.mts.map +1 -0
- package/dist/lib/streaming-channel.mjs +258 -0
- package/dist/lib/streaming-channel.mjs.map +1 -0
- package/dist/lib/typescript/index.cjs +16 -0
- package/dist/lib/typescript/index.d.cts +3 -0
- package/dist/lib/typescript/index.d.mts +3 -0
- package/dist/lib/typescript/index.mjs +4 -0
- package/dist/lib/typescript/ts-morph.cjs +105 -0
- package/dist/lib/typescript/ts-morph.d.cts +38 -0
- package/dist/lib/typescript/ts-morph.d.cts.map +1 -0
- package/dist/lib/typescript/ts-morph.d.mts +38 -0
- package/dist/lib/typescript/ts-morph.d.mts.map +1 -0
- package/dist/lib/typescript/ts-morph.mjs +102 -0
- package/dist/lib/typescript/ts-morph.mjs.map +1 -0
- package/dist/lib/typescript/tsconfig.cjs +253 -0
- package/dist/lib/typescript/tsconfig.d.cts +77 -0
- package/dist/lib/typescript/tsconfig.d.cts.map +1 -0
- package/dist/lib/typescript/tsconfig.d.mts +77 -0
- package/dist/lib/typescript/tsconfig.d.mts.map +1 -0
- package/dist/lib/typescript/tsconfig.mjs +240 -0
- package/dist/lib/typescript/tsconfig.mjs.map +1 -0
- package/dist/lib/unplugin/helpers.cjs +2 -2
- package/dist/lib/unplugin/module-resolution.cjs +18 -18
- package/dist/lib/unplugin/module-resolution.d.cts +2 -2
- package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
- package/dist/lib/unplugin/module-resolution.d.mts +2 -2
- package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
- package/dist/lib/unplugin/module-resolution.mjs +18 -18
- package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.cjs +55 -62
- package/dist/lib/unplugin/plugin.d.cts +11 -12
- package/dist/lib/unplugin/plugin.d.cts.map +1 -1
- package/dist/lib/unplugin/plugin.d.mts +11 -12
- package/dist/lib/unplugin/plugin.d.mts.map +1 -1
- package/dist/lib/unplugin/plugin.mjs +55 -62
- package/dist/lib/unplugin/plugin.mjs.map +1 -1
- package/dist/lib/utilities/file-header.cjs +2 -2
- package/dist/lib/utilities/file-header.mjs +2 -2
- package/dist/lib/utilities/file-header.mjs.map +1 -1
- package/dist/lib/utilities/format.cjs +1 -1
- package/dist/lib/utilities/format.mjs +1 -1
- package/dist/lib/utilities/index.cjs +2 -2
- package/dist/lib/utilities/index.mjs +2 -2
- package/dist/lib/utilities/write-file.cjs +1 -2
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.cts.map +1 -1
- package/dist/lib/utilities/write-file.d.mts +1 -1
- package/dist/lib/utilities/write-file.d.mts.map +1 -1
- package/dist/lib/utilities/write-file.mjs +1 -2
- package/dist/lib/utilities/write-file.mjs.map +1 -1
- package/dist/lib/vfs.cjs +1104 -0
- package/dist/lib/vfs.d.cts +321 -0
- package/dist/lib/vfs.d.cts.map +1 -0
- package/dist/lib/vfs.d.mts +321 -0
- package/dist/lib/vfs.d.mts.map +1 -0
- package/dist/lib/vfs.mjs +1102 -0
- package/dist/lib/vfs.mjs.map +1 -0
- package/dist/plugin-base.cjs +1 -1
- package/dist/plugin-base.mjs +1 -1
- package/dist/plugin-base.mjs.map +1 -1
- package/dist/plugin-utils/build-helpers.cjs +2 -2
- package/dist/plugin-utils/build-helpers.d.cts +2 -2
- package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/build-helpers.d.mts +2 -2
- package/dist/plugin-utils/build-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/build-helpers.mjs +2 -2
- package/dist/plugin-utils/build-helpers.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +22 -12
- package/dist/plugin-utils/context-helpers.d.cts +9 -1
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +9 -1
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +22 -13
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/filter.cjs +13 -5
- package/dist/plugin-utils/filter.d.cts +2 -1
- package/dist/plugin-utils/filter.d.cts.map +1 -1
- package/dist/plugin-utils/filter.d.mts +2 -1
- package/dist/plugin-utils/filter.d.mts.map +1 -1
- package/dist/plugin-utils/filter.mjs +13 -6
- package/dist/plugin-utils/filter.mjs.map +1 -1
- package/dist/plugin-utils/format.cjs +44 -0
- package/dist/plugin-utils/format.d.cts +11 -0
- package/dist/plugin-utils/format.d.cts.map +1 -0
- package/dist/plugin-utils/format.d.mts +11 -0
- package/dist/plugin-utils/format.d.mts.map +1 -0
- package/dist/plugin-utils/format.mjs +43 -0
- package/dist/plugin-utils/format.mjs.map +1 -0
- package/dist/plugin-utils/helpers.cjs +6 -6
- package/dist/plugin-utils/helpers.d.cts +15 -15
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts +15 -15
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/helpers.mjs +1 -1
- package/dist/plugin-utils/helpers.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +34 -4
- package/dist/plugin-utils/index.d.cts +7 -4
- package/dist/plugin-utils/index.d.mts +7 -4
- package/dist/plugin-utils/index.mjs +9 -6
- package/dist/plugin-utils/install.cjs +47 -0
- package/dist/plugin-utils/install.d.cts +23 -0
- package/dist/plugin-utils/install.d.cts.map +1 -0
- package/dist/plugin-utils/install.d.mts +23 -0
- package/dist/plugin-utils/install.d.mts.map +1 -0
- package/dist/plugin-utils/install.mjs +45 -0
- package/dist/plugin-utils/install.mjs.map +1 -0
- package/dist/plugin-utils/logging.cjs +588 -1
- package/dist/plugin-utils/logging.d.cts +93 -1
- package/dist/plugin-utils/logging.d.cts.map +1 -1
- package/dist/plugin-utils/logging.d.mts +93 -1
- package/dist/plugin-utils/logging.d.mts.map +1 -1
- package/dist/plugin-utils/logging.mjs +572 -1
- package/dist/plugin-utils/logging.mjs.map +1 -1
- package/dist/plugin-utils/merge.cjs +1 -1
- package/dist/plugin-utils/merge.mjs +1 -1
- package/dist/plugin-utils/modules.cjs +1 -1
- package/dist/plugin-utils/modules.mjs +1 -1
- package/dist/plugin-utils/modules.mjs.map +1 -1
- package/dist/plugin-utils/paths.cjs +6 -2
- package/dist/plugin-utils/paths.mjs +6 -2
- package/dist/plugin-utils/paths.mjs.map +1 -1
- package/dist/plugin-utils/virtual.cjs +80 -0
- package/dist/plugin-utils/virtual.d.cts +69 -0
- package/dist/plugin-utils/virtual.d.cts.map +1 -0
- package/dist/plugin-utils/virtual.d.mts +69 -0
- package/dist/plugin-utils/virtual.d.mts.map +1 -0
- package/dist/plugin-utils/virtual.mjs +73 -0
- package/dist/plugin-utils/virtual.mjs.map +1 -0
- package/dist/schemas/fs.cjs +232 -0
- package/dist/schemas/fs.d.cts +127 -0
- package/dist/schemas/fs.d.cts.map +1 -0
- package/dist/schemas/fs.d.mts +127 -0
- package/dist/schemas/fs.d.mts.map +1 -0
- package/dist/schemas/fs.mjs +226 -0
- package/dist/schemas/fs.mjs.map +1 -0
- package/dist/storage/base.cjs +216 -0
- package/dist/storage/base.d.cts +201 -0
- package/dist/storage/base.d.cts.map +1 -0
- package/dist/storage/base.d.mts +201 -0
- package/dist/storage/base.d.mts.map +1 -0
- package/dist/storage/base.mjs +215 -0
- package/dist/storage/base.mjs.map +1 -0
- package/dist/storage/file-system.cjs +180 -0
- package/dist/storage/file-system.d.cts +129 -0
- package/dist/storage/file-system.d.cts.map +1 -0
- package/dist/storage/file-system.d.mts +129 -0
- package/dist/storage/file-system.d.mts.map +1 -0
- package/dist/storage/file-system.mjs +179 -0
- package/dist/storage/file-system.mjs.map +1 -0
- package/dist/storage/helpers.cjs +37 -0
- package/dist/storage/helpers.d.cts +25 -0
- package/dist/storage/helpers.d.cts.map +1 -0
- package/dist/storage/helpers.d.mts +25 -0
- package/dist/storage/helpers.d.mts.map +1 -0
- package/dist/storage/helpers.mjs +34 -0
- package/dist/storage/helpers.mjs.map +1 -0
- package/dist/storage/index.cjs +12 -0
- package/dist/storage/index.d.cts +5 -0
- package/dist/storage/index.d.mts +5 -0
- package/dist/storage/index.mjs +6 -0
- package/dist/storage/virtual.cjs +98 -0
- package/dist/storage/virtual.d.cts +80 -0
- package/dist/storage/virtual.d.cts.map +1 -0
- package/dist/storage/virtual.d.mts +80 -0
- package/dist/storage/virtual.d.mts.map +1 -0
- package/dist/storage/virtual.mjs +97 -0
- package/dist/storage/virtual.mjs.map +1 -0
- package/dist/types/api.d.cts +18 -152
- package/dist/types/api.d.cts.map +1 -1
- package/dist/types/api.d.mts +18 -152
- package/dist/types/api.d.mts.map +1 -1
- package/dist/types/config.d.cts +194 -135
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +195 -136
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/context.d.cts +140 -130
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +143 -133
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/fs.d.mts +1 -1
- package/dist/types/index.d.cts +5 -6
- package/dist/types/index.d.mts +5 -6
- package/dist/types/logging.d.cts +161 -0
- package/dist/types/logging.d.cts.map +1 -0
- package/dist/types/logging.d.mts +161 -0
- package/dist/types/logging.d.mts.map +1 -0
- package/dist/types/plugin.d.cts +6 -9
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +6 -9
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/tsconfig.d.mts +1 -1
- package/dist/types/unplugin.d.cts +6 -27
- package/dist/types/unplugin.d.cts.map +1 -1
- package/dist/types/unplugin.d.mts +6 -27
- package/dist/types/unplugin.d.mts.map +1 -1
- package/package.json +259 -457
- package/schemas/fs.capnp +42 -0
- package/dist/constants/virtual-modules.cjs +0 -8
- package/dist/constants/virtual-modules.d.cts +0 -6
- package/dist/constants/virtual-modules.d.cts.map +0 -1
- package/dist/constants/virtual-modules.d.mts +0 -6
- package/dist/constants/virtual-modules.d.mts.map +0 -1
- package/dist/constants/virtual-modules.mjs +0 -7
- package/dist/constants/virtual-modules.mjs.map +0 -1
- package/dist/lib/logger.cjs +0 -99
- package/dist/lib/logger.d.cts +0 -53
- package/dist/lib/logger.d.cts.map +0 -1
- package/dist/lib/logger.d.mts +0 -53
- package/dist/lib/logger.d.mts.map +0 -1
- package/dist/lib/logger.mjs +0 -93
- package/dist/lib/logger.mjs.map +0 -1
- package/dist/types/_internal.cjs +0 -0
- package/dist/types/_internal.d.cts +0 -106
- package/dist/types/_internal.d.cts.map +0 -1
- package/dist/types/_internal.d.mts +0 -106
- package/dist/types/_internal.d.mts.map +0 -1
- package/dist/types/_internal.mjs +0 -1
- package/dist/types/commands.d.cts +0 -16
- package/dist/types/commands.d.cts.map +0 -1
- package/dist/types/commands.d.mts +0 -16
- package/dist/types/commands.d.mts.map +0 -1
- package/dist/types/utils.d.cts +0 -9
- package/dist/types/utils.d.cts.map +0 -1
- package/dist/types/utils.d.mts +0 -9
- package/dist/types/utils.d.mts.map +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
//#region src/constants/log-level.d.ts
|
|
2
|
+
declare const LogLevels: {
|
|
3
|
+
readonly SILENT: "silent";
|
|
4
|
+
readonly ERROR: "error";
|
|
5
|
+
readonly WARN: "warn";
|
|
6
|
+
readonly INFO: "info";
|
|
7
|
+
readonly DEBUG: "debug";
|
|
8
|
+
readonly TRACE: "trace";
|
|
9
|
+
};
|
|
10
|
+
declare const LOG_LEVELS: readonly ["silent", "error", "warn", "info", "debug", "trace"];
|
|
11
|
+
declare const LogCategories: {
|
|
12
|
+
readonly GENERAL: "general";
|
|
13
|
+
readonly FS: "fs";
|
|
14
|
+
readonly PERFORMANCE: "performance";
|
|
15
|
+
readonly CONFIG: "config";
|
|
16
|
+
readonly PLUGINS: "plugins";
|
|
17
|
+
readonly HOOKS: "hooks";
|
|
18
|
+
readonly ENV: "env";
|
|
19
|
+
readonly RPC: "rpc";
|
|
20
|
+
readonly BABEL: "babel";
|
|
21
|
+
readonly COMMUNICATION: "communication";
|
|
22
|
+
};
|
|
23
|
+
declare const LOG_CATEGORIES_ARRAY: ("plugins" | "general" | "fs" | "performance" | "config" | "hooks" | "env" | "rpc" | "babel" | "communication")[];
|
|
24
|
+
declare const LOG_CATEGORIES: readonly ["general", "fs", "performance", "config", "plugins", "hooks", "env", "rpc", "communication", "babel"];
|
|
25
|
+
declare const DEFAULT_DEVELOPMENT_LOG_LEVEL: {
|
|
26
|
+
readonly general: "debug";
|
|
27
|
+
readonly fs: "info";
|
|
28
|
+
readonly config: "warn";
|
|
29
|
+
readonly plugins: "debug";
|
|
30
|
+
readonly hooks: "debug";
|
|
31
|
+
readonly performance: "debug";
|
|
32
|
+
readonly env: "info";
|
|
33
|
+
readonly rpc: "info";
|
|
34
|
+
readonly communication: "debug";
|
|
35
|
+
readonly babel: "debug";
|
|
36
|
+
};
|
|
37
|
+
declare const DEFAULT_TEST_LOG_LEVEL: {
|
|
38
|
+
readonly general: "info";
|
|
39
|
+
readonly fs: "warn";
|
|
40
|
+
readonly config: "warn";
|
|
41
|
+
readonly plugins: "warn";
|
|
42
|
+
readonly hooks: "warn";
|
|
43
|
+
readonly performance: "info";
|
|
44
|
+
readonly env: "warn";
|
|
45
|
+
readonly rpc: "warn";
|
|
46
|
+
readonly communication: "warn";
|
|
47
|
+
readonly babel: "warn";
|
|
48
|
+
};
|
|
49
|
+
declare const DEFAULT_PRODUCTION_LOG_LEVEL: {
|
|
50
|
+
readonly general: "warn";
|
|
51
|
+
readonly fs: "error";
|
|
52
|
+
readonly config: "error";
|
|
53
|
+
readonly plugins: "warn";
|
|
54
|
+
readonly hooks: "warn";
|
|
55
|
+
readonly performance: "info";
|
|
56
|
+
readonly env: "error";
|
|
57
|
+
readonly rpc: "error";
|
|
58
|
+
readonly communication: "error";
|
|
59
|
+
readonly babel: "warn";
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
export { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels };
|
|
63
|
+
//# sourceMappingURL=log-level.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-level.d.mts","names":[],"sources":["../../src/constants/log-level.ts"],"mappings":";cAkBa,SAAA;EAAA;;;;;;;cASA,UAAA;AAAA,cASA,aAAA;EAAA;;;;;;;;;;;cAaA,oBAAA;AAAA,cAEA,cAAA;AAAA,cAaA,6BAAA;EAAA;;;;;;;;;;;cAaA,sBAAA;EAAA;;;;;;;;;;;cAaA,4BAAA;EAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
//#region src/constants/log-level.ts
|
|
2
|
+
const LogLevels = {
|
|
3
|
+
SILENT: "silent",
|
|
4
|
+
ERROR: "error",
|
|
5
|
+
WARN: "warn",
|
|
6
|
+
INFO: "info",
|
|
7
|
+
DEBUG: "debug",
|
|
8
|
+
TRACE: "trace"
|
|
9
|
+
};
|
|
10
|
+
const LOG_LEVELS = [
|
|
11
|
+
LogLevels.SILENT,
|
|
12
|
+
LogLevels.ERROR,
|
|
13
|
+
LogLevels.WARN,
|
|
14
|
+
LogLevels.INFO,
|
|
15
|
+
LogLevels.DEBUG,
|
|
16
|
+
LogLevels.TRACE
|
|
17
|
+
];
|
|
18
|
+
const LogCategories = {
|
|
19
|
+
GENERAL: "general",
|
|
20
|
+
FS: "fs",
|
|
21
|
+
PERFORMANCE: "performance",
|
|
22
|
+
CONFIG: "config",
|
|
23
|
+
PLUGINS: "plugins",
|
|
24
|
+
HOOKS: "hooks",
|
|
25
|
+
ENV: "env",
|
|
26
|
+
RPC: "rpc",
|
|
27
|
+
BABEL: "babel",
|
|
28
|
+
COMMUNICATION: "communication"
|
|
29
|
+
};
|
|
30
|
+
const LOG_CATEGORIES_ARRAY = Object.values(LogCategories);
|
|
31
|
+
const LOG_CATEGORIES = [
|
|
32
|
+
LogCategories.GENERAL,
|
|
33
|
+
LogCategories.FS,
|
|
34
|
+
LogCategories.PERFORMANCE,
|
|
35
|
+
LogCategories.CONFIG,
|
|
36
|
+
LogCategories.PLUGINS,
|
|
37
|
+
LogCategories.HOOKS,
|
|
38
|
+
LogCategories.ENV,
|
|
39
|
+
LogCategories.RPC,
|
|
40
|
+
LogCategories.COMMUNICATION,
|
|
41
|
+
LogCategories.BABEL
|
|
42
|
+
];
|
|
43
|
+
const DEFAULT_DEVELOPMENT_LOG_LEVEL = {
|
|
44
|
+
general: "debug",
|
|
45
|
+
fs: "info",
|
|
46
|
+
config: "warn",
|
|
47
|
+
plugins: "debug",
|
|
48
|
+
hooks: "debug",
|
|
49
|
+
performance: "debug",
|
|
50
|
+
env: "info",
|
|
51
|
+
rpc: "info",
|
|
52
|
+
communication: "debug",
|
|
53
|
+
babel: "debug"
|
|
54
|
+
};
|
|
55
|
+
const DEFAULT_TEST_LOG_LEVEL = {
|
|
56
|
+
general: "info",
|
|
57
|
+
fs: "warn",
|
|
58
|
+
config: "warn",
|
|
59
|
+
plugins: "warn",
|
|
60
|
+
hooks: "warn",
|
|
61
|
+
performance: "info",
|
|
62
|
+
env: "warn",
|
|
63
|
+
rpc: "warn",
|
|
64
|
+
communication: "warn",
|
|
65
|
+
babel: "warn"
|
|
66
|
+
};
|
|
67
|
+
const DEFAULT_PRODUCTION_LOG_LEVEL = {
|
|
68
|
+
general: "warn",
|
|
69
|
+
fs: "error",
|
|
70
|
+
config: "error",
|
|
71
|
+
plugins: "warn",
|
|
72
|
+
hooks: "warn",
|
|
73
|
+
performance: "info",
|
|
74
|
+
env: "error",
|
|
75
|
+
rpc: "error",
|
|
76
|
+
communication: "error",
|
|
77
|
+
babel: "warn"
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
export { DEFAULT_DEVELOPMENT_LOG_LEVEL, DEFAULT_PRODUCTION_LOG_LEVEL, DEFAULT_TEST_LOG_LEVEL, LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels };
|
|
82
|
+
//# sourceMappingURL=log-level.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-level.mjs","names":[],"sources":["../../src/constants/log-level.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\nexport const LogLevels = {\n SILENT: \"silent\",\n ERROR: \"error\",\n WARN: \"warn\",\n INFO: \"info\",\n DEBUG: \"debug\",\n TRACE: \"trace\"\n} as const;\n\nexport const LOG_LEVELS = [\n LogLevels.SILENT,\n LogLevels.ERROR,\n LogLevels.WARN,\n LogLevels.INFO,\n LogLevels.DEBUG,\n LogLevels.TRACE\n] as const;\n\nexport const LogCategories = {\n GENERAL: \"general\",\n FS: \"fs\",\n PERFORMANCE: \"performance\",\n CONFIG: \"config\",\n PLUGINS: \"plugins\",\n HOOKS: \"hooks\",\n ENV: \"env\",\n RPC: \"rpc\",\n BABEL: \"babel\",\n COMMUNICATION: \"communication\"\n} as const;\n\nexport const LOG_CATEGORIES_ARRAY = Object.values(LogCategories);\n\nexport const LOG_CATEGORIES = [\n LogCategories.GENERAL,\n LogCategories.FS,\n LogCategories.PERFORMANCE,\n LogCategories.CONFIG,\n LogCategories.PLUGINS,\n LogCategories.HOOKS,\n LogCategories.ENV,\n LogCategories.RPC,\n LogCategories.COMMUNICATION,\n LogCategories.BABEL\n] as const;\n\nexport const DEFAULT_DEVELOPMENT_LOG_LEVEL = {\n general: \"debug\",\n fs: \"info\",\n config: \"warn\",\n plugins: \"debug\",\n hooks: \"debug\",\n performance: \"debug\",\n env: \"info\",\n rpc: \"info\",\n communication: \"debug\",\n babel: \"debug\"\n} as const;\n\nexport const DEFAULT_TEST_LOG_LEVEL = {\n general: \"info\",\n fs: \"warn\",\n config: \"warn\",\n plugins: \"warn\",\n hooks: \"warn\",\n performance: \"info\",\n env: \"warn\",\n rpc: \"warn\",\n communication: \"warn\",\n babel: \"warn\"\n} as const;\n\nexport const DEFAULT_PRODUCTION_LOG_LEVEL = {\n general: \"warn\",\n fs: \"error\",\n config: \"error\",\n plugins: \"warn\",\n hooks: \"warn\",\n performance: \"info\",\n env: \"error\",\n rpc: \"error\",\n communication: \"error\",\n babel: \"warn\"\n} as const;\n"],"mappings":";AAkBA,MAAa,YAAY;CACvB,QAAQ;CACR,OAAO;CACP,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;CACR;AAED,MAAa,aAAa;CACxB,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACX;AAED,MAAa,gBAAgB;CAC3B,SAAS;CACT,IAAI;CACJ,aAAa;CACb,QAAQ;CACR,SAAS;CACT,OAAO;CACP,KAAK;CACL,KAAK;CACL,OAAO;CACP,eAAe;CAChB;AAED,MAAa,uBAAuB,OAAO,OAAO,cAAc;AAEhE,MAAa,iBAAiB;CAC5B,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACf;AAED,MAAa,gCAAgC;CAC3C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;CACR;AAED,MAAa,yBAAyB;CACpC,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;CACR;AAED,MAAa,+BAA+B;CAC1C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;CACR"}
|
package/dist/constants/meta.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_constants_commands = require('./commands.cjs');
|
|
2
3
|
|
|
3
4
|
//#region src/constants/plugin.ts
|
|
4
5
|
const UNPLUGIN_BUILDER_VARIANTS = [
|
|
@@ -26,7 +27,7 @@ const PLUGIN_NON_HOOK_FIELDS = [
|
|
|
26
27
|
"applyToEnvironment"
|
|
27
28
|
];
|
|
28
29
|
const PLUGIN_HOOKS_FIELDS = [
|
|
29
|
-
...
|
|
30
|
+
...require_constants_commands.SUPPORTED_COMMANDS,
|
|
30
31
|
"config",
|
|
31
32
|
"configEnvironment",
|
|
32
33
|
"configResolved",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
declare const UNPLUGIN_BUILDER_VARIANTS: readonly ["rollup", "webpack", "rspack", "vite", "esbuild", "farm", "unloader", "rolldown", "bun"];
|
|
3
3
|
declare const BUILDER_VARIANTS: readonly ["rollup", "webpack", "rspack", "vite", "esbuild", "farm", "unloader", "rolldown", "bun", "tsup", "tsdown", "unbuild"];
|
|
4
4
|
declare const PLUGIN_NON_HOOK_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment"];
|
|
5
|
-
declare const PLUGIN_HOOKS_FIELDS: readonly [
|
|
6
|
-
declare const KNOWN_PLUGIN_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment",
|
|
5
|
+
declare const PLUGIN_HOOKS_FIELDS: readonly [...string[], "config", "configEnvironment", "configResolved", "types", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle"];
|
|
6
|
+
declare const KNOWN_PLUGIN_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment", ...string[], "config", "configEnvironment", "configResolved", "types", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle", "rollup", "webpack", "rspack", "vite", "esbuild", "farm", "unloader", "rolldown", "bun", "tsup", "tsdown", "unbuild"];
|
|
7
7
|
//#endregion
|
|
8
8
|
export { BUILDER_VARIANTS, KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, UNPLUGIN_BUILDER_VARIANTS };
|
|
9
9
|
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
declare const UNPLUGIN_BUILDER_VARIANTS: readonly ["rollup", "webpack", "rspack", "vite", "esbuild", "farm", "unloader", "rolldown", "bun"];
|
|
3
3
|
declare const BUILDER_VARIANTS: readonly ["rollup", "webpack", "rspack", "vite", "esbuild", "farm", "unloader", "rolldown", "bun", "tsup", "tsdown", "unbuild"];
|
|
4
4
|
declare const PLUGIN_NON_HOOK_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment"];
|
|
5
|
-
declare const PLUGIN_HOOKS_FIELDS: readonly [
|
|
6
|
-
declare const KNOWN_PLUGIN_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment",
|
|
5
|
+
declare const PLUGIN_HOOKS_FIELDS: readonly [...string[], "config", "configEnvironment", "configResolved", "types", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle"];
|
|
6
|
+
declare const KNOWN_PLUGIN_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment", ...string[], "config", "configEnvironment", "configResolved", "types", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle", "rollup", "webpack", "rspack", "vite", "esbuild", "farm", "unloader", "rolldown", "bun", "tsup", "tsdown", "unbuild"];
|
|
7
7
|
//#endregion
|
|
8
8
|
export { BUILDER_VARIANTS, KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, UNPLUGIN_BUILDER_VARIANTS };
|
|
9
9
|
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_plugin_utils_logging = require('../plugin-utils/logging.cjs');
|
|
4
|
+
let chalk = require("chalk");
|
|
5
|
+
chalk = require_runtime.__toESM(chalk, 1);
|
|
6
|
+
let _stryke_fs_resolve = require("@stryke/fs/resolve");
|
|
7
|
+
let date_fns_formatDistanceToNowStrict = require("date-fns/formatDistanceToNowStrict");
|
|
8
|
+
|
|
9
|
+
//#region src/context/base-context.ts
|
|
10
|
+
var PowerlinesBaseContext = class {
|
|
11
|
+
#timestamp = Date.now();
|
|
12
|
+
powerlinesPath;
|
|
13
|
+
system;
|
|
14
|
+
get logger() {
|
|
15
|
+
return this.createLogger();
|
|
16
|
+
}
|
|
17
|
+
get cwd() {
|
|
18
|
+
return this.options.cwd || process.cwd();
|
|
19
|
+
}
|
|
20
|
+
get timestamp() {
|
|
21
|
+
return this.#timestamp;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Initialize the context with the provided configuration options and set up the resolver and user configuration file. This method is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup as the original context.
|
|
25
|
+
*
|
|
26
|
+
* @param options - The configuration options to initialize the context with, which can include properties such as the project root, mode, log level, and other settings that affect the behavior of the context and its plugins.
|
|
27
|
+
*/
|
|
28
|
+
constructor(options) {
|
|
29
|
+
this.options = options;
|
|
30
|
+
}
|
|
31
|
+
extendLogger(options) {
|
|
32
|
+
return require_plugin_utils_logging.extendLogger(this.logger, options);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A logging function for fatal messages
|
|
36
|
+
*
|
|
37
|
+
* @param message - The message to log.
|
|
38
|
+
*/
|
|
39
|
+
fatal(message) {
|
|
40
|
+
this.logger.error(message instanceof Error ? {
|
|
41
|
+
meta: {},
|
|
42
|
+
message: message.message,
|
|
43
|
+
error: message
|
|
44
|
+
} : message);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A logging function for error messages
|
|
48
|
+
*
|
|
49
|
+
* @param message - The message to log.
|
|
50
|
+
*/
|
|
51
|
+
error(message) {
|
|
52
|
+
this.logger.error(message instanceof Error ? {
|
|
53
|
+
meta: {},
|
|
54
|
+
message: message.message,
|
|
55
|
+
error: message
|
|
56
|
+
} : message);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A logging function for warning messages
|
|
60
|
+
*
|
|
61
|
+
* @param message - The message to log.
|
|
62
|
+
*/
|
|
63
|
+
warn(message) {
|
|
64
|
+
this.logger.warn(message);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A logging function for informational messages
|
|
68
|
+
*
|
|
69
|
+
* @param message - The message to log.
|
|
70
|
+
*/
|
|
71
|
+
info(message) {
|
|
72
|
+
this.logger.info(message);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A logging function for debug messages
|
|
76
|
+
*
|
|
77
|
+
* @param message - The message to log.
|
|
78
|
+
*/
|
|
79
|
+
debug(message) {
|
|
80
|
+
this.logger.debug(message);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* A logging function for trace messages
|
|
84
|
+
*
|
|
85
|
+
* @param message - The message to log.
|
|
86
|
+
*/
|
|
87
|
+
trace(message) {
|
|
88
|
+
this.logger.trace(message);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* A function to create a timer for measuring the duration of asynchronous operations
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* const stopTimer = context.timer("Your Async Operation");
|
|
96
|
+
* await performAsyncOperation();
|
|
97
|
+
* stopTimer(); // "Your Async Operation completed in 123.45 milliseconds"
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @param name - The name of the timer.
|
|
101
|
+
* @returns A function that, when called, stops the timer and logs the duration.
|
|
102
|
+
*/
|
|
103
|
+
timer(name) {
|
|
104
|
+
const startDate = Date.now();
|
|
105
|
+
const startDuration = performance.now();
|
|
106
|
+
return () => {
|
|
107
|
+
const duration = performance.now() - startDuration;
|
|
108
|
+
this.logger.info({
|
|
109
|
+
meta: { category: "performance" },
|
|
110
|
+
message: `${chalk.default.bold.cyanBright(name)} completed in ${chalk.default.bold.cyanBright(duration < 1e3 ? `${duration.toFixed(2)} milliseconds` : (0, date_fns_formatDistanceToNowStrict.formatDistanceToNowStrict)(startDate))}`
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Initialize the context with the provided configuration options
|
|
116
|
+
*/
|
|
117
|
+
async init() {
|
|
118
|
+
if (!this.powerlinesPath) {
|
|
119
|
+
const powerlinesPath = await (0, _stryke_fs_resolve.resolvePackage)("powerlines");
|
|
120
|
+
if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
|
|
121
|
+
this.powerlinesPath = powerlinesPath;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
//#endregion
|
|
127
|
+
exports.PowerlinesBaseContext = PowerlinesBaseContext;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { LogFn, LogMessage, Logger, LoggerOptions } from "../types/logging.cjs";
|
|
2
|
+
import { BaseContext } from "../types/context.cjs";
|
|
3
|
+
import { Options } from "../types/config.cjs";
|
|
4
|
+
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
5
|
+
|
|
6
|
+
//#region src/context/base-context.d.ts
|
|
7
|
+
declare abstract class PowerlinesBaseContext<TSystemContext = unknown> implements BaseContext<TSystemContext> {
|
|
8
|
+
#private;
|
|
9
|
+
options: Options;
|
|
10
|
+
powerlinesPath: string;
|
|
11
|
+
system: TSystemContext;
|
|
12
|
+
abstract get envPaths(): EnvPaths;
|
|
13
|
+
get logger(): Logger;
|
|
14
|
+
get cwd(): string;
|
|
15
|
+
get timestamp(): number;
|
|
16
|
+
/**
|
|
17
|
+
* Initialize the context with the provided configuration options and set up the resolver and user configuration file. This method is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup as the original context.
|
|
18
|
+
*
|
|
19
|
+
* @param options - The configuration options to initialize the context with, which can include properties such as the project root, mode, log level, and other settings that affect the behavior of the context and its plugins.
|
|
20
|
+
*/
|
|
21
|
+
protected constructor(options: Options);
|
|
22
|
+
abstract createLogger(options?: LoggerOptions, logFn?: LogFn): Logger;
|
|
23
|
+
extendLogger(options: LoggerOptions): Logger;
|
|
24
|
+
/**
|
|
25
|
+
* A logging function for fatal messages
|
|
26
|
+
*
|
|
27
|
+
* @param message - The message to log.
|
|
28
|
+
*/
|
|
29
|
+
fatal(message: string | LogMessage | Error): void;
|
|
30
|
+
/**
|
|
31
|
+
* A logging function for error messages
|
|
32
|
+
*
|
|
33
|
+
* @param message - The message to log.
|
|
34
|
+
*/
|
|
35
|
+
error(message: string | LogMessage | Error): void;
|
|
36
|
+
/**
|
|
37
|
+
* A logging function for warning messages
|
|
38
|
+
*
|
|
39
|
+
* @param message - The message to log.
|
|
40
|
+
*/
|
|
41
|
+
warn(message: string | LogMessage): void;
|
|
42
|
+
/**
|
|
43
|
+
* A logging function for informational messages
|
|
44
|
+
*
|
|
45
|
+
* @param message - The message to log.
|
|
46
|
+
*/
|
|
47
|
+
info(message: string | LogMessage): void;
|
|
48
|
+
/**
|
|
49
|
+
* A logging function for debug messages
|
|
50
|
+
*
|
|
51
|
+
* @param message - The message to log.
|
|
52
|
+
*/
|
|
53
|
+
debug(message: string | LogMessage): void;
|
|
54
|
+
/**
|
|
55
|
+
* A logging function for trace messages
|
|
56
|
+
*
|
|
57
|
+
* @param message - The message to log.
|
|
58
|
+
*/
|
|
59
|
+
trace(message: string | LogMessage): void;
|
|
60
|
+
/**
|
|
61
|
+
* A function to create a timer for measuring the duration of asynchronous operations
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const stopTimer = context.timer("Your Async Operation");
|
|
66
|
+
* await performAsyncOperation();
|
|
67
|
+
* stopTimer(); // "Your Async Operation completed in 123.45 milliseconds"
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param name - The name of the timer.
|
|
71
|
+
* @returns A function that, when called, stops the timer and logs the duration.
|
|
72
|
+
*/
|
|
73
|
+
timer(name: string): () => void;
|
|
74
|
+
/**
|
|
75
|
+
* Initialize the context with the provided configuration options
|
|
76
|
+
*/
|
|
77
|
+
protected init(): Promise<void>;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
export { PowerlinesBaseContext };
|
|
81
|
+
//# sourceMappingURL=base-context.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-context.d.cts","names":[],"sources":["../../src/context/base-context.ts"],"mappings":";;;;;;uBA2BsB,qBAAA,sCAET,WAAA,CAAY,cAAA;EAAA;EA0BM,OAAA,EAAS,OAAA;EAvB/B,cAAA;EAEA,MAAA,EAAS,cAAA;EAAA,aAEI,QAAA,CAAA,GAAY,QAAA;EAAA,IAErB,MAAA,CAAA,GAAU,MAAA;EAAA,IAIV,GAAA,CAAA;EAAA,IAIA,SAAA,CAAA;EARU;;;;;EAAA,UAiBZ,WAAA,CAAoB,OAAA,EAAS,OAAA;EAAA,SAEtB,YAAA,CAAa,OAAA,GAAU,aAAA,EAAe,KAAA,GAAQ,KAAA,GAAQ,MAAA;EAE/D,YAAA,CAAa,OAAA,EAAS,aAAA,GAAa,MAAA;EASE;;;;;EAArC,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EA6Db;;;;;EA5CxB,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EAxDjC;;;;;EAyEJ,IAAA,CAAK,OAAA,WAAkB,UAAA;EApEvB;;;;;EA6EA,IAAA,CAAK,OAAA,WAAkB,UAAA;EArEnB;;;;;EA8EJ,KAAA,CAAM,OAAA,WAAkB,UAAA;EA/DQ;;;;;EAwEhC,KAAA,CAAM,OAAA,WAAkB,UAAA;EAtEF;;;;;;;;;;;;;EAuFtB,KAAA,CAAM,IAAA;EAnCN;;;EAAA,UAyDS,IAAA,CAAA,GAAI,OAAA;AAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { LogFn, LogMessage, Logger, LoggerOptions } from "../types/logging.mjs";
|
|
2
|
+
import { BaseContext } from "../types/context.mjs";
|
|
3
|
+
import { Options } from "../types/config.mjs";
|
|
4
|
+
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
5
|
+
|
|
6
|
+
//#region src/context/base-context.d.ts
|
|
7
|
+
declare abstract class PowerlinesBaseContext<TSystemContext = unknown> implements BaseContext<TSystemContext> {
|
|
8
|
+
#private;
|
|
9
|
+
options: Options;
|
|
10
|
+
powerlinesPath: string;
|
|
11
|
+
system: TSystemContext;
|
|
12
|
+
abstract get envPaths(): EnvPaths;
|
|
13
|
+
get logger(): Logger;
|
|
14
|
+
get cwd(): string;
|
|
15
|
+
get timestamp(): number;
|
|
16
|
+
/**
|
|
17
|
+
* Initialize the context with the provided configuration options and set up the resolver and user configuration file. This method is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup as the original context.
|
|
18
|
+
*
|
|
19
|
+
* @param options - The configuration options to initialize the context with, which can include properties such as the project root, mode, log level, and other settings that affect the behavior of the context and its plugins.
|
|
20
|
+
*/
|
|
21
|
+
protected constructor(options: Options);
|
|
22
|
+
abstract createLogger(options?: LoggerOptions, logFn?: LogFn): Logger;
|
|
23
|
+
extendLogger(options: LoggerOptions): Logger;
|
|
24
|
+
/**
|
|
25
|
+
* A logging function for fatal messages
|
|
26
|
+
*
|
|
27
|
+
* @param message - The message to log.
|
|
28
|
+
*/
|
|
29
|
+
fatal(message: string | LogMessage | Error): void;
|
|
30
|
+
/**
|
|
31
|
+
* A logging function for error messages
|
|
32
|
+
*
|
|
33
|
+
* @param message - The message to log.
|
|
34
|
+
*/
|
|
35
|
+
error(message: string | LogMessage | Error): void;
|
|
36
|
+
/**
|
|
37
|
+
* A logging function for warning messages
|
|
38
|
+
*
|
|
39
|
+
* @param message - The message to log.
|
|
40
|
+
*/
|
|
41
|
+
warn(message: string | LogMessage): void;
|
|
42
|
+
/**
|
|
43
|
+
* A logging function for informational messages
|
|
44
|
+
*
|
|
45
|
+
* @param message - The message to log.
|
|
46
|
+
*/
|
|
47
|
+
info(message: string | LogMessage): void;
|
|
48
|
+
/**
|
|
49
|
+
* A logging function for debug messages
|
|
50
|
+
*
|
|
51
|
+
* @param message - The message to log.
|
|
52
|
+
*/
|
|
53
|
+
debug(message: string | LogMessage): void;
|
|
54
|
+
/**
|
|
55
|
+
* A logging function for trace messages
|
|
56
|
+
*
|
|
57
|
+
* @param message - The message to log.
|
|
58
|
+
*/
|
|
59
|
+
trace(message: string | LogMessage): void;
|
|
60
|
+
/**
|
|
61
|
+
* A function to create a timer for measuring the duration of asynchronous operations
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const stopTimer = context.timer("Your Async Operation");
|
|
66
|
+
* await performAsyncOperation();
|
|
67
|
+
* stopTimer(); // "Your Async Operation completed in 123.45 milliseconds"
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param name - The name of the timer.
|
|
71
|
+
* @returns A function that, when called, stops the timer and logs the duration.
|
|
72
|
+
*/
|
|
73
|
+
timer(name: string): () => void;
|
|
74
|
+
/**
|
|
75
|
+
* Initialize the context with the provided configuration options
|
|
76
|
+
*/
|
|
77
|
+
protected init(): Promise<void>;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
export { PowerlinesBaseContext };
|
|
81
|
+
//# sourceMappingURL=base-context.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-context.d.mts","names":[],"sources":["../../src/context/base-context.ts"],"mappings":";;;;;;uBA2BsB,qBAAA,sCAET,WAAA,CAAY,cAAA;EAAA;EA0BM,OAAA,EAAS,OAAA;EAvB/B,cAAA;EAEA,MAAA,EAAS,cAAA;EAAA,aAEI,QAAA,CAAA,GAAY,QAAA;EAAA,IAErB,MAAA,CAAA,GAAU,MAAA;EAAA,IAIV,GAAA,CAAA;EAAA,IAIA,SAAA,CAAA;EARU;;;;;EAAA,UAiBZ,WAAA,CAAoB,OAAA,EAAS,OAAA;EAAA,SAEtB,YAAA,CAAa,OAAA,GAAU,aAAA,EAAe,KAAA,GAAQ,KAAA,GAAQ,MAAA;EAE/D,YAAA,CAAa,OAAA,EAAS,aAAA,GAAa,MAAA;EASE;;;;;EAArC,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EA6Db;;;;;EA5CxB,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EAxDjC;;;;;EAyEJ,IAAA,CAAK,OAAA,WAAkB,UAAA;EApEvB;;;;;EA6EA,IAAA,CAAK,OAAA,WAAkB,UAAA;EArEnB;;;;;EA8EJ,KAAA,CAAM,OAAA,WAAkB,UAAA;EA/DQ;;;;;EAwEhC,KAAA,CAAM,OAAA,WAAkB,UAAA;EAtEF;;;;;;;;;;;;;EAuFtB,KAAA,CAAM,IAAA;EAnCN;;;EAAA,UAyDS,IAAA,CAAA,GAAI,OAAA;AAAA"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { extendLogger } from "../plugin-utils/logging.mjs";
|
|
2
|
+
import chalk from "chalk";
|
|
3
|
+
import { resolvePackage } from "@stryke/fs/resolve";
|
|
4
|
+
import { formatDistanceToNowStrict } from "date-fns/formatDistanceToNowStrict";
|
|
5
|
+
|
|
6
|
+
//#region src/context/base-context.ts
|
|
7
|
+
var PowerlinesBaseContext = class {
|
|
8
|
+
#timestamp = Date.now();
|
|
9
|
+
powerlinesPath;
|
|
10
|
+
system;
|
|
11
|
+
get logger() {
|
|
12
|
+
return this.createLogger();
|
|
13
|
+
}
|
|
14
|
+
get cwd() {
|
|
15
|
+
return this.options.cwd || process.cwd();
|
|
16
|
+
}
|
|
17
|
+
get timestamp() {
|
|
18
|
+
return this.#timestamp;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Initialize the context with the provided configuration options and set up the resolver and user configuration file. This method is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup as the original context.
|
|
22
|
+
*
|
|
23
|
+
* @param options - The configuration options to initialize the context with, which can include properties such as the project root, mode, log level, and other settings that affect the behavior of the context and its plugins.
|
|
24
|
+
*/
|
|
25
|
+
constructor(options) {
|
|
26
|
+
this.options = options;
|
|
27
|
+
}
|
|
28
|
+
extendLogger(options) {
|
|
29
|
+
return extendLogger(this.logger, options);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A logging function for fatal messages
|
|
33
|
+
*
|
|
34
|
+
* @param message - The message to log.
|
|
35
|
+
*/
|
|
36
|
+
fatal(message) {
|
|
37
|
+
this.logger.error(message instanceof Error ? {
|
|
38
|
+
meta: {},
|
|
39
|
+
message: message.message,
|
|
40
|
+
error: message
|
|
41
|
+
} : message);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A logging function for error messages
|
|
45
|
+
*
|
|
46
|
+
* @param message - The message to log.
|
|
47
|
+
*/
|
|
48
|
+
error(message) {
|
|
49
|
+
this.logger.error(message instanceof Error ? {
|
|
50
|
+
meta: {},
|
|
51
|
+
message: message.message,
|
|
52
|
+
error: message
|
|
53
|
+
} : message);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A logging function for warning messages
|
|
57
|
+
*
|
|
58
|
+
* @param message - The message to log.
|
|
59
|
+
*/
|
|
60
|
+
warn(message) {
|
|
61
|
+
this.logger.warn(message);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A logging function for informational messages
|
|
65
|
+
*
|
|
66
|
+
* @param message - The message to log.
|
|
67
|
+
*/
|
|
68
|
+
info(message) {
|
|
69
|
+
this.logger.info(message);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A logging function for debug messages
|
|
73
|
+
*
|
|
74
|
+
* @param message - The message to log.
|
|
75
|
+
*/
|
|
76
|
+
debug(message) {
|
|
77
|
+
this.logger.debug(message);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A logging function for trace messages
|
|
81
|
+
*
|
|
82
|
+
* @param message - The message to log.
|
|
83
|
+
*/
|
|
84
|
+
trace(message) {
|
|
85
|
+
this.logger.trace(message);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* A function to create a timer for measuring the duration of asynchronous operations
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const stopTimer = context.timer("Your Async Operation");
|
|
93
|
+
* await performAsyncOperation();
|
|
94
|
+
* stopTimer(); // "Your Async Operation completed in 123.45 milliseconds"
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @param name - The name of the timer.
|
|
98
|
+
* @returns A function that, when called, stops the timer and logs the duration.
|
|
99
|
+
*/
|
|
100
|
+
timer(name) {
|
|
101
|
+
const startDate = Date.now();
|
|
102
|
+
const startDuration = performance.now();
|
|
103
|
+
return () => {
|
|
104
|
+
const duration = performance.now() - startDuration;
|
|
105
|
+
this.logger.info({
|
|
106
|
+
meta: { category: "performance" },
|
|
107
|
+
message: `${chalk.bold.cyanBright(name)} completed in ${chalk.bold.cyanBright(duration < 1e3 ? `${duration.toFixed(2)} milliseconds` : formatDistanceToNowStrict(startDate))}`
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Initialize the context with the provided configuration options
|
|
113
|
+
*/
|
|
114
|
+
async init() {
|
|
115
|
+
if (!this.powerlinesPath) {
|
|
116
|
+
const powerlinesPath = await resolvePackage("powerlines");
|
|
117
|
+
if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
|
|
118
|
+
this.powerlinesPath = powerlinesPath;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
//#endregion
|
|
124
|
+
export { PowerlinesBaseContext };
|
|
125
|
+
//# sourceMappingURL=base-context.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-context.mjs","names":["#timestamp"],"sources":["../../src/context/base-context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { EnvPaths } from \"@stryke/env/get-env-paths\";\nimport { resolvePackage } from \"@stryke/fs/resolve\";\nimport chalk from \"chalk\";\nimport { formatDistanceToNowStrict } from \"date-fns/formatDistanceToNowStrict\";\nimport { extendLogger } from \"../plugin-utils/logging\";\nimport { Options } from \"../types/config\";\nimport { BaseContext } from \"../types/context\";\nimport { LogFn, Logger, LoggerOptions, LogMessage } from \"../types/logging\";\n\nexport abstract class PowerlinesBaseContext<\n TSystemContext = unknown\n> implements BaseContext<TSystemContext> {\n #timestamp: number = Date.now();\n\n public powerlinesPath!: string;\n\n public system!: TSystemContext;\n\n public abstract get envPaths(): EnvPaths;\n\n public get logger(): Logger {\n return this.createLogger();\n }\n\n public get cwd(): string {\n return this.options.cwd || process.cwd();\n }\n\n public get timestamp(): number {\n return this.#timestamp;\n }\n\n /**\n * Initialize the context with the provided configuration options and set up the resolver and user configuration file. This method is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup as the original context.\n *\n * @param options - The configuration options to initialize the context with, which can include properties such as the project root, mode, log level, and other settings that affect the behavior of the context and its plugins.\n */\n protected constructor(public options: Options) {}\n\n public abstract createLogger(options?: LoggerOptions, logFn?: LogFn): Logger;\n\n public extendLogger(options: LoggerOptions) {\n return extendLogger(this.logger, options);\n }\n\n /**\n * A logging function for fatal messages\n *\n * @param message - The message to log.\n */\n public fatal(message: string | LogMessage | Error) {\n this.logger.error(\n message instanceof Error\n ? {\n meta: {},\n message: message.message,\n error: message\n }\n : message\n );\n }\n\n /**\n * A logging function for error messages\n *\n * @param message - The message to log.\n */\n public error(message: string | LogMessage | Error) {\n this.logger.error(\n message instanceof Error\n ? {\n meta: {},\n message: message.message,\n error: message\n }\n : message\n );\n }\n\n /**\n * A logging function for warning messages\n *\n * @param message - The message to log.\n */\n public warn(message: string | LogMessage) {\n this.logger.warn(message);\n }\n\n /**\n * A logging function for informational messages\n *\n * @param message - The message to log.\n */\n public info(message: string | LogMessage) {\n this.logger.info(message);\n }\n\n /**\n * A logging function for debug messages\n *\n * @param message - The message to log.\n */\n public debug(message: string | LogMessage) {\n this.logger.debug(message);\n }\n\n /**\n * A logging function for trace messages\n *\n * @param message - The message to log.\n */\n public trace(message: string | LogMessage) {\n this.logger.trace(message);\n }\n\n /**\n * A function to create a timer for measuring the duration of asynchronous operations\n *\n * @example\n * ```ts\n * const stopTimer = context.timer(\"Your Async Operation\");\n * await performAsyncOperation();\n * stopTimer(); // \"Your Async Operation completed in 123.45 milliseconds\"\n * ```\n *\n * @param name - The name of the timer.\n * @returns A function that, when called, stops the timer and logs the duration.\n */\n public timer(name: string): () => void {\n const startDate = Date.now();\n const startDuration = performance.now();\n\n return () => {\n const duration = performance.now() - startDuration;\n this.logger.info({\n meta: {\n category: \"performance\"\n },\n message: `${chalk.bold.cyanBright(name)} completed in ${chalk.bold.cyanBright(\n duration < 1000\n ? `${duration.toFixed(2)} milliseconds`\n : formatDistanceToNowStrict(startDate)\n )}`\n });\n };\n }\n\n /**\n * Initialize the context with the provided configuration options\n */\n protected async init() {\n if (!this.powerlinesPath) {\n const powerlinesPath = await resolvePackage(\"powerlines\");\n if (!powerlinesPath) {\n throw new Error(\"Could not resolve `powerlines` package location.\");\n }\n this.powerlinesPath = powerlinesPath;\n }\n }\n}\n"],"mappings":";;;;;;AA2BA,IAAsB,wBAAtB,MAEyC;CACvC,aAAqB,KAAK,KAAK;CAE/B,AAAO;CAEP,AAAO;CAIP,IAAW,SAAiB;AAC1B,SAAO,KAAK,cAAc;;CAG5B,IAAW,MAAc;AACvB,SAAO,KAAK,QAAQ,OAAO,QAAQ,KAAK;;CAG1C,IAAW,YAAoB;AAC7B,SAAO,MAAKA;;;;;;;CAQd,AAAU,YAAY,AAAO,SAAkB;EAAlB;;CAI7B,AAAO,aAAa,SAAwB;AAC1C,SAAO,aAAa,KAAK,QAAQ,QAAQ;;;;;;;CAQ3C,AAAO,MAAM,SAAsC;AACjD,OAAK,OAAO,MACV,mBAAmB,QACf;GACE,MAAM,EAAE;GACR,SAAS,QAAQ;GACjB,OAAO;GACR,GACD,QACL;;;;;;;CAQH,AAAO,MAAM,SAAsC;AACjD,OAAK,OAAO,MACV,mBAAmB,QACf;GACE,MAAM,EAAE;GACR,SAAS,QAAQ;GACjB,OAAO;GACR,GACD,QACL;;;;;;;CAQH,AAAO,KAAK,SAA8B;AACxC,OAAK,OAAO,KAAK,QAAQ;;;;;;;CAQ3B,AAAO,KAAK,SAA8B;AACxC,OAAK,OAAO,KAAK,QAAQ;;;;;;;CAQ3B,AAAO,MAAM,SAA8B;AACzC,OAAK,OAAO,MAAM,QAAQ;;;;;;;CAQ5B,AAAO,MAAM,SAA8B;AACzC,OAAK,OAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAgB5B,AAAO,MAAM,MAA0B;EACrC,MAAM,YAAY,KAAK,KAAK;EAC5B,MAAM,gBAAgB,YAAY,KAAK;AAEvC,eAAa;GACX,MAAM,WAAW,YAAY,KAAK,GAAG;AACrC,QAAK,OAAO,KAAK;IACf,MAAM,EACJ,UAAU,eACX;IACD,SAAS,GAAG,MAAM,KAAK,WAAW,KAAK,CAAC,gBAAgB,MAAM,KAAK,WACjE,WAAW,MACP,GAAG,SAAS,QAAQ,EAAE,CAAC,iBACvB,0BAA0B,UAAU,CACzC;IACF,CAAC;;;;;;CAON,MAAgB,OAAO;AACrB,MAAI,CAAC,KAAK,gBAAgB;GACxB,MAAM,iBAAiB,MAAM,eAAe,aAAa;AACzD,OAAI,CAAC,eACH,OAAM,IAAI,MAAM,mDAAmD;AAErE,QAAK,iBAAiB"}
|