@veryfront/ext-content-mdx 0.1.1227 → 0.1.1229
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/deno.d.ts +12 -2
- package/esm/deno.js +15 -5
- package/esm/src/errors/error-registry/config.d.ts +7 -0
- package/esm/src/errors/error-registry/config.d.ts.map +1 -1
- package/esm/src/errors/error-registry/config.js +14 -0
- package/esm/src/errors/error-registry/server.d.ts.map +1 -1
- package/esm/src/errors/error-registry/server.js +1 -1
- package/esm/src/errors/error-registry.d.ts +1 -0
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/extensions/first-party-import.js +24 -1
- package/esm/src/observability/telemetry-error.d.ts.map +1 -1
- package/esm/src/observability/telemetry-error.js +15 -3
- package/esm/src/platform/compat/std/yaml.d.ts +1 -1
- package/esm/src/platform/compat/std/yaml.js +4 -4
- package/esm/src/utils/constants/http.d.ts +8 -2
- package/esm/src/utils/constants/http.d.ts.map +1 -1
- package/esm/src/utils/constants/http.js +10 -2
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +2 -2
package/esm/deno.d.ts
CHANGED
|
@@ -241,6 +241,7 @@ declare namespace _default {
|
|
|
241
241
|
"#veryfront/build": string;
|
|
242
242
|
"#veryfront/cache": string;
|
|
243
243
|
"#veryfront/config": string;
|
|
244
|
+
"#veryfront/config/tsconfig-paths.ts": string;
|
|
244
245
|
"#veryfront/discovery": string;
|
|
245
246
|
"#veryfront/data": string;
|
|
246
247
|
"#veryfront/errors": string;
|
|
@@ -395,6 +396,9 @@ declare namespace _default {
|
|
|
395
396
|
release: string;
|
|
396
397
|
test: string;
|
|
397
398
|
"test:unit": string;
|
|
399
|
+
"test:unit:parallel": string;
|
|
400
|
+
"test:unit:cwd": string;
|
|
401
|
+
"test:unit:cwd-exclusion": string;
|
|
398
402
|
"test:integration": string;
|
|
399
403
|
"test:integration:cli": string;
|
|
400
404
|
"test:record": string;
|
|
@@ -460,8 +464,14 @@ declare namespace _default {
|
|
|
460
464
|
"test:sentry-runtime-packages": string;
|
|
461
465
|
"test:tool-search-live": string;
|
|
462
466
|
"test:cross-runtime": string;
|
|
463
|
-
"test:node":
|
|
464
|
-
|
|
467
|
+
"test:node": {
|
|
468
|
+
command: string;
|
|
469
|
+
dependencies: string[];
|
|
470
|
+
};
|
|
471
|
+
"test:bun": {
|
|
472
|
+
command: string;
|
|
473
|
+
dependencies: string[];
|
|
474
|
+
};
|
|
465
475
|
"test:all-runtimes": string;
|
|
466
476
|
"test:e2e": string;
|
|
467
477
|
"test:e2e:playwright": 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.1229",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"nodeModulesDir": "auto",
|
|
6
6
|
"minimumDependencyAge": {
|
|
@@ -311,6 +311,7 @@ export default {
|
|
|
311
311
|
"#veryfront/build": "./src/build/index.ts",
|
|
312
312
|
"#veryfront/cache": "./src/cache/index.ts",
|
|
313
313
|
"#veryfront/config": "./src/config/index.ts",
|
|
314
|
+
"#veryfront/config/tsconfig-paths.ts": "./src/config/tsconfig-paths.ts",
|
|
314
315
|
"#veryfront/discovery": "./src/discovery/index.ts",
|
|
315
316
|
"#veryfront/data": "./src/data/index.ts",
|
|
316
317
|
"#veryfront/errors": "./src/errors/index.ts",
|
|
@@ -470,7 +471,10 @@ export default {
|
|
|
470
471
|
"verify:dist": "deno task build && deno task build:npm",
|
|
471
472
|
"release": "deno run -A scripts/release.ts",
|
|
472
473
|
"test": "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 --preload=src/testing/preload.ts --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts,scripts' --unstable-worker-options --unstable-net",
|
|
473
|
-
"test:unit": "deno task generate &&
|
|
474
|
+
"test:unit": "deno task generate && deno task test:unit:parallel && deno task test:unit:cwd && deno task test:unit:cwd-exclusion",
|
|
475
|
+
"test:unit:parallel": "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 --preload=src/testing/preload.ts --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts*' ! -name '*.integration.test.ts*' ! -path 'src/workflow/__tests__/*' ! -path 'cli/router.test.ts' ! -path 'cli/app/operations/project-creation.test.ts' ! -path 'cli/commands/schedule/handler.test.ts' ! -path 'cli/commands/skills/validate.test.ts' ! -path 'cli/commands/webhook/handler.test.ts' ! -path 'src/platform/compat/process.test.ts' ! -path 'src/testing/cwd.test.ts' ! -path 'src/testing/cwd-exclusion-a.test.ts' ! -path 'src/testing/cwd-exclusion-b.test.ts')",
|
|
476
|
+
"test:unit:cwd": "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 --preload=src/testing/preload.ts --no-check --allow-all --v8-flags=--max-old-space-size=8192 --unstable-worker-options --unstable-net cli/router.test.ts cli/app/operations/project-creation.test.ts cli/commands/schedule/handler.test.ts cli/commands/skills/validate.test.ts cli/commands/webhook/handler.test.ts src/platform/compat/process.test.ts src/testing/cwd.test.ts",
|
|
477
|
+
"test:unit:cwd-exclusion": "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 --preload=src/testing/preload.ts --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 --unstable-worker-options --unstable-net src/testing/cwd-exclusion-a.test.ts src/testing/cwd-exclusion-b.test.ts",
|
|
474
478
|
"test:integration": "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 --preload=src/testing/preload.ts --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net",
|
|
475
479
|
"test:integration:cli": "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 --parallel --allow-all --unstable-worker-options --unstable-net $(find cli -name '*.integration.test.ts')",
|
|
476
480
|
"test:record": "VCR=record deno test --no-check --allow-all $(find cli -name '*.integration.test.ts' -path '*/commands/*')",
|
|
@@ -532,12 +536,18 @@ export default {
|
|
|
532
536
|
"lint:ban-test-only": "deno run --allow-read scripts/lint/ban-test-only.ts",
|
|
533
537
|
"lint:sanitizer-baseline": "deno run --allow-read scripts/lint/check-sanitizer-baseline.ts",
|
|
534
538
|
"lint:skipped-tests": "deno run --allow-read scripts/lint/check-skipped-tests-baseline.ts",
|
|
535
|
-
"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/ci/setup-deno-workflow.test.ts scripts/build/compile-binary.test.ts scripts/build/dnt-polyfill.test.ts scripts/build/generate-sbom.test.ts scripts/build/generated-artifact-checks.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/npm-runtime-helper-contract.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-cross-runtime-jsr.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/lint-config.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",
|
|
539
|
+
"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/ci/setup-deno-workflow.test.ts scripts/build/compile-binary.test.ts scripts/build/dnt-polyfill.test.ts scripts/build/generate-sbom.test.ts scripts/build/generated-artifact-checks.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/npm-runtime-helper-contract.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-cross-runtime-jsr.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/lint-config.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 scripts/test/template-runtime-e2e.test.ts && deno task test:tool-search-live",
|
|
536
540
|
"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",
|
|
537
541
|
"test:tool-search-live": "VF_DISABLE_LRU_INTERVAL=1 deno test --no-check -A tests/agent/verify-tool-search-live.test.ts",
|
|
538
542
|
"test:cross-runtime": "deno run --allow-all src/platform/compat/cross-runtime.test.ts",
|
|
539
|
-
"test:node":
|
|
540
|
-
|
|
543
|
+
"test:node": {
|
|
544
|
+
"command": "node ./tests/node/run-tests.mjs 'src/**/*.test.ts' extensions/ext-bundler-esbuild/src/binary.test.ts tests/ensure-npm-links.test.mjs",
|
|
545
|
+
"dependencies": ["build:npm"]
|
|
546
|
+
},
|
|
547
|
+
"test:bun": {
|
|
548
|
+
"command": "node --test tests/bun/runner-args.test.mjs tests/bun/workspace-packages.test.mjs && node ./tests/bun/run-tests.mjs src/ tests/bun/dynamic-alias-resolution.test.ts tests/bun/npm-protocol-resolution.test.ts tests/bun/workspace-resolution.test.ts",
|
|
549
|
+
"dependencies": ["build:npm"]
|
|
550
|
+
},
|
|
541
551
|
"test:all-runtimes": "deno task test:unit && deno task test:node && deno task test:bun",
|
|
542
552
|
"test:e2e": "deno task test:e2e:playwright",
|
|
543
553
|
"test:e2e:playwright": "PW_DISABLE_TS_ESM=1 npx playwright test --config=tests/e2e/playwright.config.cjs",
|
|
@@ -14,6 +14,12 @@ export declare const WEBHOOK_CONFIG_INVALID: import("../types.js").RegisteredErr
|
|
|
14
14
|
export declare const SCHEDULE_CONFIG_INVALID: import("../types.js").RegisteredError;
|
|
15
15
|
/** Trigger ID format and input serialization validation failures */
|
|
16
16
|
export declare const TRIGGER_CONFIG_INVALID: import("../types.js").RegisteredError;
|
|
17
|
+
/**
|
|
18
|
+
* `veryfront init --template <name>` (and `npm create veryfront -- --template`)
|
|
19
|
+
* was given a name that is not in the starter catalog. The detail carries the
|
|
20
|
+
* list of valid names so a wrong guess is self-correcting.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TEMPLATE_NOT_FOUND: import("../types.js").RegisteredError;
|
|
17
23
|
/** Registry fragment for CONFIG errors (slug → definition). */
|
|
18
24
|
export declare const CONFIG_REGISTRY: {
|
|
19
25
|
readonly "config-not-found": import("../types.js").RegisteredError;
|
|
@@ -27,5 +33,6 @@ export declare const CONFIG_REGISTRY: {
|
|
|
27
33
|
readonly "webhook-config-invalid": import("../types.js").RegisteredError;
|
|
28
34
|
readonly "schedule-config-invalid": import("../types.js").RegisteredError;
|
|
29
35
|
readonly "trigger-config-invalid": import("../types.js").RegisteredError;
|
|
36
|
+
readonly "template-not-found": import("../types.js").RegisteredError;
|
|
30
37
|
};
|
|
31
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,uCAO7B,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAalB,CAAC"}
|
|
@@ -81,6 +81,19 @@ export const TRIGGER_CONFIG_INVALID = defineError({
|
|
|
81
81
|
title: "Invalid trigger configuration",
|
|
82
82
|
suggestion: "Check trigger ID format (lowercase, alphanumeric, dots/slashes/hyphens) and ensure all input values are JSON-serializable",
|
|
83
83
|
});
|
|
84
|
+
/**
|
|
85
|
+
* `veryfront init --template <name>` (and `npm create veryfront -- --template`)
|
|
86
|
+
* was given a name that is not in the starter catalog. The detail carries the
|
|
87
|
+
* list of valid names so a wrong guess is self-correcting.
|
|
88
|
+
*/
|
|
89
|
+
export const TEMPLATE_NOT_FOUND = defineError({
|
|
90
|
+
slug: "template-not-found",
|
|
91
|
+
category: "CONFIG",
|
|
92
|
+
status: 404,
|
|
93
|
+
title: "Unknown project template",
|
|
94
|
+
suggestion: "Run 'veryfront init --help' to see the available templates",
|
|
95
|
+
exitCode: 2,
|
|
96
|
+
});
|
|
84
97
|
/** Registry fragment for CONFIG errors (slug → definition). */
|
|
85
98
|
export const CONFIG_REGISTRY = {
|
|
86
99
|
"config-not-found": CONFIG_NOT_FOUND,
|
|
@@ -94,4 +107,5 @@ export const CONFIG_REGISTRY = {
|
|
|
94
107
|
"webhook-config-invalid": WEBHOOK_CONFIG_INVALID,
|
|
95
108
|
"schedule-config-invalid": SCHEDULE_CONFIG_INVALID,
|
|
96
109
|
"trigger-config-invalid": TRIGGER_CONFIG_INVALID,
|
|
110
|
+
"template-not-found": TEMPLATE_NOT_FOUND,
|
|
97
111
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/server.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/server.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,uCAOtB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,WAAW,uCAMtB,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAMxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,6BAA6B,uCAMxC,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAM/B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAMxB,CAAC;AAEH,sEAAsE;AACtE,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,6DAA6D;AAC7D,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,oFAAoF;AACpF,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,qEAAqE;AACrE,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;CAmBlB,CAAC"}
|
|
@@ -4,7 +4,7 @@ export const PORT_IN_USE = defineError({
|
|
|
4
4
|
category: "SERVER",
|
|
5
5
|
status: 409,
|
|
6
6
|
title: "Server port already in use",
|
|
7
|
-
suggestion: "
|
|
7
|
+
suggestion: "Stop the process using the port, or pick another with: veryfront dev --port <number>",
|
|
8
8
|
});
|
|
9
9
|
export const SERVER_START_ERROR = defineError({
|
|
10
10
|
slug: "server-start-error",
|
|
@@ -40,6 +40,7 @@ export declare const ERROR_REGISTRY: Readonly<{
|
|
|
40
40
|
readonly "webhook-config-invalid": import("./types.js").RegisteredError;
|
|
41
41
|
readonly "schedule-config-invalid": import("./types.js").RegisteredError;
|
|
42
42
|
readonly "trigger-config-invalid": import("./types.js").RegisteredError;
|
|
43
|
+
readonly "template-not-found": import("./types.js").RegisteredError;
|
|
43
44
|
} & {
|
|
44
45
|
readonly "build-failed": import("./types.js").RegisteredError;
|
|
45
46
|
readonly "bundle-error": import("./types.js").RegisteredError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-registry.d.ts","sourceRoot":"","sources":["../../../src/src/errors/error-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAgBhD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"error-registry.d.ts","sourceRoot":"","sources":["../../../src/src/errors/error-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAgBhD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY1B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,cAAc,CAAC;AAEpD;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,wCAE7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,aAAa,0CAE1D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,SAAS,EAAE,CAEzC"}
|
|
@@ -197,10 +197,29 @@ function reportedMissingSpecifier(message) {
|
|
|
197
197
|
if (packageName)
|
|
198
198
|
return `${packageName}/${packageSubpath[1].slice(2)}`;
|
|
199
199
|
}
|
|
200
|
+
const bunResolveMessage = message.match(/^(?:ResolveMessage:\s+)?Cannot find module\s+["']([^"']+)["']\s+from\s+["']([^"']+)["']$/);
|
|
201
|
+
if (bunResolveMessage) {
|
|
202
|
+
const specifier = bunResolveMessage[1];
|
|
203
|
+
const importer = bunResolveMessage[2];
|
|
204
|
+
if ((specifier.startsWith("./") || specifier.startsWith("../")) &&
|
|
205
|
+
importer.startsWith("/")) {
|
|
206
|
+
try {
|
|
207
|
+
return canonicalFilePath(new URL(specifier, new URL(".", `file://${importer}`)).href);
|
|
208
|
+
}
|
|
209
|
+
catch {
|
|
210
|
+
return undefined;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return specifier;
|
|
214
|
+
}
|
|
200
215
|
for (const pattern of [
|
|
201
216
|
/^Cannot find module\s+["']([^"']+)["']\nRequire stack:(?:\n- [^\r\n]+)+$/,
|
|
202
217
|
/^(?:Cannot find package|Cannot find module|Module not found)\s+["']([^"']+)["'](?:(?:\s+imported from\s+.+)|\.)?$/,
|
|
203
|
-
|
|
218
|
+
// Deno, when the importer itself resolves out of the npm cache. The
|
|
219
|
+
// trailing parenthetical names the owning package when the referrer
|
|
220
|
+
// lives in the global Deno npm cache (`deno add npm:veryfront`).
|
|
221
|
+
/^Could not find package\s+["']([^"']+)["']\s+from referrer\s+["'][^"']+["'](?:\s+\([^()]*\))?\.?$/,
|
|
222
|
+
/^Import\s+["']([^"']+)["']\s+not a dependency(?: and not in import map)?(?:\s+from\s+.+)?$/,
|
|
204
223
|
/^Unable to resolve\s+["']([^"']+)["'](?:\s+from\s+.+)?$/,
|
|
205
224
|
]) {
|
|
206
225
|
const match = message.match(pattern);
|
|
@@ -332,6 +351,10 @@ function errorMessage(error) {
|
|
|
332
351
|
if (error instanceof Error) {
|
|
333
352
|
return typeof error.message === "string" ? error.message : undefined;
|
|
334
353
|
}
|
|
354
|
+
if (typeof error === "object" && error !== null) {
|
|
355
|
+
const message = error.message;
|
|
356
|
+
return typeof message === "string" ? message : undefined;
|
|
357
|
+
}
|
|
335
358
|
return typeof error === "string" ? error : undefined;
|
|
336
359
|
}
|
|
337
360
|
catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry-error.d.ts","sourceRoot":"","sources":["../../../src/src/observability/telemetry-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"telemetry-error.d.ts","sourceRoot":"","sources":["../../../src/src/observability/telemetry-error.ts"],"names":[],"mappings":"AA8JA,MAAM,MAAM,uBAAuB,GAC/B,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,GACtC,SAAS,CAAC;AAUd,6EAA6E;AAC7E,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAK9E;AAED,qDAAqD;AACrD,wBAAgB,+BAA+B,CAC7C,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,uBAAuB,GAC7B,uBAAuB,CAyBzB;AAED,wEAAwE;AACxE,wBAAgB,2BAA2B,CACzC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,GAAG,SAAS,EAC7D,UAAU,EAAE,CAAC,GAAG,CAAC,CAyClB;AA4JD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAc9D;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAwB/D"}
|
|
@@ -57,9 +57,21 @@ function readNativeErrorMessage(error) {
|
|
|
57
57
|
return "";
|
|
58
58
|
}
|
|
59
59
|
function readNativeErrorStack(error) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
if (readOwnErrorString(error, "message") === INVALID_ERROR_FIELD ||
|
|
61
|
+
readOwnErrorString(error, "name") === INVALID_ERROR_FIELD) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
try {
|
|
65
|
+
const descriptor = getOwnPropertyDescriptor(error, "stack");
|
|
66
|
+
if (descriptor && hasOwn(descriptor, "value")) {
|
|
67
|
+
return typeof descriptor.value === "string" ? descriptor.value : undefined;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
catch (_) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
// Accessor-valued runtime stacks are delegated to the compat reader, which
|
|
74
|
+
// shadows the formatter and fails closed on foreign accessors.
|
|
63
75
|
return readNativeErrorStackWithoutHooks(error);
|
|
64
76
|
}
|
|
65
77
|
function primitiveErrorMessage(error) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `jsr:@std/yaml` only resolves under Deno, so importing it from core made
|
|
5
5
|
* every Node and Bun test that transitively touched YAML unresolvable. A
|
|
6
|
-
* third-party parser cannot move into core either
|
|
6
|
+
* third-party parser cannot move into core either. Core may depend on the
|
|
7
7
|
* Deno standard library and nothing else. So core keeps the call sites and the
|
|
8
8
|
* `YamlParserProvider` contract, and the first-party `ext-yaml` extension
|
|
9
9
|
* keeps the parser.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `jsr:@std/yaml` only resolves under Deno, so importing it from core made
|
|
5
5
|
* every Node and Bun test that transitively touched YAML unresolvable. A
|
|
6
|
-
* third-party parser cannot move into core either
|
|
6
|
+
* third-party parser cannot move into core either. Core may depend on the
|
|
7
7
|
* Deno standard library and nothing else. So core keeps the call sites and the
|
|
8
8
|
* `YamlParserProvider` contract, and the first-party `ext-yaml` extension
|
|
9
9
|
* keeps the parser.
|
|
@@ -14,9 +14,9 @@ import { resolve, tryResolve } from "../../../extensions/contracts.js";
|
|
|
14
14
|
import { loadDefaultYamlParserProvider } from "../../../extensions/parser/yaml-defaults.js";
|
|
15
15
|
import { YamlParserProviderName, } from "../../../extensions/parser/yaml-parser.js";
|
|
16
16
|
/**
|
|
17
|
-
* Every framework call site for this module is synchronous
|
|
18
|
-
* extraction runs inside synchronous render and build paths
|
|
19
|
-
* extension-owned parser
|
|
17
|
+
* Every framework call site for this module is synchronous. Front matter
|
|
18
|
+
* extraction runs inside synchronous render and build paths, so the
|
|
19
|
+
* extension-owned parser must be available before `parse` is first callable.
|
|
20
20
|
* Top-level await is the same mechanism `src/agent/runtime/skill-metadata.ts`
|
|
21
21
|
* uses to load this extension's Skill parser for its own synchronous callers.
|
|
22
22
|
*/
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export { MS_PER_MINUTE, MS_PER_SECOND, SECONDS_PER_MINUTE } from "./cache.js";
|
|
2
2
|
export declare const KB_IN_BYTES = 1024;
|
|
3
|
-
/**
|
|
4
|
-
export declare const HTTP_MODULE_FETCH_TIMEOUT_MS =
|
|
3
|
+
/** HTTP module fetch timeout, including cold upstream module generation. */
|
|
4
|
+
export declare const HTTP_MODULE_FETCH_TIMEOUT_MS = 10000;
|
|
5
|
+
/** Maximum attempts for one HTTP module fetch. */
|
|
6
|
+
export declare const HTTP_MODULE_FETCH_MAX_ATTEMPTS = 3;
|
|
7
|
+
/** Linear backoff base between HTTP module fetch attempts. */
|
|
8
|
+
export declare const HTTP_MODULE_FETCH_RETRY_DELAY_MS = 100;
|
|
9
|
+
/** Maximum time consumed by all HTTP module fetch attempts and backoffs. */
|
|
10
|
+
export declare const HTTP_MODULE_FETCH_RETRY_BUDGET_MS: number;
|
|
5
11
|
export declare const HTTP_FETCH_TIMEOUT_MS = 30000; /** Default timeout for HTTP module/bundle fetch operations (30 seconds) */
|
|
6
12
|
export declare const HMR_RECONNECT_DELAY_MS = 1000;
|
|
7
13
|
export declare const HMR_RELOAD_DELAY_MS = 1000;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,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M,2BAA2B,cAAc,CAAC;AACvD,gDAAgD;AAChD,eAAO,MAAM,2BAA2B,iBAAiB,CAAC"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
export { MS_PER_MINUTE, MS_PER_SECOND, SECONDS_PER_MINUTE } from "./cache.js";
|
|
2
2
|
export const KB_IN_BYTES = 1024;
|
|
3
|
-
/**
|
|
4
|
-
export const HTTP_MODULE_FETCH_TIMEOUT_MS =
|
|
3
|
+
/** HTTP module fetch timeout, including cold upstream module generation. */
|
|
4
|
+
export const HTTP_MODULE_FETCH_TIMEOUT_MS = 10_000;
|
|
5
|
+
/** Maximum attempts for one HTTP module fetch. */
|
|
6
|
+
export const HTTP_MODULE_FETCH_MAX_ATTEMPTS = 3;
|
|
7
|
+
/** Linear backoff base between HTTP module fetch attempts. */
|
|
8
|
+
export const HTTP_MODULE_FETCH_RETRY_DELAY_MS = 100;
|
|
9
|
+
/** Maximum time consumed by all HTTP module fetch attempts and backoffs. */
|
|
10
|
+
export const HTTP_MODULE_FETCH_RETRY_BUDGET_MS = HTTP_MODULE_FETCH_TIMEOUT_MS * HTTP_MODULE_FETCH_MAX_ATTEMPTS +
|
|
11
|
+
HTTP_MODULE_FETCH_RETRY_DELAY_MS *
|
|
12
|
+
((HTTP_MODULE_FETCH_MAX_ATTEMPTS - 1) * HTTP_MODULE_FETCH_MAX_ATTEMPTS / 2);
|
|
5
13
|
export const HTTP_FETCH_TIMEOUT_MS = 30000; /** Default timeout for HTTP module/bundle fetch operations (30 seconds) */
|
|
6
14
|
export const HMR_RECONNECT_DELAY_MS = 1000;
|
|
7
15
|
export const HMR_RELOAD_DELAY_MS = 1000;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veryfront/ext-content-mdx",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1229",
|
|
4
4
|
"description": "Veryfront first-party extension package for ext-content-mdx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"veryfront",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"vfile": "6.0.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"veryfront": "^0.1.
|
|
70
|
+
"veryfront": "^0.1.1229"
|
|
71
71
|
},
|
|
72
72
|
"type": "module",
|
|
73
73
|
"types": "./esm/extensions/ext-content-mdx/src/index.d.ts",
|