@veryfront/ext-content-mdx 0.1.1186 → 0.1.1189
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/esm/_dnt.polyfills.d.ts +6 -6
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/deno.d.ts +18 -0
- package/esm/deno.js +30 -9
- package/esm/src/config/defaults.d.ts +31 -24
- package/esm/src/config/defaults.d.ts.map +1 -1
- package/esm/src/config/defaults.js +25 -18
- package/esm/src/errors/diagnostic-policy.d.ts +35 -0
- package/esm/src/errors/diagnostic-policy.d.ts.map +1 -0
- package/esm/src/errors/diagnostic-policy.js +100 -0
- package/esm/src/errors/error-registry/boundary.d.ts +2 -0
- package/esm/src/errors/error-registry/boundary.d.ts.map +1 -1
- package/esm/src/errors/error-registry/boundary.js +8 -0
- package/esm/src/errors/error-registry/config.d.ts.map +1 -1
- package/esm/src/errors/error-registry/config.js +3 -3
- package/esm/src/errors/error-registry/deploy.js +1 -1
- package/esm/src/errors/error-registry/server.d.ts +2 -0
- package/esm/src/errors/error-registry/server.d.ts.map +1 -1
- package/esm/src/errors/error-registry/server.js +8 -0
- package/esm/src/errors/error-registry-helpers.d.ts +11 -2
- package/esm/src/errors/error-registry-helpers.d.ts.map +1 -1
- package/esm/src/errors/error-registry-helpers.js +70 -1
- package/esm/src/errors/error-registry.d.ts +85 -73
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/error-registry.js +2 -14
- package/esm/src/errors/types.d.ts +44 -5
- package/esm/src/errors/types.d.ts.map +1 -1
- package/esm/src/errors/types.js +148 -24
- package/esm/src/errors/veryfront-error.d.ts +25 -2
- package/esm/src/errors/veryfront-error.d.ts.map +1 -1
- package/esm/src/errors/veryfront-error.js +638 -28
- package/esm/src/observability/limits.d.ts +20 -0
- package/esm/src/observability/limits.d.ts.map +1 -0
- package/esm/src/observability/limits.js +19 -0
- package/esm/src/observability/telemetry-error.d.ts +22 -0
- package/esm/src/observability/telemetry-error.d.ts.map +1 -0
- package/esm/src/observability/telemetry-error.js +377 -0
- package/esm/src/observability/tracing/api-shim.d.ts +39 -0
- package/esm/src/observability/tracing/api-shim.d.ts.map +1 -1
- package/esm/src/observability/tracing/api-shim.js +196 -69
- package/esm/src/observability/tracing/context-callback.d.ts +14 -0
- package/esm/src/observability/tracing/context-callback.d.ts.map +1 -0
- package/esm/src/observability/tracing/context-callback.js +111 -0
- package/esm/src/observability/tracing/otlp-setup.d.ts.map +1 -1
- package/esm/src/observability/tracing/otlp-setup.js +190 -46
- package/esm/src/platform/adapters/base.d.ts +51 -7
- package/esm/src/platform/adapters/base.d.ts.map +1 -1
- package/esm/src/platform/adapters/base.js +4 -2
- package/esm/src/platform/adapters/bounded-file-read.d.ts +9 -0
- package/esm/src/platform/adapters/bounded-file-read.d.ts.map +1 -1
- package/esm/src/platform/adapters/bounded-file-read.js +11 -5
- package/esm/src/platform/adapters/file-snapshot-error.d.ts +2 -0
- package/esm/src/platform/adapters/file-snapshot-error.d.ts.map +1 -1
- package/esm/src/platform/adapters/file-snapshot-error.js +2 -0
- package/esm/src/platform/adapters/file-system-capabilities.d.ts +74 -0
- package/esm/src/platform/adapters/file-system-capabilities.d.ts.map +1 -0
- package/esm/src/platform/adapters/file-system-capabilities.js +508 -0
- package/esm/src/platform/adapters/native-file-system-provenance.d.ts +6 -0
- package/esm/src/platform/adapters/native-file-system-provenance.d.ts.map +1 -0
- package/esm/src/platform/adapters/native-file-system-provenance.js +15 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.d.ts +45 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.js +291 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.d.ts +71 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.js +471 -0
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.d.ts +16 -0
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.js +140 -0
- package/esm/src/platform/adapters/runtime/shared/temp-dir.d.ts +2 -0
- package/esm/src/platform/adapters/runtime/shared/temp-dir.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/temp-dir.js +10 -0
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.d.ts +5 -0
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.js +75 -0
- package/esm/src/platform/compat/abort-signal.d.ts +20 -0
- package/esm/src/platform/compat/abort-signal.d.ts.map +1 -0
- package/esm/src/platform/compat/abort-signal.js +64 -0
- package/esm/src/platform/compat/constants.d.ts +2 -2
- package/esm/src/platform/compat/constants.d.ts.map +1 -1
- package/esm/src/platform/compat/constants.js +2 -2
- package/esm/src/platform/compat/error-introspection.d.ts +37 -0
- package/esm/src/platform/compat/error-introspection.d.ts.map +1 -0
- package/esm/src/platform/compat/error-introspection.js +258 -0
- package/esm/src/platform/compat/fs.d.ts +29 -8
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +123 -57
- package/esm/src/platform/compat/native-brand-checks.d.ts +14 -0
- package/esm/src/platform/compat/native-brand-checks.d.ts.map +1 -0
- package/esm/src/platform/compat/native-brand-checks.js +68 -0
- package/esm/src/platform/compat/not-found-error.d.ts +8 -3
- package/esm/src/platform/compat/not-found-error.d.ts.map +1 -1
- package/esm/src/platform/compat/not-found-error.js +164 -31
- package/esm/src/platform/compat/path/security.d.ts.map +1 -1
- package/esm/src/platform/compat/path/security.js +3 -5
- package/esm/src/platform/compat/process/command.d.ts +24 -1
- package/esm/src/platform/compat/process/command.d.ts.map +1 -1
- package/esm/src/platform/compat/process/command.js +393 -78
- package/esm/src/platform/compat/process/env.d.ts +11 -0
- package/esm/src/platform/compat/process/env.d.ts.map +1 -1
- package/esm/src/platform/compat/process/env.js +28 -38
- package/esm/src/platform/compat/process/global-error.d.ts +19 -0
- package/esm/src/platform/compat/process/global-error.d.ts.map +1 -0
- package/esm/src/platform/compat/process/global-error.js +57 -0
- package/esm/src/platform/compat/process/lifecycle.d.ts +10 -3
- package/esm/src/platform/compat/process/lifecycle.d.ts.map +1 -1
- package/esm/src/platform/compat/process/lifecycle.js +74 -23
- package/esm/src/platform/compat/process/project-env-contract.d.ts +19 -0
- package/esm/src/platform/compat/process/project-env-contract.d.ts.map +1 -0
- package/esm/src/platform/compat/process/project-env-contract.js +19 -0
- package/esm/src/platform/compat/runtime.d.ts +14 -5
- package/esm/src/platform/compat/runtime.d.ts.map +1 -1
- package/esm/src/platform/compat/runtime.js +34 -9
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts +12 -0
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts.map +1 -1
- package/esm/src/platform/compat/std/front-matter-yaml.js +35 -3
- package/esm/src/platform/compat/temp-directory-prefix.d.ts +8 -0
- package/esm/src/platform/compat/temp-directory-prefix.d.ts.map +1 -0
- package/esm/src/platform/compat/temp-directory-prefix.js +15 -0
- package/esm/src/utils/abort.d.ts +10 -0
- package/esm/src/utils/abort.d.ts.map +1 -0
- package/esm/src/utils/abort.js +35 -0
- package/esm/src/utils/constants/build.d.ts +3 -0
- package/esm/src/utils/constants/build.d.ts.map +1 -1
- package/esm/src/utils/constants/build.js +5 -1
- package/esm/src/utils/constants/cache.d.ts +21 -0
- package/esm/src/utils/constants/cache.d.ts.map +1 -1
- package/esm/src/utils/constants/cache.js +101 -39
- package/esm/src/utils/constants/css.d.ts +20 -0
- package/esm/src/utils/constants/css.d.ts.map +1 -0
- package/esm/src/utils/constants/css.js +19 -0
- package/esm/src/utils/constants/limits.d.ts +4 -0
- package/esm/src/utils/constants/limits.d.ts.map +1 -1
- package/esm/src/utils/constants/limits.js +4 -0
- package/esm/src/utils/constants/project-identity.d.ts +5 -0
- package/esm/src/utils/constants/project-identity.d.ts.map +1 -0
- package/esm/src/utils/constants/project-identity.js +4 -0
- package/esm/src/utils/constants/retry.d.ts +18 -0
- package/esm/src/utils/constants/retry.d.ts.map +1 -1
- package/esm/src/utils/constants/retry.js +18 -0
- package/esm/src/utils/constants/security.d.ts +4 -0
- package/esm/src/utils/constants/security.d.ts.map +1 -1
- package/esm/src/utils/constants/security.js +4 -0
- package/esm/src/utils/index.d.ts +3 -1
- package/esm/src/utils/index.d.ts.map +1 -1
- package/esm/src/utils/index.js +3 -1
- package/esm/src/utils/logger/core.d.ts +5 -0
- package/esm/src/utils/logger/core.d.ts.map +1 -1
- package/esm/src/utils/logger/core.js +67 -2
- package/esm/src/utils/logger/redact.d.ts +36 -13
- package/esm/src/utils/logger/redact.d.ts.map +1 -1
- package/esm/src/utils/logger/redact.js +573 -83
- package/esm/src/utils/parallel.d.ts.map +1 -1
- package/esm/src/utils/parallel.js +11 -1
- package/esm/src/utils/project-identity.d.ts +11 -0
- package/esm/src/utils/project-identity.d.ts.map +1 -0
- package/esm/src/utils/project-identity.js +69 -0
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +3 -3
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.d.ts +0 -33
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.d.ts.map +0 -1
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.js +0 -205
package/esm/_dnt.polyfills.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
interface Error {
|
|
3
|
-
cause?: unknown;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
export {};
|
|
7
1
|
declare global {
|
|
8
2
|
interface Object {
|
|
9
3
|
/**
|
|
@@ -15,4 +9,10 @@ declare global {
|
|
|
15
9
|
}
|
|
16
10
|
}
|
|
17
11
|
export {};
|
|
12
|
+
declare global {
|
|
13
|
+
interface Error {
|
|
14
|
+
cause?: unknown;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
18
|
//# sourceMappingURL=_dnt.polyfills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAeA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,CAAC;AACV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK;QACb,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,OAAO,EAAE,CAAC"}
|
package/esm/deno.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare namespace _default {
|
|
|
18
18
|
"./context": string;
|
|
19
19
|
"./fonts": string;
|
|
20
20
|
"./ui": string;
|
|
21
|
+
"./ui/adapter": string;
|
|
21
22
|
"./ui/icons": string;
|
|
22
23
|
"./chat": string;
|
|
23
24
|
"./chat/ag-ui": string;
|
|
@@ -53,6 +54,7 @@ declare namespace _default {
|
|
|
53
54
|
"./mcp": string;
|
|
54
55
|
"./middleware": string;
|
|
55
56
|
"./errors": string;
|
|
57
|
+
"./security": string;
|
|
56
58
|
"./observability": string;
|
|
57
59
|
"./observability/sentry": string;
|
|
58
60
|
"./observability/otlp-setup": string;
|
|
@@ -78,6 +80,13 @@ declare namespace _default {
|
|
|
78
80
|
"./extensions/cache": string;
|
|
79
81
|
"./extensions/content": string;
|
|
80
82
|
"./extensions/distributed": string;
|
|
83
|
+
"./extensions/distributed/agent-memory-support": string;
|
|
84
|
+
"./extensions/distributed/cache-support": string;
|
|
85
|
+
"./extensions/distributed/rate-limit-support": string;
|
|
86
|
+
"./extensions/distributed/routing-invalidation-support": string;
|
|
87
|
+
"./extensions/dev-ui": string;
|
|
88
|
+
"./extensions/dev-ui/protocol": string;
|
|
89
|
+
"./extensions/rendering": string;
|
|
81
90
|
"./extensions/contracts": string;
|
|
82
91
|
"./extensions/compat": string;
|
|
83
92
|
"./extensions/first-party-import": string;
|
|
@@ -118,6 +127,7 @@ declare namespace _default {
|
|
|
118
127
|
"veryfront/react/components/chat": string;
|
|
119
128
|
"veryfront/components/chat": string;
|
|
120
129
|
"veryfront/ui": string;
|
|
130
|
+
"veryfront/ui/adapter": string;
|
|
121
131
|
"veryfront/ui/icons": string;
|
|
122
132
|
"veryfront/react/components/ui": string;
|
|
123
133
|
"veryfront/components/ui": string;
|
|
@@ -151,6 +161,7 @@ declare namespace _default {
|
|
|
151
161
|
"veryfront/proxy/main": string;
|
|
152
162
|
"veryfront/proxy/handler": string;
|
|
153
163
|
"veryfront/proxy/cache": string;
|
|
164
|
+
"veryfront/proxy/shutdown-hooks": string;
|
|
154
165
|
"veryfront/transforms/mdx-cache": string;
|
|
155
166
|
"veryfront/observability/otlp-setup": string;
|
|
156
167
|
"veryfront/observability/sentry": string;
|
|
@@ -198,6 +209,13 @@ declare namespace _default {
|
|
|
198
209
|
"veryfront/extensions/cache": string;
|
|
199
210
|
"veryfront/extensions/content": string;
|
|
200
211
|
"veryfront/extensions/distributed": string;
|
|
212
|
+
"veryfront/extensions/distributed/agent-memory-support": string;
|
|
213
|
+
"veryfront/extensions/distributed/cache-support": string;
|
|
214
|
+
"veryfront/extensions/distributed/rate-limit-support": string;
|
|
215
|
+
"veryfront/extensions/distributed/routing-invalidation-support": string;
|
|
216
|
+
"veryfront/extensions/dev-ui": string;
|
|
217
|
+
"veryfront/extensions/dev-ui/protocol": string;
|
|
218
|
+
"veryfront/extensions/rendering": string;
|
|
201
219
|
"veryfront/extensions/compat": string;
|
|
202
220
|
"veryfront/extensions/contracts": string;
|
|
203
221
|
"veryfront/extensions/first-party-import": string;
|
package/esm/deno.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1189",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"nodeModulesDir": "auto",
|
|
6
6
|
"minimumDependencyAge": {
|
|
@@ -47,6 +47,7 @@ export default {
|
|
|
47
47
|
"./extensions/ext-blob-gcs",
|
|
48
48
|
"./extensions/ext-blob-s3",
|
|
49
49
|
"./extensions/ext-bundler-esbuild",
|
|
50
|
+
"./extensions/ext-dev-ui-react",
|
|
50
51
|
"./extensions/ext-cache-redis",
|
|
51
52
|
"./extensions/ext-redis",
|
|
52
53
|
"./extensions/ext-css-lightning",
|
|
@@ -57,12 +58,14 @@ export default {
|
|
|
57
58
|
"./extensions/ext-document-kreuzberg",
|
|
58
59
|
"./extensions/ext-db-sqlite",
|
|
59
60
|
"./extensions/ext-parser-babel",
|
|
61
|
+
"./extensions/ext-yaml",
|
|
60
62
|
"./extensions/ext-sandbox-shell-tools",
|
|
61
63
|
"./extensions/ext-observability-opentelemetry",
|
|
62
64
|
"./extensions/ext-observability-sentry",
|
|
63
65
|
"./extensions/ext-eval-report-mlflow",
|
|
64
66
|
"./extensions/ext-eval-report-http",
|
|
65
67
|
"./extensions/ext-content-mdx",
|
|
68
|
+
"./extensions/ext-react-ssr",
|
|
66
69
|
"./extensions/ext-schema-zod"
|
|
67
70
|
],
|
|
68
71
|
"exclude": [
|
|
@@ -85,6 +88,7 @@ export default {
|
|
|
85
88
|
"./context": "./src/react/context/index.tsx",
|
|
86
89
|
"./fonts": "./src/react/fonts/index.ts",
|
|
87
90
|
"./ui": "./src/react/components/ui/index.ts",
|
|
91
|
+
"./ui/adapter": "./src/react/components/ui/adapter/contract.ts",
|
|
88
92
|
"./ui/icons": "./src/react/components/ui/icons/index.ts",
|
|
89
93
|
"./chat": "./src/chat/index.ts",
|
|
90
94
|
"./chat/ag-ui": "./src/chat/ag-ui.ts",
|
|
@@ -120,6 +124,7 @@ export default {
|
|
|
120
124
|
"./mcp": "./src/mcp/index.ts",
|
|
121
125
|
"./middleware": "./src/middleware/index.ts",
|
|
122
126
|
"./errors": "./src/errors/index.ts",
|
|
127
|
+
"./security": "./src/security/index.ts",
|
|
123
128
|
"./observability": "./src/observability/index.ts",
|
|
124
129
|
"./observability/sentry": "./src/observability/sentry.ts",
|
|
125
130
|
"./observability/otlp-setup": "./src/observability/tracing/otlp-setup.ts",
|
|
@@ -145,6 +150,13 @@ export default {
|
|
|
145
150
|
"./extensions/cache": "./src/extensions/cache/index.ts",
|
|
146
151
|
"./extensions/content": "./src/extensions/content/index.ts",
|
|
147
152
|
"./extensions/distributed": "./src/extensions/distributed/index.ts",
|
|
153
|
+
"./extensions/distributed/agent-memory-support": "./src/extensions/distributed/agent-memory-support.ts",
|
|
154
|
+
"./extensions/distributed/cache-support": "./src/extensions/distributed/cache-support.ts",
|
|
155
|
+
"./extensions/distributed/rate-limit-support": "./src/extensions/distributed/rate-limit-support.ts",
|
|
156
|
+
"./extensions/distributed/routing-invalidation-support": "./src/extensions/distributed/routing-invalidation-support.ts",
|
|
157
|
+
"./extensions/dev-ui": "./src/extensions/dev-ui/index.ts",
|
|
158
|
+
"./extensions/dev-ui/protocol": "./src/extensions/dev-ui/protocol.ts",
|
|
159
|
+
"./extensions/rendering": "./src/extensions/rendering/index.ts",
|
|
148
160
|
"./extensions/contracts": "./src/extensions/contracts.ts",
|
|
149
161
|
"./extensions/compat": "./src/extensions/compat/index.ts",
|
|
150
162
|
"./extensions/first-party-import": "./src/extensions/first-party-import.ts",
|
|
@@ -185,6 +197,7 @@ export default {
|
|
|
185
197
|
"veryfront/react/components/chat": "./src/react/components/chat/index.ts",
|
|
186
198
|
"veryfront/components/chat": "./src/react/components/chat/index.ts",
|
|
187
199
|
"veryfront/ui": "./src/react/components/ui/index.ts",
|
|
200
|
+
"veryfront/ui/adapter": "./src/react/components/ui/adapter/contract.ts",
|
|
188
201
|
"veryfront/ui/icons": "./src/react/components/ui/icons/index.ts",
|
|
189
202
|
"veryfront/react/components/ui": "./src/react/components/ui/index.ts",
|
|
190
203
|
"veryfront/components/ui": "./src/react/components/ui/index.ts",
|
|
@@ -218,6 +231,7 @@ export default {
|
|
|
218
231
|
"veryfront/proxy/main": "./src/proxy/main.ts",
|
|
219
232
|
"veryfront/proxy/handler": "./src/proxy/handler.ts",
|
|
220
233
|
"veryfront/proxy/cache": "./src/proxy/cache/index.ts",
|
|
234
|
+
"veryfront/proxy/shutdown-hooks": "./src/proxy/shutdown-hooks.ts",
|
|
221
235
|
"veryfront/transforms/mdx-cache": "./src/transforms/mdx/esm-module-loader/cache/index.ts",
|
|
222
236
|
"veryfront/observability/otlp-setup": "./src/observability/tracing/otlp-setup.ts",
|
|
223
237
|
"veryfront/observability/sentry": "./src/observability/sentry.ts",
|
|
@@ -265,6 +279,13 @@ export default {
|
|
|
265
279
|
"veryfront/extensions/cache": "./src/extensions/cache/index.ts",
|
|
266
280
|
"veryfront/extensions/content": "./src/extensions/content/index.ts",
|
|
267
281
|
"veryfront/extensions/distributed": "./src/extensions/distributed/index.ts",
|
|
282
|
+
"veryfront/extensions/distributed/agent-memory-support": "./src/extensions/distributed/agent-memory-support.ts",
|
|
283
|
+
"veryfront/extensions/distributed/cache-support": "./src/extensions/distributed/cache-support.ts",
|
|
284
|
+
"veryfront/extensions/distributed/rate-limit-support": "./src/extensions/distributed/rate-limit-support.ts",
|
|
285
|
+
"veryfront/extensions/distributed/routing-invalidation-support": "./src/extensions/distributed/routing-invalidation-support.ts",
|
|
286
|
+
"veryfront/extensions/dev-ui": "./src/extensions/dev-ui/index.ts",
|
|
287
|
+
"veryfront/extensions/dev-ui/protocol": "./src/extensions/dev-ui/protocol.ts",
|
|
288
|
+
"veryfront/extensions/rendering": "./src/extensions/rendering/index.ts",
|
|
268
289
|
"veryfront/extensions/compat": "./src/extensions/compat/index.ts",
|
|
269
290
|
"veryfront/extensions/contracts": "./src/extensions/contracts.ts",
|
|
270
291
|
"veryfront/extensions/first-party-import": "./src/extensions/first-party-import.ts",
|
|
@@ -457,9 +478,9 @@ export default {
|
|
|
457
478
|
"storybook": "npm --prefix storybook run storybook",
|
|
458
479
|
"build:storybook": "npm --prefix storybook run build-storybook",
|
|
459
480
|
"storybook:check": "deno test --no-lock --config=scripts/test.deno.json --no-check --allow-read scripts/storybook/storybook-workbench.test.ts",
|
|
460
|
-
"lint": "DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ react/ && deno lint --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts scripts/build/npm-package-metadata.test.ts && deno lint --config=scripts/codemods/deno.json scripts/codemods/",
|
|
461
|
-
"fmt": "deno fmt src/ cli/ react/ && deno fmt --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts && deno fmt --config=scripts/codemods/deno.json scripts/codemods/",
|
|
462
|
-
"fmt:check": "deno fmt --check src/ cli/ react/ && deno fmt --check --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts && deno fmt --check --config=scripts/codemods/deno.json scripts/codemods/",
|
|
481
|
+
"lint": "DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ react/ && deno lint --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts scripts/build/npm-package-metadata.test.ts scripts/build/prepare-framework-sources.test.ts && deno lint --config=scripts/codemods/deno.json scripts/codemods/",
|
|
482
|
+
"fmt": "deno fmt src/ cli/ react/ && deno fmt --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts scripts/build/prepare-framework-sources.test.ts && deno fmt --config=scripts/codemods/deno.json scripts/codemods/",
|
|
483
|
+
"fmt:check": "deno fmt --check src/ cli/ react/ && deno fmt --check --config=scripts/test.deno.json scripts/test/ scripts/build/dnt-polyfill.ts scripts/build/dnt-polyfill.test.ts scripts/build/prepare-framework-sources.test.ts && deno fmt --check --config=scripts/codemods/deno.json scripts/codemods/",
|
|
463
484
|
"typecheck": "deno task generate:manifests:check && deno check src/index.ts cli/main.ts src/server/index.ts src/routing/api/index.ts src/rendering/index.ts src/platform/index.ts src/platform/adapters/index.ts src/build/index.ts src/build/production-build/index.ts src/transforms/index.ts src/config/index.ts src/utils/index.ts src/data/index.ts src/security/index.ts src/middleware/index.ts src/server/handlers/dev/index.ts src/server/handlers/request/api/index.ts src/rendering/cache/index.ts src/rendering/cache/stores/index.ts src/rendering/rsc/actions/index.ts src/html/index.ts src/html/hydration-script-builder/runtime/main.ts src/modules/index.ts src/proxy/main.ts src/react/components/ui/index.ts src/chat/index.ts src/markdown/index.ts src/mdx/index.ts src/fs/index.ts src/oauth/index.ts src/agent/index.ts src/agent/service/route-export.check.ts src/eval/index.ts src/tool/index.ts src/workflow/index.ts src/prompt/index.ts src/resource/index.ts src/runs/index.ts src/mcp/index.ts src/provider/index.ts",
|
|
464
485
|
"verify": "deno task generate:manifests:check && deno task fmt:check && deno task lint && deno task lint:style && deno task lint:chat-composability && deno task lint:chat-ratchets && deno task lint:esm-sh-codemod && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task lint:ban-test-only && deno task lint:sanitizer-baseline && deno task lint:skipped-tests && deno task lint:ban-zod && deno task lint:core-deps && deno task lint:dependency-boundaries && deno task lint:module-boundaries && deno task lint:extension-contracts && deno task lint:extension-capabilities && deno task docs:validate && deno task typecheck && deno task typecheck:consumer && deno task test && deno task test:e2e:binary",
|
|
465
486
|
"verify:quick": "deno task generate:manifests:check && deno task fmt:check && deno task lint && deno task lint:style && deno task lint:chat-composability && deno task lint:chat-ratchets && deno task lint:esm-sh-codemod && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task lint:ban-test-only && deno task lint:sanitizer-baseline && deno task lint:skipped-tests && deno task lint:ban-zod && deno task lint:core-deps && deno task lint:dependency-boundaries && deno task lint:module-boundaries && deno task lint:extension-contracts && deno task lint:extension-capabilities && deno task docs:validate && deno task typecheck",
|
|
@@ -472,15 +493,15 @@ export default {
|
|
|
472
493
|
"docs": "deno run --allow-read --allow-write --allow-run --allow-env scripts/docs/generate-api-reference.ts",
|
|
473
494
|
"docs:coverage": "deno run --allow-read scripts/docs/docs-coverage.ts",
|
|
474
495
|
"docs:copy": "rm -rf ../../docs/docs/code/api-reference && cp -r docs/api-reference/ ../../docs/docs/code/api-reference/",
|
|
475
|
-
"docs:validate": "deno run --allow-read scripts/docs/validate-api-reference.ts && deno run --allow-read scripts/docs/validate-guides.ts && deno run --allow-read scripts/docs/validate-public-docs.ts && deno test --config=scripts/test.deno.json --no-check --allow-read scripts/docs/docs-coverage.test.ts && deno test --no-check --allow-read tests/docs/guide-contracts.test.ts tests/docs/guide-content.test.ts && deno test --no-check --allow-all tests/docs/guide-examples.test.ts tests/docs/guide-code-examples.test.ts && deno run -A scripts/lint/check-doc-links.ts",
|
|
496
|
+
"docs:validate": "deno run --allow-read scripts/docs/validate-api-reference.ts && deno run --allow-read scripts/docs/validate-guides.ts && deno run --allow-read scripts/docs/validate-public-docs.ts && deno test --config=scripts/test.deno.json --no-check --allow-read scripts/docs/docs-coverage.test.ts && deno test --no-check --allow-read tests/docs/guide-contracts.test.ts tests/docs/guide-content.test.ts && DENO_TESTING=1 deno test --no-check --allow-all tests/docs/guide-examples.test.ts tests/docs/guide-code-examples.test.ts && deno run -A scripts/lint/check-doc-links.ts",
|
|
476
497
|
"docs:verify-npm": "node scripts/docs/verify-npm-exports.mjs && node scripts/docs/verify-npm-node.mjs",
|
|
477
498
|
"docs:check-links": "deno run -A scripts/lint/check-doc-links.ts",
|
|
478
499
|
"lint:ban-zod": "deno run --allow-read scripts/lint/ban-zod-imports.ts",
|
|
479
500
|
"lint:core-deps": "deno run --allow-read scripts/lint/audit-core-deps.ts",
|
|
480
501
|
"lint:dependency-boundaries": "deno run --allow-read scripts/lint/audit-dependency-boundaries.ts",
|
|
481
502
|
"lint:module-boundaries": "DENO_NO_PACKAGE_JSON=1 deno run --frozen --allow-read scripts/lint/check-module-boundaries.ts",
|
|
482
|
-
"lint:extension-contracts": "deno run --allow-read scripts/lint/audit-extension-contracts.ts",
|
|
483
|
-
"lint:extension-capabilities": "deno run --allow-read scripts/lint/audit-extension-capabilities.ts",
|
|
503
|
+
"lint:extension-contracts": "deno run --config=scripts/test.deno.json --frozen --allow-read scripts/lint/audit-extension-contracts.ts",
|
|
504
|
+
"lint:extension-capabilities": "deno run --config=scripts/test.deno.json --frozen --allow-read scripts/lint/audit-extension-capabilities.ts",
|
|
484
505
|
"lint:ban-console": "deno run --allow-read scripts/lint/ban-console.ts",
|
|
485
506
|
"lint:ban-deep-imports": "deno run --allow-read scripts/lint/ban-deep-imports.ts",
|
|
486
507
|
"lint:imports": "deno run --allow-read scripts/lint/no-cross-boundary-relative-imports.ts",
|
|
@@ -498,7 +519,7 @@ export default {
|
|
|
498
519
|
"lint:ban-test-only": "deno run --allow-read scripts/lint/ban-test-only.ts",
|
|
499
520
|
"lint:sanitizer-baseline": "deno run --allow-read scripts/lint/check-sanitizer-baseline.ts",
|
|
500
521
|
"lint:skipped-tests": "deno run --allow-read scripts/lint/check-skipped-tests-baseline.ts",
|
|
501
|
-
"test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write --allow-run scripts/ci/publish-npm-packages.test.ts scripts/build/dnt-polyfill.test.ts scripts/build/generate-sbom.test.ts scripts/build/npm-dependency-sources.test.ts scripts/build/npm-extension-package-metadata.test.ts scripts/build/npm-package-metadata.test.ts scripts/build/npm-react-shims.test.ts scripts/docs/docs-coverage.test.ts scripts/docs/generate-api-reference.test.ts scripts/docs/guide-validation.test.ts scripts/lint/audit-core-deps.test.ts scripts/lint/audit-dependency-boundaries.test.ts scripts/lint/audit-extension-capabilities.test.ts scripts/lint/audit-extension-contracts.test.ts scripts/lint/audit-deps.test.ts scripts/lint/check-module-boundaries.test.ts scripts/lint/ban-test-only.test.ts scripts/lint/check-sanitizer-baseline.test.ts scripts/lint/check-skipped-tests-baseline.test.ts scripts/lint/check-coverage.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts && deno task test:tool-search-live",
|
|
522
|
+
"test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write --allow-run scripts/ci/publish-npm-packages.test.ts scripts/build/dnt-polyfill.test.ts scripts/build/generate-sbom.test.ts scripts/build/npm-dependency-sources.test.ts scripts/build/npm-extension-package-metadata.test.ts scripts/build/npm-package-metadata.test.ts scripts/build/npm-react-shims.test.ts scripts/build/prepare-framework-sources.test.ts scripts/docs/docs-coverage.test.ts scripts/docs/generate-api-reference.test.ts scripts/docs/guide-validation.test.ts scripts/lint/audit-core-deps.test.ts scripts/lint/audit-dependency-boundaries.test.ts scripts/lint/audit-extension-capabilities.test.ts scripts/lint/audit-extension-contracts.test.ts scripts/lint/audit-deps.test.ts scripts/lint/check-module-boundaries.test.ts scripts/lint/ban-test-only.test.ts scripts/lint/check-sanitizer-baseline.test.ts scripts/lint/check-skipped-tests-baseline.test.ts scripts/lint/check-test-typecheck-baseline.test.ts scripts/lint/check-coverage.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts && deno task test:tool-search-live",
|
|
502
523
|
"test:sentry-runtime-packages": "deno test --config=scripts/test.deno.json --no-check --no-lock --allow-read --allow-write --allow-run --allow-env=DENO_DIR,HOME,XDG_CACHE_HOME,LOCALAPPDATA,USERPROFILE scripts/build/sentry-runtime-packages.test.ts",
|
|
503
524
|
"test:tool-search-live": "VF_DISABLE_LRU_INTERVAL=1 deno test --no-check -A tests/agent/verify-tool-search-live.test.ts",
|
|
504
525
|
"test:cross-runtime": "deno run --allow-all src/platform/compat/cross-runtime.test.ts",
|
|
@@ -507,7 +528,7 @@ export default {
|
|
|
507
528
|
"test:all-runtimes": "deno task test:unit && deno task test:node && deno task test:bun",
|
|
508
529
|
"test:e2e": "deno task test:e2e:playwright",
|
|
509
530
|
"test:e2e:playwright": "PW_DISABLE_TS_ESM=1 npx playwright test --config=tests/e2e/playwright.config.cjs",
|
|
510
|
-
"test:e2e:rsc-browser": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --allow-all tests/e2e/regressions/rsc-proxy-hydration.test.ts tests/e2e/regressions/2026-07-27-legacy-router-hydration.test.ts tests/e2e/regressions/2026-07-27-release-asset-page-island-hydration.test.ts --unstable-worker-options --unstable-net",
|
|
531
|
+
"test:e2e:rsc-browser": "deno task generate && DENO_TESTING=1 VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --allow-all tests/e2e/regressions/rsc-proxy-hydration.test.ts tests/e2e/regressions/2026-07-27-legacy-router-hydration.test.ts tests/e2e/regressions/2026-07-27-release-asset-page-island-hydration.test.ts --unstable-worker-options --unstable-net",
|
|
511
532
|
"test:e2e:binary": "deno task generate && deno test --allow-all tests/integration/compiled-binary-e2e.test.ts",
|
|
512
533
|
"test:e2e:binary:fresh": "deno task generate && VERYFRONT_BINARY_FRESH=1 deno test --allow-all tests/integration/compiled-binary-e2e.test.ts",
|
|
513
534
|
"test:e2e:templates": "deno run --allow-all scripts/test/template-runtime-e2e.ts",
|
|
@@ -2,38 +2,45 @@ import { DEFAULT_PORT } from "../platform/compat/constants.js";
|
|
|
2
2
|
export { DEFAULT_PORT };
|
|
3
3
|
export declare const DEFAULT_TIMEOUT_MS = 5000;
|
|
4
4
|
export declare const SSR_TIMEOUT_MS = 10000;
|
|
5
|
+
/** Default ceiling for request-local buffered SSR output; streaming output is unaffected. */
|
|
6
|
+
export declare const SSR_MAX_BUFFERED_BYTES: number;
|
|
5
7
|
export declare const SANDBOX_TIMEOUT_MS = 5000;
|
|
6
8
|
/** Timeout for user data fetching functions (getServerData, getStaticData) */
|
|
7
9
|
export declare const DATA_FETCH_TIMEOUT_MS = 10000;
|
|
8
10
|
export declare const DEFAULT_CACHE_MAX_SIZE = 100;
|
|
11
|
+
/** Default production render-cache capacity. */
|
|
12
|
+
export declare const DEFAULT_RENDER_CACHE_MAX_ENTRIES = 500;
|
|
13
|
+
/**
|
|
14
|
+
* Shared hosted projects may lower, but never raise, the production
|
|
15
|
+
* render-cache capacity.
|
|
16
|
+
*/
|
|
17
|
+
export declare const MAX_HOSTED_RENDER_CACHE_ENTRIES = 500;
|
|
9
18
|
export declare const DURATION_HISTOGRAM_BOUNDARIES_MS: readonly [5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000];
|
|
10
19
|
export declare const SIZE_HISTOGRAM_BOUNDARIES_KB: readonly [1, 5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000];
|
|
11
|
-
export declare const defaultConfig: {
|
|
12
|
-
readonly server: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
readonly timeouts: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
readonly cache: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
readonly metrics: {
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
}
|
|
20
|
+
export declare const defaultConfig: Readonly<{
|
|
21
|
+
readonly server: Readonly<{
|
|
22
|
+
port: 3000;
|
|
23
|
+
hostname: "0.0.0.0";
|
|
24
|
+
}>;
|
|
25
|
+
readonly timeouts: Readonly<{
|
|
26
|
+
default: 5000;
|
|
27
|
+
api: 30000;
|
|
28
|
+
ssr: 10000;
|
|
29
|
+
hmr: 30000;
|
|
30
|
+
sandbox: 5000;
|
|
31
|
+
}>;
|
|
32
|
+
readonly cache: Readonly<{
|
|
33
|
+
jit: Readonly<{
|
|
34
|
+
maxSize: 100;
|
|
35
|
+
tempDirPrefix: "vf-bundle-";
|
|
36
|
+
}>;
|
|
37
|
+
}>;
|
|
38
|
+
readonly metrics: Readonly<{
|
|
39
|
+
ssrBoundaries: readonly [5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000];
|
|
40
|
+
}>;
|
|
41
|
+
}>;
|
|
33
42
|
export declare const DEFAULT_PREFETCH_DELAY_MS = 100;
|
|
34
43
|
export declare const DEFAULT_METRICS_COLLECT_INTERVAL_MS = 60000;
|
|
35
|
-
export declare const DEFAULT_REDIS_SCAN_COUNT = 100;
|
|
36
|
-
export declare const DEFAULT_REDIS_BATCH_DELETE_SIZE = 1000;
|
|
37
44
|
export declare const PAGE_TRANSITION_DELAY_MS = 150;
|
|
38
45
|
export type DefaultConfig = typeof defaultConfig;
|
|
39
46
|
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/src/config/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAE3C,eAAO,MAAM,sBAAsB,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/src/config/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,6FAA6F;AAC7F,eAAO,MAAM,sBAAsB,QAAmB,CAAC;AACvD,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAE3C,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,gDAAgD;AAChD,eAAO,MAAM,gCAAgC,MAAM,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,+BAA+B,MAAmC,CAAC;AAEhF,eAAO,MAAM,gCAAgC,iFAiB5C,CAAC;AAEF,eAAO,MAAM,4BAA4B,qEAexC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;EAuBzB,CAAC;AAEF,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,mCAAmC,QAAQ,CAAC;AACzD,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC"}
|
|
@@ -2,11 +2,20 @@ import { DEFAULT_PORT } from "../platform/compat/constants.js";
|
|
|
2
2
|
export { DEFAULT_PORT };
|
|
3
3
|
export const DEFAULT_TIMEOUT_MS = 5000;
|
|
4
4
|
export const SSR_TIMEOUT_MS = 10000;
|
|
5
|
+
/** Default ceiling for request-local buffered SSR output; streaming output is unaffected. */
|
|
6
|
+
export const SSR_MAX_BUFFERED_BYTES = 16 * 1024 * 1024;
|
|
5
7
|
export const SANDBOX_TIMEOUT_MS = 5000;
|
|
6
8
|
/** Timeout for user data fetching functions (getServerData, getStaticData) */
|
|
7
9
|
export const DATA_FETCH_TIMEOUT_MS = 10000;
|
|
8
10
|
export const DEFAULT_CACHE_MAX_SIZE = 100;
|
|
9
|
-
|
|
11
|
+
/** Default production render-cache capacity. */
|
|
12
|
+
export const DEFAULT_RENDER_CACHE_MAX_ENTRIES = 500;
|
|
13
|
+
/**
|
|
14
|
+
* Shared hosted projects may lower, but never raise, the production
|
|
15
|
+
* render-cache capacity.
|
|
16
|
+
*/
|
|
17
|
+
export const MAX_HOSTED_RENDER_CACHE_ENTRIES = DEFAULT_RENDER_CACHE_MAX_ENTRIES;
|
|
18
|
+
export const DURATION_HISTOGRAM_BOUNDARIES_MS = Object.freeze([
|
|
10
19
|
5,
|
|
11
20
|
10,
|
|
12
21
|
25,
|
|
@@ -21,8 +30,8 @@ export const DURATION_HISTOGRAM_BOUNDARIES_MS = [
|
|
|
21
30
|
5000,
|
|
22
31
|
7500,
|
|
23
32
|
10000,
|
|
24
|
-
];
|
|
25
|
-
export const SIZE_HISTOGRAM_BOUNDARIES_KB = [
|
|
33
|
+
]);
|
|
34
|
+
export const SIZE_HISTOGRAM_BOUNDARIES_KB = Object.freeze([
|
|
26
35
|
1,
|
|
27
36
|
5,
|
|
28
37
|
10,
|
|
@@ -35,31 +44,29 @@ export const SIZE_HISTOGRAM_BOUNDARIES_KB = [
|
|
|
35
44
|
2500,
|
|
36
45
|
5000,
|
|
37
46
|
10000,
|
|
38
|
-
];
|
|
39
|
-
export const defaultConfig = {
|
|
40
|
-
server: {
|
|
47
|
+
]);
|
|
48
|
+
export const defaultConfig = Object.freeze({
|
|
49
|
+
server: Object.freeze({
|
|
41
50
|
port: DEFAULT_PORT,
|
|
42
51
|
hostname: "0.0.0.0",
|
|
43
|
-
},
|
|
44
|
-
timeouts: {
|
|
52
|
+
}),
|
|
53
|
+
timeouts: Object.freeze({
|
|
45
54
|
default: DEFAULT_TIMEOUT_MS,
|
|
46
55
|
api: 30000,
|
|
47
56
|
ssr: SSR_TIMEOUT_MS,
|
|
48
57
|
hmr: 30000,
|
|
49
58
|
sandbox: SANDBOX_TIMEOUT_MS,
|
|
50
|
-
},
|
|
51
|
-
cache: {
|
|
52
|
-
jit: {
|
|
59
|
+
}),
|
|
60
|
+
cache: Object.freeze({
|
|
61
|
+
jit: Object.freeze({
|
|
53
62
|
maxSize: DEFAULT_CACHE_MAX_SIZE,
|
|
54
63
|
tempDirPrefix: "vf-bundle-",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
metrics: {
|
|
64
|
+
}),
|
|
65
|
+
}),
|
|
66
|
+
metrics: Object.freeze({
|
|
58
67
|
ssrBoundaries: DURATION_HISTOGRAM_BOUNDARIES_MS,
|
|
59
|
-
},
|
|
60
|
-
};
|
|
68
|
+
}),
|
|
69
|
+
});
|
|
61
70
|
export const DEFAULT_PREFETCH_DELAY_MS = 100;
|
|
62
71
|
export const DEFAULT_METRICS_COLLECT_INTERVAL_MS = 60000;
|
|
63
|
-
export const DEFAULT_REDIS_SCAN_COUNT = 100;
|
|
64
|
-
export const DEFAULT_REDIS_BATCH_DELETE_SIZE = 1000;
|
|
65
72
|
export const PAGE_TRANSITION_DELAY_MS = 150;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Maximum characters retained from one diagnostic field. */
|
|
2
|
+
export declare const ERROR_DIAGNOSTIC_MAX_LENGTH_CHARS = 2048;
|
|
3
|
+
/** Maximum characters retained from a stack snapshot. */
|
|
4
|
+
export declare const ERROR_STACK_MAX_LENGTH_CHARS = 8192;
|
|
5
|
+
/** Maximum characters retained from serialized structured error context. */
|
|
6
|
+
export declare const ERROR_CONTEXT_MAX_LENGTH_CHARS = 4096;
|
|
7
|
+
/** Maximum characters emitted by one rendered error payload or terminal block. */
|
|
8
|
+
export declare const ERROR_OUTPUT_MAX_LENGTH_CHARS: number;
|
|
9
|
+
/** Maximum source characters accepted for the error-docs path segment. */
|
|
10
|
+
export declare const ERROR_DOCS_SLUG_MAX_LENGTH_CHARS = 256;
|
|
11
|
+
export declare const ERROR_DOCS_BASE_URL = "https://veryfront.com/docs/errors/";
|
|
12
|
+
/**
|
|
13
|
+
* Redact a complete diagnostic before truncating it.
|
|
14
|
+
*
|
|
15
|
+
* The order is security-sensitive: truncating first could split a credential
|
|
16
|
+
* assignment before the redactor sees its complete value and expose a prefix.
|
|
17
|
+
*/
|
|
18
|
+
export declare function sanitizeBoundedDiagnosticText(value: unknown): string;
|
|
19
|
+
/** Redact and bound a stack while retaining its line structure. */
|
|
20
|
+
export declare function sanitizeBoundedStackText(value: unknown): string;
|
|
21
|
+
/** Redact, neutralize terminal controls, and bound one terminal field. */
|
|
22
|
+
export declare function sanitizeBoundedTerminalText(value: unknown): string;
|
|
23
|
+
/**
|
|
24
|
+
* Bound a complete rendered terminal block.
|
|
25
|
+
*
|
|
26
|
+
* Normal-sized output retains framework styling. Oversized output is flattened
|
|
27
|
+
* through the terminal sanitizer before truncation so a cut cannot leave an
|
|
28
|
+
* incomplete ANSI sequence active in the caller's terminal.
|
|
29
|
+
*/
|
|
30
|
+
export declare function limitRenderedErrorOutput(value: string): string;
|
|
31
|
+
/** Redact and bound an error identity consistently across every boundary. */
|
|
32
|
+
export declare function sanitizeBoundedErrorSlug(slug: unknown): string;
|
|
33
|
+
/** Build a single, encoded, credential-scrubbed error documentation path. */
|
|
34
|
+
export declare function buildErrorDocsUrl(slug: unknown): string;
|
|
35
|
+
//# sourceMappingURL=diagnostic-policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnostic-policy.d.ts","sourceRoot":"","sources":["../../../src/src/errors/diagnostic-policy.ts"],"names":[],"mappings":"AAGA,6DAA6D;AAC7D,eAAO,MAAM,iCAAiC,OAAQ,CAAC;AACvD,yDAAyD;AACzD,eAAO,MAAM,4BAA4B,OAAQ,CAAC;AAClD,4EAA4E;AAC5E,eAAO,MAAM,8BAA8B,OAAQ,CAAC;AACpD,kFAAkF;AAClF,eAAO,MAAM,6BAA6B,QAAa,CAAC;AACxD,0EAA0E;AAC1E,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,eAAO,MAAM,mBAAmB,uCAAuC,CAAC;AA2CxE;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMpE;AAED,mEAAmE;AACnE,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAM/D;AAED,0EAA0E;AAC1E,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CASlE;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM9D;AAED,6EAA6E;AAC7E,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAQ9D;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAGvD"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { sanitizeLogText } from "../utils/logger/core.js";
|
|
2
|
+
import { REDACTED, sanitizeUrlCredentials } from "../utils/logger/redact.js";
|
|
3
|
+
/** Maximum characters retained from one diagnostic field. */
|
|
4
|
+
export const ERROR_DIAGNOSTIC_MAX_LENGTH_CHARS = 2_048;
|
|
5
|
+
/** Maximum characters retained from a stack snapshot. */
|
|
6
|
+
export const ERROR_STACK_MAX_LENGTH_CHARS = 8_192;
|
|
7
|
+
/** Maximum characters retained from serialized structured error context. */
|
|
8
|
+
export const ERROR_CONTEXT_MAX_LENGTH_CHARS = 4_096;
|
|
9
|
+
/** Maximum characters emitted by one rendered error payload or terminal block. */
|
|
10
|
+
export const ERROR_OUTPUT_MAX_LENGTH_CHARS = 64 * 1_024;
|
|
11
|
+
/** Maximum source characters accepted for the error-docs path segment. */
|
|
12
|
+
export const ERROR_DOCS_SLUG_MAX_LENGTH_CHARS = 256;
|
|
13
|
+
export const ERROR_DOCS_BASE_URL = "https://veryfront.com/docs/errors/";
|
|
14
|
+
const TRUNCATION_MARKER = "...[truncated]";
|
|
15
|
+
const UNKNOWN_ERROR_SLUG = "unknown-error";
|
|
16
|
+
function truncateDiagnosticText(value, maxLength) {
|
|
17
|
+
if (value.length <= maxLength)
|
|
18
|
+
return value;
|
|
19
|
+
const prefixLength = Math.max(0, maxLength - TRUNCATION_MARKER.length);
|
|
20
|
+
const prefix = takeSafePrefix(value, prefixLength);
|
|
21
|
+
return `${prefix}${TRUNCATION_MARKER}`;
|
|
22
|
+
}
|
|
23
|
+
function takeSafePrefix(value, length) {
|
|
24
|
+
let prefix = value.slice(0, length);
|
|
25
|
+
const finalCodeUnit = prefix.charCodeAt(prefix.length - 1);
|
|
26
|
+
if (finalCodeUnit >= 0xd800 && finalCodeUnit <= 0xdbff) {
|
|
27
|
+
prefix = prefix.slice(0, -1);
|
|
28
|
+
}
|
|
29
|
+
return prefix;
|
|
30
|
+
}
|
|
31
|
+
function replaceLoneSurrogates(value) {
|
|
32
|
+
let result = "";
|
|
33
|
+
for (let index = 0; index < value.length; index++) {
|
|
34
|
+
const codeUnit = value.charCodeAt(index);
|
|
35
|
+
if (codeUnit >= 0xd800 && codeUnit <= 0xdbff) {
|
|
36
|
+
const nextCodeUnit = value.charCodeAt(index + 1);
|
|
37
|
+
if (nextCodeUnit >= 0xdc00 && nextCodeUnit <= 0xdfff) {
|
|
38
|
+
result += value.slice(index, index + 2);
|
|
39
|
+
index++;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
result += "\ufffd";
|
|
43
|
+
}
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
result += codeUnit >= 0xdc00 && codeUnit <= 0xdfff ? "\ufffd" : value.charAt(index);
|
|
47
|
+
}
|
|
48
|
+
return result;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Redact a complete diagnostic before truncating it.
|
|
52
|
+
*
|
|
53
|
+
* The order is security-sensitive: truncating first could split a credential
|
|
54
|
+
* assignment before the redactor sees its complete value and expose a prefix.
|
|
55
|
+
*/
|
|
56
|
+
export function sanitizeBoundedDiagnosticText(value) {
|
|
57
|
+
if (typeof value !== "string")
|
|
58
|
+
return REDACTED;
|
|
59
|
+
return truncateDiagnosticText(sanitizeUrlCredentials(value), ERROR_DIAGNOSTIC_MAX_LENGTH_CHARS);
|
|
60
|
+
}
|
|
61
|
+
/** Redact and bound a stack while retaining its line structure. */
|
|
62
|
+
export function sanitizeBoundedStackText(value) {
|
|
63
|
+
if (typeof value !== "string")
|
|
64
|
+
return REDACTED;
|
|
65
|
+
return truncateDiagnosticText(sanitizeUrlCredentials(value), ERROR_STACK_MAX_LENGTH_CHARS);
|
|
66
|
+
}
|
|
67
|
+
/** Redact, neutralize terminal controls, and bound one terminal field. */
|
|
68
|
+
export function sanitizeBoundedTerminalText(value) {
|
|
69
|
+
const redacted = typeof value === "string" ? sanitizeUrlCredentials(value) : REDACTED;
|
|
70
|
+
if (redacted.length <= ERROR_DIAGNOSTIC_MAX_LENGTH_CHARS) {
|
|
71
|
+
return sanitizeLogText(redacted);
|
|
72
|
+
}
|
|
73
|
+
const prefixLength = ERROR_DIAGNOSTIC_MAX_LENGTH_CHARS -
|
|
74
|
+
TRUNCATION_MARKER.length;
|
|
75
|
+
return `${sanitizeLogText(takeSafePrefix(redacted, prefixLength))}${TRUNCATION_MARKER}`;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Bound a complete rendered terminal block.
|
|
79
|
+
*
|
|
80
|
+
* Normal-sized output retains framework styling. Oversized output is flattened
|
|
81
|
+
* through the terminal sanitizer before truncation so a cut cannot leave an
|
|
82
|
+
* incomplete ANSI sequence active in the caller's terminal.
|
|
83
|
+
*/
|
|
84
|
+
export function limitRenderedErrorOutput(value) {
|
|
85
|
+
if (value.length <= ERROR_OUTPUT_MAX_LENGTH_CHARS)
|
|
86
|
+
return value;
|
|
87
|
+
return truncateDiagnosticText(sanitizeLogText(value), ERROR_OUTPUT_MAX_LENGTH_CHARS);
|
|
88
|
+
}
|
|
89
|
+
/** Redact and bound an error identity consistently across every boundary. */
|
|
90
|
+
export function sanitizeBoundedErrorSlug(slug) {
|
|
91
|
+
const sanitized = typeof slug === "string" ? sanitizeUrlCredentials(slug) : UNKNOWN_ERROR_SLUG;
|
|
92
|
+
const bounded = truncateDiagnosticText(sanitized || UNKNOWN_ERROR_SLUG, ERROR_DOCS_SLUG_MAX_LENGTH_CHARS);
|
|
93
|
+
const normalized = replaceLoneSurrogates(bounded);
|
|
94
|
+
return normalized === "." || normalized === ".." ? UNKNOWN_ERROR_SLUG : normalized;
|
|
95
|
+
}
|
|
96
|
+
/** Build a single, encoded, credential-scrubbed error documentation path. */
|
|
97
|
+
export function buildErrorDocsUrl(slug) {
|
|
98
|
+
const segment = encodeURIComponent(sanitizeBoundedErrorSlug(slug));
|
|
99
|
+
return `${ERROR_DOCS_BASE_URL}${segment}`;
|
|
100
|
+
}
|
|
@@ -4,6 +4,7 @@ export declare const CLIENT_ONLY_IN_SERVER: import("../types.js").RegisteredErro
|
|
|
4
4
|
export declare const INVALID_USE_CLIENT: import("../types.js").RegisteredError;
|
|
5
5
|
export declare const INVALID_USE_SERVER: import("../types.js").RegisteredError;
|
|
6
6
|
export declare const RSC_PAYLOAD_ERROR: import("../types.js").RegisteredError;
|
|
7
|
+
export declare const SSR_OUTPUT_LIMIT_EXCEEDED: import("../types.js").RegisteredError;
|
|
7
8
|
/** Registry fragment for BOUNDARY errors (slug → definition). */
|
|
8
9
|
export declare const BOUNDARY_REGISTRY: {
|
|
9
10
|
readonly "client-boundary-violation": import("../types.js").RegisteredError;
|
|
@@ -12,5 +13,6 @@ export declare const BOUNDARY_REGISTRY: {
|
|
|
12
13
|
readonly "invalid-use-client": import("../types.js").RegisteredError;
|
|
13
14
|
readonly "invalid-use-server": import("../types.js").RegisteredError;
|
|
14
15
|
readonly "rsc-payload-error": import("../types.js").RegisteredError;
|
|
16
|
+
readonly "ssr-output-limit-exceeded": import("../types.js").RegisteredError;
|
|
15
17
|
};
|
|
16
18
|
//# sourceMappingURL=boundary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/boundary.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,iEAAiE;AACjE,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/boundary.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,iEAAiE;AACjE,eAAO,MAAM,iBAAiB;;;;;;;;CAQpB,CAAC"}
|
|
@@ -41,6 +41,13 @@ export const RSC_PAYLOAD_ERROR = defineError({
|
|
|
41
41
|
title: "RSC payload serialization error",
|
|
42
42
|
suggestion: "Ensure props are serializable (no functions, symbols, etc.)",
|
|
43
43
|
});
|
|
44
|
+
export const SSR_OUTPUT_LIMIT_EXCEEDED = defineError({
|
|
45
|
+
slug: "ssr-output-limit-exceeded",
|
|
46
|
+
category: "BOUNDARY",
|
|
47
|
+
status: 500,
|
|
48
|
+
title: "SSR output limit exceeded",
|
|
49
|
+
suggestion: "Reduce the rendered HTML size or split the response into smaller pages",
|
|
50
|
+
});
|
|
44
51
|
/** Registry fragment for BOUNDARY errors (slug → definition). */
|
|
45
52
|
export const BOUNDARY_REGISTRY = {
|
|
46
53
|
"client-boundary-violation": CLIENT_BOUNDARY_VIOLATION,
|
|
@@ -49,4 +56,5 @@ export const BOUNDARY_REGISTRY = {
|
|
|
49
56
|
"invalid-use-client": INVALID_USE_CLIENT,
|
|
50
57
|
"invalid-use-server": INVALID_USE_SERVER,
|
|
51
58
|
"rsc-payload-error": RSC_PAYLOAD_ERROR,
|
|
59
|
+
"ssr-output-limit-exceeded": SSR_OUTPUT_LIMIT_EXCEEDED,
|
|
52
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,uCAO3B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,uCAMlC,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,uEAAuE;AACvE,eAAO,MAAM,wBAAwB,uCAMnC,CAAC;AAEH,oFAAoF;AACpF,eAAO,MAAM,sBAAsB,uCAMjC,CAAC;AAEH,iGAAiG;AACjG,eAAO,MAAM,uBAAuB,uCAOlC,CAAC;AAEH,oEAAoE;AACpE,eAAO,MAAM,sBAAsB,uCAOjC,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;;;;;;;;CAYlB,CAAC"}
|
|
@@ -4,21 +4,21 @@ export const CONFIG_NOT_FOUND = defineError({
|
|
|
4
4
|
category: "CONFIG",
|
|
5
5
|
status: 404,
|
|
6
6
|
title: "Configuration file not found",
|
|
7
|
-
suggestion: "
|
|
7
|
+
suggestion: "Create veryfront.config.js, veryfront.config.ts, or veryfront.config.mjs in the project root",
|
|
8
8
|
});
|
|
9
9
|
export const CONFIG_INVALID = defineError({
|
|
10
10
|
slug: "config-invalid",
|
|
11
11
|
category: "CONFIG",
|
|
12
12
|
status: 400,
|
|
13
13
|
title: "Invalid configuration format",
|
|
14
|
-
suggestion: "Check
|
|
14
|
+
suggestion: "Check the reported configuration path and validation details",
|
|
15
15
|
});
|
|
16
16
|
export const CONFIG_PARSE_ERROR = defineError({
|
|
17
17
|
slug: "config-parse-error",
|
|
18
18
|
category: "CONFIG",
|
|
19
19
|
status: 400,
|
|
20
20
|
title: "Failed to parse configuration",
|
|
21
|
-
suggestion: "Ensure your configuration file
|
|
21
|
+
suggestion: "Ensure your configuration file contains valid JavaScript or TypeScript",
|
|
22
22
|
});
|
|
23
23
|
/** Schema-level config validation (e.g. Zod schema mismatch at runtime) */
|
|
24
24
|
export const CONFIG_VALIDATION_ERROR = defineError({
|
|
@@ -25,7 +25,7 @@ export const PRODUCTION_BUILD_REQUIRED = defineError({
|
|
|
25
25
|
category: "DEPLOY",
|
|
26
26
|
status: 400,
|
|
27
27
|
title: "Production build required",
|
|
28
|
-
suggestion: "Run '
|
|
28
|
+
suggestion: "Run 'veryfront build' before deploying",
|
|
29
29
|
});
|
|
30
30
|
export const ENVIRONMENT_NOT_FOUND = defineError({
|
|
31
31
|
slug: "environment-not-found",
|