@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,52 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const MODULE_NOT_FOUND = defineError({
|
|
3
|
+
slug: "module-not-found",
|
|
4
|
+
category: "MODULE",
|
|
5
|
+
status: 404,
|
|
6
|
+
title: "Module could not be resolved",
|
|
7
|
+
suggestion: "Check the import path and ensure the module is installed",
|
|
8
|
+
});
|
|
9
|
+
export const IMPORT_RESOLUTION_ERROR = defineError({
|
|
10
|
+
slug: "import-resolution-error",
|
|
11
|
+
category: "MODULE",
|
|
12
|
+
status: 500,
|
|
13
|
+
title: "Import path resolution failed",
|
|
14
|
+
suggestion: "Verify import paths and module configuration",
|
|
15
|
+
});
|
|
16
|
+
export const CIRCULAR_DEPENDENCY = defineError({
|
|
17
|
+
slug: "circular-dependency",
|
|
18
|
+
category: "MODULE",
|
|
19
|
+
status: 500,
|
|
20
|
+
title: "Circular dependency detected",
|
|
21
|
+
suggestion: "Refactor imports to break the circular dependency",
|
|
22
|
+
});
|
|
23
|
+
export const INVALID_IMPORT = defineError({
|
|
24
|
+
slug: "invalid-import",
|
|
25
|
+
category: "MODULE",
|
|
26
|
+
status: 400,
|
|
27
|
+
title: "Invalid import statement",
|
|
28
|
+
suggestion: "Fix import syntax or path",
|
|
29
|
+
});
|
|
30
|
+
export const DEPENDENCY_MISSING = defineError({
|
|
31
|
+
slug: "dependency-missing",
|
|
32
|
+
category: "MODULE",
|
|
33
|
+
status: 404,
|
|
34
|
+
title: "Required dependency not installed",
|
|
35
|
+
suggestion: "Install the missing dependency with your package manager",
|
|
36
|
+
});
|
|
37
|
+
export const VERSION_MISMATCH = defineError({
|
|
38
|
+
slug: "version-mismatch",
|
|
39
|
+
category: "MODULE",
|
|
40
|
+
status: 409,
|
|
41
|
+
title: "Dependency version mismatch",
|
|
42
|
+
suggestion: "Update dependencies to compatible versions",
|
|
43
|
+
});
|
|
44
|
+
/** Registry fragment for MODULE errors (slug → definition). */
|
|
45
|
+
export const MODULE_REGISTRY = {
|
|
46
|
+
"module-not-found": MODULE_NOT_FOUND,
|
|
47
|
+
"import-resolution-error": IMPORT_RESOLUTION_ERROR,
|
|
48
|
+
"circular-dependency": CIRCULAR_DEPENDENCY,
|
|
49
|
+
"invalid-import": INVALID_IMPORT,
|
|
50
|
+
"dependency-missing": DEPENDENCY_MISSING,
|
|
51
|
+
"version-mismatch": VERSION_MISMATCH,
|
|
52
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const ROUTE_CONFLICT: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const INVALID_ROUTE_FILE: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const ROUTE_HANDLER_INVALID: import("../types.js").RegisteredError;
|
|
4
|
+
export declare const DYNAMIC_ROUTE_ERROR: import("../types.js").RegisteredError;
|
|
5
|
+
export declare const ROUTE_PARAMS_ERROR: import("../types.js").RegisteredError;
|
|
6
|
+
export declare const API_ROUTE_ERROR: import("../types.js").RegisteredError;
|
|
7
|
+
/** Registry fragment for ROUTE errors (slug → definition). */
|
|
8
|
+
export declare const ROUTE_REGISTRY: {
|
|
9
|
+
readonly "route-conflict": import("../types.js").RegisteredError;
|
|
10
|
+
readonly "invalid-route-file": import("../types.js").RegisteredError;
|
|
11
|
+
readonly "route-handler-invalid": import("../types.js").RegisteredError;
|
|
12
|
+
readonly "dynamic-route-error": import("../types.js").RegisteredError;
|
|
13
|
+
readonly "route-params-error": import("../types.js").RegisteredError;
|
|
14
|
+
readonly "api-route-error": import("../types.js").RegisteredError;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/route.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,cAAc;;;;;;;CAOjB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const ROUTE_CONFLICT = defineError({
|
|
3
|
+
slug: "route-conflict",
|
|
4
|
+
category: "ROUTE",
|
|
5
|
+
status: 409,
|
|
6
|
+
title: "Conflicting route definitions",
|
|
7
|
+
suggestion: "Rename or reorganize conflicting route files",
|
|
8
|
+
});
|
|
9
|
+
export const INVALID_ROUTE_FILE = defineError({
|
|
10
|
+
slug: "invalid-route-file",
|
|
11
|
+
category: "ROUTE",
|
|
12
|
+
status: 400,
|
|
13
|
+
title: "Invalid route file structure",
|
|
14
|
+
suggestion: "Ensure route file exports required functions",
|
|
15
|
+
});
|
|
16
|
+
export const ROUTE_HANDLER_INVALID = defineError({
|
|
17
|
+
slug: "route-handler-invalid",
|
|
18
|
+
category: "ROUTE",
|
|
19
|
+
status: 400,
|
|
20
|
+
title: "Invalid route handler export",
|
|
21
|
+
suggestion: "Export a valid handler function from the route file",
|
|
22
|
+
});
|
|
23
|
+
export const DYNAMIC_ROUTE_ERROR = defineError({
|
|
24
|
+
slug: "dynamic-route-error",
|
|
25
|
+
category: "ROUTE",
|
|
26
|
+
status: 500,
|
|
27
|
+
title: "Dynamic route parsing failed",
|
|
28
|
+
suggestion: "Check dynamic route segment syntax",
|
|
29
|
+
});
|
|
30
|
+
export const ROUTE_PARAMS_ERROR = defineError({
|
|
31
|
+
slug: "route-params-error",
|
|
32
|
+
category: "ROUTE",
|
|
33
|
+
status: 400,
|
|
34
|
+
title: "Route parameters invalid",
|
|
35
|
+
suggestion: "Validate route parameter values",
|
|
36
|
+
});
|
|
37
|
+
export const API_ROUTE_ERROR = defineError({
|
|
38
|
+
slug: "api-route-error",
|
|
39
|
+
category: "ROUTE",
|
|
40
|
+
status: 500,
|
|
41
|
+
title: "API route definition error",
|
|
42
|
+
suggestion: "Review API route configuration",
|
|
43
|
+
});
|
|
44
|
+
/** Registry fragment for ROUTE errors (slug → definition). */
|
|
45
|
+
export const ROUTE_REGISTRY = {
|
|
46
|
+
"route-conflict": ROUTE_CONFLICT,
|
|
47
|
+
"invalid-route-file": INVALID_ROUTE_FILE,
|
|
48
|
+
"route-handler-invalid": ROUTE_HANDLER_INVALID,
|
|
49
|
+
"dynamic-route-error": DYNAMIC_ROUTE_ERROR,
|
|
50
|
+
"route-params-error": ROUTE_PARAMS_ERROR,
|
|
51
|
+
"api-route-error": API_ROUTE_ERROR,
|
|
52
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const HYDRATION_MISMATCH: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const RENDER_ERROR: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const COMPONENT_ERROR: import("../types.js").RegisteredError;
|
|
4
|
+
export declare const LAYOUT_NOT_FOUND: import("../types.js").RegisteredError;
|
|
5
|
+
export declare const PAGE_NOT_FOUND: import("../types.js").RegisteredError;
|
|
6
|
+
export declare const API_ERROR: import("../types.js").RegisteredError;
|
|
7
|
+
export declare const MIDDLEWARE_ERROR: import("../types.js").RegisteredError;
|
|
8
|
+
/** Registry fragment for RUNTIME errors (slug → definition). */
|
|
9
|
+
export declare const RUNTIME_REGISTRY: {
|
|
10
|
+
readonly "hydration-mismatch": import("../types.js").RegisteredError;
|
|
11
|
+
readonly "render-error": import("../types.js").RegisteredError;
|
|
12
|
+
readonly "component-error": import("../types.js").RegisteredError;
|
|
13
|
+
readonly "layout-not-found": import("../types.js").RegisteredError;
|
|
14
|
+
readonly "page-not-found": import("../types.js").RegisteredError;
|
|
15
|
+
readonly "api-error": import("../types.js").RegisteredError;
|
|
16
|
+
readonly "middleware-error": import("../types.js").RegisteredError;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/runtime.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,YAAY,uCAMvB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,SAAS,uCAMpB,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,gEAAgE;AAChE,eAAO,MAAM,gBAAgB;;;;;;;;CAQnB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const HYDRATION_MISMATCH = defineError({
|
|
3
|
+
slug: "hydration-mismatch",
|
|
4
|
+
category: "RUNTIME",
|
|
5
|
+
status: 500,
|
|
6
|
+
title: "Client/server hydration mismatch",
|
|
7
|
+
suggestion: "Ensure server and client render the same content",
|
|
8
|
+
});
|
|
9
|
+
export const RENDER_ERROR = defineError({
|
|
10
|
+
slug: "render-error",
|
|
11
|
+
category: "RUNTIME",
|
|
12
|
+
status: 500,
|
|
13
|
+
title: "Component render failed",
|
|
14
|
+
suggestion: "Check component for runtime errors",
|
|
15
|
+
});
|
|
16
|
+
export const COMPONENT_ERROR = defineError({
|
|
17
|
+
slug: "component-error",
|
|
18
|
+
category: "RUNTIME",
|
|
19
|
+
status: 500,
|
|
20
|
+
title: "Component execution error",
|
|
21
|
+
suggestion: "Review component logic and props",
|
|
22
|
+
});
|
|
23
|
+
export const LAYOUT_NOT_FOUND = defineError({
|
|
24
|
+
slug: "layout-not-found",
|
|
25
|
+
category: "RUNTIME",
|
|
26
|
+
status: 404,
|
|
27
|
+
title: "Layout component not found",
|
|
28
|
+
suggestion: "Ensure layout file exists at the expected path",
|
|
29
|
+
});
|
|
30
|
+
export const PAGE_NOT_FOUND = defineError({
|
|
31
|
+
slug: "page-not-found",
|
|
32
|
+
category: "RUNTIME",
|
|
33
|
+
status: 404,
|
|
34
|
+
title: "Page component not found",
|
|
35
|
+
suggestion: "Check that the page file exists in the routes directory",
|
|
36
|
+
});
|
|
37
|
+
export const API_ERROR = defineError({
|
|
38
|
+
slug: "api-error",
|
|
39
|
+
category: "RUNTIME",
|
|
40
|
+
status: 500,
|
|
41
|
+
title: "API route handler error",
|
|
42
|
+
suggestion: "Review API route handler for errors",
|
|
43
|
+
});
|
|
44
|
+
export const MIDDLEWARE_ERROR = defineError({
|
|
45
|
+
slug: "middleware-error",
|
|
46
|
+
category: "RUNTIME",
|
|
47
|
+
status: 500,
|
|
48
|
+
title: "Middleware execution error",
|
|
49
|
+
suggestion: "Check middleware function for errors",
|
|
50
|
+
});
|
|
51
|
+
/** Registry fragment for RUNTIME errors (slug → definition). */
|
|
52
|
+
export const RUNTIME_REGISTRY = {
|
|
53
|
+
"hydration-mismatch": HYDRATION_MISMATCH,
|
|
54
|
+
"render-error": RENDER_ERROR,
|
|
55
|
+
"component-error": COMPONENT_ERROR,
|
|
56
|
+
"layout-not-found": LAYOUT_NOT_FOUND,
|
|
57
|
+
"page-not-found": PAGE_NOT_FOUND,
|
|
58
|
+
"api-error": API_ERROR,
|
|
59
|
+
"middleware-error": MIDDLEWARE_ERROR,
|
|
60
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const PORT_IN_USE: import("../types.js").RegisteredError;
|
|
2
|
+
export declare const SERVER_START_ERROR: import("../types.js").RegisteredError;
|
|
3
|
+
export declare const CACHE_ERROR: import("../types.js").RegisteredError;
|
|
4
|
+
export declare const FILE_WATCH_ERROR: import("../types.js").RegisteredError;
|
|
5
|
+
export declare const REQUEST_ERROR: import("../types.js").RegisteredError;
|
|
6
|
+
export declare const SERVICE_OVERLOADED: import("../types.js").RegisteredError;
|
|
7
|
+
export declare const SEMAPHORE_TIMEOUT: import("../types.js").RegisteredError;
|
|
8
|
+
export declare const CIRCUIT_BREAKER_OPEN: import("../types.js").RegisteredError;
|
|
9
|
+
export declare const CACHE_PATH_MISMATCH: import("../types.js").RegisteredError;
|
|
10
|
+
export declare const NETWORK_ERROR: import("../types.js").RegisteredError;
|
|
11
|
+
/** API client request/response errors (replaces VeryfrontAPIError) */
|
|
12
|
+
export declare const API_CLIENT_ERROR: import("../types.js").RegisteredError;
|
|
13
|
+
/** Token storage adapter failures (replaces TokenStorageError) */
|
|
14
|
+
export declare const TOKEN_STORAGE_ERROR: import("../types.js").RegisteredError;
|
|
15
|
+
/** Cache path invariant violations (replaces CacheInvariantError) */
|
|
16
|
+
export declare const CACHE_INVARIANT_VIOLATION: import("../types.js").RegisteredError;
|
|
17
|
+
/** Production domain resolved but no active release found */
|
|
18
|
+
export declare const RELEASE_NOT_FOUND: import("../types.js").RegisteredError;
|
|
19
|
+
/** Both primary and fallback operations failed (replaces FallbackExecutionError) */
|
|
20
|
+
export declare const FALLBACK_EXHAUSTED: import("../types.js").RegisteredError;
|
|
21
|
+
/** Registry fragment for SERVER errors (slug → definition). */
|
|
22
|
+
export declare const SERVER_REGISTRY: {
|
|
23
|
+
readonly "port-in-use": import("../types.js").RegisteredError;
|
|
24
|
+
readonly "server-start-error": import("../types.js").RegisteredError;
|
|
25
|
+
readonly "cache-error": import("../types.js").RegisteredError;
|
|
26
|
+
readonly "file-watch-error": import("../types.js").RegisteredError;
|
|
27
|
+
readonly "request-error": import("../types.js").RegisteredError;
|
|
28
|
+
readonly "service-overloaded": import("../types.js").RegisteredError;
|
|
29
|
+
readonly "semaphore-timeout": import("../types.js").RegisteredError;
|
|
30
|
+
readonly "circuit-breaker-open": import("../types.js").RegisteredError;
|
|
31
|
+
readonly "cache-path-mismatch": import("../types.js").RegisteredError;
|
|
32
|
+
readonly "network-error": import("../types.js").RegisteredError;
|
|
33
|
+
readonly "api-client-error": import("../types.js").RegisteredError;
|
|
34
|
+
readonly "token-storage-error": import("../types.js").RegisteredError;
|
|
35
|
+
readonly "cache-invariant-violation": import("../types.js").RegisteredError;
|
|
36
|
+
readonly "release-not-found": import("../types.js").RegisteredError;
|
|
37
|
+
readonly "fallback-exhausted": import("../types.js").RegisteredError;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/server.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,uCAMtB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,WAAW,uCAMtB,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAMxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAM/B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAMxB,CAAC;AAEH,sEAAsE;AACtE,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,6DAA6D;AAC7D,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,oFAAoF;AACpF,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAgBlB,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { defineError } from "../types.js";
|
|
2
|
+
export const PORT_IN_USE = defineError({
|
|
3
|
+
slug: "port-in-use",
|
|
4
|
+
category: "SERVER",
|
|
5
|
+
status: 409,
|
|
6
|
+
title: "Server port already in use",
|
|
7
|
+
suggestion: "Use a different port or stop the process using this port",
|
|
8
|
+
});
|
|
9
|
+
export const SERVER_START_ERROR = defineError({
|
|
10
|
+
slug: "server-start-error",
|
|
11
|
+
category: "SERVER",
|
|
12
|
+
status: 500,
|
|
13
|
+
title: "Server failed to start",
|
|
14
|
+
suggestion: "Check server configuration and port availability",
|
|
15
|
+
});
|
|
16
|
+
export const CACHE_ERROR = defineError({
|
|
17
|
+
slug: "cache-error",
|
|
18
|
+
category: "SERVER",
|
|
19
|
+
status: 500,
|
|
20
|
+
title: "Cache operation failed",
|
|
21
|
+
suggestion: "Clear the cache and try again",
|
|
22
|
+
});
|
|
23
|
+
export const FILE_WATCH_ERROR = defineError({
|
|
24
|
+
slug: "file-watch-error",
|
|
25
|
+
category: "SERVER",
|
|
26
|
+
status: 500,
|
|
27
|
+
title: "File watcher error",
|
|
28
|
+
suggestion: "Restart the development server",
|
|
29
|
+
});
|
|
30
|
+
export const REQUEST_ERROR = defineError({
|
|
31
|
+
slug: "request-error",
|
|
32
|
+
category: "SERVER",
|
|
33
|
+
status: 500,
|
|
34
|
+
title: "HTTP request handling error",
|
|
35
|
+
suggestion: "Check request handler and middleware",
|
|
36
|
+
});
|
|
37
|
+
export const SERVICE_OVERLOADED = defineError({
|
|
38
|
+
slug: "service-overloaded",
|
|
39
|
+
category: "SERVER",
|
|
40
|
+
status: 503,
|
|
41
|
+
title: "Service overloaded",
|
|
42
|
+
suggestion: "Reduce load or scale up resources",
|
|
43
|
+
});
|
|
44
|
+
export const SEMAPHORE_TIMEOUT = defineError({
|
|
45
|
+
slug: "semaphore-timeout",
|
|
46
|
+
category: "SERVER",
|
|
47
|
+
status: 503,
|
|
48
|
+
title: "Semaphore acquire timeout",
|
|
49
|
+
suggestion: "Reduce concurrency or increase the semaphore acquire timeout",
|
|
50
|
+
});
|
|
51
|
+
export const CIRCUIT_BREAKER_OPEN = defineError({
|
|
52
|
+
slug: "circuit-breaker-open",
|
|
53
|
+
category: "SERVER",
|
|
54
|
+
status: 503,
|
|
55
|
+
title: "Circuit breaker is open",
|
|
56
|
+
suggestion: "Wait for the breaker reset timeout before retrying",
|
|
57
|
+
});
|
|
58
|
+
export const CACHE_PATH_MISMATCH = defineError({
|
|
59
|
+
slug: "cache-path-mismatch",
|
|
60
|
+
category: "SERVER",
|
|
61
|
+
status: 500,
|
|
62
|
+
title: "Cache path mismatch",
|
|
63
|
+
suggestion: "Clear the cache directory and rebuild",
|
|
64
|
+
});
|
|
65
|
+
export const NETWORK_ERROR = defineError({
|
|
66
|
+
slug: "network-error",
|
|
67
|
+
category: "SERVER",
|
|
68
|
+
status: 502,
|
|
69
|
+
title: "Network operation failed",
|
|
70
|
+
suggestion: "Check network connectivity and retry",
|
|
71
|
+
});
|
|
72
|
+
/** API client request/response errors (replaces VeryfrontAPIError) */
|
|
73
|
+
export const API_CLIENT_ERROR = defineError({
|
|
74
|
+
slug: "api-client-error",
|
|
75
|
+
category: "SERVER",
|
|
76
|
+
status: 500,
|
|
77
|
+
title: "API client request failed",
|
|
78
|
+
suggestion: "Check API connectivity and authentication",
|
|
79
|
+
});
|
|
80
|
+
/** Token storage adapter failures (replaces TokenStorageError) */
|
|
81
|
+
export const TOKEN_STORAGE_ERROR = defineError({
|
|
82
|
+
slug: "token-storage-error",
|
|
83
|
+
category: "SERVER",
|
|
84
|
+
status: 500,
|
|
85
|
+
title: "Token storage operation failed",
|
|
86
|
+
suggestion: "Check token storage backend and credentials",
|
|
87
|
+
});
|
|
88
|
+
/** Cache path invariant violations (replaces CacheInvariantError) */
|
|
89
|
+
export const CACHE_INVARIANT_VIOLATION = defineError({
|
|
90
|
+
slug: "cache-invariant-violation",
|
|
91
|
+
category: "SERVER",
|
|
92
|
+
status: 500,
|
|
93
|
+
title: "Cache path invariant violated",
|
|
94
|
+
suggestion: "Clear the cache and rebuild",
|
|
95
|
+
});
|
|
96
|
+
/** Production domain resolved but no active release found */
|
|
97
|
+
export const RELEASE_NOT_FOUND = defineError({
|
|
98
|
+
slug: "release-not-found",
|
|
99
|
+
category: "SERVER",
|
|
100
|
+
status: 404,
|
|
101
|
+
title: "No active release found",
|
|
102
|
+
suggestion: "Deploy the project to create a release for this environment",
|
|
103
|
+
});
|
|
104
|
+
/** Both primary and fallback operations failed (replaces FallbackExecutionError) */
|
|
105
|
+
export const FALLBACK_EXHAUSTED = defineError({
|
|
106
|
+
slug: "fallback-exhausted",
|
|
107
|
+
category: "SERVER",
|
|
108
|
+
status: 500,
|
|
109
|
+
title: "Primary and fallback operations both failed",
|
|
110
|
+
suggestion: "Check service availability and connectivity",
|
|
111
|
+
});
|
|
112
|
+
/** Registry fragment for SERVER errors (slug → definition). */
|
|
113
|
+
export const SERVER_REGISTRY = {
|
|
114
|
+
"port-in-use": PORT_IN_USE,
|
|
115
|
+
"server-start-error": SERVER_START_ERROR,
|
|
116
|
+
"cache-error": CACHE_ERROR,
|
|
117
|
+
"file-watch-error": FILE_WATCH_ERROR,
|
|
118
|
+
"request-error": REQUEST_ERROR,
|
|
119
|
+
"service-overloaded": SERVICE_OVERLOADED,
|
|
120
|
+
"semaphore-timeout": SEMAPHORE_TIMEOUT,
|
|
121
|
+
"circuit-breaker-open": CIRCUIT_BREAKER_OPEN,
|
|
122
|
+
"cache-path-mismatch": CACHE_PATH_MISMATCH,
|
|
123
|
+
"network-error": NETWORK_ERROR,
|
|
124
|
+
"api-client-error": API_CLIENT_ERROR,
|
|
125
|
+
"token-storage-error": TOKEN_STORAGE_ERROR,
|
|
126
|
+
"cache-invariant-violation": CACHE_INVARIANT_VIOLATION,
|
|
127
|
+
"release-not-found": RELEASE_NOT_FOUND,
|
|
128
|
+
"fallback-exhausted": FALLBACK_EXHAUSTED,
|
|
129
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ErrorCategory, RegisteredError } from "./types.js";
|
|
2
|
+
export type ErrorRegistryMap = Record<string, RegisteredError>;
|
|
3
|
+
export declare function getRegistryEntry<Registry extends ErrorRegistryMap, Slug extends keyof Registry>(registry: Registry, slug: Slug): Registry[Slug];
|
|
4
|
+
export declare function getRegistryEntriesByCategory(registry: ErrorRegistryMap, category: ErrorCategory): RegisteredError[];
|
|
5
|
+
export declare function getRegistrySlugs<Registry extends ErrorRegistryMap>(registry: Registry): Array<keyof Registry>;
|
|
6
|
+
//# sourceMappingURL=error-registry-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-registry-helpers.d.ts","sourceRoot":"","sources":["../../../src/src/errors/error-registry-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEjE,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAE/D,wBAAgB,gBAAgB,CAC9B,QAAQ,SAAS,gBAAgB,EACjC,IAAI,SAAS,MAAM,QAAQ,EAC3B,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAEhD;AAED,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,aAAa,GACtB,eAAe,EAAE,CAEnB;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,SAAS,gBAAgB,EAChE,QAAQ,EAAE,QAAQ,GACjB,KAAK,CAAC,MAAM,QAAQ,CAAC,CAEvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function getRegistryEntry(registry, slug) {
|
|
2
|
+
return registry[slug];
|
|
3
|
+
}
|
|
4
|
+
export function getRegistryEntriesByCategory(registry, category) {
|
|
5
|
+
return Object.values(registry).filter((error) => error.category === category);
|
|
6
|
+
}
|
|
7
|
+
export function getRegistrySlugs(registry) {
|
|
8
|
+
return Object.keys(registry);
|
|
9
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { type ErrorCategory } from "./types.js";
|
|
2
|
+
export * from "./error-registry/config.js";
|
|
3
|
+
export * from "./error-registry/build.js";
|
|
4
|
+
export * from "./error-registry/runtime.js";
|
|
5
|
+
export * from "./error-registry/route.js";
|
|
6
|
+
export * from "./error-registry/module.js";
|
|
7
|
+
export * from "./error-registry/server.js";
|
|
8
|
+
export * from "./error-registry/boundary.js";
|
|
9
|
+
export * from "./error-registry/dev.js";
|
|
10
|
+
export * from "./error-registry/deploy.js";
|
|
11
|
+
export * from "./error-registry/agent.js";
|
|
12
|
+
export * from "./error-registry/general.js";
|
|
13
|
+
/**
|
|
14
|
+
* Central registry mapping every error slug to its definition. Assembled from
|
|
15
|
+
* the per-category registry fragments.
|
|
16
|
+
*/
|
|
17
|
+
export declare const ERROR_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
|
+
readonly "agent-error": import("./types.js").RegisteredError;
|
|
29
|
+
readonly "agent-not-found": import("./types.js").RegisteredError;
|
|
30
|
+
readonly "agent-timeout": import("./types.js").RegisteredError;
|
|
31
|
+
readonly "agent-intent-error": import("./types.js").RegisteredError;
|
|
32
|
+
readonly "orchestration-error": import("./types.js").RegisteredError;
|
|
33
|
+
readonly "cost-limit-exceeded": import("./types.js").RegisteredError;
|
|
34
|
+
readonly "tool-id-conflict": import("./types.js").RegisteredError;
|
|
35
|
+
readonly "deployment-error": import("./types.js").RegisteredError;
|
|
36
|
+
readonly "platform-error": import("./types.js").RegisteredError;
|
|
37
|
+
readonly "env-var-missing": import("./types.js").RegisteredError;
|
|
38
|
+
readonly "production-build-required": import("./types.js").RegisteredError;
|
|
39
|
+
readonly "hmr-error": import("./types.js").RegisteredError;
|
|
40
|
+
readonly "dev-server-error": import("./types.js").RegisteredError;
|
|
41
|
+
readonly "fast-refresh-error": import("./types.js").RegisteredError;
|
|
42
|
+
readonly "error-overlay-error": import("./types.js").RegisteredError;
|
|
43
|
+
readonly "source-map-error": import("./types.js").RegisteredError;
|
|
44
|
+
readonly "client-boundary-violation": import("./types.js").RegisteredError;
|
|
45
|
+
readonly "server-only-in-client": import("./types.js").RegisteredError;
|
|
46
|
+
readonly "client-only-in-server": import("./types.js").RegisteredError;
|
|
47
|
+
readonly "invalid-use-client": import("./types.js").RegisteredError;
|
|
48
|
+
readonly "invalid-use-server": import("./types.js").RegisteredError;
|
|
49
|
+
readonly "rsc-payload-error": import("./types.js").RegisteredError;
|
|
50
|
+
readonly "port-in-use": import("./types.js").RegisteredError;
|
|
51
|
+
readonly "server-start-error": import("./types.js").RegisteredError;
|
|
52
|
+
readonly "cache-error": import("./types.js").RegisteredError;
|
|
53
|
+
readonly "file-watch-error": import("./types.js").RegisteredError;
|
|
54
|
+
readonly "request-error": import("./types.js").RegisteredError;
|
|
55
|
+
readonly "service-overloaded": import("./types.js").RegisteredError;
|
|
56
|
+
readonly "semaphore-timeout": import("./types.js").RegisteredError;
|
|
57
|
+
readonly "circuit-breaker-open": import("./types.js").RegisteredError;
|
|
58
|
+
readonly "cache-path-mismatch": import("./types.js").RegisteredError;
|
|
59
|
+
readonly "network-error": import("./types.js").RegisteredError;
|
|
60
|
+
readonly "api-client-error": import("./types.js").RegisteredError;
|
|
61
|
+
readonly "token-storage-error": import("./types.js").RegisteredError;
|
|
62
|
+
readonly "cache-invariant-violation": import("./types.js").RegisteredError;
|
|
63
|
+
readonly "release-not-found": import("./types.js").RegisteredError;
|
|
64
|
+
readonly "fallback-exhausted": import("./types.js").RegisteredError;
|
|
65
|
+
readonly "module-not-found": import("./types.js").RegisteredError;
|
|
66
|
+
readonly "import-resolution-error": import("./types.js").RegisteredError;
|
|
67
|
+
readonly "circular-dependency": import("./types.js").RegisteredError;
|
|
68
|
+
readonly "invalid-import": import("./types.js").RegisteredError;
|
|
69
|
+
readonly "dependency-missing": import("./types.js").RegisteredError;
|
|
70
|
+
readonly "version-mismatch": import("./types.js").RegisteredError;
|
|
71
|
+
readonly "route-conflict": import("./types.js").RegisteredError;
|
|
72
|
+
readonly "invalid-route-file": import("./types.js").RegisteredError;
|
|
73
|
+
readonly "route-handler-invalid": import("./types.js").RegisteredError;
|
|
74
|
+
readonly "dynamic-route-error": import("./types.js").RegisteredError;
|
|
75
|
+
readonly "route-params-error": import("./types.js").RegisteredError;
|
|
76
|
+
readonly "api-route-error": import("./types.js").RegisteredError;
|
|
77
|
+
readonly "hydration-mismatch": import("./types.js").RegisteredError;
|
|
78
|
+
readonly "render-error": import("./types.js").RegisteredError;
|
|
79
|
+
readonly "component-error": import("./types.js").RegisteredError;
|
|
80
|
+
readonly "layout-not-found": import("./types.js").RegisteredError;
|
|
81
|
+
readonly "page-not-found": import("./types.js").RegisteredError;
|
|
82
|
+
readonly "api-error": import("./types.js").RegisteredError;
|
|
83
|
+
readonly "middleware-error": import("./types.js").RegisteredError;
|
|
84
|
+
readonly "build-failed": import("./types.js").RegisteredError;
|
|
85
|
+
readonly "bundle-error": import("./types.js").RegisteredError;
|
|
86
|
+
readonly "typescript-error": import("./types.js").RegisteredError;
|
|
87
|
+
readonly "mdx-compile-error": import("./types.js").RegisteredError;
|
|
88
|
+
readonly "asset-optimization-error": import("./types.js").RegisteredError;
|
|
89
|
+
readonly "ssg-generation-error": import("./types.js").RegisteredError;
|
|
90
|
+
readonly "sourcemap-error": import("./types.js").RegisteredError;
|
|
91
|
+
readonly "compilation-error": import("./types.js").RegisteredError;
|
|
92
|
+
readonly "config-not-found": import("./types.js").RegisteredError;
|
|
93
|
+
readonly "config-invalid": import("./types.js").RegisteredError;
|
|
94
|
+
readonly "config-parse-error": import("./types.js").RegisteredError;
|
|
95
|
+
readonly "config-validation-error": import("./types.js").RegisteredError;
|
|
96
|
+
readonly "config-type-error": import("./types.js").RegisteredError;
|
|
97
|
+
readonly "import-map-invalid": import("./types.js").RegisteredError;
|
|
98
|
+
readonly "cors-config-invalid": import("./types.js").RegisteredError;
|
|
99
|
+
readonly "config-validation-failed": import("./types.js").RegisteredError;
|
|
100
|
+
};
|
|
101
|
+
export type ErrorSlug = keyof typeof ERROR_REGISTRY;
|
|
102
|
+
/**
|
|
103
|
+
* Get an error definition by slug
|
|
104
|
+
*/
|
|
105
|
+
export declare function getErrorBySlug(slug: ErrorSlug): import("./types.js").RegisteredError;
|
|
106
|
+
/**
|
|
107
|
+
* Get all errors in a category
|
|
108
|
+
*/
|
|
109
|
+
export declare function getErrorsByCategory(category: ErrorCategory): import("./types.js").RegisteredError[];
|
|
110
|
+
/**
|
|
111
|
+
* Get all registered slugs
|
|
112
|
+
*/
|
|
113
|
+
export declare function getAllSlugs(): ErrorSlug[];
|
|
114
|
+
//# sourceMappingURL=error-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-registry.d.ts","sourceRoot":"","sources":["../../../src/src/errors/error-registry.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAgBhD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYjB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,cAAc,CAAC;AAEpD;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,wCAE7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,aAAa,0CAE1D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,SAAS,EAAE,CAEzC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { getRegistryEntriesByCategory, getRegistryEntry, getRegistrySlugs, } from "./error-registry-helpers.js";
|
|
2
|
+
// Error definitions live in per-category modules under ./error-registry/.
|
|
3
|
+
// This barrel re-exports them and assembles the slug → definition registry.
|
|
4
|
+
import { CONFIG_REGISTRY } from "./error-registry/config.js";
|
|
5
|
+
import { BUILD_REGISTRY } from "./error-registry/build.js";
|
|
6
|
+
import { RUNTIME_REGISTRY } from "./error-registry/runtime.js";
|
|
7
|
+
import { ROUTE_REGISTRY } from "./error-registry/route.js";
|
|
8
|
+
import { MODULE_REGISTRY } from "./error-registry/module.js";
|
|
9
|
+
import { SERVER_REGISTRY } from "./error-registry/server.js";
|
|
10
|
+
import { BOUNDARY_REGISTRY } from "./error-registry/boundary.js";
|
|
11
|
+
import { DEV_REGISTRY } from "./error-registry/dev.js";
|
|
12
|
+
import { DEPLOY_REGISTRY } from "./error-registry/deploy.js";
|
|
13
|
+
import { AGENT_REGISTRY } from "./error-registry/agent.js";
|
|
14
|
+
import { GENERAL_REGISTRY } from "./error-registry/general.js";
|
|
15
|
+
export * from "./error-registry/config.js";
|
|
16
|
+
export * from "./error-registry/build.js";
|
|
17
|
+
export * from "./error-registry/runtime.js";
|
|
18
|
+
export * from "./error-registry/route.js";
|
|
19
|
+
export * from "./error-registry/module.js";
|
|
20
|
+
export * from "./error-registry/server.js";
|
|
21
|
+
export * from "./error-registry/boundary.js";
|
|
22
|
+
export * from "./error-registry/dev.js";
|
|
23
|
+
export * from "./error-registry/deploy.js";
|
|
24
|
+
export * from "./error-registry/agent.js";
|
|
25
|
+
export * from "./error-registry/general.js";
|
|
26
|
+
/**
|
|
27
|
+
* Central registry mapping every error slug to its definition. Assembled from
|
|
28
|
+
* the per-category registry fragments.
|
|
29
|
+
*/
|
|
30
|
+
export const ERROR_REGISTRY = {
|
|
31
|
+
...CONFIG_REGISTRY,
|
|
32
|
+
...BUILD_REGISTRY,
|
|
33
|
+
...RUNTIME_REGISTRY,
|
|
34
|
+
...ROUTE_REGISTRY,
|
|
35
|
+
...MODULE_REGISTRY,
|
|
36
|
+
...SERVER_REGISTRY,
|
|
37
|
+
...BOUNDARY_REGISTRY,
|
|
38
|
+
...DEV_REGISTRY,
|
|
39
|
+
...DEPLOY_REGISTRY,
|
|
40
|
+
...AGENT_REGISTRY,
|
|
41
|
+
...GENERAL_REGISTRY,
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Get an error definition by slug
|
|
45
|
+
*/
|
|
46
|
+
export function getErrorBySlug(slug) {
|
|
47
|
+
return getRegistryEntry(ERROR_REGISTRY, slug);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get all errors in a category
|
|
51
|
+
*/
|
|
52
|
+
export function getErrorsByCategory(category) {
|
|
53
|
+
return getRegistryEntriesByCategory(ERROR_REGISTRY, category);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get all registered slugs
|
|
57
|
+
*/
|
|
58
|
+
export function getAllSlugs() {
|
|
59
|
+
return getRegistrySlugs(ERROR_REGISTRY);
|
|
60
|
+
}
|