@veryfront/ext-content-mdx 0.1.1259-rc.19504 → 0.1.1259
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 +1 -1
- package/esm/src/errors/error-registry/agent.d.ts +20 -0
- package/esm/src/errors/error-registry/agent.d.ts.map +1 -1
- package/esm/src/errors/error-registry/agent.js +38 -0
- package/esm/src/errors/error-registry.d.ts +3 -0
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.d.ts.map +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +4 -4
package/esm/deno.js
CHANGED
|
@@ -20,6 +20,23 @@ export declare const DEFAULT_MODEL_CREDENTIAL_MISMATCH: import("../types.js").Re
|
|
|
20
20
|
* signed reasoning material that must stay out of logs and error text.
|
|
21
21
|
*/
|
|
22
22
|
export declare const PROVIDER_REPLAY_CHECKPOINT_INVALID: import("../types.js").RegisteredError;
|
|
23
|
+
/**
|
|
24
|
+
* An eval stopped because the model gateway refused to serve its model
|
|
25
|
+
* requests for billing or entitlement reasons (HTTP 402). Every later record
|
|
26
|
+
* would fail the same way, so the run fails fast with one actionable error
|
|
27
|
+
* instead of grading empty outputs.
|
|
28
|
+
*/
|
|
29
|
+
export declare const EVAL_MODEL_ACCESS_DENIED: import("../types.js").RegisteredError;
|
|
30
|
+
/**
|
|
31
|
+
* An eval stopped because the Veryfront Cloud gateway rejected its model
|
|
32
|
+
* requests for naming no project (HTTP 400, `gateway_project_required`).
|
|
33
|
+
*/
|
|
34
|
+
export declare const EVAL_PROJECT_REQUIRED: import("../types.js").RegisteredError;
|
|
35
|
+
/**
|
|
36
|
+
* An eval stopped because Veryfront reached its AI provider spend limit for the
|
|
37
|
+
* current window. Buying credits does not clear this limit.
|
|
38
|
+
*/
|
|
39
|
+
export declare const EVAL_MODEL_SPEND_LIMIT_EXCEEDED: import("../types.js").RegisteredError;
|
|
23
40
|
/** Registry fragment for AGENT errors (slug → definition). */
|
|
24
41
|
export declare const AGENT_REGISTRY: {
|
|
25
42
|
readonly "agent-error": import("../types.js").RegisteredError;
|
|
@@ -32,5 +49,8 @@ export declare const AGENT_REGISTRY: {
|
|
|
32
49
|
readonly "durable-run-event-persistence-failed": import("../types.js").RegisteredError;
|
|
33
50
|
readonly "default-model-credential-mismatch": import("../types.js").RegisteredError;
|
|
34
51
|
readonly "provider-replay-checkpoint-invalid": import("../types.js").RegisteredError;
|
|
52
|
+
readonly "eval-model-access-denied": import("../types.js").RegisteredError;
|
|
53
|
+
readonly "eval-project-required": import("../types.js").RegisteredError;
|
|
54
|
+
readonly "eval-model-spend-limit-exceeded": import("../types.js").RegisteredError;
|
|
35
55
|
};
|
|
36
56
|
//# 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,iCAAiC,uCAM5C,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,uCAO7C,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,cAAc
|
|
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,iCAAiC,uCAM5C,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,uCAO7C,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,uCAOnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,uCAOhC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,+BAA+B,uCAO1C,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAcjB,CAAC"}
|
|
@@ -81,6 +81,41 @@ export const PROVIDER_REPLAY_CHECKPOINT_INVALID = defineError({
|
|
|
81
81
|
title: "Provider replay checkpoint is invalid",
|
|
82
82
|
suggestion: "Verify the trusted source that resolved the run's provider replay checkpoints; do not retry with the same replay state",
|
|
83
83
|
});
|
|
84
|
+
/**
|
|
85
|
+
* An eval stopped because the model gateway refused to serve its model
|
|
86
|
+
* requests for billing or entitlement reasons (HTTP 402). Every later record
|
|
87
|
+
* would fail the same way, so the run fails fast with one actionable error
|
|
88
|
+
* instead of grading empty outputs.
|
|
89
|
+
*/
|
|
90
|
+
export const EVAL_MODEL_ACCESS_DENIED = defineError({
|
|
91
|
+
slug: "eval-model-access-denied",
|
|
92
|
+
category: "AGENT",
|
|
93
|
+
status: 402,
|
|
94
|
+
title: "No model access for eval run",
|
|
95
|
+
suggestion: "Veryfront Cloud refused the model request for billing or entitlement reasons, not authentication. Add AI credits or upgrade the plan for the account that owns the linked project at https://veryfront.com/settings/billing, then run the eval again. See https://veryfront.com/docs/api/errors/insufficient-credits",
|
|
96
|
+
});
|
|
97
|
+
/**
|
|
98
|
+
* An eval stopped because the Veryfront Cloud gateway rejected its model
|
|
99
|
+
* requests for naming no project (HTTP 400, `gateway_project_required`).
|
|
100
|
+
*/
|
|
101
|
+
export const EVAL_PROJECT_REQUIRED = defineError({
|
|
102
|
+
slug: "eval-project-required",
|
|
103
|
+
category: "AGENT",
|
|
104
|
+
status: 400,
|
|
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)",
|
|
107
|
+
});
|
|
108
|
+
/**
|
|
109
|
+
* An eval stopped because Veryfront reached its AI provider spend limit for the
|
|
110
|
+
* current window. Buying credits does not clear this limit.
|
|
111
|
+
*/
|
|
112
|
+
export const EVAL_MODEL_SPEND_LIMIT_EXCEEDED = defineError({
|
|
113
|
+
slug: "eval-model-spend-limit-exceeded",
|
|
114
|
+
category: "AGENT",
|
|
115
|
+
status: 402,
|
|
116
|
+
title: "AI provider spend limit reached for eval run",
|
|
117
|
+
suggestion: "Try again after the spend limit window resets, or ask a Veryfront administrator to raise the AI provider spend limit",
|
|
118
|
+
});
|
|
84
119
|
/** Registry fragment for AGENT errors (slug → definition). */
|
|
85
120
|
export const AGENT_REGISTRY = {
|
|
86
121
|
"agent-error": AGENT_ERROR,
|
|
@@ -93,4 +128,7 @@ export const AGENT_REGISTRY = {
|
|
|
93
128
|
"durable-run-event-persistence-failed": DURABLE_RUN_EVENT_PERSISTENCE_FAILED,
|
|
94
129
|
"default-model-credential-mismatch": DEFAULT_MODEL_CREDENTIAL_MISMATCH,
|
|
95
130
|
"provider-replay-checkpoint-invalid": PROVIDER_REPLAY_CHECKPOINT_INVALID,
|
|
131
|
+
"eval-model-access-denied": EVAL_MODEL_ACCESS_DENIED,
|
|
132
|
+
"eval-project-required": EVAL_PROJECT_REQUIRED,
|
|
133
|
+
"eval-model-spend-limit-exceeded": EVAL_MODEL_SPEND_LIMIT_EXCEEDED,
|
|
96
134
|
};
|
|
@@ -151,6 +151,9 @@ export declare const ERROR_REGISTRY: Readonly<{
|
|
|
151
151
|
readonly "durable-run-event-persistence-failed": import("./types.js").RegisteredError;
|
|
152
152
|
readonly "default-model-credential-mismatch": import("./types.js").RegisteredError;
|
|
153
153
|
readonly "provider-replay-checkpoint-invalid": import("./types.js").RegisteredError;
|
|
154
|
+
readonly "eval-model-access-denied": import("./types.js").RegisteredError;
|
|
155
|
+
readonly "eval-project-required": import("./types.js").RegisteredError;
|
|
156
|
+
readonly "eval-model-spend-limit-exceeded": import("./types.js").RegisteredError;
|
|
154
157
|
}>;
|
|
155
158
|
export type ErrorSlug = keyof typeof ERROR_REGISTRY;
|
|
156
159
|
/**
|
|
@@ -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"}
|
|
@@ -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,
|
|
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"}
|
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.1259",
|
|
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.1259",
|
|
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.1259"
|
|
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": "
|
|
95
|
+
"gitHead": "704bb2a0794d29c122f5c6d22ea294cd2180a095"
|
|
96
96
|
}
|