@powerlines/core 0.14.5 → 0.15.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.
- 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.map +1 -1
- 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.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 +10 -11
- package/dist/lib/unplugin/plugin.d.cts.map +1 -1
- package/dist/lib/unplugin/plugin.d.mts +10 -11
- 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.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 +152 -128
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +155 -131
- 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 +5 -26
- package/dist/types/unplugin.d.cts.map +1 -1
- package/dist/types/unplugin.d.mts +5 -26
- 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
package/schemas/fs.capnp
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@0xa56c61324b9d6e49;
|
|
2
|
+
|
|
3
|
+
# Additional metadata associated with a file in the file system.
|
|
4
|
+
struct FileMetadata {
|
|
5
|
+
# The identifier for the file data.
|
|
6
|
+
id @0 :Text;
|
|
7
|
+
# The type of the file.
|
|
8
|
+
type @1 :Text = "normal";
|
|
9
|
+
# The timestamp representing the file's creation date.
|
|
10
|
+
timestamp @2 :UInt32;
|
|
11
|
+
# Additional metadata associated with the file.
|
|
12
|
+
properties @3 :List(KeyValuePair);
|
|
13
|
+
|
|
14
|
+
struct KeyValuePair {
|
|
15
|
+
key @0 :Text;
|
|
16
|
+
value @1 :Text;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
# A mapping between a file path and its unique identifier.
|
|
21
|
+
# Note: Multiple paths can map to the same identifier (e.g., symlinks).
|
|
22
|
+
struct FileId {
|
|
23
|
+
# An identifier for the file.
|
|
24
|
+
id @0 :Text;
|
|
25
|
+
# A virtual (or actual) path to the file in the file system.
|
|
26
|
+
path @1 :Text;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
# The content of a file in the file system.
|
|
30
|
+
struct FileStorage {
|
|
31
|
+
# An identifier for the file.
|
|
32
|
+
path @0 :Text;
|
|
33
|
+
# A virtual (or actual) path to the file in the file system.
|
|
34
|
+
code @1 :Text;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
# A virtual representation of a file system containing multiple files.
|
|
38
|
+
struct FileSystem {
|
|
39
|
+
ids @0 :List(FileId);
|
|
40
|
+
storage @1 :List(FileStorage);
|
|
41
|
+
metadata @2 :List(FileMetadata);
|
|
42
|
+
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/constants/virtual-modules.ts
|
|
3
|
-
const VIRTUAL_MODULE_PREFIX = "__powerlines-virtual__:";
|
|
4
|
-
const VIRTUAL_MODULE_PREFIX_REGEX = /^__powerlines-virtual__:/;
|
|
5
|
-
|
|
6
|
-
//#endregion
|
|
7
|
-
exports.VIRTUAL_MODULE_PREFIX = VIRTUAL_MODULE_PREFIX;
|
|
8
|
-
exports.VIRTUAL_MODULE_PREFIX_REGEX = VIRTUAL_MODULE_PREFIX_REGEX;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
//#region src/constants/virtual-modules.d.ts
|
|
2
|
-
declare const VIRTUAL_MODULE_PREFIX = "__powerlines-virtual__:";
|
|
3
|
-
declare const VIRTUAL_MODULE_PREFIX_REGEX: RegExp;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX };
|
|
6
|
-
//# sourceMappingURL=virtual-modules.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-modules.d.cts","names":[],"sources":["../../src/constants/virtual-modules.ts"],"mappings":";cAkBa,qBAAA;AAAA,cACA,2BAAA,EAA2B,MAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
//#region src/constants/virtual-modules.d.ts
|
|
2
|
-
declare const VIRTUAL_MODULE_PREFIX = "__powerlines-virtual__:";
|
|
3
|
-
declare const VIRTUAL_MODULE_PREFIX_REGEX: RegExp;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX };
|
|
6
|
-
//# sourceMappingURL=virtual-modules.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-modules.d.mts","names":[],"sources":["../../src/constants/virtual-modules.ts"],"mappings":";cAkBa,qBAAA;AAAA,cACA,2BAAA,EAA2B,MAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
//#region src/constants/virtual-modules.ts
|
|
2
|
-
const VIRTUAL_MODULE_PREFIX = "__powerlines-virtual__:";
|
|
3
|
-
const VIRTUAL_MODULE_PREFIX_REGEX = /^__powerlines-virtual__:/;
|
|
4
|
-
|
|
5
|
-
//#endregion
|
|
6
|
-
export { VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX };
|
|
7
|
-
//# sourceMappingURL=virtual-modules.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-modules.mjs","names":[],"sources":["../../src/constants/virtual-modules.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 VIRTUAL_MODULE_PREFIX = \"__powerlines-virtual__:\";\nexport const VIRTUAL_MODULE_PREFIX_REGEX = /^__powerlines-virtual__:/;\n"],"mappings":";AAkBA,MAAa,wBAAwB;AACrC,MAAa,8BAA8B"}
|
package/dist/lib/logger.cjs
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
const require_environments = require('../constants/environments.cjs');
|
|
4
|
-
let _storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
|
|
5
|
-
let _storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
6
|
-
let _storm_software_config_tools_utilities_colors = require("@storm-software/config-tools/utilities/colors");
|
|
7
|
-
let _stryke_helpers_noop = require("@stryke/helpers/noop");
|
|
8
|
-
let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
9
|
-
let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
10
|
-
let chalk = require("chalk");
|
|
11
|
-
chalk = require_runtime.__toESM(chalk, 1);
|
|
12
|
-
|
|
13
|
-
//#region src/lib/logger.ts
|
|
14
|
-
/**
|
|
15
|
-
* Create a logging function with a specific name and options.
|
|
16
|
-
*
|
|
17
|
-
* @param name - The name of the logging function.
|
|
18
|
-
* @param options - The options to configure the logging function.
|
|
19
|
-
* @returns A logging function.
|
|
20
|
-
*/
|
|
21
|
-
const createLog = (name, options = {}) => {
|
|
22
|
-
const logLevel = options.logLevel === null ? _storm_software_config_tools_types.LogLevelLabel.SILENT : options.logLevel || _storm_software_config_tools_types.LogLevelLabel.INFO;
|
|
23
|
-
if (logLevel === _storm_software_config_tools_types.LogLevelLabel.SILENT) return _stryke_helpers_noop.noop;
|
|
24
|
-
if (options.customLogger) return options.customLogger;
|
|
25
|
-
return (type, ...args) => (0, _storm_software_config_tools_logger.getLogFn)((0, _storm_software_config_tools_logger.getLogLevel)(type), {
|
|
26
|
-
...options,
|
|
27
|
-
logLevel
|
|
28
|
-
})(`${name ? chalk.default.bold.hex((0, _storm_software_config_tools_utilities_colors.getColor)("brand", options))((0, _stryke_string_format_kebab_case.kebabCase)(name)) : ""}${options.command ? chalk.default.hex((0, _storm_software_config_tools_utilities_colors.getColor)("brand", options))(` (${options.command})`) : ""}${name ? chalk.default.grey(" > ") : ""}${options.name && (!name || (0, _stryke_string_format_kebab_case.kebabCase)(options.name) !== (0, _stryke_string_format_kebab_case.kebabCase)(name)) ? `${chalk.default.bold.hex((0, _storm_software_config_tools_utilities_colors.getColor)("brand", options))((0, _stryke_string_format_kebab_case.kebabCase)(options.name))}${chalk.default.grey(" > ")}` : ""}${options.environment && options.environment !== "default" ? `${chalk.default.bold.hex((0, _storm_software_config_tools_utilities_colors.getColor)("brand", options))((0, _stryke_string_format_kebab_case.kebabCase)(options.environment))}${chalk.default.grey(" > ")}` : ""}${args.join(" ")} `.trim());
|
|
29
|
-
};
|
|
30
|
-
const BADGE_COLORS = [
|
|
31
|
-
"#00A0DD",
|
|
32
|
-
"#6FCE4E",
|
|
33
|
-
"#FBBF24",
|
|
34
|
-
"#F43F5E",
|
|
35
|
-
"#3B82F6",
|
|
36
|
-
"#A855F7",
|
|
37
|
-
"#469592",
|
|
38
|
-
"#288EDF",
|
|
39
|
-
"#D8B4FE",
|
|
40
|
-
"#10B981",
|
|
41
|
-
"#EF4444",
|
|
42
|
-
"#F0EC56",
|
|
43
|
-
"#F472B6",
|
|
44
|
-
"#22D3EE",
|
|
45
|
-
"#EAB308",
|
|
46
|
-
"#84CC16",
|
|
47
|
-
"#F87171",
|
|
48
|
-
"#0EA5E9",
|
|
49
|
-
"#D946EF",
|
|
50
|
-
"#FACC15",
|
|
51
|
-
"#34D399",
|
|
52
|
-
"#8B5CF6"
|
|
53
|
-
];
|
|
54
|
-
/**
|
|
55
|
-
* Generate a consistent color based on the input text.
|
|
56
|
-
*
|
|
57
|
-
* @param text - The input text to generate the color from.
|
|
58
|
-
* @return A hexadecimal color string.
|
|
59
|
-
*/
|
|
60
|
-
const getTextColor = (text) => {
|
|
61
|
-
return BADGE_COLORS[text.split("").map((char) => char.charCodeAt(0)).reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length] || BADGE_COLORS[0];
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Generate a consistent color based on the input text.
|
|
65
|
-
*
|
|
66
|
-
* @param text - The input text to generate the color from.
|
|
67
|
-
* @return A hexadecimal color string.
|
|
68
|
-
*/
|
|
69
|
-
const colorText = (text) => {
|
|
70
|
-
const title = (0, _stryke_string_format_title_case.titleCase)(text);
|
|
71
|
-
return chalk.default.hex(getTextColor(title))(title);
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Generate a consistent color based on the input text.
|
|
75
|
-
*
|
|
76
|
-
* @param text - The input text to generate the color from.
|
|
77
|
-
* @return A hexadecimal color string.
|
|
78
|
-
*/
|
|
79
|
-
const colorBackground = (text) => {
|
|
80
|
-
const title = (0, _stryke_string_format_title_case.titleCase)(text);
|
|
81
|
-
return chalk.default.inverse.hex(getTextColor(title))(` ${title} `);
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Extend a logging function with a specific name, adding a colored badge to the log output.
|
|
85
|
-
*
|
|
86
|
-
* @param logFn - The original logging function to extend.
|
|
87
|
-
* @param name - The name to use for the badge in the log output.
|
|
88
|
-
* @returns A new logging function that includes the badge in its output.
|
|
89
|
-
*/
|
|
90
|
-
const extendLog = (logFn, name) => {
|
|
91
|
-
return (type, ...args) => logFn(type, `${colorBackground(name)} ${args.filter(Boolean).map((arg) => String(arg).trim()).join(" ")} `);
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
//#endregion
|
|
95
|
-
exports.colorBackground = colorBackground;
|
|
96
|
-
exports.colorText = colorText;
|
|
97
|
-
exports.createLog = createLog;
|
|
98
|
-
exports.extendLog = extendLog;
|
|
99
|
-
exports.getTextColor = getTextColor;
|
package/dist/lib/logger.d.cts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { LogFn, WorkspaceConfig } from "../types/config.cjs";
|
|
2
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
3
|
-
|
|
4
|
-
//#region src/lib/logger.d.ts
|
|
5
|
-
interface CreateLogOptions {
|
|
6
|
-
name?: string;
|
|
7
|
-
command?: string;
|
|
8
|
-
environment?: string;
|
|
9
|
-
logLevel?: LogLevelLabel | null;
|
|
10
|
-
customLogger?: LogFn;
|
|
11
|
-
colors?: WorkspaceConfig["colors"];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Create a logging function with a specific name and options.
|
|
15
|
-
*
|
|
16
|
-
* @param name - The name of the logging function.
|
|
17
|
-
* @param options - The options to configure the logging function.
|
|
18
|
-
* @returns A logging function.
|
|
19
|
-
*/
|
|
20
|
-
declare const createLog: (name: string | null, options?: CreateLogOptions) => LogFn;
|
|
21
|
-
/**
|
|
22
|
-
* Generate a consistent color based on the input text.
|
|
23
|
-
*
|
|
24
|
-
* @param text - The input text to generate the color from.
|
|
25
|
-
* @return A hexadecimal color string.
|
|
26
|
-
*/
|
|
27
|
-
declare const getTextColor: (text: string) => string;
|
|
28
|
-
/**
|
|
29
|
-
* Generate a consistent color based on the input text.
|
|
30
|
-
*
|
|
31
|
-
* @param text - The input text to generate the color from.
|
|
32
|
-
* @return A hexadecimal color string.
|
|
33
|
-
*/
|
|
34
|
-
declare const colorText: (text: string) => string;
|
|
35
|
-
/**
|
|
36
|
-
* Generate a consistent color based on the input text.
|
|
37
|
-
*
|
|
38
|
-
* @param text - The input text to generate the color from.
|
|
39
|
-
* @return A hexadecimal color string.
|
|
40
|
-
*/
|
|
41
|
-
declare const colorBackground: (text: string) => string;
|
|
42
|
-
/**
|
|
43
|
-
* Extend a logging function with a specific name, adding a colored badge to the log output.
|
|
44
|
-
*
|
|
45
|
-
* @param logFn - The original logging function to extend.
|
|
46
|
-
* @param name - The name to use for the badge in the log output.
|
|
47
|
-
* @returns A new logging function that includes the badge in its output.
|
|
48
|
-
*/
|
|
49
|
-
declare const extendLog: (logFn: LogFn, name: string) => LogFn;
|
|
50
|
-
declare type __ΩCreateLogOptions = any[];
|
|
51
|
-
//#endregion
|
|
52
|
-
export { CreateLogOptions, __ΩCreateLogOptions, colorBackground, colorText, createLog, extendLog, getTextColor };
|
|
53
|
-
//# sourceMappingURL=logger.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.cts","names":[],"sources":["../../src/lib/logger.ts"],"mappings":";;;;UA4BiB,gBAAA;EACf,IAAA;EACA,OAAA;EACA,WAAA;EACA,QAAA,GAAW,aAAA;EACX,YAAA,GAAe,KAAA;EACf,MAAA,GAAS,eAAA;AAAA;;;;;;;;cAUE,SAAA,GACX,IAAA,iBACA,OAAA,GAAS,gBAAA,KACR,KAAA;;;;;;;cAuEU,YAAA,GAAgB,IAAA;;;;;;;cAiBhB,SAAA,GAAa,IAAA;;;AAjB1B;;;;cA6Ba,eAAA,GAAmB,IAAA;AAZhC;;;;;AAYA;;AAZA,cAyBa,SAAA,GAAa,KAAA,EAAO,KAAA,EAAO,IAAA,aAAe,KAAA;AAAA"}
|
package/dist/lib/logger.d.mts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { LogFn, WorkspaceConfig } from "../types/config.mjs";
|
|
2
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
3
|
-
|
|
4
|
-
//#region src/lib/logger.d.ts
|
|
5
|
-
interface CreateLogOptions {
|
|
6
|
-
name?: string;
|
|
7
|
-
command?: string;
|
|
8
|
-
environment?: string;
|
|
9
|
-
logLevel?: LogLevelLabel | null;
|
|
10
|
-
customLogger?: LogFn;
|
|
11
|
-
colors?: WorkspaceConfig["colors"];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Create a logging function with a specific name and options.
|
|
15
|
-
*
|
|
16
|
-
* @param name - The name of the logging function.
|
|
17
|
-
* @param options - The options to configure the logging function.
|
|
18
|
-
* @returns A logging function.
|
|
19
|
-
*/
|
|
20
|
-
declare const createLog: (name: string | null, options?: CreateLogOptions) => LogFn;
|
|
21
|
-
/**
|
|
22
|
-
* Generate a consistent color based on the input text.
|
|
23
|
-
*
|
|
24
|
-
* @param text - The input text to generate the color from.
|
|
25
|
-
* @return A hexadecimal color string.
|
|
26
|
-
*/
|
|
27
|
-
declare const getTextColor: (text: string) => string;
|
|
28
|
-
/**
|
|
29
|
-
* Generate a consistent color based on the input text.
|
|
30
|
-
*
|
|
31
|
-
* @param text - The input text to generate the color from.
|
|
32
|
-
* @return A hexadecimal color string.
|
|
33
|
-
*/
|
|
34
|
-
declare const colorText: (text: string) => string;
|
|
35
|
-
/**
|
|
36
|
-
* Generate a consistent color based on the input text.
|
|
37
|
-
*
|
|
38
|
-
* @param text - The input text to generate the color from.
|
|
39
|
-
* @return A hexadecimal color string.
|
|
40
|
-
*/
|
|
41
|
-
declare const colorBackground: (text: string) => string;
|
|
42
|
-
/**
|
|
43
|
-
* Extend a logging function with a specific name, adding a colored badge to the log output.
|
|
44
|
-
*
|
|
45
|
-
* @param logFn - The original logging function to extend.
|
|
46
|
-
* @param name - The name to use for the badge in the log output.
|
|
47
|
-
* @returns A new logging function that includes the badge in its output.
|
|
48
|
-
*/
|
|
49
|
-
declare const extendLog: (logFn: LogFn, name: string) => LogFn;
|
|
50
|
-
declare type __ΩCreateLogOptions = any[];
|
|
51
|
-
//#endregion
|
|
52
|
-
export { CreateLogOptions, __ΩCreateLogOptions, colorBackground, colorText, createLog, extendLog, getTextColor };
|
|
53
|
-
//# sourceMappingURL=logger.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.mts","names":[],"sources":["../../src/lib/logger.ts"],"mappings":";;;;UA4BiB,gBAAA;EACf,IAAA;EACA,OAAA;EACA,WAAA;EACA,QAAA,GAAW,aAAA;EACX,YAAA,GAAe,KAAA;EACf,MAAA,GAAS,eAAA;AAAA;;;;;;;;cAUE,SAAA,GACX,IAAA,iBACA,OAAA,GAAS,gBAAA,KACR,KAAA;;;;;;;cAuEU,YAAA,GAAgB,IAAA;;;;;;;cAiBhB,SAAA,GAAa,IAAA;;;AAjB1B;;;;cA6Ba,eAAA,GAAmB,IAAA;AAZhC;;;;;AAYA;;AAZA,cAyBa,SAAA,GAAa,KAAA,EAAO,KAAA,EAAO,IAAA,aAAe,KAAA;AAAA"}
|
package/dist/lib/logger.mjs
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { DEFAULT_ENVIRONMENT } from "../constants/environments.mjs";
|
|
2
|
-
import { getLogFn, getLogLevel } from "@storm-software/config-tools/logger";
|
|
3
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
4
|
-
import { getColor } from "@storm-software/config-tools/utilities/colors";
|
|
5
|
-
import { noop } from "@stryke/helpers/noop";
|
|
6
|
-
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
7
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
8
|
-
import chalk from "chalk";
|
|
9
|
-
|
|
10
|
-
//#region src/lib/logger.ts
|
|
11
|
-
/**
|
|
12
|
-
* Create a logging function with a specific name and options.
|
|
13
|
-
*
|
|
14
|
-
* @param name - The name of the logging function.
|
|
15
|
-
* @param options - The options to configure the logging function.
|
|
16
|
-
* @returns A logging function.
|
|
17
|
-
*/
|
|
18
|
-
const createLog = (name, options = {}) => {
|
|
19
|
-
const logLevel = options.logLevel === null ? LogLevelLabel.SILENT : options.logLevel || LogLevelLabel.INFO;
|
|
20
|
-
if (logLevel === LogLevelLabel.SILENT) return noop;
|
|
21
|
-
if (options.customLogger) return options.customLogger;
|
|
22
|
-
return (type, ...args) => getLogFn(getLogLevel(type), {
|
|
23
|
-
...options,
|
|
24
|
-
logLevel
|
|
25
|
-
})(`${name ? chalk.bold.hex(getColor("brand", options))(kebabCase(name)) : ""}${options.command ? chalk.hex(getColor("brand", options))(` (${options.command})`) : ""}${name ? chalk.grey(" > ") : ""}${options.name && (!name || kebabCase(options.name) !== kebabCase(name)) ? `${chalk.bold.hex(getColor("brand", options))(kebabCase(options.name))}${chalk.grey(" > ")}` : ""}${options.environment && options.environment !== "default" ? `${chalk.bold.hex(getColor("brand", options))(kebabCase(options.environment))}${chalk.grey(" > ")}` : ""}${args.join(" ")} `.trim());
|
|
26
|
-
};
|
|
27
|
-
const BADGE_COLORS = [
|
|
28
|
-
"#00A0DD",
|
|
29
|
-
"#6FCE4E",
|
|
30
|
-
"#FBBF24",
|
|
31
|
-
"#F43F5E",
|
|
32
|
-
"#3B82F6",
|
|
33
|
-
"#A855F7",
|
|
34
|
-
"#469592",
|
|
35
|
-
"#288EDF",
|
|
36
|
-
"#D8B4FE",
|
|
37
|
-
"#10B981",
|
|
38
|
-
"#EF4444",
|
|
39
|
-
"#F0EC56",
|
|
40
|
-
"#F472B6",
|
|
41
|
-
"#22D3EE",
|
|
42
|
-
"#EAB308",
|
|
43
|
-
"#84CC16",
|
|
44
|
-
"#F87171",
|
|
45
|
-
"#0EA5E9",
|
|
46
|
-
"#D946EF",
|
|
47
|
-
"#FACC15",
|
|
48
|
-
"#34D399",
|
|
49
|
-
"#8B5CF6"
|
|
50
|
-
];
|
|
51
|
-
/**
|
|
52
|
-
* Generate a consistent color based on the input text.
|
|
53
|
-
*
|
|
54
|
-
* @param text - The input text to generate the color from.
|
|
55
|
-
* @return A hexadecimal color string.
|
|
56
|
-
*/
|
|
57
|
-
const getTextColor = (text) => {
|
|
58
|
-
return BADGE_COLORS[text.split("").map((char) => char.charCodeAt(0)).reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length] || BADGE_COLORS[0];
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Generate a consistent color based on the input text.
|
|
62
|
-
*
|
|
63
|
-
* @param text - The input text to generate the color from.
|
|
64
|
-
* @return A hexadecimal color string.
|
|
65
|
-
*/
|
|
66
|
-
const colorText = (text) => {
|
|
67
|
-
const title = titleCase(text);
|
|
68
|
-
return chalk.hex(getTextColor(title))(title);
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Generate a consistent color based on the input text.
|
|
72
|
-
*
|
|
73
|
-
* @param text - The input text to generate the color from.
|
|
74
|
-
* @return A hexadecimal color string.
|
|
75
|
-
*/
|
|
76
|
-
const colorBackground = (text) => {
|
|
77
|
-
const title = titleCase(text);
|
|
78
|
-
return chalk.inverse.hex(getTextColor(title))(` ${title} `);
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Extend a logging function with a specific name, adding a colored badge to the log output.
|
|
82
|
-
*
|
|
83
|
-
* @param logFn - The original logging function to extend.
|
|
84
|
-
* @param name - The name to use for the badge in the log output.
|
|
85
|
-
* @returns A new logging function that includes the badge in its output.
|
|
86
|
-
*/
|
|
87
|
-
const extendLog = (logFn, name) => {
|
|
88
|
-
return (type, ...args) => logFn(type, `${colorBackground(name)} ${args.filter(Boolean).map((arg) => String(arg).trim()).join(" ")} `);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
//#endregion
|
|
92
|
-
export { colorBackground, colorText, createLog, extendLog, getTextColor };
|
|
93
|
-
//# sourceMappingURL=logger.mjs.map
|
package/dist/lib/logger.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.mjs","names":[],"sources":["../../src/lib/logger.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 { getLogFn, getLogLevel } from \"@storm-software/config-tools/logger\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { getColor } from \"@storm-software/config-tools/utilities/colors\";\nimport { noop } from \"@stryke/helpers/noop\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport chalk from \"chalk\";\nimport { DEFAULT_ENVIRONMENT } from \"../constants/environments\";\nimport type { LogFn, WorkspaceConfig } from \"../types\";\n\nexport interface CreateLogOptions {\n name?: string;\n command?: string;\n environment?: string;\n logLevel?: LogLevelLabel | null;\n customLogger?: LogFn;\n colors?: WorkspaceConfig[\"colors\"];\n}\n\n/**\n * Create a logging function with a specific name and options.\n *\n * @param name - The name of the logging function.\n * @param options - The options to configure the logging function.\n * @returns A logging function.\n */\nexport const createLog = (\n name: string | null,\n options: CreateLogOptions = {}\n): LogFn => {\n const logLevel =\n options.logLevel === null\n ? LogLevelLabel.SILENT\n : options.logLevel || LogLevelLabel.INFO;\n if (logLevel === LogLevelLabel.SILENT) {\n return noop;\n }\n\n if (options.customLogger) {\n return options.customLogger;\n }\n\n return (type: LogLevelLabel, ...args: string[]) =>\n getLogFn(getLogLevel(type), {\n ...options,\n logLevel\n })(\n `${\n name ? chalk.bold.hex(getColor(\"brand\", options))(kebabCase(name)) : \"\"\n }${\n options.command\n ? chalk.hex(getColor(\"brand\", options))(` (${options.command})`)\n : \"\"\n }${name ? chalk.grey(\" > \") : \"\"}${\n options.name && (!name || kebabCase(options.name) !== kebabCase(name))\n ? `${chalk.bold.hex(getColor(\"brand\", options))(\n kebabCase(options.name)\n )}${chalk.grey(\" > \")}`\n : \"\"\n }${\n options.environment && options.environment !== DEFAULT_ENVIRONMENT\n ? `${chalk.bold.hex(getColor(\"brand\", options))(\n kebabCase(options.environment)\n )}${chalk.grey(\" > \")}`\n : \"\"\n }${args.join(\" \")} `.trim()\n );\n};\n\nconst BADGE_COLORS = [\n \"#00A0DD\",\n \"#6FCE4E\",\n \"#FBBF24\",\n \"#F43F5E\",\n \"#3B82F6\",\n \"#A855F7\",\n \"#469592\",\n \"#288EDF\",\n \"#D8B4FE\",\n \"#10B981\",\n \"#EF4444\",\n \"#F0EC56\",\n \"#F472B6\",\n \"#22D3EE\",\n \"#EAB308\",\n \"#84CC16\",\n \"#F87171\",\n \"#0EA5E9\",\n \"#D946EF\",\n \"#FACC15\",\n \"#34D399\",\n \"#8B5CF6\"\n] as const;\n\n/**\n * Generate a consistent color based on the input text.\n *\n * @param text - The input text to generate the color from.\n * @return A hexadecimal color string.\n */\nexport const getTextColor = (text: string): string => {\n return (\n BADGE_COLORS[\n text\n .split(\"\")\n .map(char => char.charCodeAt(0))\n .reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length\n ] || BADGE_COLORS[0]\n );\n};\n\n/**\n * Generate a consistent color based on the input text.\n *\n * @param text - The input text to generate the color from.\n * @return A hexadecimal color string.\n */\nexport const colorText = (text: string): string => {\n const title = titleCase(text);\n\n return chalk.hex(getTextColor(title))(title);\n};\n\n/**\n * Generate a consistent color based on the input text.\n *\n * @param text - The input text to generate the color from.\n * @return A hexadecimal color string.\n */\nexport const colorBackground = (text: string): string => {\n const title = titleCase(text);\n\n return chalk.inverse.hex(getTextColor(title))(` ${title} `);\n};\n\n/**\n * Extend a logging function with a specific name, adding a colored badge to the log output.\n *\n * @param logFn - The original logging function to extend.\n * @param name - The name to use for the badge in the log output.\n * @returns A new logging function that includes the badge in its output.\n */\nexport const extendLog = (logFn: LogFn, name: string): LogFn => {\n return (type: LogLevelLabel, ...args: string[]) =>\n logFn(\n type,\n `${colorBackground(name)} ${args\n .filter(Boolean)\n .map(arg => String(arg).trim())\n .join(\" \")} `\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AA4CA,MAAa,aACX,MACA,UAA4B,EAAE,KACpB;CACV,MAAM,WACJ,QAAQ,aAAa,OACjB,cAAc,SACd,QAAQ,YAAY,cAAc;AACxC,KAAI,aAAa,cAAc,OAC7B,QAAO;AAGT,KAAI,QAAQ,aACV,QAAO,QAAQ;AAGjB,SAAQ,MAAqB,GAAG,SAC9B,SAAS,YAAY,KAAK,EAAE;EAC1B,GAAG;EACH;EACD,CAAC,CACA,GACE,OAAO,MAAM,KAAK,IAAI,SAAS,SAAS,QAAQ,CAAC,CAAC,UAAU,KAAK,CAAC,GAAG,KAErE,QAAQ,UACJ,MAAM,IAAI,SAAS,SAAS,QAAQ,CAAC,CAAC,KAAK,QAAQ,QAAQ,GAAG,GAC9D,KACH,OAAO,MAAM,KAAK,MAAM,GAAG,KAC5B,QAAQ,SAAS,CAAC,QAAQ,UAAU,QAAQ,KAAK,KAAK,UAAU,KAAK,IACjE,GAAG,MAAM,KAAK,IAAI,SAAS,SAAS,QAAQ,CAAC,CAC3C,UAAU,QAAQ,KAAK,CACxB,GAAG,MAAM,KAAK,MAAM,KACrB,KAEJ,QAAQ,eAAe,QAAQ,4BAC3B,GAAG,MAAM,KAAK,IAAI,SAAS,SAAS,QAAQ,CAAC,CAC3C,UAAU,QAAQ,YAAY,CAC/B,GAAG,MAAM,KAAK,MAAM,KACrB,KACH,KAAK,KAAK,IAAI,CAAC,GAAG,MAAM,CAC5B;;AAGL,MAAM,eAAe;CACnB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;;;;AAQD,MAAa,gBAAgB,SAAyB;AACpD,QACE,aACE,KACG,MAAM,GAAG,CACT,KAAI,SAAQ,KAAK,WAAW,EAAE,CAAC,CAC/B,QAAQ,KAAK,aAAa,MAAM,UAAU,EAAE,GAAG,aAAa,WAC5D,aAAa;;;;;;;;AAUtB,MAAa,aAAa,SAAyB;CACjD,MAAM,QAAQ,UAAU,KAAK;AAE7B,QAAO,MAAM,IAAI,aAAa,MAAM,CAAC,CAAC,MAAM;;;;;;;;AAS9C,MAAa,mBAAmB,SAAyB;CACvD,MAAM,QAAQ,UAAU,KAAK;AAE7B,QAAO,MAAM,QAAQ,IAAI,aAAa,MAAM,CAAC,CAAC,IAAI,MAAM,GAAG;;;;;;;;;AAU7D,MAAa,aAAa,OAAc,SAAwB;AAC9D,SAAQ,MAAqB,GAAG,SAC9B,MACE,MACA,GAAG,gBAAgB,KAAK,CAAC,GAAG,KACzB,OAAO,QAAQ,CACf,KAAI,QAAO,OAAO,IAAI,CAAC,MAAM,CAAC,CAC9B,KAAK,IAAI,CAAC,GACd"}
|
package/dist/types/_internal.cjs
DELETED
|
File without changes
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { API } from "./api.cjs";
|
|
2
|
-
import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
3
|
-
import { Context, EnvironmentContext, ExecutionContext, PluginContext } from "./context.cjs";
|
|
4
|
-
import { PluginConfig, ResolvedConfig } from "./config.cjs";
|
|
5
|
-
|
|
6
|
-
//#region src/types/_internal.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Internal fields and methods for internal contexts
|
|
9
|
-
*
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
interface Unstable_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
13
|
-
/**
|
|
14
|
-
* The {@link API | API instance} for interacting with Powerlines
|
|
15
|
-
*
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
api: API<TResolvedConfig>;
|
|
19
|
-
/**
|
|
20
|
-
* Add a Powerlines plugin used in the build process
|
|
21
|
-
*
|
|
22
|
-
* @internal
|
|
23
|
-
*
|
|
24
|
-
* @param config - The import path of the plugin to add
|
|
25
|
-
*/
|
|
26
|
-
addPlugin: (config: PluginConfig<PluginContext<TResolvedConfig>>) => Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* An internal representation of the context, used for managing hooks and environment data.
|
|
30
|
-
*
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
interface Unstable_Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
34
|
-
$$internal: Unstable_ContextInternal<TResolvedConfig>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* An internal representation of the API context, used for managing hooks and environment data.
|
|
38
|
-
*
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
interface Unstable_ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends ExecutionContext<TResolvedConfig> {
|
|
42
|
-
$$internal: Unstable_ContextInternal<TResolvedConfig>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* An internal representation of the environment context, used for managing hooks and environment data.
|
|
46
|
-
*
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
interface Unstable_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
|
|
50
|
-
$$internal: Unstable_ContextInternal<TResolvedConfig>;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Internal fields and methods for the internal plugin context
|
|
54
|
-
*
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
interface Unstable_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Unstable_ContextInternal<TResolvedConfig> {
|
|
58
|
-
/**
|
|
59
|
-
* The {@link API | API instance} for interacting with Powerlines
|
|
60
|
-
*
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
api: API<TResolvedConfig>;
|
|
64
|
-
/**
|
|
65
|
-
* The environment context associated with this plugin context
|
|
66
|
-
*
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
environment: Unstable_EnvironmentContext<TResolvedConfig>;
|
|
70
|
-
/**
|
|
71
|
-
* Call a hook within the Powerlines system
|
|
72
|
-
*
|
|
73
|
-
* @internal
|
|
74
|
-
*
|
|
75
|
-
* @param hook - The name of the hook to call
|
|
76
|
-
* @param options - Options for calling the hook
|
|
77
|
-
* @param args - Arguments to pass to the hook
|
|
78
|
-
* @returns The result of the hook call
|
|
79
|
-
*/
|
|
80
|
-
callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
81
|
-
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
82
|
-
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
83
|
-
/**
|
|
84
|
-
* A place to store internal data for the plugin context
|
|
85
|
-
*
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
meta: Record<string, any>;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* An internal representation of the plugin context, used for managing hooks and environment data.
|
|
92
|
-
*
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
interface Unstable_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
|
|
96
|
-
$$internal: Unstable_PluginContextInternal<TResolvedConfig>;
|
|
97
|
-
}
|
|
98
|
-
declare type __ΩUnstable_ContextInternal = any[];
|
|
99
|
-
declare type __ΩUnstable_Context = any[];
|
|
100
|
-
declare type __ΩUnstable_ExecutionContext = any[];
|
|
101
|
-
declare type __ΩUnstable_EnvironmentContext = any[];
|
|
102
|
-
declare type __ΩUnstable_PluginContextInternal = any[];
|
|
103
|
-
declare type __ΩUnstable_PluginContext = any[];
|
|
104
|
-
//#endregion
|
|
105
|
-
export { Unstable_Context, Unstable_ContextInternal, Unstable_EnvironmentContext, Unstable_ExecutionContext, Unstable_PluginContext, Unstable_PluginContextInternal, __ΩUnstable_Context, __ΩUnstable_ContextInternal, __ΩUnstable_EnvironmentContext, __ΩUnstable_ExecutionContext, __ΩUnstable_PluginContext, __ΩUnstable_PluginContextInternal };
|
|
106
|
-
//# sourceMappingURL=_internal.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;;;;;AAuCA;;;UAAiB,wBAAA,yBACS,cAAA,GAAiB,cAAA;EAAA;;;;;EAOzC,GAAA,EAAK,GAAA,CAAI,eAAA;EAWJ;;;;;;;EAFL,SAAA,GACE,MAAA,EAAQ,YAAA,CAAa,aAAA,CAAc,eAAA,OAChC,OAAA;AAAA;;;;;;UAQU,gBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,OAAA,CAAQ,eAAA;EAChB,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;AAHvC;;;;;AAAA,UAWiB,yBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,gBAAA,CAAiB,eAAA;EACzB,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;;;;;;UAQtB,2BAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,kBAAA,CAAmB,eAAA;EAC3B,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;;;;;;UAQtB,8BAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,wBAAA,CAAyB,eAAA;EAxBO;;;;;EA8BxC,GAAA,EAAK,GAAA,CAAI,eAAA;EA3BG;;;;;EAkCZ,WAAA,EAAa,2BAAA,CAA4B,eAAA;EApCA;;;;;;;;AAU3C;;EAsCE,QAAA,wBACE,IAAA,EAAM,IAAA,EACN,OAAA,EAAS,eAAA;IACP,WAAA,YAAuB,kBAAA,CAAmB,eAAA;EAAA,MAEzC,IAAA,EAAM,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA,MAC1D,OAAA,CACH,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA;EA3C3B;;;;;EAmD3B,IAAA,EAAM,MAAA;AAAA;;;;;;UAQS,sBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,aAAA,CAAc,eAAA;EACtB,UAAA,EAAY,8BAAA,CAA+B,eAAA;AAAA;AAAA"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { API } from "./api.mjs";
|
|
2
|
-
import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
3
|
-
import { Context, EnvironmentContext, ExecutionContext, PluginContext } from "./context.mjs";
|
|
4
|
-
import { PluginConfig, ResolvedConfig } from "./config.mjs";
|
|
5
|
-
|
|
6
|
-
//#region src/types/_internal.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Internal fields and methods for internal contexts
|
|
9
|
-
*
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
interface Unstable_ContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
13
|
-
/**
|
|
14
|
-
* The {@link API | API instance} for interacting with Powerlines
|
|
15
|
-
*
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
api: API<TResolvedConfig>;
|
|
19
|
-
/**
|
|
20
|
-
* Add a Powerlines plugin used in the build process
|
|
21
|
-
*
|
|
22
|
-
* @internal
|
|
23
|
-
*
|
|
24
|
-
* @param config - The import path of the plugin to add
|
|
25
|
-
*/
|
|
26
|
-
addPlugin: (config: PluginConfig<PluginContext<TResolvedConfig>>) => Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* An internal representation of the context, used for managing hooks and environment data.
|
|
30
|
-
*
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
interface Unstable_Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
34
|
-
$$internal: Unstable_ContextInternal<TResolvedConfig>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* An internal representation of the API context, used for managing hooks and environment data.
|
|
38
|
-
*
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
interface Unstable_ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends ExecutionContext<TResolvedConfig> {
|
|
42
|
-
$$internal: Unstable_ContextInternal<TResolvedConfig>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* An internal representation of the environment context, used for managing hooks and environment data.
|
|
46
|
-
*
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
interface Unstable_EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends EnvironmentContext<TResolvedConfig> {
|
|
50
|
-
$$internal: Unstable_ContextInternal<TResolvedConfig>;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Internal fields and methods for the internal plugin context
|
|
54
|
-
*
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
interface Unstable_PluginContextInternal<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Unstable_ContextInternal<TResolvedConfig> {
|
|
58
|
-
/**
|
|
59
|
-
* The {@link API | API instance} for interacting with Powerlines
|
|
60
|
-
*
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
api: API<TResolvedConfig>;
|
|
64
|
-
/**
|
|
65
|
-
* The environment context associated with this plugin context
|
|
66
|
-
*
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
environment: Unstable_EnvironmentContext<TResolvedConfig>;
|
|
70
|
-
/**
|
|
71
|
-
* Call a hook within the Powerlines system
|
|
72
|
-
*
|
|
73
|
-
* @internal
|
|
74
|
-
*
|
|
75
|
-
* @param hook - The name of the hook to call
|
|
76
|
-
* @param options - Options for calling the hook
|
|
77
|
-
* @param args - Arguments to pass to the hook
|
|
78
|
-
* @returns The result of the hook call
|
|
79
|
-
*/
|
|
80
|
-
callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
81
|
-
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
82
|
-
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
83
|
-
/**
|
|
84
|
-
* A place to store internal data for the plugin context
|
|
85
|
-
*
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
meta: Record<string, any>;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* An internal representation of the plugin context, used for managing hooks and environment data.
|
|
92
|
-
*
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
interface Unstable_PluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PluginContext<TResolvedConfig> {
|
|
96
|
-
$$internal: Unstable_PluginContextInternal<TResolvedConfig>;
|
|
97
|
-
}
|
|
98
|
-
declare type __ΩUnstable_ContextInternal = any[];
|
|
99
|
-
declare type __ΩUnstable_Context = any[];
|
|
100
|
-
declare type __ΩUnstable_ExecutionContext = any[];
|
|
101
|
-
declare type __ΩUnstable_EnvironmentContext = any[];
|
|
102
|
-
declare type __ΩUnstable_PluginContextInternal = any[];
|
|
103
|
-
declare type __ΩUnstable_PluginContext = any[];
|
|
104
|
-
//#endregion
|
|
105
|
-
export { Unstable_Context, Unstable_ContextInternal, Unstable_EnvironmentContext, Unstable_ExecutionContext, Unstable_PluginContext, Unstable_PluginContextInternal, __ΩUnstable_Context, __ΩUnstable_ContextInternal, __ΩUnstable_EnvironmentContext, __ΩUnstable_ExecutionContext, __ΩUnstable_PluginContext, __ΩUnstable_PluginContextInternal };
|
|
106
|
-
//# sourceMappingURL=_internal.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"mappings":";;;;;;;;AAuCA;;;UAAiB,wBAAA,yBACS,cAAA,GAAiB,cAAA;EAAA;;;;;EAOzC,GAAA,EAAK,GAAA,CAAI,eAAA;EAWJ;;;;;;;EAFL,SAAA,GACE,MAAA,EAAQ,YAAA,CAAa,aAAA,CAAc,eAAA,OAChC,OAAA;AAAA;;;;;;UAQU,gBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,OAAA,CAAQ,eAAA;EAChB,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;AAHvC;;;;;AAAA,UAWiB,yBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,gBAAA,CAAiB,eAAA;EACzB,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;;;;;;UAQtB,2BAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,kBAAA,CAAmB,eAAA;EAC3B,UAAA,EAAY,wBAAA,CAAyB,eAAA;AAAA;;;;;;UAQtB,8BAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,wBAAA,CAAyB,eAAA;EAxBO;;;;;EA8BxC,GAAA,EAAK,GAAA,CAAI,eAAA;EA3BG;;;;;EAkCZ,WAAA,EAAa,2BAAA,CAA4B,eAAA;EApCA;;;;;;;;AAU3C;;EAsCE,QAAA,wBACE,IAAA,EAAM,IAAA,EACN,OAAA,EAAS,eAAA;IACP,WAAA,YAAuB,kBAAA,CAAmB,eAAA;EAAA,MAEzC,IAAA,EAAM,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA,MAC1D,OAAA,CACH,mBAAA,CAAoB,aAAA,CAAc,eAAA,GAAkB,IAAA;EA3C3B;;;;;EAmD3B,IAAA,EAAM,MAAA;AAAA;;;;;;UAQS,sBAAA,yBACS,cAAA,GAAiB,cAAA,UACjC,aAAA,CAAc,eAAA;EACtB,UAAA,EAAY,8BAAA,CAA+B,eAAA;AAAA;AAAA"}
|
package/dist/types/_internal.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BASE_API_FUNCTIONS } from "../constants/api.cjs";
|
|
2
|
-
import { SUPPORTED_COMMANDS } from "../constants/commands.cjs";
|
|
3
|
-
import { Context } from "./context.cjs";
|
|
4
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
5
|
-
import { ArrayValues } from "@stryke/types/array";
|
|
6
|
-
|
|
7
|
-
//#region src/types/commands.d.ts
|
|
8
|
-
type BaseCommandType = ArrayValues<typeof BASE_API_FUNCTIONS> | "finalize";
|
|
9
|
-
type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
|
|
10
|
-
type Commands<TContext extends Context = Context> = Record<CommandType, (this: TContext) => MaybePromise<void>>;
|
|
11
|
-
declare type __ΩBaseCommandType = any[];
|
|
12
|
-
declare type __ΩCommandType = any[];
|
|
13
|
-
declare type __ΩCommands = any[];
|
|
14
|
-
//#endregion
|
|
15
|
-
export { BaseCommandType, CommandType, Commands, __ΩBaseCommandType, __ΩCommandType, __ΩCommands };
|
|
16
|
-
//# sourceMappingURL=commands.d.cts.map
|