@dalmia/calibrate-mcp 0.0.33 → 0.0.35
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/bin/mcp-server.js +791 -94
- package/bin/mcp-server.js.map +32 -10
- package/esm/funcs/annotatorsCreate.d.ts +16 -0
- package/esm/funcs/annotatorsCreate.d.ts.map +1 -0
- package/esm/funcs/annotatorsCreate.js +86 -0
- package/esm/funcs/annotatorsCreate.js.map +1 -0
- package/esm/funcs/annotatorsList.d.ts +16 -0
- package/esm/funcs/annotatorsList.d.ts.map +1 -0
- package/esm/funcs/annotatorsList.js +85 -0
- package/esm/funcs/annotatorsList.js.map +1 -0
- package/esm/funcs/annotatorsUpdate.d.ts +16 -0
- package/esm/funcs/annotatorsUpdate.d.ts.map +1 -0
- package/esm/funcs/annotatorsUpdate.js +92 -0
- package/esm/funcs/annotatorsUpdate.js.map +1 -0
- package/esm/funcs/tracesCreate.d.ts +16 -0
- package/esm/funcs/tracesCreate.d.ts.map +1 -0
- package/esm/funcs/tracesCreate.js +86 -0
- package/esm/funcs/tracesCreate.js.map +1 -0
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +9 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/annotatorsCreate.d.ts +7 -0
- package/esm/mcp-server/tools/annotatorsCreate.d.ts.map +1 -0
- package/esm/mcp-server/tools/annotatorsCreate.js +34 -0
- package/esm/mcp-server/tools/annotatorsCreate.js.map +1 -0
- package/esm/mcp-server/tools/annotatorsList.d.ts +7 -0
- package/esm/mcp-server/tools/annotatorsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/annotatorsList.js +34 -0
- package/esm/mcp-server/tools/annotatorsList.js.map +1 -0
- package/esm/mcp-server/tools/annotatorsUpdate.d.ts +7 -0
- package/esm/mcp-server/tools/annotatorsUpdate.d.ts.map +1 -0
- package/esm/mcp-server/tools/annotatorsUpdate.js +34 -0
- package/esm/mcp-server/tools/annotatorsUpdate.js.map +1 -0
- package/esm/mcp-server/tools/tracesCreate.d.ts +7 -0
- package/esm/mcp-server/tools/tracesCreate.d.ts.map +1 -0
- package/esm/mcp-server/tools/tracesCreate.js +38 -0
- package/esm/mcp-server/tools/tracesCreate.js.map +1 -0
- package/esm/models/annotatorcreate.d.ts +6 -0
- package/esm/models/annotatorcreate.d.ts.map +1 -0
- package/esm/models/annotatorcreate.js +8 -0
- package/esm/models/annotatorcreate.js.map +1 -0
- package/esm/models/annotatorcreateresponse.d.ts +7 -0
- package/esm/models/annotatorcreateresponse.d.ts.map +1 -0
- package/esm/models/annotatorcreateresponse.js +9 -0
- package/esm/models/annotatorcreateresponse.js.map +1 -0
- package/esm/models/annotatorresponse.d.ts +12 -0
- package/esm/models/annotatorresponse.d.ts.map +1 -0
- package/esm/models/annotatorresponse.js +15 -0
- package/esm/models/annotatorresponse.js.map +1 -0
- package/esm/models/annotatorupdate.d.ts +6 -0
- package/esm/models/annotatorupdate.d.ts.map +1 -0
- package/esm/models/annotatorupdate.js +8 -0
- package/esm/models/annotatorupdate.js.map +1 -0
- package/esm/models/createannotatorendpointannotatorspostop.d.ts +12 -0
- package/esm/models/createannotatorendpointannotatorspostop.d.ts.map +1 -0
- package/esm/models/createannotatorendpointannotatorspostop.js +16 -0
- package/esm/models/createannotatorendpointannotatorspostop.js.map +1 -0
- package/esm/models/ingesttracetracespostop.d.ts +12 -0
- package/esm/models/ingesttracetracespostop.d.ts.map +1 -0
- package/esm/models/ingesttracetracespostop.js +16 -0
- package/esm/models/ingesttracetracespostop.js.map +1 -0
- package/esm/models/listannotatorsannotatorsgetop.d.ts +10 -0
- package/esm/models/listannotatorsannotatorsgetop.d.ts.map +1 -0
- package/esm/models/listannotatorsannotatorsgetop.js +14 -0
- package/esm/models/listannotatorsannotatorsgetop.js.map +1 -0
- package/esm/models/traceingest.d.ts +14 -0
- package/esm/models/traceingest.d.ts.map +1 -0
- package/esm/models/traceingest.js +17 -0
- package/esm/models/traceingest.js.map +1 -0
- package/esm/models/traceingestresponse.d.ts +9 -0
- package/esm/models/traceingestresponse.d.ts.map +1 -0
- package/esm/models/traceingestresponse.js +12 -0
- package/esm/models/traceingestresponse.js.map +1 -0
- package/esm/models/tracemetadataentry.d.ts +7 -0
- package/esm/models/tracemetadataentry.d.ts.map +1 -0
- package/esm/models/tracemetadataentry.js +10 -0
- package/esm/models/tracemetadataentry.js.map +1 -0
- package/esm/models/traceoutput.d.ts +8 -0
- package/esm/models/traceoutput.d.ts.map +1 -0
- package/esm/models/traceoutput.js +10 -0
- package/esm/models/traceoutput.js.map +1 -0
- package/esm/models/tracetoolcall.d.ts +9 -0
- package/esm/models/tracetoolcall.d.ts.map +1 -0
- package/esm/models/tracetoolcall.js +9 -0
- package/esm/models/tracetoolcall.js.map +1 -0
- package/esm/models/traceturn.d.ts +11 -0
- package/esm/models/traceturn.d.ts.map +1 -0
- package/esm/models/traceturn.js +21 -0
- package/esm/models/traceturn.js.map +1 -0
- package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.d.ts +13 -0
- package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.d.ts.map +1 -0
- package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.js +19 -0
- package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +16 -0
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/annotatorsCreate.ts +149 -0
- package/src/funcs/annotatorsList.ts +148 -0
- package/src/funcs/annotatorsUpdate.ts +160 -0
- package/src/funcs/tracesCreate.ts +148 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/annotatorsCreate.ts +43 -0
- package/src/mcp-server/tools/annotatorsList.ts +42 -0
- package/src/mcp-server/tools/annotatorsUpdate.ts +42 -0
- package/src/mcp-server/tools/tracesCreate.ts +47 -0
- package/src/models/annotatorcreate.ts +11 -0
- package/src/models/annotatorcreateresponse.ts +14 -0
- package/src/models/annotatorresponse.ts +36 -0
- package/src/models/annotatorupdate.ts +13 -0
- package/src/models/createannotatorendpointannotatorspostop.ts +40 -0
- package/src/models/ingesttracetracespostop.ts +37 -0
- package/src/models/listannotatorsannotatorsgetop.ts +34 -0
- package/src/models/traceingest.ts +40 -0
- package/src/models/traceingestresponse.ts +26 -0
- package/src/models/tracemetadataentry.ts +13 -0
- package/src/models/traceoutput.ts +20 -0
- package/src/models/tracetoolcall.ts +17 -0
- package/src/models/traceturn.ts +37 -0
- package/src/models/updateannotatorendpointannotatorsannotatoruuidputop.ts +42 -0
- package/src/tool-names.ts +16 -0
package/bin/mcp-server.js
CHANGED
|
@@ -13350,14 +13350,17 @@ var require_dist = __commonJS((exports) => {
|
|
|
13350
13350
|
return result;
|
|
13351
13351
|
}
|
|
13352
13352
|
function parse5(header, options) {
|
|
13353
|
+
const stopChar = options?.comma === true ? COMMA : 65536;
|
|
13353
13354
|
const len = header.length;
|
|
13354
|
-
let index = skipOWS(header, 0, len);
|
|
13355
|
+
let index = skipOWS(header, options?.start ?? 0, len);
|
|
13355
13356
|
const valueStart = index;
|
|
13356
|
-
index = skipValue(header, index, len);
|
|
13357
|
+
index = skipValue(header, index, len, stopChar);
|
|
13357
13358
|
const valueEnd = trailingOWS(header, valueStart, index);
|
|
13358
13359
|
const type = header.slice(valueStart, valueEnd).toLowerCase();
|
|
13359
|
-
|
|
13360
|
-
|
|
13360
|
+
if (options?.parameters === false) {
|
|
13361
|
+
return { type, index, parameters: new NullObject };
|
|
13362
|
+
}
|
|
13363
|
+
return parseParameters(header, type, index, len, stopChar);
|
|
13361
13364
|
}
|
|
13362
13365
|
var SP = 32;
|
|
13363
13366
|
var HTAB = 9;
|
|
@@ -13365,14 +13368,19 @@ var require_dist = __commonJS((exports) => {
|
|
|
13365
13368
|
var EQ = 61;
|
|
13366
13369
|
var DQUOTE = 34;
|
|
13367
13370
|
var BSLASH = 92;
|
|
13368
|
-
|
|
13371
|
+
var COMMA = 44;
|
|
13372
|
+
function parseParameters(header, type, index, len, stopChar) {
|
|
13369
13373
|
const parameters = new NullObject;
|
|
13370
13374
|
parameter:
|
|
13371
13375
|
while (index < len) {
|
|
13376
|
+
if (header.charCodeAt(index) === stopChar)
|
|
13377
|
+
break;
|
|
13372
13378
|
index = skipOWS(header, index + 1, len);
|
|
13373
13379
|
const keyStart = index;
|
|
13374
13380
|
while (index < len) {
|
|
13375
13381
|
const code = header.charCodeAt(index);
|
|
13382
|
+
if (code === stopChar)
|
|
13383
|
+
break parameter;
|
|
13376
13384
|
if (code === SEMI)
|
|
13377
13385
|
continue parameter;
|
|
13378
13386
|
if (code === EQ) {
|
|
@@ -13385,7 +13393,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
13385
13393
|
while (index < len) {
|
|
13386
13394
|
const code2 = header.charCodeAt(index++);
|
|
13387
13395
|
if (code2 === DQUOTE) {
|
|
13388
|
-
index = skipValue(header, index, len);
|
|
13396
|
+
index = skipValue(header, index, len, stopChar);
|
|
13389
13397
|
if (parameters[key] === undefined)
|
|
13390
13398
|
parameters[key] = value;
|
|
13391
13399
|
break;
|
|
@@ -13399,7 +13407,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
13399
13407
|
continue parameter;
|
|
13400
13408
|
}
|
|
13401
13409
|
const valueStart = index;
|
|
13402
|
-
index = skipValue(header, index, len);
|
|
13410
|
+
index = skipValue(header, index, len, stopChar);
|
|
13403
13411
|
if (parameters[key] === undefined) {
|
|
13404
13412
|
const valueEnd = trailingOWS(header, valueStart, index);
|
|
13405
13413
|
parameters[key] = header.slice(valueStart, valueEnd);
|
|
@@ -13409,12 +13417,12 @@ var require_dist = __commonJS((exports) => {
|
|
|
13409
13417
|
index++;
|
|
13410
13418
|
}
|
|
13411
13419
|
}
|
|
13412
|
-
return parameters;
|
|
13420
|
+
return { type, index, parameters };
|
|
13413
13421
|
}
|
|
13414
|
-
function skipValue(str, index, len) {
|
|
13422
|
+
function skipValue(str, index, len, stopChar) {
|
|
13415
13423
|
while (index < len) {
|
|
13416
|
-
const
|
|
13417
|
-
if (
|
|
13424
|
+
const code = str.charCodeAt(index);
|
|
13425
|
+
if (code === SEMI || code === stopChar)
|
|
13418
13426
|
break;
|
|
13419
13427
|
index++;
|
|
13420
13428
|
}
|
|
@@ -23133,14 +23141,17 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
23133
23141
|
return result;
|
|
23134
23142
|
}
|
|
23135
23143
|
function parse5(header, options) {
|
|
23144
|
+
const stopChar = options?.comma === true ? COMMA : 65536;
|
|
23136
23145
|
const len = header.length;
|
|
23137
|
-
let index = skipOWS(header, 0, len);
|
|
23146
|
+
let index = skipOWS(header, options?.start ?? 0, len);
|
|
23138
23147
|
const valueStart = index;
|
|
23139
|
-
index = skipValue(header, index, len);
|
|
23148
|
+
index = skipValue(header, index, len, stopChar);
|
|
23140
23149
|
const valueEnd = trailingOWS(header, valueStart, index);
|
|
23141
23150
|
const type = header.slice(valueStart, valueEnd).toLowerCase();
|
|
23142
|
-
|
|
23143
|
-
|
|
23151
|
+
if (options?.parameters === false) {
|
|
23152
|
+
return { type, index, parameters: new NullObject };
|
|
23153
|
+
}
|
|
23154
|
+
return parseParameters(header, type, index, len, stopChar);
|
|
23144
23155
|
}
|
|
23145
23156
|
var SP = 32;
|
|
23146
23157
|
var HTAB = 9;
|
|
@@ -23148,14 +23159,19 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
23148
23159
|
var EQ = 61;
|
|
23149
23160
|
var DQUOTE = 34;
|
|
23150
23161
|
var BSLASH = 92;
|
|
23151
|
-
|
|
23162
|
+
var COMMA = 44;
|
|
23163
|
+
function parseParameters(header, type, index, len, stopChar) {
|
|
23152
23164
|
const parameters = new NullObject;
|
|
23153
23165
|
parameter:
|
|
23154
23166
|
while (index < len) {
|
|
23167
|
+
if (header.charCodeAt(index) === stopChar)
|
|
23168
|
+
break;
|
|
23155
23169
|
index = skipOWS(header, index + 1, len);
|
|
23156
23170
|
const keyStart = index;
|
|
23157
23171
|
while (index < len) {
|
|
23158
23172
|
const code = header.charCodeAt(index);
|
|
23173
|
+
if (code === stopChar)
|
|
23174
|
+
break parameter;
|
|
23159
23175
|
if (code === SEMI)
|
|
23160
23176
|
continue parameter;
|
|
23161
23177
|
if (code === EQ) {
|
|
@@ -23168,7 +23184,7 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
23168
23184
|
while (index < len) {
|
|
23169
23185
|
const code2 = header.charCodeAt(index++);
|
|
23170
23186
|
if (code2 === DQUOTE) {
|
|
23171
|
-
index = skipValue(header, index, len);
|
|
23187
|
+
index = skipValue(header, index, len, stopChar);
|
|
23172
23188
|
if (parameters[key] === undefined)
|
|
23173
23189
|
parameters[key] = value;
|
|
23174
23190
|
break;
|
|
@@ -23182,7 +23198,7 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
23182
23198
|
continue parameter;
|
|
23183
23199
|
}
|
|
23184
23200
|
const valueStart = index;
|
|
23185
|
-
index = skipValue(header, index, len);
|
|
23201
|
+
index = skipValue(header, index, len, stopChar);
|
|
23186
23202
|
if (parameters[key] === undefined) {
|
|
23187
23203
|
const valueEnd = trailingOWS(header, valueStart, index);
|
|
23188
23204
|
parameters[key] = header.slice(valueStart, valueEnd);
|
|
@@ -23192,12 +23208,12 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
23192
23208
|
index++;
|
|
23193
23209
|
}
|
|
23194
23210
|
}
|
|
23195
|
-
return parameters;
|
|
23211
|
+
return { type, index, parameters };
|
|
23196
23212
|
}
|
|
23197
|
-
function skipValue(str, index, len) {
|
|
23213
|
+
function skipValue(str, index, len, stopChar) {
|
|
23198
23214
|
while (index < len) {
|
|
23199
|
-
const
|
|
23200
|
-
if (
|
|
23215
|
+
const code = str.charCodeAt(index);
|
|
23216
|
+
if (code === SEMI || code === stopChar)
|
|
23201
23217
|
break;
|
|
23202
23218
|
index++;
|
|
23203
23219
|
}
|
|
@@ -51412,9 +51428,9 @@ var init_config = __esm(() => {
|
|
|
51412
51428
|
SDK_METADATA = {
|
|
51413
51429
|
language: "typescript",
|
|
51414
51430
|
openapiDocVersion: "0.1.0",
|
|
51415
|
-
sdkVersion: "0.0.
|
|
51431
|
+
sdkVersion: "0.0.35",
|
|
51416
51432
|
genVersion: "2.915.1",
|
|
51417
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
51433
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.35 2.915.1 0.1.0 @dalmia/calibrate-mcp"
|
|
51418
51434
|
};
|
|
51419
51435
|
});
|
|
51420
51436
|
|
|
@@ -57441,6 +57457,440 @@ var init_annotationTasksUpdateItems2 = __esm(() => {
|
|
|
57441
57457
|
};
|
|
57442
57458
|
});
|
|
57443
57459
|
|
|
57460
|
+
// src/models/annotatorcreate.ts
|
|
57461
|
+
var AnnotatorCreate$zodSchema;
|
|
57462
|
+
var init_annotatorcreate = __esm(() => {
|
|
57463
|
+
init_zod();
|
|
57464
|
+
AnnotatorCreate$zodSchema = object({
|
|
57465
|
+
name: string2().describe("Annotator name, unique within your workspace")
|
|
57466
|
+
});
|
|
57467
|
+
});
|
|
57468
|
+
|
|
57469
|
+
// src/models/annotatorcreateresponse.ts
|
|
57470
|
+
var AnnotatorCreateResponse$zodSchema;
|
|
57471
|
+
var init_annotatorcreateresponse = __esm(() => {
|
|
57472
|
+
init_zod();
|
|
57473
|
+
AnnotatorCreateResponse$zodSchema = object({
|
|
57474
|
+
message: string2().describe("Success message"),
|
|
57475
|
+
uuid: string2().describe("ID of the newly created annotator")
|
|
57476
|
+
});
|
|
57477
|
+
});
|
|
57478
|
+
|
|
57479
|
+
// src/models/createannotatorendpointannotatorspostop.ts
|
|
57480
|
+
var CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema, CreateAnnotatorEndpointAnnotatorsPostResponse$zodSchema;
|
|
57481
|
+
var init_createannotatorendpointannotatorspostop = __esm(() => {
|
|
57482
|
+
init_zod();
|
|
57483
|
+
init_annotatorcreate();
|
|
57484
|
+
init_annotatorcreateresponse();
|
|
57485
|
+
init_httpvalidationerror();
|
|
57486
|
+
CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema = object({
|
|
57487
|
+
body: AnnotatorCreate$zodSchema,
|
|
57488
|
+
xAPIKey: string2().nullable().optional()
|
|
57489
|
+
});
|
|
57490
|
+
CreateAnnotatorEndpointAnnotatorsPostResponse$zodSchema = union([
|
|
57491
|
+
AnnotatorCreateResponse$zodSchema,
|
|
57492
|
+
HTTPValidationError$zodSchema
|
|
57493
|
+
]);
|
|
57494
|
+
});
|
|
57495
|
+
|
|
57496
|
+
// src/funcs/annotatorsCreate.ts
|
|
57497
|
+
function annotatorsCreate(client$, request, options) {
|
|
57498
|
+
return new APIPromise($do27(client$, request, options));
|
|
57499
|
+
}
|
|
57500
|
+
async function $do27(client$, request, options) {
|
|
57501
|
+
const parsed$ = safeParse4(request, (value$) => CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57502
|
+
if (!parsed$.ok) {
|
|
57503
|
+
return [parsed$, { status: "invalid" }];
|
|
57504
|
+
}
|
|
57505
|
+
const payload$ = parsed$.value;
|
|
57506
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
57507
|
+
const path$ = pathToFunc("/annotators")();
|
|
57508
|
+
const headers$ = new Headers(compactMap({
|
|
57509
|
+
"Content-Type": "application/json",
|
|
57510
|
+
Accept: "application/json",
|
|
57511
|
+
"X-API-Key": encodeSimple("X-API-Key", payload$.xAPIKey, {
|
|
57512
|
+
explode: false,
|
|
57513
|
+
charEncoding: "none"
|
|
57514
|
+
})
|
|
57515
|
+
}));
|
|
57516
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57517
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57518
|
+
const context = {
|
|
57519
|
+
options: client$._options,
|
|
57520
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57521
|
+
operationID: "create_annotator_endpoint_annotators_post",
|
|
57522
|
+
oAuth2Scopes: null,
|
|
57523
|
+
resolvedSecurity: requestSecurity,
|
|
57524
|
+
securitySource: client$._options.security,
|
|
57525
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57526
|
+
retryCodes: options?.retryCodes || [
|
|
57527
|
+
"429",
|
|
57528
|
+
"500",
|
|
57529
|
+
"502",
|
|
57530
|
+
"503",
|
|
57531
|
+
"504"
|
|
57532
|
+
]
|
|
57533
|
+
};
|
|
57534
|
+
const requestRes = client$._createRequest(context, {
|
|
57535
|
+
security: requestSecurity,
|
|
57536
|
+
method: "POST",
|
|
57537
|
+
baseURL: options?.serverURL,
|
|
57538
|
+
path: path$,
|
|
57539
|
+
headers: headers$,
|
|
57540
|
+
body: body$,
|
|
57541
|
+
userAgent: client$._options.userAgent,
|
|
57542
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57543
|
+
}, options);
|
|
57544
|
+
if (!requestRes.ok) {
|
|
57545
|
+
return [requestRes, { status: "invalid" }];
|
|
57546
|
+
}
|
|
57547
|
+
const req$ = requestRes.value;
|
|
57548
|
+
const doResult = await client$._do(req$, {
|
|
57549
|
+
context,
|
|
57550
|
+
errorCodes: [],
|
|
57551
|
+
retryConfig: context.retryConfig,
|
|
57552
|
+
retryCodes: context.retryCodes
|
|
57553
|
+
});
|
|
57554
|
+
if (!doResult.ok) {
|
|
57555
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
57556
|
+
}
|
|
57557
|
+
return [doResult, {
|
|
57558
|
+
status: "complete",
|
|
57559
|
+
request: req$,
|
|
57560
|
+
response: doResult.value
|
|
57561
|
+
}];
|
|
57562
|
+
}
|
|
57563
|
+
var init_annotatorsCreate = __esm(() => {
|
|
57564
|
+
init_encodings();
|
|
57565
|
+
init_primitives();
|
|
57566
|
+
init_schemas4();
|
|
57567
|
+
init_security();
|
|
57568
|
+
init_url();
|
|
57569
|
+
init_createannotatorendpointannotatorspostop();
|
|
57570
|
+
init_async();
|
|
57571
|
+
});
|
|
57572
|
+
|
|
57573
|
+
// src/mcp-server/tools/annotatorsCreate.ts
|
|
57574
|
+
var args27, tool$annotatorsCreate;
|
|
57575
|
+
var init_annotatorsCreate2 = __esm(() => {
|
|
57576
|
+
init_annotatorsCreate();
|
|
57577
|
+
init_createannotatorendpointannotatorspostop();
|
|
57578
|
+
init_tools();
|
|
57579
|
+
args27 = {
|
|
57580
|
+
request: CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema
|
|
57581
|
+
};
|
|
57582
|
+
tool$annotatorsCreate = {
|
|
57583
|
+
name: "create-annotator",
|
|
57584
|
+
description: `Create an annotator, a human labeller who can be assigned annotation tasks.
|
|
57585
|
+
`,
|
|
57586
|
+
scopes: ["write"],
|
|
57587
|
+
annotations: {
|
|
57588
|
+
title: "Create annotator",
|
|
57589
|
+
destructiveHint: false,
|
|
57590
|
+
idempotentHint: false,
|
|
57591
|
+
openWorldHint: true,
|
|
57592
|
+
readOnlyHint: false
|
|
57593
|
+
},
|
|
57594
|
+
args: args27,
|
|
57595
|
+
tool: async (client, args28, ctx) => {
|
|
57596
|
+
const [result] = await annotatorsCreate(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57597
|
+
if (!result.ok) {
|
|
57598
|
+
return {
|
|
57599
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57600
|
+
isError: true
|
|
57601
|
+
};
|
|
57602
|
+
}
|
|
57603
|
+
return formatResult(result.value);
|
|
57604
|
+
}
|
|
57605
|
+
};
|
|
57606
|
+
});
|
|
57607
|
+
|
|
57608
|
+
// src/models/annotatorresponse.ts
|
|
57609
|
+
var AnnotatorResponse$zodSchema;
|
|
57610
|
+
var init_annotatorresponse = __esm(() => {
|
|
57611
|
+
init_zod();
|
|
57612
|
+
AnnotatorResponse$zodSchema = object({
|
|
57613
|
+
created_at: string2().describe("When the annotator was created (ISO 8601 UTC)"),
|
|
57614
|
+
current_agreement: number2().nullable().optional().describe("Latest pairwise mean agreement with other annotators, from 0 to 1"),
|
|
57615
|
+
jobs_count: int().nullable().optional().describe("Number of labelling jobs assigned to this annotator"),
|
|
57616
|
+
name: string2().describe("Annotator name"),
|
|
57617
|
+
pair_count: int().nullable().optional().describe("Number of comparable annotation pairs behind the current agreement score"),
|
|
57618
|
+
updated_at: string2().describe("When the annotator was last updated (ISO 8601 UTC)"),
|
|
57619
|
+
uuid: string2().describe("Annotator ID")
|
|
57620
|
+
});
|
|
57621
|
+
});
|
|
57622
|
+
|
|
57623
|
+
// src/models/listannotatorsannotatorsgetop.ts
|
|
57624
|
+
var ListAnnotatorsAnnotatorsGetRequest$zodSchema, ListAnnotatorsAnnotatorsGetResponse$zodSchema;
|
|
57625
|
+
var init_listannotatorsannotatorsgetop = __esm(() => {
|
|
57626
|
+
init_zod();
|
|
57627
|
+
init_annotatorresponse();
|
|
57628
|
+
init_httpvalidationerror();
|
|
57629
|
+
ListAnnotatorsAnnotatorsGetRequest$zodSchema = object({
|
|
57630
|
+
xAPIKey: string2().nullable().optional()
|
|
57631
|
+
});
|
|
57632
|
+
ListAnnotatorsAnnotatorsGetResponse$zodSchema = union([
|
|
57633
|
+
array(AnnotatorResponse$zodSchema).describe("Successful Response"),
|
|
57634
|
+
HTTPValidationError$zodSchema
|
|
57635
|
+
]);
|
|
57636
|
+
});
|
|
57637
|
+
|
|
57638
|
+
// src/funcs/annotatorsList.ts
|
|
57639
|
+
function annotatorsList(client$, request, options) {
|
|
57640
|
+
return new APIPromise($do28(client$, request, options));
|
|
57641
|
+
}
|
|
57642
|
+
async function $do28(client$, request, options) {
|
|
57643
|
+
const parsed$ = safeParse4(request, (value$) => ListAnnotatorsAnnotatorsGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
57644
|
+
if (!parsed$.ok) {
|
|
57645
|
+
return [parsed$, { status: "invalid" }];
|
|
57646
|
+
}
|
|
57647
|
+
const payload$ = parsed$.value;
|
|
57648
|
+
const body$ = null;
|
|
57649
|
+
const path$ = pathToFunc("/annotators")();
|
|
57650
|
+
const headers$ = new Headers(compactMap({
|
|
57651
|
+
Accept: "application/json",
|
|
57652
|
+
"X-API-Key": encodeSimple("X-API-Key", payload$?.xAPIKey, {
|
|
57653
|
+
explode: false,
|
|
57654
|
+
charEncoding: "none"
|
|
57655
|
+
})
|
|
57656
|
+
}));
|
|
57657
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57658
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57659
|
+
const context = {
|
|
57660
|
+
options: client$._options,
|
|
57661
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57662
|
+
operationID: "list_annotators_annotators_get",
|
|
57663
|
+
oAuth2Scopes: null,
|
|
57664
|
+
resolvedSecurity: requestSecurity,
|
|
57665
|
+
securitySource: client$._options.security,
|
|
57666
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57667
|
+
retryCodes: options?.retryCodes || [
|
|
57668
|
+
"429",
|
|
57669
|
+
"500",
|
|
57670
|
+
"502",
|
|
57671
|
+
"503",
|
|
57672
|
+
"504"
|
|
57673
|
+
]
|
|
57674
|
+
};
|
|
57675
|
+
const requestRes = client$._createRequest(context, {
|
|
57676
|
+
security: requestSecurity,
|
|
57677
|
+
method: "GET",
|
|
57678
|
+
baseURL: options?.serverURL,
|
|
57679
|
+
path: path$,
|
|
57680
|
+
headers: headers$,
|
|
57681
|
+
body: body$,
|
|
57682
|
+
userAgent: client$._options.userAgent,
|
|
57683
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57684
|
+
}, options);
|
|
57685
|
+
if (!requestRes.ok) {
|
|
57686
|
+
return [requestRes, { status: "invalid" }];
|
|
57687
|
+
}
|
|
57688
|
+
const req$ = requestRes.value;
|
|
57689
|
+
const doResult = await client$._do(req$, {
|
|
57690
|
+
context,
|
|
57691
|
+
errorCodes: [],
|
|
57692
|
+
retryConfig: context.retryConfig,
|
|
57693
|
+
retryCodes: context.retryCodes
|
|
57694
|
+
});
|
|
57695
|
+
if (!doResult.ok) {
|
|
57696
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
57697
|
+
}
|
|
57698
|
+
return [doResult, {
|
|
57699
|
+
status: "complete",
|
|
57700
|
+
request: req$,
|
|
57701
|
+
response: doResult.value
|
|
57702
|
+
}];
|
|
57703
|
+
}
|
|
57704
|
+
var init_annotatorsList = __esm(() => {
|
|
57705
|
+
init_encodings();
|
|
57706
|
+
init_primitives();
|
|
57707
|
+
init_schemas4();
|
|
57708
|
+
init_security();
|
|
57709
|
+
init_url();
|
|
57710
|
+
init_listannotatorsannotatorsgetop();
|
|
57711
|
+
init_async();
|
|
57712
|
+
});
|
|
57713
|
+
|
|
57714
|
+
// src/mcp-server/tools/annotatorsList.ts
|
|
57715
|
+
var args28, tool$annotatorsList;
|
|
57716
|
+
var init_annotatorsList2 = __esm(() => {
|
|
57717
|
+
init_annotatorsList();
|
|
57718
|
+
init_listannotatorsannotatorsgetop();
|
|
57719
|
+
init_tools();
|
|
57720
|
+
args28 = {
|
|
57721
|
+
request: ListAnnotatorsAnnotatorsGetRequest$zodSchema.optional()
|
|
57722
|
+
};
|
|
57723
|
+
tool$annotatorsList = {
|
|
57724
|
+
name: "list-annotators",
|
|
57725
|
+
description: `List your annotators with their job counts and agreement scores.
|
|
57726
|
+
`,
|
|
57727
|
+
scopes: ["read"],
|
|
57728
|
+
annotations: {
|
|
57729
|
+
title: "List annotators",
|
|
57730
|
+
destructiveHint: false,
|
|
57731
|
+
idempotentHint: false,
|
|
57732
|
+
openWorldHint: true,
|
|
57733
|
+
readOnlyHint: true
|
|
57734
|
+
},
|
|
57735
|
+
args: args28,
|
|
57736
|
+
tool: async (client, args29, ctx) => {
|
|
57737
|
+
const [result] = await annotatorsList(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57738
|
+
if (!result.ok) {
|
|
57739
|
+
return {
|
|
57740
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57741
|
+
isError: true
|
|
57742
|
+
};
|
|
57743
|
+
}
|
|
57744
|
+
return formatResult(result.value);
|
|
57745
|
+
}
|
|
57746
|
+
};
|
|
57747
|
+
});
|
|
57748
|
+
|
|
57749
|
+
// src/models/annotatorupdate.ts
|
|
57750
|
+
var AnnotatorUpdate$zodSchema;
|
|
57751
|
+
var init_annotatorupdate = __esm(() => {
|
|
57752
|
+
init_zod();
|
|
57753
|
+
AnnotatorUpdate$zodSchema = object({
|
|
57754
|
+
name: string2().nullable().optional().describe("New annotator name, unique within your workspace. Omit to leave unchanged")
|
|
57755
|
+
});
|
|
57756
|
+
});
|
|
57757
|
+
|
|
57758
|
+
// src/models/updateannotatorendpointannotatorsannotatoruuidputop.ts
|
|
57759
|
+
var UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema, UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutResponse$zodSchema;
|
|
57760
|
+
var init_updateannotatorendpointannotatorsannotatoruuidputop = __esm(() => {
|
|
57761
|
+
init_zod();
|
|
57762
|
+
init_annotatorresponse();
|
|
57763
|
+
init_annotatorupdate();
|
|
57764
|
+
init_httpvalidationerror();
|
|
57765
|
+
UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema = object({
|
|
57766
|
+
annotator_uuid: string2().describe("Annotator to update"),
|
|
57767
|
+
body: AnnotatorUpdate$zodSchema,
|
|
57768
|
+
xAPIKey: string2().nullable().optional()
|
|
57769
|
+
});
|
|
57770
|
+
UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutResponse$zodSchema = union([
|
|
57771
|
+
AnnotatorResponse$zodSchema,
|
|
57772
|
+
HTTPValidationError$zodSchema
|
|
57773
|
+
]);
|
|
57774
|
+
});
|
|
57775
|
+
|
|
57776
|
+
// src/funcs/annotatorsUpdate.ts
|
|
57777
|
+
function annotatorsUpdate(client$, request, options) {
|
|
57778
|
+
return new APIPromise($do29(client$, request, options));
|
|
57779
|
+
}
|
|
57780
|
+
async function $do29(client$, request, options) {
|
|
57781
|
+
const parsed$ = safeParse4(request, (value$) => UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57782
|
+
if (!parsed$.ok) {
|
|
57783
|
+
return [parsed$, { status: "invalid" }];
|
|
57784
|
+
}
|
|
57785
|
+
const payload$ = parsed$.value;
|
|
57786
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
57787
|
+
const pathParams$ = {
|
|
57788
|
+
annotator_uuid: encodeSimple("annotator_uuid", payload$.annotator_uuid, {
|
|
57789
|
+
explode: false,
|
|
57790
|
+
charEncoding: "percent"
|
|
57791
|
+
})
|
|
57792
|
+
};
|
|
57793
|
+
const path$ = pathToFunc("/annotators/{annotator_uuid}")(pathParams$);
|
|
57794
|
+
const headers$ = new Headers(compactMap({
|
|
57795
|
+
"Content-Type": "application/json",
|
|
57796
|
+
Accept: "application/json",
|
|
57797
|
+
"X-API-Key": encodeSimple("X-API-Key", payload$.xAPIKey, {
|
|
57798
|
+
explode: false,
|
|
57799
|
+
charEncoding: "none"
|
|
57800
|
+
})
|
|
57801
|
+
}));
|
|
57802
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57803
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57804
|
+
const context = {
|
|
57805
|
+
options: client$._options,
|
|
57806
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57807
|
+
operationID: "update_annotator_endpoint_annotators__annotator_uuid__put",
|
|
57808
|
+
oAuth2Scopes: null,
|
|
57809
|
+
resolvedSecurity: requestSecurity,
|
|
57810
|
+
securitySource: client$._options.security,
|
|
57811
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57812
|
+
retryCodes: options?.retryCodes || [
|
|
57813
|
+
"429",
|
|
57814
|
+
"500",
|
|
57815
|
+
"502",
|
|
57816
|
+
"503",
|
|
57817
|
+
"504"
|
|
57818
|
+
]
|
|
57819
|
+
};
|
|
57820
|
+
const requestRes = client$._createRequest(context, {
|
|
57821
|
+
security: requestSecurity,
|
|
57822
|
+
method: "PUT",
|
|
57823
|
+
baseURL: options?.serverURL,
|
|
57824
|
+
path: path$,
|
|
57825
|
+
headers: headers$,
|
|
57826
|
+
body: body$,
|
|
57827
|
+
userAgent: client$._options.userAgent,
|
|
57828
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57829
|
+
}, options);
|
|
57830
|
+
if (!requestRes.ok) {
|
|
57831
|
+
return [requestRes, { status: "invalid" }];
|
|
57832
|
+
}
|
|
57833
|
+
const req$ = requestRes.value;
|
|
57834
|
+
const doResult = await client$._do(req$, {
|
|
57835
|
+
context,
|
|
57836
|
+
errorCodes: [],
|
|
57837
|
+
retryConfig: context.retryConfig,
|
|
57838
|
+
retryCodes: context.retryCodes
|
|
57839
|
+
});
|
|
57840
|
+
if (!doResult.ok) {
|
|
57841
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
57842
|
+
}
|
|
57843
|
+
return [doResult, {
|
|
57844
|
+
status: "complete",
|
|
57845
|
+
request: req$,
|
|
57846
|
+
response: doResult.value
|
|
57847
|
+
}];
|
|
57848
|
+
}
|
|
57849
|
+
var init_annotatorsUpdate = __esm(() => {
|
|
57850
|
+
init_encodings();
|
|
57851
|
+
init_primitives();
|
|
57852
|
+
init_schemas4();
|
|
57853
|
+
init_security();
|
|
57854
|
+
init_url();
|
|
57855
|
+
init_updateannotatorendpointannotatorsannotatoruuidputop();
|
|
57856
|
+
init_async();
|
|
57857
|
+
});
|
|
57858
|
+
|
|
57859
|
+
// src/mcp-server/tools/annotatorsUpdate.ts
|
|
57860
|
+
var args29, tool$annotatorsUpdate;
|
|
57861
|
+
var init_annotatorsUpdate2 = __esm(() => {
|
|
57862
|
+
init_annotatorsUpdate();
|
|
57863
|
+
init_updateannotatorendpointannotatorsannotatoruuidputop();
|
|
57864
|
+
init_tools();
|
|
57865
|
+
args29 = {
|
|
57866
|
+
request: UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema
|
|
57867
|
+
};
|
|
57868
|
+
tool$annotatorsUpdate = {
|
|
57869
|
+
name: "update-annotator",
|
|
57870
|
+
description: `Rename an annotator in your workspace.
|
|
57871
|
+
`,
|
|
57872
|
+
scopes: ["write"],
|
|
57873
|
+
annotations: {
|
|
57874
|
+
title: "Update annotator",
|
|
57875
|
+
destructiveHint: false,
|
|
57876
|
+
idempotentHint: true,
|
|
57877
|
+
openWorldHint: true,
|
|
57878
|
+
readOnlyHint: false
|
|
57879
|
+
},
|
|
57880
|
+
args: args29,
|
|
57881
|
+
tool: async (client, args30, ctx) => {
|
|
57882
|
+
const [result] = await annotatorsUpdate(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57883
|
+
if (!result.ok) {
|
|
57884
|
+
return {
|
|
57885
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57886
|
+
isError: true
|
|
57887
|
+
};
|
|
57888
|
+
}
|
|
57889
|
+
return formatResult(result.value);
|
|
57890
|
+
}
|
|
57891
|
+
};
|
|
57892
|
+
});
|
|
57893
|
+
|
|
57444
57894
|
// src/models/outputscaleentry.ts
|
|
57445
57895
|
var OutputScaleEntry$zodSchema;
|
|
57446
57896
|
var init_outputscaleentry = __esm(() => {
|
|
@@ -57536,9 +57986,9 @@ var init_createevaluatorendpointevaluatorspostop = __esm(() => {
|
|
|
57536
57986
|
|
|
57537
57987
|
// src/funcs/evaluatorsCreate.ts
|
|
57538
57988
|
function evaluatorsCreate(client$, request, options) {
|
|
57539
|
-
return new APIPromise($
|
|
57989
|
+
return new APIPromise($do30(client$, request, options));
|
|
57540
57990
|
}
|
|
57541
|
-
async function $
|
|
57991
|
+
async function $do30(client$, request, options) {
|
|
57542
57992
|
const parsed$ = safeParse4(request, (value$) => CreateEvaluatorEndpointEvaluatorsPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57543
57993
|
if (!parsed$.ok) {
|
|
57544
57994
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57612,12 +58062,12 @@ var init_evaluatorsCreate = __esm(() => {
|
|
|
57612
58062
|
});
|
|
57613
58063
|
|
|
57614
58064
|
// src/mcp-server/tools/evaluatorsCreate.ts
|
|
57615
|
-
var
|
|
58065
|
+
var args30, tool$evaluatorsCreate;
|
|
57616
58066
|
var init_evaluatorsCreate2 = __esm(() => {
|
|
57617
58067
|
init_evaluatorsCreate();
|
|
57618
58068
|
init_createevaluatorendpointevaluatorspostop();
|
|
57619
58069
|
init_tools();
|
|
57620
|
-
|
|
58070
|
+
args30 = {
|
|
57621
58071
|
request: CreateEvaluatorEndpointEvaluatorsPostRequest$zodSchema
|
|
57622
58072
|
};
|
|
57623
58073
|
tool$evaluatorsCreate = {
|
|
@@ -57632,9 +58082,9 @@ var init_evaluatorsCreate2 = __esm(() => {
|
|
|
57632
58082
|
openWorldHint: true,
|
|
57633
58083
|
readOnlyHint: false
|
|
57634
58084
|
},
|
|
57635
|
-
args:
|
|
57636
|
-
tool: async (client,
|
|
57637
|
-
const [result] = await evaluatorsCreate(client,
|
|
58085
|
+
args: args30,
|
|
58086
|
+
tool: async (client, args31, ctx) => {
|
|
58087
|
+
const [result] = await evaluatorsCreate(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57638
58088
|
if (!result.ok) {
|
|
57639
58089
|
return {
|
|
57640
58090
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57691,9 +58141,9 @@ var init_createversionevaluatorsevaluatoruuidversionspostop = __esm(() => {
|
|
|
57691
58141
|
|
|
57692
58142
|
// src/funcs/evaluatorsCreateVersion.ts
|
|
57693
58143
|
function evaluatorsCreateVersion(client$, request, options) {
|
|
57694
|
-
return new APIPromise($
|
|
58144
|
+
return new APIPromise($do31(client$, request, options));
|
|
57695
58145
|
}
|
|
57696
|
-
async function $
|
|
58146
|
+
async function $do31(client$, request, options) {
|
|
57697
58147
|
const parsed$ = safeParse4(request, (value$) => CreateVersionEvaluatorsEvaluatorUuidVersionsPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57698
58148
|
if (!parsed$.ok) {
|
|
57699
58149
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57773,12 +58223,12 @@ var init_evaluatorsCreateVersion = __esm(() => {
|
|
|
57773
58223
|
});
|
|
57774
58224
|
|
|
57775
58225
|
// src/mcp-server/tools/evaluatorsCreateVersion.ts
|
|
57776
|
-
var
|
|
58226
|
+
var args31, tool$evaluatorsCreateVersion;
|
|
57777
58227
|
var init_evaluatorsCreateVersion2 = __esm(() => {
|
|
57778
58228
|
init_evaluatorsCreateVersion();
|
|
57779
58229
|
init_createversionevaluatorsevaluatoruuidversionspostop();
|
|
57780
58230
|
init_tools();
|
|
57781
|
-
|
|
58231
|
+
args31 = {
|
|
57782
58232
|
request: CreateVersionEvaluatorsEvaluatorUuidVersionsPostRequest$zodSchema
|
|
57783
58233
|
};
|
|
57784
58234
|
tool$evaluatorsCreateVersion = {
|
|
@@ -57793,9 +58243,9 @@ var init_evaluatorsCreateVersion2 = __esm(() => {
|
|
|
57793
58243
|
openWorldHint: true,
|
|
57794
58244
|
readOnlyHint: false
|
|
57795
58245
|
},
|
|
57796
|
-
args:
|
|
57797
|
-
tool: async (client,
|
|
57798
|
-
const [result] = await evaluatorsCreateVersion(client,
|
|
58246
|
+
args: args31,
|
|
58247
|
+
tool: async (client, args32, ctx) => {
|
|
58248
|
+
const [result] = await evaluatorsCreateVersion(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57799
58249
|
if (!result.ok) {
|
|
57800
58250
|
return {
|
|
57801
58251
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57880,9 +58330,9 @@ var init_getevaluatorendpointevaluatorsevaluatoruuidgetop = __esm(() => {
|
|
|
57880
58330
|
|
|
57881
58331
|
// src/funcs/evaluatorsGet.ts
|
|
57882
58332
|
function evaluatorsGet(client$, request, options) {
|
|
57883
|
-
return new APIPromise($
|
|
58333
|
+
return new APIPromise($do32(client$, request, options));
|
|
57884
58334
|
}
|
|
57885
|
-
async function $
|
|
58335
|
+
async function $do32(client$, request, options) {
|
|
57886
58336
|
const parsed$ = safeParse4(request, (value$) => GetEvaluatorEndpointEvaluatorsEvaluatorUuidGetRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57887
58337
|
if (!parsed$.ok) {
|
|
57888
58338
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57965,12 +58415,12 @@ var init_evaluatorsGet = __esm(() => {
|
|
|
57965
58415
|
});
|
|
57966
58416
|
|
|
57967
58417
|
// src/mcp-server/tools/evaluatorsGet.ts
|
|
57968
|
-
var
|
|
58418
|
+
var args32, tool$evaluatorsGet;
|
|
57969
58419
|
var init_evaluatorsGet2 = __esm(() => {
|
|
57970
58420
|
init_evaluatorsGet();
|
|
57971
58421
|
init_getevaluatorendpointevaluatorsevaluatoruuidgetop();
|
|
57972
58422
|
init_tools();
|
|
57973
|
-
|
|
58423
|
+
args32 = {
|
|
57974
58424
|
request: GetEvaluatorEndpointEvaluatorsEvaluatorUuidGetRequest$zodSchema
|
|
57975
58425
|
};
|
|
57976
58426
|
tool$evaluatorsGet = {
|
|
@@ -57985,9 +58435,9 @@ var init_evaluatorsGet2 = __esm(() => {
|
|
|
57985
58435
|
openWorldHint: true,
|
|
57986
58436
|
readOnlyHint: true
|
|
57987
58437
|
},
|
|
57988
|
-
args:
|
|
57989
|
-
tool: async (client,
|
|
57990
|
-
const [result] = await evaluatorsGet(client,
|
|
58438
|
+
args: args32,
|
|
58439
|
+
tool: async (client, args33, ctx) => {
|
|
58440
|
+
const [result] = await evaluatorsGet(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57991
58441
|
if (!result.ok) {
|
|
57992
58442
|
return {
|
|
57993
58443
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58033,9 +58483,9 @@ var init_listevaluatorsevaluatorsgetop = __esm(() => {
|
|
|
58033
58483
|
|
|
58034
58484
|
// src/funcs/evaluatorsList.ts
|
|
58035
58485
|
function evaluatorsList(client$, request, options) {
|
|
58036
|
-
return new APIPromise($
|
|
58486
|
+
return new APIPromise($do33(client$, request, options));
|
|
58037
58487
|
}
|
|
58038
|
-
async function $
|
|
58488
|
+
async function $do33(client$, request, options) {
|
|
58039
58489
|
const parsed$ = safeParse4(request, (value$) => ListEvaluatorsEvaluatorsGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
58040
58490
|
if (!parsed$.ok) {
|
|
58041
58491
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58117,12 +58567,12 @@ var init_evaluatorsList = __esm(() => {
|
|
|
58117
58567
|
});
|
|
58118
58568
|
|
|
58119
58569
|
// src/mcp-server/tools/evaluatorsList.ts
|
|
58120
|
-
var
|
|
58570
|
+
var args33, tool$evaluatorsList;
|
|
58121
58571
|
var init_evaluatorsList2 = __esm(() => {
|
|
58122
58572
|
init_evaluatorsList();
|
|
58123
58573
|
init_listevaluatorsevaluatorsgetop();
|
|
58124
58574
|
init_tools();
|
|
58125
|
-
|
|
58575
|
+
args33 = {
|
|
58126
58576
|
request: ListEvaluatorsEvaluatorsGetRequest$zodSchema.optional()
|
|
58127
58577
|
};
|
|
58128
58578
|
tool$evaluatorsList = {
|
|
@@ -58137,9 +58587,9 @@ var init_evaluatorsList2 = __esm(() => {
|
|
|
58137
58587
|
openWorldHint: true,
|
|
58138
58588
|
readOnlyHint: true
|
|
58139
58589
|
},
|
|
58140
|
-
args:
|
|
58141
|
-
tool: async (client,
|
|
58142
|
-
const [result] = await evaluatorsList(client,
|
|
58590
|
+
args: args33,
|
|
58591
|
+
tool: async (client, args34, ctx) => {
|
|
58592
|
+
const [result] = await evaluatorsList(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58143
58593
|
if (!result.ok) {
|
|
58144
58594
|
return {
|
|
58145
58595
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58269,9 +58719,9 @@ var init_bulkuploadteststestsbulkpostop = __esm(() => {
|
|
|
58269
58719
|
|
|
58270
58720
|
// src/funcs/testsBulkCreate.ts
|
|
58271
58721
|
function testsBulkCreate(client$, request, options) {
|
|
58272
|
-
return new APIPromise($
|
|
58722
|
+
return new APIPromise($do34(client$, request, options));
|
|
58273
58723
|
}
|
|
58274
|
-
async function $
|
|
58724
|
+
async function $do34(client$, request, options) {
|
|
58275
58725
|
const parsed$ = safeParse4(request, (value$) => BulkUploadTestsTestsBulkPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58276
58726
|
if (!parsed$.ok) {
|
|
58277
58727
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58345,12 +58795,12 @@ var init_testsBulkCreate = __esm(() => {
|
|
|
58345
58795
|
});
|
|
58346
58796
|
|
|
58347
58797
|
// src/mcp-server/tools/testsBulkCreate.ts
|
|
58348
|
-
var
|
|
58798
|
+
var args34, tool$testsBulkCreate;
|
|
58349
58799
|
var init_testsBulkCreate2 = __esm(() => {
|
|
58350
58800
|
init_testsBulkCreate();
|
|
58351
58801
|
init_bulkuploadteststestsbulkpostop();
|
|
58352
58802
|
init_tools();
|
|
58353
|
-
|
|
58803
|
+
args34 = {
|
|
58354
58804
|
request: BulkUploadTestsTestsBulkPostRequest$zodSchema
|
|
58355
58805
|
};
|
|
58356
58806
|
tool$testsBulkCreate = {
|
|
@@ -58367,9 +58817,9 @@ tests including their UUIDs.
|
|
|
58367
58817
|
openWorldHint: true,
|
|
58368
58818
|
readOnlyHint: false
|
|
58369
58819
|
},
|
|
58370
|
-
args:
|
|
58371
|
-
tool: async (client,
|
|
58372
|
-
const [result] = await testsBulkCreate(client,
|
|
58820
|
+
args: args34,
|
|
58821
|
+
tool: async (client, args35, ctx) => {
|
|
58822
|
+
const [result] = await testsBulkCreate(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58373
58823
|
if (!result.ok) {
|
|
58374
58824
|
return {
|
|
58375
58825
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58428,9 +58878,9 @@ var init_createtestendpointtestspostop = __esm(() => {
|
|
|
58428
58878
|
|
|
58429
58879
|
// src/funcs/testsCreate.ts
|
|
58430
58880
|
function testsCreate(client$, request, options) {
|
|
58431
|
-
return new APIPromise($
|
|
58881
|
+
return new APIPromise($do35(client$, request, options));
|
|
58432
58882
|
}
|
|
58433
|
-
async function $
|
|
58883
|
+
async function $do35(client$, request, options) {
|
|
58434
58884
|
const parsed$ = safeParse4(request, (value$) => CreateTestEndpointTestsPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58435
58885
|
if (!parsed$.ok) {
|
|
58436
58886
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58504,12 +58954,12 @@ var init_testsCreate = __esm(() => {
|
|
|
58504
58954
|
});
|
|
58505
58955
|
|
|
58506
58956
|
// src/mcp-server/tools/testsCreate.ts
|
|
58507
|
-
var
|
|
58957
|
+
var args35, tool$testsCreate;
|
|
58508
58958
|
var init_testsCreate2 = __esm(() => {
|
|
58509
58959
|
init_testsCreate();
|
|
58510
58960
|
init_createtestendpointtestspostop();
|
|
58511
58961
|
init_tools();
|
|
58512
|
-
|
|
58962
|
+
args35 = {
|
|
58513
58963
|
request: CreateTestEndpointTestsPostRequest$zodSchema
|
|
58514
58964
|
};
|
|
58515
58965
|
tool$testsCreate = {
|
|
@@ -58526,9 +58976,9 @@ Requires a Calibrate API key (CALIBRATE_API_KEY).
|
|
|
58526
58976
|
openWorldHint: true,
|
|
58527
58977
|
readOnlyHint: false
|
|
58528
58978
|
},
|
|
58529
|
-
args:
|
|
58530
|
-
tool: async (client,
|
|
58531
|
-
const [result] = await testsCreate(client,
|
|
58979
|
+
args: args35,
|
|
58980
|
+
tool: async (client, args36, ctx) => {
|
|
58981
|
+
const [result] = await testsCreate(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58532
58982
|
if (!result.ok) {
|
|
58533
58983
|
return {
|
|
58534
58984
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58578,9 +59028,9 @@ var init_gettestendpointteststestuuidgetop = __esm(() => {
|
|
|
58578
59028
|
|
|
58579
59029
|
// src/funcs/testsGet.ts
|
|
58580
59030
|
function testsGet(client$, request, options) {
|
|
58581
|
-
return new APIPromise($
|
|
59031
|
+
return new APIPromise($do36(client$, request, options));
|
|
58582
59032
|
}
|
|
58583
|
-
async function $
|
|
59033
|
+
async function $do36(client$, request, options) {
|
|
58584
59034
|
const parsed$ = safeParse4(request, (value$) => GetTestEndpointTestsTestUuidGetRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58585
59035
|
if (!parsed$.ok) {
|
|
58586
59036
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58659,12 +59109,12 @@ var init_testsGet = __esm(() => {
|
|
|
58659
59109
|
});
|
|
58660
59110
|
|
|
58661
59111
|
// src/mcp-server/tools/testsGet.ts
|
|
58662
|
-
var
|
|
59112
|
+
var args36, tool$testsGet;
|
|
58663
59113
|
var init_testsGet2 = __esm(() => {
|
|
58664
59114
|
init_testsGet();
|
|
58665
59115
|
init_gettestendpointteststestuuidgetop();
|
|
58666
59116
|
init_tools();
|
|
58667
|
-
|
|
59117
|
+
args36 = {
|
|
58668
59118
|
request: GetTestEndpointTestsTestUuidGetRequest$zodSchema
|
|
58669
59119
|
};
|
|
58670
59120
|
tool$testsGet = {
|
|
@@ -58681,9 +59131,9 @@ exist or belongs to another org.
|
|
|
58681
59131
|
openWorldHint: true,
|
|
58682
59132
|
readOnlyHint: true
|
|
58683
59133
|
},
|
|
58684
|
-
args:
|
|
58685
|
-
tool: async (client,
|
|
58686
|
-
const [result] = await testsGet(client,
|
|
59134
|
+
args: args36,
|
|
59135
|
+
tool: async (client, args37, ctx) => {
|
|
59136
|
+
const [result] = await testsGet(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58687
59137
|
if (!result.ok) {
|
|
58688
59138
|
return {
|
|
58689
59139
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58715,9 +59165,9 @@ var init_listteststestsgetop = __esm(() => {
|
|
|
58715
59165
|
|
|
58716
59166
|
// src/funcs/testsList.ts
|
|
58717
59167
|
function testsList(client$, request, options) {
|
|
58718
|
-
return new APIPromise($
|
|
59168
|
+
return new APIPromise($do37(client$, request, options));
|
|
58719
59169
|
}
|
|
58720
|
-
async function $
|
|
59170
|
+
async function $do37(client$, request, options) {
|
|
58721
59171
|
const parsed$ = safeParse4(request, (value$) => ListTestsTestsGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
58722
59172
|
if (!parsed$.ok) {
|
|
58723
59173
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58796,12 +59246,12 @@ var init_testsList = __esm(() => {
|
|
|
58796
59246
|
});
|
|
58797
59247
|
|
|
58798
59248
|
// src/mcp-server/tools/testsList.ts
|
|
58799
|
-
var
|
|
59249
|
+
var args37, tool$testsList;
|
|
58800
59250
|
var init_testsList2 = __esm(() => {
|
|
58801
59251
|
init_testsList();
|
|
58802
59252
|
init_listteststestsgetop();
|
|
58803
59253
|
init_tools();
|
|
58804
|
-
|
|
59254
|
+
args37 = {
|
|
58805
59255
|
request: ListTestsTestsGetRequest$zodSchema.optional()
|
|
58806
59256
|
};
|
|
58807
59257
|
tool$testsList = {
|
|
@@ -58818,9 +59268,9 @@ before creating runs.
|
|
|
58818
59268
|
openWorldHint: true,
|
|
58819
59269
|
readOnlyHint: true
|
|
58820
59270
|
},
|
|
58821
|
-
args:
|
|
58822
|
-
tool: async (client,
|
|
58823
|
-
const [result] = await testsList(client,
|
|
59271
|
+
args: args37,
|
|
59272
|
+
tool: async (client, args38, ctx) => {
|
|
59273
|
+
const [result] = await testsList(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58824
59274
|
if (!result.ok) {
|
|
58825
59275
|
return {
|
|
58826
59276
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58877,9 +59327,9 @@ var init_updatetestendpointteststestuuidputop = __esm(() => {
|
|
|
58877
59327
|
|
|
58878
59328
|
// src/funcs/testsUpdate.ts
|
|
58879
59329
|
function testsUpdate(client$, request, options) {
|
|
58880
|
-
return new APIPromise($
|
|
59330
|
+
return new APIPromise($do38(client$, request, options));
|
|
58881
59331
|
}
|
|
58882
|
-
async function $
|
|
59332
|
+
async function $do38(client$, request, options) {
|
|
58883
59333
|
const parsed$ = safeParse4(request, (value$) => UpdateTestEndpointTestsTestUuidPutRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58884
59334
|
if (!parsed$.ok) {
|
|
58885
59335
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58959,12 +59409,12 @@ var init_testsUpdate = __esm(() => {
|
|
|
58959
59409
|
});
|
|
58960
59410
|
|
|
58961
59411
|
// src/mcp-server/tools/testsUpdate.ts
|
|
58962
|
-
var
|
|
59412
|
+
var args38, tool$testsUpdate;
|
|
58963
59413
|
var init_testsUpdate2 = __esm(() => {
|
|
58964
59414
|
init_testsUpdate();
|
|
58965
59415
|
init_updatetestendpointteststestuuidputop();
|
|
58966
59416
|
init_tools();
|
|
58967
|
-
|
|
59417
|
+
args38 = {
|
|
58968
59418
|
request: UpdateTestEndpointTestsTestUuidPutRequest$zodSchema
|
|
58969
59419
|
};
|
|
58970
59420
|
tool$testsUpdate = {
|
|
@@ -58981,9 +59431,224 @@ fields to change (name, config). Returns the updated test. Fails with
|
|
|
58981
59431
|
openWorldHint: true,
|
|
58982
59432
|
readOnlyHint: false
|
|
58983
59433
|
},
|
|
58984
|
-
args:
|
|
58985
|
-
tool: async (client,
|
|
58986
|
-
const [result] = await testsUpdate(client,
|
|
59434
|
+
args: args38,
|
|
59435
|
+
tool: async (client, args39, ctx) => {
|
|
59436
|
+
const [result] = await testsUpdate(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59437
|
+
if (!result.ok) {
|
|
59438
|
+
return {
|
|
59439
|
+
content: [{ type: "text", text: result.error.message }],
|
|
59440
|
+
isError: true
|
|
59441
|
+
};
|
|
59442
|
+
}
|
|
59443
|
+
return formatResult(result.value);
|
|
59444
|
+
}
|
|
59445
|
+
};
|
|
59446
|
+
});
|
|
59447
|
+
|
|
59448
|
+
// src/models/tracemetadataentry.ts
|
|
59449
|
+
var TraceMetadataEntry$zodSchema;
|
|
59450
|
+
var init_tracemetadataentry = __esm(() => {
|
|
59451
|
+
init_zod();
|
|
59452
|
+
TraceMetadataEntry$zodSchema = object({
|
|
59453
|
+
key: string2().describe("Name of the metadata entry"),
|
|
59454
|
+
value: string2().describe("Value of the metadata entry")
|
|
59455
|
+
});
|
|
59456
|
+
});
|
|
59457
|
+
|
|
59458
|
+
// src/models/tracetoolcall.ts
|
|
59459
|
+
var TraceToolCall$zodSchema;
|
|
59460
|
+
var init_tracetoolcall = __esm(() => {
|
|
59461
|
+
init_zod();
|
|
59462
|
+
TraceToolCall$zodSchema = object({
|
|
59463
|
+
arguments: record(string2(), any()).nullable().optional().describe("Argument values the agent passed to the tool. Omit when the call had none"),
|
|
59464
|
+
tool: string2().describe("Name of the tool the agent called")
|
|
59465
|
+
});
|
|
59466
|
+
});
|
|
59467
|
+
|
|
59468
|
+
// src/models/traceoutput.ts
|
|
59469
|
+
var TraceOutput$zodSchema;
|
|
59470
|
+
var init_traceoutput = __esm(() => {
|
|
59471
|
+
init_zod();
|
|
59472
|
+
init_tracetoolcall();
|
|
59473
|
+
TraceOutput$zodSchema = object({
|
|
59474
|
+
response: string2().nullable().optional().describe("The assistant reply text for this turn. Omit for turns that only issued tool calls"),
|
|
59475
|
+
tool_calls: array(TraceToolCall$zodSchema).nullable().optional().describe("Tool calls the agent issued for this turn. Omit for plain text replies")
|
|
59476
|
+
});
|
|
59477
|
+
});
|
|
59478
|
+
|
|
59479
|
+
// src/models/traceturn.ts
|
|
59480
|
+
var TraceTurn$zodSchema, TraceTurn$zodSchemaOutbound;
|
|
59481
|
+
var init_traceturn = __esm(() => {
|
|
59482
|
+
init_zod();
|
|
59483
|
+
init_schemas4();
|
|
59484
|
+
TraceTurn$zodSchema = collectExtraKeys(object({
|
|
59485
|
+
content: string2().nullable().optional().describe("Message text. Omit for turns that only carry tool calls"),
|
|
59486
|
+
role: string2().describe("Message author role in the conversation history")
|
|
59487
|
+
}).catchall(any()), "AdditionalProperties", true);
|
|
59488
|
+
TraceTurn$zodSchemaOutbound = object({
|
|
59489
|
+
AdditionalProperties: record(string2(), any()).optional(),
|
|
59490
|
+
content: nullable(string2()).optional(),
|
|
59491
|
+
role: string2()
|
|
59492
|
+
}).transform((v) => {
|
|
59493
|
+
const { AdditionalProperties, ...rest } = v;
|
|
59494
|
+
return {
|
|
59495
|
+
...rest,
|
|
59496
|
+
...AdditionalProperties
|
|
59497
|
+
};
|
|
59498
|
+
});
|
|
59499
|
+
});
|
|
59500
|
+
|
|
59501
|
+
// src/models/traceingest.ts
|
|
59502
|
+
var TraceIngest$zodSchema;
|
|
59503
|
+
var init_traceingest = __esm(() => {
|
|
59504
|
+
init_zod();
|
|
59505
|
+
init_tracemetadataentry();
|
|
59506
|
+
init_traceoutput();
|
|
59507
|
+
init_traceturn();
|
|
59508
|
+
TraceIngest$zodSchema = object({
|
|
59509
|
+
agent_id: string2().describe("ID of the agent that produced the turn. Must be an agent in your workspace"),
|
|
59510
|
+
conversation_id: string2().nullable().optional().describe("Your own ID for the conversation this turn belongs to, stored for reference only. Omit if you have none"),
|
|
59511
|
+
input: array(TraceTurn$zodSchema).describe("Conversation history up to the reported output, oldest turn first, in OpenAI chat format"),
|
|
59512
|
+
message_id: string2().nullable().optional().describe("Your own ID for the last user message in `input`, stored for reference only. Omit if you have none"),
|
|
59513
|
+
metadata: array(TraceMetadataEntry$zodSchema).nullable().optional().describe("Key-value pairs stored with the trace. Prefer OTel `gen_ai.*` key names where they fit. Omit if you have none"),
|
|
59514
|
+
output: TraceOutput$zodSchema
|
|
59515
|
+
});
|
|
59516
|
+
});
|
|
59517
|
+
|
|
59518
|
+
// src/models/traceingestresponse.ts
|
|
59519
|
+
var TraceIngestResponse$zodSchema;
|
|
59520
|
+
var init_traceingestresponse = __esm(() => {
|
|
59521
|
+
init_zod();
|
|
59522
|
+
TraceIngestResponse$zodSchema = object({
|
|
59523
|
+
conversation_id: string2().nullable().optional().describe("The conversation ID you sent, if any"),
|
|
59524
|
+
created_at: string2().describe("When the trace was created (ISO 8601 UTC)"),
|
|
59525
|
+
message_id: string2().nullable().optional().describe("The message ID you sent, if any"),
|
|
59526
|
+
uuid: string2().describe("Unique ID for the trace")
|
|
59527
|
+
});
|
|
59528
|
+
});
|
|
59529
|
+
|
|
59530
|
+
// src/models/ingesttracetracespostop.ts
|
|
59531
|
+
var IngestTraceTracesPostRequest$zodSchema, IngestTraceTracesPostResponse$zodSchema;
|
|
59532
|
+
var init_ingesttracetracespostop = __esm(() => {
|
|
59533
|
+
init_zod();
|
|
59534
|
+
init_httpvalidationerror();
|
|
59535
|
+
init_traceingest();
|
|
59536
|
+
init_traceingestresponse();
|
|
59537
|
+
IngestTraceTracesPostRequest$zodSchema = object({
|
|
59538
|
+
body: TraceIngest$zodSchema,
|
|
59539
|
+
xAPIKey: string2().nullable().optional()
|
|
59540
|
+
});
|
|
59541
|
+
IngestTraceTracesPostResponse$zodSchema = union([
|
|
59542
|
+
TraceIngestResponse$zodSchema,
|
|
59543
|
+
HTTPValidationError$zodSchema
|
|
59544
|
+
]);
|
|
59545
|
+
});
|
|
59546
|
+
|
|
59547
|
+
// src/funcs/tracesCreate.ts
|
|
59548
|
+
function tracesCreate(client$, request, options) {
|
|
59549
|
+
return new APIPromise($do39(client$, request, options));
|
|
59550
|
+
}
|
|
59551
|
+
async function $do39(client$, request, options) {
|
|
59552
|
+
const parsed$ = safeParse4(request, (value$) => IngestTraceTracesPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59553
|
+
if (!parsed$.ok) {
|
|
59554
|
+
return [parsed$, { status: "invalid" }];
|
|
59555
|
+
}
|
|
59556
|
+
const payload$ = parsed$.value;
|
|
59557
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
59558
|
+
const path$ = pathToFunc("/traces")();
|
|
59559
|
+
const headers$ = new Headers(compactMap({
|
|
59560
|
+
"Content-Type": "application/json",
|
|
59561
|
+
Accept: "application/json",
|
|
59562
|
+
"X-API-Key": encodeSimple("X-API-Key", payload$.xAPIKey, {
|
|
59563
|
+
explode: false,
|
|
59564
|
+
charEncoding: "none"
|
|
59565
|
+
})
|
|
59566
|
+
}));
|
|
59567
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
59568
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
59569
|
+
const context = {
|
|
59570
|
+
options: client$._options,
|
|
59571
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
59572
|
+
operationID: "ingest_trace_traces_post",
|
|
59573
|
+
oAuth2Scopes: null,
|
|
59574
|
+
resolvedSecurity: requestSecurity,
|
|
59575
|
+
securitySource: client$._options.security,
|
|
59576
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
59577
|
+
retryCodes: options?.retryCodes || [
|
|
59578
|
+
"429",
|
|
59579
|
+
"500",
|
|
59580
|
+
"502",
|
|
59581
|
+
"503",
|
|
59582
|
+
"504"
|
|
59583
|
+
]
|
|
59584
|
+
};
|
|
59585
|
+
const requestRes = client$._createRequest(context, {
|
|
59586
|
+
security: requestSecurity,
|
|
59587
|
+
method: "POST",
|
|
59588
|
+
baseURL: options?.serverURL,
|
|
59589
|
+
path: path$,
|
|
59590
|
+
headers: headers$,
|
|
59591
|
+
body: body$,
|
|
59592
|
+
userAgent: client$._options.userAgent,
|
|
59593
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
59594
|
+
}, options);
|
|
59595
|
+
if (!requestRes.ok) {
|
|
59596
|
+
return [requestRes, { status: "invalid" }];
|
|
59597
|
+
}
|
|
59598
|
+
const req$ = requestRes.value;
|
|
59599
|
+
const doResult = await client$._do(req$, {
|
|
59600
|
+
context,
|
|
59601
|
+
errorCodes: [],
|
|
59602
|
+
retryConfig: context.retryConfig,
|
|
59603
|
+
retryCodes: context.retryCodes
|
|
59604
|
+
});
|
|
59605
|
+
if (!doResult.ok) {
|
|
59606
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
59607
|
+
}
|
|
59608
|
+
return [doResult, {
|
|
59609
|
+
status: "complete",
|
|
59610
|
+
request: req$,
|
|
59611
|
+
response: doResult.value
|
|
59612
|
+
}];
|
|
59613
|
+
}
|
|
59614
|
+
var init_tracesCreate = __esm(() => {
|
|
59615
|
+
init_encodings();
|
|
59616
|
+
init_primitives();
|
|
59617
|
+
init_schemas4();
|
|
59618
|
+
init_security();
|
|
59619
|
+
init_url();
|
|
59620
|
+
init_ingesttracetracespostop();
|
|
59621
|
+
init_async();
|
|
59622
|
+
});
|
|
59623
|
+
|
|
59624
|
+
// src/mcp-server/tools/tracesCreate.ts
|
|
59625
|
+
var args39, tool$tracesCreate;
|
|
59626
|
+
var init_tracesCreate2 = __esm(() => {
|
|
59627
|
+
init_tracesCreate();
|
|
59628
|
+
init_ingesttracetracespostop();
|
|
59629
|
+
init_tools();
|
|
59630
|
+
args39 = {
|
|
59631
|
+
request: IngestTraceTracesPostRequest$zodSchema
|
|
59632
|
+
};
|
|
59633
|
+
tool$tracesCreate = {
|
|
59634
|
+
name: "create-trace",
|
|
59635
|
+
description: `Store one production agent turn against an agent in the caller's org:
|
|
59636
|
+
the conversation history as input, what the agent produced as output,
|
|
59637
|
+
and optional metadata. Use this to capture live traffic for later
|
|
59638
|
+
review and conversion into tests. Fails with 429 once the workspace
|
|
59639
|
+
hits its trace limit.
|
|
59640
|
+
`,
|
|
59641
|
+
scopes: ["write"],
|
|
59642
|
+
annotations: {
|
|
59643
|
+
title: "Create trace",
|
|
59644
|
+
destructiveHint: false,
|
|
59645
|
+
idempotentHint: false,
|
|
59646
|
+
openWorldHint: true,
|
|
59647
|
+
readOnlyHint: false
|
|
59648
|
+
},
|
|
59649
|
+
args: args39,
|
|
59650
|
+
tool: async (client, args40, ctx) => {
|
|
59651
|
+
const [result] = await tracesCreate(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58987
59652
|
if (!result.ok) {
|
|
58988
59653
|
return {
|
|
58989
59654
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58999,16 +59664,16 @@ fields to change (name, config). Returns the updated test. Fails with
|
|
|
58999
59664
|
function createMCPServer(deps) {
|
|
59000
59665
|
const server = new McpServer({
|
|
59001
59666
|
name: "CalibrateMcp",
|
|
59002
|
-
version: "0.0.
|
|
59667
|
+
version: "0.0.35"
|
|
59003
59668
|
});
|
|
59004
59669
|
const getClient = deps.getSDK || (() => new CalibrateMcpCore({
|
|
59005
59670
|
security: deps.security,
|
|
59006
59671
|
serverURL: deps.serverURL,
|
|
59007
59672
|
serverIdx: deps.serverIdx,
|
|
59008
59673
|
debugLogger: deps.logger.level === "debug" ? {
|
|
59009
|
-
log: (...
|
|
59010
|
-
group: (...
|
|
59011
|
-
groupEnd: (...
|
|
59674
|
+
log: (...args40) => console.log(...args40),
|
|
59675
|
+
group: (...args40) => console.group(...args40),
|
|
59676
|
+
groupEnd: (...args40) => console.groupEnd(...args40)
|
|
59012
59677
|
} : undefined
|
|
59013
59678
|
}));
|
|
59014
59679
|
const scopes = new Set(deps.scopes);
|
|
@@ -59053,6 +59718,10 @@ function createMCPServer(deps) {
|
|
|
59053
59718
|
tool(tool$annotationTasksGetEvaluatorRun);
|
|
59054
59719
|
tool(tool$annotationTasksGetAgreement);
|
|
59055
59720
|
tool(tool$annotationTasksGetSummary);
|
|
59721
|
+
tool(tool$annotatorsCreate);
|
|
59722
|
+
tool(tool$annotatorsList);
|
|
59723
|
+
tool(tool$annotatorsUpdate);
|
|
59724
|
+
tool(tool$tracesCreate);
|
|
59056
59725
|
if (deps.dynamic) {
|
|
59057
59726
|
registerDynamicTools(deps.logger, server, getClient, toolMap, scopes);
|
|
59058
59727
|
}
|
|
@@ -59089,6 +59758,9 @@ var init_server2 = __esm(() => {
|
|
|
59089
59758
|
init_annotationTasksList2();
|
|
59090
59759
|
init_annotationTasksSetEvaluators2();
|
|
59091
59760
|
init_annotationTasksUpdateItems2();
|
|
59761
|
+
init_annotatorsCreate2();
|
|
59762
|
+
init_annotatorsList2();
|
|
59763
|
+
init_annotatorsUpdate2();
|
|
59092
59764
|
init_evaluatorsCreate2();
|
|
59093
59765
|
init_evaluatorsCreateVersion2();
|
|
59094
59766
|
init_evaluatorsGet2();
|
|
@@ -59098,6 +59770,7 @@ var init_server2 = __esm(() => {
|
|
|
59098
59770
|
init_testsGet2();
|
|
59099
59771
|
init_testsList2();
|
|
59100
59772
|
init_testsUpdate2();
|
|
59773
|
+
init_tracesCreate2();
|
|
59101
59774
|
});
|
|
59102
59775
|
|
|
59103
59776
|
// src/tool-names.ts
|
|
@@ -59318,6 +59991,30 @@ must be in your workspace.
|
|
|
59318
59991
|
{
|
|
59319
59992
|
name: "get-annotation-summary",
|
|
59320
59993
|
description: `Get a paginated summary table for a task, with each item's evaluator values and human labels.
|
|
59994
|
+
`
|
|
59995
|
+
},
|
|
59996
|
+
{
|
|
59997
|
+
name: "create-annotator",
|
|
59998
|
+
description: `Create an annotator, a human labeller who can be assigned annotation tasks.
|
|
59999
|
+
`
|
|
60000
|
+
},
|
|
60001
|
+
{
|
|
60002
|
+
name: "list-annotators",
|
|
60003
|
+
description: `List your annotators with their job counts and agreement scores.
|
|
60004
|
+
`
|
|
60005
|
+
},
|
|
60006
|
+
{
|
|
60007
|
+
name: "update-annotator",
|
|
60008
|
+
description: `Rename an annotator in your workspace.
|
|
60009
|
+
`
|
|
60010
|
+
},
|
|
60011
|
+
{
|
|
60012
|
+
name: "create-trace",
|
|
60013
|
+
description: `Store one production agent turn against an agent in the caller's org:
|
|
60014
|
+
the conversation history as input, what the agent produced as output,
|
|
60015
|
+
and optional metadata. Use this to capture live traffic for later
|
|
60016
|
+
review and conversion into tests. Fails with 429 once the workspace
|
|
60017
|
+
hits its trace limit.
|
|
59321
60018
|
`
|
|
59322
60019
|
}
|
|
59323
60020
|
];
|
|
@@ -60226,7 +60923,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
|
|
|
60226
60923
|
<h1>Instructions</h1>
|
|
60227
60924
|
<p>One-click installation for Claude Desktop users</p>
|
|
60228
60925
|
<div class="instruction-item">
|
|
60229
|
-
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.
|
|
60926
|
+
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.35/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
60230
60927
|
\uD83D\uDCE5 Download MCP Bundle
|
|
60231
60928
|
</a>
|
|
60232
60929
|
</div>
|
|
@@ -63113,7 +63810,7 @@ var routes = buildRouteMap({
|
|
|
63113
63810
|
var app = buildApplication(routes, {
|
|
63114
63811
|
name: "mcp",
|
|
63115
63812
|
versionInfo: {
|
|
63116
|
-
currentVersion: "0.0.
|
|
63813
|
+
currentVersion: "0.0.35"
|
|
63117
63814
|
}
|
|
63118
63815
|
});
|
|
63119
63816
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -63121,5 +63818,5 @@ export {
|
|
|
63121
63818
|
app
|
|
63122
63819
|
};
|
|
63123
63820
|
|
|
63124
|
-
//# debugId=
|
|
63821
|
+
//# debugId=514428CBF7C544CD64756E2164756E21
|
|
63125
63822
|
//# sourceMappingURL=mcp-server.js.map
|