@cat-factory/contracts 0.187.0 → 0.188.0
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/dist/debug-api.d.ts +1373 -0
- package/dist/debug-api.d.ts.map +1 -0
- package/dist/debug-api.js +580 -0
- package/dist/debug-api.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/observability.d.ts +26 -0
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +26 -19
- package/dist/observability.js.map +1 -1
- package/dist/provisioning-logs.d.ts +0 -2
- package/dist/provisioning-logs.d.ts.map +1 -1
- package/dist/provisioning-logs.js +0 -2
- package/dist/provisioning-logs.js.map +1 -1
- package/dist/routes/debug-api.d.ts +727 -0
- package/dist/routes/debug-api.d.ts.map +1 -0
- package/dist/routes/debug-api.js +82 -0
- package/dist/routes/debug-api.js.map +1 -0
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,727 @@
|
|
|
1
|
+
/** List the workspace's runs, newest first, keyset-paginated — the entry point for triage. */
|
|
2
|
+
export declare const listDebugRunsContract: {
|
|
3
|
+
readonly method: "get";
|
|
4
|
+
readonly pathResolver: () => string;
|
|
5
|
+
readonly requestQuerySchema: import("valibot").ObjectSchema<{
|
|
6
|
+
readonly status: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>, undefined>;
|
|
7
|
+
readonly since: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number of epoch milliseconds">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
8
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
9
|
+
readonly cursor: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly responsesByStatusCode: {
|
|
12
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
13
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
14
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
15
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
16
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
17
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
18
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
19
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
20
|
+
}, undefined>, undefined>, undefined>;
|
|
21
|
+
}, undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
24
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
25
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
26
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
27
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
28
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
29
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
31
|
+
}, undefined>, undefined>, undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
35
|
+
readonly runs: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
36
|
+
readonly runId: import("valibot").StringSchema<undefined>;
|
|
37
|
+
readonly blockId: import("valibot").StringSchema<undefined>;
|
|
38
|
+
readonly pipelineId: import("valibot").StringSchema<undefined>;
|
|
39
|
+
readonly pipelineName: import("valibot").StringSchema<undefined>;
|
|
40
|
+
readonly status: import("valibot").PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
41
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
42
|
+
readonly currentStep: import("valibot").NumberSchema<undefined>;
|
|
43
|
+
readonly stepCount: import("valibot").NumberSchema<undefined>;
|
|
44
|
+
readonly failure: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
45
|
+
readonly kind: import("valibot").PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "cancelled", "unknown"], undefined>;
|
|
46
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
47
|
+
readonly detail: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
48
|
+
readonly hint: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
49
|
+
readonly reason: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
50
|
+
readonly occurredAt: import("valibot").NumberSchema<undefined>;
|
|
51
|
+
readonly lastSubtasks: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
52
|
+
readonly completed: import("valibot").NumberSchema<undefined>;
|
|
53
|
+
readonly inProgress: import("valibot").NumberSchema<undefined>;
|
|
54
|
+
readonly total: import("valibot").NumberSchema<undefined>;
|
|
55
|
+
readonly items: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
56
|
+
readonly label: import("valibot").StringSchema<undefined>;
|
|
57
|
+
readonly status: import("valibot").PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
58
|
+
}, undefined>, undefined>, undefined>;
|
|
59
|
+
}, undefined>, undefined>;
|
|
60
|
+
readonly stepIndex: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
61
|
+
}, undefined>, undefined>;
|
|
62
|
+
}, undefined>, undefined>;
|
|
63
|
+
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
64
|
+
}, undefined>;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/** The run's diagnostic map: steps, per-sink availability + counts, LLM rollups, signals. */
|
|
68
|
+
export declare const getDebugRunContract: {
|
|
69
|
+
readonly method: "get";
|
|
70
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
71
|
+
runId: import("valibot").StringSchema<undefined>;
|
|
72
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
73
|
+
readonly pathResolver: ({ runId }: {
|
|
74
|
+
runId: string;
|
|
75
|
+
}) => string;
|
|
76
|
+
readonly responsesByStatusCode: {
|
|
77
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
78
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
79
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
80
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
81
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
82
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
83
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
84
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
85
|
+
}, undefined>, undefined>, undefined>;
|
|
86
|
+
}, undefined>;
|
|
87
|
+
}, undefined>;
|
|
88
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
89
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
90
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
91
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
92
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
93
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
94
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
95
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
96
|
+
}, undefined>, undefined>, undefined>;
|
|
97
|
+
}, undefined>;
|
|
98
|
+
}, undefined>;
|
|
99
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
100
|
+
readonly kind: import("valibot").LiteralSchema<"cat-factory.run-debug-overview", undefined>;
|
|
101
|
+
readonly version: import("valibot").LiteralSchema<1, undefined>;
|
|
102
|
+
readonly generatedAt: import("valibot").NumberSchema<undefined>;
|
|
103
|
+
readonly run: import("valibot").ObjectSchema<{
|
|
104
|
+
readonly runId: import("valibot").StringSchema<undefined>;
|
|
105
|
+
readonly blockId: import("valibot").StringSchema<undefined>;
|
|
106
|
+
readonly pipelineId: import("valibot").StringSchema<undefined>;
|
|
107
|
+
readonly pipelineName: import("valibot").StringSchema<undefined>;
|
|
108
|
+
readonly status: import("valibot").PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
|
|
109
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
110
|
+
readonly currentStep: import("valibot").NumberSchema<undefined>;
|
|
111
|
+
readonly stepCount: import("valibot").NumberSchema<undefined>;
|
|
112
|
+
readonly failure: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
113
|
+
readonly kind: import("valibot").PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "cancelled", "unknown"], undefined>;
|
|
114
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
115
|
+
readonly detail: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly hint: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
117
|
+
readonly reason: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
118
|
+
readonly occurredAt: import("valibot").NumberSchema<undefined>;
|
|
119
|
+
readonly lastSubtasks: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
120
|
+
readonly completed: import("valibot").NumberSchema<undefined>;
|
|
121
|
+
readonly inProgress: import("valibot").NumberSchema<undefined>;
|
|
122
|
+
readonly total: import("valibot").NumberSchema<undefined>;
|
|
123
|
+
readonly items: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
124
|
+
readonly label: import("valibot").StringSchema<undefined>;
|
|
125
|
+
readonly status: import("valibot").PicklistSchema<["pending", "in_progress", "completed"], undefined>;
|
|
126
|
+
}, undefined>, undefined>, undefined>;
|
|
127
|
+
}, undefined>, undefined>;
|
|
128
|
+
readonly stepIndex: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
129
|
+
}, undefined>, undefined>;
|
|
130
|
+
}, undefined>;
|
|
131
|
+
readonly steps: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
132
|
+
readonly index: import("valibot").NumberSchema<undefined>;
|
|
133
|
+
readonly agentKind: import("valibot").StringSchema<undefined>;
|
|
134
|
+
readonly state: import("valibot").StringSchema<undefined>;
|
|
135
|
+
readonly progress: import("valibot").NumberSchema<undefined>;
|
|
136
|
+
readonly model: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
137
|
+
readonly skipped: import("valibot").BooleanSchema<undefined>;
|
|
138
|
+
readonly startedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
139
|
+
readonly finishedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
140
|
+
readonly lastActivityAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
141
|
+
readonly subtasks: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
142
|
+
readonly completed: import("valibot").NumberSchema<undefined>;
|
|
143
|
+
readonly inProgress: import("valibot").NumberSchema<undefined>;
|
|
144
|
+
readonly total: import("valibot").NumberSchema<undefined>;
|
|
145
|
+
}, undefined>, undefined>;
|
|
146
|
+
readonly outputChars: import("valibot").NumberSchema<undefined>;
|
|
147
|
+
readonly hasStructuredResult: import("valibot").BooleanSchema<undefined>;
|
|
148
|
+
readonly evictionRecoveries: import("valibot").NumberSchema<undefined>;
|
|
149
|
+
readonly firstEvictionDetail: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
150
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
151
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
152
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
153
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
154
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
155
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
156
|
+
}, undefined>, undefined>;
|
|
157
|
+
}, undefined>, undefined>;
|
|
158
|
+
readonly diagnostics: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
159
|
+
readonly lastDispatch: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
160
|
+
readonly stepIndex: import("valibot").NumberSchema<undefined>;
|
|
161
|
+
readonly agentKind: import("valibot").StringSchema<undefined>;
|
|
162
|
+
readonly model: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
163
|
+
readonly executionBackend: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
164
|
+
readonly repo: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
165
|
+
readonly owner: import("valibot").StringSchema<undefined>;
|
|
166
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
167
|
+
readonly baseBranch: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
168
|
+
readonly provider: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
169
|
+
}, undefined>, undefined>;
|
|
170
|
+
readonly at: import("valibot").NumberSchema<undefined>;
|
|
171
|
+
}, undefined>, undefined>;
|
|
172
|
+
readonly host: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
173
|
+
readonly platform: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
174
|
+
}, undefined>, undefined>;
|
|
175
|
+
}, undefined>, undefined>;
|
|
176
|
+
readonly sinks: import("valibot").ObjectSchema<{
|
|
177
|
+
readonly llmCalls: import("valibot").ObjectSchema<{
|
|
178
|
+
readonly available: import("valibot").BooleanSchema<undefined>;
|
|
179
|
+
readonly count: import("valibot").NumberSchema<undefined>;
|
|
180
|
+
}, undefined>;
|
|
181
|
+
readonly agentContext: import("valibot").ObjectSchema<{
|
|
182
|
+
readonly available: import("valibot").BooleanSchema<undefined>;
|
|
183
|
+
readonly count: import("valibot").NumberSchema<undefined>;
|
|
184
|
+
}, undefined>;
|
|
185
|
+
readonly searchQueries: import("valibot").ObjectSchema<{
|
|
186
|
+
readonly available: import("valibot").BooleanSchema<undefined>;
|
|
187
|
+
readonly count: import("valibot").NumberSchema<undefined>;
|
|
188
|
+
}, undefined>;
|
|
189
|
+
readonly provisioningLog: import("valibot").ObjectSchema<{
|
|
190
|
+
readonly available: import("valibot").BooleanSchema<undefined>;
|
|
191
|
+
readonly count: import("valibot").NumberSchema<undefined>;
|
|
192
|
+
}, undefined>;
|
|
193
|
+
}, undefined>;
|
|
194
|
+
readonly llm: import("valibot").ObjectSchema<{
|
|
195
|
+
readonly totals: import("valibot").ObjectSchema<{
|
|
196
|
+
readonly calls: import("valibot").NumberSchema<undefined>;
|
|
197
|
+
readonly promptTokens: import("valibot").NumberSchema<undefined>;
|
|
198
|
+
readonly cacheReadTokens: import("valibot").NumberSchema<undefined>;
|
|
199
|
+
readonly cacheWriteTokens: import("valibot").NumberSchema<undefined>;
|
|
200
|
+
readonly cacheHitRate: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
201
|
+
readonly completionTokens: import("valibot").NumberSchema<undefined>;
|
|
202
|
+
readonly upstreamMs: import("valibot").NumberSchema<undefined>;
|
|
203
|
+
readonly overheadMs: import("valibot").NumberSchema<undefined>;
|
|
204
|
+
readonly transportOverheadRatio: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
205
|
+
readonly errors: import("valibot").NumberSchema<undefined>;
|
|
206
|
+
readonly warnings: import("valibot").NumberSchema<undefined>;
|
|
207
|
+
readonly truncatedCalls: import("valibot").NumberSchema<undefined>;
|
|
208
|
+
}, undefined>;
|
|
209
|
+
readonly byAgentKind: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
210
|
+
readonly agentKind: import("valibot").StringSchema<undefined>;
|
|
211
|
+
readonly calls: import("valibot").NumberSchema<undefined>;
|
|
212
|
+
readonly promptTokens: import("valibot").NumberSchema<undefined>;
|
|
213
|
+
readonly cacheReadTokens: import("valibot").NumberSchema<undefined>;
|
|
214
|
+
readonly cacheWriteTokens: import("valibot").NumberSchema<undefined>;
|
|
215
|
+
readonly cacheHitRate: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
216
|
+
readonly completionTokens: import("valibot").NumberSchema<undefined>;
|
|
217
|
+
readonly peakCompletionTokens: import("valibot").NumberSchema<undefined>;
|
|
218
|
+
readonly maxOutputTokens: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
219
|
+
readonly outputHeadroomRatio: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
220
|
+
readonly truncatedCalls: import("valibot").NumberSchema<undefined>;
|
|
221
|
+
readonly upstreamMs: import("valibot").NumberSchema<undefined>;
|
|
222
|
+
readonly overheadMs: import("valibot").NumberSchema<undefined>;
|
|
223
|
+
readonly transportOverheadRatio: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
224
|
+
readonly errors: import("valibot").NumberSchema<undefined>;
|
|
225
|
+
readonly warnings: import("valibot").NumberSchema<undefined>;
|
|
226
|
+
}, undefined>, undefined>;
|
|
227
|
+
}, undefined>;
|
|
228
|
+
readonly signals: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
229
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
230
|
+
readonly severity: import("valibot").PicklistSchema<["info", "warning", "error"], undefined>;
|
|
231
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
232
|
+
readonly count: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
233
|
+
readonly agentKind: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
234
|
+
readonly stepIndex: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
235
|
+
}, undefined>, undefined>;
|
|
236
|
+
}, undefined>;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
/** The run's recorded model calls, keyset-paginated; bodies only when `bodyChars` asks. */
|
|
240
|
+
export declare const listDebugLlmCallsContract: {
|
|
241
|
+
readonly method: "get";
|
|
242
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
243
|
+
runId: import("valibot").StringSchema<undefined>;
|
|
244
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
245
|
+
readonly pathResolver: ({ runId }: {
|
|
246
|
+
runId: string;
|
|
247
|
+
}) => string;
|
|
248
|
+
readonly requestQuerySchema: import("valibot").ObjectSchema<{
|
|
249
|
+
readonly agentKind: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
250
|
+
readonly phase: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
251
|
+
readonly outcome: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["ok", "warning", "error"], undefined>, undefined>;
|
|
252
|
+
readonly contains: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 256, undefined>]>, undefined>;
|
|
253
|
+
readonly order: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["newest", "oldest"], undefined>, undefined>;
|
|
254
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
255
|
+
readonly cursor: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
256
|
+
readonly bodyChars: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 4000, undefined>]>, undefined>;
|
|
257
|
+
}, undefined>;
|
|
258
|
+
readonly responsesByStatusCode: {
|
|
259
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
260
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
261
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
262
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
263
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
264
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
265
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
266
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
267
|
+
}, undefined>, undefined>, undefined>;
|
|
268
|
+
}, undefined>;
|
|
269
|
+
}, undefined>;
|
|
270
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
271
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
272
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
273
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
274
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
275
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
276
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
277
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
278
|
+
}, undefined>, undefined>, undefined>;
|
|
279
|
+
}, undefined>;
|
|
280
|
+
}, undefined>;
|
|
281
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
282
|
+
readonly calls: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
283
|
+
readonly callId: import("valibot").StringSchema<undefined>;
|
|
284
|
+
readonly runId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
285
|
+
readonly agentKind: import("valibot").StringSchema<undefined>;
|
|
286
|
+
readonly provider: import("valibot").StringSchema<undefined>;
|
|
287
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
288
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
289
|
+
readonly outcome: import("valibot").PicklistSchema<["ok", "warning", "error"], undefined>;
|
|
290
|
+
readonly ok: import("valibot").BooleanSchema<undefined>;
|
|
291
|
+
readonly httpStatus: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
292
|
+
readonly errorMessage: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
293
|
+
readonly finishReason: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
294
|
+
readonly streaming: import("valibot").BooleanSchema<undefined>;
|
|
295
|
+
readonly phase: import("valibot").StringSchema<undefined>;
|
|
296
|
+
readonly turnIndex: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
297
|
+
readonly messageCount: import("valibot").NumberSchema<undefined>;
|
|
298
|
+
readonly toolCount: import("valibot").NumberSchema<undefined>;
|
|
299
|
+
readonly requestMaxTokens: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
300
|
+
readonly promptTokens: import("valibot").NumberSchema<undefined>;
|
|
301
|
+
readonly cacheReadTokens: import("valibot").NumberSchema<undefined>;
|
|
302
|
+
readonly cacheWriteTokens: import("valibot").NumberSchema<undefined>;
|
|
303
|
+
readonly completionTokens: import("valibot").NumberSchema<undefined>;
|
|
304
|
+
readonly totalTokens: import("valibot").NumberSchema<undefined>;
|
|
305
|
+
readonly upstreamMs: import("valibot").NumberSchema<undefined>;
|
|
306
|
+
readonly overheadMs: import("valibot").NumberSchema<undefined>;
|
|
307
|
+
readonly totalMs: import("valibot").NumberSchema<undefined>;
|
|
308
|
+
readonly elidedLeadingMessages: import("valibot").NumberSchema<undefined>;
|
|
309
|
+
readonly prompt: import("valibot").ObjectSchema<{
|
|
310
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
311
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
312
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
313
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
314
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
315
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
316
|
+
}, undefined>;
|
|
317
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
318
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
319
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
320
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
321
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
322
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
323
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
324
|
+
}, undefined>;
|
|
325
|
+
readonly reasoning: import("valibot").ObjectSchema<{
|
|
326
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
327
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
328
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
329
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
330
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
331
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
332
|
+
}, undefined>;
|
|
333
|
+
readonly promptMessages: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
334
|
+
readonly index: import("valibot").NumberSchema<undefined>;
|
|
335
|
+
readonly role: import("valibot").StringSchema<undefined>;
|
|
336
|
+
readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
337
|
+
readonly toolCallId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
338
|
+
readonly toolCalls: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
339
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
340
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
341
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
342
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
343
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
344
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
345
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
346
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
347
|
+
}, undefined>;
|
|
348
|
+
}, undefined>, undefined>;
|
|
349
|
+
readonly content: import("valibot").ObjectSchema<{
|
|
350
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
351
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
352
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
353
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
354
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
355
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
356
|
+
}, undefined>;
|
|
357
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
358
|
+
}, undefined>, undefined>;
|
|
359
|
+
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
360
|
+
}, undefined>;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
/** One recorded model call with its full (budgeted) prompt delta, response and reasoning. */
|
|
364
|
+
export declare const getDebugLlmCallContract: {
|
|
365
|
+
readonly method: "get";
|
|
366
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
367
|
+
callId: import("valibot").StringSchema<undefined>;
|
|
368
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
369
|
+
readonly pathResolver: ({ callId }: {
|
|
370
|
+
callId: string;
|
|
371
|
+
}) => string;
|
|
372
|
+
readonly requestQuerySchema: import("valibot").ObjectSchema<{
|
|
373
|
+
readonly bodyChars: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
374
|
+
readonly bodyOffset: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2000000, undefined>]>, undefined>;
|
|
375
|
+
readonly view: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["raw", "messages"], undefined>, undefined>;
|
|
376
|
+
}, undefined>;
|
|
377
|
+
readonly responsesByStatusCode: {
|
|
378
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
379
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
380
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
381
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
382
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
383
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
384
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
385
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
386
|
+
}, undefined>, undefined>, undefined>;
|
|
387
|
+
}, undefined>;
|
|
388
|
+
}, undefined>;
|
|
389
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
390
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
391
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
392
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
393
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
394
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
395
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
396
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
397
|
+
}, undefined>, undefined>, undefined>;
|
|
398
|
+
}, undefined>;
|
|
399
|
+
}, undefined>;
|
|
400
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
401
|
+
readonly callId: import("valibot").StringSchema<undefined>;
|
|
402
|
+
readonly runId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
403
|
+
readonly agentKind: import("valibot").StringSchema<undefined>;
|
|
404
|
+
readonly provider: import("valibot").StringSchema<undefined>;
|
|
405
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
406
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
407
|
+
readonly outcome: import("valibot").PicklistSchema<["ok", "warning", "error"], undefined>;
|
|
408
|
+
readonly ok: import("valibot").BooleanSchema<undefined>;
|
|
409
|
+
readonly httpStatus: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
410
|
+
readonly errorMessage: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
411
|
+
readonly finishReason: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
412
|
+
readonly streaming: import("valibot").BooleanSchema<undefined>;
|
|
413
|
+
readonly phase: import("valibot").StringSchema<undefined>;
|
|
414
|
+
readonly turnIndex: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
415
|
+
readonly messageCount: import("valibot").NumberSchema<undefined>;
|
|
416
|
+
readonly toolCount: import("valibot").NumberSchema<undefined>;
|
|
417
|
+
readonly requestMaxTokens: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
418
|
+
readonly promptTokens: import("valibot").NumberSchema<undefined>;
|
|
419
|
+
readonly cacheReadTokens: import("valibot").NumberSchema<undefined>;
|
|
420
|
+
readonly cacheWriteTokens: import("valibot").NumberSchema<undefined>;
|
|
421
|
+
readonly completionTokens: import("valibot").NumberSchema<undefined>;
|
|
422
|
+
readonly totalTokens: import("valibot").NumberSchema<undefined>;
|
|
423
|
+
readonly upstreamMs: import("valibot").NumberSchema<undefined>;
|
|
424
|
+
readonly overheadMs: import("valibot").NumberSchema<undefined>;
|
|
425
|
+
readonly totalMs: import("valibot").NumberSchema<undefined>;
|
|
426
|
+
readonly elidedLeadingMessages: import("valibot").NumberSchema<undefined>;
|
|
427
|
+
readonly prompt: import("valibot").ObjectSchema<{
|
|
428
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
429
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
430
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
431
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
432
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
433
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
434
|
+
}, undefined>;
|
|
435
|
+
readonly response: import("valibot").ObjectSchema<{
|
|
436
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
437
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
438
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
439
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
440
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
441
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
442
|
+
}, undefined>;
|
|
443
|
+
readonly reasoning: import("valibot").ObjectSchema<{
|
|
444
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
445
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
446
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
447
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
448
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
449
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
450
|
+
}, undefined>;
|
|
451
|
+
readonly promptMessages: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
452
|
+
readonly index: import("valibot").NumberSchema<undefined>;
|
|
453
|
+
readonly role: import("valibot").StringSchema<undefined>;
|
|
454
|
+
readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
455
|
+
readonly toolCallId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
456
|
+
readonly toolCalls: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
457
|
+
readonly name: import("valibot").StringSchema<undefined>;
|
|
458
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
459
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
460
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
461
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
462
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
463
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
464
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
465
|
+
}, undefined>;
|
|
466
|
+
}, undefined>, undefined>;
|
|
467
|
+
readonly content: import("valibot").ObjectSchema<{
|
|
468
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
469
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
470
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
471
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
472
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
473
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
474
|
+
}, undefined>;
|
|
475
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
476
|
+
}, undefined>;
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
/** The run's captured agent-context dispatches, sizes only, keyset-paginated. */
|
|
480
|
+
export declare const listDebugAgentContextContract: {
|
|
481
|
+
readonly method: "get";
|
|
482
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
483
|
+
runId: import("valibot").StringSchema<undefined>;
|
|
484
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
485
|
+
readonly pathResolver: ({ runId }: {
|
|
486
|
+
runId: string;
|
|
487
|
+
}) => string;
|
|
488
|
+
readonly requestQuerySchema: import("valibot").ObjectSchema<{
|
|
489
|
+
readonly stepIndex: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
490
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
491
|
+
readonly cursor: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
492
|
+
}, undefined>;
|
|
493
|
+
readonly responsesByStatusCode: {
|
|
494
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
495
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
496
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
497
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
498
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
499
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
500
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
501
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
502
|
+
}, undefined>, undefined>, undefined>;
|
|
503
|
+
}, undefined>;
|
|
504
|
+
}, undefined>;
|
|
505
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
506
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
507
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
508
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
509
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
510
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
511
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
512
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
513
|
+
}, undefined>, undefined>, undefined>;
|
|
514
|
+
}, undefined>;
|
|
515
|
+
}, undefined>;
|
|
516
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
517
|
+
readonly snapshots: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
518
|
+
readonly snapshotId: import("valibot").StringSchema<undefined>;
|
|
519
|
+
readonly agentKind: import("valibot").StringSchema<undefined>;
|
|
520
|
+
readonly stepIndex: import("valibot").NumberSchema<undefined>;
|
|
521
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
522
|
+
readonly model: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
523
|
+
readonly harness: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
524
|
+
readonly systemPromptChars: import("valibot").NumberSchema<undefined>;
|
|
525
|
+
readonly userPromptChars: import("valibot").NumberSchema<undefined>;
|
|
526
|
+
readonly fragmentsChars: import("valibot").NumberSchema<undefined>;
|
|
527
|
+
readonly contextFilesChars: import("valibot").NumberSchema<undefined>;
|
|
528
|
+
}, undefined>, undefined>;
|
|
529
|
+
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
530
|
+
}, undefined>;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
/** One captured dispatch's full (budgeted) prompts, folded fragments and injected files. */
|
|
534
|
+
export declare const getDebugAgentContextContract: {
|
|
535
|
+
readonly method: "get";
|
|
536
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
537
|
+
snapshotId: import("valibot").StringSchema<undefined>;
|
|
538
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
539
|
+
readonly pathResolver: ({ snapshotId }: {
|
|
540
|
+
snapshotId: string;
|
|
541
|
+
}) => string;
|
|
542
|
+
readonly requestQuerySchema: import("valibot").ObjectSchema<{
|
|
543
|
+
readonly bodyChars: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 200000, undefined>]>, undefined>;
|
|
544
|
+
readonly bodyOffset: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 2000000, undefined>]>, undefined>;
|
|
545
|
+
}, undefined>;
|
|
546
|
+
readonly responsesByStatusCode: {
|
|
547
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
548
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
549
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
550
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
551
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
552
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
553
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
554
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
555
|
+
}, undefined>, undefined>, undefined>;
|
|
556
|
+
}, undefined>;
|
|
557
|
+
}, undefined>;
|
|
558
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
559
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
560
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
561
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
562
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
563
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
564
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
565
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
566
|
+
}, undefined>, undefined>, undefined>;
|
|
567
|
+
}, undefined>;
|
|
568
|
+
}, undefined>;
|
|
569
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
570
|
+
readonly snapshotId: import("valibot").StringSchema<undefined>;
|
|
571
|
+
readonly runId: import("valibot").StringSchema<undefined>;
|
|
572
|
+
readonly agentKind: import("valibot").StringSchema<undefined>;
|
|
573
|
+
readonly stepIndex: import("valibot").NumberSchema<undefined>;
|
|
574
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
575
|
+
readonly model: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
576
|
+
readonly harness: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
577
|
+
readonly systemPrompt: import("valibot").ObjectSchema<{
|
|
578
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
579
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
580
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
581
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
582
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
583
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
584
|
+
}, undefined>;
|
|
585
|
+
readonly userPrompt: import("valibot").ObjectSchema<{
|
|
586
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
587
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
588
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
589
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
590
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
591
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
592
|
+
}, undefined>;
|
|
593
|
+
readonly fragments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
594
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
595
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
596
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
597
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
598
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
599
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
600
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
601
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
602
|
+
}, undefined>;
|
|
603
|
+
}, undefined>, undefined>;
|
|
604
|
+
readonly contextFiles: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
605
|
+
readonly path: import("valibot").StringSchema<undefined>;
|
|
606
|
+
readonly title: import("valibot").StringSchema<undefined>;
|
|
607
|
+
readonly url: import("valibot").StringSchema<undefined>;
|
|
608
|
+
readonly content: import("valibot").ObjectSchema<{
|
|
609
|
+
readonly text: import("valibot").StringSchema<undefined>;
|
|
610
|
+
readonly chars: import("valibot").NumberSchema<undefined>;
|
|
611
|
+
readonly offset: import("valibot").NumberSchema<undefined>;
|
|
612
|
+
readonly totalChars: import("valibot").NumberSchema<undefined>;
|
|
613
|
+
readonly truncated: import("valibot").BooleanSchema<undefined>;
|
|
614
|
+
readonly matchOffset: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>, undefined>;
|
|
615
|
+
}, undefined>;
|
|
616
|
+
}, undefined>, undefined>;
|
|
617
|
+
readonly extras: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>;
|
|
618
|
+
}, undefined>;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
/** The web searches the run's agents performed, keyset-paginated. */
|
|
622
|
+
export declare const listDebugSearchQueriesContract: {
|
|
623
|
+
readonly method: "get";
|
|
624
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
625
|
+
runId: import("valibot").StringSchema<undefined>;
|
|
626
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
627
|
+
readonly pathResolver: ({ runId }: {
|
|
628
|
+
runId: string;
|
|
629
|
+
}) => string;
|
|
630
|
+
readonly requestQuerySchema: import("valibot").ObjectSchema<{
|
|
631
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
632
|
+
readonly cursor: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
633
|
+
}, undefined>;
|
|
634
|
+
readonly responsesByStatusCode: {
|
|
635
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
636
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
637
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
638
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
639
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
640
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
641
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
642
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
643
|
+
}, undefined>, undefined>, undefined>;
|
|
644
|
+
}, undefined>;
|
|
645
|
+
}, undefined>;
|
|
646
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
647
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
648
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
649
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
650
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
651
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
652
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
653
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
654
|
+
}, undefined>, undefined>, undefined>;
|
|
655
|
+
}, undefined>;
|
|
656
|
+
}, undefined>;
|
|
657
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
658
|
+
readonly queries: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
659
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
660
|
+
readonly workspaceId: import("valibot").StringSchema<undefined>;
|
|
661
|
+
readonly executionId: import("valibot").StringSchema<undefined>;
|
|
662
|
+
readonly agentKind: import("valibot").StringSchema<undefined>;
|
|
663
|
+
readonly provider: import("valibot").NullableSchema<import("valibot").PicklistSchema<["brave", "searxng"], undefined>, undefined>;
|
|
664
|
+
readonly query: import("valibot").StringSchema<undefined>;
|
|
665
|
+
readonly resultCount: import("valibot").NumberSchema<undefined>;
|
|
666
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
667
|
+
}, undefined>, undefined>;
|
|
668
|
+
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
669
|
+
}, undefined>;
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
/** The run's provisioning event log — how its infrastructure came up, or why it didn't. */
|
|
673
|
+
export declare const listDebugLogsContract: {
|
|
674
|
+
readonly method: "get";
|
|
675
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
676
|
+
runId: import("valibot").StringSchema<undefined>;
|
|
677
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
678
|
+
readonly pathResolver: ({ runId }: {
|
|
679
|
+
runId: string;
|
|
680
|
+
}) => string;
|
|
681
|
+
readonly requestQuerySchema: import("valibot").ObjectSchema<{
|
|
682
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
683
|
+
readonly cursor: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
684
|
+
}, undefined>;
|
|
685
|
+
readonly responsesByStatusCode: {
|
|
686
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
687
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
688
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
689
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
690
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
691
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
692
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
693
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
694
|
+
}, undefined>, undefined>, undefined>;
|
|
695
|
+
}, undefined>;
|
|
696
|
+
}, undefined>;
|
|
697
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
698
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
699
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
700
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
701
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
702
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
703
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
704
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
705
|
+
}, undefined>, undefined>, undefined>;
|
|
706
|
+
}, undefined>;
|
|
707
|
+
}, undefined>;
|
|
708
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
709
|
+
readonly entries: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
710
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
711
|
+
readonly workspaceId: import("valibot").StringSchema<undefined>;
|
|
712
|
+
readonly subsystem: import("valibot").PicklistSchema<["environment", "runner-pool", "container"], undefined>;
|
|
713
|
+
readonly operation: import("valibot").PicklistSchema<["provision", "teardown", "status", "dispatch", "release", "poll-failure"], undefined>;
|
|
714
|
+
readonly targetId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
715
|
+
readonly providerId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
716
|
+
readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
717
|
+
readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
718
|
+
readonly outcome: import("valibot").PicklistSchema<["success", "failure"], undefined>;
|
|
719
|
+
readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
720
|
+
readonly detail: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
721
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
722
|
+
}, undefined>, undefined>;
|
|
723
|
+
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
724
|
+
}, undefined>;
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
//# sourceMappingURL=debug-api.d.ts.map
|