@veryfront/ext-content-mdx 0.1.1119 → 0.1.1122

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.
Files changed (188) hide show
  1. package/esm/_dnt.polyfills.d.ts +6 -0
  2. package/esm/_dnt.polyfills.d.ts.map +1 -1
  3. package/esm/deno.js +1 -1
  4. package/esm/src/config/defaults.d.ts +39 -0
  5. package/esm/src/config/defaults.d.ts.map +1 -0
  6. package/esm/src/config/defaults.js +65 -0
  7. package/esm/src/errors/error-registry/agent.d.ts +18 -0
  8. package/esm/src/errors/error-registry/agent.d.ts.map +1 -0
  9. package/esm/src/errors/error-registry/agent.js +60 -0
  10. package/esm/src/errors/error-registry/boundary.d.ts +16 -0
  11. package/esm/src/errors/error-registry/boundary.d.ts.map +1 -0
  12. package/esm/src/errors/error-registry/boundary.js +52 -0
  13. package/esm/src/errors/error-registry/build.d.ts +20 -0
  14. package/esm/src/errors/error-registry/build.d.ts.map +1 -0
  15. package/esm/src/errors/error-registry/build.js +68 -0
  16. package/esm/src/errors/error-registry/config.d.ts +31 -0
  17. package/esm/src/errors/error-registry/config.d.ts.map +1 -0
  18. package/esm/src/errors/error-registry/config.js +97 -0
  19. package/esm/src/errors/error-registry/deploy.d.ts +12 -0
  20. package/esm/src/errors/error-registry/deploy.d.ts.map +1 -0
  21. package/esm/src/errors/error-registry/deploy.js +36 -0
  22. package/esm/src/errors/error-registry/dev.d.ts +14 -0
  23. package/esm/src/errors/error-registry/dev.d.ts.map +1 -0
  24. package/esm/src/errors/error-registry/dev.js +44 -0
  25. package/esm/src/errors/error-registry/general.d.ts +29 -0
  26. package/esm/src/errors/error-registry/general.d.ts.map +1 -0
  27. package/esm/src/errors/error-registry/general.js +92 -0
  28. package/esm/src/errors/error-registry/module.d.ts +16 -0
  29. package/esm/src/errors/error-registry/module.d.ts.map +1 -0
  30. package/esm/src/errors/error-registry/module.js +52 -0
  31. package/esm/src/errors/error-registry/route.d.ts +16 -0
  32. package/esm/src/errors/error-registry/route.d.ts.map +1 -0
  33. package/esm/src/errors/error-registry/route.js +52 -0
  34. package/esm/src/errors/error-registry/runtime.d.ts +27 -0
  35. package/esm/src/errors/error-registry/runtime.d.ts.map +1 -0
  36. package/esm/src/errors/error-registry/runtime.js +87 -0
  37. package/esm/src/errors/error-registry/server.d.ts +39 -0
  38. package/esm/src/errors/error-registry/server.d.ts.map +1 -0
  39. package/esm/src/errors/error-registry/server.js +129 -0
  40. package/esm/src/errors/error-registry-helpers.d.ts +6 -0
  41. package/esm/src/errors/error-registry-helpers.d.ts.map +1 -0
  42. package/esm/src/errors/error-registry-helpers.js +9 -0
  43. package/esm/src/errors/error-registry.d.ts +120 -0
  44. package/esm/src/errors/error-registry.d.ts.map +1 -0
  45. package/esm/src/errors/error-registry.js +60 -0
  46. package/esm/src/errors/types.d.ts +84 -0
  47. package/esm/src/errors/types.d.ts.map +1 -0
  48. package/esm/src/errors/types.js +69 -0
  49. package/esm/src/errors/veryfront-error.d.ts +149 -0
  50. package/esm/src/errors/veryfront-error.d.ts.map +1 -0
  51. package/esm/src/errors/veryfront-error.js +61 -0
  52. package/esm/src/modules/react-loader/ssr-module-loader/concurrency/semaphore.d.ts +13 -0
  53. package/esm/src/modules/react-loader/ssr-module-loader/concurrency/semaphore.d.ts.map +1 -0
  54. package/esm/src/modules/react-loader/ssr-module-loader/concurrency/semaphore.js +55 -0
  55. package/esm/src/observability/tracing/api-shim.d.ts +191 -0
  56. package/esm/src/observability/tracing/api-shim.d.ts.map +1 -0
  57. package/esm/src/observability/tracing/api-shim.js +281 -0
  58. package/esm/src/observability/tracing/otlp-setup.d.ts +63 -0
  59. package/esm/src/observability/tracing/otlp-setup.d.ts.map +1 -0
  60. package/esm/src/observability/tracing/otlp-setup.js +219 -0
  61. package/esm/src/observability/tracing/telemetry-env.d.ts +3 -0
  62. package/esm/src/observability/tracing/telemetry-env.d.ts.map +1 -0
  63. package/esm/src/observability/tracing/telemetry-env.js +10 -0
  64. package/esm/src/platform/adapters/base.d.ts +209 -0
  65. package/esm/src/platform/adapters/base.d.ts.map +1 -0
  66. package/esm/src/platform/adapters/base.js +15 -0
  67. package/esm/src/platform/compat/constants.d.ts +13 -0
  68. package/esm/src/platform/compat/constants.d.ts.map +1 -0
  69. package/esm/src/platform/compat/constants.js +12 -0
  70. package/esm/src/platform/compat/dynamic-import.d.ts +11 -0
  71. package/esm/src/platform/compat/dynamic-import.d.ts.map +1 -0
  72. package/esm/src/platform/compat/dynamic-import.js +10 -0
  73. package/esm/src/platform/compat/fs.d.ts +76 -0
  74. package/esm/src/platform/compat/fs.d.ts.map +1 -0
  75. package/esm/src/platform/compat/fs.js +336 -0
  76. package/esm/src/platform/compat/process/command.d.ts +33 -0
  77. package/esm/src/platform/compat/process/command.d.ts.map +1 -0
  78. package/esm/src/platform/compat/process/command.js +206 -0
  79. package/esm/src/platform/compat/process.d.ts +5 -0
  80. package/esm/src/platform/compat/process.d.ts.map +1 -0
  81. package/esm/src/platform/compat/process.js +4 -0
  82. package/esm/src/transforms/import-rewriter/url-builder.d.ts +70 -0
  83. package/esm/src/transforms/import-rewriter/url-builder.d.ts.map +1 -0
  84. package/esm/src/transforms/import-rewriter/url-builder.js +152 -0
  85. package/esm/src/transforms/mdx/compiler/import-rewriter.d.ts.map +1 -1
  86. package/esm/src/transforms/mdx/compiler/import-rewriter.js +2 -1
  87. package/esm/src/utils/base64url.d.ts +7 -0
  88. package/esm/src/utils/base64url.d.ts.map +1 -0
  89. package/esm/src/utils/base64url.js +39 -0
  90. package/esm/src/utils/bundle-manifest.d.ts +63 -0
  91. package/esm/src/utils/bundle-manifest.d.ts.map +1 -0
  92. package/esm/src/utils/bundle-manifest.js +96 -0
  93. package/esm/src/utils/constants/buffers.d.ts +24 -0
  94. package/esm/src/utils/constants/buffers.d.ts.map +1 -0
  95. package/esm/src/utils/constants/buffers.js +23 -0
  96. package/esm/src/utils/constants/build.d.ts +8 -0
  97. package/esm/src/utils/constants/build.d.ts.map +1 -0
  98. package/esm/src/utils/constants/build.js +7 -0
  99. package/esm/src/utils/constants/cache.d.ts +74 -0
  100. package/esm/src/utils/constants/cache.d.ts.map +1 -0
  101. package/esm/src/utils/constants/cache.js +133 -0
  102. package/esm/src/utils/constants/cdn.d.ts +29 -0
  103. package/esm/src/utils/constants/cdn.d.ts.map +1 -0
  104. package/esm/src/utils/constants/cdn.js +58 -0
  105. package/esm/src/utils/constants/crypto.d.ts +10 -0
  106. package/esm/src/utils/constants/crypto.d.ts.map +1 -0
  107. package/esm/src/utils/constants/crypto.js +9 -0
  108. package/esm/src/utils/constants/env.d.ts +16 -0
  109. package/esm/src/utils/constants/env.d.ts.map +1 -0
  110. package/esm/src/utils/constants/env.js +20 -0
  111. package/esm/src/utils/constants/hash.d.ts +5 -0
  112. package/esm/src/utils/constants/hash.d.ts.map +1 -0
  113. package/esm/src/utils/constants/hash.js +4 -0
  114. package/esm/src/utils/constants/hmr.d.ts +24 -0
  115. package/esm/src/utils/constants/hmr.d.ts.map +1 -0
  116. package/esm/src/utils/constants/hmr.js +26 -0
  117. package/esm/src/utils/constants/html.d.ts +13 -0
  118. package/esm/src/utils/constants/html.d.ts.map +1 -0
  119. package/esm/src/utils/constants/html.js +12 -0
  120. package/esm/src/utils/constants/http.d.ts +77 -0
  121. package/esm/src/utils/constants/http.d.ts.map +1 -0
  122. package/esm/src/utils/constants/http.js +76 -0
  123. package/esm/src/utils/constants/index.d.ts +23 -0
  124. package/esm/src/utils/constants/index.d.ts.map +1 -0
  125. package/esm/src/utils/constants/index.js +22 -0
  126. package/esm/src/utils/constants/limits.d.ts +27 -0
  127. package/esm/src/utils/constants/limits.d.ts.map +1 -0
  128. package/esm/src/utils/constants/limits.js +26 -0
  129. package/esm/src/utils/constants/metrics.d.ts +10 -0
  130. package/esm/src/utils/constants/metrics.d.ts.map +1 -0
  131. package/esm/src/utils/constants/metrics.js +34 -0
  132. package/esm/src/utils/constants/network.d.ts +23 -0
  133. package/esm/src/utils/constants/network.d.ts.map +1 -0
  134. package/esm/src/utils/constants/network.js +27 -0
  135. package/esm/src/utils/constants/priorities.d.ts +31 -0
  136. package/esm/src/utils/constants/priorities.d.ts.map +1 -0
  137. package/esm/src/utils/constants/priorities.js +30 -0
  138. package/esm/src/utils/constants/retry.d.ts +14 -0
  139. package/esm/src/utils/constants/retry.d.ts.map +1 -0
  140. package/esm/src/utils/constants/retry.js +13 -0
  141. package/esm/src/utils/constants/server.d.ts +107 -0
  142. package/esm/src/utils/constants/server.d.ts.map +1 -0
  143. package/esm/src/utils/constants/server.js +120 -0
  144. package/esm/src/utils/feature-flags.d.ts +7 -0
  145. package/esm/src/utils/feature-flags.d.ts.map +1 -0
  146. package/esm/src/utils/feature-flags.js +8 -0
  147. package/esm/src/utils/hash-utils.d.ts +22 -0
  148. package/esm/src/utils/hash-utils.d.ts.map +1 -0
  149. package/esm/src/utils/hash-utils.js +48 -0
  150. package/esm/src/utils/import-lockfile.d.ts +52 -0
  151. package/esm/src/utils/import-lockfile.d.ts.map +1 -0
  152. package/esm/src/utils/import-lockfile.js +187 -0
  153. package/esm/src/utils/index.d.ts +30 -0
  154. package/esm/src/utils/index.d.ts.map +1 -0
  155. package/esm/src/utils/index.js +29 -0
  156. package/esm/src/utils/logger/components.d.ts +73 -0
  157. package/esm/src/utils/logger/components.d.ts.map +1 -0
  158. package/esm/src/utils/logger/components.js +81 -0
  159. package/esm/src/utils/logger/index.d.ts +10 -0
  160. package/esm/src/utils/logger/index.d.ts.map +1 -0
  161. package/esm/src/utils/logger/index.js +9 -0
  162. package/esm/src/utils/logger/request-context.d.ts +27 -0
  163. package/esm/src/utils/logger/request-context.d.ts.map +1 -0
  164. package/esm/src/utils/logger/request-context.js +28 -0
  165. package/esm/src/utils/memoize.d.ts +19 -0
  166. package/esm/src/utils/memoize.d.ts.map +1 -0
  167. package/esm/src/utils/memoize.js +72 -0
  168. package/esm/src/utils/parallel.d.ts +21 -0
  169. package/esm/src/utils/parallel.d.ts.map +1 -0
  170. package/esm/src/utils/parallel.js +51 -0
  171. package/esm/src/utils/path-utils.d.ts +34 -0
  172. package/esm/src/utils/path-utils.d.ts.map +1 -0
  173. package/esm/src/utils/path-utils.js +138 -0
  174. package/esm/src/utils/perf-timer.d.ts +11 -0
  175. package/esm/src/utils/perf-timer.d.ts.map +1 -0
  176. package/esm/src/utils/perf-timer.js +114 -0
  177. package/esm/src/utils/platform.d.ts +9 -0
  178. package/esm/src/utils/platform.d.ts.map +1 -0
  179. package/esm/src/utils/platform.js +11 -0
  180. package/esm/src/utils/runtime-guards.d.ts +29 -0
  181. package/esm/src/utils/runtime-guards.d.ts.map +1 -0
  182. package/esm/src/utils/runtime-guards.js +23 -0
  183. package/esm/src/utils/sleep.d.ts +2 -0
  184. package/esm/src/utils/sleep.d.ts.map +1 -0
  185. package/esm/src/utils/sleep.js +19 -0
  186. package/esm/src/utils/version-constant.d.ts +1 -1
  187. package/esm/src/utils/version-constant.js +1 -1
  188. package/package.json +2 -2
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Utils Constants
3
+ *
4
+ * @module utils/constants
5
+ */
6
+ export { DEFAULT_BUILD_CONCURRENCY, IMAGE_OPTIMIZATION } from "./build.js";
7
+ export { BUFFER_SIZE_16_KB, BUFFER_SIZE_1_KB, BUFFER_SIZE_256_BYTES, BUFFER_SIZE_2_KB, BUFFER_SIZE_32_KB, BUFFER_SIZE_4_KB, BUFFER_SIZE_512_BYTES, BUFFER_SIZE_64_KB, BUFFER_SIZE_8_KB, DEFAULT_MAX_BODY_SIZE_BYTES, DEFAULT_MAX_FILE_SIZE_BYTES, DEFAULT_MAX_HEADER_SIZE_BYTES, DEFAULT_MAX_URL_LENGTH_BYTES, MAX_BUNDLE_CHUNK_SIZE_BYTES, PREFETCH_QUEUE_MAX_SIZE_BYTES, RSC_FILE_READ_BUFFER_SIZE_BYTES, } from "./buffers.js";
8
+ export { BUNDLE_CACHE_TTL_DEVELOPMENT_MS, BUNDLE_CACHE_TTL_PRODUCTION_MS, BUNDLE_MANIFEST_DEV_TTL_MS, BUNDLE_MANIFEST_DISTRIBUTED_TTL_SEC, BUNDLE_MANIFEST_LRU_MAX_ENTRIES, BUNDLE_MANIFEST_PROD_TTL_MS, CACHE_CLEANUP_INTERVAL_MS, CLEANUP_INTERVAL_MULTIPLIER, COMPONENT_LOADER_MAX_ENTRIES, COMPONENT_LOADER_TTL_MS, DATA_FETCHING_MAX_ENTRIES, DATA_FETCHING_TTL_MS, DEFAULT_LRU_MAX_ENTRIES, DENO_KV_SAFE_SIZE_LIMIT_BYTES, DISTRIBUTED_CSS_TTL_PREVIEW_SEC, DISTRIBUTED_CSS_TTL_PRODUCTION_SEC, DISTRIBUTED_FILE_TTL_PREVIEW_SEC, DISTRIBUTED_FILE_TTL_PRODUCTION_SEC, DISTRIBUTED_SSR_MODULE_TTL_PREVIEW_SEC, DISTRIBUTED_SSR_MODULE_TTL_PRODUCTION_SEC, DISTRIBUTED_TRANSFORM_TTL_PREVIEW_SEC, DISTRIBUTED_TRANSFORM_TTL_PRODUCTION_SEC, ESM_CACHE_MAX_ENTRIES, ESM_CACHE_TTL_MS, FILE_CACHE_MAX_ENTRIES, FILE_CACHE_MAX_SIZE_MB, getDistributedCacheTTL, HOURS_PER_DAY, HTTP_CACHE_LONG_MAX_AGE_SEC, HTTP_CACHE_MEDIUM_MAX_AGE_SEC, HTTP_CACHE_SHORT_MAX_AGE_SEC, HTTP_MODULE_CACHE_MAX_ENTRIES, HTTP_MODULE_DISTRIBUTED_TTL_SEC, LRU_DEFAULT_MAX_ENTRIES_V2, LRU_DEFAULT_MAX_SIZE_BYTES, MAX_CONCURRENT_HTTP_FETCHES, MAX_CONCURRENT_REVALIDATIONS, MDX_CACHE_TTL_DEVELOPMENT_MS, MDX_CACHE_TTL_PRODUCTION_MS, MDX_RENDERER_MAX_ENTRIES, MDX_RENDERER_TTL_MS, MEMORY_CACHE_MAX_ENTRIES, MEMORY_CACHE_MAX_SIZE_BYTES, MINUTES_PER_HOUR, MODULE_CACHE_MAX_ENTRIES, MODULE_CACHE_TTL_MS, MS_PER_HOUR, MS_PER_MINUTE, MS_PER_SECOND, ONE_DAY_MS, RENDERER_CORE_MAX_ENTRIES, RENDERER_CORE_TTL_MS, REVALIDATION_PER_PROJECT_LIMIT, REVALIDATION_TIMEOUT_MS, RSC_MANIFEST_CACHE_TTL_MS, SECONDS_PER_MINUTE, SERVER_ACTION_DEFAULT_TTL_SEC, TRANSFORM_DISTRIBUTED_TTL_SEC, TSX_LAYOUT_MAX_ENTRIES, TSX_LAYOUT_PER_PROJECT_MAX_ENTRIES, TSX_LAYOUT_TTL_MS, } from "./cache.js";
9
+ export { DEFAULT_ALLOWED_CDN_HOSTS, DENO_STD_BASE, DENO_STD_VERSION, ESM_CDN_BASE, esmShReact, getDenoStdNodeBase, getReactCDNUrl, getReactDOMCDNUrl, getReactDOMClientCDNUrl, getReactDOMServerCDNUrl, getReactImportMap, getReactJSXDevRuntimeCDNUrl, getReactJSXRuntimeCDNUrl, getReactUrls, getTailwindCSSUrl, JSDELIVR_CDN_BASE, REACT_DEFAULT_VERSION, REACT_VERSION_17, REACT_VERSION_18_2, REACT_VERSION_18_3, REACT_VERSION_19, REACT_VERSION_19_RC, TAILWIND_VERSION, VERYFRONT_VERSION, } from "./cdn.js";
10
+ export { CSP_NONCE_LENGTH_BYTES, FNV1A_PRIME_32, HASH_ALGORITHM_MD5, HASH_ALGORITHM_SHA1, HASH_ALGORITHM_SHA256, MD5_HEX_LENGTH, SHA1_HEX_LENGTH, SHA256_HEX_LENGTH, } from "./crypto.js";
11
+ export { ENV_VARS, isAnyDebugEnabled, isDebugEnabled, isDeepInspectEnabled, isTruthyEnvValue, } from "./env.js";
12
+ export { HASH_SEED_DJB2, HASH_SEED_FNV1A } from "./hash.js";
13
+ export { HMR_CLIENT_RELOAD_DELAY_MS, HMR_CLOSE_MESSAGE_TOO_LARGE, HMR_CLOSE_NORMAL, HMR_CLOSE_RATE_LIMIT, HMR_MAX_MESSAGE_SIZE_BYTES, HMR_MAX_MESSAGES_PER_MINUTE, HMR_MESSAGE_TYPES, HMR_PORT_OFFSET, HMR_RATE_LIMIT_WINDOW_MS, isValidHMRMessageType, } from "./hmr.js";
14
+ export { BREAKPOINT_LG, BREAKPOINT_MD, BREAKPOINT_SM, BREAKPOINT_XL, Z_INDEX_DEV_INDICATOR, Z_INDEX_ERROR_OVERLAY, } from "./html.js";
15
+ export { DASHBOARD_RECONNECT_DELAY_MS, HMR_FILE_WATCHER_DEBOUNCE_MS, HMR_KEEP_ALIVE_INTERVAL_MS, HMR_RECONNECT_DELAY_MS, HMR_RELOAD_DELAY_MS, HTTP_BAD_GATEWAY, HTTP_BAD_REQUEST, HTTP_CONTENT_TYPE_IMAGE_AVIF, HTTP_CONTENT_TYPE_IMAGE_GIF, HTTP_CONTENT_TYPE_IMAGE_ICO, HTTP_CONTENT_TYPE_IMAGE_JPEG, HTTP_CONTENT_TYPE_IMAGE_PNG, HTTP_CONTENT_TYPE_IMAGE_SVG, HTTP_CONTENT_TYPE_IMAGE_WEBP, HTTP_CONTENT_TYPES, HTTP_CREATED, HTTP_FETCH_TIMEOUT_MS, HTTP_FORBIDDEN, HTTP_GATEWAY_TIMEOUT, HTTP_GONE, HTTP_INTERNAL_SERVER_ERROR, HTTP_METHOD_NOT_ALLOWED, HTTP_MODULE_FETCH_TIMEOUT_MS, HTTP_NETWORK_CONNECT_TIMEOUT, HTTP_NO_CONTENT, HTTP_NOT_FOUND, HTTP_NOT_IMPLEMENTED, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_PAYLOAD_TOO_LARGE, HTTP_REDIRECT_FOUND, HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE, HTTP_SERVER_ERROR, HTTP_STATUS_CLIENT_ERROR_MIN, HTTP_STATUS_REDIRECT_MIN, HTTP_STATUS_SERVER_ERROR_MIN, HTTP_STATUS_SUCCESS_MIN, HTTP_TOO_MANY_REQUESTS, HTTP_UNAUTHORIZED, HTTP_UNAVAILABLE, HTTP_URI_TOO_LONG, KB_IN_BYTES, PREFETCH_DEFAULT_DELAY_MS, PREFETCH_DEFAULT_TIMEOUT_MS, PREFETCH_MAX_SIZE_BYTES, SERVER_FUNCTION_DEFAULT_TIMEOUT_MS, } from "./http.js";
16
+ export { API_ROUTE_CACHE_MAX_ENTRIES, CACHE_MAX_ENTRIES_LARGE, CACHE_MAX_ENTRIES_MEDIUM, CACHE_MAX_ENTRIES_SMALL, CACHE_MAX_ENTRIES_XLARGE, CODE_PREVIEW_MAX_LENGTH_CHARS, HANDLER_CACHE_MAX_ENTRIES, LOG_PREVIEW_MAX_LENGTH_CHARS, LOG_PREVIEW_SHORT_LENGTH_CHARS, MAX_BATCH_SIZE, MAX_EVENTS_PER_SPAN, MAX_LINKS_PER_SPAN, MAX_PATH_LENGTH_CHARS, MAX_PORT_NUMBER, MAX_SERVER_ACTION_ARGS, MAX_SPAN_NAME_LENGTH, MAX_STACK_TRACE_LINES, MAX_STRING_DISPLAY_LENGTH, MAX_TEST_ITERATIONS, MAX_TRACE_ATTRIBUTE_VALUE_SIZE, MAX_URL_LENGTH_FOR_VALIDATION, MIN_PORT_NUMBER, } from "./limits.js";
17
+ export { CACHE_METRICS_SAMPLE_SIZE, DEFAULT_METRICS_COLLECTION_INTERVAL_MS, DEFAULT_RATE_LIMIT_REQUESTS, DEFAULT_RATE_LIMIT_WINDOW_MS, HTTP_REQUEST_DURATION_BOUNDARIES_MS, RSC_STREAM_DURATION_BOUNDARIES_MS, SSR_RENDER_TIME_BOUNDARIES_MS, } from "./metrics.js";
18
+ export { BYTES_PER_KB, BYTES_PER_MB, DEFAULT_API_SERVER_PORT, DEFAULT_DEV_SERVER_PORT, DEFAULT_IMAGE_LARGE_SIZE, DEFAULT_IMAGE_SMALL_SIZE, DEFAULT_IMAGE_THUMBNAIL_SIZE, DEFAULT_METRICS_PORT, DEFAULT_PREVIEW_SERVER_PORT, DEFAULT_REDIS_PORT, DEFAULT_SERVER_PORT, MAX_CHUNK_SIZE_KB, MAX_PORT, MIN_PORT, RESPONSIVE_IMAGE_WIDTH_LG, RESPONSIVE_IMAGE_WIDTH_MD, RESPONSIVE_IMAGE_WIDTH_SM, RESPONSIVE_IMAGE_WIDTH_XS, RESPONSIVE_IMAGE_WIDTHS, } from "./network.js";
19
+ export { HANDLER_PRIORITIES, PRIORITY_CRITICAL, PRIORITY_FALLBACK, PRIORITY_HIGH, PRIORITY_HIGH_CLIENT_LOG, PRIORITY_HIGH_DEV, PRIORITY_LOW, PRIORITY_MEDIUM, PRIORITY_MEDIUM_API, PRIORITY_MEDIUM_DEV_FILES, PRIORITY_MEDIUM_LIB_MODULES, PRIORITY_MEDIUM_STATIC, PRIORITY_VERY_HIGH, } from "./priorities.js";
20
+ export { API_RETRY_INITIAL_DELAY_MS, API_RETRY_MAX_ATTEMPTS, API_RETRY_MAX_DELAY_MS, DEFAULT_RETRY_BACKOFF_MULTIPLIER, DEFAULT_RETRY_INITIAL_DELAY_MS, DEFAULT_RETRY_MAX_ATTEMPTS, DEFAULT_RETRY_MAX_DELAY_MS, FS_RETRY_INITIAL_DELAY_MS, FS_RETRY_MAX_ATTEMPTS, FS_RETRY_MAX_DELAY_MS, WS_RECONNECT_INITIAL_DELAY_MS, WS_RECONNECT_MAX_ATTEMPTS, WS_RECONNECT_MAX_DELAY_MS, } from "./retry.js";
21
+ export { ABSOLUTE_PATH_PATTERN, DEFAULT_MAX_STRING_LENGTH, DIRECTORY_TRAVERSAL_PATTERN, FORBIDDEN_PATH_PATTERNS, MAX_PATH_LENGTH, MAX_PATH_TRAVERSAL_DEPTH, } from "./security.js";
22
+ export { BUILD_DIRS, DEFAULT_CACHE_DIR, DEFAULT_DASHBOARD_PORT, DEFAULT_PORT, DEV_SERVER_ENDPOINTS, INTERNAL_ENDPOINTS, INTERNAL_PATH_PREFIXES, INTERNAL_PREFIX, isInternalEndpoint, isStaticAsset, normalizeChunkPath, PROJECT_DIRS, } from "./server.js";
@@ -0,0 +1,27 @@
1
+ /******** Display limits ********/
2
+ export declare const MAX_STRING_DISPLAY_LENGTH = 1000;
3
+ export declare const LOG_PREVIEW_MAX_LENGTH_CHARS = 500;
4
+ export declare const LOG_PREVIEW_SHORT_LENGTH_CHARS = 100;
5
+ export declare const CODE_PREVIEW_MAX_LENGTH_CHARS = 200;
6
+ export declare const MAX_STACK_TRACE_LINES = 100;
7
+ /******** Trace limits ********/
8
+ export declare const MAX_SPAN_NAME_LENGTH = 1000;
9
+ export declare const MAX_TRACE_ATTRIBUTE_VALUE_SIZE = 10000;
10
+ export declare const MAX_EVENTS_PER_SPAN = 100;
11
+ export declare const MAX_LINKS_PER_SPAN = 100;
12
+ export declare const MAX_SERVER_ACTION_ARGS = 50;
13
+ export declare const MAX_TEST_ITERATIONS = 100;
14
+ /******** Cache size limits ********/
15
+ export declare const CACHE_MAX_ENTRIES_SMALL = 50;
16
+ export declare const CACHE_MAX_ENTRIES_MEDIUM = 200;
17
+ export declare const CACHE_MAX_ENTRIES_LARGE = 500;
18
+ export declare const CACHE_MAX_ENTRIES_XLARGE = 1000;
19
+ export declare const API_ROUTE_CACHE_MAX_ENTRIES = 500;
20
+ export declare const HANDLER_CACHE_MAX_ENTRIES = 256;
21
+ export declare const MAX_PATH_LENGTH_CHARS = 4096;
22
+ export declare const MAX_PORT_NUMBER = 65535;
23
+ export declare const MIN_PORT_NUMBER = 1;
24
+ export declare const MAX_URL_LENGTH_FOR_VALIDATION = 2048;
25
+ /******** Batch limits ********/
26
+ export declare const MAX_BATCH_SIZE = 100;
27
+ //# sourceMappingURL=limits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/limits.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAC9C,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAClD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,gCAAgC;AAChC,eAAO,MAAM,oBAAoB,OAAO,CAAC;AACzC,eAAO,MAAM,8BAA8B,QAAQ,CAAC;AACpD,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,qCAAqC;AACrC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAC7C,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAElD,gCAAgC;AAChC,eAAO,MAAM,cAAc,MAAM,CAAC"}
@@ -0,0 +1,26 @@
1
+ /******** Display limits ********/
2
+ export const MAX_STRING_DISPLAY_LENGTH = 1000;
3
+ export const LOG_PREVIEW_MAX_LENGTH_CHARS = 500;
4
+ export const LOG_PREVIEW_SHORT_LENGTH_CHARS = 100;
5
+ export const CODE_PREVIEW_MAX_LENGTH_CHARS = 200;
6
+ export const MAX_STACK_TRACE_LINES = 100;
7
+ /******** Trace limits ********/
8
+ export const MAX_SPAN_NAME_LENGTH = 1000;
9
+ export const MAX_TRACE_ATTRIBUTE_VALUE_SIZE = 10000;
10
+ export const MAX_EVENTS_PER_SPAN = 100;
11
+ export const MAX_LINKS_PER_SPAN = 100;
12
+ export const MAX_SERVER_ACTION_ARGS = 50;
13
+ export const MAX_TEST_ITERATIONS = 100;
14
+ /******** Cache size limits ********/
15
+ export const CACHE_MAX_ENTRIES_SMALL = 50;
16
+ export const CACHE_MAX_ENTRIES_MEDIUM = 200;
17
+ export const CACHE_MAX_ENTRIES_LARGE = 500;
18
+ export const CACHE_MAX_ENTRIES_XLARGE = 1000;
19
+ export const API_ROUTE_CACHE_MAX_ENTRIES = 500;
20
+ export const HANDLER_CACHE_MAX_ENTRIES = 256;
21
+ export const MAX_PATH_LENGTH_CHARS = 4096;
22
+ export const MAX_PORT_NUMBER = 65535;
23
+ export const MIN_PORT_NUMBER = 1;
24
+ export const MAX_URL_LENGTH_FOR_VALIDATION = 2048;
25
+ /******** Batch limits ********/
26
+ export const MAX_BATCH_SIZE = 100;
@@ -0,0 +1,10 @@
1
+ /********** SSR render time histogram boundaries (ms) **********/
2
+ export declare const SSR_RENDER_TIME_BOUNDARIES_MS: number[];
3
+ export declare const HTTP_REQUEST_DURATION_BOUNDARIES_MS: number[];
4
+ /********** RSC stream duration boundaries (ms) **********/
5
+ export declare const RSC_STREAM_DURATION_BOUNDARIES_MS: number[];
6
+ export declare const DEFAULT_METRICS_COLLECTION_INTERVAL_MS = 60000;
7
+ export declare const DEFAULT_RATE_LIMIT_REQUESTS = 100;
8
+ export declare const DEFAULT_RATE_LIMIT_WINDOW_MS = 60000;
9
+ export declare const CACHE_METRICS_SAMPLE_SIZE = 100;
10
+ //# sourceMappingURL=metrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/metrics.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,eAAO,MAAM,6BAA6B,UAezC,CAAC;AAEF,eAAO,MAAM,mCAAmC,UAAgC,CAAC;AAEjF,2DAA2D;AAC3D,eAAO,MAAM,iCAAiC,UAU7C,CAAC;AAEF,eAAO,MAAM,sCAAsC,QAAQ,CAAC;AAE5D,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,4BAA4B,QAAQ,CAAC;AAElD,eAAO,MAAM,yBAAyB,MAAM,CAAC"}
@@ -0,0 +1,34 @@
1
+ /********** SSR render time histogram boundaries (ms) **********/
2
+ export const SSR_RENDER_TIME_BOUNDARIES_MS = [
3
+ 5,
4
+ 10,
5
+ 25,
6
+ 50,
7
+ 75,
8
+ 100,
9
+ 250,
10
+ 500,
11
+ 750,
12
+ 1000,
13
+ 2500,
14
+ 5000,
15
+ 7500,
16
+ 10000,
17
+ ];
18
+ export const HTTP_REQUEST_DURATION_BOUNDARIES_MS = SSR_RENDER_TIME_BOUNDARIES_MS;
19
+ /********** RSC stream duration boundaries (ms) **********/
20
+ export const RSC_STREAM_DURATION_BOUNDARIES_MS = [
21
+ 10,
22
+ 25,
23
+ 50,
24
+ 100,
25
+ 200,
26
+ 500,
27
+ 1000,
28
+ 2000,
29
+ 5000,
30
+ ];
31
+ export const DEFAULT_METRICS_COLLECTION_INTERVAL_MS = 60000;
32
+ export const DEFAULT_RATE_LIMIT_REQUESTS = 100;
33
+ export const DEFAULT_RATE_LIMIT_WINDOW_MS = 60000;
34
+ export const CACHE_METRICS_SAMPLE_SIZE = 100;
@@ -0,0 +1,23 @@
1
+ export declare const DEFAULT_DEV_SERVER_PORT = 3000;
2
+ export declare const DEFAULT_REDIS_PORT = 6379;
3
+ export declare const DEFAULT_API_SERVER_PORT = 8080;
4
+ export declare const DEFAULT_PREVIEW_SERVER_PORT = 5000;
5
+ export declare const DEFAULT_METRICS_PORT = 9000;
6
+ /** Shared bytes per kb value. */
7
+ export declare const BYTES_PER_KB = 1024;
8
+ export declare const BYTES_PER_MB: number;
9
+ export declare const DEFAULT_IMAGE_THUMBNAIL_SIZE = 256;
10
+ export declare const DEFAULT_IMAGE_SMALL_SIZE = 512;
11
+ export declare const DEFAULT_IMAGE_LARGE_SIZE = 2048;
12
+ export declare const RESPONSIVE_IMAGE_WIDTH_XS = 320;
13
+ export declare const RESPONSIVE_IMAGE_WIDTH_SM = 640;
14
+ export declare const RESPONSIVE_IMAGE_WIDTH_MD = 1024;
15
+ /** Shared responsive image width lg value. */
16
+ export declare const RESPONSIVE_IMAGE_WIDTH_LG = 1920;
17
+ /** Shared responsive image widths value. */
18
+ export declare const RESPONSIVE_IMAGE_WIDTHS: readonly [320, 640, 1024, 1920];
19
+ export declare const MAX_CHUNK_SIZE_KB = 4096;
20
+ export declare const MIN_PORT = 1;
21
+ export declare const MAX_PORT = 65535;
22
+ export declare const DEFAULT_SERVER_PORT = 8000;
23
+ //# sourceMappingURL=network.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/network.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAC5C,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAC5C,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAChD,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,iCAAiC;AACjC,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,YAAY,QAA8B,CAAC;AAExD,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAE7C,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAC9C,8CAA8C;AAC9C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAE9C,4CAA4C;AAC5C,eAAO,MAAM,uBAAuB,iCAK1B,CAAC;AAEX,eAAO,MAAM,iBAAiB,OAAO,CAAC;AAEtC,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B,eAAO,MAAM,QAAQ,QAAQ,CAAC;AAE9B,eAAO,MAAM,mBAAmB,OAAO,CAAC"}
@@ -0,0 +1,27 @@
1
+ export const DEFAULT_DEV_SERVER_PORT = 3000;
2
+ export const DEFAULT_REDIS_PORT = 6379;
3
+ export const DEFAULT_API_SERVER_PORT = 8080;
4
+ export const DEFAULT_PREVIEW_SERVER_PORT = 5000;
5
+ export const DEFAULT_METRICS_PORT = 9000;
6
+ /** Shared bytes per kb value. */
7
+ export const BYTES_PER_KB = 1024;
8
+ export const BYTES_PER_MB = BYTES_PER_KB * BYTES_PER_KB;
9
+ export const DEFAULT_IMAGE_THUMBNAIL_SIZE = 256;
10
+ export const DEFAULT_IMAGE_SMALL_SIZE = 512;
11
+ export const DEFAULT_IMAGE_LARGE_SIZE = 2048;
12
+ export const RESPONSIVE_IMAGE_WIDTH_XS = 320;
13
+ export const RESPONSIVE_IMAGE_WIDTH_SM = 640;
14
+ export const RESPONSIVE_IMAGE_WIDTH_MD = 1024;
15
+ /** Shared responsive image width lg value. */
16
+ export const RESPONSIVE_IMAGE_WIDTH_LG = 1920;
17
+ /** Shared responsive image widths value. */
18
+ export const RESPONSIVE_IMAGE_WIDTHS = [
19
+ RESPONSIVE_IMAGE_WIDTH_XS,
20
+ RESPONSIVE_IMAGE_WIDTH_SM,
21
+ RESPONSIVE_IMAGE_WIDTH_MD,
22
+ RESPONSIVE_IMAGE_WIDTH_LG,
23
+ ];
24
+ export const MAX_CHUNK_SIZE_KB = 4096;
25
+ export const MIN_PORT = 1;
26
+ export const MAX_PORT = 65535;
27
+ export const DEFAULT_SERVER_PORT = 8000;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Handler priority constants - lower numbers run first.
3
+ * CRITICAL(0) -> VERY_HIGH(50) -> HIGH(100-300) -> MEDIUM(400-700) -> LOW(1000) -> FALLBACK(10000)
4
+ */
5
+ export declare const PRIORITY_CRITICAL = 0;
6
+ export declare const PRIORITY_VERY_HIGH = 50;
7
+ export declare const PRIORITY_HIGH = 100;
8
+ export declare const PRIORITY_HIGH_CLIENT_LOG = 200;
9
+ export declare const PRIORITY_HIGH_DEV = 300;
10
+ export declare const PRIORITY_MEDIUM_DEV_FILES = 400;
11
+ export declare const PRIORITY_MEDIUM_STATIC = 500;
12
+ export declare const PRIORITY_MEDIUM_LIB_MODULES = 550;
13
+ export declare const PRIORITY_MEDIUM = 600;
14
+ export declare const PRIORITY_MEDIUM_API = 700;
15
+ export declare const PRIORITY_LOW = 1000;
16
+ export declare const PRIORITY_FALLBACK = 10000;
17
+ export declare const HANDLER_PRIORITIES: {
18
+ readonly CRITICAL: 0;
19
+ readonly VERY_HIGH: 50;
20
+ readonly HIGH: 100;
21
+ readonly HIGH_CLIENT_LOG: 200;
22
+ readonly HIGH_DEV: 300;
23
+ readonly MEDIUM_DEV_FILES: 400;
24
+ readonly MEDIUM_STATIC: 500;
25
+ readonly MEDIUM_LIB_MODULES: 550;
26
+ readonly MEDIUM: 600;
27
+ readonly MEDIUM_API: 700;
28
+ readonly LOW: 1000;
29
+ readonly FALLBACK: 10000;
30
+ };
31
+ //# sourceMappingURL=priorities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priorities.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/priorities.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AAEvC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAarB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Handler priority constants - lower numbers run first.
3
+ * CRITICAL(0) -> VERY_HIGH(50) -> HIGH(100-300) -> MEDIUM(400-700) -> LOW(1000) -> FALLBACK(10000)
4
+ */
5
+ export const PRIORITY_CRITICAL = 0;
6
+ export const PRIORITY_VERY_HIGH = 50;
7
+ export const PRIORITY_HIGH = 100;
8
+ export const PRIORITY_HIGH_CLIENT_LOG = 200;
9
+ export const PRIORITY_HIGH_DEV = 300;
10
+ export const PRIORITY_MEDIUM_DEV_FILES = 400;
11
+ export const PRIORITY_MEDIUM_STATIC = 500;
12
+ export const PRIORITY_MEDIUM_LIB_MODULES = 550;
13
+ export const PRIORITY_MEDIUM = 600;
14
+ export const PRIORITY_MEDIUM_API = 700;
15
+ export const PRIORITY_LOW = 1000;
16
+ export const PRIORITY_FALLBACK = 10000;
17
+ export const HANDLER_PRIORITIES = {
18
+ CRITICAL: PRIORITY_CRITICAL,
19
+ VERY_HIGH: PRIORITY_VERY_HIGH,
20
+ HIGH: PRIORITY_HIGH,
21
+ HIGH_CLIENT_LOG: PRIORITY_HIGH_CLIENT_LOG,
22
+ HIGH_DEV: PRIORITY_HIGH_DEV,
23
+ MEDIUM_DEV_FILES: PRIORITY_MEDIUM_DEV_FILES,
24
+ MEDIUM_STATIC: PRIORITY_MEDIUM_STATIC,
25
+ MEDIUM_LIB_MODULES: PRIORITY_MEDIUM_LIB_MODULES,
26
+ MEDIUM: PRIORITY_MEDIUM,
27
+ MEDIUM_API: PRIORITY_MEDIUM_API,
28
+ LOW: PRIORITY_LOW,
29
+ FALLBACK: PRIORITY_FALLBACK,
30
+ };
@@ -0,0 +1,14 @@
1
+ export declare const DEFAULT_RETRY_MAX_ATTEMPTS = 3;
2
+ export declare const DEFAULT_RETRY_INITIAL_DELAY_MS = 100;
3
+ export declare const DEFAULT_RETRY_MAX_DELAY_MS = 5000;
4
+ export declare const DEFAULT_RETRY_BACKOFF_MULTIPLIER = 2;
5
+ export declare const API_RETRY_MAX_ATTEMPTS = 3;
6
+ export declare const API_RETRY_INITIAL_DELAY_MS = 1000;
7
+ export declare const API_RETRY_MAX_DELAY_MS = 10000;
8
+ export declare const FS_RETRY_MAX_ATTEMPTS = 3;
9
+ export declare const FS_RETRY_INITIAL_DELAY_MS = 1000;
10
+ export declare const FS_RETRY_MAX_DELAY_MS = 10000;
11
+ export declare const WS_RECONNECT_MAX_ATTEMPTS = 5;
12
+ export declare const WS_RECONNECT_INITIAL_DELAY_MS = 1000;
13
+ export declare const WS_RECONNECT_MAX_DELAY_MS = 30000;
14
+ //# sourceMappingURL=retry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/retry.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAC5C,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAClD,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAC9C,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAE3C,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAC3C,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAClD,eAAO,MAAM,yBAAyB,QAAQ,CAAC"}
@@ -0,0 +1,13 @@
1
+ export const DEFAULT_RETRY_MAX_ATTEMPTS = 3;
2
+ export const DEFAULT_RETRY_INITIAL_DELAY_MS = 100;
3
+ export const DEFAULT_RETRY_MAX_DELAY_MS = 5000;
4
+ export const DEFAULT_RETRY_BACKOFF_MULTIPLIER = 2;
5
+ export const API_RETRY_MAX_ATTEMPTS = 3;
6
+ export const API_RETRY_INITIAL_DELAY_MS = 1000;
7
+ export const API_RETRY_MAX_DELAY_MS = 10000;
8
+ export const FS_RETRY_MAX_ATTEMPTS = 3;
9
+ export const FS_RETRY_INITIAL_DELAY_MS = 1000;
10
+ export const FS_RETRY_MAX_DELAY_MS = 10000;
11
+ export const WS_RECONNECT_MAX_ATTEMPTS = 5;
12
+ export const WS_RECONNECT_INITIAL_DELAY_MS = 1000;
13
+ export const WS_RECONNECT_MAX_DELAY_MS = 30000;
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Centralized server endpoints and paths registry
3
+ *
4
+ * All internal veryfront URLs should be defined here as the single source of truth.
5
+ * This prevents hardcoding URLs across the codebase and makes refactoring easier.
6
+ */
7
+ export { DEFAULT_PORT } from "../../config/defaults.js";
8
+ /** Default port for development dashboard (matches veryfront.config.ts default) */
9
+ export declare const DEFAULT_DASHBOARD_PORT = 3001;
10
+ /** Internal URL prefix for all veryfront endpoints */
11
+ export declare const INTERNAL_PREFIX = "/_veryfront";
12
+ /**
13
+ * All internal veryfront URL path prefixes (directories)
14
+ */
15
+ export declare const INTERNAL_PATH_PREFIXES: {
16
+ /** React Server Components endpoints */
17
+ readonly RSC: "/_veryfront/rsc/";
18
+ /** File system access endpoints (base64 encoded paths) */
19
+ readonly FS: "/_veryfront/fs/";
20
+ /** Virtual module system */
21
+ readonly MODULES: "/_veryfront/modules/";
22
+ /** Generated page modules */
23
+ readonly PAGES: "/_veryfront/pages/";
24
+ /** Data JSON endpoints */
25
+ readonly DATA: "/_veryfront/data/";
26
+ /** Library modules and large vendor surfaces */
27
+ readonly LIB: "/_veryfront/lib/";
28
+ /** Chunk assets */
29
+ readonly CHUNKS: "/_veryfront/chunks/";
30
+ /** Client component modules */
31
+ readonly CLIENT: "/_veryfront/client/";
32
+ };
33
+ /**
34
+ * Specific internal endpoint URLs
35
+ */
36
+ export declare const INTERNAL_ENDPOINTS: {
37
+ readonly HMR_RUNTIME: "/_veryfront/hmr-runtime.js";
38
+ readonly HMR: "/_veryfront/hmr.js";
39
+ readonly ERROR_OVERLAY: "/_veryfront/error-overlay.js";
40
+ readonly DEV_LOADER: "/_veryfront/dev-loader.js";
41
+ readonly CLIENT_LOG: "/_veryfront/log";
42
+ readonly CLIENT_JS: "/_veryfront/client.js";
43
+ readonly ROUTER_JS: "/_veryfront/router.js";
44
+ readonly PREFETCH_JS: "/_veryfront/prefetch.js";
45
+ readonly MANIFEST_JSON: "/_veryfront/manifest.json";
46
+ readonly APP_JS: "/_veryfront/app.js";
47
+ readonly RSC_CLIENT: "/_veryfront/rsc/client.js";
48
+ readonly RSC_MANIFEST: "/_veryfront/rsc/manifest";
49
+ readonly RSC_STREAM: "/_veryfront/rsc/stream";
50
+ readonly RSC_PAYLOAD: "/_veryfront/rsc/payload";
51
+ readonly RSC_RENDER: "/_veryfront/rsc/render";
52
+ readonly RSC_PAGE: "/_veryfront/rsc/page";
53
+ readonly RSC_MODULE: "/_veryfront/rsc/module";
54
+ readonly RSC_DOM: "/_veryfront/rsc/dom.js";
55
+ readonly LIB_CHAT_REACT: "/_veryfront/lib/chat/react.js";
56
+ readonly LIB_CHAT_COMPONENTS: "/_veryfront/lib/chat/components.js";
57
+ readonly LIB_CHAT_PRIMITIVES: "/_veryfront/lib/chat/primitives.js";
58
+ };
59
+ /**
60
+ * Build output directory paths (relative)
61
+ */
62
+ export declare const BUILD_DIRS: {
63
+ /** Main build output directory */
64
+ readonly ROOT: "_veryfront";
65
+ /** Chunks directory */
66
+ readonly CHUNKS: "_veryfront/chunks";
67
+ /** Data directory */
68
+ readonly DATA: "_veryfront/data";
69
+ /** Assets directory */
70
+ readonly ASSETS: "_veryfront/assets";
71
+ };
72
+ /**
73
+ * Local project directory paths (relative to project root)
74
+ * These are .gitignore'd directories for caching and temporary files
75
+ */
76
+ export declare const PROJECT_DIRS: {
77
+ /** Base veryfront internal directory */
78
+ readonly ROOT: ".veryfront";
79
+ /** Cache directory for build artifacts, transforms, etc. */
80
+ readonly CACHE: ".veryfront/cache";
81
+ /** KV store directory */
82
+ readonly KV: ".veryfront/kv";
83
+ /** Log files directory */
84
+ readonly LOGS: ".veryfront/logs";
85
+ /** Temporary files directory */
86
+ readonly TMP: ".veryfront/tmp";
87
+ };
88
+ /** Default cache directory path */
89
+ export declare const DEFAULT_CACHE_DIR: ".veryfront/cache";
90
+ /**
91
+ * Helper to check if a pathname is an internal veryfront endpoint
92
+ */
93
+ export declare function isInternalEndpoint(pathname: string): boolean;
94
+ /**
95
+ * Helper to check if a pathname is a static asset (has extension or is internal)
96
+ */
97
+ export declare function isStaticAsset(pathname: string): boolean;
98
+ /**
99
+ * Normalize a chunk path to include the base prefix
100
+ */
101
+ export declare function normalizeChunkPath(filename: string, basePath?: string): string;
102
+ /** Shared dev server endpoints value. */
103
+ export declare const DEV_SERVER_ENDPOINTS: {
104
+ readonly HMR_RUNTIME: "/_veryfront/hmr-runtime.js";
105
+ readonly ERROR_OVERLAY: "/_veryfront/error-overlay.js";
106
+ };
107
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,sDAAsD;AACtD,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,sBAAsB;IACjC,wCAAwC;;IAExC,0DAA0D;;IAE1D,4BAA4B;;IAE5B,6BAA6B;;IAE7B,0BAA0B;;IAE1B,gDAAgD;;IAEhD,mBAAmB;;IAEnB,+BAA+B;;CAEvB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;CA8BrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU;IACrB,kCAAkC;;IAElC,uBAAuB;;IAEvB,qBAAqB;;IAErB,uBAAuB;;CAEf,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,YAAY;IACvB,wCAAwC;;IAExC,4DAA4D;;IAE5D,yBAAyB;;IAEzB,0BAA0B;;IAE1B,gCAAgC;;CAExB,CAAC;AAEX,mCAAmC;AACnC,eAAO,MAAM,iBAAiB,oBAAqB,CAAC;AAEpD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,QAAQ,GAAE,MAAsC,GAC/C,MAAM,CAIR;AAGD,yCAAyC;AACzC,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC"}
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Centralized server endpoints and paths registry
3
+ *
4
+ * All internal veryfront URLs should be defined here as the single source of truth.
5
+ * This prevents hardcoding URLs across the codebase and makes refactoring easier.
6
+ */
7
+ export { DEFAULT_PORT } from "../../config/defaults.js";
8
+ /** Default port for development dashboard (matches veryfront.config.ts default) */
9
+ export const DEFAULT_DASHBOARD_PORT = 3001;
10
+ /** Internal URL prefix for all veryfront endpoints */
11
+ export const INTERNAL_PREFIX = "/_veryfront";
12
+ /**
13
+ * All internal veryfront URL path prefixes (directories)
14
+ */
15
+ export const INTERNAL_PATH_PREFIXES = {
16
+ /** React Server Components endpoints */
17
+ RSC: `${INTERNAL_PREFIX}/rsc/`,
18
+ /** File system access endpoints (base64 encoded paths) */
19
+ FS: `${INTERNAL_PREFIX}/fs/`,
20
+ /** Virtual module system */
21
+ MODULES: `${INTERNAL_PREFIX}/modules/`,
22
+ /** Generated page modules */
23
+ PAGES: `${INTERNAL_PREFIX}/pages/`,
24
+ /** Data JSON endpoints */
25
+ DATA: `${INTERNAL_PREFIX}/data/`,
26
+ /** Library modules and large vendor surfaces */
27
+ LIB: `${INTERNAL_PREFIX}/lib/`,
28
+ /** Chunk assets */
29
+ CHUNKS: `${INTERNAL_PREFIX}/chunks/`,
30
+ /** Client component modules */
31
+ CLIENT: `${INTERNAL_PREFIX}/client/`,
32
+ };
33
+ /**
34
+ * Specific internal endpoint URLs
35
+ */
36
+ export const INTERNAL_ENDPOINTS = {
37
+ // Development endpoints
38
+ HMR_RUNTIME: `${INTERNAL_PREFIX}/hmr-runtime.js`,
39
+ HMR: `${INTERNAL_PREFIX}/hmr.js`,
40
+ ERROR_OVERLAY: `${INTERNAL_PREFIX}/error-overlay.js`,
41
+ // Legacy endpoint retained for backward compatibility (no active handler).
42
+ DEV_LOADER: `${INTERNAL_PREFIX}/dev-loader.js`,
43
+ CLIENT_LOG: `${INTERNAL_PREFIX}/log`,
44
+ // Production endpoints
45
+ CLIENT_JS: `${INTERNAL_PREFIX}/client.js`,
46
+ ROUTER_JS: `${INTERNAL_PREFIX}/router.js`,
47
+ PREFETCH_JS: `${INTERNAL_PREFIX}/prefetch.js`,
48
+ MANIFEST_JSON: `${INTERNAL_PREFIX}/manifest.json`,
49
+ APP_JS: `${INTERNAL_PREFIX}/app.js`,
50
+ // RSC endpoints
51
+ RSC_CLIENT: `${INTERNAL_PREFIX}/rsc/client.js`,
52
+ RSC_MANIFEST: `${INTERNAL_PREFIX}/rsc/manifest`,
53
+ RSC_STREAM: `${INTERNAL_PREFIX}/rsc/stream`,
54
+ RSC_PAYLOAD: `${INTERNAL_PREFIX}/rsc/payload`,
55
+ RSC_RENDER: `${INTERNAL_PREFIX}/rsc/render`,
56
+ RSC_PAGE: `${INTERNAL_PREFIX}/rsc/page`,
57
+ RSC_MODULE: `${INTERNAL_PREFIX}/rsc/module`,
58
+ RSC_DOM: `${INTERNAL_PREFIX}/rsc/dom.js`,
59
+ // Library module endpoints
60
+ LIB_CHAT_REACT: `${INTERNAL_PREFIX}/lib/chat/react.js`,
61
+ LIB_CHAT_COMPONENTS: `${INTERNAL_PREFIX}/lib/chat/components.js`,
62
+ LIB_CHAT_PRIMITIVES: `${INTERNAL_PREFIX}/lib/chat/primitives.js`,
63
+ };
64
+ /**
65
+ * Build output directory paths (relative)
66
+ */
67
+ export const BUILD_DIRS = {
68
+ /** Main build output directory */
69
+ ROOT: "_veryfront",
70
+ /** Chunks directory */
71
+ CHUNKS: "_veryfront/chunks",
72
+ /** Data directory */
73
+ DATA: "_veryfront/data",
74
+ /** Assets directory */
75
+ ASSETS: "_veryfront/assets",
76
+ };
77
+ /**
78
+ * Local project directory paths (relative to project root)
79
+ * These are .gitignore'd directories for caching and temporary files
80
+ */
81
+ export const PROJECT_DIRS = {
82
+ /** Base veryfront internal directory */
83
+ ROOT: ".veryfront",
84
+ /** Cache directory for build artifacts, transforms, etc. */
85
+ CACHE: ".veryfront/cache",
86
+ /** KV store directory */
87
+ KV: ".veryfront/kv",
88
+ /** Log files directory */
89
+ LOGS: ".veryfront/logs",
90
+ /** Temporary files directory */
91
+ TMP: ".veryfront/tmp",
92
+ };
93
+ /** Default cache directory path */
94
+ export const DEFAULT_CACHE_DIR = PROJECT_DIRS.CACHE;
95
+ /**
96
+ * Helper to check if a pathname is an internal veryfront endpoint
97
+ */
98
+ export function isInternalEndpoint(pathname) {
99
+ return pathname.startsWith(`${INTERNAL_PREFIX}/`);
100
+ }
101
+ /**
102
+ * Helper to check if a pathname is a static asset (has extension or is internal)
103
+ */
104
+ export function isStaticAsset(pathname) {
105
+ return pathname.includes(".") || isInternalEndpoint(pathname);
106
+ }
107
+ /**
108
+ * Normalize a chunk path to include the base prefix
109
+ */
110
+ export function normalizeChunkPath(filename, basePath = INTERNAL_PATH_PREFIXES.CHUNKS) {
111
+ if (filename.startsWith("/"))
112
+ return filename;
113
+ return `${basePath.replace(/\/$/, "")}/${filename}`;
114
+ }
115
+ // Re-export for backward compatibility
116
+ /** Shared dev server endpoints value. */
117
+ export const DEV_SERVER_ENDPOINTS = {
118
+ HMR_RUNTIME: INTERNAL_ENDPOINTS.HMR_RUNTIME,
119
+ ERROR_OVERLAY: INTERNAL_ENDPOINTS.ERROR_OVERLAY,
120
+ };
@@ -0,0 +1,7 @@
1
+ /** Check whether RSC is enabled. */
2
+ export declare function isRSCEnabled(config?: {
3
+ experimental?: {
4
+ rsc?: boolean;
5
+ };
6
+ }): boolean;
7
+ //# sourceMappingURL=feature-flags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../src/src/utils/feature-flags.ts"],"names":[],"mappings":"AAEA,oCAAoC;AACpC,wBAAgB,YAAY,CAC1B,MAAM,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE,GAC5C,OAAO,CAKT"}
@@ -0,0 +1,8 @@
1
+ import { getEnv } from "../platform/compat/process.js";
2
+ /** Check whether RSC is enabled. */
3
+ export function isRSCEnabled(config) {
4
+ const rsc = config?.experimental?.rsc;
5
+ if (rsc != null)
6
+ return rsc;
7
+ return getEnv("VERYFRONT_EXPERIMENTAL_RSC") === "1";
8
+ }
@@ -0,0 +1,22 @@
1
+ import * as dntShim from "../../_dnt.shims.js";
2
+ /** Compute the lowercase hex SHA-256 digest of a UTF-8 string. */
3
+ export declare function computeHash(content: string): Promise<string>;
4
+ /** Compute the lowercase hex SHA-256 digest of raw bytes. */
5
+ export declare function computeHashBytes(bytes: dntShim.BufferSource): Promise<string>;
6
+ /** Source bundle content used for hash computation. */
7
+ export interface BundleCode {
8
+ code: string;
9
+ css?: string;
10
+ sourceMap?: string;
11
+ }
12
+ /** Compute code hash. */
13
+ export declare function computeCodeHash(code: BundleCode): Promise<string>;
14
+ /** Create simple hash. */
15
+ export declare function simpleHash(str: string): number;
16
+ /** Hash string to hex (base 16) - used for module filenames */
17
+ export declare function hashCodeHex(str: string): string;
18
+ /** Create short hash. */
19
+ export declare function shortHash(content: string): Promise<string>;
20
+ /** FNV-1a hash for strings - returns hex string */
21
+ export declare function fnv1aHash(input: string): string;
22
+ //# sourceMappingURL=hash-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash-utils.d.ts","sourceRoot":"","sources":["../../../src/src/utils/hash-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAW/C,kEAAkE;AAClE,wBAAsB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGlE;AAED,6DAA6D;AAC7D,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAEnF;AACD,uDAAuD;AACvD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yBAAyB;AACzB,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAEjE;AAED,0BAA0B;AAC1B,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAS9C;AAED,+DAA+D;AAC/D,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED,yBAAyB;AACzB,wBAAsB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGhE;AAED,mDAAmD;AACnD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAS/C"}
@@ -0,0 +1,48 @@
1
+ import * as dntShim from "../../_dnt.shims.js";
2
+ import { FNV1A_PRIME_32 } from "./constants/crypto.js";
3
+ import { HASH_SEED_FNV1A } from "./constants/hash.js";
4
+ /** Number of hex characters kept by shortHash (8 hex chars = 32 bits) */
5
+ const SHORT_HASH_LENGTH = 8;
6
+ function toHex(buffer) {
7
+ return Array.from(new Uint8Array(buffer), (b) => b.toString(16).padStart(2, "0")).join("");
8
+ }
9
+ /** Compute the lowercase hex SHA-256 digest of a UTF-8 string. */
10
+ export async function computeHash(content) {
11
+ const data = new TextEncoder().encode(content);
12
+ return toHex(await dntShim.crypto.subtle.digest("SHA-256", data));
13
+ }
14
+ /** Compute the lowercase hex SHA-256 digest of raw bytes. */
15
+ export async function computeHashBytes(bytes) {
16
+ return toHex(await dntShim.crypto.subtle.digest("SHA-256", bytes));
17
+ }
18
+ /** Compute code hash. */
19
+ export function computeCodeHash(code) {
20
+ return computeHash(`${code.code}${code.css ?? ""}${code.sourceMap ?? ""}`);
21
+ }
22
+ /** Create simple hash. */
23
+ export function simpleHash(str) {
24
+ let hash = 0;
25
+ for (let i = 0; i < str.length; i++) {
26
+ hash = (hash << 5) - hash + str.charCodeAt(i);
27
+ hash &= hash;
28
+ }
29
+ return Math.abs(hash);
30
+ }
31
+ /** Hash string to hex (base 16) - used for module filenames */
32
+ export function hashCodeHex(str) {
33
+ return simpleHash(str).toString(16);
34
+ }
35
+ /** Create short hash. */
36
+ export async function shortHash(content) {
37
+ const fullHash = await computeHash(content);
38
+ return fullHash.slice(0, SHORT_HASH_LENGTH);
39
+ }
40
+ /** FNV-1a hash for strings - returns hex string */
41
+ export function fnv1aHash(input) {
42
+ let hash = HASH_SEED_FNV1A >>> 0;
43
+ for (const char of input) {
44
+ hash ^= char.charCodeAt(0);
45
+ hash = Math.imul(hash, FNV1A_PRIME_32);
46
+ }
47
+ return (hash >>> 0).toString(16);
48
+ }