anpord 0.1.24 → 0.1.25
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 +48 -19
- package/dist/api-context.cjs +1 -1
- package/dist/api-context.d.cts +1 -1
- package/dist/api-context.d.mts +1 -1
- package/dist/api-context.mjs +1 -1
- package/dist/{eval-validations-CZm7vVtQ.cjs → api-mocks-BEorMdN5.cjs} +72 -6
- package/dist/{eval-validations-DNO-qwkU.mjs → api-mocks-RCkffSgG.mjs} +31 -1
- package/dist/{api-mocks-ofqP55P_.d.cts → api-mocks-bVa7eYtc.d.cts} +15 -15
- package/dist/{api-mocks-ofqP55P_.d.mts → api-mocks-bVa7eYtc.d.mts} +15 -15
- package/dist/api-runtime.cjs +1 -1
- package/dist/api-runtime.d.cts +1 -1
- package/dist/api-runtime.d.mts +1 -1
- package/dist/api-runtime.mjs +1 -1
- package/dist/api.cjs +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.mts +1 -1
- package/dist/api.mjs +1 -1
- package/dist/bin.cjs +15169 -4061
- package/dist/bin.mjs +15155 -4045
- package/dist/{calls-DJGZJPrF.d.cts → calls-DYqBi5FA.d.cts} +1 -1
- package/dist/{calls-DJGZJPrF.d.mts → calls-DYqBi5FA.d.mts} +1 -1
- package/dist/{calls-6Z1EoEa-.d.cts → calls-Drj_dZpu.d.cts} +1 -1
- package/dist/{calls-6Z1EoEa-.d.mts → calls-Drj_dZpu.d.mts} +1 -1
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.mts +1 -1
- package/dist/command-C_8h4IdD.d.cts +9 -0
- package/dist/command-C_8h4IdD.d.mts +9 -0
- package/dist/command.cjs +13 -0
- package/dist/command.d.cts +2 -0
- package/dist/command.d.mts +2 -0
- package/dist/command.mjs +11 -0
- package/dist/{compiler-D9jidpZ0.mjs → compiler-BHRygPwI.mjs} +456 -122
- package/dist/{compiler-B1UrHfCL.cjs → compiler-yPa4imwi.cjs} +537 -137
- package/dist/errors-C3VZHByw.cjs +944 -0
- package/dist/errors-CvwbNKSb.mjs +849 -0
- package/dist/eval-definition-BP1gJPPO.d.cts +421 -0
- package/dist/eval-definition-BP1gJPPO.d.mts +421 -0
- package/dist/{eval-turns-CTCoSuB6.d.cts → eval-turns-Uwe0G7PS.d.cts} +1 -1
- package/dist/{eval-turns-CTCoSuB6.d.mts → eval-turns-Uwe0G7PS.d.mts} +1 -1
- package/dist/eval.cjs +1 -1
- package/dist/eval.d.cts +4 -3
- package/dist/eval.d.mts +4 -3
- package/dist/eval.mjs +1 -1
- package/dist/index.cjs +83 -95
- package/dist/index.d.cts +3985 -156
- package/dist/index.d.mts +3985 -156
- package/dist/index.mjs +84 -87
- package/dist/mcp.d.cts +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/{runtime-CYr8RbsW.mjs → runtime-B58_CBI5.mjs} +1 -2
- package/dist/{runtime-Bfs2j0jW.cjs → runtime-DX_9jN8J.cjs} +3 -4
- package/dist/source.d.cts +1 -1
- package/dist/source.d.mts +1 -1
- package/dist/{evals-Dw2Ek-mx.d.cts → types-C26_zN2f.d.cts} +1038 -758
- package/dist/{evals-Dw2Ek-mx.d.mts → types-l55NqLxW.d.mts} +1038 -758
- package/dist/validator-runtime.cjs +5 -5
- package/dist/validator-runtime.d.cts +1 -1
- package/dist/validator-runtime.d.mts +1 -1
- package/dist/validator-runtime.mjs +1 -1
- package/dist/validators.cjs +0 -39
- package/dist/validators.d.cts +2 -36
- package/dist/validators.d.mts +2 -36
- package/dist/validators.mjs +1 -39
- package/package.json +2 -8
- package/dist/api-mocks-BYWvJp9v.mjs +0 -33
- package/dist/api-mocks-CgiC7T9U.cjs +0 -74
- package/dist/client-B3LQU8cc.d.cts +0 -9410
- package/dist/client-CWVAt_wk.cjs +0 -281
- package/dist/client-CfPf0hIc.mjs +0 -240
- package/dist/client-Cg1qFD01.d.mts +0 -9410
- package/dist/config.cjs +0 -18
- package/dist/config.d.cts +0 -13
- package/dist/config.d.mts +0 -13
- package/dist/config.mjs +0 -13
- package/dist/errors-B0YknR5V.mjs +0 -58
- package/dist/errors-BX1wry8K.cjs +0 -81
- package/dist/errors-aGrd21jy.d.cts +0 -34
- package/dist/errors-aGrd21jy.d.mts +0 -34
- package/dist/evals-api-DUiZWsyC.cjs +0 -976
- package/dist/evals-api-NLUUV9tM.mjs +0 -845
- package/dist/types-BnCBSiXY.d.cts +0 -352
- package/dist/types-DiNkJRDh.d.mts +0 -352
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# anpord
|
|
2
2
|
|
|
3
|
-
TypeScript SDK for [Anpord](https://anpord.com). Define coding-agent evals, run them
|
|
3
|
+
TypeScript SDK and CLI for [Anpord](https://anpord.com). Define coding-agent evals, run them on different harnesses, models and sandboxes, and manage versioned prompts.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -8,32 +8,44 @@ TypeScript SDK for [Anpord](https://anpord.com). Define coding-agent evals, run
|
|
|
8
8
|
npm install anpord
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
## Define
|
|
11
|
+
## Define a suite
|
|
12
|
+
|
|
13
|
+
A suite groups cases that share a prompt and setup. Suites and cases need an `id`, a lowercase handle such as `writes-hello`; a `name` is optional and defaults to the id. Each variant is a harness, model and sandbox to run every case on, with an optional profile.
|
|
12
14
|
|
|
13
15
|
```ts
|
|
14
|
-
import { suite, empty } from "anpord";
|
|
16
|
+
import { command, suite, empty } from "anpord";
|
|
15
17
|
|
|
16
18
|
export default suite({
|
|
17
|
-
|
|
19
|
+
id: "greeting",
|
|
18
20
|
source: empty,
|
|
19
21
|
prompt: "{{task}}",
|
|
20
22
|
cases: [
|
|
21
23
|
{
|
|
22
|
-
|
|
24
|
+
id: "writes-hello",
|
|
23
25
|
variables: { task: "Create hello.txt containing exactly hello" },
|
|
24
|
-
|
|
26
|
+
validate: command('test "$(cat hello.txt)" = hello'),
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
variants: [
|
|
30
|
+
{ harness: "codex", model: "gpt-5.6-sol" },
|
|
31
|
+
{ harness: "claude", model: "sonnet", sandbox: "daytona" },
|
|
32
|
+
{
|
|
33
|
+
harness: "opencode",
|
|
34
|
+
model: "anthropic/claude-sonnet-4.6",
|
|
35
|
+
profile: { dir: "./profiles/strict", name: "strict" },
|
|
25
36
|
},
|
|
26
37
|
],
|
|
27
|
-
tasks: [{ harness: "codex", model: "model-id", provider: "daytona" }],
|
|
28
38
|
trials: 3,
|
|
29
39
|
});
|
|
30
40
|
```
|
|
31
41
|
|
|
42
|
+
A case has one `validate`: a shell `command(...)` whose exit code decides the trial, a validator function, a model judge, or an array of validators and judges that must all pass. A command decides a case on its own and cannot go in an array.
|
|
43
|
+
|
|
32
44
|
```sh
|
|
33
45
|
npx anpord eval ./greeting.eval.ts
|
|
34
46
|
```
|
|
35
47
|
|
|
36
|
-
With no file, the CLI
|
|
48
|
+
Each file starts a batch: one run per case per variant. Each run makes `trials` attempts, each in its own sandbox. With no file, the CLI finds every `*.eval.ts` file under the current directory.
|
|
37
49
|
|
|
38
50
|
## Mock MCP and CLI
|
|
39
51
|
|
|
@@ -82,7 +94,7 @@ export const usersCli = cli({
|
|
|
82
94
|
});
|
|
83
95
|
```
|
|
84
96
|
|
|
85
|
-
Attach
|
|
97
|
+
Attach them to a suite with `mcp: [usersMcp]` or `cli: [usersCli]`. Schemas type the handlers and validate calls at runtime. The `command` from `anpord/cli` declares a mock CLI command, unlike the `command` validator from `anpord`, so alias one of them in a file that imports both.
|
|
86
98
|
|
|
87
99
|
## Model judges
|
|
88
100
|
|
|
@@ -99,28 +111,45 @@ const correctness = judge({
|
|
|
99
111
|
});
|
|
100
112
|
```
|
|
101
113
|
|
|
102
|
-
Set `validate: correctness
|
|
114
|
+
Set `validate: correctness` on a case, or combine it with code: `validate: [checkToolCalls, correctness]`. Every check must pass. A judge with `harness` uses that harness connection, including a ChatGPT sign-in for Codex. To call OpenAI directly, use `provider: "openai"` and add an OpenAI model connection.
|
|
103
115
|
|
|
104
|
-
See [model judges](https://docs.anpord.com/evals/judges) for isolation, authentication
|
|
116
|
+
See [model judges](https://docs.anpord.com/evals/judges) for isolation, authentication and unscored failures.
|
|
105
117
|
|
|
106
|
-
##
|
|
118
|
+
## Start a batch from code
|
|
107
119
|
|
|
108
120
|
```ts
|
|
109
121
|
import { Anpord } from "anpord";
|
|
110
|
-
import
|
|
122
|
+
import greeting from "./greeting.eval";
|
|
111
123
|
|
|
112
124
|
const anpord = new Anpord();
|
|
113
|
-
const
|
|
114
|
-
await compileEval("./greeting.eval.ts")
|
|
115
|
-
);
|
|
125
|
+
const batch = await anpord.evals.batches.startAndWait(greeting);
|
|
116
126
|
|
|
117
|
-
console.log(
|
|
127
|
+
console.log(batch.status, batch.runs);
|
|
118
128
|
await anpord.dispose();
|
|
119
129
|
```
|
|
120
130
|
|
|
121
|
-
The client reads `ANPORD_API_KEY`.
|
|
131
|
+
The client reads `ANPORD_API_KEY`. `batch.runs` holds one run per case and variant, each with its trials and pass rate. `evals.batches.start` returns as soon as the batch is started, and `evals.batches.wait({ id })` waits on one started earlier.
|
|
132
|
+
|
|
133
|
+
## Read and rerun from code
|
|
134
|
+
|
|
135
|
+
```ts
|
|
136
|
+
const { cases } = await anpord.evals.cases.list({ suite: "greeting" });
|
|
137
|
+
const detail = await anpord.evals.cases.get({ id: "writes-hello" });
|
|
138
|
+
|
|
139
|
+
const rerun = await anpord.evals.cases.run({
|
|
140
|
+
id: "writes-hello",
|
|
141
|
+
trials: 3,
|
|
142
|
+
variants: detail.variants.map(({ variant }) => variant.id),
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
const { runs } = await anpord.evals.runs.list({ caseId: "writes-hello" });
|
|
146
|
+
const run = await anpord.evals.runs.get({ id: rerun.runs[0].id });
|
|
147
|
+
const models = await anpord.evals.models.list({ harness: "codex" });
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
`evals.batches`, `evals.cases`, `evals.runs` and `evals.models` follow the data model: a suite holds cases, a case runs on variants, and each run of a case on a variant holds its trials. A batch is the runs started together.
|
|
122
151
|
|
|
123
|
-
See the [documentation](https://docs.anpord.com) for cases, validators, profiles,
|
|
152
|
+
See the [documentation](https://docs.anpord.com) for cases, validators, profiles, mocks, prompt releases and the API reference.
|
|
124
153
|
|
|
125
154
|
## License
|
|
126
155
|
|
package/dist/api-context.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_api_mocks = require("./api-mocks-
|
|
2
|
+
const require_api_mocks = require("./api-mocks-BEorMdN5.cjs");
|
|
3
3
|
let effect = require("effect");
|
|
4
4
|
let node_fs_promises = require("node:fs/promises");
|
|
5
5
|
//#region src/mock-api/context.ts
|
package/dist/api-context.d.cts
CHANGED
package/dist/api-context.d.mts
CHANGED
package/dist/api-context.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ApiCall, n as API_MANIFEST, o as ApiManifest, t as API_JOURNAL } from "./api-mocks-
|
|
1
|
+
import { a as ApiCall, n as API_MANIFEST, o as ApiManifest, t as API_JOURNAL } from "./api-mocks-RCkffSgG.mjs";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
//#region src/mock-api/context.ts
|
|
@@ -110,6 +110,78 @@ const validationExecution = (identity, startedAt) => ({
|
|
|
110
110
|
logs: []
|
|
111
111
|
});
|
|
112
112
|
//#endregion
|
|
113
|
+
//#region ../schema/src/domain/api-mocks.ts
|
|
114
|
+
const API_PROGRAM = "workspace/.anpord/api/program.json";
|
|
115
|
+
const API_MANIFEST = ".anpord/api/manifest.json";
|
|
116
|
+
const API_JOURNAL = ".anpord/api/calls.jsonl";
|
|
117
|
+
const API_READY = "ANPORD_API_READY=";
|
|
118
|
+
const ApiProgram = effect.Schema.Struct({ entry: effect.Schema.Literal(".anpord/api/server.mjs") });
|
|
119
|
+
const ApiManifest = effect.Schema.Array(effect.Schema.Struct({
|
|
120
|
+
name: effect.Schema.String,
|
|
121
|
+
url: effect.Schema.String,
|
|
122
|
+
endpoints: effect.Schema.Array(effect.Schema.Struct({
|
|
123
|
+
method: effect.Schema.String,
|
|
124
|
+
path: effect.Schema.String,
|
|
125
|
+
description: effect.Schema.optional(effect.Schema.String)
|
|
126
|
+
}))
|
|
127
|
+
}));
|
|
128
|
+
var ApiCall = class extends effect.Schema.Class("ApiCall")({
|
|
129
|
+
api: effect.Schema.String,
|
|
130
|
+
index: effect.Schema.NonNegativeInt,
|
|
131
|
+
method: effect.Schema.String,
|
|
132
|
+
path: effect.Schema.String,
|
|
133
|
+
matched: effect.Schema.Boolean,
|
|
134
|
+
startedAt: effect.Schema.Number,
|
|
135
|
+
durationMs: effect.Schema.NonNegativeInt,
|
|
136
|
+
input: ValidationValue,
|
|
137
|
+
output: ValidationValue,
|
|
138
|
+
status: effect.Schema.Int,
|
|
139
|
+
error: effect.Schema.NullOr(effect.Schema.String.pipe(effect.Schema.maxLength(2e3))),
|
|
140
|
+
logs: effect.Schema.Array(ValidationValue).pipe(effect.Schema.maxItems(64))
|
|
141
|
+
}) {};
|
|
142
|
+
//#endregion
|
|
143
|
+
Object.defineProperty(exports, "API_JOURNAL", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function() {
|
|
146
|
+
return API_JOURNAL;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(exports, "API_MANIFEST", {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: function() {
|
|
152
|
+
return API_MANIFEST;
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(exports, "API_PROGRAM", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function() {
|
|
158
|
+
return API_PROGRAM;
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(exports, "API_READY", {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function() {
|
|
164
|
+
return API_READY;
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "ApiCall", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function() {
|
|
170
|
+
return ApiCall;
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
Object.defineProperty(exports, "ApiManifest", {
|
|
174
|
+
enumerable: true,
|
|
175
|
+
get: function() {
|
|
176
|
+
return ApiManifest;
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "ApiProgram", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function() {
|
|
182
|
+
return ApiProgram;
|
|
183
|
+
}
|
|
184
|
+
});
|
|
113
185
|
Object.defineProperty(exports, "EvalValidation", {
|
|
114
186
|
enumerable: true,
|
|
115
187
|
get: function() {
|
|
@@ -134,12 +206,6 @@ Object.defineProperty(exports, "VALIDATION_TEXT_LIMIT", {
|
|
|
134
206
|
return VALIDATION_TEXT_LIMIT;
|
|
135
207
|
}
|
|
136
208
|
});
|
|
137
|
-
Object.defineProperty(exports, "ValidationValue", {
|
|
138
|
-
enumerable: true,
|
|
139
|
-
get: function() {
|
|
140
|
-
return ValidationValue;
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
209
|
Object.defineProperty(exports, "unavailableValue", {
|
|
144
210
|
enumerable: true,
|
|
145
211
|
get: function() {
|
|
@@ -110,4 +110,34 @@ const validationExecution = (identity, startedAt) => ({
|
|
|
110
110
|
logs: []
|
|
111
111
|
});
|
|
112
112
|
//#endregion
|
|
113
|
-
|
|
113
|
+
//#region ../schema/src/domain/api-mocks.ts
|
|
114
|
+
const API_PROGRAM = "workspace/.anpord/api/program.json";
|
|
115
|
+
const API_MANIFEST = ".anpord/api/manifest.json";
|
|
116
|
+
const API_JOURNAL = ".anpord/api/calls.jsonl";
|
|
117
|
+
const API_READY = "ANPORD_API_READY=";
|
|
118
|
+
const ApiProgram = Schema.Struct({ entry: Schema.Literal(".anpord/api/server.mjs") });
|
|
119
|
+
const ApiManifest = Schema.Array(Schema.Struct({
|
|
120
|
+
name: Schema.String,
|
|
121
|
+
url: Schema.String,
|
|
122
|
+
endpoints: Schema.Array(Schema.Struct({
|
|
123
|
+
method: Schema.String,
|
|
124
|
+
path: Schema.String,
|
|
125
|
+
description: Schema.optional(Schema.String)
|
|
126
|
+
}))
|
|
127
|
+
}));
|
|
128
|
+
var ApiCall = class extends Schema.Class("ApiCall")({
|
|
129
|
+
api: Schema.String,
|
|
130
|
+
index: Schema.NonNegativeInt,
|
|
131
|
+
method: Schema.String,
|
|
132
|
+
path: Schema.String,
|
|
133
|
+
matched: Schema.Boolean,
|
|
134
|
+
startedAt: Schema.Number,
|
|
135
|
+
durationMs: Schema.NonNegativeInt,
|
|
136
|
+
input: ValidationValue,
|
|
137
|
+
output: ValidationValue,
|
|
138
|
+
status: Schema.Int,
|
|
139
|
+
error: Schema.NullOr(Schema.String.pipe(Schema.maxLength(2e3))),
|
|
140
|
+
logs: Schema.Array(ValidationValue).pipe(Schema.maxItems(64))
|
|
141
|
+
}) {};
|
|
142
|
+
//#endregion
|
|
143
|
+
export { ApiCall as a, EvalValidation as c, VALIDATION_TEXT_LIMIT as d, unavailableValue as f, validationSnapshot as h, API_READY as i, EvalValidations as l, validationExecution as m, API_MANIFEST as n, ApiManifest as o, validationCapture as p, API_PROGRAM as r, ApiProgram as s, API_JOURNAL as t, VALIDATION_FRAME as u };
|
|
@@ -58,43 +58,43 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
|
|
|
58
58
|
}>>>;
|
|
59
59
|
}>, never, {
|
|
60
60
|
readonly api: string;
|
|
61
|
-
} & {
|
|
62
|
-
readonly status: number;
|
|
63
|
-
} & {
|
|
64
|
-
readonly startedAt: number;
|
|
65
|
-
} & {
|
|
66
|
-
readonly path: string;
|
|
67
|
-
} & {
|
|
68
|
-
readonly index: number;
|
|
69
61
|
} & {
|
|
70
62
|
readonly output: {
|
|
71
63
|
readonly text: string;
|
|
72
|
-
readonly truncated: boolean;
|
|
73
64
|
readonly format: "text" | "json";
|
|
74
65
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
66
|
+
readonly truncated: boolean;
|
|
75
67
|
};
|
|
76
68
|
} & {
|
|
77
69
|
readonly input: {
|
|
78
70
|
readonly text: string;
|
|
79
|
-
readonly truncated: boolean;
|
|
80
71
|
readonly format: "text" | "json";
|
|
81
72
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
73
|
+
readonly truncated: boolean;
|
|
82
74
|
};
|
|
83
75
|
} & {
|
|
84
|
-
readonly
|
|
76
|
+
readonly path: string;
|
|
77
|
+
} & {
|
|
78
|
+
readonly method: string;
|
|
79
|
+
} & {
|
|
80
|
+
readonly index: number;
|
|
81
|
+
} & {
|
|
82
|
+
readonly matched: boolean;
|
|
83
|
+
} & {
|
|
84
|
+
readonly startedAt: number;
|
|
85
85
|
} & {
|
|
86
86
|
readonly durationMs: number;
|
|
87
87
|
} & {
|
|
88
|
-
readonly
|
|
88
|
+
readonly status: number;
|
|
89
|
+
} & {
|
|
90
|
+
readonly error: string | null;
|
|
89
91
|
} & {
|
|
90
92
|
readonly logs: readonly {
|
|
91
93
|
readonly text: string;
|
|
92
|
-
readonly truncated: boolean;
|
|
93
94
|
readonly format: "text" | "json";
|
|
94
95
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
96
|
+
readonly truncated: boolean;
|
|
95
97
|
}[];
|
|
96
|
-
} & {
|
|
97
|
-
readonly matched: boolean;
|
|
98
98
|
}, {}, {}>;
|
|
99
99
|
declare class ApiCall extends ApiCall_base {}
|
|
100
100
|
//#endregion
|
|
@@ -58,43 +58,43 @@ declare const ApiCall_base: Schema.Class<ApiCall, {
|
|
|
58
58
|
}>>>;
|
|
59
59
|
}>, never, {
|
|
60
60
|
readonly api: string;
|
|
61
|
-
} & {
|
|
62
|
-
readonly status: number;
|
|
63
|
-
} & {
|
|
64
|
-
readonly startedAt: number;
|
|
65
|
-
} & {
|
|
66
|
-
readonly path: string;
|
|
67
|
-
} & {
|
|
68
|
-
readonly index: number;
|
|
69
61
|
} & {
|
|
70
62
|
readonly output: {
|
|
71
63
|
readonly text: string;
|
|
72
|
-
readonly truncated: boolean;
|
|
73
64
|
readonly format: "text" | "json";
|
|
74
65
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
66
|
+
readonly truncated: boolean;
|
|
75
67
|
};
|
|
76
68
|
} & {
|
|
77
69
|
readonly input: {
|
|
78
70
|
readonly text: string;
|
|
79
|
-
readonly truncated: boolean;
|
|
80
71
|
readonly format: "text" | "json";
|
|
81
72
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
73
|
+
readonly truncated: boolean;
|
|
82
74
|
};
|
|
83
75
|
} & {
|
|
84
|
-
readonly
|
|
76
|
+
readonly path: string;
|
|
77
|
+
} & {
|
|
78
|
+
readonly method: string;
|
|
79
|
+
} & {
|
|
80
|
+
readonly index: number;
|
|
81
|
+
} & {
|
|
82
|
+
readonly matched: boolean;
|
|
83
|
+
} & {
|
|
84
|
+
readonly startedAt: number;
|
|
85
85
|
} & {
|
|
86
86
|
readonly durationMs: number;
|
|
87
87
|
} & {
|
|
88
|
-
readonly
|
|
88
|
+
readonly status: number;
|
|
89
|
+
} & {
|
|
90
|
+
readonly error: string | null;
|
|
89
91
|
} & {
|
|
90
92
|
readonly logs: readonly {
|
|
91
93
|
readonly text: string;
|
|
92
|
-
readonly truncated: boolean;
|
|
93
94
|
readonly format: "text" | "json";
|
|
94
95
|
readonly state: "captured" | "disabled" | "unavailable";
|
|
96
|
+
readonly truncated: boolean;
|
|
95
97
|
}[];
|
|
96
|
-
} & {
|
|
97
|
-
readonly matched: boolean;
|
|
98
98
|
}, {}, {}>;
|
|
99
99
|
declare class ApiCall extends ApiCall_base {}
|
|
100
100
|
//#endregion
|
package/dist/api-runtime.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_runtime = require("./runtime-
|
|
2
|
+
const require_runtime = require("./runtime-DX_9jN8J.cjs");
|
|
3
3
|
exports.runApiServers = require_runtime.runApiServers;
|
|
4
4
|
exports.withApi = require_runtime.withApi;
|
package/dist/api-runtime.d.cts
CHANGED
package/dist/api-runtime.d.mts
CHANGED
package/dist/api-runtime.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as withApi, t as runApiServers } from "./runtime-
|
|
1
|
+
import { n as withApi, t as runApiServers } from "./runtime-B58_CBI5.mjs";
|
|
2
2
|
export { runApiServers, withApi };
|
package/dist/api.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_runtime = require("./runtime-
|
|
2
|
+
const require_runtime = require("./runtime-DX_9jN8J.cjs");
|
|
3
3
|
exports.api = require_runtime.api;
|
|
4
4
|
exports.endpoint = require_runtime.endpoint;
|
|
5
5
|
exports.withApi = require_runtime.withApi;
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ApiCall } from "./api-mocks-
|
|
1
|
+
import { t as ApiCall } from "./api-mocks-bVa7eYtc.cjs";
|
|
2
2
|
import { a as endpoint, i as api, n as ApiHandlerContext, r as EndpointDefinition, t as ApiDefinition } from "./define-NZvmQuIv.cjs";
|
|
3
3
|
import { withApi } from "./api-runtime.cjs";
|
|
4
4
|
export { type ApiCall, type ApiDefinition, type ApiHandlerContext, type EndpointDefinition, api, endpoint, withApi };
|
package/dist/api.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ApiCall } from "./api-mocks-
|
|
1
|
+
import { t as ApiCall } from "./api-mocks-bVa7eYtc.mjs";
|
|
2
2
|
import { a as endpoint, i as api, n as ApiHandlerContext, r as EndpointDefinition, t as ApiDefinition } from "./define-NZvmQuIv.mjs";
|
|
3
3
|
import { withApi } from "./api-runtime.mjs";
|
|
4
4
|
export { type ApiCall, type ApiDefinition, type ApiHandlerContext, type EndpointDefinition, api, endpoint, withApi };
|
package/dist/api.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as endpoint, n as withApi, r as api } from "./runtime-
|
|
1
|
+
import { i as endpoint, n as withApi, r as api } from "./runtime-B58_CBI5.mjs";
|
|
2
2
|
export { api, endpoint, withApi };
|