@dalmia/calibrate-mcp 0.0.22 → 0.0.24
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 +140 -25
- package/bin/mcp-server.js.map +24 -20
- package/esm/funcs/agentTestsListForAgent.js +7 -1
- package/esm/funcs/agentTestsListForAgent.js.map +1 -1
- package/esm/funcs/agentTestsListRunsForAgent.js +9 -1
- package/esm/funcs/agentTestsListRunsForAgent.js.map +1 -1
- package/esm/funcs/agentsList.js +7 -1
- package/esm/funcs/agentsList.js.map +1 -1
- package/esm/funcs/annotationTasksList.js +7 -1
- package/esm/funcs/annotationTasksList.js.map +1 -1
- package/esm/funcs/evaluatorsList.js +3 -0
- package/esm/funcs/evaluatorsList.js.map +1 -1
- package/esm/funcs/testsList.js +7 -1
- package/esm/funcs/testsList.js.map +1 -1
- 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.js +1 -1
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.d.ts +32 -2
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.d.ts.map +1 -1
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.js +25 -2
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.js.map +1 -1
- package/esm/models/getagenttestsendpointagenttestsagentagentuuidtestsgetop.d.ts +5 -2
- package/esm/models/getagenttestsendpointagenttestsagentagentuuidtestsgetop.d.ts.map +1 -1
- package/esm/models/getagenttestsendpointagenttestsagentagentuuidtestsgetop.js +5 -2
- package/esm/models/getagenttestsendpointagenttestsagentagentuuidtestsgetop.js.map +1 -1
- package/esm/models/listagentsagentsgetop.d.ts +5 -2
- package/esm/models/listagentsagentsgetop.d.ts.map +1 -1
- package/esm/models/listagentsagentsgetop.js +5 -2
- package/esm/models/listagentsagentsgetop.js.map +1 -1
- package/esm/models/listannotationtasksannotationtasksgetop.d.ts +5 -2
- package/esm/models/listannotationtasksannotationtasksgetop.d.ts.map +1 -1
- package/esm/models/listannotationtasksannotationtasksgetop.js +5 -2
- package/esm/models/listannotationtasksannotationtasksgetop.js.map +1 -1
- package/esm/models/listevaluatorsevaluatorsgetop.d.ts +5 -2
- package/esm/models/listevaluatorsevaluatorsgetop.d.ts.map +1 -1
- package/esm/models/listevaluatorsevaluatorsgetop.js +5 -2
- package/esm/models/listevaluatorsevaluatorsgetop.js.map +1 -1
- package/esm/models/listteststestsgetop.d.ts +5 -2
- package/esm/models/listteststestsgetop.d.ts.map +1 -1
- package/esm/models/listteststestsgetop.js +5 -2
- package/esm/models/listteststestsgetop.js.map +1 -1
- package/esm/models/paginatedresponseagentsummary.d.ts +10 -0
- package/esm/models/paginatedresponseagentsummary.d.ts.map +1 -0
- package/esm/models/paginatedresponseagentsummary.js +12 -0
- package/esm/models/paginatedresponseagentsummary.js.map +1 -0
- package/esm/models/paginatedresponseagenttestrunlistitem.d.ts +10 -0
- package/esm/models/paginatedresponseagenttestrunlistitem.d.ts.map +1 -0
- package/esm/models/paginatedresponseagenttestrunlistitem.js +12 -0
- package/esm/models/paginatedresponseagenttestrunlistitem.js.map +1 -0
- package/esm/models/paginatedresponseannotationtaskresponse.d.ts +10 -0
- package/esm/models/paginatedresponseannotationtaskresponse.d.ts.map +1 -0
- package/esm/models/paginatedresponseannotationtaskresponse.js +12 -0
- package/esm/models/paginatedresponseannotationtaskresponse.js.map +1 -0
- package/esm/models/paginatedresponseevaluatorresponse.d.ts +10 -0
- package/esm/models/paginatedresponseevaluatorresponse.d.ts.map +1 -0
- package/esm/models/paginatedresponseevaluatorresponse.js +12 -0
- package/esm/models/paginatedresponseevaluatorresponse.js.map +1 -0
- package/esm/models/paginatedresponsetestlistresponse.d.ts +10 -0
- package/esm/models/paginatedresponsetestlistresponse.d.ts.map +1 -0
- package/esm/models/paginatedresponsetestlistresponse.js +12 -0
- package/esm/models/paginatedresponsetestlistresponse.js.map +1 -0
- package/package.json +1 -1
- package/src/funcs/agentTestsListForAgent.ts +7 -1
- package/src/funcs/agentTestsListRunsForAgent.ts +9 -1
- package/src/funcs/agentsList.ts +7 -1
- package/src/funcs/annotationTasksList.ts +7 -1
- package/src/funcs/evaluatorsList.ts +3 -0
- package/src/funcs/testsList.ts +7 -1
- 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 +1 -1
- package/src/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.ts +59 -6
- package/src/models/getagenttestsendpointagenttestsagentagentuuidtestsgetop.ts +17 -5
- package/src/models/listagentsagentsgetop.ts +18 -3
- package/src/models/listannotationtasksannotationtasksgetop.ts +18 -6
- package/src/models/listevaluatorsevaluatorsgetop.ts +17 -7
- package/src/models/listteststestsgetop.ts +20 -6
- package/src/models/paginatedresponseagentsummary.ts +26 -0
- package/src/models/paginatedresponseagenttestrunlistitem.ts +31 -0
- package/src/models/paginatedresponseannotationtaskresponse.ts +31 -0
- package/src/models/paginatedresponseevaluatorresponse.ts +31 -0
- package/src/models/paginatedresponsetestlistresponse.ts +29 -0
- package/esm/models/agenttestrunsresponse.d.ts +0 -7
- package/esm/models/agenttestrunsresponse.d.ts.map +0 -1
- package/esm/models/agenttestrunsresponse.js +0 -9
- package/esm/models/agenttestrunsresponse.js.map +0 -1
- package/src/models/agenttestrunsresponse.ts +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listevaluatorsevaluatorsgetop.d.ts","sourceRoot":"","sources":["../../src/models/listevaluatorsevaluatorsgetop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kCAAkC,EAEnC,MAAM,yCAAyC,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,wCAAwC;;;;;;CAM3C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG,UAAU,CAC/D,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,MAAM,kDAAkD;;;;;;EAMO,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,6CAA6C;;;EAGX,CAAC;AAEhD,MAAM,MAAM,kCAAkC,GAAG;IAC/C,cAAc,CAAC,EAAE,wCAAwC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7E,SAAS,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IACnE,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,kCAAkC,
|
|
1
|
+
{"version":3,"file":"listevaluatorsevaluatorsgetop.d.ts","sourceRoot":"","sources":["../../src/models/listevaluatorsevaluatorsgetop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kCAAkC,EAEnC,MAAM,yCAAyC,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,wCAAwC;;;;;;CAM3C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG,UAAU,CAC/D,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,MAAM,kDAAkD;;;;;;EAMO,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,6CAA6C;;;EAGX,CAAC;AAEhD,MAAM,MAAM,kCAAkC,GAAG;IAC/C,cAAc,CAAC,EAAE,wCAAwC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7E,SAAS,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IACnE,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,kCAAkC,CAqBlC,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAC3C,kCAAkC,GAClC,mBAAmB,CAAC;AAExB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,mCAAmC,CAInC,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
|
|
6
|
-
import {
|
|
6
|
+
import { PaginatedResponseEvaluatorResponse$zodSchema, } from "./paginatedresponseevaluatorresponse.js";
|
|
7
7
|
/**
|
|
8
8
|
* Filter by what the evaluator judges. Omit for all types
|
|
9
9
|
*/
|
|
@@ -38,10 +38,13 @@ export const ListEvaluatorsEvaluatorsGetRequest$zodSchema = z.object({
|
|
|
38
38
|
evaluator_type: ListEvaluatorsEvaluatorsGetEvaluatorType$zodSchema.nullable()
|
|
39
39
|
.optional().describe("Filter by what the evaluator judges. Omit for all types"),
|
|
40
40
|
include_defaults: z.boolean().default(true).describe("When `true`, include the built-in default evaluators alongside the ones you created"),
|
|
41
|
+
limit: z.int().describe("Maximum number of items to return. Omit for no limit (all items)").nullable().optional(),
|
|
42
|
+
offset: z.int().default(0).describe("Number of items to skip before returning results"),
|
|
43
|
+
q: z.string().describe("Case-insensitive substring search on `name`. Blank is a no-op").nullable().optional(),
|
|
41
44
|
xAPIKey: z.string().nullable().optional(),
|
|
42
45
|
});
|
|
43
46
|
export const ListEvaluatorsEvaluatorsGetResponse$zodSchema = z.union([
|
|
44
|
-
|
|
47
|
+
PaginatedResponseEvaluatorResponse$zodSchema,
|
|
45
48
|
HTTPValidationError$zodSchema,
|
|
46
49
|
]);
|
|
47
50
|
//# sourceMappingURL=listevaluatorsevaluatorsgetop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listevaluatorsevaluatorsgetop.js","sourceRoot":"","sources":["../../src/models/listevaluatorsevaluatorsgetop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,4CAA4C,GAC7C,MAAM,yCAAyC,CAAC;AAEjD;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG;IACtD,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,cAAc;CACpB,CAAC;AAQX,MAAM,CAAC,MAAM,kDAAkD,GAAG,CAAC,CAAC,IAAI,CAAC;IACvE,KAAK;IACL,KAAK;IACL,KAAK;IACL,aAAa;IACb,cAAc;CACf,CAAC,CAAC,QAAQ,CAAC,yDAAyD,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG;IACjD,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAQX,MAAM,CAAC,MAAM,6CAA6C,GAAG,CAAC,CAAC,IAAI,CAAC;IAClE,MAAM;IACN,OAAO;CACR,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"listevaluatorsevaluatorsgetop.js","sourceRoot":"","sources":["../../src/models/listevaluatorsevaluatorsgetop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,4CAA4C,GAC7C,MAAM,yCAAyC,CAAC;AAEjD;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG;IACtD,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,cAAc;CACpB,CAAC;AAQX,MAAM,CAAC,MAAM,kDAAkD,GAAG,CAAC,CAAC,IAAI,CAAC;IACvE,KAAK;IACL,KAAK;IACL,KAAK;IACL,aAAa;IACb,cAAc;CACf,CAAC,CAAC,QAAQ,CAAC,yDAAyD,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG;IACjD,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAQX,MAAM,CAAC,MAAM,6CAA6C,GAAG,CAAC,CAAC,IAAI,CAAC;IAClE,MAAM;IACN,OAAO;CACR,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC,CAAC;AAYhD,MAAM,CAAC,MAAM,4CAA4C,GAErD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,6CAA6C,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;SAC3E,QAAQ,CAAC,kCAAkC,CAAC;IAC/C,cAAc,EAAE,kDAAkD,CAAC,QAAQ,EAAE;SAC1E,QAAQ,EAAE,CAAC,QAAQ,CAClB,yDAAyD,CAC1D;IACH,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAClD,qFAAqF,CACtF;IACD,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACrB,kEAAkE,CACnE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACvB,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CACjC,kDAAkD,CACnD;IACD,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CACpB,+DAA+D,CAChE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,6CAA6C,GAEtD,CAAC,CAAC,KAAK,CAAC;IACV,4CAA4C;IAC5C,6BAA6B;CAC9B,CAAC,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { HTTPValidationError } from "./httpvalidationerror.js";
|
|
3
|
-
import {
|
|
3
|
+
import { PaginatedResponseTestListResponse } from "./paginatedresponsetestlistresponse.js";
|
|
4
4
|
export type ListTestsTestsGetRequest = {
|
|
5
|
+
q?: string | null | undefined;
|
|
6
|
+
limit?: number | null | undefined;
|
|
7
|
+
offset?: number | undefined;
|
|
5
8
|
xAPIKey?: string | null | undefined;
|
|
6
9
|
};
|
|
7
10
|
export declare const ListTestsTestsGetRequest$zodSchema: z.ZodType<ListTestsTestsGetRequest>;
|
|
8
|
-
export type ListTestsTestsGetResponse =
|
|
11
|
+
export type ListTestsTestsGetResponse = PaginatedResponseTestListResponse | HTTPValidationError;
|
|
9
12
|
export declare const ListTestsTestsGetResponse$zodSchema: z.ZodType<ListTestsTestsGetResponse>;
|
|
10
13
|
//# sourceMappingURL=listteststestsgetop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listteststestsgetop.d.ts","sourceRoot":"","sources":["../../src/models/listteststestsgetop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"listteststestsgetop.d.ts","sourceRoot":"","sources":["../../src/models/listteststestsgetop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iCAAiC,EAElC,MAAM,wCAAwC,CAAC;AAEhD,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,wBAAwB,CAYxB,CAAC;AAEH,MAAM,MAAM,yBAAyB,GACjC,iCAAiC,GACjC,mBAAmB,CAAC;AAExB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,yBAAyB,CAIzB,CAAC"}
|
|
@@ -3,12 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
|
|
6
|
-
import {
|
|
6
|
+
import { PaginatedResponseTestListResponse$zodSchema, } from "./paginatedresponsetestlistresponse.js";
|
|
7
7
|
export const ListTestsTestsGetRequest$zodSchema = z.object({
|
|
8
|
+
limit: z.int().describe("Maximum number of items to return. Omit for no limit (all items)").nullable().optional(),
|
|
9
|
+
offset: z.int().default(0).describe("Number of items to skip before returning results"),
|
|
10
|
+
q: z.string().describe("Case-insensitive substring search on `name`. Blank is a no-op").nullable().optional(),
|
|
8
11
|
xAPIKey: z.string().nullable().optional(),
|
|
9
12
|
});
|
|
10
13
|
export const ListTestsTestsGetResponse$zodSchema = z.union([
|
|
11
|
-
|
|
14
|
+
PaginatedResponseTestListResponse$zodSchema,
|
|
12
15
|
HTTPValidationError$zodSchema,
|
|
13
16
|
]);
|
|
14
17
|
//# sourceMappingURL=listteststestsgetop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listteststestsgetop.js","sourceRoot":"","sources":["../../src/models/listteststestsgetop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"listteststestsgetop.js","sourceRoot":"","sources":["../../src/models/listteststestsgetop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,2CAA2C,GAC5C,MAAM,wCAAwC,CAAC;AAShD,MAAM,CAAC,MAAM,kCAAkC,GAE3C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACrB,kEAAkE,CACnE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACvB,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CACjC,kDAAkD,CACnD;IACD,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CACpB,+DAA+D,CAChE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,mCAAmC,GAE5C,CAAC,CAAC,KAAK,CAAC;IACV,2CAA2C;IAC3C,6BAA6B;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { AgentSummary } from "./agentsummary.js";
|
|
3
|
+
export type PaginatedResponseAgentSummary = {
|
|
4
|
+
items: Array<AgentSummary>;
|
|
5
|
+
total: number;
|
|
6
|
+
limit?: number | null | undefined;
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const PaginatedResponseAgentSummary$zodSchema: z.ZodType<PaginatedResponseAgentSummary>;
|
|
10
|
+
//# sourceMappingURL=paginatedresponseagentsummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedresponseagentsummary.d.ts","sourceRoot":"","sources":["../../src/models/paginatedresponseagentsummary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,YAAY,EAA0B,MAAM,mBAAmB,CAAC;AAEzE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,6BAA6B,CAU7B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { AgentSummary$zodSchema } from "./agentsummary.js";
|
|
6
|
+
export const PaginatedResponseAgentSummary$zodSchema = z.object({
|
|
7
|
+
items: z.array(AgentSummary$zodSchema).describe("The page of results"),
|
|
8
|
+
limit: z.int().nullable().optional().describe("The applied `limit` (null when unbounded)"),
|
|
9
|
+
offset: z.int().default(0).describe("The applied `offset`"),
|
|
10
|
+
total: z.int().describe("Total number of items matching the query, before pagination"),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=paginatedresponseagentsummary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedresponseagentsummary.js","sourceRoot":"","sources":["../../src/models/paginatedresponseagentsummary.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAgB,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AASzE,MAAM,CAAC,MAAM,uCAAuC,GAEhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACtE,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC3C,2CAA2C,CAC5C;IACD,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC3D,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACrB,6DAA6D,CAC9D;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { AgentTestRunListItem } from "./agenttestrunlistitem.js";
|
|
3
|
+
export type PaginatedResponseAgentTestRunListItem = {
|
|
4
|
+
items: Array<AgentTestRunListItem>;
|
|
5
|
+
total: number;
|
|
6
|
+
limit?: number | null | undefined;
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const PaginatedResponseAgentTestRunListItem$zodSchema: z.ZodType<PaginatedResponseAgentTestRunListItem>;
|
|
10
|
+
//# sourceMappingURL=paginatedresponseagenttestrunlistitem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedresponseagenttestrunlistitem.d.ts","sourceRoot":"","sources":["../../src/models/paginatedresponseagenttestrunlistitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,qCAAqC,GAAG;IAClD,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,qCAAqC,CAYrC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { AgentTestRunListItem$zodSchema, } from "./agenttestrunlistitem.js";
|
|
6
|
+
export const PaginatedResponseAgentTestRunListItem$zodSchema = z.object({
|
|
7
|
+
items: z.array(AgentTestRunListItem$zodSchema).describe("The page of results"),
|
|
8
|
+
limit: z.int().nullable().optional().describe("The applied `limit` (null when unbounded)"),
|
|
9
|
+
offset: z.int().default(0).describe("The applied `offset`"),
|
|
10
|
+
total: z.int().describe("Total number of items matching the query, before pagination"),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=paginatedresponseagenttestrunlistitem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedresponseagenttestrunlistitem.js","sourceRoot":"","sources":["../../src/models/paginatedresponseagenttestrunlistitem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AASnC,MAAM,CAAC,MAAM,+CAA+C,GAExD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,QAAQ,CACrD,qBAAqB,CACtB;IACD,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC3C,2CAA2C,CAC5C;IACD,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC3D,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACrB,6DAA6D,CAC9D;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { AnnotationTaskResponse } from "./annotationtaskresponse.js";
|
|
3
|
+
export type PaginatedResponseAnnotationTaskResponse = {
|
|
4
|
+
items: Array<AnnotationTaskResponse>;
|
|
5
|
+
total: number;
|
|
6
|
+
limit?: number | null | undefined;
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const PaginatedResponseAnnotationTaskResponse$zodSchema: z.ZodType<PaginatedResponseAnnotationTaskResponse>;
|
|
10
|
+
//# sourceMappingURL=paginatedresponseannotationtaskresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedresponseannotationtaskresponse.d.ts","sourceRoot":"","sources":["../../src/models/paginatedresponseannotationtaskresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,sBAAsB,EAEvB,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,uCAAuC,GAAG;IACpD,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,uCAAuC,CAYvC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { AnnotationTaskResponse$zodSchema, } from "./annotationtaskresponse.js";
|
|
6
|
+
export const PaginatedResponseAnnotationTaskResponse$zodSchema = z.object({
|
|
7
|
+
items: z.array(AnnotationTaskResponse$zodSchema).describe("The page of results"),
|
|
8
|
+
limit: z.int().nullable().optional().describe("The applied `limit` (null when unbounded)"),
|
|
9
|
+
offset: z.int().default(0).describe("The applied `offset`"),
|
|
10
|
+
total: z.int().describe("Total number of items matching the query, before pagination"),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=paginatedresponseannotationtaskresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedresponseannotationtaskresponse.js","sourceRoot":"","sources":["../../src/models/paginatedresponseannotationtaskresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AASrC,MAAM,CAAC,MAAM,iDAAiD,GAE1D,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC,QAAQ,CACvD,qBAAqB,CACtB;IACD,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC3C,2CAA2C,CAC5C;IACD,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC3D,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACrB,6DAA6D,CAC9D;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { RoutersEvaluatorsEvaluatorResponse } from "./routersevaluatorsevaluatorresponse.js";
|
|
3
|
+
export type PaginatedResponseEvaluatorResponse = {
|
|
4
|
+
items: Array<RoutersEvaluatorsEvaluatorResponse>;
|
|
5
|
+
total: number;
|
|
6
|
+
limit?: number | null | undefined;
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const PaginatedResponseEvaluatorResponse$zodSchema: z.ZodType<PaginatedResponseEvaluatorResponse>;
|
|
10
|
+
//# sourceMappingURL=paginatedresponseevaluatorresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedresponseevaluatorresponse.d.ts","sourceRoot":"","sources":["../../src/models/paginatedresponseevaluatorresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,kCAAkC,EAEnC,MAAM,yCAAyC,CAAC;AAEjD,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,kCAAkC,CAYlC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { RoutersEvaluatorsEvaluatorResponse$zodSchema, } from "./routersevaluatorsevaluatorresponse.js";
|
|
6
|
+
export const PaginatedResponseEvaluatorResponse$zodSchema = z.object({
|
|
7
|
+
items: z.array(RoutersEvaluatorsEvaluatorResponse$zodSchema).describe("The page of results"),
|
|
8
|
+
limit: z.int().nullable().optional().describe("The applied `limit` (null when unbounded)"),
|
|
9
|
+
offset: z.int().default(0).describe("The applied `offset`"),
|
|
10
|
+
total: z.int().describe("Total number of items matching the query, before pagination"),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=paginatedresponseevaluatorresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedresponseevaluatorresponse.js","sourceRoot":"","sources":["../../src/models/paginatedresponseevaluatorresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,4CAA4C,GAC7C,MAAM,yCAAyC,CAAC;AASjD,MAAM,CAAC,MAAM,4CAA4C,GAErD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,4CAA4C,CAAC,CAAC,QAAQ,CACnE,qBAAqB,CACtB;IACD,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC3C,2CAA2C,CAC5C;IACD,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC3D,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACrB,6DAA6D,CAC9D;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { TestListResponse } from "./testlistresponse.js";
|
|
3
|
+
export type PaginatedResponseTestListResponse = {
|
|
4
|
+
items: Array<TestListResponse>;
|
|
5
|
+
total: number;
|
|
6
|
+
limit?: number | null | undefined;
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const PaginatedResponseTestListResponse$zodSchema: z.ZodType<PaginatedResponseTestListResponse>;
|
|
10
|
+
//# sourceMappingURL=paginatedresponsetestlistresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedresponsetestlistresponse.d.ts","sourceRoot":"","sources":["../../src/models/paginatedresponsetestlistresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,iCAAiC,GAAG;IAC9C,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,iCAAiC,CAUjC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { TestListResponse$zodSchema, } from "./testlistresponse.js";
|
|
6
|
+
export const PaginatedResponseTestListResponse$zodSchema = z.object({
|
|
7
|
+
items: z.array(TestListResponse$zodSchema).describe("The page of results"),
|
|
8
|
+
limit: z.int().nullable().optional().describe("The applied `limit` (null when unbounded)"),
|
|
9
|
+
offset: z.int().default(0).describe("The applied `offset`"),
|
|
10
|
+
total: z.int().describe("Total number of items matching the query, before pagination"),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=paginatedresponsetestlistresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedresponsetestlistresponse.js","sourceRoot":"","sources":["../../src/models/paginatedresponsetestlistresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAS/B,MAAM,CAAC,MAAM,2CAA2C,GAEpD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC1E,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC3C,2CAA2C,CAC5C;IACD,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC3D,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACrB,6DAA6D,CAC9D;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CalibrateMcpCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -95,6 +95,11 @@ async function $do(
|
|
|
95
95
|
const path$ = pathToFunc("/agent-tests/agent/{agent_uuid}/tests")(
|
|
96
96
|
pathParams$,
|
|
97
97
|
);
|
|
98
|
+
const query$ = encodeFormQuery({
|
|
99
|
+
"limit": payload$.limit,
|
|
100
|
+
"offset": payload$.offset,
|
|
101
|
+
"q": payload$.q,
|
|
102
|
+
});
|
|
98
103
|
|
|
99
104
|
const headers$ = new Headers(compactMap({
|
|
100
105
|
Accept: "application/json",
|
|
@@ -132,6 +137,7 @@ async function $do(
|
|
|
132
137
|
baseURL: options?.serverURL,
|
|
133
138
|
path: path$,
|
|
134
139
|
headers: headers$,
|
|
140
|
+
query: query$,
|
|
135
141
|
body: body$,
|
|
136
142
|
userAgent: client$._options.userAgent,
|
|
137
143
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CalibrateMcpCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -96,6 +96,13 @@ async function $do(
|
|
|
96
96
|
const path$ = pathToFunc("/agent-tests/agent/{agent_uuid}/runs")(
|
|
97
97
|
pathParams$,
|
|
98
98
|
);
|
|
99
|
+
const query$ = encodeFormQuery({
|
|
100
|
+
"has_failures": payload$.has_failures,
|
|
101
|
+
"limit": payload$.limit,
|
|
102
|
+
"offset": payload$.offset,
|
|
103
|
+
"status": payload$.status,
|
|
104
|
+
"type": payload$.type,
|
|
105
|
+
});
|
|
99
106
|
|
|
100
107
|
const headers$ = new Headers(compactMap({
|
|
101
108
|
Accept: "application/json",
|
|
@@ -132,6 +139,7 @@ async function $do(
|
|
|
132
139
|
baseURL: options?.serverURL,
|
|
133
140
|
path: path$,
|
|
134
141
|
headers: headers$,
|
|
142
|
+
query: query$,
|
|
135
143
|
body: body$,
|
|
136
144
|
userAgent: client$._options.userAgent,
|
|
137
145
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
package/src/funcs/agentsList.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CalibrateMcpCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -84,6 +84,11 @@ async function $do(
|
|
|
84
84
|
const payload$ = parsed$.value;
|
|
85
85
|
const body$ = null;
|
|
86
86
|
const path$ = pathToFunc("/agents")();
|
|
87
|
+
const query$ = encodeFormQuery({
|
|
88
|
+
"limit": payload$?.limit,
|
|
89
|
+
"offset": payload$?.offset,
|
|
90
|
+
"q": payload$?.q,
|
|
91
|
+
});
|
|
87
92
|
|
|
88
93
|
const headers$ = new Headers(compactMap({
|
|
89
94
|
Accept: "application/json",
|
|
@@ -120,6 +125,7 @@ async function $do(
|
|
|
120
125
|
baseURL: options?.serverURL,
|
|
121
126
|
path: path$,
|
|
122
127
|
headers: headers$,
|
|
128
|
+
query: query$,
|
|
123
129
|
body: body$,
|
|
124
130
|
userAgent: client$._options.userAgent,
|
|
125
131
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CalibrateMcpCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -87,6 +87,11 @@ async function $do(
|
|
|
87
87
|
const payload$ = parsed$.value;
|
|
88
88
|
const body$ = null;
|
|
89
89
|
const path$ = pathToFunc("/annotation-tasks")();
|
|
90
|
+
const query$ = encodeFormQuery({
|
|
91
|
+
"limit": payload$?.limit,
|
|
92
|
+
"offset": payload$?.offset,
|
|
93
|
+
"q": payload$?.q,
|
|
94
|
+
});
|
|
90
95
|
|
|
91
96
|
const headers$ = new Headers(compactMap({
|
|
92
97
|
Accept: "application/json",
|
|
@@ -123,6 +128,7 @@ async function $do(
|
|
|
123
128
|
baseURL: options?.serverURL,
|
|
124
129
|
path: path$,
|
|
125
130
|
headers: headers$,
|
|
131
|
+
query: query$,
|
|
126
132
|
body: body$,
|
|
127
133
|
userAgent: client$._options.userAgent,
|
|
128
134
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
@@ -89,6 +89,9 @@ async function $do(
|
|
|
89
89
|
"data_type": payload$?.data_type,
|
|
90
90
|
"evaluator_type": payload$?.evaluator_type,
|
|
91
91
|
"include_defaults": payload$?.include_defaults,
|
|
92
|
+
"limit": payload$?.limit,
|
|
93
|
+
"offset": payload$?.offset,
|
|
94
|
+
"q": payload$?.q,
|
|
92
95
|
});
|
|
93
96
|
|
|
94
97
|
const headers$ = new Headers(compactMap({
|
package/src/funcs/testsList.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CalibrateMcpCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -84,6 +84,11 @@ async function $do(
|
|
|
84
84
|
const payload$ = parsed$.value;
|
|
85
85
|
const body$ = null;
|
|
86
86
|
const path$ = pathToFunc("/tests")();
|
|
87
|
+
const query$ = encodeFormQuery({
|
|
88
|
+
"limit": payload$?.limit,
|
|
89
|
+
"offset": payload$?.offset,
|
|
90
|
+
"q": payload$?.q,
|
|
91
|
+
});
|
|
87
92
|
|
|
88
93
|
const headers$ = new Headers(compactMap({
|
|
89
94
|
Accept: "application/json",
|
|
@@ -120,6 +125,7 @@ async function $do(
|
|
|
120
125
|
baseURL: options?.serverURL,
|
|
121
126
|
path: path$,
|
|
122
127
|
headers: headers$,
|
|
128
|
+
query: query$,
|
|
123
129
|
body: body$,
|
|
124
130
|
userAgent: client$._options.userAgent,
|
|
125
131
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
package/src/landing-page.ts
CHANGED
|
@@ -930,7 +930,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
|
|
|
930
930
|
<h1>Instructions</h1>
|
|
931
931
|
<p>One-click installation for Claude Desktop users</p>
|
|
932
932
|
<div class="instruction-item">
|
|
933
|
-
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.
|
|
933
|
+
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.24/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
934
934
|
📥 Download MCP Bundle
|
|
935
935
|
</a>
|
|
936
936
|
</div>
|
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "0.1.0",
|
|
68
|
-
sdkVersion: "0.0.
|
|
68
|
+
sdkVersion: "0.0.24",
|
|
69
69
|
genVersion: "2.915.1",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/mcp-typescript 0.0.
|
|
71
|
+
"speakeasy-sdk/mcp-typescript 0.0.24 2.915.1 0.1.0 @dalmia/calibrate-mcp",
|
|
72
72
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -3,32 +3,85 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
7
|
-
AgentTestRunsResponse,
|
|
8
|
-
AgentTestRunsResponse$zodSchema,
|
|
9
|
-
} from "./agenttestrunsresponse.js";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
10
7
|
import {
|
|
11
8
|
HTTPValidationError,
|
|
12
9
|
HTTPValidationError$zodSchema,
|
|
13
10
|
} from "./httpvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
PaginatedResponseAgentTestRunListItem,
|
|
13
|
+
PaginatedResponseAgentTestRunListItem$zodSchema,
|
|
14
|
+
} from "./paginatedresponseagenttestrunlistitem.js";
|
|
15
|
+
import { TaskStatus, TaskStatus$zodSchema } from "./taskstatus.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Filter by run type. Omit to return both:
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* - `llm-unit-test`: single runs of an agent's tests
|
|
22
|
+
* - `llm-benchmark`: multi-model comparisons
|
|
23
|
+
*/
|
|
24
|
+
export const GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType = {
|
|
25
|
+
LlmUnitTest: "llm-unit-test",
|
|
26
|
+
LlmBenchmark: "llm-benchmark",
|
|
27
|
+
} as const;
|
|
28
|
+
/**
|
|
29
|
+
* Filter by run type. Omit to return both:
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* - `llm-unit-test`: single runs of an agent's tests
|
|
33
|
+
* - `llm-benchmark`: multi-model comparisons
|
|
34
|
+
*/
|
|
35
|
+
export type GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType = ClosedEnum<
|
|
36
|
+
typeof GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType
|
|
37
|
+
>;
|
|
38
|
+
|
|
39
|
+
export const GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType$zodSchema = z
|
|
40
|
+
.enum([
|
|
41
|
+
"llm-unit-test",
|
|
42
|
+
"llm-benchmark",
|
|
43
|
+
]).describe(
|
|
44
|
+
"Filter by run type. Omit to return both:\n- `llm-unit-test`: single runs of an agent's tests\n- `llm-benchmark`: multi-model comparisons",
|
|
45
|
+
);
|
|
14
46
|
|
|
15
47
|
export type GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetRequest = {
|
|
16
48
|
agent_uuid: string;
|
|
49
|
+
type?: GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType | null | undefined;
|
|
50
|
+
status?: TaskStatus | null | undefined;
|
|
51
|
+
has_failures?: boolean | null | undefined;
|
|
52
|
+
limit?: number | null | undefined;
|
|
53
|
+
offset?: number | undefined;
|
|
17
54
|
xAPIKey?: string | null | undefined;
|
|
18
55
|
};
|
|
19
56
|
|
|
20
57
|
export const GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetRequest$zodSchema:
|
|
21
58
|
z.ZodType<GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetRequest> = z.object({
|
|
22
59
|
agent_uuid: z.string().describe("Agent whose test runs to list"),
|
|
60
|
+
has_failures: z.boolean().describe(
|
|
61
|
+
"Filter by whether the run has any failing test case or model. `true` returns only runs with failures (or errors), `false` only clean runs. Omit for both",
|
|
62
|
+
).nullable().optional(),
|
|
63
|
+
limit: z.int().describe(
|
|
64
|
+
"Maximum number of items to return. Omit for no limit (all items)",
|
|
65
|
+
).nullable().optional(),
|
|
66
|
+
offset: z.int().default(0).describe(
|
|
67
|
+
"Number of items to skip before returning results",
|
|
68
|
+
),
|
|
69
|
+
status: TaskStatus$zodSchema.nullable().optional().describe(
|
|
70
|
+
"Filter by run status. Omit for all statuses",
|
|
71
|
+
),
|
|
72
|
+
type: GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType$zodSchema
|
|
73
|
+
.nullable().optional().describe(
|
|
74
|
+
"Filter by run type. Omit to return both:\n- `llm-unit-test`: single runs of an agent's tests\n- `llm-benchmark`: multi-model comparisons",
|
|
75
|
+
),
|
|
23
76
|
xAPIKey: z.string().nullable().optional(),
|
|
24
77
|
});
|
|
25
78
|
|
|
26
79
|
export type GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetResponse =
|
|
27
|
-
|
|
|
80
|
+
| PaginatedResponseAgentTestRunListItem
|
|
28
81
|
| HTTPValidationError;
|
|
29
82
|
|
|
30
83
|
export const GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetResponse$zodSchema:
|
|
31
84
|
z.ZodType<GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetResponse> = z.union([
|
|
32
|
-
|
|
85
|
+
PaginatedResponseAgentTestRunListItem$zodSchema,
|
|
33
86
|
HTTPValidationError$zodSchema,
|
|
34
87
|
]);
|
|
@@ -8,12 +8,15 @@ import {
|
|
|
8
8
|
HTTPValidationError$zodSchema,
|
|
9
9
|
} from "./httpvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
PaginatedResponseTestListResponse,
|
|
12
|
+
PaginatedResponseTestListResponse$zodSchema,
|
|
13
|
+
} from "./paginatedresponsetestlistresponse.js";
|
|
14
14
|
|
|
15
15
|
export type GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetRequest = {
|
|
16
16
|
agent_uuid: string;
|
|
17
|
+
q?: string | null | undefined;
|
|
18
|
+
limit?: number | null | undefined;
|
|
19
|
+
offset?: number | undefined;
|
|
17
20
|
xAPIKey?: string | null | undefined;
|
|
18
21
|
};
|
|
19
22
|
|
|
@@ -21,16 +24,25 @@ export const GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetRequest$zodSch
|
|
|
21
24
|
z.ZodType<GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetRequest> = z
|
|
22
25
|
.object({
|
|
23
26
|
agent_uuid: z.string().describe("Agent whose linked tests to list"),
|
|
27
|
+
limit: z.int().describe(
|
|
28
|
+
"Maximum number of items to return. Omit for no limit (all items)",
|
|
29
|
+
).nullable().optional(),
|
|
30
|
+
offset: z.int().default(0).describe(
|
|
31
|
+
"Number of items to skip before returning results",
|
|
32
|
+
),
|
|
33
|
+
q: z.string().describe(
|
|
34
|
+
"Case-insensitive substring search on `name`. Blank is a no-op",
|
|
35
|
+
).nullable().optional(),
|
|
24
36
|
xAPIKey: z.string().nullable().optional(),
|
|
25
37
|
});
|
|
26
38
|
|
|
27
39
|
export type GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetResponse =
|
|
28
|
-
|
|
|
40
|
+
| PaginatedResponseTestListResponse
|
|
29
41
|
| HTTPValidationError;
|
|
30
42
|
|
|
31
43
|
export const GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetResponse$zodSchema:
|
|
32
44
|
z.ZodType<GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetResponse> = z
|
|
33
45
|
.union([
|
|
34
|
-
|
|
46
|
+
PaginatedResponseTestListResponse$zodSchema,
|
|
35
47
|
HTTPValidationError$zodSchema,
|
|
36
48
|
]);
|