@lightsage/mcp 0.4.28 → 0.4.30
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 +2 -2
- package/bin/mcp-server.js +1810 -664
- package/bin/mcp-server.js.map +47 -24
- package/esm/funcs/evalResultsList.d.ts +16 -0
- package/esm/funcs/evalResultsList.d.ts.map +1 -0
- package/esm/funcs/evalResultsList.js +91 -0
- package/esm/funcs/evalResultsList.js.map +1 -0
- package/esm/funcs/evalResultsSummary.d.ts +16 -0
- package/esm/funcs/evalResultsSummary.d.ts.map +1 -0
- package/esm/funcs/evalResultsSummary.js +87 -0
- package/esm/funcs/evalResultsSummary.js.map +1 -0
- package/esm/funcs/evalRunsList.d.ts +1 -1
- package/esm/funcs/evalRunsList.js +1 -1
- package/esm/funcs/promptsScheduleRetrieve.d.ts +15 -0
- package/esm/funcs/promptsScheduleRetrieve.d.ts.map +1 -0
- package/esm/funcs/promptsScheduleRetrieve.js +72 -0
- package/esm/funcs/promptsScheduleRetrieve.js.map +1 -0
- package/esm/funcs/promptsScheduleUpdate.d.ts +16 -0
- package/esm/funcs/promptsScheduleUpdate.d.ts.map +1 -0
- package/esm/funcs/promptsScheduleUpdate.js +83 -0
- package/esm/funcs/promptsScheduleUpdate.js.map +1 -0
- package/esm/funcs/promptsTargetsList.d.ts +1 -1
- package/esm/funcs/promptsTargetsList.js +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.d.ts.map +1 -1
- package/esm/mcp-server/server.js +9 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/evalResultsList.d.ts +7 -0
- package/esm/mcp-server/tools/evalResultsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalResultsList.js +35 -0
- package/esm/mcp-server/tools/evalResultsList.js.map +1 -0
- package/esm/mcp-server/tools/evalResultsSummary.d.ts +7 -0
- package/esm/mcp-server/tools/evalResultsSummary.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalResultsSummary.js +35 -0
- package/esm/mcp-server/tools/evalResultsSummary.js.map +1 -0
- package/esm/mcp-server/tools/evalRunsList.js +1 -1
- package/esm/mcp-server/tools/evalRunsList.js.map +1 -1
- package/esm/mcp-server/tools/promptsScheduleRetrieve.d.ts +3 -0
- package/esm/mcp-server/tools/promptsScheduleRetrieve.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsScheduleRetrieve.js +30 -0
- package/esm/mcp-server/tools/promptsScheduleRetrieve.js.map +1 -0
- package/esm/mcp-server/tools/promptsScheduleUpdate.d.ts +7 -0
- package/esm/mcp-server/tools/promptsScheduleUpdate.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsScheduleUpdate.js +35 -0
- package/esm/mcp-server/tools/promptsScheduleUpdate.js.map +1 -0
- package/esm/mcp-server/tools/promptsTargetsList.js +1 -1
- package/esm/mcp-server/tools/promptsTargetsList.js.map +1 -1
- package/esm/models/createv2evalrequest.js +1 -1
- package/esm/models/createv2evalrequest.js.map +1 -1
- package/esm/models/createv2evalrunrequest.js +1 -1
- package/esm/models/createv2evalrunrequest.js.map +1 -1
- package/esm/models/evaltemplateruntime.js +1 -1
- package/esm/models/evaltemplateruntime.js.map +1 -1
- package/esm/models/graderdefinition.d.ts +6 -0
- package/esm/models/graderdefinition.d.ts.map +1 -1
- package/esm/models/graderdefinition.js +28 -1
- package/esm/models/graderdefinition.js.map +1 -1
- package/esm/models/updatev2promptschedulerequest.d.ts +27 -0
- package/esm/models/updatev2promptschedulerequest.d.ts.map +1 -0
- package/esm/models/updatev2promptschedulerequest.js +27 -0
- package/esm/models/updatev2promptschedulerequest.js.map +1 -0
- package/esm/models/v2evalresultsfailedcheck.d.ts +9 -0
- package/esm/models/v2evalresultsfailedcheck.d.ts.map +1 -0
- package/esm/models/v2evalresultsfailedcheck.js +12 -0
- package/esm/models/v2evalresultsfailedcheck.js.map +1 -0
- package/esm/models/v2evalresultslistitem.d.ts +35 -0
- package/esm/models/v2evalresultslistitem.d.ts.map +1 -0
- package/esm/models/v2evalresultslistitem.js +34 -0
- package/esm/models/v2evalresultslistitem.js.map +1 -0
- package/esm/models/v2evalresultslistop.d.ts +33 -0
- package/esm/models/v2evalresultslistop.d.ts.map +1 -0
- package/esm/models/v2evalresultslistop.js +34 -0
- package/esm/models/v2evalresultslistop.js.map +1 -0
- package/esm/models/v2evalresultslistresponse.d.ts +10 -0
- package/esm/models/v2evalresultslistresponse.d.ts.map +1 -0
- package/esm/models/v2evalresultslistresponse.js +13 -0
- package/esm/models/v2evalresultslistresponse.js.map +1 -0
- package/esm/models/v2evalresultssummary.d.ts +14 -0
- package/esm/models/v2evalresultssummary.d.ts.map +1 -0
- package/esm/models/v2evalresultssummary.js +18 -0
- package/esm/models/v2evalresultssummary.js.map +1 -0
- package/esm/models/v2evalresultssummaryagent.d.ts +9 -0
- package/esm/models/v2evalresultssummaryagent.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryagent.js +12 -0
- package/esm/models/v2evalresultssummaryagent.js.map +1 -0
- package/esm/models/v2evalresultssummaryeval.d.ts +13 -0
- package/esm/models/v2evalresultssummaryeval.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryeval.js +16 -0
- package/esm/models/v2evalresultssummaryeval.js.map +1 -0
- package/esm/models/v2evalresultssummaryevalagent.d.ts +9 -0
- package/esm/models/v2evalresultssummaryevalagent.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryevalagent.js +12 -0
- package/esm/models/v2evalresultssummaryevalagent.js.map +1 -0
- package/esm/models/v2evalresultssummaryfigures.d.ts +12 -0
- package/esm/models/v2evalresultssummaryfigures.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryfigures.js +15 -0
- package/esm/models/v2evalresultssummaryfigures.js.map +1 -0
- package/esm/models/v2evalresultssummaryrange.d.ts +10 -0
- package/esm/models/v2evalresultssummaryrange.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryrange.js +13 -0
- package/esm/models/v2evalresultssummaryrange.js.map +1 -0
- package/esm/models/v2evalresultssummaryretrieveop.d.ts +11 -0
- package/esm/models/v2evalresultssummaryretrieveop.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryretrieveop.js +17 -0
- package/esm/models/v2evalresultssummaryretrieveop.js.map +1 -0
- package/esm/models/v2promptrunfrequency.d.ts +40 -0
- package/esm/models/v2promptrunfrequency.d.ts.map +1 -0
- package/esm/models/v2promptrunfrequency.js +38 -0
- package/esm/models/v2promptrunfrequency.js.map +1 -0
- package/esm/models/v2promptrunfrequencyinput.d.ts +47 -0
- package/esm/models/v2promptrunfrequencyinput.d.ts.map +1 -0
- package/esm/models/v2promptrunfrequencyinput.js +45 -0
- package/esm/models/v2promptrunfrequencyinput.js.map +1 -0
- package/esm/models/v2promptrunjobresponse.d.ts +1 -1
- package/esm/models/v2promptschedule.d.ts +31 -0
- package/esm/models/v2promptschedule.d.ts.map +1 -0
- package/esm/models/v2promptschedule.js +29 -0
- package/esm/models/v2promptschedule.js.map +1 -0
- package/esm/models/v2promptscheduleupdateop.d.ts +6 -0
- package/esm/models/v2promptscheduleupdateop.d.ts.map +1 -0
- package/esm/models/v2promptscheduleupdateop.js +12 -0
- package/esm/models/v2promptscheduleupdateop.js.map +1 -0
- package/esm/models/v2prompttarget.d.ts +6 -2
- package/esm/models/v2prompttarget.d.ts.map +1 -1
- package/esm/models/v2prompttarget.js +5 -3
- package/esm/models/v2prompttarget.js.map +1 -1
- package/esm/models/v2prompttargetinput.d.ts +10 -6
- package/esm/models/v2prompttargetinput.d.ts.map +1 -1
- package/esm/models/v2prompttargetinput.js +9 -6
- package/esm/models/v2prompttargetinput.js.map +1 -1
- package/esm/models/v2setupcommandoutput.js +1 -1
- package/esm/models/v2setupcommandoutput.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +18 -2
- package/esm/tool-names.js.map +1 -1
- package/lib/feedback.js +2 -2
- package/lib/tool-overrides.js +196 -8
- package/package.json +1 -1
- package/src/funcs/evalResultsList.ts +153 -0
- package/src/funcs/evalResultsSummary.ts +150 -0
- package/src/funcs/evalRunsList.ts +1 -1
- package/src/funcs/promptsScheduleRetrieve.ts +124 -0
- package/src/funcs/promptsScheduleUpdate.ts +145 -0
- package/src/funcs/promptsTargetsList.ts +1 -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 +9 -1
- package/src/mcp-server/tools/evalResultsList.ts +43 -0
- package/src/mcp-server/tools/evalResultsSummary.ts +43 -0
- package/src/mcp-server/tools/evalRunsList.ts +1 -1
- package/src/mcp-server/tools/promptsScheduleRetrieve.ts +36 -0
- package/src/mcp-server/tools/promptsScheduleUpdate.ts +43 -0
- package/src/mcp-server/tools/promptsTargetsList.ts +1 -1
- package/src/models/createv2evalrequest.ts +1 -1
- package/src/models/createv2evalrunrequest.ts +1 -1
- package/src/models/evaltemplateruntime.ts +1 -1
- package/src/models/graderdefinition.ts +53 -19
- package/src/models/updatev2promptschedulerequest.ts +56 -0
- package/src/models/v2evalresultsfailedcheck.ts +24 -0
- package/src/models/v2evalresultslistitem.ts +70 -0
- package/src/models/v2evalresultslistop.ts +74 -0
- package/src/models/v2evalresultslistresponse.ts +28 -0
- package/src/models/v2evalresultssummary.ts +43 -0
- package/src/models/v2evalresultssummaryagent.ts +26 -0
- package/src/models/v2evalresultssummaryeval.ts +38 -0
- package/src/models/v2evalresultssummaryevalagent.ts +26 -0
- package/src/models/v2evalresultssummaryfigures.ts +38 -0
- package/src/models/v2evalresultssummaryrange.ts +26 -0
- package/src/models/v2evalresultssummaryretrieveop.ts +40 -0
- package/src/models/v2promptrunfrequency.ts +78 -0
- package/src/models/v2promptrunfrequencyinput.ts +76 -0
- package/src/models/v2promptschedule.ts +60 -0
- package/src/models/v2promptscheduleupdateop.ts +25 -0
- package/src/models/v2prompttarget.ts +8 -4
- package/src/models/v2prompttargetinput.ts +18 -11
- package/src/models/v2setupcommandoutput.ts +1 -1
- package/src/tool-names.ts +18 -2
- package/test/tool-overrides.test.js +121 -3
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ccc761f156bf
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import {
|
|
23
|
+
UpdateV2PromptScheduleRequest,
|
|
24
|
+
UpdateV2PromptScheduleRequest$zodSchema,
|
|
25
|
+
} from "../models/updatev2promptschedulerequest.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Update Prompt Schedule
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Turns scheduled prompt runs on or off, sets the organization's default frequency, and sets answer engines or coding-agent harnesses differently from it. Only what you send changes. Daily is recommended: running less often leaves less data to analyze and work out how to improve. Choose which engines and agents run each topic's prompts with `PUT /v2/prompts/targets`.
|
|
34
|
+
*/
|
|
35
|
+
export function promptsScheduleUpdate(
|
|
36
|
+
client$: LightsageMcpCore,
|
|
37
|
+
request: UpdateV2PromptScheduleRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
Response,
|
|
42
|
+
| APIError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client$,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client$: LightsageMcpCore,
|
|
60
|
+
request: UpdateV2PromptScheduleRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
Response,
|
|
66
|
+
| APIError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) => UpdateV2PromptScheduleRequest$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
87
|
+
const path$ = pathToFunc("/v2/prompts/schedule")();
|
|
88
|
+
|
|
89
|
+
const headers$ = new Headers(compactMap({
|
|
90
|
+
"Content-Type": "application/json",
|
|
91
|
+
Accept: "application/json",
|
|
92
|
+
}));
|
|
93
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
94
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
95
|
+
|
|
96
|
+
const context = {
|
|
97
|
+
options: client$._options,
|
|
98
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
99
|
+
operationID: "v2_prompt_schedule_update",
|
|
100
|
+
oAuth2Scopes: null,
|
|
101
|
+
resolvedSecurity: requestSecurity,
|
|
102
|
+
securitySource: client$._options.security,
|
|
103
|
+
retryConfig: options?.retries
|
|
104
|
+
|| client$._options.retryConfig
|
|
105
|
+
|| { strategy: "none" },
|
|
106
|
+
retryCodes: options?.retryCodes || [
|
|
107
|
+
"429",
|
|
108
|
+
"500",
|
|
109
|
+
"502",
|
|
110
|
+
"503",
|
|
111
|
+
"504",
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const requestRes = client$._createRequest(context, {
|
|
116
|
+
security: requestSecurity,
|
|
117
|
+
method: "PATCH",
|
|
118
|
+
baseURL: options?.serverURL,
|
|
119
|
+
path: path$,
|
|
120
|
+
headers: headers$,
|
|
121
|
+
body: body$,
|
|
122
|
+
userAgent: client$._options.userAgent,
|
|
123
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
124
|
+
|| -1,
|
|
125
|
+
}, options);
|
|
126
|
+
if (!requestRes.ok) {
|
|
127
|
+
return [requestRes, { status: "invalid" }];
|
|
128
|
+
}
|
|
129
|
+
const req$ = requestRes.value;
|
|
130
|
+
|
|
131
|
+
const doResult = await client$._do(req$, {
|
|
132
|
+
context,
|
|
133
|
+
errorCodes: [],
|
|
134
|
+
retryConfig: context.retryConfig,
|
|
135
|
+
retryCodes: context.retryCodes,
|
|
136
|
+
});
|
|
137
|
+
if (!doResult.ok) {
|
|
138
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
139
|
+
}
|
|
140
|
+
return [doResult, {
|
|
141
|
+
status: "complete",
|
|
142
|
+
"request": req$,
|
|
143
|
+
response: doResult.value,
|
|
144
|
+
}];
|
|
145
|
+
}
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* List Targets
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic
|
|
33
|
+
* Returns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic. Provide `topic_id` to list one topic's targets. How often each one runs is set with `PATCH /v2/prompts/schedule`.
|
|
34
34
|
*/
|
|
35
35
|
export function promptsTargetsList(
|
|
36
36
|
client$: LightsageMcpCore,
|
package/src/landing-page.ts
CHANGED
|
@@ -931,7 +931,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
931
931
|
<h1>Instructions</h1>
|
|
932
932
|
<p>One-click installation for Claude Desktop users</p>
|
|
933
933
|
<div class="instruction-item">
|
|
934
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.
|
|
934
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.30/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
935
935
|
📥 Download MCP Bundle
|
|
936
936
|
</a>
|
|
937
937
|
</div>
|
package/src/lib/config.ts
CHANGED
|
@@ -66,7 +66,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
66
66
|
export const SDK_METADATA = {
|
|
67
67
|
language: "typescript",
|
|
68
68
|
openapiDocVersion: "1.0.0",
|
|
69
|
-
sdkVersion: "0.4.
|
|
69
|
+
sdkVersion: "0.4.30",
|
|
70
70
|
genVersion: "2.948.4",
|
|
71
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
71
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.30 2.948.4 1.0.0 @lightsage/mcp",
|
|
72
72
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -35,6 +35,8 @@ import { tool$agentPreferenceHeadToHeadRetrieve } from "./tools/agentPreferenceH
|
|
|
35
35
|
import { tool$agentsList } from "./tools/agentsList.js";
|
|
36
36
|
import { tool$clIsList } from "./tools/clIsList.js";
|
|
37
37
|
import { tool$environmentsList } from "./tools/environmentsList.js";
|
|
38
|
+
import { tool$evalResultsList } from "./tools/evalResultsList.js";
|
|
39
|
+
import { tool$evalResultsSummary } from "./tools/evalResultsSummary.js";
|
|
38
40
|
import { tool$evalRunsList } from "./tools/evalRunsList.js";
|
|
39
41
|
import { tool$evalsBatchCreate } from "./tools/evalsBatchCreate.js";
|
|
40
42
|
import { tool$evalsCancel } from "./tools/evalsCancel.js";
|
|
@@ -81,6 +83,8 @@ import { tool$promptsRunCancel } from "./tools/promptsRunCancel.js";
|
|
|
81
83
|
import { tool$promptsRunsList } from "./tools/promptsRunsList.js";
|
|
82
84
|
import { tool$promptsRunsRetrieve } from "./tools/promptsRunsRetrieve.js";
|
|
83
85
|
import { tool$promptsRunStatus } from "./tools/promptsRunStatus.js";
|
|
86
|
+
import { tool$promptsScheduleRetrieve } from "./tools/promptsScheduleRetrieve.js";
|
|
87
|
+
import { tool$promptsScheduleUpdate } from "./tools/promptsScheduleUpdate.js";
|
|
84
88
|
import { tool$promptsTagsList } from "./tools/promptsTagsList.js";
|
|
85
89
|
import { tool$promptsTargetsList } from "./tools/promptsTargetsList.js";
|
|
86
90
|
import { tool$promptsTargetsSet } from "./tools/promptsTargetsSet.js";
|
|
@@ -128,7 +132,7 @@ export function createMCPServer(deps: {
|
|
|
128
132
|
sizes: ["any"],
|
|
129
133
|
}],
|
|
130
134
|
name: "LightsageMcp",
|
|
131
|
-
version: "0.4.
|
|
135
|
+
version: "0.4.30",
|
|
132
136
|
});
|
|
133
137
|
|
|
134
138
|
const getClient = deps.getSDK || (() =>
|
|
@@ -189,6 +193,8 @@ export function createMCPServer(deps: {
|
|
|
189
193
|
tool(tool$promptsTopicsDelete);
|
|
190
194
|
tool(tool$promptsTargetsList);
|
|
191
195
|
tool(tool$promptsTargetsSet);
|
|
196
|
+
tool(tool$promptsScheduleRetrieve);
|
|
197
|
+
tool(tool$promptsScheduleUpdate);
|
|
192
198
|
tool(tool$promptsRunsList);
|
|
193
199
|
tool(tool$promptsRunsRetrieve);
|
|
194
200
|
tool(tool$promptsRetrieve);
|
|
@@ -244,6 +250,8 @@ export function createMCPServer(deps: {
|
|
|
244
250
|
tool(tool$evalTemplatesUpdate);
|
|
245
251
|
tool(tool$evalTemplatesDelete);
|
|
246
252
|
tool(tool$evalRunsList);
|
|
253
|
+
tool(tool$evalResultsSummary);
|
|
254
|
+
tool(tool$evalResultsList);
|
|
247
255
|
tool(tool$agentPreferenceCompetitorsList);
|
|
248
256
|
tool(tool$agentPreferenceHeadToHeadRetrieve);
|
|
249
257
|
tool(tool$agentPreferenceEvalsList);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d0d834ccb2fd
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { evalResultsList } from "../../funcs/evalResultsList.js";
|
|
7
|
+
import { V2EvalResultsListRequest$zodSchema } from "../../models/v2evalresultslistop.js";
|
|
8
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
|
+
|
|
10
|
+
const args = {
|
|
11
|
+
request: V2EvalResultsListRequest$zodSchema.optional(),
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const tool$evalResultsList: ToolDefinition<typeof args> = {
|
|
15
|
+
name: "eval-results-list",
|
|
16
|
+
description: `List Results
|
|
17
|
+
|
|
18
|
+
Lists eval results across runs, newest first: one per attempt by one agent, with the checks the judge failed and its reasons. Filter by \`eval_id\`, \`agent\` and \`result\` (use \`result=failed\` to see why evals fail). Each result has a \`run_id\` to pass to \`GET /v2/eval-runs/{run_id}/trace\` for the agent's step-by-step log. For totals across evals and agents, use \`GET /v2/eval-results/summary\` first.`,
|
|
19
|
+
annotations: {
|
|
20
|
+
"title": "",
|
|
21
|
+
"destructiveHint": false,
|
|
22
|
+
"idempotentHint": false,
|
|
23
|
+
"openWorldHint": false,
|
|
24
|
+
"readOnlyHint": true,
|
|
25
|
+
},
|
|
26
|
+
args,
|
|
27
|
+
tool: async (client, args, ctx) => {
|
|
28
|
+
const [result] = await evalResultsList(
|
|
29
|
+
client,
|
|
30
|
+
args.request,
|
|
31
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
32
|
+
).$inspect();
|
|
33
|
+
|
|
34
|
+
if (!result.ok) {
|
|
35
|
+
return {
|
|
36
|
+
content: [{ type: "text", text: result.error.message }],
|
|
37
|
+
isError: true,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return formatResult(result.value);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 119437daa863
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { evalResultsSummary } from "../../funcs/evalResultsSummary.js";
|
|
7
|
+
import { V2EvalResultsSummaryRetrieveRequest$zodSchema } from "../../models/v2evalresultssummaryretrieveop.js";
|
|
8
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
|
+
|
|
10
|
+
const args = {
|
|
11
|
+
request: V2EvalResultsSummaryRetrieveRequest$zodSchema.optional(),
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const tool$evalResultsSummary: ToolDefinition<typeof args> = {
|
|
15
|
+
name: "eval-results-summary",
|
|
16
|
+
description: `Retrieve Summary
|
|
17
|
+
|
|
18
|
+
Start here for any question about how evals are doing. Returns, in one call, totals for the last \`days\` days and the same number of days before: for every eval and every agent (harness and model), the attempts, pass rate, average agent time and average tool calls, and how the pass rate changed. Answers which evals got worse and which agents fail most without retrieving runs one at a time. To see the individual results behind these figures and the judge's reasons, use \`GET /v2/eval-results\`.`,
|
|
19
|
+
annotations: {
|
|
20
|
+
"title": "",
|
|
21
|
+
"destructiveHint": false,
|
|
22
|
+
"idempotentHint": false,
|
|
23
|
+
"openWorldHint": false,
|
|
24
|
+
"readOnlyHint": true,
|
|
25
|
+
},
|
|
26
|
+
args,
|
|
27
|
+
tool: async (client, args, ctx) => {
|
|
28
|
+
const [result] = await evalResultsSummary(
|
|
29
|
+
client,
|
|
30
|
+
args.request,
|
|
31
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
32
|
+
).$inspect();
|
|
33
|
+
|
|
34
|
+
if (!result.ok) {
|
|
35
|
+
return {
|
|
36
|
+
content: [{ type: "text", text: result.error.message }],
|
|
37
|
+
isError: true,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return formatResult(result.value);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -15,7 +15,7 @@ export const tool$evalRunsList: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "eval-runs-list",
|
|
16
16
|
description: `List Runs
|
|
17
17
|
|
|
18
|
-
Returns custom eval runs, ordered newest first, with lifecycle state and progress. Includes scheduled, onboarding, and pull request runs and runs started in the Lightsage app, as well as runs started through \`POST /v2/eval-runs
|
|
18
|
+
Returns custom eval runs, ordered newest first, with lifecycle state and progress. Includes scheduled, onboarding, and pull request runs and runs started in the Lightsage app, as well as runs started through \`POST /v2/eval-runs\`. This lists runs and their status only: to see how evals did across runs, use \`GET /v2/eval-results/summary\` and \`GET /v2/eval-results\` instead of retrieving runs one at a time.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5f4d79b973d5
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { promptsScheduleRetrieve } from "../../funcs/promptsScheduleRetrieve.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
export const tool$promptsScheduleRetrieve: ToolDefinition = {
|
|
10
|
+
name: "prompts-schedule-retrieve",
|
|
11
|
+
description: `Get Prompt Schedule
|
|
12
|
+
|
|
13
|
+
Returns whether scheduled prompt runs are on, when the daily run starts, the organization's default frequency, and how often each answer engine and coding-agent harness runs. The same settings as Settings > Schedules in the app.`,
|
|
14
|
+
annotations: {
|
|
15
|
+
"title": "",
|
|
16
|
+
"destructiveHint": false,
|
|
17
|
+
"idempotentHint": false,
|
|
18
|
+
"openWorldHint": false,
|
|
19
|
+
"readOnlyHint": true,
|
|
20
|
+
},
|
|
21
|
+
tool: async (client, ctx) => {
|
|
22
|
+
const [result] = await promptsScheduleRetrieve(
|
|
23
|
+
client,
|
|
24
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
25
|
+
).$inspect();
|
|
26
|
+
|
|
27
|
+
if (!result.ok) {
|
|
28
|
+
return {
|
|
29
|
+
content: [{ type: "text", text: result.error.message }],
|
|
30
|
+
isError: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return formatResult(result.value);
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: af8ab5a1fbf5
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { promptsScheduleUpdate } from "../../funcs/promptsScheduleUpdate.js";
|
|
7
|
+
import { UpdateV2PromptScheduleRequest$zodSchema } from "../../models/updatev2promptschedulerequest.js";
|
|
8
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
|
+
|
|
10
|
+
const args = {
|
|
11
|
+
request: UpdateV2PromptScheduleRequest$zodSchema,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const tool$promptsScheduleUpdate: ToolDefinition<typeof args> = {
|
|
15
|
+
name: "prompts-schedule-update",
|
|
16
|
+
description: `Update Prompt Schedule
|
|
17
|
+
|
|
18
|
+
Turns scheduled prompt runs on or off, sets the organization's default frequency, and sets answer engines or coding-agent harnesses differently from it. Only what you send changes. Daily is recommended: running less often leaves less data to analyze and work out how to improve. Choose which engines and agents run each topic's prompts with \`PUT /v2/prompts/targets\`.`,
|
|
19
|
+
annotations: {
|
|
20
|
+
"title": "",
|
|
21
|
+
"destructiveHint": false,
|
|
22
|
+
"idempotentHint": false,
|
|
23
|
+
"openWorldHint": false,
|
|
24
|
+
"readOnlyHint": false,
|
|
25
|
+
},
|
|
26
|
+
args,
|
|
27
|
+
tool: async (client, args, ctx) => {
|
|
28
|
+
const [result] = await promptsScheduleUpdate(
|
|
29
|
+
client,
|
|
30
|
+
args.request,
|
|
31
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
32
|
+
).$inspect();
|
|
33
|
+
|
|
34
|
+
if (!result.ok) {
|
|
35
|
+
return {
|
|
36
|
+
content: [{ type: "text", text: result.error.message }],
|
|
37
|
+
isError: true,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return formatResult(result.value);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -15,7 +15,7 @@ export const tool$promptsTargetsList: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "prompts-targets-list",
|
|
16
16
|
description: `List Targets
|
|
17
17
|
|
|
18
|
-
Returns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic
|
|
18
|
+
Returns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic. Provide \`topic_id\` to list one topic's targets. How often each one runs is set with \`PATCH /v2/prompts/schedule\`.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -85,7 +85,7 @@ export const CreateV2EvalRequest$zodSchema: z.ZodType<CreateV2EvalRequest> = z
|
|
|
85
85
|
"Requested web-retrieval behavior for an eval run.",
|
|
86
86
|
),
|
|
87
87
|
setup_commands: z.array(z.string()).optional().describe(
|
|
88
|
-
"Shell commands run
|
|
88
|
+
"Shell commands run one after another before the agent starts. They run in the folder the agent starts in, so `./` is the agent's project folder. New files and folders a command creates directly in `~` also appear in the agent's home folder; files added inside a folder `~` already has, such as `~/.config`, do not. CLI clients expose repeatable `--setup-command`.",
|
|
89
89
|
),
|
|
90
90
|
tags: z.array(z.string()).optional().describe(
|
|
91
91
|
"Optional labels for organizing the eval. CLI clients may expose this string array as a repeatable `--tag` flag.",
|
|
@@ -106,7 +106,7 @@ export const CreateV2EvalRunRequest$zodSchema: z.ZodType<
|
|
|
106
106
|
"Web-retrieval policy for this launch. Overrides the selected configuration or saved eval when provided; direct runs default to `default`.",
|
|
107
107
|
),
|
|
108
108
|
setup_commands: z.array(z.string()).nullable().optional().describe(
|
|
109
|
-
"Shell commands run
|
|
109
|
+
"Shell commands run one after another before the agent starts. They run in the folder the agent starts in, so `./` is the agent's project folder. New files and folders a command creates directly in `~` also appear in the agent's home folder; files added inside a folder `~` already has, such as `~/.config`, do not. In saved mode, an explicit empty array disables saved setup commands for this launch. CLI clients expose repeatable `--setup-command`.",
|
|
110
110
|
),
|
|
111
111
|
skill_ids: z.array(z.string()).optional().describe(
|
|
112
112
|
"Direct create-and-run form only. Reusable skill IDs from `GET /v2/skills` to install before the agent starts.",
|
|
@@ -53,7 +53,7 @@ export const EvalTemplateRuntime$zodSchema: z.ZodType<EvalTemplateRuntime> = z
|
|
|
53
53
|
"Requested web-retrieval behavior for an eval run.",
|
|
54
54
|
),
|
|
55
55
|
setup_commands: z.array(z.string()).optional().describe(
|
|
56
|
-
"Shell commands run before each eval attempt, in order.",
|
|
56
|
+
"Shell commands run before each eval attempt, in order, in the folder the agent starts in, so `./` is the agent's project folder. New files and folders a command creates directly in `~` also appear in the agent's home folder.",
|
|
57
57
|
),
|
|
58
58
|
skill_ids: z.array(z.string()).optional().describe(
|
|
59
59
|
"Reusable skill IDs copied into each created eval.",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import { collectExtraKeys as collectExtraKeys$ } from "../lib/schemas.js";
|
|
7
8
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
9
|
|
|
9
10
|
export const Metric = {
|
|
@@ -26,6 +27,8 @@ export type GraderDefinition = {
|
|
|
26
27
|
needles?: Array<string> | null | undefined;
|
|
27
28
|
pattern?: string | null | undefined;
|
|
28
29
|
case_sensitive?: boolean | undefined;
|
|
30
|
+
path?: string | null | undefined;
|
|
31
|
+
expected?: number | null | undefined;
|
|
29
32
|
criteria?: string | null | undefined;
|
|
30
33
|
plugin?: string | null | undefined;
|
|
31
34
|
metric?: Metric | null | undefined;
|
|
@@ -33,24 +36,55 @@ export type GraderDefinition = {
|
|
|
33
36
|
max_value?: number | null | undefined;
|
|
34
37
|
weight?: number | undefined;
|
|
35
38
|
blocking?: boolean | undefined;
|
|
39
|
+
AdditionalProperties?: { [k: string]: any };
|
|
36
40
|
};
|
|
37
41
|
|
|
38
|
-
export const GraderDefinition$zodSchema: z.ZodType<GraderDefinition> =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
)
|
|
42
|
+
export const GraderDefinition$zodSchema: z.ZodType<GraderDefinition> =
|
|
43
|
+
collectExtraKeys$(
|
|
44
|
+
z.object({
|
|
45
|
+
blocking: z.boolean().default(false).describe(
|
|
46
|
+
"Whether a failed or missing result from this grader fails the entire eval regardless of the aggregate score.",
|
|
47
|
+
),
|
|
48
|
+
case_sensitive: z.boolean().default(false),
|
|
49
|
+
criteria: z.string().nullable().optional(),
|
|
50
|
+
expected: z.int().nullable().optional(),
|
|
51
|
+
max_value: z.number().nullable().optional(),
|
|
52
|
+
metric: Metric$zodSchema.nullable().optional(),
|
|
53
|
+
min_score: z.number().nullable().optional(),
|
|
54
|
+
name: z.string(),
|
|
55
|
+
needle: z.string().nullable().optional(),
|
|
56
|
+
needles: z.array(z.string()).nullable().optional(),
|
|
57
|
+
path: z.string().nullable().optional(),
|
|
58
|
+
pattern: z.string().nullable().optional(),
|
|
59
|
+
plugin: z.string().nullable().optional(),
|
|
60
|
+
type: z.string(),
|
|
61
|
+
weight: z.number().default(1),
|
|
62
|
+
}).catchall(z.any()),
|
|
63
|
+
"AdditionalProperties",
|
|
64
|
+
true,
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
export const GraderDefinition$zodSchemaOutbound: z.ZodType<any> = z.object({
|
|
68
|
+
AdditionalProperties: z.record(z.string(), z.any()).optional(),
|
|
69
|
+
blocking: z.boolean().default(false),
|
|
70
|
+
case_sensitive: z.boolean().default(false),
|
|
71
|
+
criteria: z.nullable(z.string()).optional(),
|
|
72
|
+
expected: z.nullable(z.int()).optional(),
|
|
73
|
+
max_value: z.nullable(z.number()).optional(),
|
|
74
|
+
metric: z.nullable(Metric$zodSchema).optional(),
|
|
75
|
+
min_score: z.nullable(z.number()).optional(),
|
|
76
|
+
name: z.string(),
|
|
77
|
+
needle: z.nullable(z.string()).optional(),
|
|
78
|
+
needles: z.nullable(z.array(z.string())).optional(),
|
|
79
|
+
path: z.nullable(z.string()).optional(),
|
|
80
|
+
pattern: z.nullable(z.string()).optional(),
|
|
81
|
+
plugin: z.nullable(z.string()).optional(),
|
|
82
|
+
type: z.string(),
|
|
83
|
+
weight: z.number().default(1),
|
|
84
|
+
}).transform((v) => {
|
|
85
|
+
const { AdditionalProperties, ...rest } = v;
|
|
86
|
+
return {
|
|
87
|
+
...rest,
|
|
88
|
+
...AdditionalProperties,
|
|
89
|
+
};
|
|
90
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8e700724e199
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
V2PromptRunFrequencyInput,
|
|
10
|
+
V2PromptRunFrequencyInput$zodSchema,
|
|
11
|
+
} from "./v2promptrunfrequencyinput.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The organization's default frequency, for every answer engine and harness not set differently. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve.
|
|
15
|
+
*/
|
|
16
|
+
export const UpdateV2PromptScheduleRequestFrequency = {
|
|
17
|
+
Daily: "daily",
|
|
18
|
+
EveryOtherDay: "every_other_day",
|
|
19
|
+
Weekly: "weekly",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The organization's default frequency, for every answer engine and harness not set differently. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve.
|
|
23
|
+
*/
|
|
24
|
+
export type UpdateV2PromptScheduleRequestFrequency = ClosedEnum<
|
|
25
|
+
typeof UpdateV2PromptScheduleRequestFrequency
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export const UpdateV2PromptScheduleRequestFrequency$zodSchema = z.enum([
|
|
29
|
+
"daily",
|
|
30
|
+
"every_other_day",
|
|
31
|
+
"weekly",
|
|
32
|
+
]).describe(
|
|
33
|
+
"The organization's default frequency, for every answer engine and harness not set differently. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve.",
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
export type UpdateV2PromptScheduleRequest = {
|
|
37
|
+
enabled?: boolean | undefined;
|
|
38
|
+
frequency?: UpdateV2PromptScheduleRequestFrequency | undefined;
|
|
39
|
+
frequencies?: Array<V2PromptRunFrequencyInput> | null | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const UpdateV2PromptScheduleRequest$zodSchema: z.ZodType<
|
|
43
|
+
UpdateV2PromptScheduleRequest
|
|
44
|
+
> = z.object({
|
|
45
|
+
enabled: z.boolean().optional().describe(
|
|
46
|
+
"Turn scheduled prompt runs on or off for the organization.",
|
|
47
|
+
),
|
|
48
|
+
frequencies: z.array(V2PromptRunFrequencyInput$zodSchema).nullable()
|
|
49
|
+
.optional().describe(
|
|
50
|
+
"Answer engines and harnesses to set differently from the default, or back to it with `default`. Those you leave out keep theirs.",
|
|
51
|
+
),
|
|
52
|
+
frequency: UpdateV2PromptScheduleRequestFrequency$zodSchema.optional()
|
|
53
|
+
.describe(
|
|
54
|
+
"The organization's default frequency, for every answer engine and harness not set differently. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve.",
|
|
55
|
+
),
|
|
56
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3f3a85c0386c
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export type V2EvalResultsFailedCheck = {
|
|
9
|
+
name: string;
|
|
10
|
+
label?: string | null | undefined;
|
|
11
|
+
details?: string | null | undefined;
|
|
12
|
+
deductions?: Array<string> | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const V2EvalResultsFailedCheck$zodSchema: z.ZodType<
|
|
16
|
+
V2EvalResultsFailedCheck
|
|
17
|
+
> = z.object({
|
|
18
|
+
deductions: z.array(z.string()).optional().describe(
|
|
19
|
+
"What the judge took points off for.",
|
|
20
|
+
),
|
|
21
|
+
details: z.string().nullable().optional().describe("The judge's reason."),
|
|
22
|
+
label: z.string().nullable().optional(),
|
|
23
|
+
name: z.string().describe("The judge's check."),
|
|
24
|
+
});
|