scorecard-ai-mcp 1.0.0-alpha.6 → 1.0.0-alpha.7
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 +32 -5
- package/dynamic-tools.d.mts +12 -0
- package/dynamic-tools.d.mts.map +1 -0
- package/dynamic-tools.d.ts +12 -0
- package/dynamic-tools.d.ts.map +1 -0
- package/dynamic-tools.js +133 -0
- package/dynamic-tools.js.map +1 -0
- package/dynamic-tools.mjs +130 -0
- package/dynamic-tools.mjs.map +1 -0
- package/index.js +15 -18
- package/index.js.map +1 -1
- package/index.mjs +17 -20
- package/index.mjs.map +1 -1
- package/options.d.mts +2 -0
- package/options.d.mts.map +1 -1
- package/options.d.ts +2 -0
- package/options.d.ts.map +1 -1
- package/options.js +17 -0
- package/options.js.map +1 -1
- package/options.mjs +17 -0
- package/options.mjs.map +1 -1
- package/package.json +13 -20
- package/server.d.mts +6 -1
- package/server.d.mts.map +1 -1
- package/server.d.ts +6 -1
- package/server.d.ts.map +1 -1
- package/server.js +20 -1
- package/server.js.map +1 -1
- package/server.mjs +21 -3
- package/server.mjs.map +1 -1
- package/src/dynamic-tools.ts +152 -0
- package/src/index.ts +19 -23
- package/src/options.ts +22 -0
- package/src/server.ts +33 -3
- package/src/tools/index.ts +5 -5
- package/src/tools/projects/create-projects.ts +36 -0
- package/src/tools/scores/upsert-scores.ts +40 -0
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +5 -4
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +5 -4
- package/tools/index.mjs.map +1 -1
- package/tools/projects/create-projects.d.mts +32 -0
- package/tools/projects/create-projects.d.mts.map +1 -0
- package/tools/projects/create-projects.d.ts +32 -0
- package/tools/projects/create-projects.d.ts.map +1 -0
- package/tools/projects/create-projects.js +33 -0
- package/tools/projects/create-projects.js.map +1 -0
- package/tools/projects/create-projects.mjs +29 -0
- package/tools/projects/create-projects.mjs.map +1 -0
- package/tools/projects/list-projects.d.mts +10 -2
- package/tools/projects/list-projects.d.mts.map +1 -1
- package/tools/projects/list-projects.d.ts +10 -2
- package/tools/projects/list-projects.d.ts.map +1 -1
- package/tools/records/create-records.d.mts +8 -0
- package/tools/records/create-records.d.mts.map +1 -1
- package/tools/records/create-records.d.ts +8 -0
- package/tools/records/create-records.d.ts.map +1 -1
- package/tools/runs/create-runs.d.mts +8 -0
- package/tools/runs/create-runs.d.mts.map +1 -1
- package/tools/runs/create-runs.d.ts +8 -0
- package/tools/runs/create-runs.d.ts.map +1 -1
- package/tools/runs/update-runs.d.mts +8 -0
- package/tools/runs/update-runs.d.mts.map +1 -1
- package/tools/runs/update-runs.d.ts +8 -0
- package/tools/runs/update-runs.d.ts.map +1 -1
- package/tools/scores/upsert-scores.d.mts +32 -0
- package/tools/scores/upsert-scores.d.mts.map +1 -0
- package/tools/scores/upsert-scores.d.ts +32 -0
- package/tools/scores/upsert-scores.d.ts.map +1 -0
- package/tools/scores/upsert-scores.js +35 -0
- package/tools/scores/upsert-scores.js.map +1 -0
- package/tools/scores/upsert-scores.mjs +31 -0
- package/tools/scores/upsert-scores.mjs.map +1 -0
- package/tools/system-configs/create-system-configs.d.mts +8 -0
- package/tools/system-configs/create-system-configs.d.mts.map +1 -1
- package/tools/system-configs/create-system-configs.d.ts +8 -0
- package/tools/system-configs/create-system-configs.d.ts.map +1 -1
- package/tools/system-configs/get-system-configs.d.mts +8 -0
- package/tools/system-configs/get-system-configs.d.mts.map +1 -1
- package/tools/system-configs/get-system-configs.d.ts +8 -0
- package/tools/system-configs/get-system-configs.d.ts.map +1 -1
- package/tools/system-configs/list-system-configs.d.mts +8 -0
- package/tools/system-configs/list-system-configs.d.mts.map +1 -1
- package/tools/system-configs/list-system-configs.d.ts +8 -0
- package/tools/system-configs/list-system-configs.d.ts.map +1 -1
- package/tools/systems/create-systems.d.mts +8 -0
- package/tools/systems/create-systems.d.mts.map +1 -1
- package/tools/systems/create-systems.d.ts +8 -0
- package/tools/systems/create-systems.d.ts.map +1 -1
- package/tools/systems/delete-systems.d.mts +8 -0
- package/tools/systems/delete-systems.d.mts.map +1 -1
- package/tools/systems/delete-systems.d.ts +8 -0
- package/tools/systems/delete-systems.d.ts.map +1 -1
- package/tools/systems/get-systems.d.mts +8 -0
- package/tools/systems/get-systems.d.mts.map +1 -1
- package/tools/systems/get-systems.d.ts +8 -0
- package/tools/systems/get-systems.d.ts.map +1 -1
- package/tools/systems/list-systems.d.mts +8 -0
- package/tools/systems/list-systems.d.mts.map +1 -1
- package/tools/systems/list-systems.d.ts +8 -0
- package/tools/systems/list-systems.d.ts.map +1 -1
- package/tools/systems/update-systems.d.mts +8 -0
- package/tools/systems/update-systems.d.mts.map +1 -1
- package/tools/systems/update-systems.d.ts +8 -0
- package/tools/systems/update-systems.d.ts.map +1 -1
- package/tools/testcases/create-testcases.d.mts +8 -0
- package/tools/testcases/create-testcases.d.mts.map +1 -1
- package/tools/testcases/create-testcases.d.ts +8 -0
- package/tools/testcases/create-testcases.d.ts.map +1 -1
- package/tools/testcases/delete-testcases.d.mts +8 -0
- package/tools/testcases/delete-testcases.d.mts.map +1 -1
- package/tools/testcases/delete-testcases.d.ts +8 -0
- package/tools/testcases/delete-testcases.d.ts.map +1 -1
- package/tools/testcases/get-testcases.d.mts +8 -0
- package/tools/testcases/get-testcases.d.mts.map +1 -1
- package/tools/testcases/get-testcases.d.ts +8 -0
- package/tools/testcases/get-testcases.d.ts.map +1 -1
- package/tools/testcases/list-testcases.d.mts +8 -0
- package/tools/testcases/list-testcases.d.mts.map +1 -1
- package/tools/testcases/list-testcases.d.ts +8 -0
- package/tools/testcases/list-testcases.d.ts.map +1 -1
- package/tools/testcases/update-testcases.d.mts +8 -0
- package/tools/testcases/update-testcases.d.mts.map +1 -1
- package/tools/testcases/update-testcases.d.ts +8 -0
- package/tools/testcases/update-testcases.d.ts.map +1 -1
- package/tools/testsets/create-testsets.d.mts +8 -0
- package/tools/testsets/create-testsets.d.mts.map +1 -1
- package/tools/testsets/create-testsets.d.ts +8 -0
- package/tools/testsets/create-testsets.d.ts.map +1 -1
- package/tools/testsets/delete-testsets.d.mts +8 -0
- package/tools/testsets/delete-testsets.d.mts.map +1 -1
- package/tools/testsets/delete-testsets.d.ts +8 -0
- package/tools/testsets/delete-testsets.d.ts.map +1 -1
- package/tools/testsets/get-testsets.d.mts +8 -0
- package/tools/testsets/get-testsets.d.mts.map +1 -1
- package/tools/testsets/get-testsets.d.ts +8 -0
- package/tools/testsets/get-testsets.d.ts.map +1 -1
- package/tools/testsets/list-testsets.d.mts +8 -0
- package/tools/testsets/list-testsets.d.mts.map +1 -1
- package/tools/testsets/list-testsets.d.ts +8 -0
- package/tools/testsets/list-testsets.d.ts.map +1 -1
- package/tools/testsets/update-testsets.d.mts +8 -0
- package/tools/testsets/update-testsets.d.mts.map +1 -1
- package/tools/testsets/update-testsets.d.ts +8 -0
- package/tools/testsets/update-testsets.d.ts.map +1 -1
- package/compat.test.d.mts +0 -2
- package/compat.test.d.mts.map +0 -1
- package/compat.test.d.ts +0 -2
- package/compat.test.d.ts.map +0 -1
- package/compat.test.js +0 -950
- package/compat.test.js.map +0 -1
- package/compat.test.mjs +0 -948
- package/compat.test.mjs.map +0 -1
- package/options.test.d.mts +0 -2
- package/options.test.d.mts.map +0 -1
- package/options.test.d.ts +0 -2
- package/options.test.d.ts.map +0 -1
- package/options.test.js +0 -154
- package/options.test.js.map +0 -1
- package/options.test.mjs +0 -152
- package/options.test.mjs.map +0 -1
- package/src/compat.test.ts +0 -1068
- package/src/options.test.ts +0 -193
package/src/options.ts
CHANGED
|
@@ -44,6 +44,8 @@ const CLIENT_PRESETS: Record<ClientType, ClientCapabilities> = {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export interface ParsedOptions {
|
|
47
|
+
includeDynamicTools: boolean | undefined;
|
|
48
|
+
includeAllTools: boolean | undefined;
|
|
47
49
|
filters: Filter[];
|
|
48
50
|
capabilities: ClientCapabilities;
|
|
49
51
|
list: boolean;
|
|
@@ -80,6 +82,18 @@ function parseCapabilityValue(cap: string): { name: Capability; value?: number }
|
|
|
80
82
|
|
|
81
83
|
export function parseOptions(): ParsedOptions {
|
|
82
84
|
const opts = yargs(hideBin(process.argv))
|
|
85
|
+
.option('tools', {
|
|
86
|
+
type: 'string',
|
|
87
|
+
array: true,
|
|
88
|
+
choices: ['dynamic', 'all'],
|
|
89
|
+
description: 'Use dynamic tools or all tools',
|
|
90
|
+
})
|
|
91
|
+
.option('no-tools', {
|
|
92
|
+
type: 'string',
|
|
93
|
+
array: true,
|
|
94
|
+
choices: ['dynamic', 'all'],
|
|
95
|
+
description: 'Do not use any dynamic or all tools',
|
|
96
|
+
})
|
|
83
97
|
.option('tool', {
|
|
84
98
|
type: 'string',
|
|
85
99
|
array: true,
|
|
@@ -262,7 +276,15 @@ export function parseOptions(): ParsedOptions {
|
|
|
262
276
|
}
|
|
263
277
|
}
|
|
264
278
|
|
|
279
|
+
const explicitTools = Boolean(argv.tools || argv.noTools);
|
|
280
|
+
const includeDynamicTools =
|
|
281
|
+
explicitTools ? argv.tools?.includes('dynamic') && !argv.noTools?.includes('dynamic') : undefined;
|
|
282
|
+
const includeAllTools =
|
|
283
|
+
explicitTools ? argv.tools?.includes('all') && !argv.noTools?.includes('all') : undefined;
|
|
284
|
+
|
|
265
285
|
return {
|
|
286
|
+
includeDynamicTools,
|
|
287
|
+
includeAllTools,
|
|
266
288
|
filters,
|
|
267
289
|
capabilities: clientCapabilities,
|
|
268
290
|
list: argv.list || false,
|
package/src/server.ts
CHANGED
|
@@ -2,17 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
|
-
import { endpoints, HandlerFunction } from './tools';
|
|
5
|
+
import { Endpoint, endpoints, HandlerFunction, query } from './tools';
|
|
6
6
|
import { CallToolRequestSchema, ListToolsRequestSchema, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
7
|
import Scorecard from 'scorecard-ai';
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
applyCompatibilityTransformations,
|
|
10
|
+
ClientCapabilities,
|
|
11
|
+
defaultClientCapabilities,
|
|
12
|
+
parseEmbeddedJSON,
|
|
13
|
+
} from './compat';
|
|
14
|
+
import { dynamicTools } from './dynamic-tools';
|
|
15
|
+
import { ParsedOptions } from './options';
|
|
9
16
|
export { endpoints } from './tools';
|
|
10
17
|
|
|
11
18
|
// Create server instance
|
|
12
19
|
export const server = new McpServer(
|
|
13
20
|
{
|
|
14
21
|
name: 'scorecard_ai_api',
|
|
15
|
-
version: '1.0.0-alpha.
|
|
22
|
+
version: '1.0.0-alpha.7',
|
|
16
23
|
},
|
|
17
24
|
{
|
|
18
25
|
capabilities: {
|
|
@@ -55,6 +62,29 @@ export function init(params: {
|
|
|
55
62
|
});
|
|
56
63
|
}
|
|
57
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Selects the tools to include in the MCP Server based on the provided options.
|
|
67
|
+
*/
|
|
68
|
+
export function selectTools(endpoints: Endpoint[], options: ParsedOptions) {
|
|
69
|
+
const filteredEndpoints = query(options.filters, endpoints);
|
|
70
|
+
|
|
71
|
+
const includedTools = filteredEndpoints;
|
|
72
|
+
|
|
73
|
+
if (options.includeAllTools && includedTools.length === 0) {
|
|
74
|
+
includedTools.push(...endpoints);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (options.includeDynamicTools) {
|
|
78
|
+
includedTools.push(...dynamicTools(endpoints));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (includedTools.length === 0) {
|
|
82
|
+
includedTools.push(...endpoints);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return applyCompatibilityTransformations(includedTools, options.capabilities);
|
|
86
|
+
}
|
|
87
|
+
|
|
58
88
|
/**
|
|
59
89
|
* Runs the provided handler with the given client and arguments.
|
|
60
90
|
*/
|
package/src/tools/index.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import Scorecard from 'scorecard-ai';
|
|
4
4
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
5
5
|
|
|
6
|
+
import create_projects from './projects/create-projects';
|
|
6
7
|
import list_projects from './projects/list-projects';
|
|
7
8
|
import create_testsets from './testsets/create-testsets';
|
|
8
9
|
import update_testsets from './testsets/update-testsets';
|
|
@@ -17,6 +18,7 @@ import get_testcases from './testcases/get-testcases';
|
|
|
17
18
|
import create_runs from './runs/create-runs';
|
|
18
19
|
import update_runs from './runs/update-runs';
|
|
19
20
|
import create_records from './records/create-records';
|
|
21
|
+
import upsert_scores from './scores/upsert-scores';
|
|
20
22
|
import create_systems from './systems/create-systems';
|
|
21
23
|
import update_systems from './systems/update-systems';
|
|
22
24
|
import list_systems from './systems/list-systems';
|
|
@@ -46,6 +48,7 @@ function addEndpoint(endpoint: Endpoint) {
|
|
|
46
48
|
endpoints.push(endpoint);
|
|
47
49
|
}
|
|
48
50
|
|
|
51
|
+
addEndpoint(create_projects);
|
|
49
52
|
addEndpoint(list_projects);
|
|
50
53
|
addEndpoint(create_testsets);
|
|
51
54
|
addEndpoint(update_testsets);
|
|
@@ -60,6 +63,7 @@ addEndpoint(get_testcases);
|
|
|
60
63
|
addEndpoint(create_runs);
|
|
61
64
|
addEndpoint(update_runs);
|
|
62
65
|
addEndpoint(create_records);
|
|
66
|
+
addEndpoint(upsert_scores);
|
|
63
67
|
addEndpoint(create_systems);
|
|
64
68
|
addEndpoint(update_systems);
|
|
65
69
|
addEndpoint(list_systems);
|
|
@@ -76,11 +80,7 @@ export type Filter = {
|
|
|
76
80
|
};
|
|
77
81
|
|
|
78
82
|
export function query(filters: Filter[], endpoints: Endpoint[]): Endpoint[] {
|
|
79
|
-
|
|
80
|
-
return endpoints;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const allExcludes = filters.every((filter) => filter.op === 'exclude');
|
|
83
|
+
const allExcludes = filters.length > 0 && filters.every((filter) => filter.op === 'exclude');
|
|
84
84
|
const unmatchedFilters = new Set(filters);
|
|
85
85
|
|
|
86
86
|
const filtered = endpoints.filter((endpoint: Endpoint) => {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import Scorecard from 'scorecard-ai';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'projects',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'create_projects',
|
|
15
|
+
description: 'Create a new Project.',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
description: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'The description of the Project.',
|
|
22
|
+
},
|
|
23
|
+
name: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: 'The name of the Project.',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const handler = (client: Scorecard, args: Record<string, unknown> | undefined) => {
|
|
32
|
+
const body = args as any;
|
|
33
|
+
return client.projects.create(body);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import Scorecard from 'scorecard-ai';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'scores',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'upsert_scores',
|
|
15
|
+
description:
|
|
16
|
+
'Create or update a Score for a given Record and MetricConfig. If a Score with the specified Record ID and MetricConfig ID already exists, it will be updated. Otherwise, a new Score will be created. The score provided should conform to the schema defined by the MetricConfig; otherwise, validation errors will be reported.',
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
recordId: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
},
|
|
23
|
+
metricConfigId: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
},
|
|
26
|
+
score: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
description:
|
|
29
|
+
"The score of the Record, as arbitrary JSON. This data should ideally conform to the output schema defined by the associated MetricConfig. If it doesn't, validation errors will be captured in the `validationErrors` field.",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const handler = (client: Scorecard, args: Record<string, unknown> | undefined) => {
|
|
36
|
+
const { metricConfigId, ...body } = args as any;
|
|
37
|
+
return client.scores.upsert(metricConfigId, body);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default { metadata, tool, handler };
|
package/tools/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"OAEO,SAAS,MAAM,cAAc;OAC7B,EAAE,IAAI,EAAE,MAAM,oCAAoC;
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"OAEO,SAAS,MAAM,cAAc;OAC7B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AA2BzD,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAE7G,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,EAAO,CAAC;AA+BxC,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;IAChD,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CA2B1E"}
|
package/tools/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"OAEO,SAAS,MAAM,cAAc;OAC7B,EAAE,IAAI,EAAE,MAAM,oCAAoC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"OAEO,SAAS,MAAM,cAAc;OAC7B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AA2BzD,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAE7G,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,EAAO,CAAC;AA+BxC,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;IAChD,EAAE,EAAE,SAAS,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CA2B1E"}
|
package/tools/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.endpoints = void 0;
|
|
8
8
|
exports.query = query;
|
|
9
|
+
const create_projects_1 = __importDefault(require("./projects/create-projects.js"));
|
|
9
10
|
const list_projects_1 = __importDefault(require("./projects/list-projects.js"));
|
|
10
11
|
const create_testsets_1 = __importDefault(require("./testsets/create-testsets.js"));
|
|
11
12
|
const update_testsets_1 = __importDefault(require("./testsets/update-testsets.js"));
|
|
@@ -20,6 +21,7 @@ const get_testcases_1 = __importDefault(require("./testcases/get-testcases.js"))
|
|
|
20
21
|
const create_runs_1 = __importDefault(require("./runs/create-runs.js"));
|
|
21
22
|
const update_runs_1 = __importDefault(require("./runs/update-runs.js"));
|
|
22
23
|
const create_records_1 = __importDefault(require("./records/create-records.js"));
|
|
24
|
+
const upsert_scores_1 = __importDefault(require("./scores/upsert-scores.js"));
|
|
23
25
|
const create_systems_1 = __importDefault(require("./systems/create-systems.js"));
|
|
24
26
|
const update_systems_1 = __importDefault(require("./systems/update-systems.js"));
|
|
25
27
|
const list_systems_1 = __importDefault(require("./systems/list-systems.js"));
|
|
@@ -32,6 +34,7 @@ exports.endpoints = [];
|
|
|
32
34
|
function addEndpoint(endpoint) {
|
|
33
35
|
exports.endpoints.push(endpoint);
|
|
34
36
|
}
|
|
37
|
+
addEndpoint(create_projects_1.default);
|
|
35
38
|
addEndpoint(list_projects_1.default);
|
|
36
39
|
addEndpoint(create_testsets_1.default);
|
|
37
40
|
addEndpoint(update_testsets_1.default);
|
|
@@ -46,6 +49,7 @@ addEndpoint(get_testcases_1.default);
|
|
|
46
49
|
addEndpoint(create_runs_1.default);
|
|
47
50
|
addEndpoint(update_runs_1.default);
|
|
48
51
|
addEndpoint(create_records_1.default);
|
|
52
|
+
addEndpoint(upsert_scores_1.default);
|
|
49
53
|
addEndpoint(create_systems_1.default);
|
|
50
54
|
addEndpoint(update_systems_1.default);
|
|
51
55
|
addEndpoint(list_systems_1.default);
|
|
@@ -55,10 +59,7 @@ addEndpoint(create_system_configs_1.default);
|
|
|
55
59
|
addEndpoint(list_system_configs_1.default);
|
|
56
60
|
addEndpoint(get_system_configs_1.default);
|
|
57
61
|
function query(filters, endpoints) {
|
|
58
|
-
|
|
59
|
-
return endpoints;
|
|
60
|
-
}
|
|
61
|
-
const allExcludes = filters.every((filter) => filter.op === 'exclude');
|
|
62
|
+
const allExcludes = filters.length > 0 && filters.every((filter) => filter.op === 'exclude');
|
|
62
63
|
const unmatchedFilters = new Set(filters);
|
|
63
64
|
const filtered = endpoints.filter((endpoint) => {
|
|
64
65
|
let included = false || allExcludes;
|
package/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;
|
|
1
|
+
{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AC,EAAE,CAChB,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,EAAU,EAAE,QAAkB;IACxD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,UAAU,CAAC,CAAC,CAAC;YAChB,MAAM,QAAQ,GAAG,GAAG,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC;YAC3E,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;YACnC,OAAO,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;QACnE,CAAC;QACD,KAAK,WAAW;YACd,OAAO,QAAQ,CAAC,QAAQ,CAAC,SAAS,KAAK,KAAK,CAAC;QAC/C,KAAK,KAAK;YACR,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChD,KAAK,MAAM;YACT,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC;IACxC,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAC7D,CAAC"}
|
package/tools/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import create_projects from "./projects/create-projects.mjs";
|
|
2
3
|
import list_projects from "./projects/list-projects.mjs";
|
|
3
4
|
import create_testsets from "./testsets/create-testsets.mjs";
|
|
4
5
|
import update_testsets from "./testsets/update-testsets.mjs";
|
|
@@ -13,6 +14,7 @@ import get_testcases from "./testcases/get-testcases.mjs";
|
|
|
13
14
|
import create_runs from "./runs/create-runs.mjs";
|
|
14
15
|
import update_runs from "./runs/update-runs.mjs";
|
|
15
16
|
import create_records from "./records/create-records.mjs";
|
|
17
|
+
import upsert_scores from "./scores/upsert-scores.mjs";
|
|
16
18
|
import create_systems from "./systems/create-systems.mjs";
|
|
17
19
|
import update_systems from "./systems/update-systems.mjs";
|
|
18
20
|
import list_systems from "./systems/list-systems.mjs";
|
|
@@ -25,6 +27,7 @@ export const endpoints = [];
|
|
|
25
27
|
function addEndpoint(endpoint) {
|
|
26
28
|
endpoints.push(endpoint);
|
|
27
29
|
}
|
|
30
|
+
addEndpoint(create_projects);
|
|
28
31
|
addEndpoint(list_projects);
|
|
29
32
|
addEndpoint(create_testsets);
|
|
30
33
|
addEndpoint(update_testsets);
|
|
@@ -39,6 +42,7 @@ addEndpoint(get_testcases);
|
|
|
39
42
|
addEndpoint(create_runs);
|
|
40
43
|
addEndpoint(update_runs);
|
|
41
44
|
addEndpoint(create_records);
|
|
45
|
+
addEndpoint(upsert_scores);
|
|
42
46
|
addEndpoint(create_systems);
|
|
43
47
|
addEndpoint(update_systems);
|
|
44
48
|
addEndpoint(list_systems);
|
|
@@ -48,10 +52,7 @@ addEndpoint(create_system_configs);
|
|
|
48
52
|
addEndpoint(list_system_configs);
|
|
49
53
|
addEndpoint(get_system_configs);
|
|
50
54
|
export function query(filters, endpoints) {
|
|
51
|
-
|
|
52
|
-
return endpoints;
|
|
53
|
-
}
|
|
54
|
-
const allExcludes = filters.every((filter) => filter.op === 'exclude');
|
|
55
|
+
const allExcludes = filters.length > 0 && filters.every((filter) => filter.op === 'exclude');
|
|
55
56
|
const unmatchedFilters = new Set(filters);
|
|
56
57
|
const filtered = endpoints.filter((endpoint) => {
|
|
57
58
|
let included = false || allExcludes;
|
package/tools/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/tools/index.ts"],"names":[],"mappings":"AAAA,sFAA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AAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,EAAU,EAAE,QAAkB;IACxD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,UAAU,CAAC,CAAC,CAAC;YAChB,MAAM,QAAQ,GAAG,GAAG,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC;YAC3E,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;YACnC,OAAO,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;QACnE,CAAC;QACD,KAAK,WAAW;YACd,OAAO,QAAQ,CAAC,QAAQ,CAAC,SAAS,KAAK,KAAK,CAAC;QAC/C,KAAK,KAAK;YACR,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAChD,KAAK,MAAM;YACT,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC;IACxC,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { Metadata } from "..//index.mjs";
|
|
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.Projects.Project>;
|
|
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.Projects.Project>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=create-projects.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-projects.d.mts","sourceRoot":"","sources":["../../src/tools/projects/create-projects.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,IAgBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,kEAGnF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKpF,wBAA2C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.Projects.Project>;
|
|
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.Projects.Project>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=create-projects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-projects.d.ts","sourceRoot":"","sources":["../../src/tools/projects/create-projects.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,IAgBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,kEAGnF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKpF,wBAA2C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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: 'projects',
|
|
7
|
+
operation: 'write',
|
|
8
|
+
tags: [],
|
|
9
|
+
};
|
|
10
|
+
exports.tool = {
|
|
11
|
+
name: 'create_projects',
|
|
12
|
+
description: 'Create a new Project.',
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
description: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'The description of the Project.',
|
|
19
|
+
},
|
|
20
|
+
name: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'The name of the Project.',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
const handler = (client, args) => {
|
|
28
|
+
const body = args;
|
|
29
|
+
return client.projects.create(body);
|
|
30
|
+
};
|
|
31
|
+
exports.handler = handler;
|
|
32
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
33
|
+
//# sourceMappingURL=create-projects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-projects.js","sourceRoot":"","sources":["../../src/tools/projects/create-projects.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAMzE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,MAAiB,EAAE,IAAyC,EAAE,EAAE;IACtF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export const metadata = {
|
|
3
|
+
resource: 'projects',
|
|
4
|
+
operation: 'write',
|
|
5
|
+
tags: [],
|
|
6
|
+
};
|
|
7
|
+
export const tool = {
|
|
8
|
+
name: 'create_projects',
|
|
9
|
+
description: 'Create a new Project.',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
description: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
description: 'The description of the Project.',
|
|
16
|
+
},
|
|
17
|
+
name: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description: 'The name of the Project.',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export const handler = (client, args) => {
|
|
25
|
+
const body = args;
|
|
26
|
+
return client.projects.create(body);
|
|
27
|
+
};
|
|
28
|
+
export default { metadata, tool, handler };
|
|
29
|
+
//# sourceMappingURL=create-projects.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-projects.mjs","sourceRoot":"","sources":["../../src/tools/projects/create-projects.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAMtF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAiB,EAAE,IAAyC,EAAE,EAAE;IACtF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { Metadata } from "..//index.mjs";
|
|
|
3
3
|
import Scorecard from 'scorecard-ai';
|
|
4
4
|
export declare const metadata: Metadata;
|
|
5
5
|
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").PagePromise<Scorecard.Projects.
|
|
6
|
+
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").PagePromise<Scorecard.Projects.ProjectsPaginatedResponse, Scorecard.Projects.Project>;
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
@@ -17,8 +17,16 @@ declare const _default: {
|
|
|
17
17
|
} | undefined;
|
|
18
18
|
};
|
|
19
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;
|
|
20
28
|
};
|
|
21
|
-
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").PagePromise<Scorecard.Projects.
|
|
29
|
+
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").PagePromise<Scorecard.Projects.ProjectsPaginatedResponse, Scorecard.Projects.Project>;
|
|
22
30
|
};
|
|
23
31
|
export default _default;
|
|
24
32
|
//# sourceMappingURL=list-projects.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.d.mts","sourceRoot":"","sources":["../../src/tools/projects/list-projects.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,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"list-projects.d.mts","sourceRoot":"","sources":["../../src/tools/projects/list-projects.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,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iHAGnF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKpF,wBAA2C"}
|
|
@@ -3,7 +3,7 @@ import type { Metadata } from "..//index.js";
|
|
|
3
3
|
import Scorecard from 'scorecard-ai';
|
|
4
4
|
export declare const metadata: Metadata;
|
|
5
5
|
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").PagePromise<Scorecard.Projects.
|
|
6
|
+
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").PagePromise<Scorecard.Projects.ProjectsPaginatedResponse, Scorecard.Projects.Project>;
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
@@ -17,8 +17,16 @@ declare const _default: {
|
|
|
17
17
|
} | undefined;
|
|
18
18
|
};
|
|
19
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;
|
|
20
28
|
};
|
|
21
|
-
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").PagePromise<Scorecard.Projects.
|
|
29
|
+
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").PagePromise<Scorecard.Projects.ProjectsPaginatedResponse, Scorecard.Projects.Project>;
|
|
22
30
|
};
|
|
23
31
|
export default _default;
|
|
24
32
|
//# sourceMappingURL=list-projects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-projects.d.ts","sourceRoot":"","sources":["../../src/tools/projects/list-projects.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,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"list-projects.d.ts","sourceRoot":"","sources":["../../src/tools/projects/list-projects.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,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iHAGnF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKpF,wBAA2C"}
|
|
@@ -17,6 +17,14 @@ declare const _default: {
|
|
|
17
17
|
} | undefined;
|
|
18
18
|
};
|
|
19
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;
|
|
20
28
|
};
|
|
21
29
|
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").APIPromise<Scorecard.Records.Record>;
|
|
22
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-records.d.mts","sourceRoot":"","sources":["../../src/tools/records/create-records.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,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGnF,CAAC
|
|
1
|
+
{"version":3,"file":"create-records.d.mts","sourceRoot":"","sources":["../../src/tools/records/create-records.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,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGnF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKpF,wBAA2C"}
|
|
@@ -17,6 +17,14 @@ declare const _default: {
|
|
|
17
17
|
} | undefined;
|
|
18
18
|
};
|
|
19
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;
|
|
20
28
|
};
|
|
21
29
|
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").APIPromise<Scorecard.Records.Record>;
|
|
22
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-records.d.ts","sourceRoot":"","sources":["../../src/tools/records/create-records.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,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGnF,CAAC
|
|
1
|
+
{"version":3,"file":"create-records.d.ts","sourceRoot":"","sources":["../../src/tools/records/create-records.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,IA2BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gEAGnF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKpF,wBAA2C"}
|
|
@@ -17,6 +17,14 @@ declare const _default: {
|
|
|
17
17
|
} | undefined;
|
|
18
18
|
};
|
|
19
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;
|
|
20
28
|
};
|
|
21
29
|
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").APIPromise<Scorecard.Runs.Run>;
|
|
22
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-runs.d.mts","sourceRoot":"","sources":["../../src/tools/runs/create-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,IA0BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,0DAGnF,CAAC
|
|
1
|
+
{"version":3,"file":"create-runs.d.mts","sourceRoot":"","sources":["../../src/tools/runs/create-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,IA0BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,0DAGnF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAH8B,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKpF,wBAA2C"}
|