@powerlines/core 0.47.4 → 0.48.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 +5 -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 +1 -1
- 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/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.mjs.map +1 -1
- package/dist/constants/hooks.mjs.map +1 -1
- package/dist/constants/index.cjs +16 -4
- package/dist/constants/index.d.cts +4 -2
- package/dist/constants/index.d.mts +4 -2
- package/dist/constants/index.mjs +6 -4
- package/dist/constants/log-level.cjs +10 -10
- package/dist/constants/log-level.d.cts +10 -10
- package/dist/constants/log-level.d.mts +10 -10
- package/dist/constants/log-level.mjs +10 -10
- package/dist/constants/log-level.mjs.map +1 -1
- package/dist/constants/plugin.d.cts +2 -2
- package/dist/constants/plugin.d.mts +2 -2
- package/dist/constants/plugin.mjs.map +1 -1
- package/dist/context/base-context.cjs +121 -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 +119 -0
- package/dist/context/base-context.mjs.map +1 -0
- package/dist/context/context.cjs +935 -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 +933 -0
- package/dist/context/context.mjs.map +1 -0
- package/dist/context/environment-context.cjs +218 -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 +236 -0
- package/dist/context/execution-context.d.cts +106 -0
- package/dist/context/execution-context.d.cts.map +1 -0
- package/dist/context/execution-context.d.mts +106 -0
- package/dist/context/execution-context.d.mts.map +1 -0
- package/dist/context/execution-context.mjs +234 -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 +82 -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 -3
- package/dist/index.d.cts +27 -16
- package/dist/index.d.mts +27 -16
- package/dist/index.mjs +17 -4
- package/dist/lib/config.cjs +160 -21
- package/dist/lib/config.d.cts +116 -12
- package/dist/lib/config.d.cts.map +1 -1
- package/dist/lib/config.d.mts +116 -12
- package/dist/lib/config.d.mts.map +1 -1
- package/dist/lib/config.mjs +154 -22
- package/dist/lib/config.mjs.map +1 -1
- package/dist/lib/context-helpers.cjs +42 -0
- package/dist/lib/context-helpers.d.cts +16 -0
- package/dist/lib/context-helpers.d.cts.map +1 -0
- package/dist/lib/context-helpers.d.mts +16 -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 -6
- 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 +370 -0
- package/dist/lib/generate-types.d.cts +66 -0
- package/dist/lib/generate-types.d.cts.map +1 -0
- package/dist/lib/generate-types.d.mts +66 -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 -3
- package/dist/lib/index.d.cts +18 -5
- package/dist/lib/index.d.mts +18 -5
- package/dist/lib/index.mjs +19 -4
- package/dist/lib/install-dependencies.cjs +24 -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 +56 -0
- package/dist/lib/meta.d.cts +33 -0
- package/dist/lib/meta.d.cts.map +1 -0
- package/dist/lib/meta.d.mts +33 -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 +39 -0
- package/dist/lib/plugins.d.cts.map +1 -0
- package/dist/lib/plugins.d.mts +39 -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 +20 -0
- package/dist/lib/resolver.d.cts.map +1 -0
- package/dist/lib/resolver.d.mts +20 -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 +259 -0
- package/dist/lib/streaming-channel.d.cts +126 -0
- package/dist/lib/streaming-channel.d.cts.map +1 -0
- package/dist/lib/streaming-channel.d.mts +126 -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 +0 -1
- package/dist/lib/unplugin/helpers.d.cts.map +1 -1
- package/dist/lib/unplugin/helpers.d.mts.map +1 -1
- package/dist/lib/unplugin/helpers.mjs.map +1 -1
- package/dist/lib/unplugin/index.d.cts +3 -3
- package/dist/lib/unplugin/index.d.mts +3 -3
- package/dist/lib/unplugin/module-resolution.cjs +8 -9
- package/dist/lib/unplugin/module-resolution.d.cts +3 -4
- package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
- package/dist/lib/unplugin/module-resolution.d.mts +3 -4
- package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
- package/dist/lib/unplugin/module-resolution.mjs +8 -9
- package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.cjs +54 -61
- package/dist/lib/unplugin/plugin.d.cts +5 -7
- package/dist/lib/unplugin/plugin.d.cts.map +1 -1
- package/dist/lib/unplugin/plugin.d.mts +5 -7
- package/dist/lib/unplugin/plugin.d.mts.map +1 -1
- package/dist/lib/unplugin/plugin.mjs +54 -60
- package/dist/lib/unplugin/plugin.mjs.map +1 -1
- package/dist/lib/utilities/file-header.cjs +2 -3
- package/dist/lib/utilities/file-header.d.cts +1 -2
- package/dist/lib/utilities/file-header.d.cts.map +1 -1
- package/dist/lib/utilities/file-header.d.mts +1 -2
- package/dist/lib/utilities/file-header.d.mts.map +1 -1
- 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.d.cts.map +1 -1
- package/dist/lib/utilities/format.d.mts.map +1 -1
- package/dist/lib/utilities/format.mjs +1 -1
- package/dist/lib/utilities/format.mjs.map +1 -1
- package/dist/lib/utilities/index.cjs +1 -1
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.mts +2 -2
- package/dist/lib/utilities/index.mjs +1 -1
- package/dist/lib/utilities/source-file.d.cts.map +1 -1
- package/dist/lib/utilities/source-file.d.mts.map +1 -1
- package/dist/lib/utilities/source-file.mjs.map +1 -1
- package/dist/lib/utilities/source-map.d.cts.map +1 -1
- package/dist/lib/utilities/source-map.d.mts.map +1 -1
- package/dist/lib/utilities/source-map.mjs.map +1 -1
- package/dist/lib/utilities/write-file.cjs +0 -1
- 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 -2
- package/dist/plugin-base.d.cts +1 -5
- package/dist/plugin-base.d.cts.map +1 -1
- package/dist/plugin-base.d.mts +1 -5
- package/dist/plugin-base.d.mts.map +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 -3
- package/dist/plugin-utils/build-helpers.d.cts +3 -4
- package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/build-helpers.d.mts +3 -4
- 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/combine-plugins.cjs +0 -1
- package/dist/plugin-utils/combine-plugins.d.cts +7 -9
- package/dist/plugin-utils/combine-plugins.d.cts.map +1 -1
- package/dist/plugin-utils/combine-plugins.d.mts +7 -9
- package/dist/plugin-utils/combine-plugins.d.mts.map +1 -1
- package/dist/plugin-utils/combine-plugins.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +0 -1
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/docs-helper.cjs +0 -1
- package/dist/plugin-utils/docs-helper.d.cts.map +1 -1
- package/dist/plugin-utils/docs-helper.d.mts.map +1 -1
- package/dist/plugin-utils/docs-helper.mjs.map +1 -1
- package/dist/plugin-utils/enable-plugin.cjs +33 -0
- package/dist/plugin-utils/enable-plugin.d.cts +29 -0
- package/dist/plugin-utils/enable-plugin.d.cts.map +1 -0
- package/dist/plugin-utils/enable-plugin.d.mts +29 -0
- package/dist/plugin-utils/enable-plugin.d.mts.map +1 -0
- package/dist/plugin-utils/enable-plugin.mjs +33 -0
- package/dist/plugin-utils/enable-plugin.mjs.map +1 -0
- package/dist/plugin-utils/extend.cjs +0 -1
- package/dist/plugin-utils/extend.mjs.map +1 -1
- package/dist/plugin-utils/filter.cjs +2 -2
- package/dist/plugin-utils/filter.d.cts.map +1 -1
- package/dist/plugin-utils/filter.d.mts.map +1 -1
- package/dist/plugin-utils/filter.mjs +2 -2
- package/dist/plugin-utils/filter.mjs.map +1 -1
- package/dist/plugin-utils/format-package-json.cjs +0 -1
- package/dist/plugin-utils/format-package-json.mjs.map +1 -1
- package/dist/plugin-utils/format.cjs +14 -7
- package/dist/plugin-utils/format.d.cts.map +1 -1
- package/dist/plugin-utils/format.d.mts.map +1 -1
- package/dist/plugin-utils/format.mjs +14 -6
- package/dist/plugin-utils/format.mjs.map +1 -1
- package/dist/plugin-utils/get-config-path.cjs +0 -1
- package/dist/plugin-utils/get-config-path.d.cts.map +1 -1
- package/dist/plugin-utils/get-config-path.d.mts.map +1 -1
- package/dist/plugin-utils/get-config-path.mjs.map +1 -1
- package/dist/plugin-utils/helpers.cjs +1 -2
- package/dist/plugin-utils/helpers.d.cts +18 -23
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts +18 -23
- 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 +7 -2
- package/dist/plugin-utils/index.d.cts +8 -6
- package/dist/plugin-utils/index.d.mts +8 -6
- package/dist/plugin-utils/index.mjs +5 -3
- package/dist/plugin-utils/install.cjs +46 -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 +50 -47
- package/dist/plugin-utils/logging.d.cts +3 -2
- package/dist/plugin-utils/logging.d.cts.map +1 -1
- package/dist/plugin-utils/logging.d.mts +3 -2
- package/dist/plugin-utils/logging.d.mts.map +1 -1
- package/dist/plugin-utils/logging.mjs +50 -47
- package/dist/plugin-utils/logging.mjs.map +1 -1
- package/dist/plugin-utils/merge.cjs +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -2
- package/dist/plugin-utils/merge.d.cts.map +1 -1
- package/dist/plugin-utils/merge.d.mts +1 -2
- package/dist/plugin-utils/merge.d.mts.map +1 -1
- package/dist/plugin-utils/merge.mjs +1 -1
- package/dist/plugin-utils/merge.mjs.map +1 -1
- package/dist/plugin-utils/modules.cjs +1 -1
- package/dist/plugin-utils/modules.d.cts.map +1 -1
- package/dist/plugin-utils/modules.d.mts.map +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 +1 -2
- package/dist/plugin-utils/paths.d.cts.map +1 -1
- package/dist/plugin-utils/paths.d.mts.map +1 -1
- package/dist/plugin-utils/paths.mjs +1 -1
- package/dist/plugin-utils/paths.mjs.map +1 -1
- package/dist/plugin-utils/virtual.d.cts +1 -2
- package/dist/plugin-utils/virtual.d.cts.map +1 -1
- package/dist/plugin-utils/virtual.d.mts +1 -2
- package/dist/plugin-utils/virtual.d.mts.map +1 -1
- package/dist/plugin-utils/virtual.mjs.map +1 -1
- 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 +200 -0
- package/dist/storage/base.d.cts.map +1 -0
- package/dist/storage/base.d.mts +200 -0
- package/dist/storage/base.d.mts.map +1 -0
- package/dist/storage/base.mjs +216 -0
- package/dist/storage/base.mjs.map +1 -0
- package/dist/storage/file-system.cjs +179 -0
- package/dist/storage/file-system.d.cts +127 -0
- package/dist/storage/file-system.d.cts.map +1 -0
- package/dist/storage/file-system.d.mts +127 -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 +36 -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 +97 -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 +10 -162
- package/dist/types/api.d.cts.map +1 -1
- package/dist/types/api.d.mts +10 -162
- package/dist/types/api.d.mts.map +1 -1
- package/dist/types/config.d.cts +144 -181
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +145 -182
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/context.d.cts +120 -184
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +123 -187
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/fs.d.cts +1 -12
- package/dist/types/fs.d.cts.map +1 -1
- package/dist/types/fs.d.mts +2 -13
- package/dist/types/fs.d.mts.map +1 -1
- package/dist/types/hooks.d.cts +1 -12
- package/dist/types/hooks.d.cts.map +1 -1
- package/dist/types/hooks.d.mts +1 -12
- package/dist/types/hooks.d.mts.map +1 -1
- package/dist/types/index.d.cts +9 -11
- package/dist/types/index.d.mts +9 -11
- package/dist/types/logging.d.cts +5 -20
- package/dist/types/logging.d.cts.map +1 -1
- package/dist/types/logging.d.mts +5 -20
- package/dist/types/logging.d.mts.map +1 -1
- package/dist/types/plugin.d.cts +5 -15
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +5 -15
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/tsconfig.d.cts +1 -8
- package/dist/types/tsconfig.d.cts.map +1 -1
- package/dist/types/tsconfig.d.mts +2 -9
- package/dist/types/tsconfig.d.mts.map +1 -1
- package/dist/types/unplugin.d.cts +6 -31
- package/dist/types/unplugin.d.cts.map +1 -1
- package/dist/types/unplugin.d.mts +6 -31
- package/dist/types/unplugin.d.mts.map +1 -1
- package/package.json +158 -25
- package/schemas/fs.capnp +42 -0
- package/dist/types/_internal.cjs +0 -0
- package/dist/types/_internal.d.cts +0 -91
- package/dist/types/_internal.d.cts.map +0 -1
- package/dist/types/_internal.d.mts +0 -91
- 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/dist/types/context.d.mts
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import { Plugin } from "./plugin.mjs";
|
|
2
|
-
import { HooksList, HooksListItem } from "./hooks.mjs";
|
|
3
|
-
import { API } from "./api.mjs";
|
|
4
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
5
|
-
import {
|
|
2
|
+
import { Plugin } from "./plugin.mjs";
|
|
3
|
+
import { CallHookOptions, HooksList, HooksListItem, InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
4
|
+
import { LogFn, LogMessage, Logger, LoggerOptions } from "./logging.mjs";
|
|
6
5
|
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
7
|
-
import {
|
|
6
|
+
import { EnvironmentResolvedConfig, ExecutionOptions, Options, PluginConfig, ResolvedConfig, ResolvedEntryTypeDefinition, UserConfig } from "./config.mjs";
|
|
7
|
+
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
8
|
+
import { Jiti } from "jiti";
|
|
8
9
|
import { ExternalIdResult, UnpluginBuildContext } from "unplugin";
|
|
9
10
|
import MagicString, { SourceMap } from "magic-string";
|
|
10
|
-
import { DeepPartial, DeepReadonly, RequiredKeys } from "@stryke/types/base";
|
|
11
|
-
import { Jiti } from "jiti";
|
|
12
|
-
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
13
11
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
14
|
-
import { PackageJson } from "@stryke/types/package-json";
|
|
15
12
|
import { ParseResult, ParserOptions } from "oxc-parser";
|
|
16
|
-
import { Range } from "semver";
|
|
17
13
|
import { RequestInfo, Response } from "undici";
|
|
14
|
+
import { DeepPartial } from "@stryke/types/base";
|
|
15
|
+
import { PackageJson } from "@stryke/types/package-json";
|
|
16
|
+
import { Range } from "semver";
|
|
18
17
|
import { Unimport } from "unimport";
|
|
19
18
|
|
|
20
19
|
//#region src/types/context.d.ts
|
|
21
|
-
|
|
20
|
+
type MetaInfo = Record<string, any> & {
|
|
22
21
|
/**
|
|
23
22
|
* The checksum generated from the resolved options
|
|
24
23
|
*/
|
|
25
24
|
checksum: string;
|
|
26
25
|
/**
|
|
27
|
-
* The
|
|
26
|
+
* The execution id
|
|
28
27
|
*/
|
|
29
|
-
|
|
28
|
+
executionId: string;
|
|
30
29
|
/**
|
|
31
30
|
* The release id
|
|
32
31
|
*/
|
|
33
32
|
releaseId: string;
|
|
34
33
|
/**
|
|
35
|
-
* The
|
|
34
|
+
* The execution timestamp
|
|
36
35
|
*/
|
|
37
36
|
timestamp: number;
|
|
38
37
|
/**
|
|
@@ -43,7 +42,7 @@ interface MetaInfo {
|
|
|
43
42
|
* A hash that represents the path to the configuration root directory
|
|
44
43
|
*/
|
|
45
44
|
configHash: string;
|
|
46
|
-
}
|
|
45
|
+
};
|
|
47
46
|
interface Resolver extends Jiti {
|
|
48
47
|
plugin: Jiti;
|
|
49
48
|
}
|
|
@@ -137,7 +136,11 @@ interface ResolveResult extends ExternalIdResult {
|
|
|
137
136
|
* @remarks
|
|
138
137
|
* This context provides the foundational structure for interacting with the Powerlines engine.
|
|
139
138
|
*/
|
|
140
|
-
interface BaseContext {
|
|
139
|
+
interface BaseContext<TSystemContext = any> extends Pick<Required<Options>, "cwd"> {
|
|
140
|
+
/**
|
|
141
|
+
* The system instance associated with the context, which can be used to interact with the Powerlines engine and perform various operations during the build process. The specific type of the system may vary depending on the environment and use case, but it typically provides methods for logging, file system operations, and other interactions with the Powerlines engine.
|
|
142
|
+
*/
|
|
143
|
+
system: TSystemContext;
|
|
141
144
|
/**
|
|
142
145
|
* The timestamp when the context was initialized
|
|
143
146
|
*/
|
|
@@ -151,17 +154,9 @@ interface BaseContext {
|
|
|
151
154
|
*/
|
|
152
155
|
powerlinesPath: string;
|
|
153
156
|
/**
|
|
154
|
-
* The
|
|
157
|
+
* The options provided to the Powerlines process.
|
|
155
158
|
*/
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* The options provided to the Powerlines process, resolved with default values and merged with any configuration provided by plugins or other sources. This is typically the final configuration used during the build process, but may also include additional options that are relevant to the context and its interactions with the Powerlines engine.
|
|
159
|
-
*/
|
|
160
|
-
options: RequiredKeys<EngineOptions, "mode" | "cwd" | "root" | "framework">;
|
|
161
|
-
/**
|
|
162
|
-
* The log level to use for the Powerlines processes.
|
|
163
|
-
*/
|
|
164
|
-
logLevel: LogLevelResolvedConfig;
|
|
159
|
+
options: Options;
|
|
165
160
|
/**
|
|
166
161
|
* An instance of the Powerlines logger client that can be used to generate log messages with consistent formatting and metadata.
|
|
167
162
|
*/
|
|
@@ -169,11 +164,11 @@ interface BaseContext {
|
|
|
169
164
|
/**
|
|
170
165
|
* A logging function for fatal messages
|
|
171
166
|
*/
|
|
172
|
-
fatal: (message: string | LogMessage) => void;
|
|
167
|
+
fatal: (message: string | LogMessage | Error) => void;
|
|
173
168
|
/**
|
|
174
169
|
* A logging function for error messages
|
|
175
170
|
*/
|
|
176
|
-
error: (message: string | LogMessage) => void;
|
|
171
|
+
error: (message: string | LogMessage | Error) => void;
|
|
177
172
|
/**
|
|
178
173
|
* A logging function for warning messages
|
|
179
174
|
*/
|
|
@@ -219,108 +214,23 @@ interface BaseContext {
|
|
|
219
214
|
*/
|
|
220
215
|
extendLogger: (options: LoggerOptions, logFn?: LogFn) => Logger;
|
|
221
216
|
}
|
|
222
|
-
interface ExecutionStateItem {
|
|
223
|
-
/**
|
|
224
|
-
* The timestamp when the command, hook, or plugin execution started
|
|
225
|
-
*/
|
|
226
|
-
timestamp: number;
|
|
227
|
-
/**
|
|
228
|
-
* The name of the command, hook, or plugin being executed
|
|
229
|
-
*/
|
|
230
|
-
name: string;
|
|
231
|
-
}
|
|
232
|
-
interface HookExecutionStateItem extends ExecutionStateItem {
|
|
233
|
-
/**
|
|
234
|
-
* The order of the hook being executed, which can be "pre", "post", or "normal". This indicates whether the hook is being executed
|
|
235
|
-
*/
|
|
236
|
-
order: "pre" | "post" | "normal";
|
|
237
|
-
}
|
|
238
|
-
interface ExecutionState {
|
|
239
|
-
/**
|
|
240
|
-
* A unique identifier for the current execution instance, which can be used for logging and other purposes to distinguish between different executions in the same process.
|
|
241
|
-
*/
|
|
242
|
-
executionId: string;
|
|
243
|
-
/**
|
|
244
|
-
* The options provided to the Powerlines process for this execution
|
|
245
|
-
*/
|
|
246
|
-
options: ExecutionOptions;
|
|
247
|
-
/**
|
|
248
|
-
* An object representing the currently active command, hook, and plugin executions for this execution context
|
|
249
|
-
*/
|
|
250
|
-
active: {
|
|
251
|
-
/**
|
|
252
|
-
* The currently active command execution for this execution context
|
|
253
|
-
*/
|
|
254
|
-
command: ExecutionStateItem | null;
|
|
255
|
-
/**
|
|
256
|
-
* The currently active hook execution for this execution context, if any
|
|
257
|
-
*/
|
|
258
|
-
hook: HookExecutionStateItem | null;
|
|
259
|
-
/**
|
|
260
|
-
* The currently active plugin execution for this execution context, if any
|
|
261
|
-
*/
|
|
262
|
-
plugin: ExecutionStateItem | null;
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* The Powerlines engine context.
|
|
267
|
-
*
|
|
268
|
-
* @remarks
|
|
269
|
-
* This context is used during the execution of the Powerlines engine, providing access to the input user configurations.
|
|
270
|
-
*/
|
|
271
|
-
interface EngineContext extends BaseContext {
|
|
272
|
-
/**
|
|
273
|
-
* The initial options provided to the Powerlines process before any resolution or merging. This is typically the user configuration provided in the Powerlines configuration file, but may also include additional configuration options provided by plugins or other sources.
|
|
274
|
-
*/
|
|
275
|
-
readonly initialOptions: EngineOptions;
|
|
276
|
-
/**
|
|
277
|
-
* The options provided to the Powerlines process
|
|
278
|
-
*/
|
|
279
|
-
options: RequiredKeys<Omit<EngineOptions, "logLevel">, "name" | "root" | "cwd" | "mode" | "framework"> & {
|
|
280
|
-
/**
|
|
281
|
-
* The log level to use for logging messages during the build process. This can be a string indicating the log level or a more detailed configuration object that allows for specifying different log levels for different categories of logs.
|
|
282
|
-
*/
|
|
283
|
-
logLevel: LogLevelResolvedConfig;
|
|
284
|
-
};
|
|
285
|
-
/**
|
|
286
|
-
* The initial user configuration provided to the Powerlines process before any resolution or merging. This is typically the user configuration provided in the Powerlines configuration file, but may also include additional configuration options provided by plugins or other sources.
|
|
287
|
-
*/
|
|
288
|
-
readonly initialConfig: DeepPartial<UserConfig>;
|
|
289
|
-
/**
|
|
290
|
-
* A list of all command executions that will be run during the lifecycle of the engine
|
|
291
|
-
*/
|
|
292
|
-
executions: ExecutionState[];
|
|
293
|
-
}
|
|
294
217
|
/**
|
|
295
218
|
* The unresolved Powerlines context.
|
|
296
219
|
*
|
|
297
220
|
* @remarks
|
|
298
221
|
* This context is used before the user configuration has been fully resolved after the `config`.
|
|
299
222
|
*/
|
|
300
|
-
interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends BaseContext {
|
|
223
|
+
interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = any> extends BaseContext<TSystemContext> {
|
|
301
224
|
/**
|
|
302
225
|
* The options provided to the Powerlines process, resolved with default values and merged with any configuration provided by plugins or other sources. This is typically the final configuration used during the build process, but may also include additional options that are relevant to the context and its interactions with the Powerlines engine.
|
|
303
226
|
*/
|
|
304
|
-
options:
|
|
227
|
+
options: ExecutionOptions;
|
|
305
228
|
/**
|
|
306
229
|
* An object containing the options provided to Powerlines
|
|
307
230
|
*/
|
|
308
|
-
config: Omit<TResolvedConfig
|
|
309
|
-
/**
|
|
310
|
-
* The output configuration options for the Powerlines process, which may include settings related to the output directory, file naming conventions, and other options that affect how the compiled output is generated and structured. This is typically derived from the user configuration but may also include additional options provided by plugins or other sources.
|
|
311
|
-
*/
|
|
312
|
-
output: TResolvedConfig["output"];
|
|
313
|
-
/**
|
|
314
|
-
* The original configuration options that were provided by the user to the Powerlines process, which may be used during the configuration resolution process to ensure that the final configuration is properly merged and applied to the context. This is typically the user configuration provided in the Powerlines configuration file, but may also include additional configuration options provided by plugins or other sources.
|
|
315
|
-
*/
|
|
316
|
-
readonly initialConfig: DeepReadonly<TResolvedConfig["initialConfig"]>;
|
|
317
|
-
/**
|
|
318
|
-
* The configuration options that were provided inline to the Powerlines CLI.
|
|
319
|
-
*/
|
|
320
|
-
readonly inlineConfig: DeepReadonly<TResolvedConfig["inlineConfig"]>;
|
|
321
|
-
};
|
|
231
|
+
config: Omit<TResolvedConfig, "pluginConfig">;
|
|
322
232
|
/**
|
|
323
|
-
*
|
|
233
|
+
* A place to store metadata information on the context for access in plugins and other parts of the system. This can be used to store information about the current execution, such as a unique identifier for the execution, timestamps, or any other relevant data that may be useful for plugins or other parts of the system to access during the build process.
|
|
324
234
|
*/
|
|
325
235
|
meta: MetaInfo;
|
|
326
236
|
/**
|
|
@@ -355,6 +265,24 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
355
265
|
* The path to the Powerlines TypeScript declaration files directory
|
|
356
266
|
*/
|
|
357
267
|
readonly typesPath: string;
|
|
268
|
+
/**
|
|
269
|
+
* Invokes the configured plugin hooks
|
|
270
|
+
*
|
|
271
|
+
* @remarks
|
|
272
|
+
* By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
|
|
273
|
+
*
|
|
274
|
+
* @param hook - The hook to call
|
|
275
|
+
* @param options - The options to provide to the hook
|
|
276
|
+
* @param args - The arguments to pass to the hook
|
|
277
|
+
* @returns The result of the hook call
|
|
278
|
+
*/
|
|
279
|
+
callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
280
|
+
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
281
|
+
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
282
|
+
/**
|
|
283
|
+
* The virtual file system interface for managing files during the build process
|
|
284
|
+
*/
|
|
285
|
+
fs: VirtualFileSystemInterface;
|
|
358
286
|
/**
|
|
359
287
|
* The project's `package.json` file content
|
|
360
288
|
*/
|
|
@@ -379,10 +307,6 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
379
307
|
* The entry points of the source code
|
|
380
308
|
*/
|
|
381
309
|
entry: ResolvedEntryTypeDefinition[];
|
|
382
|
-
/**
|
|
383
|
-
* The virtual file system manager used during the build process to reference generated runtime files
|
|
384
|
-
*/
|
|
385
|
-
fs: VirtualFileSystemInterface;
|
|
386
310
|
/**
|
|
387
311
|
* The Jiti module resolver
|
|
388
312
|
*/
|
|
@@ -557,13 +481,34 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
557
481
|
* @remarks
|
|
558
482
|
* This context is used after the user configuration has been fully resolved and merged with default values, providing access to the final configuration options and utility functions for interacting with the Powerlines engine.
|
|
559
483
|
*/
|
|
560
|
-
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
|
|
484
|
+
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = any> = Omit<UnresolvedContext<TResolvedConfig, TSystemContext>, "config" | "callHook"> & {
|
|
561
485
|
/**
|
|
562
486
|
* The fully resolved Powerlines configuration
|
|
563
487
|
*/
|
|
564
488
|
config: TResolvedConfig;
|
|
489
|
+
/**
|
|
490
|
+
* A setter function to populate the plugin config values provided during execution of the command, such as CLI flags or other parameters that may be relevant to the command being executed. This function can be used to update the context with the plugin configuration values, which may be used during the configuration resolution process to ensure that the final configuration reflects both the user configuration and any plugin configuration provided during execution.
|
|
491
|
+
*
|
|
492
|
+
* @param config - The plugin configuration values to set.
|
|
493
|
+
* @returns A promise that resolves when the plugin configuration values have been set.
|
|
494
|
+
*/
|
|
495
|
+
setPluginConfig: (config: DeepPartial<UserConfig>) => Promise<void>;
|
|
496
|
+
/**
|
|
497
|
+
* Invokes the configured plugin hooks
|
|
498
|
+
*
|
|
499
|
+
* @remarks
|
|
500
|
+
* By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
|
|
501
|
+
*
|
|
502
|
+
* @param hook - The hook to call
|
|
503
|
+
* @param options - The options to provide to the hook
|
|
504
|
+
* @param args - The arguments to pass to the hook
|
|
505
|
+
* @returns The result of the hook call
|
|
506
|
+
*/
|
|
507
|
+
callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
508
|
+
environment?: string | EnvironmentContext<any, any>;
|
|
509
|
+
}, ...args: InferHookParameters<PluginContext<any, any>, TKey>) => Promise<InferHookReturnType<PluginContext<any, any>, TKey> | undefined>;
|
|
565
510
|
};
|
|
566
|
-
interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
511
|
+
interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = any> extends Context<TResolvedConfig, TSystemContext> {
|
|
567
512
|
/**
|
|
568
513
|
* The unique identifier of the execution context, which can be used for logging and other purposes to distinguish between different executions in the same process.
|
|
569
514
|
*/
|
|
@@ -574,15 +519,11 @@ interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConf
|
|
|
574
519
|
* @remarks
|
|
575
520
|
* This is a record of plugin identifiers to their respective options. This field is populated by the Powerlines engine during both plugin initialization and the `init` command.
|
|
576
521
|
*/
|
|
577
|
-
plugins: Plugin<PluginContext<TResolvedConfig>>[];
|
|
522
|
+
plugins: Plugin<PluginContext<TResolvedConfig, TSystemContext>>[];
|
|
578
523
|
/**
|
|
579
524
|
* A table for storing the current context for each configured environment
|
|
580
525
|
*/
|
|
581
|
-
environments: Record<string, EnvironmentContext<TResolvedConfig>>;
|
|
582
|
-
/**
|
|
583
|
-
* A function to add a plugin to the context and update the configuration options
|
|
584
|
-
*/
|
|
585
|
-
addPlugin: (plugin: Plugin<PluginContext<TResolvedConfig>>) => Promise<void>;
|
|
526
|
+
environments: Record<string, EnvironmentContext<TResolvedConfig, TSystemContext>>;
|
|
586
527
|
/**
|
|
587
528
|
* Retrieves the context for a specific environment by name
|
|
588
529
|
*
|
|
@@ -597,7 +538,7 @@ interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConf
|
|
|
597
538
|
* const defaultEnv = await apiContext.getEnvironment();
|
|
598
539
|
* ```
|
|
599
540
|
*/
|
|
600
|
-
getEnvironment: (name?: string) => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
541
|
+
getEnvironment: (name?: string) => Promise<EnvironmentContext<TResolvedConfig, TSystemContext>>;
|
|
601
542
|
/**
|
|
602
543
|
* Safely retrieves the context for a specific environment by name
|
|
603
544
|
*
|
|
@@ -625,43 +566,58 @@ interface ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConf
|
|
|
625
566
|
*
|
|
626
567
|
* Using this method helps avoid unhandled exceptions in cases where an environment might not be defined.
|
|
627
568
|
*/
|
|
628
|
-
getEnvironmentSafe: (name?: string) => Promise<EnvironmentContext<TResolvedConfig> | undefined>;
|
|
569
|
+
getEnvironmentSafe: (name?: string) => Promise<EnvironmentContext<TResolvedConfig, TSystemContext> | undefined>;
|
|
629
570
|
/**
|
|
630
571
|
* A function to copy the context and update the fields for a specific environment
|
|
631
572
|
*
|
|
632
573
|
* @param environment - The environment configuration to use.
|
|
633
574
|
* @returns A new context instance with the updated environment.
|
|
634
575
|
*/
|
|
635
|
-
createEnvironment: (environment: EnvironmentResolvedConfig<TResolvedConfig>["environment"]) => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
576
|
+
createEnvironment: (environment: EnvironmentResolvedConfig<TResolvedConfig>["environment"]) => Promise<EnvironmentContext<TResolvedConfig, TSystemContext>>;
|
|
636
577
|
/**
|
|
637
578
|
* A function to merge all configured environments into a single context
|
|
638
579
|
*
|
|
639
580
|
* @returns A promise that resolves to the merged environment context.
|
|
640
581
|
*/
|
|
641
|
-
toEnvironment: () => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
642
|
-
}
|
|
643
|
-
interface EnvironmentContextPlugin<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
644
|
-
/**
|
|
645
|
-
* The unique identifier of the plugin, which can be used for logging and other purposes to distinguish between different plugins in the same process.
|
|
646
|
-
*/
|
|
647
|
-
readonly id: string;
|
|
582
|
+
toEnvironment: () => Promise<EnvironmentContext<TResolvedConfig, TSystemContext>>;
|
|
648
583
|
/**
|
|
649
|
-
*
|
|
584
|
+
* A function used internally to add a plugin to the context and update the configuration options
|
|
585
|
+
*
|
|
586
|
+
* @danger
|
|
587
|
+
* This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
|
|
588
|
+
*
|
|
589
|
+
* @internal
|
|
650
590
|
*/
|
|
651
|
-
plugin:
|
|
591
|
+
unstable_addPlugin: (plugin: PluginConfig<PluginContext<TResolvedConfig, TSystemContext>>) => Promise<void>;
|
|
592
|
+
}
|
|
593
|
+
interface EnvironmentPlugin<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = any> extends Plugin<PluginContext<TResolvedConfig, TSystemContext>> {
|
|
652
594
|
/**
|
|
653
|
-
*
|
|
595
|
+
* A internal field to store the plugin configuration and context for the environment context
|
|
654
596
|
*
|
|
655
|
-
* @
|
|
656
|
-
* This
|
|
597
|
+
* @danger
|
|
598
|
+
* This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
|
|
599
|
+
*
|
|
600
|
+
* @internal
|
|
657
601
|
*/
|
|
658
|
-
|
|
602
|
+
"~internal": {
|
|
603
|
+
/**
|
|
604
|
+
* The unique identifier of the plugin, which can be used for logging and other purposes to distinguish between different plugins in the same process.
|
|
605
|
+
*/
|
|
606
|
+
readonly id: string;
|
|
607
|
+
/**
|
|
608
|
+
* The context for the plugin, which provides access to the Powerlines engine and other utilities for interacting with the build process.
|
|
609
|
+
*
|
|
610
|
+
* @remarks
|
|
611
|
+
* This context is specific to the plugin and environment, allowing for environment-specific modifications without affecting the global context.
|
|
612
|
+
*/
|
|
613
|
+
readonly context: PluginContext<TResolvedConfig, TSystemContext>;
|
|
614
|
+
};
|
|
659
615
|
}
|
|
660
616
|
type SelectHookResultItem<TContext extends PluginContext, TKey extends string> = HooksListItem<TContext, TKey> & {
|
|
661
617
|
context: TContext;
|
|
662
618
|
};
|
|
663
619
|
type SelectHookResult<TContext extends PluginContext, TKey extends string> = SelectHookResultItem<TContext, TKey>[];
|
|
664
|
-
interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<EnvironmentResolvedConfig<TResolvedConfig
|
|
620
|
+
interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = any> extends Context<EnvironmentResolvedConfig<TResolvedConfig>, TSystemContext> {
|
|
665
621
|
/**
|
|
666
622
|
* The unique identifier of the environment associated with this context, which can be used for logging and other purposes to distinguish between different environments in the same process.
|
|
667
623
|
*/
|
|
@@ -672,32 +628,39 @@ interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedCo
|
|
|
672
628
|
* @remarks
|
|
673
629
|
* This is a record of plugin identifiers to their respective options. This field is populated by the Powerlines engine during both plugin initialization and the `init` command.
|
|
674
630
|
*/
|
|
675
|
-
plugins:
|
|
631
|
+
plugins: EnvironmentPlugin<TResolvedConfig, TSystemContext>[];
|
|
676
632
|
/**
|
|
677
633
|
* A table holding references to hook functions registered by plugins
|
|
678
634
|
*/
|
|
679
|
-
hooks: HooksList<PluginContext<TResolvedConfig>>;
|
|
635
|
+
hooks: HooksList<PluginContext<TResolvedConfig, TSystemContext>>;
|
|
680
636
|
/**
|
|
681
|
-
*
|
|
637
|
+
* The execution context associated with this environment, which provides access to the project configuration, environment, and utility functions for performing the build. The execution context is used to manage the state and behavior of the build process across multiple environments, allowing for hooks to be called at different stages of the build and for environment-specific configurations to be applied.
|
|
638
|
+
*
|
|
639
|
+
* @danger
|
|
640
|
+
* This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
|
|
641
|
+
*
|
|
642
|
+
* @internal
|
|
682
643
|
*/
|
|
683
|
-
|
|
644
|
+
unstable_execution: ExecutionContext<TResolvedConfig, TSystemContext>;
|
|
684
645
|
/**
|
|
685
646
|
* Retrieves the hook handlers for a specific hook name
|
|
686
647
|
*/
|
|
687
|
-
selectHooks: <TKey extends string>(key: TKey, options?: SelectHooksOptions) => SelectHookResult<PluginContext<TResolvedConfig>, TKey>;
|
|
648
|
+
selectHooks: <TKey extends string>(key: TKey, options?: SelectHooksOptions) => SelectHookResult<PluginContext<TResolvedConfig, TSystemContext>, TKey>;
|
|
649
|
+
/**
|
|
650
|
+
* A function used internally to add a plugin to the context and update the configuration options
|
|
651
|
+
*
|
|
652
|
+
* @danger
|
|
653
|
+
* This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.
|
|
654
|
+
*
|
|
655
|
+
* @internal
|
|
656
|
+
*/
|
|
657
|
+
unstable_addPlugin: (plugin: PluginConfig<PluginContext<TResolvedConfig, TSystemContext>>) => Promise<void>;
|
|
688
658
|
}
|
|
689
|
-
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig,
|
|
659
|
+
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig, TSystemContext = any> extends Context<EnvironmentResolvedConfig<TResolvedConfig>, TSystemContext> {
|
|
690
660
|
/**
|
|
691
661
|
* The unique identifier of the plugin associated with this context, which can be used for logging and other purposes to distinguish between different plugins in the same process.
|
|
692
662
|
*/
|
|
693
663
|
readonly id: string;
|
|
694
|
-
/**
|
|
695
|
-
* The API instance available to the plugin during execution, which provides access to the shared context and the ability to call plugin hooks. This API is specific to the plugin and environment, allowing for environment-specific interactions with the Powerlines engine.
|
|
696
|
-
*
|
|
697
|
-
* @remarks
|
|
698
|
-
* The API instance provided in the plugin context may include additional functionality specific to command execution, and it extends the base API with any additional methods or properties that are relevant to the plugin's interactions with the Powerlines engine.
|
|
699
|
-
*/
|
|
700
|
-
readonly api: TApi;
|
|
701
664
|
/**
|
|
702
665
|
* The context for the environment associated with this plugin context, which provides access to the Powerlines engine and other utilities for interacting with the build process. This context is specific to the plugin and environment, allowing for environment-specific modifications without affecting the global context.
|
|
703
666
|
*/
|
|
@@ -705,33 +668,6 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
705
668
|
}
|
|
706
669
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
707
670
|
type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
|
|
708
|
-
declare type __ΩMetaInfo = any[];
|
|
709
|
-
declare type __ΩResolver = any[];
|
|
710
|
-
declare type __ΩTransformResult = any[];
|
|
711
|
-
declare type __ΩSourceFile = any[];
|
|
712
|
-
declare type __ΩUnimportContext = any[];
|
|
713
|
-
declare type __ΩSelectHooksOptions = any[];
|
|
714
|
-
declare type __ΩInitContextOptions = any[];
|
|
715
|
-
declare type __ΩFetchOptions = any[];
|
|
716
|
-
declare type __ΩParseOptions = any[];
|
|
717
|
-
declare type __ΩEmitOptions = any[];
|
|
718
|
-
declare type __ΩEmitEntryOptions = any[];
|
|
719
|
-
declare type __ΩResolveResult = any[];
|
|
720
|
-
declare type __ΩBaseContext = any[];
|
|
721
|
-
declare type __ΩExecutionStateItem = any[];
|
|
722
|
-
declare type __ΩHookExecutionStateItem = any[];
|
|
723
|
-
declare type __ΩExecutionState = any[];
|
|
724
|
-
declare type __ΩEngineContext = any[];
|
|
725
|
-
declare type __ΩUnresolvedContext = any[];
|
|
726
|
-
declare type __ΩContext = any[];
|
|
727
|
-
declare type __ΩExecutionContext = any[];
|
|
728
|
-
declare type __ΩEnvironmentContextPlugin = any[];
|
|
729
|
-
declare type __ΩSelectHookResultItem = any[];
|
|
730
|
-
declare type __ΩSelectHookResult = any[];
|
|
731
|
-
declare type __ΩEnvironmentContext = any[];
|
|
732
|
-
declare type __ΩPluginContext = any[];
|
|
733
|
-
declare type __ΩBuildPluginContext = any[];
|
|
734
|
-
declare type __ΩWithUnpluginBuildContext = any[];
|
|
735
671
|
//#endregion
|
|
736
|
-
export { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions,
|
|
672
|
+
export { BaseContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentPlugin, ExecutionContext, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, ResolveResult, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, SourceFile, TransformResult$1 as TransformResult, UnimportContext, UnresolvedContext, WithUnpluginBuildContext };
|
|
737
673
|
//# sourceMappingURL=context.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.mts","names":[],"sources":["../../src/types/context.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.mts","names":[],"sources":["../../src/types/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;KAwDY,Q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EAAiB,cAAA;EAzBtB;;;;;;;;EAmC1B,kBAAA,EAAoB,gBAAA,CAAiB,eAAA,EAAiB,cAAA;EAlCrC;;;EAuCjB,WAAA,wBACE,GAAA,EAAK,IAAA,EACL,OAAA,GAAU,kBAAA,KACP,gBAAA,CAAiB,aAAA,CAAc,eAAA,EAAiB,cAAA,GAAiB,IAAA;EAxCrC;;AAAI;AAEvC;;;;;EAgDE,kBAAA,GACE,MAAA,EAAQ,YAAA,CAAa,aAAA,CAAc,eAAA,EAAiB,cAAA,OACjD,OAAA;AAAA;AAAA,UAGU,aAAA,6BACa,cAAA,GAAiB,cAAA,gCAErC,OAAA,CAAQ,yBAAA,CAA0B,eAAA,GAAkB,cAAA;EAzCjC;;;EAAA,SA6ClB,EAAA;EAxCuC;;;EAAA,SA6CvC,WAAA,EAAa,kBAAA;AAAA;AAAA,KAGZ,kBAAA,yBACc,cAAA,GAAiB,cAAA,IACvC,oBAAA,GAAuB,aAAA,CAAc,eAAA;AAAA,KAE7B,wBAAA,kBAA0C,aAAA,IACpD,oBAAA,GAAuB,QAAA"}
|
package/dist/types/fs.d.cts
CHANGED
|
@@ -533,17 +533,6 @@ interface VirtualFileSystemInterface {
|
|
|
533
533
|
*/
|
|
534
534
|
dispose: () => Promise<void>;
|
|
535
535
|
}
|
|
536
|
-
declare type __ΩVirtualFileExtension = any[];
|
|
537
|
-
declare type __ΩStoragePreset = any[];
|
|
538
|
-
declare type __ΩStorageAdapter = any[];
|
|
539
|
-
declare type __ΩStoragePort = any[];
|
|
540
|
-
declare type __ΩVirtualFileMetadata = any[];
|
|
541
|
-
declare type __ΩVirtualFileData = any[];
|
|
542
|
-
declare type __ΩVirtualFile = any[];
|
|
543
|
-
declare type __ΩWriteOptions = any[];
|
|
544
|
-
declare type __ΩWriteData = any[];
|
|
545
|
-
declare type __ΩResolveOptions = any[];
|
|
546
|
-
declare type __ΩVirtualFileSystemInterface = any[];
|
|
547
536
|
//#endregion
|
|
548
|
-
export { ResolveOptions$1 as ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions
|
|
537
|
+
export { ResolveOptions$1 as ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions };
|
|
549
538
|
//# sourceMappingURL=fs.d.cts.map
|
package/dist/types/fs.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.cts","names":[],"sources":["../../src/types/fs.ts"],"mappings":";;;;;KAsBY,oBAAA;AAAA,KAEA,aAAA;AAFZ;;;AAAA,UAOiB,cAAA;EAPe;AAEhC;;EASE,IAAA;EATuB
|
|
1
|
+
{"version":3,"file":"fs.d.cts","names":[],"sources":["../../src/types/fs.ts"],"mappings":";;;;;KAsBY,oBAAA;AAAA,KAEA,aAAA;AAFZ;;;AAAA,UAOiB,cAAA;EAPe;AAEhC;;EASE,IAAA;EATuB;AAAA;AAKzB;;;;EAYE,MAAA,GAAS,aAAA;EAwBa;;;;;;EAhBtB,MAAA,GAAS,GAAA,aAAgB,OAAA;EA0HA;;;;;;EAlHzB,UAAA,GAAa,GAAA;EARb;;;;;;EAgBA,GAAA,GAAM,GAAA,aAAgB,OAAA;EAAA;;;;;;EAQtB,OAAA,GAAU,GAAA;EAgBV;;;;;;EARA,GAAA,GAAM,GAAA,UAAa,KAAA,aAAkB,OAAA;EAsBxB;;;;;;EAdb,OAAA,GAAU,GAAA,UAAa,KAAA;EAmCf;;;;;EA5BR,MAAA,GAAS,GAAA,aAAgB,OAAA;EA2CA;;;;;EApCzB,UAAA,GAAa,GAAA;EA4Db;;;;;EArDA,KAAA,GAAQ,OAAA,aAAoB,OAAA;EAqEf;;;;AAKc;EAnE3B,SAAA,GAAY,OAAA;EAyES;;;AAAgC;AAEvD;EApEE,KAAA,GAAQ,IAAA,cAAkB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EAS/D,SAAA,GAAY,IAAA,UAAc,IAAA,UAAc,OAAA,GAAU,YAAA;;;;;;EAOlD,KAAA,GAAQ,OAAA,aAAoB,OAAA;;;;;;EAO5B,SAAA,GAAY,OAAA;;;;;;;EAQZ,IAAA,GAAO,OAAA,UAAiB,QAAA,aAAqB,OAAA;;;;;;;EAQ7C,QAAA,GAAW,OAAA,UAAiB,QAAA;;;;;;;EAQ5B,IAAA,GACE,OAAA,WAAkB,GAAA,GAAM,IAAA,CAAK,SAAA,aAC7B,QAAA,WAAmB,GAAA,KAChB,OAAA;;;;;;;EAQL,QAAA,GACE,OAAA,WAAkB,GAAA,GAAM,IAAA,CAAK,SAAA,aAC7B,QAAA,WAAmB,GAAA;;;;;;;EASrB,IAAA,GACE,QAAA,WAEI,IAAA,CAAK,SAAA,wBACK,IAAA,CAAK,SAAA,mBAChB,OAAA;;;;;;;EAQL,QAAA,GACE,QAAA,WAEI,IAAA,CAAK,SAAA,wBACK,IAAA,CAAK,SAAA;;;;;;;;;;;;;;;;;EAmBrB,OAAA,GACE,EAAA,UACA,QAAA,WACA,OAAA,GAAU,gBAAA,KACP,OAAA;;;;;;;;;;;;;;;;;EAkBL,WAAA,GACE,EAAA,UACA,QAAA,WACA,OAAA,GAAU,gBAAA;;;;;;;;;;EAYZ,YAAA,GAAe,EAAA;;;;EAKf,OAAA,QAAe,OAAA;AAAA"}
|
package/dist/types/fs.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ResolveOptions } from "@stryke/fs/resolve";
|
|
1
2
|
import { MaybePromise } from "@stryke/types/base";
|
|
2
3
|
import { AssetGlob } from "@stryke/types/file";
|
|
3
|
-
import { ResolveOptions } from "@stryke/fs/resolve";
|
|
4
4
|
|
|
5
5
|
//#region src/types/fs.d.ts
|
|
6
6
|
type VirtualFileExtension = "js" | "ts" | "jsx" | "tsx";
|
|
@@ -533,17 +533,6 @@ interface VirtualFileSystemInterface {
|
|
|
533
533
|
*/
|
|
534
534
|
dispose: () => Promise<void>;
|
|
535
535
|
}
|
|
536
|
-
declare type __ΩVirtualFileExtension = any[];
|
|
537
|
-
declare type __ΩStoragePreset = any[];
|
|
538
|
-
declare type __ΩStorageAdapter = any[];
|
|
539
|
-
declare type __ΩStoragePort = any[];
|
|
540
|
-
declare type __ΩVirtualFileMetadata = any[];
|
|
541
|
-
declare type __ΩVirtualFileData = any[];
|
|
542
|
-
declare type __ΩVirtualFile = any[];
|
|
543
|
-
declare type __ΩWriteOptions = any[];
|
|
544
|
-
declare type __ΩWriteData = any[];
|
|
545
|
-
declare type __ΩResolveOptions = any[];
|
|
546
|
-
declare type __ΩVirtualFileSystemInterface = any[];
|
|
547
536
|
//#endregion
|
|
548
|
-
export { ResolveOptions$1 as ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions
|
|
537
|
+
export { ResolveOptions$1 as ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteData, WriteOptions };
|
|
549
538
|
//# sourceMappingURL=fs.d.mts.map
|
package/dist/types/fs.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.mts","names":[],"sources":["../../src/types/fs.ts"],"mappings":";;;;;KAsBY,oBAAA;AAAA,KAEA,aAAA;AAFZ;;;AAAA,UAOiB,cAAA;EAPe;AAEhC;;EASE,IAAA;EATuB
|
|
1
|
+
{"version":3,"file":"fs.d.mts","names":[],"sources":["../../src/types/fs.ts"],"mappings":";;;;;KAsBY,oBAAA;AAAA,KAEA,aAAA;AAFZ;;;AAAA,UAOiB,cAAA;EAPe;AAEhC;;EASE,IAAA;EATuB;AAAA;AAKzB;;;;EAYE,MAAA,GAAS,aAAA;EAwBa;;;;;;EAhBtB,MAAA,GAAS,GAAA,aAAgB,OAAA;EA0HA;;;;;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,GAAU,gBAAA;;;;;;;;;;EAYZ,YAAA,GAAe,EAAA;;;;EAKf,OAAA,QAAe,OAAA;AAAA"}
|
package/dist/types/hooks.d.cts
CHANGED
|
@@ -91,17 +91,6 @@ type CallHookOptions<TResult = any> = SelectHooksOptions & (({
|
|
|
91
91
|
*/
|
|
92
92
|
sequential: false;
|
|
93
93
|
});
|
|
94
|
-
declare type __ΩHookListOrders = any[];
|
|
95
|
-
declare type __ΩHooksListItem = any[];
|
|
96
|
-
declare type __ΩPluginFilter = any[];
|
|
97
|
-
declare type __ΩTransformHookFilter = any[];
|
|
98
|
-
declare type __ΩNormalizedStringFilter = any[];
|
|
99
|
-
declare type __ΩHooksList = any[];
|
|
100
|
-
declare type __ΩInferHookFunction = any[];
|
|
101
|
-
declare type __ΩInferHookReturnType = any[];
|
|
102
|
-
declare type __ΩInferHookParameters = any[];
|
|
103
|
-
declare type __ΩInferHookThisType = any[];
|
|
104
|
-
declare type __ΩCallHookOptions = any[];
|
|
105
94
|
//#endregion
|
|
106
|
-
export { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, NormalizedStringFilter, PluginFilter, TransformHookFilter
|
|
95
|
+
export { CallHookOptions, HookListOrders, HooksList, HooksListItem, InferHookFunction, InferHookParameters, InferHookReturnType, InferHookThisType, NormalizedStringFilter, PluginFilter, TransformHookFilter };
|
|
107
96
|
//# sourceMappingURL=hooks.d.cts.map
|