@veryfront/ext-content-mdx 0.1.1259 → 0.1.1260-rc.19599

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.1259",
3
+ "version": "0.1.1260-rc.19599",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "minimumDependencyAge": {
@@ -602,11 +602,15 @@ export default {
602
602
  "test:cross-runtime": "deno run --allow-all src/platform/compat/cross-runtime.test.ts",
603
603
  "test:node": {
604
604
  "command": "node ./tests/node/run-tests.mjs --suite=runtime:node",
605
- "dependencies": ["build:npm"]
605
+ "dependencies": [
606
+ "build:npm"
607
+ ]
606
608
  },
607
609
  "test:bun": {
608
610
  "command": "node --test tests/bun/runner-args.test.mjs tests/bun/workspace-packages.test.mjs && node ./tests/bun/run-tests.mjs --suite=runtime:bun",
609
- "dependencies": ["build:npm"]
611
+ "dependencies": [
612
+ "build:npm"
613
+ ]
610
614
  },
611
615
  "test:all-runtimes": "deno task test:unit && deno task test:node && deno task test:bun",
612
616
  "test:e2e": "deno task test:e2e:playwright",
@@ -37,6 +37,29 @@ export declare const EVAL_PROJECT_REQUIRED: import("../types.js").RegisteredErro
37
37
  * current window. Buying credits does not clear this limit.
38
38
  */
39
39
  export declare const EVAL_MODEL_SPEND_LIMIT_EXCEEDED: import("../types.js").RegisteredError;
40
+ /**
41
+ * An eval stopped because the Veryfront Cloud gateway rejected the API
42
+ * credential for its model requests (HTTP 401).
43
+ */
44
+ export declare const EVAL_MODEL_UNAUTHORIZED: import("../types.js").RegisteredError;
45
+ /**
46
+ * An eval stopped because the Veryfront Cloud gateway denied the credential
47
+ * access to the linked project (HTTP 403).
48
+ */
49
+ export declare const EVAL_MODEL_PROJECT_ACCESS_DENIED: import("../types.js").RegisteredError;
50
+ /**
51
+ * An eval stopped because the host egress policy blocked its model gateway
52
+ * request: the Veryfront API host resolves to a private network address. The
53
+ * policy blocks every later record the same way.
54
+ */
55
+ export declare const EVAL_MODEL_EGRESS_BLOCKED: import("../types.js").RegisteredError;
56
+ /**
57
+ * An eval record ran past its time limit. The limit covers the whole record:
58
+ * target execution, tools, model requests, metrics, and checks. A model stream
59
+ * that stops sending data after its response headers has no deadline of its
60
+ * own, so the record limit is what keeps an eval run from waiting forever.
61
+ */
62
+ export declare const EVAL_RECORD_TIMEOUT: import("../types.js").RegisteredError;
40
63
  /** Registry fragment for AGENT errors (slug → definition). */
41
64
  export declare const AGENT_REGISTRY: {
42
65
  readonly "agent-error": import("../types.js").RegisteredError;
@@ -52,5 +75,9 @@ export declare const AGENT_REGISTRY: {
52
75
  readonly "eval-model-access-denied": import("../types.js").RegisteredError;
53
76
  readonly "eval-project-required": import("../types.js").RegisteredError;
54
77
  readonly "eval-model-spend-limit-exceeded": import("../types.js").RegisteredError;
78
+ readonly "eval-model-egress-blocked": import("../types.js").RegisteredError;
79
+ readonly "eval-model-unauthorized": import("../types.js").RegisteredError;
80
+ readonly "eval-model-project-access-denied": import("../types.js").RegisteredError;
81
+ readonly "eval-record-timeout": import("../types.js").RegisteredError;
55
82
  };
56
83
  //# sourceMappingURL=agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/agent.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,uCAMtB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAMxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,oCAAoC,uCAO/C,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,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AAC9D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;CAkBjB,CAAC"}
@@ -103,7 +103,7 @@ export const EVAL_PROJECT_REQUIRED = defineError({
103
103
  category: "AGENT",
104
104
  status: 400,
105
105
  title: "No project for eval model requests",
106
- suggestion: "Run veryfront eval from a linked project directory, or set VERYFRONT_PROJECT_SLUG (see .env.example)",
106
+ suggestion: "Set VERYFRONT_PROJECT_SLUG in .env or projectSlug in veryfront.config.ts to a project you can edit, then run veryfront eval again",
107
107
  });
108
108
  /**
109
109
  * An eval stopped because Veryfront reached its AI provider spend limit for the
@@ -116,6 +116,53 @@ export const EVAL_MODEL_SPEND_LIMIT_EXCEEDED = defineError({
116
116
  title: "AI provider spend limit reached for eval run",
117
117
  suggestion: "Try again after the spend limit window resets, or ask a Veryfront administrator to raise the AI provider spend limit",
118
118
  });
119
+ /**
120
+ * An eval stopped because the Veryfront Cloud gateway rejected the API
121
+ * credential for its model requests (HTTP 401).
122
+ */
123
+ export const EVAL_MODEL_UNAUTHORIZED = defineError({
124
+ slug: "eval-model-unauthorized",
125
+ category: "AGENT",
126
+ status: 401,
127
+ title: "Veryfront Cloud rejected the eval credential",
128
+ suggestion: "Run `veryfront login` to refresh your session, or set VERYFRONT_API_TOKEN to a valid token, then run the eval again",
129
+ });
130
+ /**
131
+ * An eval stopped because the Veryfront Cloud gateway denied the credential
132
+ * access to the linked project (HTTP 403).
133
+ */
134
+ export const EVAL_MODEL_PROJECT_ACCESS_DENIED = defineError({
135
+ slug: "eval-model-project-access-denied",
136
+ category: "AGENT",
137
+ status: 403,
138
+ title: "No access to the linked project for eval run",
139
+ suggestion: "Ensure your account can access the linked project. Check the project slug in veryfront.json, the project link, or VERYFRONT_PROJECT_SLUG, then run the eval again",
140
+ });
141
+ /**
142
+ * An eval stopped because the host egress policy blocked its model gateway
143
+ * request: the Veryfront API host resolves to a private network address. The
144
+ * policy blocks every later record the same way.
145
+ */
146
+ export const EVAL_MODEL_EGRESS_BLOCKED = defineError({
147
+ slug: "eval-model-egress-blocked",
148
+ category: "AGENT",
149
+ status: 403,
150
+ title: "Veryfront API blocked by network egress policy",
151
+ suggestion: "Veryfront blocks requests to hosts that resolve to private network addresses. If the Veryfront API runs on a private network you trust, such as a staging, VPN, or self-hosted deployment, add its exact origin (for example https://api.example.com) to VERYFRONT_HOST_ALLOWED_INTERNAL_PROVIDER_ORIGINS in the environment that runs veryfront eval, then run the eval again",
152
+ });
153
+ /**
154
+ * An eval record ran past its time limit. The limit covers the whole record:
155
+ * target execution, tools, model requests, metrics, and checks. A model stream
156
+ * that stops sending data after its response headers has no deadline of its
157
+ * own, so the record limit is what keeps an eval run from waiting forever.
158
+ */
159
+ export const EVAL_RECORD_TIMEOUT = defineError({
160
+ slug: "eval-record-timeout",
161
+ category: "AGENT",
162
+ status: 504,
163
+ title: "Eval record timed out",
164
+ suggestion: "The limit covers the whole record: target execution, tools, model requests, metrics, and checks. Run the eval again with LOG_LEVEL=DEBUG to see which phase stopped making progress, and check the record report for the phase that did not finish. If the record legitimately needs longer, raise the limit with --record-timeout <seconds>, or pass --record-timeout 0 to disable it.",
165
+ });
119
166
  /** Registry fragment for AGENT errors (slug → definition). */
120
167
  export const AGENT_REGISTRY = {
121
168
  "agent-error": AGENT_ERROR,
@@ -131,4 +178,8 @@ export const AGENT_REGISTRY = {
131
178
  "eval-model-access-denied": EVAL_MODEL_ACCESS_DENIED,
132
179
  "eval-project-required": EVAL_PROJECT_REQUIRED,
133
180
  "eval-model-spend-limit-exceeded": EVAL_MODEL_SPEND_LIMIT_EXCEEDED,
181
+ "eval-model-egress-blocked": EVAL_MODEL_EGRESS_BLOCKED,
182
+ "eval-model-unauthorized": EVAL_MODEL_UNAUTHORIZED,
183
+ "eval-model-project-access-denied": EVAL_MODEL_PROJECT_ACCESS_DENIED,
184
+ "eval-record-timeout": EVAL_RECORD_TIMEOUT,
134
185
  };
@@ -154,6 +154,10 @@ export declare const ERROR_REGISTRY: Readonly<{
154
154
  readonly "eval-model-access-denied": import("./types.js").RegisteredError;
155
155
  readonly "eval-project-required": import("./types.js").RegisteredError;
156
156
  readonly "eval-model-spend-limit-exceeded": import("./types.js").RegisteredError;
157
+ readonly "eval-model-egress-blocked": import("./types.js").RegisteredError;
158
+ readonly "eval-model-unauthorized": import("./types.js").RegisteredError;
159
+ readonly "eval-model-project-access-denied": import("./types.js").RegisteredError;
160
+ readonly "eval-record-timeout": import("./types.js").RegisteredError;
157
161
  }>;
158
162
  export type ErrorSlug = keyof typeof ERROR_REGISTRY;
159
163
  /**
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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"}
@@ -1,3 +1,3 @@
1
1
  /** Shared version value. */
2
- export declare const VERSION = "0.1.1259";
2
+ export declare const VERSION = "0.1.1260-rc.19599";
3
3
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-constant.d.ts","sourceRoot":"","sources":["../../../src/src/utils/version-constant.ts"],"names":[],"mappings":"AAEA,4BAA4B;AAC5B,eAAO,MAAM,OAAO,aAAa,CAAC"}
1
+ {"version":3,"file":"version-constant.d.ts","sourceRoot":"","sources":["../../../src/src/utils/version-constant.ts"],"names":[],"mappings":"AAEA,4BAA4B;AAC5B,eAAO,MAAM,OAAO,sBAAsB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
3
  /** Shared version value. */
4
- export const VERSION = "0.1.1259";
4
+ export const VERSION = "0.1.1260-rc.19599";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veryfront/ext-content-mdx",
3
- "version": "0.1.1259",
3
+ "version": "0.1.1260-rc.19599",
4
4
  "description": "Veryfront first-party extension package for ext-content-mdx",
5
5
  "keywords": [
6
6
  "veryfront",
@@ -53,7 +53,7 @@
53
53
  "@types/hast": "3.0.3",
54
54
  "@types/mdast": "4.0.3",
55
55
  "@types/unist": "3.0.2",
56
- "@veryfront/ext-parser-babel": "0.1.1259",
56
+ "@veryfront/ext-parser-babel": "0.1.1260-rc.19599",
57
57
  "acorn": "8.17.0",
58
58
  "acorn-jsx": "5.3.2",
59
59
  "github-slugger": "2.0.0",
@@ -82,7 +82,7 @@
82
82
  "vfile": "6.0.3"
83
83
  },
84
84
  "peerDependencies": {
85
- "veryfront": "^0.1.1259"
85
+ "veryfront": "^0.1.1260-rc.19599"
86
86
  },
87
87
  "type": "module",
88
88
  "types": "./esm/extensions/ext-content-mdx/src/index.d.ts",
@@ -92,5 +92,5 @@
92
92
  "NOTICE",
93
93
  "README.md"
94
94
  ],
95
- "gitHead": "704bb2a0794d29c122f5c6d22ea294cd2180a095"
95
+ "gitHead": "6669d9fbd742877f86b2f31c491926a5e2bbc658"
96
96
  }