@ancplua/qyl-api-schema 0.5.15 → 0.6.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/api/runner.tsp +711 -31
- package/generated/json-schema/qyl-api-schema.json +2441 -402
- package/generated/openapi/qyl.openapi.json +16628 -5146
- package/generated/ts-runtime/api.d.ts +627 -109
- package/generated/ts-runtime/api.js +96 -8
- package/models/runner-mcp.tsp +990 -141
- package/models/runner.tsp +7 -7
- package/package.json +1 -1
|
@@ -10,6 +10,30 @@ export type SessionId = string & {
|
|
|
10
10
|
export type UserId = string & {
|
|
11
11
|
readonly __brand: "UserId";
|
|
12
12
|
};
|
|
13
|
+
export type RunnerMcpSessionId = string & {
|
|
14
|
+
readonly __brand: "RunnerMcpSessionId";
|
|
15
|
+
};
|
|
16
|
+
export type RunnerMcpWorkspaceId = string & {
|
|
17
|
+
readonly __brand: "RunnerMcpWorkspaceId";
|
|
18
|
+
};
|
|
19
|
+
export type RunnerMcpServerId = string & {
|
|
20
|
+
readonly __brand: "RunnerMcpServerId";
|
|
21
|
+
};
|
|
22
|
+
export type RunnerMcpExecutionId = string & {
|
|
23
|
+
readonly __brand: "RunnerMcpExecutionId";
|
|
24
|
+
};
|
|
25
|
+
export type RunnerMcpEvaluationRunId = string & {
|
|
26
|
+
readonly __brand: "RunnerMcpEvaluationRunId";
|
|
27
|
+
};
|
|
28
|
+
export type RunnerMcpTestCaseId = string & {
|
|
29
|
+
readonly __brand: "RunnerMcpTestCaseId";
|
|
30
|
+
};
|
|
31
|
+
export type RunnerMcpSuiteId = string & {
|
|
32
|
+
readonly __brand: "RunnerMcpSuiteId";
|
|
33
|
+
};
|
|
34
|
+
export type RunnerMcpEvaluationExportId = string & {
|
|
35
|
+
readonly __brand: "RunnerMcpEvaluationExportId";
|
|
36
|
+
};
|
|
13
37
|
export declare const ProblemDetailsMediaType: "application/problem+json";
|
|
14
38
|
export type ProblemDetailsMediaType = typeof ProblemDetailsMediaType;
|
|
15
39
|
export declare const SortOrderValues: {
|
|
@@ -262,20 +286,122 @@ export declare const RunnerLogStreamValues: {
|
|
|
262
286
|
readonly stderr: "err";
|
|
263
287
|
};
|
|
264
288
|
export type RunnerLogStream = typeof RunnerLogStreamValues[keyof typeof RunnerLogStreamValues];
|
|
265
|
-
export declare const
|
|
266
|
-
readonly
|
|
267
|
-
readonly
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
export
|
|
271
|
-
|
|
272
|
-
readonly
|
|
273
|
-
|
|
289
|
+
export declare const RunnerMcpToolInputModeValues: {
|
|
290
|
+
readonly form: "form";
|
|
291
|
+
readonly json: "json";
|
|
292
|
+
};
|
|
293
|
+
export type RunnerMcpToolInputMode = typeof RunnerMcpToolInputModeValues[keyof typeof RunnerMcpToolInputModeValues];
|
|
294
|
+
export declare const RunnerMcpHeaderSecretSchemeValues: {
|
|
295
|
+
readonly bearer: "bearer";
|
|
296
|
+
readonly basic: "basic";
|
|
297
|
+
};
|
|
298
|
+
export type RunnerMcpHeaderSecretScheme = typeof RunnerMcpHeaderSecretSchemeValues[keyof typeof RunnerMcpHeaderSecretSchemeValues];
|
|
299
|
+
export declare const RunnerMcpErrorCategoryValues: {
|
|
300
|
+
readonly authentication: "authentication";
|
|
301
|
+
readonly transport: "transport";
|
|
302
|
+
readonly protocol: "protocol";
|
|
303
|
+
readonly serialization: "serialization";
|
|
304
|
+
readonly schemaValidation: "schema_validation";
|
|
305
|
+
readonly toolError: "tool_error";
|
|
306
|
+
readonly timeout: "timeout";
|
|
307
|
+
readonly cancelled: "cancelled";
|
|
308
|
+
readonly internal: "internal";
|
|
309
|
+
};
|
|
310
|
+
export type RunnerMcpErrorCategory = typeof RunnerMcpErrorCategoryValues[keyof typeof RunnerMcpErrorCategoryValues];
|
|
311
|
+
export declare const RunnerMcpConnectionStatusValues: {
|
|
312
|
+
readonly disconnected: "disconnected";
|
|
313
|
+
readonly connecting: "connecting";
|
|
314
|
+
readonly connected: "connected";
|
|
315
|
+
readonly disconnecting: "disconnecting";
|
|
316
|
+
readonly reconnecting: "reconnecting";
|
|
317
|
+
readonly failed: "failed";
|
|
318
|
+
};
|
|
319
|
+
export type RunnerMcpConnectionStatus = typeof RunnerMcpConnectionStatusValues[keyof typeof RunnerMcpConnectionStatusValues];
|
|
320
|
+
export declare const RunnerMcpProtocolDirectionValues: {
|
|
321
|
+
readonly clientToServer: "client_to_server";
|
|
322
|
+
readonly serverToClient: "server_to_client";
|
|
323
|
+
readonly local: "local";
|
|
324
|
+
};
|
|
325
|
+
export type RunnerMcpProtocolDirection = typeof RunnerMcpProtocolDirectionValues[keyof typeof RunnerMcpProtocolDirectionValues];
|
|
326
|
+
export declare const RunnerMcpProtocolEventKindValues: {
|
|
327
|
+
readonly request: "request";
|
|
328
|
+
readonly response: "response";
|
|
329
|
+
readonly notification: "notification";
|
|
330
|
+
readonly error: "error";
|
|
331
|
+
readonly transport: "transport";
|
|
332
|
+
};
|
|
333
|
+
export type RunnerMcpProtocolEventKind = typeof RunnerMcpProtocolEventKindValues[keyof typeof RunnerMcpProtocolEventKindValues];
|
|
334
|
+
export declare const RunnerMcpExecutionEffectValues: {
|
|
335
|
+
readonly readOnly: "read_only";
|
|
336
|
+
readonly consequential: "consequential";
|
|
337
|
+
readonly unknown: "unknown";
|
|
338
|
+
};
|
|
339
|
+
export type RunnerMcpExecutionEffect = typeof RunnerMcpExecutionEffectValues[keyof typeof RunnerMcpExecutionEffectValues];
|
|
340
|
+
export declare const RunnerMcpExecutionStatusValues: {
|
|
341
|
+
readonly queued: "queued";
|
|
342
|
+
readonly running: "running";
|
|
343
|
+
readonly cancelling: "cancelling";
|
|
344
|
+
readonly succeeded: "succeeded";
|
|
345
|
+
readonly failed: "failed";
|
|
346
|
+
readonly cancelled: "cancelled";
|
|
347
|
+
readonly timedOut: "timed_out";
|
|
348
|
+
};
|
|
349
|
+
export type RunnerMcpExecutionStatus = typeof RunnerMcpExecutionStatusValues[keyof typeof RunnerMcpExecutionStatusValues];
|
|
350
|
+
export declare const RunnerMcpTelemetryAvailabilityValues: {
|
|
351
|
+
readonly available: "available";
|
|
352
|
+
readonly partial: "partial";
|
|
353
|
+
readonly unavailable: "unavailable";
|
|
354
|
+
};
|
|
355
|
+
export type RunnerMcpTelemetryAvailability = typeof RunnerMcpTelemetryAvailabilityValues[keyof typeof RunnerMcpTelemetryAvailabilityValues];
|
|
356
|
+
export declare const RunnerMcpAssertionStatusValues: {
|
|
357
|
+
readonly passed: "passed";
|
|
358
|
+
readonly failed: "failed";
|
|
359
|
+
readonly error: "error";
|
|
360
|
+
readonly skipped: "skipped";
|
|
361
|
+
};
|
|
362
|
+
export type RunnerMcpAssertionStatus = typeof RunnerMcpAssertionStatusValues[keyof typeof RunnerMcpAssertionStatusValues];
|
|
363
|
+
export declare const RunnerMcpEvaluationResultStatusValues: {
|
|
364
|
+
readonly passed: "passed";
|
|
365
|
+
readonly failed: "failed";
|
|
366
|
+
readonly error: "error";
|
|
367
|
+
readonly skipped: "skipped";
|
|
368
|
+
};
|
|
369
|
+
export type RunnerMcpEvaluationResultStatus = typeof RunnerMcpEvaluationResultStatusValues[keyof typeof RunnerMcpEvaluationResultStatusValues];
|
|
370
|
+
export declare const RunnerMcpEvaluationRunStatusValues: {
|
|
371
|
+
readonly queued: "queued";
|
|
372
|
+
readonly running: "running";
|
|
274
373
|
readonly completed: "completed";
|
|
275
374
|
readonly failed: "failed";
|
|
276
375
|
readonly cancelled: "cancelled";
|
|
277
376
|
};
|
|
278
|
-
export type
|
|
377
|
+
export type RunnerMcpEvaluationRunStatus = typeof RunnerMcpEvaluationRunStatusValues[keyof typeof RunnerMcpEvaluationRunStatusValues];
|
|
378
|
+
export declare const RunnerMcpRegressionStatusValues: {
|
|
379
|
+
readonly improved: "improved";
|
|
380
|
+
readonly regressed: "regressed";
|
|
381
|
+
readonly unchanged: "unchanged";
|
|
382
|
+
readonly added: "added";
|
|
383
|
+
readonly removed: "removed";
|
|
384
|
+
};
|
|
385
|
+
export type RunnerMcpRegressionStatus = typeof RunnerMcpRegressionStatusValues[keyof typeof RunnerMcpRegressionStatusValues];
|
|
386
|
+
export declare const RunnerMcpEvaluationExportFormatValues: {
|
|
387
|
+
readonly json: "json";
|
|
388
|
+
readonly report: "report";
|
|
389
|
+
};
|
|
390
|
+
export type RunnerMcpEvaluationExportFormat = typeof RunnerMcpEvaluationExportFormatValues[keyof typeof RunnerMcpEvaluationExportFormatValues];
|
|
391
|
+
export declare const RunnerMcpEvaluationExportStatusValues: {
|
|
392
|
+
readonly pending: "pending";
|
|
393
|
+
readonly ready: "ready";
|
|
394
|
+
readonly failed: "failed";
|
|
395
|
+
};
|
|
396
|
+
export type RunnerMcpEvaluationExportStatus = typeof RunnerMcpEvaluationExportStatusValues[keyof typeof RunnerMcpEvaluationExportStatusValues];
|
|
397
|
+
export declare const RunnerMcpTransportKindValues: {
|
|
398
|
+
readonly stdio: "stdio";
|
|
399
|
+
readonly streamableHttp: "streamable_http";
|
|
400
|
+
readonly sse: "sse";
|
|
401
|
+
readonly inproc: "inproc";
|
|
402
|
+
readonly builtin: "builtin";
|
|
403
|
+
};
|
|
404
|
+
export type RunnerMcpTransportKind = typeof RunnerMcpTransportKindValues[keyof typeof RunnerMcpTransportKindValues];
|
|
279
405
|
export declare const McpDataModeValues: {
|
|
280
406
|
readonly live: "live";
|
|
281
407
|
readonly demo: "demo";
|
|
@@ -456,10 +582,13 @@ export type ApiError = NotFoundError | ValidationError | UnauthorizedError | For
|
|
|
456
582
|
export type LogBody = LogBodyString | LogBodyKvList | LogBodyArray | LogBodyBytes;
|
|
457
583
|
export type MetricNumberValue = MetricIntegerValue | MetricDoubleValue;
|
|
458
584
|
export type MetricPoint = GaugeMetricPoint | SumMetricPoint | HistogramMetricPoint | ExponentialHistogramMetricPoint | SummaryMetricPoint;
|
|
459
|
-
export type
|
|
460
|
-
export type
|
|
585
|
+
export type RunnerMcpServerConfiguration = RunnerMcpStdioServerConfiguration | RunnerMcpStreamableHttpServerConfiguration | RunnerMcpSseServerConfiguration | RunnerMcpInProcessServerConfiguration | RunnerMcpBuiltinServerConfiguration;
|
|
586
|
+
export type RunnerMcpTestAssertion = RunnerMcpStatusAssertion | RunnerMcpExactAssertion | RunnerMcpPartialAssertion | RunnerMcpSchemaAssertion | RunnerMcpPatternAssertion | RunnerMcpLatencyAssertion;
|
|
587
|
+
export type RunnerMcpEvaluationExportPayload = RunnerMcpEvaluationJsonExportPayload | RunnerMcpEvaluationReportExportPayload;
|
|
461
588
|
export type RunnerResourceEvents = RunnerResourceState;
|
|
462
589
|
export type RunnerLogEvents = RunnerLogLine;
|
|
590
|
+
export type RunnerMcpProtocolEvents = RunnerMcpProtocolEvent;
|
|
591
|
+
export type RunnerMcpExecutionUpdateEvents = RunnerMcpExecutionRecord;
|
|
463
592
|
export type ModelCatalogExclusionRateEvidence = ModelCatalogBaseRateEvidence | ModelCatalogAdditiveSurchargeEvidence | ModelCatalogInclusiveReplacementEvidence | ModelCatalogPublishedReplacementEvidence;
|
|
464
593
|
export type ModelCatalogTokenEstimateComponent = ModelCatalogTokenBaseRateComponent | ModelCatalogTokenAdditiveSurchargeComponent | ModelCatalogTokenInclusiveReplacementRateComponent | ModelCatalogTokenConditionalOverrideRateComponent;
|
|
465
594
|
export type ModelCatalogTokenEstimateExclusion = ModelCatalogUsageNotObservedExclusion | ModelCatalogConditionalAdjustmentNotAppliedExclusion | ModelCatalogSupersededOverrideExclusion | ModelCatalogOutsideTokenScopeExclusion | ModelCatalogUnsupportedUsageExclusion | ModelCatalogUnsupportedBillingExclusion;
|
|
@@ -945,10 +1074,6 @@ export interface HealthReport {
|
|
|
945
1074
|
"totalDurationMs": number;
|
|
946
1075
|
"entries": Record<string, HealthCheckEntry>;
|
|
947
1076
|
}
|
|
948
|
-
export interface RunnerMcpServerInfo {
|
|
949
|
-
"name": string;
|
|
950
|
-
"version": string;
|
|
951
|
-
}
|
|
952
1077
|
export interface RunnerResourceState {
|
|
953
1078
|
"name": string;
|
|
954
1079
|
"lifecycle": RunnerResourceLifecycle;
|
|
@@ -957,7 +1082,7 @@ export interface RunnerResourceState {
|
|
|
957
1082
|
"allocatedPort"?: number;
|
|
958
1083
|
"endpoint"?: string;
|
|
959
1084
|
"lastError"?: string;
|
|
960
|
-
"
|
|
1085
|
+
"serverIdentity"?: unknown;
|
|
961
1086
|
"toolCount"?: number;
|
|
962
1087
|
"restarts"?: number;
|
|
963
1088
|
}
|
|
@@ -966,119 +1091,512 @@ export interface RunnerLogLine {
|
|
|
966
1091
|
"stream": RunnerLogStream;
|
|
967
1092
|
"line": string;
|
|
968
1093
|
}
|
|
969
|
-
export interface
|
|
970
|
-
"
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
|
|
1094
|
+
export interface RunnerMcpPrincipalIdentity {
|
|
1095
|
+
"id": string;
|
|
1096
|
+
"displayName"?: string;
|
|
1097
|
+
"local": true;
|
|
1098
|
+
}
|
|
1099
|
+
export interface RunnerMcpWorkbenchSession {
|
|
1100
|
+
"id": RunnerMcpSessionId;
|
|
1101
|
+
"principal": RunnerMcpPrincipalIdentity;
|
|
1102
|
+
"workspaceIds": RunnerMcpWorkspaceId[];
|
|
1103
|
+
"activeWorkspaceId"?: RunnerMcpWorkspaceId;
|
|
1104
|
+
"createdAt": string;
|
|
1105
|
+
"expiresAt"?: string;
|
|
974
1106
|
}
|
|
975
|
-
export interface
|
|
976
|
-
"taskSupport"?: RunnerMcpToolTaskSupport;
|
|
1107
|
+
export interface RunnerMcpSessionBootstrapResponse extends RunnerMcpWorkbenchSession {
|
|
977
1108
|
}
|
|
978
|
-
export interface
|
|
1109
|
+
export interface RunnerMcpWorkspace {
|
|
1110
|
+
"id": RunnerMcpWorkspaceId;
|
|
1111
|
+
"ownerId": string;
|
|
979
1112
|
"name": string;
|
|
980
|
-
"title"?: string;
|
|
981
1113
|
"description"?: string;
|
|
982
|
-
"
|
|
983
|
-
"
|
|
984
|
-
"annotations"?: Record<string, unknown>;
|
|
985
|
-
"execution"?: RunnerMcpToolExecution;
|
|
986
|
-
"icons"?: RunnerMcpIcon[];
|
|
987
|
-
"_meta"?: Record<string, unknown>;
|
|
988
|
-
}
|
|
989
|
-
export interface RunnerMcpToolsResponse {
|
|
990
|
-
"tools": RunnerMcpTool[];
|
|
991
|
-
"nextCursor"?: string;
|
|
992
|
-
"_meta"?: Record<string, unknown>;
|
|
1114
|
+
"createdAt": string;
|
|
1115
|
+
"updatedAt": string;
|
|
993
1116
|
}
|
|
994
|
-
export interface
|
|
1117
|
+
export interface RunnerMcpWorkspaceCreateRequest {
|
|
995
1118
|
"name": string;
|
|
996
|
-
"
|
|
997
|
-
"task"?: RunnerMcpTaskMetadata;
|
|
998
|
-
"_meta"?: Record<string, unknown>;
|
|
1119
|
+
"description"?: string;
|
|
999
1120
|
}
|
|
1000
|
-
export interface
|
|
1001
|
-
"
|
|
1121
|
+
export interface RunnerMcpWorkspaceUpdateRequest {
|
|
1122
|
+
"name"?: string;
|
|
1123
|
+
"description"?: string;
|
|
1002
1124
|
}
|
|
1003
|
-
export interface
|
|
1004
|
-
"
|
|
1005
|
-
|
|
1125
|
+
export interface RunnerMcpWorkspaceListResponse {
|
|
1126
|
+
"workspaces": RunnerMcpWorkspace[];
|
|
1127
|
+
}
|
|
1128
|
+
export interface RunnerMcpWorkspacePreferences {
|
|
1129
|
+
"workspaceId": RunnerMcpWorkspaceId;
|
|
1130
|
+
"selectedServerId"?: RunnerMcpServerId;
|
|
1131
|
+
"selectedToolName"?: string;
|
|
1132
|
+
"inputMode": RunnerMcpToolInputMode;
|
|
1133
|
+
"activePanel"?: string;
|
|
1134
|
+
"compactMode": boolean;
|
|
1135
|
+
"updatedAt": string;
|
|
1136
|
+
}
|
|
1137
|
+
export interface RunnerMcpWorkspacePreferencesUpdateRequest {
|
|
1138
|
+
"selectedServerId"?: RunnerMcpServerId;
|
|
1139
|
+
"selectedToolName"?: string;
|
|
1140
|
+
"inputMode"?: RunnerMcpToolInputMode;
|
|
1141
|
+
"activePanel"?: string;
|
|
1142
|
+
"compactMode"?: boolean;
|
|
1143
|
+
}
|
|
1144
|
+
export interface RunnerMcpSecretReference {
|
|
1145
|
+
"source": "environment";
|
|
1146
|
+
"environmentVariable": string;
|
|
1147
|
+
}
|
|
1148
|
+
export interface RunnerMcpEnvironmentSecretReference {
|
|
1149
|
+
"name": string;
|
|
1150
|
+
"secret": RunnerMcpSecretReference;
|
|
1006
1151
|
}
|
|
1007
|
-
export interface
|
|
1008
|
-
"
|
|
1009
|
-
"
|
|
1152
|
+
export interface RunnerMcpHeaderSecretReference {
|
|
1153
|
+
"name": string;
|
|
1154
|
+
"secret": RunnerMcpSecretReference;
|
|
1155
|
+
"scheme"?: RunnerMcpHeaderSecretScheme;
|
|
1156
|
+
}
|
|
1157
|
+
export interface RunnerMcpStdioServerConfiguration {
|
|
1158
|
+
"transport": "stdio";
|
|
1159
|
+
"command": string;
|
|
1160
|
+
"arguments"?: string[];
|
|
1161
|
+
"workingDirectory"?: string;
|
|
1162
|
+
"environment"?: RunnerMcpEnvironmentSecretReference[];
|
|
1163
|
+
}
|
|
1164
|
+
export interface RunnerMcpStreamableHttpServerConfiguration {
|
|
1165
|
+
"transport": "streamable_http";
|
|
1166
|
+
"endpoint": string;
|
|
1167
|
+
"headers"?: RunnerMcpHeaderSecretReference[];
|
|
1168
|
+
}
|
|
1169
|
+
export interface RunnerMcpSseServerConfiguration {
|
|
1170
|
+
"transport": "sse";
|
|
1171
|
+
"endpoint": string;
|
|
1172
|
+
"headers"?: RunnerMcpHeaderSecretReference[];
|
|
1173
|
+
}
|
|
1174
|
+
export interface RunnerMcpInProcessServerConfiguration {
|
|
1175
|
+
"transport": "inproc";
|
|
1176
|
+
"implementation": string;
|
|
1177
|
+
}
|
|
1178
|
+
export interface RunnerMcpBuiltinServerConfiguration {
|
|
1179
|
+
"transport": "builtin";
|
|
1180
|
+
"name": string;
|
|
1010
1181
|
}
|
|
1011
|
-
export interface
|
|
1012
|
-
"
|
|
1013
|
-
"
|
|
1014
|
-
"
|
|
1182
|
+
export interface RunnerMcpError {
|
|
1183
|
+
"category": RunnerMcpErrorCategory;
|
|
1184
|
+
"code": string;
|
|
1185
|
+
"message": string;
|
|
1186
|
+
"occurredAt": string;
|
|
1187
|
+
"retryable": boolean;
|
|
1188
|
+
"details"?: unknown;
|
|
1189
|
+
}
|
|
1190
|
+
export interface RunnerMcpInitializationSnapshot {
|
|
1191
|
+
"initializedAt": string;
|
|
1192
|
+
"protocolVersion": string;
|
|
1193
|
+
"serverIdentity": unknown;
|
|
1194
|
+
"capabilities": unknown;
|
|
1195
|
+
"instructions"?: string;
|
|
1196
|
+
"sessionInfo"?: unknown;
|
|
1197
|
+
"result": unknown;
|
|
1198
|
+
}
|
|
1199
|
+
export interface RunnerMcpConnectionSnapshot {
|
|
1200
|
+
"status": RunnerMcpConnectionStatus;
|
|
1201
|
+
"changedAt": string;
|
|
1202
|
+
"connectedAt"?: string;
|
|
1203
|
+
"disconnectedAt"?: string;
|
|
1204
|
+
"initialization"?: RunnerMcpInitializationSnapshot;
|
|
1205
|
+
"recentError"?: RunnerMcpError;
|
|
1206
|
+
}
|
|
1207
|
+
export interface RunnerMcpServer {
|
|
1208
|
+
"id": RunnerMcpServerId;
|
|
1209
|
+
"workspaceId": RunnerMcpWorkspaceId;
|
|
1210
|
+
"name": string;
|
|
1211
|
+
"description"?: string;
|
|
1212
|
+
"configuration": RunnerMcpServerConfiguration;
|
|
1213
|
+
"connection": RunnerMcpConnectionSnapshot;
|
|
1214
|
+
"createdAt": string;
|
|
1215
|
+
"updatedAt": string;
|
|
1015
1216
|
}
|
|
1016
|
-
export interface
|
|
1017
|
-
"
|
|
1018
|
-
"
|
|
1019
|
-
"
|
|
1217
|
+
export interface RunnerMcpServerCreateRequest {
|
|
1218
|
+
"name": string;
|
|
1219
|
+
"description"?: string;
|
|
1220
|
+
"configuration": RunnerMcpServerConfiguration;
|
|
1221
|
+
"autoConnect"?: boolean;
|
|
1020
1222
|
}
|
|
1021
|
-
export interface
|
|
1022
|
-
"
|
|
1023
|
-
"
|
|
1223
|
+
export interface RunnerMcpServerUpdateRequest {
|
|
1224
|
+
"name"?: string;
|
|
1225
|
+
"description"?: string;
|
|
1226
|
+
"configuration"?: RunnerMcpServerConfiguration;
|
|
1227
|
+
}
|
|
1228
|
+
export interface RunnerMcpServerListResponse {
|
|
1229
|
+
"servers": RunnerMcpServer[];
|
|
1024
1230
|
}
|
|
1025
|
-
export interface
|
|
1026
|
-
"
|
|
1231
|
+
export interface RunnerMcpServerActionAccepted {
|
|
1232
|
+
"server": RunnerMcpServer;
|
|
1027
1233
|
}
|
|
1028
|
-
export interface
|
|
1029
|
-
"
|
|
1030
|
-
"
|
|
1031
|
-
"
|
|
1234
|
+
export interface RunnerMcpDiscoveryCollection {
|
|
1235
|
+
"items": unknown[];
|
|
1236
|
+
"count": number;
|
|
1237
|
+
"complete": boolean;
|
|
1238
|
+
"cursor"?: string;
|
|
1239
|
+
"nextCursor"?: string;
|
|
1240
|
+
"discoveredAt": string;
|
|
1241
|
+
}
|
|
1242
|
+
export interface RunnerMcpDiscoverySnapshot {
|
|
1243
|
+
"serverId": RunnerMcpServerId;
|
|
1244
|
+
"startedAt": string;
|
|
1245
|
+
"completedAt": string;
|
|
1246
|
+
"tools": RunnerMcpDiscoveryCollection;
|
|
1247
|
+
"resources": RunnerMcpDiscoveryCollection;
|
|
1248
|
+
"resourceTemplates": RunnerMcpDiscoveryCollection;
|
|
1249
|
+
"prompts": RunnerMcpDiscoveryCollection;
|
|
1250
|
+
}
|
|
1251
|
+
export interface RunnerMcpProtocolEvent {
|
|
1252
|
+
"id": string;
|
|
1253
|
+
"serverId": RunnerMcpServerId;
|
|
1254
|
+
"direction": RunnerMcpProtocolDirection;
|
|
1255
|
+
"kind": RunnerMcpProtocolEventKind;
|
|
1256
|
+
"method"?: string;
|
|
1257
|
+
"requestId"?: unknown;
|
|
1258
|
+
"timestamp": string;
|
|
1259
|
+
"durationMs"?: number;
|
|
1260
|
+
"payload"?: unknown;
|
|
1261
|
+
"redactionApplied": true;
|
|
1262
|
+
"executionId"?: RunnerMcpExecutionId;
|
|
1263
|
+
"traceId"?: TraceId;
|
|
1264
|
+
}
|
|
1265
|
+
export interface RunnerMcpProtocolEventPage {
|
|
1266
|
+
"events": RunnerMcpProtocolEvent[];
|
|
1267
|
+
"nextCursor"?: string;
|
|
1032
1268
|
}
|
|
1033
|
-
export interface
|
|
1034
|
-
"
|
|
1269
|
+
export interface RunnerMcpExecutionConfirmationRequest {
|
|
1270
|
+
"acknowledged": true;
|
|
1271
|
+
"acknowledgement": string;
|
|
1272
|
+
}
|
|
1273
|
+
export interface RunnerMcpExecutionConfirmationEvidence {
|
|
1274
|
+
"acknowledged": true;
|
|
1275
|
+
"acknowledgement": string;
|
|
1276
|
+
"confirmedAt": string;
|
|
1277
|
+
}
|
|
1278
|
+
export interface RunnerMcpExecutionRequest {
|
|
1279
|
+
"toolName": string;
|
|
1280
|
+
"arguments"?: unknown;
|
|
1281
|
+
"timeoutMs": number;
|
|
1282
|
+
"confirmation"?: RunnerMcpExecutionConfirmationRequest;
|
|
1283
|
+
"idempotencyKey": string;
|
|
1284
|
+
}
|
|
1285
|
+
export interface RunnerMcpExecutionTokenUsage {
|
|
1286
|
+
"inputTokens"?: number;
|
|
1287
|
+
"outputTokens"?: number;
|
|
1288
|
+
"totalTokens"?: number;
|
|
1289
|
+
"estimated": boolean;
|
|
1290
|
+
}
|
|
1291
|
+
export interface RunnerMcpExecutionCost {
|
|
1292
|
+
"amountUsd": number;
|
|
1293
|
+
"estimated": boolean;
|
|
1294
|
+
"source"?: string;
|
|
1295
|
+
}
|
|
1296
|
+
export interface RunnerMcpTelemetryCorrelation {
|
|
1297
|
+
"executionId"?: RunnerMcpExecutionId;
|
|
1298
|
+
"evaluationRunId"?: RunnerMcpEvaluationRunId;
|
|
1299
|
+
"testCaseId"?: RunnerMcpTestCaseId;
|
|
1300
|
+
"traceIds": TraceId[];
|
|
1301
|
+
"spanIds": SpanId[];
|
|
1302
|
+
}
|
|
1303
|
+
export interface RunnerMcpExecutionRecord {
|
|
1304
|
+
"id": RunnerMcpExecutionId;
|
|
1305
|
+
"workspaceId": RunnerMcpWorkspaceId;
|
|
1306
|
+
"serverId": RunnerMcpServerId;
|
|
1307
|
+
"request": RunnerMcpExecutionRequest;
|
|
1308
|
+
"effect": RunnerMcpExecutionEffect;
|
|
1309
|
+
"confirmation"?: RunnerMcpExecutionConfirmationEvidence;
|
|
1310
|
+
"status": RunnerMcpExecutionStatus;
|
|
1311
|
+
"createdAt": string;
|
|
1312
|
+
"startedAt"?: string;
|
|
1313
|
+
"completedAt"?: string;
|
|
1314
|
+
"durationMs"?: number;
|
|
1315
|
+
"attemptCount": number;
|
|
1316
|
+
"retryCount": number;
|
|
1317
|
+
"cancelRequestedAt"?: string;
|
|
1318
|
+
"cancelledAt"?: string;
|
|
1319
|
+
"result"?: unknown;
|
|
1320
|
+
"error"?: RunnerMcpError;
|
|
1321
|
+
"tokenUsage"?: RunnerMcpExecutionTokenUsage;
|
|
1322
|
+
"cost"?: RunnerMcpExecutionCost;
|
|
1323
|
+
"telemetry"?: RunnerMcpTelemetryCorrelation;
|
|
1324
|
+
}
|
|
1325
|
+
export interface RunnerMcpExecutionAccepted {
|
|
1326
|
+
"execution": RunnerMcpExecutionRecord;
|
|
1327
|
+
}
|
|
1328
|
+
export interface RunnerMcpExecutionCancelRequest {
|
|
1329
|
+
"reason"?: string;
|
|
1330
|
+
"idempotencyKey": string;
|
|
1331
|
+
}
|
|
1332
|
+
export interface RunnerMcpExecutionPage {
|
|
1333
|
+
"executions": RunnerMcpExecutionRecord[];
|
|
1334
|
+
"nextCursor"?: string;
|
|
1335
|
+
}
|
|
1336
|
+
export interface RunnerMcpTelemetrySignalAvailability {
|
|
1337
|
+
"status": RunnerMcpTelemetryAvailability;
|
|
1338
|
+
"unavailableReason"?: string;
|
|
1339
|
+
"itemCount": number;
|
|
1340
|
+
}
|
|
1341
|
+
export interface RunnerMcpTelemetrySignalSummary {
|
|
1342
|
+
"traces": RunnerMcpTelemetrySignalAvailability;
|
|
1343
|
+
"logs": RunnerMcpTelemetrySignalAvailability;
|
|
1344
|
+
"metrics": RunnerMcpTelemetrySignalAvailability;
|
|
1345
|
+
"exceptions": RunnerMcpTelemetrySignalAvailability;
|
|
1346
|
+
"toolCallEvents": RunnerMcpTelemetrySignalAvailability;
|
|
1347
|
+
}
|
|
1348
|
+
export interface RunnerMcpExecutionTelemetryResponse {
|
|
1349
|
+
"signals": RunnerMcpTelemetrySignalSummary;
|
|
1350
|
+
"correlation": RunnerMcpTelemetryCorrelation;
|
|
1351
|
+
"traces": Trace[];
|
|
1352
|
+
"logs": LogRecord[];
|
|
1353
|
+
"metrics": MetricPoint[];
|
|
1354
|
+
"queriedAt": string;
|
|
1355
|
+
"selfExportSuppressed": true;
|
|
1035
1356
|
}
|
|
1036
|
-
export interface
|
|
1037
|
-
"
|
|
1038
|
-
"
|
|
1357
|
+
export interface RunnerMcpStatusAssertion {
|
|
1358
|
+
"id": string;
|
|
1359
|
+
"kind": "status";
|
|
1360
|
+
"expected": RunnerMcpExecutionStatus[];
|
|
1361
|
+
}
|
|
1362
|
+
export interface RunnerMcpExactAssertion {
|
|
1363
|
+
"id": string;
|
|
1364
|
+
"kind": "exact";
|
|
1365
|
+
"path"?: string;
|
|
1366
|
+
"expected": unknown;
|
|
1367
|
+
}
|
|
1368
|
+
export interface RunnerMcpPartialAssertion {
|
|
1369
|
+
"id": string;
|
|
1370
|
+
"kind": "partial";
|
|
1371
|
+
"path"?: string;
|
|
1372
|
+
"expected": unknown;
|
|
1373
|
+
}
|
|
1374
|
+
export interface RunnerMcpSchemaAssertion {
|
|
1375
|
+
"id": string;
|
|
1376
|
+
"kind": "schema";
|
|
1377
|
+
"path"?: string;
|
|
1378
|
+
"schema": unknown;
|
|
1379
|
+
}
|
|
1380
|
+
export interface RunnerMcpPatternAssertion {
|
|
1381
|
+
"id": string;
|
|
1382
|
+
"kind": "pattern";
|
|
1383
|
+
"path"?: string;
|
|
1384
|
+
"pattern": string;
|
|
1385
|
+
"flags"?: string;
|
|
1386
|
+
}
|
|
1387
|
+
export interface RunnerMcpLatencyAssertion {
|
|
1388
|
+
"id": string;
|
|
1389
|
+
"kind": "latency";
|
|
1390
|
+
"maxDurationMs": number;
|
|
1391
|
+
}
|
|
1392
|
+
export interface RunnerMcpTestCase {
|
|
1393
|
+
"id": RunnerMcpTestCaseId;
|
|
1394
|
+
"workspaceId": RunnerMcpWorkspaceId;
|
|
1395
|
+
"serverId": RunnerMcpServerId;
|
|
1039
1396
|
"name": string;
|
|
1040
|
-
"title"?: string;
|
|
1041
1397
|
"description"?: string;
|
|
1042
|
-
"
|
|
1043
|
-
"
|
|
1044
|
-
"
|
|
1398
|
+
"toolName": string;
|
|
1399
|
+
"arguments"?: unknown;
|
|
1400
|
+
"timeoutMs": number;
|
|
1401
|
+
"assertions": RunnerMcpTestAssertion[];
|
|
1402
|
+
"tags": string[];
|
|
1403
|
+
"createdAt": string;
|
|
1404
|
+
"updatedAt": string;
|
|
1045
1405
|
}
|
|
1046
|
-
export interface
|
|
1047
|
-
"
|
|
1048
|
-
"id": string;
|
|
1406
|
+
export interface RunnerMcpTestCaseCreateRequest {
|
|
1407
|
+
"serverId": RunnerMcpServerId;
|
|
1049
1408
|
"name": string;
|
|
1050
|
-
"
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
"
|
|
1054
|
-
"
|
|
1055
|
-
"
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
"
|
|
1061
|
-
"
|
|
1062
|
-
"
|
|
1409
|
+
"description"?: string;
|
|
1410
|
+
"toolName": string;
|
|
1411
|
+
"arguments"?: unknown;
|
|
1412
|
+
"timeoutMs": number;
|
|
1413
|
+
"assertions": RunnerMcpTestAssertion[];
|
|
1414
|
+
"tags"?: string[];
|
|
1415
|
+
}
|
|
1416
|
+
export interface RunnerMcpTestCaseUpdateRequest {
|
|
1417
|
+
"serverId"?: RunnerMcpServerId;
|
|
1418
|
+
"name"?: string;
|
|
1419
|
+
"description"?: string;
|
|
1420
|
+
"toolName"?: string;
|
|
1421
|
+
"arguments"?: unknown;
|
|
1422
|
+
"timeoutMs"?: number;
|
|
1423
|
+
"assertions"?: RunnerMcpTestAssertion[];
|
|
1424
|
+
"tags"?: string[];
|
|
1425
|
+
}
|
|
1426
|
+
export interface RunnerMcpTestCasePage {
|
|
1427
|
+
"testCases": RunnerMcpTestCase[];
|
|
1428
|
+
"nextCursor"?: string;
|
|
1429
|
+
}
|
|
1430
|
+
export interface RunnerMcpTestSuite {
|
|
1431
|
+
"id": RunnerMcpSuiteId;
|
|
1432
|
+
"workspaceId": RunnerMcpWorkspaceId;
|
|
1433
|
+
"name": string;
|
|
1434
|
+
"description"?: string;
|
|
1435
|
+
"testCaseIds": RunnerMcpTestCaseId[];
|
|
1436
|
+
"tags": string[];
|
|
1063
1437
|
"createdAt": string;
|
|
1064
|
-
"
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
"
|
|
1070
|
-
"
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
"
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
"
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
"
|
|
1081
|
-
|
|
1438
|
+
"updatedAt": string;
|
|
1439
|
+
}
|
|
1440
|
+
export interface RunnerMcpTestSuiteCreateRequest {
|
|
1441
|
+
"name": string;
|
|
1442
|
+
"description"?: string;
|
|
1443
|
+
"testCaseIds": RunnerMcpTestCaseId[];
|
|
1444
|
+
"tags"?: string[];
|
|
1445
|
+
}
|
|
1446
|
+
export interface RunnerMcpTestSuiteUpdateRequest {
|
|
1447
|
+
"name"?: string;
|
|
1448
|
+
"description"?: string;
|
|
1449
|
+
"testCaseIds"?: RunnerMcpTestCaseId[];
|
|
1450
|
+
"tags"?: string[];
|
|
1451
|
+
}
|
|
1452
|
+
export interface RunnerMcpTestSuitePage {
|
|
1453
|
+
"suites": RunnerMcpTestSuite[];
|
|
1454
|
+
"nextCursor"?: string;
|
|
1455
|
+
}
|
|
1456
|
+
export interface RunnerMcpEvaluationRunRequest {
|
|
1457
|
+
"idempotencyKey": string;
|
|
1458
|
+
"confirmation"?: RunnerMcpExecutionConfirmationRequest;
|
|
1459
|
+
"concurrency"?: number;
|
|
1460
|
+
"failFast"?: boolean;
|
|
1461
|
+
}
|
|
1462
|
+
export interface RunnerMcpTestCaseRunRequest extends RunnerMcpEvaluationRunRequest {
|
|
1463
|
+
}
|
|
1464
|
+
export interface RunnerMcpSuiteRunRequest extends RunnerMcpEvaluationRunRequest {
|
|
1465
|
+
"selectedTestCaseIds"?: RunnerMcpTestCaseId[];
|
|
1466
|
+
}
|
|
1467
|
+
export interface RunnerMcpAssertionResult {
|
|
1468
|
+
"assertionId": string;
|
|
1469
|
+
"kind": string;
|
|
1470
|
+
"status": RunnerMcpAssertionStatus;
|
|
1471
|
+
"message"?: string;
|
|
1472
|
+
"actual"?: unknown;
|
|
1473
|
+
}
|
|
1474
|
+
export interface RunnerMcpEvaluationTestCaseSnapshot {
|
|
1475
|
+
"id": RunnerMcpTestCaseId;
|
|
1476
|
+
"serverId": RunnerMcpServerId;
|
|
1477
|
+
"name": string;
|
|
1478
|
+
"description"?: string;
|
|
1479
|
+
"toolName": string;
|
|
1480
|
+
"arguments"?: unknown;
|
|
1481
|
+
"timeoutMs": number;
|
|
1482
|
+
"assertions": RunnerMcpTestAssertion[];
|
|
1483
|
+
"tags": string[];
|
|
1484
|
+
}
|
|
1485
|
+
export interface RunnerMcpEvaluationSuiteSnapshot {
|
|
1486
|
+
"id": RunnerMcpSuiteId;
|
|
1487
|
+
"name": string;
|
|
1488
|
+
"description"?: string;
|
|
1489
|
+
"testCaseIds": RunnerMcpTestCaseId[];
|
|
1490
|
+
"tags": string[];
|
|
1491
|
+
}
|
|
1492
|
+
export interface RunnerMcpEvaluationTestResult {
|
|
1493
|
+
"testCase": RunnerMcpEvaluationTestCaseSnapshot;
|
|
1494
|
+
"executionId"?: RunnerMcpExecutionId;
|
|
1495
|
+
"status": RunnerMcpEvaluationResultStatus;
|
|
1496
|
+
"startedAt"?: string;
|
|
1497
|
+
"completedAt"?: string;
|
|
1498
|
+
"durationMs"?: number;
|
|
1499
|
+
"assertions": RunnerMcpAssertionResult[];
|
|
1500
|
+
"error"?: RunnerMcpError;
|
|
1501
|
+
}
|
|
1502
|
+
export interface RunnerMcpEvaluationSummary {
|
|
1503
|
+
"total": number;
|
|
1504
|
+
"passed": number;
|
|
1505
|
+
"failed": number;
|
|
1506
|
+
"errors": number;
|
|
1507
|
+
"skipped": number;
|
|
1508
|
+
"successRate": number;
|
|
1509
|
+
"reliability": number;
|
|
1510
|
+
"meanDurationMs"?: number;
|
|
1511
|
+
"p50DurationMs"?: number;
|
|
1512
|
+
"p95DurationMs"?: number;
|
|
1513
|
+
"p99DurationMs"?: number;
|
|
1514
|
+
"tokenUsage"?: RunnerMcpExecutionTokenUsage;
|
|
1515
|
+
"cost"?: RunnerMcpExecutionCost;
|
|
1516
|
+
}
|
|
1517
|
+
export interface RunnerMcpEvaluationRun {
|
|
1518
|
+
"id": RunnerMcpEvaluationRunId;
|
|
1519
|
+
"workspaceId": RunnerMcpWorkspaceId;
|
|
1520
|
+
"suite"?: RunnerMcpEvaluationSuiteSnapshot;
|
|
1521
|
+
"testCases": RunnerMcpEvaluationTestCaseSnapshot[];
|
|
1522
|
+
"status": RunnerMcpEvaluationRunStatus;
|
|
1523
|
+
"createdAt": string;
|
|
1524
|
+
"startedAt"?: string;
|
|
1525
|
+
"completedAt"?: string;
|
|
1526
|
+
"results": RunnerMcpEvaluationTestResult[];
|
|
1527
|
+
"summary"?: RunnerMcpEvaluationSummary;
|
|
1528
|
+
"confirmation"?: RunnerMcpExecutionConfirmationEvidence;
|
|
1529
|
+
"telemetry"?: RunnerMcpTelemetryCorrelation;
|
|
1530
|
+
"error"?: RunnerMcpError;
|
|
1531
|
+
}
|
|
1532
|
+
export interface RunnerMcpEvaluationRunAccepted {
|
|
1533
|
+
"run": RunnerMcpEvaluationRun;
|
|
1534
|
+
}
|
|
1535
|
+
export interface RunnerMcpEvaluationRunPage {
|
|
1536
|
+
"runs": RunnerMcpEvaluationRun[];
|
|
1537
|
+
"nextCursor"?: string;
|
|
1538
|
+
}
|
|
1539
|
+
export interface RunnerMcpEvaluationComparisonRequest {
|
|
1540
|
+
"baselineRunId": RunnerMcpEvaluationRunId;
|
|
1541
|
+
"candidateRunId": RunnerMcpEvaluationRunId;
|
|
1542
|
+
}
|
|
1543
|
+
export interface RunnerMcpEvaluationTestComparison {
|
|
1544
|
+
"testCaseId": RunnerMcpTestCaseId;
|
|
1545
|
+
"status": RunnerMcpRegressionStatus;
|
|
1546
|
+
"baselineStatus"?: RunnerMcpEvaluationResultStatus;
|
|
1547
|
+
"candidateStatus"?: RunnerMcpEvaluationResultStatus;
|
|
1548
|
+
"durationDeltaMs"?: number;
|
|
1549
|
+
}
|
|
1550
|
+
export interface RunnerMcpEvaluationRunComparison {
|
|
1551
|
+
"baselineRunId": RunnerMcpEvaluationRunId;
|
|
1552
|
+
"candidateRunId": RunnerMcpEvaluationRunId;
|
|
1553
|
+
"baseline": RunnerMcpEvaluationSummary;
|
|
1554
|
+
"candidate": RunnerMcpEvaluationSummary;
|
|
1555
|
+
"successRateDelta": number;
|
|
1556
|
+
"reliabilityDelta": number;
|
|
1557
|
+
"p95DurationDeltaMs"?: number;
|
|
1558
|
+
"tokenDelta"?: number;
|
|
1559
|
+
"costDeltaUsd"?: number;
|
|
1560
|
+
"tests": RunnerMcpEvaluationTestComparison[];
|
|
1561
|
+
"comparedAt": string;
|
|
1562
|
+
}
|
|
1563
|
+
export interface RunnerMcpEvaluationExportRequest {
|
|
1564
|
+
"format": RunnerMcpEvaluationExportFormat;
|
|
1565
|
+
"includeProtocolEvents"?: boolean;
|
|
1566
|
+
"includeTelemetry"?: boolean;
|
|
1567
|
+
"idempotencyKey": string;
|
|
1568
|
+
}
|
|
1569
|
+
export interface RunnerMcpEvaluationExport {
|
|
1570
|
+
"id": RunnerMcpEvaluationExportId;
|
|
1571
|
+
"runId": RunnerMcpEvaluationRunId;
|
|
1572
|
+
"format": RunnerMcpEvaluationExportFormat;
|
|
1573
|
+
"status": RunnerMcpEvaluationExportStatus;
|
|
1574
|
+
"requestedAt": string;
|
|
1575
|
+
"completedAt"?: string;
|
|
1576
|
+
"mediaType"?: string;
|
|
1577
|
+
"fileName"?: string;
|
|
1578
|
+
"byteSize"?: number;
|
|
1579
|
+
"sha256"?: string;
|
|
1580
|
+
"error"?: RunnerMcpError;
|
|
1581
|
+
}
|
|
1582
|
+
export interface RunnerMcpEvaluationJsonExportPayload {
|
|
1583
|
+
"format": "json";
|
|
1584
|
+
"run": RunnerMcpEvaluationRun;
|
|
1585
|
+
"protocolEvents": RunnerMcpProtocolEvent[];
|
|
1586
|
+
"telemetry": RunnerMcpExecutionTelemetryResponse[];
|
|
1587
|
+
"exportedAt": string;
|
|
1588
|
+
}
|
|
1589
|
+
export interface RunnerMcpEvaluationReportExportPayload {
|
|
1590
|
+
"format": "report";
|
|
1591
|
+
"markdown": string;
|
|
1592
|
+
"exportedAt": string;
|
|
1593
|
+
}
|
|
1594
|
+
export interface RunnerMcpEvaluationExportArtifact {
|
|
1595
|
+
"export": RunnerMcpEvaluationExport;
|
|
1596
|
+
"payload": RunnerMcpEvaluationExportPayload;
|
|
1597
|
+
}
|
|
1598
|
+
export interface RunnerMcpEvaluationExportAccepted {
|
|
1599
|
+
"export": RunnerMcpEvaluationExport;
|
|
1082
1600
|
}
|
|
1083
1601
|
export interface DisplayTracesInput {
|
|
1084
1602
|
"trace_id"?: TraceId;
|