agentv 2.5.8 → 2.7.1-next.1
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/README.md +128 -33
- package/dist/chunk-3L2L5GIL.js +51 -0
- package/dist/{chunk-BKMQNEUD.js.map → chunk-3L2L5GIL.js.map} +1 -1
- package/dist/{chunk-BKMQNEUD.js → chunk-5H446C7X.js} +2 -45
- package/dist/chunk-6MPKU3K7.js +5476 -0
- package/dist/chunk-6MPKU3K7.js.map +1 -0
- package/dist/{chunk-LJVS3JAK.js → chunk-BL4PVUAT.js} +6 -4
- package/dist/{chunk-LJVS3JAK.js.map → chunk-BL4PVUAT.js.map} +1 -1
- package/dist/{chunk-H7Z5TVCB.js → chunk-BWLYFF5N.js} +9824 -11251
- package/dist/chunk-BWLYFF5N.js.map +1 -0
- package/dist/chunk-C5GOHBQM.js +84 -0
- package/dist/chunk-C5GOHBQM.js.map +1 -0
- package/dist/chunk-FV32QHPB.js +565 -0
- package/dist/chunk-FV32QHPB.js.map +1 -0
- package/dist/chunk-H5FFZCKI.js +2957 -0
- package/dist/chunk-H5FFZCKI.js.map +1 -0
- package/dist/chunk-JK6V4KVD.js +114 -0
- package/dist/chunk-JK6V4KVD.js.map +1 -0
- package/dist/chunk-LRULMAAA.js +1711 -0
- package/dist/chunk-LRULMAAA.js.map +1 -0
- package/dist/chunk-SR4I5KET.js +1238 -0
- package/dist/chunk-SR4I5KET.js.map +1 -0
- package/dist/chunk-VQ2ZO7XJ.js +2098 -0
- package/dist/chunk-VQ2ZO7XJ.js.map +1 -0
- package/dist/chunk-XALGXSKB.js +21 -0
- package/dist/chunk-XALGXSKB.js.map +1 -0
- package/dist/cli.js +8 -2
- package/dist/cli.js.map +1 -1
- package/dist/dist-R3OCWGXH.js +257 -0
- package/dist/dist-R3OCWGXH.js.map +1 -0
- package/dist/esm-5Q4BZALM-5REQWAUV.js +924 -0
- package/dist/esm-5Q4BZALM-5REQWAUV.js.map +1 -0
- package/dist/esm-DX3WQKEN.js +32 -0
- package/dist/esm-DX3WQKEN.js.map +1 -0
- package/dist/esm-QNEMCJPL.js +933 -0
- package/dist/esm-QNEMCJPL.js.map +1 -0
- package/dist/esm-R77SNOF5.js +65 -0
- package/dist/esm-R77SNOF5.js.map +1 -0
- package/dist/esm-RVQPUGWH.js +1207 -0
- package/dist/esm-RVQPUGWH.js.map +1 -0
- package/dist/getMachineId-bsd-HSK5LZMG.js +41 -0
- package/dist/getMachineId-bsd-HSK5LZMG.js.map +1 -0
- package/dist/getMachineId-darwin-4DP6CCJV.js +41 -0
- package/dist/getMachineId-darwin-4DP6CCJV.js.map +1 -0
- package/dist/getMachineId-linux-44LJ5UJB.js +33 -0
- package/dist/getMachineId-linux-44LJ5UJB.js.map +1 -0
- package/dist/getMachineId-unsupported-NVK6IATM.js +24 -0
- package/dist/getMachineId-unsupported-NVK6IATM.js.map +1 -0
- package/dist/getMachineId-win-YZ36S7VA.js +43 -0
- package/dist/getMachineId-win-YZ36S7VA.js.map +1 -0
- package/dist/index.js +10 -2
- package/dist/interactive-33TCZXLF.js +333 -0
- package/dist/interactive-33TCZXLF.js.map +1 -0
- package/dist/otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js +9 -0
- package/dist/otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js.map +1 -0
- package/dist/simple-trace-file-exporter-S76DMABU-5FCJESD2.js +9 -0
- package/dist/simple-trace-file-exporter-S76DMABU-5FCJESD2.js.map +1 -0
- package/dist/src-2N5EJ2N6.js +1733 -0
- package/dist/src-2N5EJ2N6.js.map +1 -0
- package/dist/templates/.agents/skills/agentv-chat-to-eval/README.md +84 -0
- package/dist/templates/.agents/skills/agentv-chat-to-eval/SKILL.md +144 -0
- package/dist/templates/.agents/skills/agentv-chat-to-eval/examples/transcript-json.md +67 -0
- package/dist/templates/.agents/skills/agentv-chat-to-eval/examples/transcript-markdown.md +101 -0
- package/dist/templates/.agents/skills/agentv-eval-builder/SKILL.md +433 -0
- package/dist/templates/.agents/skills/agentv-eval-builder/references/config-schema.json +36 -0
- package/dist/templates/.agents/skills/agentv-eval-builder/references/custom-evaluators.md +118 -0
- package/dist/templates/.agents/skills/agentv-eval-builder/references/eval-schema.json +251 -0
- package/dist/templates/.agents/skills/agentv-eval-builder/references/rubric-evaluator.md +77 -0
- package/dist/templates/.agents/skills/agentv-eval-orchestrator/SKILL.md +50 -0
- package/dist/templates/.agents/skills/agentv-prompt-optimizer/SKILL.md +78 -0
- package/dist/templates/.claude/skills/agentv-eval-builder/SKILL.md +38 -13
- package/dist/templates/.claude/skills/agentv-eval-builder/references/custom-evaluators.md +9 -6
- package/dist/templates/.claude/skills/agentv-eval-builder/references/eval-schema.json +4 -4
- package/dist/templates/.claude/skills/agentv-eval-builder/references/rubric-evaluator.md +7 -9
- package/dist/{token-D3IYDJQZ.js → token-POXF46NU.js} +6 -4
- package/dist/{token-D3IYDJQZ.js.map → token-POXF46NU.js.map} +1 -1
- package/dist/{token-util-FWFPR2BV.js → token-util-6GWYZWGE.js} +4 -3
- package/dist/token-util-6GWYZWGE.js.map +1 -0
- package/package.json +9 -5
- package/dist/chunk-H7Z5TVCB.js.map +0 -1
- /package/dist/{token-util-FWFPR2BV.js.map → chunk-5H446C7X.js.map} +0 -0
package/README.md
CHANGED
|
@@ -27,19 +27,18 @@ description: Math problem solving evaluation
|
|
|
27
27
|
execution:
|
|
28
28
|
target: default
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
tests:
|
|
31
31
|
- id: addition
|
|
32
|
-
|
|
32
|
+
criteria: Correctly calculates 15 + 27 = 42
|
|
33
33
|
|
|
34
34
|
input: What is 15 + 27?
|
|
35
35
|
|
|
36
36
|
expected_output: "42"
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
script: ./validators/check_math.py
|
|
38
|
+
assert:
|
|
39
|
+
- name: math_check
|
|
40
|
+
type: code_judge
|
|
41
|
+
script: ./validators/check_math.py
|
|
43
42
|
```
|
|
44
43
|
|
|
45
44
|
**5. Run the eval:**
|
|
@@ -95,6 +94,25 @@ bun test
|
|
|
95
94
|
|
|
96
95
|
See [AGENTS.md](AGENTS.md) for development guidelines and design principles.
|
|
97
96
|
|
|
97
|
+
### Releasing
|
|
98
|
+
|
|
99
|
+
Stable release:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
bun run release # patch bump
|
|
103
|
+
bun run release minor
|
|
104
|
+
bun run release major
|
|
105
|
+
bun run publish # publish to npm `latest`
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Prerelease (`next`) channel:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
bun run release:next # bump/increment `-next.N`
|
|
112
|
+
bun run release:next major # start new major prerelease line
|
|
113
|
+
bun run publish:next # publish to npm `next`
|
|
114
|
+
```
|
|
115
|
+
|
|
98
116
|
## Core Concepts
|
|
99
117
|
|
|
100
118
|
**Evaluation files** (`.yaml` or `.jsonl`) define test cases with expected outcomes. **Targets** specify which agent/provider to evaluate. **Judges** (code or LLM) score results. **Results** are written as JSONL/YAML for analysis and comparison.
|
|
@@ -104,11 +122,11 @@ See [AGENTS.md](AGENTS.md) for development guidelines and design principles.
|
|
|
104
122
|
For large-scale evaluations, AgentV supports JSONL (JSON Lines) format as an alternative to YAML:
|
|
105
123
|
|
|
106
124
|
```jsonl
|
|
107
|
-
{"id": "test-1", "
|
|
108
|
-
{"id": "test-2", "
|
|
125
|
+
{"id": "test-1", "criteria": "Calculates correctly", "input": "What is 2+2?"}
|
|
126
|
+
{"id": "test-2", "criteria": "Provides explanation", "input": "Explain variables"}
|
|
109
127
|
```
|
|
110
128
|
|
|
111
|
-
Optional sidecar YAML metadata file (`dataset.yaml` alongside `dataset.jsonl`):
|
|
129
|
+
Optional sidecar YAML metadata file (`dataset.eval.yaml` alongside `dataset.jsonl`):
|
|
112
130
|
```yaml
|
|
113
131
|
description: Math evaluation dataset
|
|
114
132
|
dataset: math-tests
|
|
@@ -133,8 +151,8 @@ agentv eval evals/my-eval.yaml
|
|
|
133
151
|
# Override target
|
|
134
152
|
agentv eval --target azure_base evals/**/*.yaml
|
|
135
153
|
|
|
136
|
-
# Run specific
|
|
137
|
-
agentv eval --
|
|
154
|
+
# Run specific test
|
|
155
|
+
agentv eval --test-id case-123 evals/my-eval.yaml
|
|
138
156
|
|
|
139
157
|
# Dry-run with mock provider
|
|
140
158
|
agentv eval --dry-run evals/my-eval.yaml
|
|
@@ -150,12 +168,12 @@ Write code judges in Python or TypeScript:
|
|
|
150
168
|
# validators/check_answer.py
|
|
151
169
|
import json, sys
|
|
152
170
|
data = json.load(sys.stdin)
|
|
153
|
-
|
|
171
|
+
answer = data.get("answer", "")
|
|
154
172
|
|
|
155
173
|
hits = []
|
|
156
174
|
misses = []
|
|
157
175
|
|
|
158
|
-
if "42" in
|
|
176
|
+
if "42" in answer:
|
|
159
177
|
hits.append("Answer contains correct value (42)")
|
|
160
178
|
else:
|
|
161
179
|
misses.append("Answer does not contain expected value (42)")
|
|
@@ -173,15 +191,91 @@ print(json.dumps({
|
|
|
173
191
|
Reference evaluators in your eval file:
|
|
174
192
|
|
|
175
193
|
```yaml
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
script: ./validators/check_answer.py
|
|
194
|
+
assert:
|
|
195
|
+
- name: my_validator
|
|
196
|
+
type: code_judge
|
|
197
|
+
script: ./validators/check_answer.py
|
|
181
198
|
```
|
|
182
199
|
|
|
183
200
|
For complete templates, examples, and evaluator patterns, see: [custom-evaluators](https://agentv.dev/evaluators/custom-evaluators/)
|
|
184
201
|
|
|
202
|
+
### TypeScript SDK
|
|
203
|
+
|
|
204
|
+
#### Custom Assertions with `defineAssertion()`
|
|
205
|
+
|
|
206
|
+
Create custom assertion types in TypeScript using `@agentv/eval`:
|
|
207
|
+
|
|
208
|
+
```typescript
|
|
209
|
+
// .agentv/assertions/word-count.ts
|
|
210
|
+
import { defineAssertion } from '@agentv/eval';
|
|
211
|
+
|
|
212
|
+
export default defineAssertion(({ answer }) => {
|
|
213
|
+
const wordCount = answer.trim().split(/\s+/).length;
|
|
214
|
+
return {
|
|
215
|
+
pass: wordCount >= 3,
|
|
216
|
+
reasoning: `Output has ${wordCount} words`,
|
|
217
|
+
};
|
|
218
|
+
});
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
Files in `.agentv/assertions/` are auto-discovered by filename — use directly in YAML:
|
|
222
|
+
|
|
223
|
+
```yaml
|
|
224
|
+
assert:
|
|
225
|
+
- type: word-count # matches word-count.ts
|
|
226
|
+
- type: contains
|
|
227
|
+
value: "Hello"
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
See the [sdk-custom-assertion example](examples/features/sdk-custom-assertion).
|
|
231
|
+
|
|
232
|
+
#### Programmatic API with `evaluate()`
|
|
233
|
+
|
|
234
|
+
Use AgentV as a library — no YAML needed:
|
|
235
|
+
|
|
236
|
+
```typescript
|
|
237
|
+
import { evaluate } from '@agentv/core';
|
|
238
|
+
|
|
239
|
+
const { results, summary } = await evaluate({
|
|
240
|
+
tests: [
|
|
241
|
+
{
|
|
242
|
+
id: 'greeting',
|
|
243
|
+
input: 'Say hello',
|
|
244
|
+
assert: [{ type: 'contains', value: 'Hello' }],
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
console.log(`${summary.passed}/${summary.total} passed`);
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
Auto-discovers `default` target from `.agentv/targets.yaml` and `.env` credentials. See the [sdk-programmatic-api example](examples/features/sdk-programmatic-api).
|
|
253
|
+
|
|
254
|
+
#### Typed Configuration with `defineConfig()`
|
|
255
|
+
|
|
256
|
+
Create `agentv.config.ts` at your project root for typed, validated configuration:
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
import { defineConfig } from '@agentv/core';
|
|
260
|
+
|
|
261
|
+
export default defineConfig({
|
|
262
|
+
execution: { workers: 5, maxRetries: 2 },
|
|
263
|
+
output: { format: 'jsonl', dir: './results' },
|
|
264
|
+
limits: { maxCostUsd: 10.0 },
|
|
265
|
+
});
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
See the [sdk-config-file example](examples/features/sdk-config-file).
|
|
269
|
+
|
|
270
|
+
#### Scaffold Commands
|
|
271
|
+
|
|
272
|
+
Bootstrap new assertions and eval files:
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
agentv create assertion sentiment # → .agentv/assertions/sentiment.ts
|
|
276
|
+
agentv create eval my-eval # → evals/my-eval.eval.yaml + .cases.jsonl
|
|
277
|
+
```
|
|
278
|
+
|
|
185
279
|
### Compare Evaluation Results
|
|
186
280
|
|
|
187
281
|
Run two evaluations and compare them:
|
|
@@ -218,7 +312,7 @@ targets:
|
|
|
218
312
|
judge_target: azure_base
|
|
219
313
|
```
|
|
220
314
|
|
|
221
|
-
Supports: `azure`, `anthropic`, `gemini`, `codex`, `pi-coding-agent`, `claude
|
|
315
|
+
Supports: `azure`, `anthropic`, `gemini`, `codex`, `copilot`, `pi-coding-agent`, `claude`, `vscode`, `vscode-insiders`, `cli`, and `mock`.
|
|
222
316
|
|
|
223
317
|
Use `${{ VARIABLE_NAME }}` syntax to reference your `.env` file. See `.agentv/targets.yaml` after `agentv init` for detailed examples and all provider-specific fields.
|
|
224
318
|
|
|
@@ -229,7 +323,7 @@ Use `${{ VARIABLE_NAME }}` syntax to reference your `.env` file. See `.agentv/ta
|
|
|
229
323
|
Write validators in any language (Python, TypeScript, Node, etc.):
|
|
230
324
|
|
|
231
325
|
```bash
|
|
232
|
-
# Input: stdin JSON with question,
|
|
326
|
+
# Input: stdin JSON with question, criteria, answer
|
|
233
327
|
# Output: stdout JSON with score (0-1), hits, misses, reasoning
|
|
234
328
|
```
|
|
235
329
|
|
|
@@ -242,30 +336,31 @@ For complete examples and patterns, see:
|
|
|
242
336
|
Create markdown judge files with evaluation criteria and scoring guidelines:
|
|
243
337
|
|
|
244
338
|
```yaml
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
prompt: ./judges/correctness.md
|
|
339
|
+
assert:
|
|
340
|
+
- name: semantic_check
|
|
341
|
+
type: llm_judge
|
|
342
|
+
prompt: ./judges/correctness.md
|
|
250
343
|
```
|
|
251
344
|
|
|
252
345
|
Your judge prompt file defines criteria and scoring guidelines.
|
|
253
346
|
|
|
254
347
|
### Rubric-Based Evaluation
|
|
255
348
|
|
|
256
|
-
Define structured criteria directly in your
|
|
349
|
+
Define structured criteria directly in your test:
|
|
257
350
|
|
|
258
351
|
```yaml
|
|
259
|
-
|
|
352
|
+
tests:
|
|
260
353
|
- id: quicksort-explain
|
|
261
|
-
|
|
354
|
+
criteria: Explain how quicksort works
|
|
262
355
|
|
|
263
356
|
input: Explain quicksort algorithm
|
|
264
357
|
|
|
265
|
-
|
|
266
|
-
-
|
|
267
|
-
|
|
268
|
-
|
|
358
|
+
assert:
|
|
359
|
+
- type: rubrics
|
|
360
|
+
criteria:
|
|
361
|
+
- Mentions divide-and-conquer approach
|
|
362
|
+
- Explains partition step
|
|
363
|
+
- States time complexity
|
|
269
364
|
```
|
|
270
365
|
|
|
271
366
|
Scoring: `(satisfied weights) / (total weights)` → verdicts: `pass` (≥0.8), `borderline` (≥0.6), `fail`
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
__commonJS
|
|
4
|
+
} from "./chunk-5H446C7X.js";
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/.bun/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js
|
|
7
|
+
var require_token_error = __commonJS({
|
|
8
|
+
"../../node_modules/.bun/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js"(exports, module) {
|
|
9
|
+
"use strict";
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var token_error_exports = {};
|
|
28
|
+
__export(token_error_exports, {
|
|
29
|
+
VercelOidcTokenError: () => VercelOidcTokenError
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(token_error_exports);
|
|
32
|
+
var VercelOidcTokenError = class extends Error {
|
|
33
|
+
constructor(message, cause) {
|
|
34
|
+
super(message);
|
|
35
|
+
this.name = "VercelOidcTokenError";
|
|
36
|
+
this.cause = cause;
|
|
37
|
+
}
|
|
38
|
+
toString() {
|
|
39
|
+
if (this.cause) {
|
|
40
|
+
return `${this.name}: ${this.message}: ${this.cause}`;
|
|
41
|
+
}
|
|
42
|
+
return `${this.name}: ${this.message}`;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
require_token_error
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=chunk-3L2L5GIL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.bun/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_error_exports = {};\n__export(token_error_exports, {\n VercelOidcTokenError: () => VercelOidcTokenError\n});\nmodule.exports = __toCommonJS(token_error_exports);\nclass VercelOidcTokenError extends Error {\n constructor(message, cause) {\n super(message);\n this.name = \"VercelOidcTokenError\";\n this.cause = cause;\n }\n toString() {\n if (this.cause) {\n return `${this.name}: ${this.message}: ${this.cause}`;\n }\n return `${this.name}: ${this.message}`;\n }\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n VercelOidcTokenError\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.bun/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_error_exports = {};\n__export(token_error_exports, {\n VercelOidcTokenError: () => VercelOidcTokenError\n});\nmodule.exports = __toCommonJS(token_error_exports);\nclass VercelOidcTokenError extends Error {\n constructor(message, cause) {\n super(message);\n this.name = \"VercelOidcTokenError\";\n this.cause = cause;\n }\n toString() {\n if (this.cause) {\n return `${this.name}: ${this.message}: ${this.cause}`;\n }\n return `${this.name}: ${this.message}`;\n }\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n VercelOidcTokenError\n});\n"],"mappings":";;;;;;AAAA;AAAA;AAAA;AACA,QAAI,YAAY,OAAO;AACvB,QAAI,mBAAmB,OAAO;AAC9B,QAAI,oBAAoB,OAAO;AAC/B,QAAI,eAAe,OAAO,UAAU;AACpC,QAAI,WAAW,CAAC,QAAQ,QAAQ;AAC9B,eAAS,QAAQ;AACf,kBAAU,QAAQ,MAAM,EAAE,KAAK,IAAI,IAAI,GAAG,YAAY,KAAK,CAAC;AAAA,IAChE;AACA,QAAI,cAAc,CAAC,IAAI,MAAM,QAAQ,SAAS;AAC5C,UAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;AAClE,iBAAS,OAAO,kBAAkB,IAAI;AACpC,cAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ;AACzC,sBAAU,IAAI,KAAK,EAAE,KAAK,MAAM,KAAK,GAAG,GAAG,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK,WAAW,CAAC;AAAA,MACvH;AACA,aAAO;AAAA,IACT;AACA,QAAI,eAAe,CAAC,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,QAAI,sBAAsB,CAAC;AAC3B,aAAS,qBAAqB;AAAA,MAC5B,sBAAsB,MAAM;AAAA,IAC9B,CAAC;AACD,WAAO,UAAU,aAAa,mBAAmB;AACjD,QAAM,uBAAN,cAAmC,MAAM;AAAA,MACvC,YAAY,SAAS,OAAO;AAC1B,cAAM,OAAO;AACb,aAAK,OAAO;AACZ,aAAK,QAAQ;AAAA,MACf;AAAA,MACA,WAAW;AACT,YAAI,KAAK,OAAO;AACd,iBAAO,GAAG,KAAK,IAAI,KAAK,KAAK,OAAO,KAAK,KAAK,KAAK;AAAA,QACrD;AACA,eAAO,GAAG,KAAK,IAAI,KAAK,KAAK,OAAO;AAAA,MACtC;AAAA,IACF;AAAA;AAAA;","names":[]}
|
|
@@ -39,55 +39,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
39
39
|
));
|
|
40
40
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
41
41
|
|
|
42
|
-
// ../../node_modules/.bun/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js
|
|
43
|
-
var require_token_error = __commonJS({
|
|
44
|
-
"../../node_modules/.bun/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-error.js"(exports, module) {
|
|
45
|
-
"use strict";
|
|
46
|
-
var __defProp2 = Object.defineProperty;
|
|
47
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
48
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
49
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
50
|
-
var __export2 = (target, all) => {
|
|
51
|
-
for (var name in all)
|
|
52
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
53
|
-
};
|
|
54
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
55
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
56
|
-
for (let key of __getOwnPropNames2(from))
|
|
57
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
58
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
59
|
-
}
|
|
60
|
-
return to;
|
|
61
|
-
};
|
|
62
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
63
|
-
var token_error_exports = {};
|
|
64
|
-
__export2(token_error_exports, {
|
|
65
|
-
VercelOidcTokenError: () => VercelOidcTokenError
|
|
66
|
-
});
|
|
67
|
-
module.exports = __toCommonJS2(token_error_exports);
|
|
68
|
-
var VercelOidcTokenError = class extends Error {
|
|
69
|
-
constructor(message, cause) {
|
|
70
|
-
super(message);
|
|
71
|
-
this.name = "VercelOidcTokenError";
|
|
72
|
-
this.cause = cause;
|
|
73
|
-
}
|
|
74
|
-
toString() {
|
|
75
|
-
if (this.cause) {
|
|
76
|
-
return `${this.name}: ${this.message}: ${this.cause}`;
|
|
77
|
-
}
|
|
78
|
-
return `${this.name}: ${this.message}`;
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
|
|
84
42
|
export {
|
|
85
43
|
__require,
|
|
86
44
|
__esm,
|
|
87
45
|
__commonJS,
|
|
88
46
|
__export,
|
|
89
47
|
__toESM,
|
|
90
|
-
__toCommonJS
|
|
91
|
-
require_token_error
|
|
48
|
+
__toCommonJS
|
|
92
49
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
50
|
+
//# sourceMappingURL=chunk-5H446C7X.js.map
|