@powerlines/core 0.8.4 → 0.8.67
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 +18 -0
- package/dist/constants/api.d.cts +6 -0
- package/dist/constants/api.d.cts.map +1 -0
- package/dist/constants/api.d.mts +6 -0
- package/dist/constants/api.d.mts.map +1 -0
- package/dist/constants/api.mjs +16 -0
- package/dist/constants/api.mjs.map +1 -0
- package/dist/constants/commands.cjs +3 -11
- package/dist/constants/commands.d.cts +1 -1
- package/dist/constants/commands.d.cts.map +1 -1
- package/dist/constants/commands.d.mts +1 -1
- package/dist/constants/commands.d.mts.map +1 -1
- package/dist/constants/commands.mjs +3 -11
- 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 -24
- package/dist/constants/index.d.cts +5 -1
- package/dist/constants/index.d.mts +5 -1
- package/dist/constants/index.mjs +6 -2
- 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 +4 -3
- package/dist/constants/plugin.d.cts +2 -2
- package/dist/constants/plugin.d.mts +2 -2
- package/dist/constants/plugin.mjs +1 -1
- package/dist/constants/plugin.mjs.map +1 -1
- 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 -6
- package/dist/index.d.cts +23 -11
- package/dist/index.d.mts +23 -11
- package/dist/index.mjs +17 -5
- package/dist/lib/config.cjs +167 -28
- package/dist/lib/config.d.cts +95 -14
- package/dist/lib/config.d.cts.map +1 -1
- package/dist/lib/config.d.mts +95 -14
- package/dist/lib/config.d.mts.map +1 -1
- package/dist/lib/config.mjs +160 -28
- 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 +9 -9
- package/dist/lib/entry.d.cts.map +1 -1
- package/dist/lib/entry.d.mts.map +1 -1
- package/dist/lib/entry.mjs +9 -9
- 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 -6
- 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 +21 -20
- package/dist/lib/unplugin/module-resolution.d.cts +8 -0
- package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
- package/dist/lib/unplugin/module-resolution.d.mts +8 -0
- package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
- package/dist/lib/unplugin/module-resolution.mjs +20 -20
- package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.cjs +57 -63
- package/dist/lib/unplugin/plugin.d.cts +11 -5
- package/dist/lib/unplugin/plugin.d.cts.map +1 -1
- package/dist/lib/unplugin/plugin.d.mts +11 -5
- package/dist/lib/unplugin/plugin.d.mts.map +1 -1
- package/dist/lib/unplugin/plugin.mjs +57 -63
- 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 +16 -8
- 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 +15 -8
- package/dist/lib/utilities/format.mjs.map +1 -1
- package/dist/lib/utilities/index.cjs +2 -2
- package/dist/lib/utilities/index.mjs +2 -2
- package/dist/lib/utilities/source-file.cjs +1 -1
- package/dist/lib/utilities/source-map.cjs +1 -1
- 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 +5 -9
- package/dist/plugin-base.mjs +5 -9
- 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/combine-plugins.d.cts +7 -8
- package/dist/plugin-utils/combine-plugins.d.cts.map +1 -1
- package/dist/plugin-utils/combine-plugins.d.mts +7 -8
- 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 +29 -16
- package/dist/plugin-utils/context-helpers.d.cts +10 -2
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +10 -2
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +29 -17
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/docs-helper.cjs +17 -0
- package/dist/plugin-utils/docs-helper.d.cts +11 -0
- package/dist/plugin-utils/docs-helper.d.cts.map +1 -0
- package/dist/plugin-utils/docs-helper.d.mts +11 -0
- package/dist/plugin-utils/docs-helper.d.mts.map +1 -0
- package/dist/plugin-utils/docs-helper.mjs +16 -0
- package/dist/plugin-utils/docs-helper.mjs.map +1 -0
- package/dist/plugin-utils/extend.mjs.map +1 -1
- package/dist/plugin-utils/filter.cjs +101 -0
- package/dist/plugin-utils/filter.d.cts +16 -0
- package/dist/plugin-utils/filter.d.cts.map +1 -0
- package/dist/plugin-utils/filter.d.mts +16 -0
- package/dist/plugin-utils/filter.d.mts.map +1 -0
- package/dist/plugin-utils/filter.mjs +91 -0
- package/dist/plugin-utils/filter.mjs.map +1 -0
- package/dist/plugin-utils/format-package-json.cjs +1 -1
- package/dist/plugin-utils/format-package-json.mjs +1 -1
- package/dist/plugin-utils/format-package-json.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/get-config-path.cjs +34 -32
- package/dist/plugin-utils/get-config-path.d.cts +4 -1
- package/dist/plugin-utils/get-config-path.d.cts.map +1 -1
- package/dist/plugin-utils/get-config-path.d.mts +4 -1
- package/dist/plugin-utils/get-config-path.d.mts.map +1 -1
- package/dist/plugin-utils/get-config-path.mjs +34 -32
- package/dist/plugin-utils/get-config-path.mjs.map +1 -1
- package/dist/plugin-utils/helpers.cjs +25 -10
- package/dist/plugin-utils/helpers.d.cts +32 -25
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts +32 -25
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/helpers.mjs +22 -8
- package/dist/plugin-utils/helpers.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +48 -4
- package/dist/plugin-utils/index.d.cts +9 -3
- package/dist/plugin-utils/index.d.mts +9 -3
- package/dist/plugin-utils/index.mjs +11 -5
- 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 +605 -0
- package/dist/plugin-utils/logging.d.cts +111 -0
- package/dist/plugin-utils/logging.d.cts.map +1 -0
- package/dist/plugin-utils/logging.d.mts +111 -0
- package/dist/plugin-utils/logging.d.mts.map +1 -0
- package/dist/plugin-utils/logging.mjs +588 -0
- package/dist/plugin-utils/logging.mjs.map +1 -0
- package/dist/plugin-utils/merge.cjs +21 -3
- package/dist/plugin-utils/merge.d.cts +0 -1
- package/dist/plugin-utils/merge.d.cts.map +1 -1
- package/dist/plugin-utils/merge.d.mts.map +1 -1
- package/dist/plugin-utils/merge.mjs +20 -2
- package/dist/plugin-utils/merge.mjs.map +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 +18 -4
- package/dist/plugin-utils/paths.d.cts +12 -2
- package/dist/plugin-utils/paths.d.cts.map +1 -1
- package/dist/plugin-utils/paths.d.mts +12 -2
- package/dist/plugin-utils/paths.d.mts.map +1 -1
- package/dist/plugin-utils/paths.mjs +18 -4
- 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 -99
- package/dist/types/api.d.cts.map +1 -1
- package/dist/types/api.d.mts +18 -99
- package/dist/types/api.d.mts.map +1 -1
- package/dist/types/config.d.cts +241 -143
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +242 -144
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/context.d.cts +228 -117
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +231 -120
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/fs.d.cts +49 -5
- package/dist/types/fs.d.cts.map +1 -1
- package/dist/types/fs.d.mts +50 -6
- package/dist/types/fs.d.mts.map +1 -1
- package/dist/types/hooks.d.cts +26 -38
- package/dist/types/hooks.d.cts.map +1 -1
- package/dist/types/hooks.d.mts +26 -38
- package/dist/types/hooks.d.mts.map +1 -1
- package/dist/types/index.d.cts +9 -0
- package/dist/types/index.d.mts +8 -8
- 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 +27 -28
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +27 -28
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/tsconfig.d.cts +15 -12
- package/dist/types/tsconfig.d.cts.map +1 -1
- package/dist/types/tsconfig.d.mts +16 -13
- package/dist/types/tsconfig.d.mts.map +1 -1
- package/dist/types/unplugin.d.cts +10 -23
- package/dist/types/unplugin.d.cts.map +1 -1
- package/dist/types/unplugin.d.mts +10 -23
- package/dist/types/unplugin.d.mts.map +1 -1
- package/package.json +270 -425
- package/schemas/fs.capnp +42 -0
- package/dist/lib/logger.cjs +0 -59
- package/dist/lib/logger.d.cts +0 -23
- package/dist/lib/logger.d.cts.map +0 -1
- package/dist/lib/logger.d.mts +0 -23
- package/dist/lib/logger.d.mts.map +0 -1
- package/dist/lib/logger.mjs +0 -56
- 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 -13
- package/dist/types/commands.d.cts.map +0 -1
- package/dist/types/commands.d.mts +0 -13
- package/dist/types/commands.d.mts.map +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//#region src/plugin-utils/virtual.ts
|
|
2
|
+
const ESCAPE_REGEX = /[-/\\^$*+?.()|[\]{}]/g;
|
|
3
|
+
function escapeRegex(str) {
|
|
4
|
+
return str.replace(ESCAPE_REGEX, "\\$&");
|
|
5
|
+
}
|
|
6
|
+
const VIRTUAL_MODULE_PREFIX = "\0";
|
|
7
|
+
const VIRTUAL_MODULE_PREFIX_REGEX = prefixRegex("\0");
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a RegExp that matches a value that has the specified prefix. This is useful for plugin hook filters.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { prefixRegex } from '@rolldown/pluginutils';
|
|
14
|
+
* const plugin = {
|
|
15
|
+
* name: 'plugin',
|
|
16
|
+
* resolveId: {
|
|
17
|
+
* filter: { id: prefixRegex('foo') },
|
|
18
|
+
* handler(id) {} // will only be called for IDs starting with `foo`
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @param str - the string to match.
|
|
24
|
+
* @param options - options for the RegExp.
|
|
25
|
+
* @return a RegExp that matches the specified string with the specified prefix.
|
|
26
|
+
*/
|
|
27
|
+
function prefixRegex(str, options = {}) {
|
|
28
|
+
const { flags, prefix, isPrefixOptional = false } = options;
|
|
29
|
+
return new RegExp(`^${prefix ? isPrefixOptional ? `(${escapeRegex(prefix)})?` : `${escapeRegex(prefix)}` : ""}${escapeRegex(str)}`, flags);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Adds the virtual module prefix to the given ID.
|
|
33
|
+
*
|
|
34
|
+
* @param id - The ID to add the virtual module prefix to.
|
|
35
|
+
* @returns The ID with the virtual module prefix added.
|
|
36
|
+
*/
|
|
37
|
+
function addVirtualPrefix(id) {
|
|
38
|
+
return `${"\0"}${id}`;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Removes the virtual module prefix from the given ID, if it exists.
|
|
42
|
+
*
|
|
43
|
+
* @param id - The ID to remove the virtual module prefix from.
|
|
44
|
+
* @returns The ID without the virtual module prefix.
|
|
45
|
+
*/
|
|
46
|
+
function removeVirtualPrefix(id) {
|
|
47
|
+
return id.replace(VIRTUAL_MODULE_PREFIX_REGEX, "");
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Checks if the given ID is a virtual module by checking if it starts with the virtual module prefix.
|
|
51
|
+
*
|
|
52
|
+
* @param id - The ID to check.
|
|
53
|
+
* @returns True if the ID is a virtual module, false otherwise.
|
|
54
|
+
*/
|
|
55
|
+
function isVirtualModule(id) {
|
|
56
|
+
return id.startsWith("\0");
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Creates a regular expression that matches the given ID with the virtual module prefix.
|
|
60
|
+
*
|
|
61
|
+
* @param id - The ID to create a regular expression for.
|
|
62
|
+
* @returns A regular expression that matches the given ID with the virtual module prefix.
|
|
63
|
+
*/
|
|
64
|
+
function createVirtualPrefixRegex(id) {
|
|
65
|
+
return prefixRegex(removeVirtualPrefix(id), {
|
|
66
|
+
prefix: "\0",
|
|
67
|
+
isPrefixOptional: true
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
export { VIRTUAL_MODULE_PREFIX, VIRTUAL_MODULE_PREFIX_REGEX, addVirtualPrefix, createVirtualPrefixRegex, isVirtualModule, prefixRegex, removeVirtualPrefix };
|
|
73
|
+
//# sourceMappingURL=virtual.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtual.mjs","names":[],"sources":["../../src/plugin-utils/virtual.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\nconst ESCAPE_REGEX = /[-/\\\\^$*+?.()|[\\]{}]/g;\nfunction escapeRegex(str: string): string {\n return str.replace(ESCAPE_REGEX, \"\\\\$&\");\n}\n\nexport const VIRTUAL_MODULE_PREFIX = \"\\0\";\nexport const VIRTUAL_MODULE_PREFIX_REGEX = prefixRegex(\"\\0\");\n\nexport interface PrefixRegexOptions {\n /**\n * Flags for the RegExp.\n */\n flags?: string;\n\n /**\n * The prefix to match. This will be escaped and used as the prefix in the generated RegExp.\n */\n prefix?: string;\n\n /**\n * Whether the prefix is optional. If true, the generated RegExp will match both strings that start with the prefix and strings that do not start with the prefix. Default is false.\n */\n isPrefixOptional?: boolean;\n}\n\n/**\n * Constructs a RegExp that matches a value that has the specified prefix. This is useful for plugin hook filters.\n *\n * @example\n * ```ts\n * import { prefixRegex } from '@rolldown/pluginutils';\n * const plugin = {\n * name: 'plugin',\n * resolveId: {\n * filter: { id: prefixRegex('foo') },\n * handler(id) {} // will only be called for IDs starting with `foo`\n * }\n * }\n * ```\n *\n * @param str - the string to match.\n * @param options - options for the RegExp.\n * @return a RegExp that matches the specified string with the specified prefix.\n */\nexport function prefixRegex(\n str: string,\n options: PrefixRegexOptions = {}\n): RegExp {\n const { flags, prefix, isPrefixOptional = false } = options;\n\n return new RegExp(\n `^${\n prefix\n ? isPrefixOptional\n ? `(${escapeRegex(prefix)})?`\n : `${escapeRegex(prefix)}`\n : \"\"\n }${escapeRegex(str)}`,\n flags\n );\n}\n\n/**\n * Adds the virtual module prefix to the given ID.\n *\n * @param id - The ID to add the virtual module prefix to.\n * @returns The ID with the virtual module prefix added.\n */\nexport function addVirtualPrefix(id: string): string {\n return `${VIRTUAL_MODULE_PREFIX}${id}`;\n}\n\n/**\n * Removes the virtual module prefix from the given ID, if it exists.\n *\n * @param id - The ID to remove the virtual module prefix from.\n * @returns The ID without the virtual module prefix.\n */\nexport function removeVirtualPrefix(id: string): string {\n return id.replace(VIRTUAL_MODULE_PREFIX_REGEX, \"\");\n}\n\n/**\n * Checks if the given ID is a virtual module by checking if it starts with the virtual module prefix.\n *\n * @param id - The ID to check.\n * @returns True if the ID is a virtual module, false otherwise.\n */\nexport function isVirtualModule(id: string): boolean {\n return id.startsWith(VIRTUAL_MODULE_PREFIX);\n}\n\n/**\n * Creates a regular expression that matches the given ID with the virtual module prefix.\n *\n * @param id - The ID to create a regular expression for.\n * @returns A regular expression that matches the given ID with the virtual module prefix.\n */\nexport function createVirtualPrefixRegex(id: string): RegExp {\n return prefixRegex(removeVirtualPrefix(id), {\n prefix: VIRTUAL_MODULE_PREFIX,\n isPrefixOptional: true\n });\n}\n"],"mappings":";AAkBA,MAAM,eAAe;AACrB,SAAS,YAAY,KAAqB;AACxC,QAAO,IAAI,QAAQ,cAAc,OAAO;;AAG1C,MAAa,wBAAwB;AACrC,MAAa,8BAA8B,YAAY,KAAK;;;;;;;;;;;;;;;;;;;;AAsC5D,SAAgB,YACd,KACA,UAA8B,EAAE,EACxB;CACR,MAAM,EAAE,OAAO,QAAQ,mBAAmB,UAAU;AAEpD,QAAO,IAAI,OACT,IACE,SACI,mBACE,IAAI,YAAY,OAAO,CAAC,MACxB,GAAG,YAAY,OAAO,KACxB,KACH,YAAY,IAAI,IACnB,MACD;;;;;;;;AASH,SAAgB,iBAAiB,IAAoB;AACnD,QAAO,UAA2B;;;;;;;;AASpC,SAAgB,oBAAoB,IAAoB;AACtD,QAAO,GAAG,QAAQ,6BAA6B,GAAG;;;;;;;;AASpD,SAAgB,gBAAgB,IAAqB;AACnD,QAAO,GAAG,gBAAiC;;;;;;;;AAS7C,SAAgB,yBAAyB,IAAoB;AAC3D,QAAO,YAAY,oBAAoB,GAAG,EAAE;EAC1C;EACA,kBAAkB;EACnB,CAAC"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
2
|
+
let _stryke_capnp = require("@stryke/capnp");
|
|
3
|
+
_stryke_capnp = require_runtime.__toESM(_stryke_capnp, 1);
|
|
4
|
+
|
|
5
|
+
//#region schemas/fs.ts
|
|
6
|
+
const _capnpFileId = BigInt("0xa56c61324b9d6e49");
|
|
7
|
+
var FileMetadata_KeyValuePair = class extends _stryke_capnp.Struct {
|
|
8
|
+
static _capnp = {
|
|
9
|
+
displayName: "KeyValuePair",
|
|
10
|
+
id: "eabb26cf58b2a14c",
|
|
11
|
+
size: new _stryke_capnp.ObjectSize(0, 2)
|
|
12
|
+
};
|
|
13
|
+
get key() {
|
|
14
|
+
return _stryke_capnp.utils.getText(0, this);
|
|
15
|
+
}
|
|
16
|
+
set key(value) {
|
|
17
|
+
_stryke_capnp.utils.setText(0, value, this);
|
|
18
|
+
}
|
|
19
|
+
get value() {
|
|
20
|
+
return _stryke_capnp.utils.getText(1, this);
|
|
21
|
+
}
|
|
22
|
+
set value(value) {
|
|
23
|
+
_stryke_capnp.utils.setText(1, value, this);
|
|
24
|
+
}
|
|
25
|
+
toString() {
|
|
26
|
+
return "FileMetadata_KeyValuePair_" + super.toString();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The identifier for the file data.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
var FileMetadata = class FileMetadata extends _stryke_capnp.Struct {
|
|
34
|
+
static KeyValuePair = FileMetadata_KeyValuePair;
|
|
35
|
+
static _capnp = {
|
|
36
|
+
displayName: "FileMetadata",
|
|
37
|
+
id: "8e2cab5d7e28c7b3",
|
|
38
|
+
size: new _stryke_capnp.ObjectSize(8, 3),
|
|
39
|
+
defaultType: "normal"
|
|
40
|
+
};
|
|
41
|
+
static _Properties;
|
|
42
|
+
/**
|
|
43
|
+
* The type of the file.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
get id() {
|
|
47
|
+
return _stryke_capnp.utils.getText(0, this);
|
|
48
|
+
}
|
|
49
|
+
set id(value) {
|
|
50
|
+
_stryke_capnp.utils.setText(0, value, this);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The timestamp representing the file's creation date.
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
get type() {
|
|
57
|
+
return _stryke_capnp.utils.getText(1, this, FileMetadata._capnp.defaultType);
|
|
58
|
+
}
|
|
59
|
+
set type(value) {
|
|
60
|
+
_stryke_capnp.utils.setText(1, value, this);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Additional metadata associated with the file.
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
get timestamp() {
|
|
67
|
+
return _stryke_capnp.utils.getUint32(0, this);
|
|
68
|
+
}
|
|
69
|
+
set timestamp(value) {
|
|
70
|
+
_stryke_capnp.utils.setUint32(0, value, this);
|
|
71
|
+
}
|
|
72
|
+
_adoptProperties(value) {
|
|
73
|
+
_stryke_capnp.utils.adopt(value, _stryke_capnp.utils.getPointer(2, this));
|
|
74
|
+
}
|
|
75
|
+
_disownProperties() {
|
|
76
|
+
return _stryke_capnp.utils.disown(this.properties);
|
|
77
|
+
}
|
|
78
|
+
get properties() {
|
|
79
|
+
return _stryke_capnp.utils.getList(2, FileMetadata._Properties, this);
|
|
80
|
+
}
|
|
81
|
+
_hasProperties() {
|
|
82
|
+
return !_stryke_capnp.utils.isNull(_stryke_capnp.utils.getPointer(2, this));
|
|
83
|
+
}
|
|
84
|
+
_initProperties(length) {
|
|
85
|
+
return _stryke_capnp.utils.initList(2, FileMetadata._Properties, length, this);
|
|
86
|
+
}
|
|
87
|
+
set properties(value) {
|
|
88
|
+
_stryke_capnp.utils.copyFrom(value, _stryke_capnp.utils.getPointer(2, this));
|
|
89
|
+
}
|
|
90
|
+
toString() {
|
|
91
|
+
return "FileMetadata_" + super.toString();
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* An identifier for the file.
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
var FileId = class extends _stryke_capnp.Struct {
|
|
99
|
+
static _capnp = {
|
|
100
|
+
displayName: "FileId",
|
|
101
|
+
id: "990d6a471072f997",
|
|
102
|
+
size: new _stryke_capnp.ObjectSize(0, 2)
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* A virtual (or actual) path to the file in the file system.
|
|
106
|
+
*
|
|
107
|
+
*/
|
|
108
|
+
get id() {
|
|
109
|
+
return _stryke_capnp.utils.getText(0, this);
|
|
110
|
+
}
|
|
111
|
+
set id(value) {
|
|
112
|
+
_stryke_capnp.utils.setText(0, value, this);
|
|
113
|
+
}
|
|
114
|
+
get path() {
|
|
115
|
+
return _stryke_capnp.utils.getText(1, this);
|
|
116
|
+
}
|
|
117
|
+
set path(value) {
|
|
118
|
+
_stryke_capnp.utils.setText(1, value, this);
|
|
119
|
+
}
|
|
120
|
+
toString() {
|
|
121
|
+
return "FileId_" + super.toString();
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* An identifier for the file.
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
var FileStorage = class extends _stryke_capnp.Struct {
|
|
129
|
+
static _capnp = {
|
|
130
|
+
displayName: "FileStorage",
|
|
131
|
+
id: "9dca66ac858c9ebe",
|
|
132
|
+
size: new _stryke_capnp.ObjectSize(0, 2)
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* A virtual (or actual) path to the file in the file system.
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
get path() {
|
|
139
|
+
return _stryke_capnp.utils.getText(0, this);
|
|
140
|
+
}
|
|
141
|
+
set path(value) {
|
|
142
|
+
_stryke_capnp.utils.setText(0, value, this);
|
|
143
|
+
}
|
|
144
|
+
get code() {
|
|
145
|
+
return _stryke_capnp.utils.getText(1, this);
|
|
146
|
+
}
|
|
147
|
+
set code(value) {
|
|
148
|
+
_stryke_capnp.utils.setText(1, value, this);
|
|
149
|
+
}
|
|
150
|
+
toString() {
|
|
151
|
+
return "FileStorage_" + super.toString();
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
var FileSystem = class FileSystem extends _stryke_capnp.Struct {
|
|
155
|
+
static _capnp = {
|
|
156
|
+
displayName: "FileSystem",
|
|
157
|
+
id: "ae0c23d43e56abcf",
|
|
158
|
+
size: new _stryke_capnp.ObjectSize(0, 3)
|
|
159
|
+
};
|
|
160
|
+
static _Ids;
|
|
161
|
+
static _Storage;
|
|
162
|
+
static _Metadata;
|
|
163
|
+
_adoptIds(value) {
|
|
164
|
+
_stryke_capnp.utils.adopt(value, _stryke_capnp.utils.getPointer(0, this));
|
|
165
|
+
}
|
|
166
|
+
_disownIds() {
|
|
167
|
+
return _stryke_capnp.utils.disown(this.ids);
|
|
168
|
+
}
|
|
169
|
+
get ids() {
|
|
170
|
+
return _stryke_capnp.utils.getList(0, FileSystem._Ids, this);
|
|
171
|
+
}
|
|
172
|
+
_hasIds() {
|
|
173
|
+
return !_stryke_capnp.utils.isNull(_stryke_capnp.utils.getPointer(0, this));
|
|
174
|
+
}
|
|
175
|
+
_initIds(length) {
|
|
176
|
+
return _stryke_capnp.utils.initList(0, FileSystem._Ids, length, this);
|
|
177
|
+
}
|
|
178
|
+
set ids(value) {
|
|
179
|
+
_stryke_capnp.utils.copyFrom(value, _stryke_capnp.utils.getPointer(0, this));
|
|
180
|
+
}
|
|
181
|
+
_adoptStorage(value) {
|
|
182
|
+
_stryke_capnp.utils.adopt(value, _stryke_capnp.utils.getPointer(1, this));
|
|
183
|
+
}
|
|
184
|
+
_disownStorage() {
|
|
185
|
+
return _stryke_capnp.utils.disown(this.storage);
|
|
186
|
+
}
|
|
187
|
+
get storage() {
|
|
188
|
+
return _stryke_capnp.utils.getList(1, FileSystem._Storage, this);
|
|
189
|
+
}
|
|
190
|
+
_hasStorage() {
|
|
191
|
+
return !_stryke_capnp.utils.isNull(_stryke_capnp.utils.getPointer(1, this));
|
|
192
|
+
}
|
|
193
|
+
_initStorage(length) {
|
|
194
|
+
return _stryke_capnp.utils.initList(1, FileSystem._Storage, length, this);
|
|
195
|
+
}
|
|
196
|
+
set storage(value) {
|
|
197
|
+
_stryke_capnp.utils.copyFrom(value, _stryke_capnp.utils.getPointer(1, this));
|
|
198
|
+
}
|
|
199
|
+
_adoptMetadata(value) {
|
|
200
|
+
_stryke_capnp.utils.adopt(value, _stryke_capnp.utils.getPointer(2, this));
|
|
201
|
+
}
|
|
202
|
+
_disownMetadata() {
|
|
203
|
+
return _stryke_capnp.utils.disown(this.metadata);
|
|
204
|
+
}
|
|
205
|
+
get metadata() {
|
|
206
|
+
return _stryke_capnp.utils.getList(2, FileSystem._Metadata, this);
|
|
207
|
+
}
|
|
208
|
+
_hasMetadata() {
|
|
209
|
+
return !_stryke_capnp.utils.isNull(_stryke_capnp.utils.getPointer(2, this));
|
|
210
|
+
}
|
|
211
|
+
_initMetadata(length) {
|
|
212
|
+
return _stryke_capnp.utils.initList(2, FileSystem._Metadata, length, this);
|
|
213
|
+
}
|
|
214
|
+
set metadata(value) {
|
|
215
|
+
_stryke_capnp.utils.copyFrom(value, _stryke_capnp.utils.getPointer(2, this));
|
|
216
|
+
}
|
|
217
|
+
toString() {
|
|
218
|
+
return "FileSystem_" + super.toString();
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
FileMetadata._Properties = _stryke_capnp.CompositeList(FileMetadata_KeyValuePair);
|
|
222
|
+
FileSystem._Ids = _stryke_capnp.CompositeList(FileId);
|
|
223
|
+
FileSystem._Storage = _stryke_capnp.CompositeList(FileStorage);
|
|
224
|
+
FileSystem._Metadata = _stryke_capnp.CompositeList(FileMetadata);
|
|
225
|
+
|
|
226
|
+
//#endregion
|
|
227
|
+
exports.FileId = FileId;
|
|
228
|
+
exports.FileMetadata = FileMetadata;
|
|
229
|
+
exports.FileMetadata_KeyValuePair = FileMetadata_KeyValuePair;
|
|
230
|
+
exports.FileStorage = FileStorage;
|
|
231
|
+
exports.FileSystem = FileSystem;
|
|
232
|
+
exports._capnpFileId = _capnpFileId;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as $ from "@stryke/capnp";
|
|
2
|
+
|
|
3
|
+
//#region schemas/fs.d.ts
|
|
4
|
+
declare const _capnpFileId: bigint;
|
|
5
|
+
declare class FileMetadata_KeyValuePair extends $.Struct {
|
|
6
|
+
static readonly _capnp: {
|
|
7
|
+
displayName: string;
|
|
8
|
+
id: string;
|
|
9
|
+
size: $.ObjectSize;
|
|
10
|
+
};
|
|
11
|
+
get key(): string;
|
|
12
|
+
set key(value: string);
|
|
13
|
+
get value(): string;
|
|
14
|
+
set value(value: string);
|
|
15
|
+
toString(): string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The identifier for the file data.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
declare class FileMetadata extends $.Struct {
|
|
22
|
+
static readonly KeyValuePair: typeof FileMetadata_KeyValuePair;
|
|
23
|
+
static readonly _capnp: {
|
|
24
|
+
displayName: string;
|
|
25
|
+
id: string;
|
|
26
|
+
size: $.ObjectSize;
|
|
27
|
+
defaultType: string;
|
|
28
|
+
};
|
|
29
|
+
static _Properties: $.ListCtor<FileMetadata_KeyValuePair>;
|
|
30
|
+
/**
|
|
31
|
+
* The type of the file.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
get id(): string;
|
|
35
|
+
set id(value: string);
|
|
36
|
+
/**
|
|
37
|
+
* The timestamp representing the file's creation date.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
get type(): string;
|
|
41
|
+
set type(value: string);
|
|
42
|
+
/**
|
|
43
|
+
* Additional metadata associated with the file.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
get timestamp(): number;
|
|
47
|
+
set timestamp(value: number);
|
|
48
|
+
_adoptProperties(value: $.Orphan<$.List<FileMetadata_KeyValuePair>>): void;
|
|
49
|
+
_disownProperties(): $.Orphan<$.List<FileMetadata_KeyValuePair>>;
|
|
50
|
+
get properties(): $.List<FileMetadata_KeyValuePair>;
|
|
51
|
+
_hasProperties(): boolean;
|
|
52
|
+
_initProperties(length: number): $.List<FileMetadata_KeyValuePair>;
|
|
53
|
+
set properties(value: $.List<FileMetadata_KeyValuePair>);
|
|
54
|
+
toString(): string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* An identifier for the file.
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
declare class FileId extends $.Struct {
|
|
61
|
+
static readonly _capnp: {
|
|
62
|
+
displayName: string;
|
|
63
|
+
id: string;
|
|
64
|
+
size: $.ObjectSize;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* A virtual (or actual) path to the file in the file system.
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
get id(): string;
|
|
71
|
+
set id(value: string);
|
|
72
|
+
get path(): string;
|
|
73
|
+
set path(value: string);
|
|
74
|
+
toString(): string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* An identifier for the file.
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
declare class FileStorage extends $.Struct {
|
|
81
|
+
static readonly _capnp: {
|
|
82
|
+
displayName: string;
|
|
83
|
+
id: string;
|
|
84
|
+
size: $.ObjectSize;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* A virtual (or actual) path to the file in the file system.
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
get path(): string;
|
|
91
|
+
set path(value: string);
|
|
92
|
+
get code(): string;
|
|
93
|
+
set code(value: string);
|
|
94
|
+
toString(): string;
|
|
95
|
+
}
|
|
96
|
+
declare class FileSystem extends $.Struct {
|
|
97
|
+
static readonly _capnp: {
|
|
98
|
+
displayName: string;
|
|
99
|
+
id: string;
|
|
100
|
+
size: $.ObjectSize;
|
|
101
|
+
};
|
|
102
|
+
static _Ids: $.ListCtor<FileId>;
|
|
103
|
+
static _Storage: $.ListCtor<FileStorage>;
|
|
104
|
+
static _Metadata: $.ListCtor<FileMetadata>;
|
|
105
|
+
_adoptIds(value: $.Orphan<$.List<FileId>>): void;
|
|
106
|
+
_disownIds(): $.Orphan<$.List<FileId>>;
|
|
107
|
+
get ids(): $.List<FileId>;
|
|
108
|
+
_hasIds(): boolean;
|
|
109
|
+
_initIds(length: number): $.List<FileId>;
|
|
110
|
+
set ids(value: $.List<FileId>);
|
|
111
|
+
_adoptStorage(value: $.Orphan<$.List<FileStorage>>): void;
|
|
112
|
+
_disownStorage(): $.Orphan<$.List<FileStorage>>;
|
|
113
|
+
get storage(): $.List<FileStorage>;
|
|
114
|
+
_hasStorage(): boolean;
|
|
115
|
+
_initStorage(length: number): $.List<FileStorage>;
|
|
116
|
+
set storage(value: $.List<FileStorage>);
|
|
117
|
+
_adoptMetadata(value: $.Orphan<$.List<FileMetadata>>): void;
|
|
118
|
+
_disownMetadata(): $.Orphan<$.List<FileMetadata>>;
|
|
119
|
+
get metadata(): $.List<FileMetadata>;
|
|
120
|
+
_hasMetadata(): boolean;
|
|
121
|
+
_initMetadata(length: number): $.List<FileMetadata>;
|
|
122
|
+
set metadata(value: $.List<FileMetadata>);
|
|
123
|
+
toString(): string;
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
126
|
+
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, _capnpFileId };
|
|
127
|
+
//# sourceMappingURL=fs.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs.d.cts","names":[],"sources":["../../schemas/fs.ts"],"mappings":"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"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as $ from "@stryke/capnp";
|
|
2
|
+
|
|
3
|
+
//#region schemas/fs.d.ts
|
|
4
|
+
declare const _capnpFileId: bigint;
|
|
5
|
+
declare class FileMetadata_KeyValuePair extends $.Struct {
|
|
6
|
+
static readonly _capnp: {
|
|
7
|
+
displayName: string;
|
|
8
|
+
id: string;
|
|
9
|
+
size: $.ObjectSize;
|
|
10
|
+
};
|
|
11
|
+
get key(): string;
|
|
12
|
+
set key(value: string);
|
|
13
|
+
get value(): string;
|
|
14
|
+
set value(value: string);
|
|
15
|
+
toString(): string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The identifier for the file data.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
declare class FileMetadata extends $.Struct {
|
|
22
|
+
static readonly KeyValuePair: typeof FileMetadata_KeyValuePair;
|
|
23
|
+
static readonly _capnp: {
|
|
24
|
+
displayName: string;
|
|
25
|
+
id: string;
|
|
26
|
+
size: $.ObjectSize;
|
|
27
|
+
defaultType: string;
|
|
28
|
+
};
|
|
29
|
+
static _Properties: $.ListCtor<FileMetadata_KeyValuePair>;
|
|
30
|
+
/**
|
|
31
|
+
* The type of the file.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
get id(): string;
|
|
35
|
+
set id(value: string);
|
|
36
|
+
/**
|
|
37
|
+
* The timestamp representing the file's creation date.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
get type(): string;
|
|
41
|
+
set type(value: string);
|
|
42
|
+
/**
|
|
43
|
+
* Additional metadata associated with the file.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
get timestamp(): number;
|
|
47
|
+
set timestamp(value: number);
|
|
48
|
+
_adoptProperties(value: $.Orphan<$.List<FileMetadata_KeyValuePair>>): void;
|
|
49
|
+
_disownProperties(): $.Orphan<$.List<FileMetadata_KeyValuePair>>;
|
|
50
|
+
get properties(): $.List<FileMetadata_KeyValuePair>;
|
|
51
|
+
_hasProperties(): boolean;
|
|
52
|
+
_initProperties(length: number): $.List<FileMetadata_KeyValuePair>;
|
|
53
|
+
set properties(value: $.List<FileMetadata_KeyValuePair>);
|
|
54
|
+
toString(): string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* An identifier for the file.
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
declare class FileId extends $.Struct {
|
|
61
|
+
static readonly _capnp: {
|
|
62
|
+
displayName: string;
|
|
63
|
+
id: string;
|
|
64
|
+
size: $.ObjectSize;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* A virtual (or actual) path to the file in the file system.
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
get id(): string;
|
|
71
|
+
set id(value: string);
|
|
72
|
+
get path(): string;
|
|
73
|
+
set path(value: string);
|
|
74
|
+
toString(): string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* An identifier for the file.
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
declare class FileStorage extends $.Struct {
|
|
81
|
+
static readonly _capnp: {
|
|
82
|
+
displayName: string;
|
|
83
|
+
id: string;
|
|
84
|
+
size: $.ObjectSize;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* A virtual (or actual) path to the file in the file system.
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
get path(): string;
|
|
91
|
+
set path(value: string);
|
|
92
|
+
get code(): string;
|
|
93
|
+
set code(value: string);
|
|
94
|
+
toString(): string;
|
|
95
|
+
}
|
|
96
|
+
declare class FileSystem extends $.Struct {
|
|
97
|
+
static readonly _capnp: {
|
|
98
|
+
displayName: string;
|
|
99
|
+
id: string;
|
|
100
|
+
size: $.ObjectSize;
|
|
101
|
+
};
|
|
102
|
+
static _Ids: $.ListCtor<FileId>;
|
|
103
|
+
static _Storage: $.ListCtor<FileStorage>;
|
|
104
|
+
static _Metadata: $.ListCtor<FileMetadata>;
|
|
105
|
+
_adoptIds(value: $.Orphan<$.List<FileId>>): void;
|
|
106
|
+
_disownIds(): $.Orphan<$.List<FileId>>;
|
|
107
|
+
get ids(): $.List<FileId>;
|
|
108
|
+
_hasIds(): boolean;
|
|
109
|
+
_initIds(length: number): $.List<FileId>;
|
|
110
|
+
set ids(value: $.List<FileId>);
|
|
111
|
+
_adoptStorage(value: $.Orphan<$.List<FileStorage>>): void;
|
|
112
|
+
_disownStorage(): $.Orphan<$.List<FileStorage>>;
|
|
113
|
+
get storage(): $.List<FileStorage>;
|
|
114
|
+
_hasStorage(): boolean;
|
|
115
|
+
_initStorage(length: number): $.List<FileStorage>;
|
|
116
|
+
set storage(value: $.List<FileStorage>);
|
|
117
|
+
_adoptMetadata(value: $.Orphan<$.List<FileMetadata>>): void;
|
|
118
|
+
_disownMetadata(): $.Orphan<$.List<FileMetadata>>;
|
|
119
|
+
get metadata(): $.List<FileMetadata>;
|
|
120
|
+
_hasMetadata(): boolean;
|
|
121
|
+
_initMetadata(length: number): $.List<FileMetadata>;
|
|
122
|
+
set metadata(value: $.List<FileMetadata>);
|
|
123
|
+
toString(): string;
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
126
|
+
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, _capnpFileId };
|
|
127
|
+
//# sourceMappingURL=fs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs.d.mts","names":[],"sources":["../../schemas/fs.ts"],"mappings":"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"}
|