@veryfront/ext-content-mdx 0.1.985
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/LICENSE +202 -0
- package/NOTICE +2 -0
- package/README.md +42 -0
- package/esm/_dnt.polyfills.d.ts +18 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +15 -0
- package/esm/_dnt.shims.d.ts +12 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +68 -0
- package/esm/deno.d.ts +427 -0
- package/esm/deno.d.ts.map +1 -0
- package/esm/deno.js +512 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_chars.d.ts +33 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_chars.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_chars.js +48 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_loader_state.d.ts +64 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_loader_state.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_loader_state.js +1371 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_schema.d.ts +44 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_schema.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_schema.js +117 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/binary.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/binary.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/binary.js +103 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/bool.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/bool.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/bool.js +32 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/float.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/float.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/float.js +96 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/int.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/int.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/int.js +159 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/map.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/map.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/map.js +14 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/merge.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/merge.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/merge.js +10 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/nil.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/nil.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/nil.js +22 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/omap.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/omap.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/omap.js +29 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.js +19 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.js +30 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/seq.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/seq.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/seq.js +10 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/set.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/set.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/set.js +14 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/str.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/str.js +9 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.js +81 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.d.ts +3 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.js +20 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type.d.ts +32 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_type.js +6 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_utils.d.ts +4 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/_utils.js +13 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/parse.d.ts +76 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/yaml/1.1.0/parse.js +91 -0
- package/esm/extensions/ext-content-mdx/src/compiler/markdown-compile.d.ts +3 -0
- package/esm/extensions/ext-content-mdx/src/compiler/markdown-compile.d.ts.map +1 -0
- package/esm/extensions/ext-content-mdx/src/compiler/markdown-compile.js +99 -0
- package/esm/extensions/ext-content-mdx/src/compiler/mdx-compile.d.ts +3 -0
- package/esm/extensions/ext-content-mdx/src/compiler/mdx-compile.d.ts.map +1 -0
- package/esm/extensions/ext-content-mdx/src/compiler/mdx-compile.js +53 -0
- package/esm/extensions/ext-content-mdx/src/index.d.ts +31 -0
- package/esm/extensions/ext-content-mdx/src/index.d.ts.map +1 -0
- package/esm/extensions/ext-content-mdx/src/index.js +56 -0
- package/esm/extensions/ext-content-mdx/src/plugins/plugin-loader.d.ts +4 -0
- package/esm/extensions/ext-content-mdx/src/plugins/plugin-loader.d.ts.map +1 -0
- package/esm/extensions/ext-content-mdx/src/plugins/plugin-loader.js +18 -0
- package/esm/extensions/ext-content-mdx/src/plugins/rehype-node-positions.d.ts +20 -0
- package/esm/extensions/ext-content-mdx/src/plugins/rehype-node-positions.d.ts.map +1 -0
- package/esm/extensions/ext-content-mdx/src/plugins/rehype-node-positions.js +45 -0
- package/esm/extensions/ext-content-mdx/src/plugins/remark-headings.d.ts +4 -0
- package/esm/extensions/ext-content-mdx/src/plugins/remark-headings.d.ts.map +1 -0
- package/esm/extensions/ext-content-mdx/src/plugins/remark-headings.js +69 -0
- package/esm/extensions/ext-content-mdx/src/plugins/remark-mdx-utils.d.ts +14 -0
- package/esm/extensions/ext-content-mdx/src/plugins/remark-mdx-utils.d.ts.map +1 -0
- package/esm/extensions/ext-content-mdx/src/plugins/remark-mdx-utils.js +191 -0
- package/esm/package.json +3 -0
- package/esm/src/config/defaults.d.ts +39 -0
- package/esm/src/config/defaults.d.ts.map +1 -0
- package/esm/src/config/defaults.js +65 -0
- package/esm/src/errors/error-registry/agent.d.ts +18 -0
- package/esm/src/errors/error-registry/agent.d.ts.map +1 -0
- package/esm/src/errors/error-registry/agent.js +60 -0
- package/esm/src/errors/error-registry/boundary.d.ts +16 -0
- package/esm/src/errors/error-registry/boundary.d.ts.map +1 -0
- package/esm/src/errors/error-registry/boundary.js +52 -0
- package/esm/src/errors/error-registry/build.d.ts +20 -0
- package/esm/src/errors/error-registry/build.d.ts.map +1 -0
- package/esm/src/errors/error-registry/build.js +68 -0
- package/esm/src/errors/error-registry/config.d.ts +22 -0
- package/esm/src/errors/error-registry/config.d.ts.map +1 -0
- package/esm/src/errors/error-registry/config.js +70 -0
- package/esm/src/errors/error-registry/deploy.d.ts +12 -0
- package/esm/src/errors/error-registry/deploy.d.ts.map +1 -0
- package/esm/src/errors/error-registry/deploy.js +36 -0
- package/esm/src/errors/error-registry/dev.d.ts +14 -0
- package/esm/src/errors/error-registry/dev.d.ts.map +1 -0
- package/esm/src/errors/error-registry/dev.js +44 -0
- package/esm/src/errors/error-registry/general.d.ts +29 -0
- package/esm/src/errors/error-registry/general.d.ts.map +1 -0
- package/esm/src/errors/error-registry/general.js +92 -0
- package/esm/src/errors/error-registry/module.d.ts +16 -0
- package/esm/src/errors/error-registry/module.d.ts.map +1 -0
- package/esm/src/errors/error-registry/module.js +52 -0
- package/esm/src/errors/error-registry/route.d.ts +16 -0
- package/esm/src/errors/error-registry/route.d.ts.map +1 -0
- package/esm/src/errors/error-registry/route.js +52 -0
- package/esm/src/errors/error-registry/runtime.d.ts +18 -0
- package/esm/src/errors/error-registry/runtime.d.ts.map +1 -0
- package/esm/src/errors/error-registry/runtime.js +60 -0
- package/esm/src/errors/error-registry/server.d.ts +39 -0
- package/esm/src/errors/error-registry/server.d.ts.map +1 -0
- package/esm/src/errors/error-registry/server.js +129 -0
- package/esm/src/errors/error-registry-helpers.d.ts +6 -0
- package/esm/src/errors/error-registry-helpers.d.ts.map +1 -0
- package/esm/src/errors/error-registry-helpers.js +9 -0
- package/esm/src/errors/error-registry.d.ts +114 -0
- package/esm/src/errors/error-registry.d.ts.map +1 -0
- package/esm/src/errors/error-registry.js +60 -0
- package/esm/src/errors/types.d.ts +84 -0
- package/esm/src/errors/types.d.ts.map +1 -0
- package/esm/src/errors/types.js +69 -0
- package/esm/src/errors/veryfront-error.d.ts +149 -0
- package/esm/src/errors/veryfront-error.d.ts.map +1 -0
- package/esm/src/errors/veryfront-error.js +61 -0
- package/esm/src/modules/react-loader/ssr-module-loader/concurrency/semaphore.d.ts +13 -0
- package/esm/src/modules/react-loader/ssr-module-loader/concurrency/semaphore.d.ts.map +1 -0
- package/esm/src/modules/react-loader/ssr-module-loader/concurrency/semaphore.js +55 -0
- package/esm/src/observability/tracing/api-shim.d.ts +178 -0
- package/esm/src/observability/tracing/api-shim.d.ts.map +1 -0
- package/esm/src/observability/tracing/api-shim.js +241 -0
- package/esm/src/observability/tracing/otlp-setup.d.ts +56 -0
- package/esm/src/observability/tracing/otlp-setup.d.ts.map +1 -0
- package/esm/src/observability/tracing/otlp-setup.js +206 -0
- package/esm/src/observability/tracing/telemetry-env.d.ts +3 -0
- package/esm/src/observability/tracing/telemetry-env.d.ts.map +1 -0
- package/esm/src/observability/tracing/telemetry-env.js +10 -0
- package/esm/src/platform/adapters/base.d.ts +188 -0
- package/esm/src/platform/adapters/base.d.ts.map +1 -0
- package/esm/src/platform/adapters/base.js +15 -0
- package/esm/src/platform/compat/constants.d.ts +13 -0
- package/esm/src/platform/compat/constants.d.ts.map +1 -0
- package/esm/src/platform/compat/constants.js +12 -0
- package/esm/src/platform/compat/dynamic-import.d.ts +11 -0
- package/esm/src/platform/compat/dynamic-import.d.ts.map +1 -0
- package/esm/src/platform/compat/dynamic-import.js +10 -0
- package/esm/src/platform/compat/fs.d.ts +71 -0
- package/esm/src/platform/compat/fs.d.ts.map +1 -0
- package/esm/src/platform/compat/fs.js +277 -0
- package/esm/src/platform/compat/path/basic-operations.d.ts +9 -0
- package/esm/src/platform/compat/path/basic-operations.d.ts.map +1 -0
- package/esm/src/platform/compat/path/basic-operations.js +56 -0
- package/esm/src/platform/compat/path/index.d.ts +13 -0
- package/esm/src/platform/compat/path/index.d.ts.map +1 -0
- package/esm/src/platform/compat/path/index.js +11 -0
- package/esm/src/platform/compat/path/parse-format.d.ts +4 -0
- package/esm/src/platform/compat/path/parse-format.d.ts.map +1 -0
- package/esm/src/platform/compat/path/parse-format.js +26 -0
- package/esm/src/platform/compat/path/resolution.d.ts +6 -0
- package/esm/src/platform/compat/path/resolution.d.ts.map +1 -0
- package/esm/src/platform/compat/path/resolution.js +121 -0
- package/esm/src/platform/compat/path/runtime.d.ts +8 -0
- package/esm/src/platform/compat/path/runtime.d.ts.map +1 -0
- package/esm/src/platform/compat/path/runtime.js +20 -0
- package/esm/src/platform/compat/path/security.d.ts +2 -0
- package/esm/src/platform/compat/path/security.d.ts.map +1 -0
- package/esm/src/platform/compat/path/security.js +24 -0
- package/esm/src/platform/compat/path/types.d.ts +22 -0
- package/esm/src/platform/compat/path/types.d.ts.map +1 -0
- package/esm/src/platform/compat/path/types.js +1 -0
- package/esm/src/platform/compat/path/url-conversion.d.ts +3 -0
- package/esm/src/platform/compat/path/url-conversion.d.ts.map +1 -0
- package/esm/src/platform/compat/path/url-conversion.js +45 -0
- package/esm/src/platform/compat/process/command.d.ts +31 -0
- package/esm/src/platform/compat/process/command.d.ts.map +1 -0
- package/esm/src/platform/compat/process/command.js +194 -0
- package/esm/src/platform/compat/process/env.d.ts +35 -0
- package/esm/src/platform/compat/process/env.d.ts.map +1 -0
- package/esm/src/platform/compat/process/env.js +194 -0
- package/esm/src/platform/compat/process/lifecycle.d.ts +99 -0
- package/esm/src/platform/compat/process/lifecycle.d.ts.map +1 -0
- package/esm/src/platform/compat/process/lifecycle.js +327 -0
- package/esm/src/platform/compat/process/runtime-process.d.ts +10 -0
- package/esm/src/platform/compat/process/runtime-process.d.ts.map +1 -0
- package/esm/src/platform/compat/process/runtime-process.js +25 -0
- package/esm/src/platform/compat/process.d.ts +5 -0
- package/esm/src/platform/compat/process.d.ts.map +1 -0
- package/esm/src/platform/compat/process.js +4 -0
- package/esm/src/platform/compat/runtime.d.ts +51 -0
- package/esm/src/platform/compat/runtime.d.ts.map +1 -0
- package/esm/src/platform/compat/runtime.js +101 -0
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts +13 -0
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts.map +1 -0
- package/esm/src/platform/compat/std/front-matter-yaml.js +28 -0
- package/esm/src/transforms/import-rewriter/url-builder.d.ts +70 -0
- package/esm/src/transforms/import-rewriter/url-builder.d.ts.map +1 -0
- package/esm/src/transforms/import-rewriter/url-builder.js +152 -0
- package/esm/src/transforms/md/utils.d.ts +14 -0
- package/esm/src/transforms/md/utils.d.ts.map +1 -0
- package/esm/src/transforms/md/utils.js +17 -0
- package/esm/src/transforms/mdx/compiler/frontmatter-extractor.d.ts +6 -0
- package/esm/src/transforms/mdx/compiler/frontmatter-extractor.d.ts.map +1 -0
- package/esm/src/transforms/mdx/compiler/frontmatter-extractor.js +48 -0
- package/esm/src/transforms/mdx/compiler/import-rewriter.d.ts +10 -0
- package/esm/src/transforms/mdx/compiler/import-rewriter.d.ts.map +1 -0
- package/esm/src/transforms/mdx/compiler/import-rewriter.js +87 -0
- package/esm/src/utils/base64url.d.ts +6 -0
- package/esm/src/utils/base64url.d.ts.map +1 -0
- package/esm/src/utils/base64url.js +12 -0
- package/esm/src/utils/bundle-manifest.d.ts +63 -0
- package/esm/src/utils/bundle-manifest.d.ts.map +1 -0
- package/esm/src/utils/bundle-manifest.js +96 -0
- package/esm/src/utils/constants/buffers.d.ts +24 -0
- package/esm/src/utils/constants/buffers.d.ts.map +1 -0
- package/esm/src/utils/constants/buffers.js +23 -0
- package/esm/src/utils/constants/build.d.ts +8 -0
- package/esm/src/utils/constants/build.d.ts.map +1 -0
- package/esm/src/utils/constants/build.js +7 -0
- package/esm/src/utils/constants/cache.d.ts +74 -0
- package/esm/src/utils/constants/cache.d.ts.map +1 -0
- package/esm/src/utils/constants/cache.js +133 -0
- package/esm/src/utils/constants/cdn.d.ts +29 -0
- package/esm/src/utils/constants/cdn.d.ts.map +1 -0
- package/esm/src/utils/constants/cdn.js +58 -0
- package/esm/src/utils/constants/crypto.d.ts +10 -0
- package/esm/src/utils/constants/crypto.d.ts.map +1 -0
- package/esm/src/utils/constants/crypto.js +9 -0
- package/esm/src/utils/constants/env.d.ts +16 -0
- package/esm/src/utils/constants/env.d.ts.map +1 -0
- package/esm/src/utils/constants/env.js +20 -0
- package/esm/src/utils/constants/hash.d.ts +5 -0
- package/esm/src/utils/constants/hash.d.ts.map +1 -0
- package/esm/src/utils/constants/hash.js +4 -0
- package/esm/src/utils/constants/hmr.d.ts +24 -0
- package/esm/src/utils/constants/hmr.d.ts.map +1 -0
- package/esm/src/utils/constants/hmr.js +26 -0
- package/esm/src/utils/constants/html.d.ts +13 -0
- package/esm/src/utils/constants/html.d.ts.map +1 -0
- package/esm/src/utils/constants/html.js +12 -0
- package/esm/src/utils/constants/http.d.ts +77 -0
- package/esm/src/utils/constants/http.d.ts.map +1 -0
- package/esm/src/utils/constants/http.js +76 -0
- package/esm/src/utils/constants/index.d.ts +23 -0
- package/esm/src/utils/constants/index.d.ts.map +1 -0
- package/esm/src/utils/constants/index.js +22 -0
- package/esm/src/utils/constants/limits.d.ts +27 -0
- package/esm/src/utils/constants/limits.d.ts.map +1 -0
- package/esm/src/utils/constants/limits.js +26 -0
- package/esm/src/utils/constants/metrics.d.ts +10 -0
- package/esm/src/utils/constants/metrics.d.ts.map +1 -0
- package/esm/src/utils/constants/metrics.js +34 -0
- package/esm/src/utils/constants/network.d.ts +23 -0
- package/esm/src/utils/constants/network.d.ts.map +1 -0
- package/esm/src/utils/constants/network.js +27 -0
- package/esm/src/utils/constants/priorities.d.ts +31 -0
- package/esm/src/utils/constants/priorities.d.ts.map +1 -0
- package/esm/src/utils/constants/priorities.js +30 -0
- package/esm/src/utils/constants/retry.d.ts +14 -0
- package/esm/src/utils/constants/retry.d.ts.map +1 -0
- package/esm/src/utils/constants/retry.js +13 -0
- package/esm/src/utils/constants/security.d.ts +16 -0
- package/esm/src/utils/constants/security.d.ts.map +1 -0
- package/esm/src/utils/constants/security.js +15 -0
- package/esm/src/utils/constants/server.d.ts +107 -0
- package/esm/src/utils/constants/server.d.ts.map +1 -0
- package/esm/src/utils/constants/server.js +120 -0
- package/esm/src/utils/feature-flags.d.ts +7 -0
- package/esm/src/utils/feature-flags.d.ts.map +1 -0
- package/esm/src/utils/feature-flags.js +8 -0
- package/esm/src/utils/hash-utils.d.ts +19 -0
- package/esm/src/utils/hash-utils.d.ts.map +1 -0
- package/esm/src/utils/hash-utils.js +42 -0
- package/esm/src/utils/import-lockfile.d.ts +52 -0
- package/esm/src/utils/import-lockfile.d.ts.map +1 -0
- package/esm/src/utils/import-lockfile.js +187 -0
- package/esm/src/utils/index.d.ts +27 -0
- package/esm/src/utils/index.d.ts.map +1 -0
- package/esm/src/utils/index.js +25 -0
- package/esm/src/utils/logger/components.d.ts +73 -0
- package/esm/src/utils/logger/components.d.ts.map +1 -0
- package/esm/src/utils/logger/components.js +81 -0
- package/esm/src/utils/logger/core.d.ts +73 -0
- package/esm/src/utils/logger/core.d.ts.map +1 -0
- package/esm/src/utils/logger/core.js +143 -0
- package/esm/src/utils/logger/index.d.ts +10 -0
- package/esm/src/utils/logger/index.d.ts.map +1 -0
- package/esm/src/utils/logger/index.js +9 -0
- package/esm/src/utils/logger/logger.d.ts +166 -0
- package/esm/src/utils/logger/logger.d.ts.map +1 -0
- package/esm/src/utils/logger/logger.js +445 -0
- package/esm/src/utils/logger/redact.d.ts +74 -0
- package/esm/src/utils/logger/redact.d.ts.map +1 -0
- package/esm/src/utils/logger/redact.js +294 -0
- package/esm/src/utils/logger/request-context.d.ts +27 -0
- package/esm/src/utils/logger/request-context.d.ts.map +1 -0
- package/esm/src/utils/logger/request-context.js +28 -0
- package/esm/src/utils/memoize.d.ts +19 -0
- package/esm/src/utils/memoize.d.ts.map +1 -0
- package/esm/src/utils/memoize.js +72 -0
- package/esm/src/utils/parallel.d.ts +25 -0
- package/esm/src/utils/parallel.d.ts.map +1 -0
- package/esm/src/utils/parallel.js +91 -0
- package/esm/src/utils/path-utils.d.ts +34 -0
- package/esm/src/utils/path-utils.d.ts.map +1 -0
- package/esm/src/utils/path-utils.js +138 -0
- package/esm/src/utils/perf-timer.d.ts +11 -0
- package/esm/src/utils/perf-timer.d.ts.map +1 -0
- package/esm/src/utils/perf-timer.js +114 -0
- package/esm/src/utils/platform.d.ts +9 -0
- package/esm/src/utils/platform.d.ts.map +1 -0
- package/esm/src/utils/platform.js +20 -0
- package/esm/src/utils/runtime-guards.d.ts +29 -0
- package/esm/src/utils/runtime-guards.d.ts.map +1 -0
- package/esm/src/utils/runtime-guards.js +23 -0
- package/esm/src/utils/version-constant.d.ts +3 -0
- package/esm/src/utils/version-constant.d.ts.map +1 -0
- package/esm/src/utils/version-constant.js +4 -0
- package/esm/src/utils/version.d.ts +17 -0
- package/esm/src/utils/version.d.ts.map +1 -0
- package/esm/src/utils/version.js +36 -0
- package/package.json +80 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const AGENT_ERROR: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const AGENT_NOT_FOUND: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const AGENT_TIMEOUT: import("../types.js").RegisteredError;
|
|
4
|
+
export declare const AGENT_INTENT_ERROR: import("../types.js").RegisteredError;
|
|
5
|
+
export declare const ORCHESTRATION_ERROR: import("../types.js").RegisteredError;
|
|
6
|
+
export declare const COST_LIMIT_EXCEEDED: import("../types.js").RegisteredError;
|
|
7
|
+
export declare const TOOL_ID_CONFLICT: import("../types.js").RegisteredError;
|
|
8
|
+
/** Registry fragment for AGENT errors (slug → definition). */
|
|
9
|
+
export declare const AGENT_REGISTRY: {
|
|
10
|
+
readonly "agent-error": import("../types.js").RegisteredError;
|
|
11
|
+
readonly "agent-not-found": import("../types.js").RegisteredError;
|
|
12
|
+
readonly "agent-timeout": import("../types.js").RegisteredError;
|
|
13
|
+
readonly "agent-intent-error": import("../types.js").RegisteredError;
|
|
14
|
+
readonly "orchestration-error": import("../types.js").RegisteredError;
|
|
15
|
+
readonly "cost-limit-exceeded": import("../types.js").RegisteredError;
|
|
16
|
+
readonly "tool-id-conflict": import("../types.js").RegisteredError;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/agent.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,uCAMtB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAMxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const AGENT_ERROR = defineError({
|
|
3
|
+
slug: "agent-error",
|
|
4
|
+
category: "AGENT",
|
|
5
|
+
status: 500,
|
|
6
|
+
title: "Agent operation error",
|
|
7
|
+
suggestion: "Check agent configuration and logs",
|
|
8
|
+
});
|
|
9
|
+
export const AGENT_NOT_FOUND = defineError({
|
|
10
|
+
slug: "agent-not-found",
|
|
11
|
+
category: "AGENT",
|
|
12
|
+
status: 404,
|
|
13
|
+
title: "Agent not found",
|
|
14
|
+
suggestion: "Verify the agent ID exists",
|
|
15
|
+
});
|
|
16
|
+
export const AGENT_TIMEOUT = defineError({
|
|
17
|
+
slug: "agent-timeout",
|
|
18
|
+
category: "AGENT",
|
|
19
|
+
status: 408,
|
|
20
|
+
title: "Agent operation timed out",
|
|
21
|
+
suggestion: "Increase timeout or simplify the request",
|
|
22
|
+
});
|
|
23
|
+
export const AGENT_INTENT_ERROR = defineError({
|
|
24
|
+
slug: "agent-intent-error",
|
|
25
|
+
category: "AGENT",
|
|
26
|
+
status: 400,
|
|
27
|
+
title: "Agent intent parsing error",
|
|
28
|
+
suggestion: "Rephrase the request more clearly",
|
|
29
|
+
});
|
|
30
|
+
export const ORCHESTRATION_ERROR = defineError({
|
|
31
|
+
slug: "orchestration-error",
|
|
32
|
+
category: "AGENT",
|
|
33
|
+
status: 500,
|
|
34
|
+
title: "Multi-agent orchestration error",
|
|
35
|
+
suggestion: "Check agent coordination logic",
|
|
36
|
+
});
|
|
37
|
+
export const COST_LIMIT_EXCEEDED = defineError({
|
|
38
|
+
slug: "cost-limit-exceeded",
|
|
39
|
+
category: "AGENT",
|
|
40
|
+
status: 429,
|
|
41
|
+
title: "Cost limit exceeded",
|
|
42
|
+
suggestion: "Wait for the budget period to reset or increase the limit",
|
|
43
|
+
});
|
|
44
|
+
export const TOOL_ID_CONFLICT = defineError({
|
|
45
|
+
slug: "tool-id-conflict",
|
|
46
|
+
category: "AGENT",
|
|
47
|
+
status: 409,
|
|
48
|
+
title: "Tool ID conflict",
|
|
49
|
+
suggestion: "Use a unique tool ID or rename one of the conflicting tools",
|
|
50
|
+
});
|
|
51
|
+
/** Registry fragment for AGENT errors (slug → definition). */
|
|
52
|
+
export const AGENT_REGISTRY = {
|
|
53
|
+
"agent-error": AGENT_ERROR,
|
|
54
|
+
"agent-not-found": AGENT_NOT_FOUND,
|
|
55
|
+
"agent-timeout": AGENT_TIMEOUT,
|
|
56
|
+
"agent-intent-error": AGENT_INTENT_ERROR,
|
|
57
|
+
"orchestration-error": ORCHESTRATION_ERROR,
|
|
58
|
+
"cost-limit-exceeded": COST_LIMIT_EXCEEDED,
|
|
59
|
+
"tool-id-conflict": TOOL_ID_CONFLICT,
|
|
60
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const CLIENT_BOUNDARY_VIOLATION: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const SERVER_ONLY_IN_CLIENT: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const CLIENT_ONLY_IN_SERVER: import("../types.js").RegisteredError;
|
|
4
|
+
export declare const INVALID_USE_CLIENT: import("../types.js").RegisteredError;
|
|
5
|
+
export declare const INVALID_USE_SERVER: import("../types.js").RegisteredError;
|
|
6
|
+
export declare const RSC_PAYLOAD_ERROR: import("../types.js").RegisteredError;
|
|
7
|
+
/** Registry fragment for BOUNDARY errors (slug → definition). */
|
|
8
|
+
export declare const BOUNDARY_REGISTRY: {
|
|
9
|
+
readonly "client-boundary-violation": import("../types.js").RegisteredError;
|
|
10
|
+
readonly "server-only-in-client": import("../types.js").RegisteredError;
|
|
11
|
+
readonly "client-only-in-server": import("../types.js").RegisteredError;
|
|
12
|
+
readonly "invalid-use-client": import("../types.js").RegisteredError;
|
|
13
|
+
readonly "invalid-use-server": import("../types.js").RegisteredError;
|
|
14
|
+
readonly "rsc-payload-error": import("../types.js").RegisteredError;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=boundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/boundary.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,iEAAiE;AACjE,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const CLIENT_BOUNDARY_VIOLATION = defineError({
|
|
3
|
+
slug: "client-boundary-violation",
|
|
4
|
+
category: "BOUNDARY",
|
|
5
|
+
status: 400,
|
|
6
|
+
title: "Client boundary rule violation",
|
|
7
|
+
suggestion: "Add 'use client' directive or move code to a client component",
|
|
8
|
+
});
|
|
9
|
+
export const SERVER_ONLY_IN_CLIENT = defineError({
|
|
10
|
+
slug: "server-only-in-client",
|
|
11
|
+
category: "BOUNDARY",
|
|
12
|
+
status: 400,
|
|
13
|
+
title: "Server-only code in client component",
|
|
14
|
+
suggestion: "Move server-only code to a server component",
|
|
15
|
+
});
|
|
16
|
+
export const CLIENT_ONLY_IN_SERVER = defineError({
|
|
17
|
+
slug: "client-only-in-server",
|
|
18
|
+
category: "BOUNDARY",
|
|
19
|
+
status: 400,
|
|
20
|
+
title: "Client-only code in server component",
|
|
21
|
+
suggestion: "Move client-only code to a client component",
|
|
22
|
+
});
|
|
23
|
+
export const INVALID_USE_CLIENT = defineError({
|
|
24
|
+
slug: "invalid-use-client",
|
|
25
|
+
category: "BOUNDARY",
|
|
26
|
+
status: 400,
|
|
27
|
+
title: "Invalid 'use client' directive",
|
|
28
|
+
suggestion: "Place 'use client' at the top of the file",
|
|
29
|
+
});
|
|
30
|
+
export const INVALID_USE_SERVER = defineError({
|
|
31
|
+
slug: "invalid-use-server",
|
|
32
|
+
category: "BOUNDARY",
|
|
33
|
+
status: 400,
|
|
34
|
+
title: "Invalid 'use server' directive",
|
|
35
|
+
suggestion: "Place 'use server' at the top of the file or function",
|
|
36
|
+
});
|
|
37
|
+
export const RSC_PAYLOAD_ERROR = defineError({
|
|
38
|
+
slug: "rsc-payload-error",
|
|
39
|
+
category: "BOUNDARY",
|
|
40
|
+
status: 500,
|
|
41
|
+
title: "RSC payload serialization error",
|
|
42
|
+
suggestion: "Ensure props are serializable (no functions, symbols, etc.)",
|
|
43
|
+
});
|
|
44
|
+
/** Registry fragment for BOUNDARY errors (slug → definition). */
|
|
45
|
+
export const BOUNDARY_REGISTRY = {
|
|
46
|
+
"client-boundary-violation": CLIENT_BOUNDARY_VIOLATION,
|
|
47
|
+
"server-only-in-client": SERVER_ONLY_IN_CLIENT,
|
|
48
|
+
"client-only-in-server": CLIENT_ONLY_IN_SERVER,
|
|
49
|
+
"invalid-use-client": INVALID_USE_CLIENT,
|
|
50
|
+
"invalid-use-server": INVALID_USE_SERVER,
|
|
51
|
+
"rsc-payload-error": RSC_PAYLOAD_ERROR,
|
|
52
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const BUILD_FAILED: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const BUNDLE_ERROR: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const TYPESCRIPT_ERROR: import("../types.js").RegisteredError;
|
|
4
|
+
export declare const MDX_COMPILE_ERROR: import("../types.js").RegisteredError;
|
|
5
|
+
export declare const ASSET_OPTIMIZATION_ERROR: import("../types.js").RegisteredError;
|
|
6
|
+
export declare const SSG_GENERATION_ERROR: import("../types.js").RegisteredError;
|
|
7
|
+
export declare const SOURCEMAP_ERROR: import("../types.js").RegisteredError;
|
|
8
|
+
export declare const COMPILATION_ERROR: import("../types.js").RegisteredError;
|
|
9
|
+
/** Registry fragment for BUILD errors (slug → definition). */
|
|
10
|
+
export declare const BUILD_REGISTRY: {
|
|
11
|
+
readonly "build-failed": import("../types.js").RegisteredError;
|
|
12
|
+
readonly "bundle-error": import("../types.js").RegisteredError;
|
|
13
|
+
readonly "typescript-error": import("../types.js").RegisteredError;
|
|
14
|
+
readonly "mdx-compile-error": import("../types.js").RegisteredError;
|
|
15
|
+
readonly "asset-optimization-error": import("../types.js").RegisteredError;
|
|
16
|
+
readonly "ssg-generation-error": import("../types.js").RegisteredError;
|
|
17
|
+
readonly "sourcemap-error": import("../types.js").RegisteredError;
|
|
18
|
+
readonly "compilation-error": import("../types.js").RegisteredError;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/build.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,uCAMvB,CAAC;AAEH,eAAO,MAAM,YAAY,uCAMvB,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,eAAO,MAAM,wBAAwB,uCAMnC,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAM/B,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,cAAc;;;;;;;;;CASjB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const BUILD_FAILED = defineError({
|
|
3
|
+
slug: "build-failed",
|
|
4
|
+
category: "BUILD",
|
|
5
|
+
status: 500,
|
|
6
|
+
title: "Build process failed",
|
|
7
|
+
suggestion: "Check the build output for specific errors",
|
|
8
|
+
});
|
|
9
|
+
export const BUNDLE_ERROR = defineError({
|
|
10
|
+
slug: "bundle-error",
|
|
11
|
+
category: "BUILD",
|
|
12
|
+
status: 500,
|
|
13
|
+
title: "Bundle generation failed",
|
|
14
|
+
suggestion: "Review bundler output for details",
|
|
15
|
+
});
|
|
16
|
+
export const TYPESCRIPT_ERROR = defineError({
|
|
17
|
+
slug: "typescript-error",
|
|
18
|
+
category: "BUILD",
|
|
19
|
+
status: 500,
|
|
20
|
+
title: "TypeScript compilation error",
|
|
21
|
+
suggestion: "Fix TypeScript errors shown in the output",
|
|
22
|
+
});
|
|
23
|
+
export const MDX_COMPILE_ERROR = defineError({
|
|
24
|
+
slug: "mdx-compile-error",
|
|
25
|
+
category: "BUILD",
|
|
26
|
+
status: 500,
|
|
27
|
+
title: "MDX compilation failed",
|
|
28
|
+
suggestion: "Check your MDX file syntax",
|
|
29
|
+
});
|
|
30
|
+
export const ASSET_OPTIMIZATION_ERROR = defineError({
|
|
31
|
+
slug: "asset-optimization-error",
|
|
32
|
+
category: "BUILD",
|
|
33
|
+
status: 500,
|
|
34
|
+
title: "Asset optimization failed",
|
|
35
|
+
suggestion: "Check asset file formats and paths",
|
|
36
|
+
});
|
|
37
|
+
export const SSG_GENERATION_ERROR = defineError({
|
|
38
|
+
slug: "ssg-generation-error",
|
|
39
|
+
category: "BUILD",
|
|
40
|
+
status: 500,
|
|
41
|
+
title: "Static site generation failed",
|
|
42
|
+
suggestion: "Review SSG configuration and data fetching",
|
|
43
|
+
});
|
|
44
|
+
export const SOURCEMAP_ERROR = defineError({
|
|
45
|
+
slug: "sourcemap-error",
|
|
46
|
+
category: "BUILD",
|
|
47
|
+
status: 500,
|
|
48
|
+
title: "Source map generation failed",
|
|
49
|
+
suggestion: "Check source map configuration",
|
|
50
|
+
});
|
|
51
|
+
export const COMPILATION_ERROR = defineError({
|
|
52
|
+
slug: "compilation-error",
|
|
53
|
+
category: "BUILD",
|
|
54
|
+
status: 500,
|
|
55
|
+
title: "Compilation failed",
|
|
56
|
+
suggestion: "Review compiler output for specific errors",
|
|
57
|
+
});
|
|
58
|
+
/** Registry fragment for BUILD errors (slug → definition). */
|
|
59
|
+
export const BUILD_REGISTRY = {
|
|
60
|
+
"build-failed": BUILD_FAILED,
|
|
61
|
+
"bundle-error": BUNDLE_ERROR,
|
|
62
|
+
"typescript-error": TYPESCRIPT_ERROR,
|
|
63
|
+
"mdx-compile-error": MDX_COMPILE_ERROR,
|
|
64
|
+
"asset-optimization-error": ASSET_OPTIMIZATION_ERROR,
|
|
65
|
+
"ssg-generation-error": SSG_GENERATION_ERROR,
|
|
66
|
+
"sourcemap-error": SOURCEMAP_ERROR,
|
|
67
|
+
"compilation-error": COMPILATION_ERROR,
|
|
68
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const CONFIG_NOT_FOUND: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const CONFIG_INVALID: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const CONFIG_PARSE_ERROR: import("../types.js").RegisteredError;
|
|
4
|
+
/** Schema-level config validation (e.g. Zod schema mismatch at runtime) */
|
|
5
|
+
export declare const CONFIG_VALIDATION_ERROR: import("../types.js").RegisteredError;
|
|
6
|
+
export declare const CONFIG_TYPE_ERROR: import("../types.js").RegisteredError;
|
|
7
|
+
export declare const IMPORT_MAP_INVALID: import("../types.js").RegisteredError;
|
|
8
|
+
export declare const CORS_CONFIG_INVALID: import("../types.js").RegisteredError;
|
|
9
|
+
/** Config file validation failures (replaces ConfigValidationError) */
|
|
10
|
+
export declare const CONFIG_VALIDATION_FAILED: import("../types.js").RegisteredError;
|
|
11
|
+
/** Registry fragment for CONFIG errors (slug → definition). */
|
|
12
|
+
export declare const CONFIG_REGISTRY: {
|
|
13
|
+
readonly "config-not-found": import("../types.js").RegisteredError;
|
|
14
|
+
readonly "config-invalid": import("../types.js").RegisteredError;
|
|
15
|
+
readonly "config-parse-error": import("../types.js").RegisteredError;
|
|
16
|
+
readonly "config-validation-error": import("../types.js").RegisteredError;
|
|
17
|
+
readonly "config-type-error": import("../types.js").RegisteredError;
|
|
18
|
+
readonly "import-map-invalid": import("../types.js").RegisteredError;
|
|
19
|
+
readonly "cors-config-invalid": import("../types.js").RegisteredError;
|
|
20
|
+
readonly "config-validation-failed": import("../types.js").RegisteredError;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,uCAMlC,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,uEAAuE;AACvE,eAAO,MAAM,wBAAwB,uCAMnC,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;;;;;CASlB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const CONFIG_NOT_FOUND = defineError({
|
|
3
|
+
slug: "config-not-found",
|
|
4
|
+
category: "CONFIG",
|
|
5
|
+
status: 404,
|
|
6
|
+
title: "Configuration file not found",
|
|
7
|
+
suggestion: "Run 'vf init' to create a configuration file",
|
|
8
|
+
});
|
|
9
|
+
export const CONFIG_INVALID = defineError({
|
|
10
|
+
slug: "config-invalid",
|
|
11
|
+
category: "CONFIG",
|
|
12
|
+
status: 400,
|
|
13
|
+
title: "Invalid configuration format",
|
|
14
|
+
suggestion: "Check your veryfront.config.ts for syntax errors",
|
|
15
|
+
});
|
|
16
|
+
export const CONFIG_PARSE_ERROR = defineError({
|
|
17
|
+
slug: "config-parse-error",
|
|
18
|
+
category: "CONFIG",
|
|
19
|
+
status: 400,
|
|
20
|
+
title: "Failed to parse configuration",
|
|
21
|
+
suggestion: "Ensure your configuration file is valid TypeScript/JSON",
|
|
22
|
+
});
|
|
23
|
+
/** Schema-level config validation (e.g. Zod schema mismatch at runtime) */
|
|
24
|
+
export const CONFIG_VALIDATION_ERROR = defineError({
|
|
25
|
+
slug: "config-validation-error",
|
|
26
|
+
category: "CONFIG",
|
|
27
|
+
status: 422,
|
|
28
|
+
title: "Configuration validation failed",
|
|
29
|
+
suggestion: "Check the configuration against the schema requirements",
|
|
30
|
+
});
|
|
31
|
+
export const CONFIG_TYPE_ERROR = defineError({
|
|
32
|
+
slug: "config-type-error",
|
|
33
|
+
category: "CONFIG",
|
|
34
|
+
status: 400,
|
|
35
|
+
title: "Configuration type mismatch",
|
|
36
|
+
suggestion: "Ensure configuration values match expected types",
|
|
37
|
+
});
|
|
38
|
+
export const IMPORT_MAP_INVALID = defineError({
|
|
39
|
+
slug: "import-map-invalid",
|
|
40
|
+
category: "CONFIG",
|
|
41
|
+
status: 400,
|
|
42
|
+
title: "Invalid import map configuration",
|
|
43
|
+
suggestion: "Check your import map syntax and paths",
|
|
44
|
+
});
|
|
45
|
+
export const CORS_CONFIG_INVALID = defineError({
|
|
46
|
+
slug: "cors-config-invalid",
|
|
47
|
+
category: "CONFIG",
|
|
48
|
+
status: 400,
|
|
49
|
+
title: "Invalid CORS configuration",
|
|
50
|
+
suggestion: "Review CORS settings in your configuration",
|
|
51
|
+
});
|
|
52
|
+
/** Config file validation failures (replaces ConfigValidationError) */
|
|
53
|
+
export const CONFIG_VALIDATION_FAILED = defineError({
|
|
54
|
+
slug: "config-validation-failed",
|
|
55
|
+
category: "CONFIG",
|
|
56
|
+
status: 400,
|
|
57
|
+
title: "Configuration validation failed",
|
|
58
|
+
suggestion: "Check configuration values against requirements",
|
|
59
|
+
});
|
|
60
|
+
/** Registry fragment for CONFIG errors (slug → definition). */
|
|
61
|
+
export const CONFIG_REGISTRY = {
|
|
62
|
+
"config-not-found": CONFIG_NOT_FOUND,
|
|
63
|
+
"config-invalid": CONFIG_INVALID,
|
|
64
|
+
"config-parse-error": CONFIG_PARSE_ERROR,
|
|
65
|
+
"config-validation-error": CONFIG_VALIDATION_ERROR,
|
|
66
|
+
"config-type-error": CONFIG_TYPE_ERROR,
|
|
67
|
+
"import-map-invalid": IMPORT_MAP_INVALID,
|
|
68
|
+
"cors-config-invalid": CORS_CONFIG_INVALID,
|
|
69
|
+
"config-validation-failed": CONFIG_VALIDATION_FAILED,
|
|
70
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const DEPLOYMENT_ERROR: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const PLATFORM_ERROR: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const ENV_VAR_MISSING: import("../types.js").RegisteredError;
|
|
4
|
+
export declare const PRODUCTION_BUILD_REQUIRED: import("../types.js").RegisteredError;
|
|
5
|
+
/** Registry fragment for DEPLOY errors (slug → definition). */
|
|
6
|
+
export declare const DEPLOY_REGISTRY: {
|
|
7
|
+
readonly "deployment-error": import("../types.js").RegisteredError;
|
|
8
|
+
readonly "platform-error": import("../types.js").RegisteredError;
|
|
9
|
+
readonly "env-var-missing": import("../types.js").RegisteredError;
|
|
10
|
+
readonly "production-build-required": import("../types.js").RegisteredError;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/deploy.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const DEPLOYMENT_ERROR = defineError({
|
|
3
|
+
slug: "deployment-error",
|
|
4
|
+
category: "DEPLOY",
|
|
5
|
+
status: 500,
|
|
6
|
+
title: "Deployment process failed",
|
|
7
|
+
suggestion: "Check deployment logs for details",
|
|
8
|
+
});
|
|
9
|
+
export const PLATFORM_ERROR = defineError({
|
|
10
|
+
slug: "platform-error",
|
|
11
|
+
category: "DEPLOY",
|
|
12
|
+
status: 500,
|
|
13
|
+
title: "Platform-specific error",
|
|
14
|
+
suggestion: "Check platform documentation and requirements",
|
|
15
|
+
});
|
|
16
|
+
export const ENV_VAR_MISSING = defineError({
|
|
17
|
+
slug: "env-var-missing",
|
|
18
|
+
category: "DEPLOY",
|
|
19
|
+
status: 500,
|
|
20
|
+
title: "Required environment variable missing",
|
|
21
|
+
suggestion: "Set the required environment variable",
|
|
22
|
+
});
|
|
23
|
+
export const PRODUCTION_BUILD_REQUIRED = defineError({
|
|
24
|
+
slug: "production-build-required",
|
|
25
|
+
category: "DEPLOY",
|
|
26
|
+
status: 400,
|
|
27
|
+
title: "Production build required",
|
|
28
|
+
suggestion: "Run 'vf build' before deploying",
|
|
29
|
+
});
|
|
30
|
+
/** Registry fragment for DEPLOY errors (slug → definition). */
|
|
31
|
+
export const DEPLOY_REGISTRY = {
|
|
32
|
+
"deployment-error": DEPLOYMENT_ERROR,
|
|
33
|
+
"platform-error": PLATFORM_ERROR,
|
|
34
|
+
"env-var-missing": ENV_VAR_MISSING,
|
|
35
|
+
"production-build-required": PRODUCTION_BUILD_REQUIRED,
|
|
36
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const HMR_ERROR: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const DEV_SERVER_ERROR: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const FAST_REFRESH_ERROR: import("../types.js").RegisteredError;
|
|
4
|
+
export declare const ERROR_OVERLAY_ERROR: import("../types.js").RegisteredError;
|
|
5
|
+
export declare const SOURCE_MAP_ERROR: import("../types.js").RegisteredError;
|
|
6
|
+
/** Registry fragment for DEV errors (slug → definition). */
|
|
7
|
+
export declare const DEV_REGISTRY: {
|
|
8
|
+
readonly "hmr-error": import("../types.js").RegisteredError;
|
|
9
|
+
readonly "dev-server-error": import("../types.js").RegisteredError;
|
|
10
|
+
readonly "fast-refresh-error": import("../types.js").RegisteredError;
|
|
11
|
+
readonly "error-overlay-error": import("../types.js").RegisteredError;
|
|
12
|
+
readonly "source-map-error": import("../types.js").RegisteredError;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=dev.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/dev.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,uCAMpB,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,4DAA4D;AAC5D,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const HMR_ERROR = defineError({
|
|
3
|
+
slug: "hmr-error",
|
|
4
|
+
category: "DEV",
|
|
5
|
+
status: 500,
|
|
6
|
+
title: "Hot module replacement error",
|
|
7
|
+
suggestion: "Restart the development server",
|
|
8
|
+
});
|
|
9
|
+
export const DEV_SERVER_ERROR = defineError({
|
|
10
|
+
slug: "dev-server-error",
|
|
11
|
+
category: "DEV",
|
|
12
|
+
status: 500,
|
|
13
|
+
title: "Development server error",
|
|
14
|
+
suggestion: "Check the dev server logs and restart",
|
|
15
|
+
});
|
|
16
|
+
export const FAST_REFRESH_ERROR = defineError({
|
|
17
|
+
slug: "fast-refresh-error",
|
|
18
|
+
category: "DEV",
|
|
19
|
+
status: 500,
|
|
20
|
+
title: "Fast refresh failed",
|
|
21
|
+
suggestion: "Save the file again or restart the dev server",
|
|
22
|
+
});
|
|
23
|
+
export const ERROR_OVERLAY_ERROR = defineError({
|
|
24
|
+
slug: "error-overlay-error",
|
|
25
|
+
category: "DEV",
|
|
26
|
+
status: 500,
|
|
27
|
+
title: "Error overlay failed",
|
|
28
|
+
suggestion: "Check browser console for details",
|
|
29
|
+
});
|
|
30
|
+
export const SOURCE_MAP_ERROR = defineError({
|
|
31
|
+
slug: "source-map-error",
|
|
32
|
+
category: "DEV",
|
|
33
|
+
status: 500,
|
|
34
|
+
title: "Source map loading error",
|
|
35
|
+
suggestion: "Rebuild or clear cache",
|
|
36
|
+
});
|
|
37
|
+
/** Registry fragment for DEV errors (slug → definition). */
|
|
38
|
+
export const DEV_REGISTRY = {
|
|
39
|
+
"hmr-error": HMR_ERROR,
|
|
40
|
+
"dev-server-error": DEV_SERVER_ERROR,
|
|
41
|
+
"fast-refresh-error": FAST_REFRESH_ERROR,
|
|
42
|
+
"error-overlay-error": ERROR_OVERLAY_ERROR,
|
|
43
|
+
"source-map-error": SOURCE_MAP_ERROR,
|
|
44
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const UNKNOWN_ERROR: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const PERMISSION_DENIED: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const FILE_NOT_FOUND: import("../types.js").RegisteredError;
|
|
4
|
+
export declare const RESOURCE_NOT_FOUND: import("../types.js").RegisteredError;
|
|
5
|
+
export declare const INVALID_ARGUMENT: import("../types.js").RegisteredError;
|
|
6
|
+
export declare const TIMEOUT_ERROR: import("../types.js").RegisteredError;
|
|
7
|
+
export declare const INITIALIZATION_ERROR: import("../types.js").RegisteredError;
|
|
8
|
+
export declare const NOT_SUPPORTED: import("../types.js").RegisteredError;
|
|
9
|
+
/** Path traversal / secure-fs violations (replaces SecurityError) */
|
|
10
|
+
export declare const SECURITY_VIOLATION: import("../types.js").RegisteredError;
|
|
11
|
+
/** HTTP request input validation failures (replaces ValidationError) */
|
|
12
|
+
export declare const INPUT_VALIDATION_FAILED: import("../types.js").RegisteredError;
|
|
13
|
+
/**
|
|
14
|
+
* All registered errors for lookup by slug
|
|
15
|
+
*/
|
|
16
|
+
/** Registry fragment for GENERAL errors (slug → definition). */
|
|
17
|
+
export declare const GENERAL_REGISTRY: {
|
|
18
|
+
readonly "unknown-error": import("../types.js").RegisteredError;
|
|
19
|
+
readonly "permission-denied": import("../types.js").RegisteredError;
|
|
20
|
+
readonly "file-not-found": import("../types.js").RegisteredError;
|
|
21
|
+
readonly "resource-not-found": import("../types.js").RegisteredError;
|
|
22
|
+
readonly "invalid-argument": import("../types.js").RegisteredError;
|
|
23
|
+
readonly "timeout-error": import("../types.js").RegisteredError;
|
|
24
|
+
readonly "initialization-error": import("../types.js").RegisteredError;
|
|
25
|
+
readonly "not-supported": import("../types.js").RegisteredError;
|
|
26
|
+
readonly "security-violation": import("../types.js").RegisteredError;
|
|
27
|
+
readonly "input-validation-failed": import("../types.js").RegisteredError;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=general.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/general.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,uCAMxB,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAMxB,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAM/B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAMxB,CAAC;AAEH,qEAAqE;AACrE,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,uBAAuB,uCAMlC,CAAC;AAMH;;GAEG;AAEH,gEAAgE;AAChE,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAWnB,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const UNKNOWN_ERROR = defineError({
|
|
3
|
+
slug: "unknown-error",
|
|
4
|
+
category: "GENERAL",
|
|
5
|
+
status: 500,
|
|
6
|
+
title: "Unknown/unclassified error",
|
|
7
|
+
suggestion: "Check logs for more details",
|
|
8
|
+
});
|
|
9
|
+
export const PERMISSION_DENIED = defineError({
|
|
10
|
+
slug: "permission-denied",
|
|
11
|
+
category: "GENERAL",
|
|
12
|
+
status: 403,
|
|
13
|
+
title: "File/resource permission denied",
|
|
14
|
+
suggestion: "Check file permissions and access rights",
|
|
15
|
+
});
|
|
16
|
+
export const FILE_NOT_FOUND = defineError({
|
|
17
|
+
slug: "file-not-found",
|
|
18
|
+
category: "GENERAL",
|
|
19
|
+
status: 404,
|
|
20
|
+
title: "File not found",
|
|
21
|
+
suggestion: "Verify the file path exists",
|
|
22
|
+
});
|
|
23
|
+
export const RESOURCE_NOT_FOUND = defineError({
|
|
24
|
+
slug: "resource-not-found",
|
|
25
|
+
category: "GENERAL",
|
|
26
|
+
status: 404,
|
|
27
|
+
title: "Requested resource not found",
|
|
28
|
+
suggestion: "Verify the referenced resource ID or name exists",
|
|
29
|
+
});
|
|
30
|
+
export const INVALID_ARGUMENT = defineError({
|
|
31
|
+
slug: "invalid-argument",
|
|
32
|
+
category: "GENERAL",
|
|
33
|
+
status: 400,
|
|
34
|
+
title: "Invalid function argument",
|
|
35
|
+
suggestion: "Check argument types and values",
|
|
36
|
+
});
|
|
37
|
+
export const TIMEOUT_ERROR = defineError({
|
|
38
|
+
slug: "timeout-error",
|
|
39
|
+
category: "GENERAL",
|
|
40
|
+
status: 408,
|
|
41
|
+
title: "Operation timed out",
|
|
42
|
+
suggestion: "Increase timeout or optimize the operation",
|
|
43
|
+
});
|
|
44
|
+
export const INITIALIZATION_ERROR = defineError({
|
|
45
|
+
slug: "initialization-error",
|
|
46
|
+
category: "GENERAL",
|
|
47
|
+
status: 500,
|
|
48
|
+
title: "Initialization failed",
|
|
49
|
+
suggestion: "Check initialization requirements and dependencies",
|
|
50
|
+
});
|
|
51
|
+
export const NOT_SUPPORTED = defineError({
|
|
52
|
+
slug: "not-supported",
|
|
53
|
+
category: "GENERAL",
|
|
54
|
+
status: 501,
|
|
55
|
+
title: "Feature not supported",
|
|
56
|
+
suggestion: "Check documentation for supported features",
|
|
57
|
+
});
|
|
58
|
+
/** Path traversal / secure-fs violations (replaces SecurityError) */
|
|
59
|
+
export const SECURITY_VIOLATION = defineError({
|
|
60
|
+
slug: "security-violation",
|
|
61
|
+
category: "GENERAL",
|
|
62
|
+
status: 403,
|
|
63
|
+
title: "Security violation detected",
|
|
64
|
+
suggestion: "Check for path traversal or unauthorized access attempts",
|
|
65
|
+
});
|
|
66
|
+
/** HTTP request input validation failures (replaces ValidationError) */
|
|
67
|
+
export const INPUT_VALIDATION_FAILED = defineError({
|
|
68
|
+
slug: "input-validation-failed",
|
|
69
|
+
category: "GENERAL",
|
|
70
|
+
status: 400,
|
|
71
|
+
title: "Input validation failed",
|
|
72
|
+
suggestion: "Check request input against validation rules",
|
|
73
|
+
});
|
|
74
|
+
// =============================================================================
|
|
75
|
+
// Registry exports
|
|
76
|
+
// =============================================================================
|
|
77
|
+
/**
|
|
78
|
+
* All registered errors for lookup by slug
|
|
79
|
+
*/
|
|
80
|
+
/** Registry fragment for GENERAL errors (slug → definition). */
|
|
81
|
+
export const GENERAL_REGISTRY = {
|
|
82
|
+
"unknown-error": UNKNOWN_ERROR,
|
|
83
|
+
"permission-denied": PERMISSION_DENIED,
|
|
84
|
+
"file-not-found": FILE_NOT_FOUND,
|
|
85
|
+
"resource-not-found": RESOURCE_NOT_FOUND,
|
|
86
|
+
"invalid-argument": INVALID_ARGUMENT,
|
|
87
|
+
"timeout-error": TIMEOUT_ERROR,
|
|
88
|
+
"initialization-error": INITIALIZATION_ERROR,
|
|
89
|
+
"not-supported": NOT_SUPPORTED,
|
|
90
|
+
"security-violation": SECURITY_VIOLATION,
|
|
91
|
+
"input-validation-failed": INPUT_VALIDATION_FAILED,
|
|
92
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const MODULE_NOT_FOUND: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const IMPORT_RESOLUTION_ERROR: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const CIRCULAR_DEPENDENCY: import("../types.js").RegisteredError;
|
|
4
|
+
export declare const INVALID_IMPORT: import("../types.js").RegisteredError;
|
|
5
|
+
export declare const DEPENDENCY_MISSING: import("../types.js").RegisteredError;
|
|
6
|
+
export declare const VERSION_MISMATCH: import("../types.js").RegisteredError;
|
|
7
|
+
/** Registry fragment for MODULE errors (slug → definition). */
|
|
8
|
+
export declare const MODULE_REGISTRY: {
|
|
9
|
+
readonly "module-not-found": import("../types.js").RegisteredError;
|
|
10
|
+
readonly "import-resolution-error": import("../types.js").RegisteredError;
|
|
11
|
+
readonly "circular-dependency": import("../types.js").RegisteredError;
|
|
12
|
+
readonly "invalid-import": import("../types.js").RegisteredError;
|
|
13
|
+
readonly "dependency-missing": import("../types.js").RegisteredError;
|
|
14
|
+
readonly "version-mismatch": import("../types.js").RegisteredError;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/module.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,uBAAuB,uCAMlC,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;;;CAOlB,CAAC"}
|