scorecard-ai-mcp 1.0.0-alpha.7 → 1.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -30
- package/compat.d.mts +2 -0
- package/compat.d.mts.map +1 -1
- package/compat.d.ts +2 -0
- package/compat.d.ts.map +1 -1
- package/compat.js +7 -4
- package/compat.js.map +1 -1
- package/compat.mjs +8 -4
- package/compat.mjs.map +1 -1
- package/dynamic-tools.d.mts.map +1 -1
- package/dynamic-tools.d.ts.map +1 -1
- package/dynamic-tools.js +2 -1
- package/dynamic-tools.js.map +1 -1
- package/dynamic-tools.mjs +2 -1
- package/dynamic-tools.mjs.map +1 -1
- package/package.json +2 -2
- package/server.d.mts.map +1 -1
- package/server.d.ts.map +1 -1
- package/server.js +2 -2
- package/server.js.map +1 -1
- package/server.mjs +2 -2
- package/server.mjs.map +1 -1
- package/src/compat.ts +13 -4
- package/src/dynamic-tools.ts +2 -1
- package/src/server.ts +3 -2
- package/src/tools/index.ts +0 -2
- package/src/tools/records/create-records.ts +4 -4
- package/src/tools/testcases/create-testcases.ts +0 -2
- package/src/tools/testsets/create-testsets.ts +7 -7
- package/src/tools/testsets/update-testsets.ts +7 -7
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +0 -2
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +0 -2
- package/tools/index.mjs.map +1 -1
- package/tools/records/create-records.js +4 -4
- package/tools/records/create-records.js.map +1 -1
- package/tools/records/create-records.mjs +4 -4
- package/tools/records/create-records.mjs.map +1 -1
- package/tools/testcases/create-testcases.d.mts.map +1 -1
- package/tools/testcases/create-testcases.d.ts.map +1 -1
- package/tools/testcases/create-testcases.js +0 -1
- package/tools/testcases/create-testcases.js.map +1 -1
- package/tools/testcases/create-testcases.mjs +0 -1
- package/tools/testcases/create-testcases.mjs.map +1 -1
- package/tools/testsets/create-testsets.js +7 -7
- package/tools/testsets/create-testsets.js.map +1 -1
- package/tools/testsets/create-testsets.mjs +7 -7
- package/tools/testsets/create-testsets.mjs.map +1 -1
- package/tools/testsets/update-testsets.js +7 -7
- package/tools/testsets/update-testsets.js.map +1 -1
- package/tools/testsets/update-testsets.mjs +7 -7
- package/tools/testsets/update-testsets.mjs.map +1 -1
- package/src/tools/runs/update-runs.ts +0 -44
- package/tools/runs/update-runs.d.mts +0 -32
- package/tools/runs/update-runs.d.mts.map +0 -1
- package/tools/runs/update-runs.d.ts +0 -32
- package/tools/runs/update-runs.d.ts.map +0 -1
- package/tools/runs/update-runs.js +0 -41
- package/tools/runs/update-runs.js.map +0 -1
- package/tools/runs/update-runs.mjs +0 -37
- package/tools/runs/update-runs.mjs.map +0 -1
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
-
import type { Metadata } from "..//index.js";
|
|
3
|
-
import Scorecard from 'scorecard-ai';
|
|
4
|
-
export declare const metadata: Metadata;
|
|
5
|
-
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").APIPromise<Scorecard.Runs.RunUpdateResponse>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
metadata: Metadata;
|
|
9
|
-
tool: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
name: string;
|
|
12
|
-
inputSchema: {
|
|
13
|
-
[x: string]: unknown;
|
|
14
|
-
type: "object";
|
|
15
|
-
properties?: {
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
} | undefined;
|
|
18
|
-
};
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
annotations?: {
|
|
21
|
-
[x: string]: unknown;
|
|
22
|
-
title?: string | undefined;
|
|
23
|
-
readOnlyHint?: boolean | undefined;
|
|
24
|
-
destructiveHint?: boolean | undefined;
|
|
25
|
-
idempotentHint?: boolean | undefined;
|
|
26
|
-
openWorldHint?: boolean | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
};
|
|
29
|
-
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").APIPromise<Scorecard.Runs.RunUpdateResponse>;
|
|
30
|
-
};
|
|
31
|
-
export default _default;
|
|
32
|
-
//# sourceMappingURL=update-runs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-runs.d.ts","sourceRoot":"","sources":["../../src/tools/runs/update-runs.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,SAAS,MAAM,cAAc;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAItB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAwBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,wEAGnF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKpF,wBAA2C"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
-
exports.metadata = {
|
|
6
|
-
resource: 'runs',
|
|
7
|
-
operation: 'write',
|
|
8
|
-
tags: [],
|
|
9
|
-
};
|
|
10
|
-
exports.tool = {
|
|
11
|
-
name: 'update_runs',
|
|
12
|
-
description: 'Update the status of a Run.',
|
|
13
|
-
inputSchema: {
|
|
14
|
-
type: 'object',
|
|
15
|
-
properties: {
|
|
16
|
-
runId: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
},
|
|
19
|
-
status: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
description: 'The status of the Run.',
|
|
22
|
-
enum: [
|
|
23
|
-
'pending',
|
|
24
|
-
'awaiting_execution',
|
|
25
|
-
'running_execution',
|
|
26
|
-
'awaiting_scoring',
|
|
27
|
-
'running_scoring',
|
|
28
|
-
'awaiting_human_scoring',
|
|
29
|
-
'completed',
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
const handler = (client, args) => {
|
|
36
|
-
const { runId, ...body } = args;
|
|
37
|
-
return client.runs.update(runId, body);
|
|
38
|
-
};
|
|
39
|
-
exports.handler = handler;
|
|
40
|
-
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
41
|
-
//# sourceMappingURL=update-runs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-runs.js","sourceRoot":"","sources":["../../src/tools/runs/update-runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE;oBACJ,SAAS;oBACT,oBAAoB;oBACpB,mBAAmB;oBACnB,kBAAkB;oBAClB,iBAAiB;oBACjB,wBAAwB;oBACxB,WAAW;iBACZ;aACF;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAiB,EAAE,IAAyC,EAAE,EAAE;IACtF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACvC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export const metadata = {
|
|
3
|
-
resource: 'runs',
|
|
4
|
-
operation: 'write',
|
|
5
|
-
tags: [],
|
|
6
|
-
};
|
|
7
|
-
export const tool = {
|
|
8
|
-
name: 'update_runs',
|
|
9
|
-
description: 'Update the status of a Run.',
|
|
10
|
-
inputSchema: {
|
|
11
|
-
type: 'object',
|
|
12
|
-
properties: {
|
|
13
|
-
runId: {
|
|
14
|
-
type: 'string',
|
|
15
|
-
},
|
|
16
|
-
status: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
description: 'The status of the Run.',
|
|
19
|
-
enum: [
|
|
20
|
-
'pending',
|
|
21
|
-
'awaiting_execution',
|
|
22
|
-
'running_execution',
|
|
23
|
-
'awaiting_scoring',
|
|
24
|
-
'running_scoring',
|
|
25
|
-
'awaiting_human_scoring',
|
|
26
|
-
'completed',
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
export const handler = (client, args) => {
|
|
33
|
-
const { runId, ...body } = args;
|
|
34
|
-
return client.runs.update(runId, body);
|
|
35
|
-
};
|
|
36
|
-
export default { metadata, tool, handler };
|
|
37
|
-
//# sourceMappingURL=update-runs.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-runs.mjs","sourceRoot":"","sources":["../../src/tools/runs/update-runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE;oBACJ,SAAS;oBACT,oBAAoB;oBACpB,mBAAmB;oBACnB,kBAAkB;oBAClB,iBAAiB;oBACjB,wBAAwB;oBACxB,WAAW;iBACZ;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAiB,EAAE,IAAyC,EAAE,EAAE;IACtF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACvC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|