@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/api.d.mts
CHANGED
|
@@ -1,168 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BASE_EXECUTION_API_METHODS, EXECUTION_API_METHODS } from "../constants/api.mjs";
|
|
2
2
|
import { SUPPORTED_COMMANDS } from "../constants/commands.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ExecutionOptions, InlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig, ResolvedConfig, TestInlineConfig, TypesInlineConfig, UserConfig } from "./config.mjs";
|
|
7
|
-
import { DeepPartial } from "@stryke/types/base";
|
|
3
|
+
import { Context } from "./context.mjs";
|
|
4
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
5
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
8
6
|
|
|
9
7
|
//#region src/types/api.d.ts
|
|
10
|
-
type
|
|
11
|
-
type
|
|
8
|
+
type BaseCommandType = ArrayValues<typeof BASE_EXECUTION_API_METHODS> | "finalize";
|
|
9
|
+
type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
|
|
10
|
+
type Commands<TContext extends Context = Context> = Record<CommandType, (this: TContext) => MaybePromise<void>>;
|
|
11
|
+
type BaseExecutionAPIMethods = (typeof BASE_EXECUTION_API_METHODS)[number];
|
|
12
|
+
type PowerlinesExecutionAPIMethods = (typeof EXECUTION_API_METHODS)[number];
|
|
12
13
|
type SupportedCommands = (typeof SUPPORTED_COMMANDS)[number];
|
|
13
|
-
/**
|
|
14
|
-
* The Powerlines Base API Interface
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* This interface defines the base API for Powerlines, which includes the shared context and the core commands. It is extended by the ExecutionAPI and EngineAPI interfaces to provide additional functionality specific to their respective contexts.
|
|
18
|
-
*/
|
|
19
|
-
interface Execution {
|
|
20
|
-
/**
|
|
21
|
-
* Prepare the Powerlines API
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
25
|
-
*
|
|
26
|
-
* @param inlineConfig - The inline configuration for the prepare command
|
|
27
|
-
*/
|
|
28
|
-
prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Generate the Powerlines typescript declaration file
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* This method will only generate the typescript declaration file for the Powerlines project. It is generally recommended to run the full `prepare` command, which will run this method as part of its process.
|
|
34
|
-
*
|
|
35
|
-
* @param inlineConfig - The inline configuration for the types command
|
|
36
|
-
*/
|
|
37
|
-
types: (inlineConfig: TypesInlineConfig) => Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Create a new Powerlines project
|
|
40
|
-
*
|
|
41
|
-
* @remarks
|
|
42
|
-
* This method will create a new Powerlines project in the current directory.
|
|
43
|
-
*
|
|
44
|
-
* @param inlineConfig - The inline configuration for the new command
|
|
45
|
-
* @returns A promise that resolves when the project has been created
|
|
46
|
-
*/
|
|
47
|
-
new: (inlineConfig: NewInlineConfig) => Promise<void>;
|
|
48
|
-
/**
|
|
49
|
-
* Clean any previously prepared artifacts
|
|
50
|
-
*
|
|
51
|
-
* @remarks
|
|
52
|
-
* This method will remove the previous Powerlines artifacts from the project.
|
|
53
|
-
*
|
|
54
|
-
* @param inlineConfig - The inline configuration for the clean command
|
|
55
|
-
* @returns A promise that resolves when the clean command has completed
|
|
56
|
-
*/
|
|
57
|
-
clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
|
|
58
|
-
/**
|
|
59
|
-
* Lint the project source code
|
|
60
|
-
*
|
|
61
|
-
* @param inlineConfig - The inline configuration for the lint command
|
|
62
|
-
* @returns A promise that resolves when the lint command has completed
|
|
63
|
-
*/
|
|
64
|
-
lint: (inlineConfig: LintInlineConfig) => Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Test the project source code
|
|
67
|
-
*
|
|
68
|
-
* @param inlineConfig - The inline configuration for the test command
|
|
69
|
-
* @returns A promise that resolves when the test command has completed
|
|
70
|
-
*/
|
|
71
|
-
test: (inlineConfig: TestInlineConfig) => Promise<void>;
|
|
72
|
-
/**
|
|
73
|
-
* Build the project
|
|
74
|
-
*
|
|
75
|
-
* @remarks
|
|
76
|
-
* This method will build the Powerlines project, generating the necessary artifacts.
|
|
77
|
-
*
|
|
78
|
-
* @param inlineConfig - The inline configuration for the build command
|
|
79
|
-
* @returns A promise that resolves when the build command has completed
|
|
80
|
-
*/
|
|
81
|
-
build: (inlineConfig: BuildInlineConfig) => Promise<void>;
|
|
82
|
-
/**
|
|
83
|
-
* Prepare the documentation for the project
|
|
84
|
-
*
|
|
85
|
-
* @param inlineConfig - The inline configuration for the docs command
|
|
86
|
-
* @returns A promise that resolves when the documentation generation has completed
|
|
87
|
-
*/
|
|
88
|
-
docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
|
|
89
|
-
/**
|
|
90
|
-
* Deploy the project source code
|
|
91
|
-
*
|
|
92
|
-
* @remarks
|
|
93
|
-
* This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
|
|
94
|
-
*
|
|
95
|
-
* @param inlineConfig - The inline configuration for the deploy command
|
|
96
|
-
*/
|
|
97
|
-
deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
|
|
98
|
-
/**
|
|
99
|
-
* Finalization process
|
|
100
|
-
*
|
|
101
|
-
* @remarks
|
|
102
|
-
* This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
|
|
103
|
-
*
|
|
104
|
-
* @returns A promise that resolves when the finalization process has completed
|
|
105
|
-
*/
|
|
106
|
-
finalize: () => Promise<void>;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Powerlines API Interface
|
|
110
|
-
*
|
|
111
|
-
* @remarks
|
|
112
|
-
* The API interface represents the API available during a single execution of Powerlines. It provides access to the shared context and the ability to call plugin hooks. It extends the base API with additional functionality specific to command execution.
|
|
113
|
-
*/
|
|
114
|
-
interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Execution {
|
|
115
|
-
/**
|
|
116
|
-
* The Powerlines shared API context
|
|
117
|
-
*/
|
|
118
|
-
context: ExecutionContext<TResolvedConfig>;
|
|
119
|
-
/**
|
|
120
|
-
* Invokes the configured plugin hooks
|
|
121
|
-
*
|
|
122
|
-
* @remarks
|
|
123
|
-
* By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
|
|
124
|
-
*
|
|
125
|
-
* @param hook - The hook to call
|
|
126
|
-
* @param options - The options to provide to the hook
|
|
127
|
-
* @param args - The arguments to pass to the hook
|
|
128
|
-
* @returns The result of the hook call
|
|
129
|
-
*/
|
|
130
|
-
callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
131
|
-
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
132
|
-
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
133
|
-
}
|
|
134
|
-
interface ExecutionWorkerParams {
|
|
135
|
-
/**
|
|
136
|
-
* The execution options for the current execution instance
|
|
137
|
-
*/
|
|
138
|
-
options: ExecutionOptions;
|
|
139
|
-
/**
|
|
140
|
-
* The initial configuration for the current execution instance, which is the result of merging the user configuration with any configuration provided by plugins during the "config" hook. 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.
|
|
141
|
-
*/
|
|
142
|
-
initialConfig: DeepPartial<UserConfig>;
|
|
143
|
-
/**
|
|
144
|
-
* The inline configuration for the current execution instance, which is the result of merging the user configuration with any configuration provided by plugins during the "config" hook.
|
|
145
|
-
*/
|
|
146
|
-
inlineConfig: InlineConfig;
|
|
147
|
-
}
|
|
148
|
-
type ExecutionWorkerProcess = WorkerProcess<ExecutionWorkerParams, typeof POWERLINES_API_FUNCTIONS>;
|
|
149
|
-
/**
|
|
150
|
-
* The Engine API interface represents the API available during the entire lifecycle of the Powerlines engine. It provides access to the shared context and the registered command executions. It extends the base API with additional functionality specific to the engine lifecycle.
|
|
151
|
-
*/
|
|
152
|
-
interface Engine extends Execution {
|
|
153
|
-
/**
|
|
154
|
-
* The Powerlines shared context
|
|
155
|
-
*/
|
|
156
|
-
context: EngineContext;
|
|
157
|
-
}
|
|
158
|
-
declare type __ΩBaseAPIFunctions = any[];
|
|
159
|
-
declare type __ΩAPIFunctions = any[];
|
|
160
|
-
declare type __ΩSupportedCommands = any[];
|
|
161
|
-
declare type __ΩExecution = any[];
|
|
162
|
-
declare type __ΩAPI = any[];
|
|
163
|
-
declare type __ΩExecutionWorkerParams = any[];
|
|
164
|
-
declare type __ΩExecutionWorkerProcess = any[];
|
|
165
|
-
declare type __ΩEngine = any[];
|
|
166
14
|
//#endregion
|
|
167
|
-
export {
|
|
15
|
+
export { BaseCommandType, BaseExecutionAPIMethods, CommandType, Commands, PowerlinesExecutionAPIMethods, SupportedCommands };
|
|
168
16
|
//# sourceMappingURL=api.d.mts.map
|
package/dist/types/api.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.mts","names":[],"sources":["../../src/types/api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.mts","names":[],"sources":["../../src/types/api.ts"],"mappings":";;;;;;;KA2BY,eAAA,GACR,WAAW,QAAQ,0BAAA;AAAA,KAGX,WAAA,GAAc,WAAW,QAAQ,kBAAA;AAAA,KACjC,QAAA,kBAA0B,OAAA,GAAU,OAAA,IAAW,MAAA,CACzD,WAAA,GACC,IAAA,EAAM,QAAA,KAAa,YAAA;AAAA,KAGV,uBAAA,WACF,0BAA0B;AAAA,KACxB,6BAAA,WACF,qBAAqB;AAAA,KACnB,iBAAA,WAA4B,kBAAkB"}
|