@lightsage/mcp 0.4.25 → 0.4.27
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 +548 -156
- package/bin/mcp-server.js.map +37 -32
- package/esm/funcs/promptsCreate.d.ts +1 -1
- package/esm/funcs/promptsCreate.js +1 -1
- package/esm/funcs/promptsTagsList.d.ts +15 -0
- package/esm/funcs/promptsTagsList.d.ts.map +1 -0
- package/esm/funcs/promptsTagsList.js +72 -0
- package/esm/funcs/promptsTagsList.js.map +1 -0
- package/esm/funcs/promptsUpdate.d.ts +1 -1
- package/esm/funcs/promptsUpdate.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 +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/promptsCreate.js +1 -1
- package/esm/mcp-server/tools/promptsCreate.js.map +1 -1
- package/esm/mcp-server/tools/promptsTagsList.d.ts +3 -0
- package/esm/mcp-server/tools/promptsTagsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsTagsList.js +30 -0
- package/esm/mcp-server/tools/promptsTagsList.js.map +1 -0
- package/esm/mcp-server/tools/promptsUpdate.js +1 -1
- package/esm/mcp-server/tools/promptsUpdate.js.map +1 -1
- package/esm/models/createevaltemplaterequest.d.ts +2 -2
- package/esm/models/createevaltemplaterequest.d.ts.map +1 -1
- package/esm/models/createevaltemplaterequest.js +1 -1
- package/esm/models/createevaltemplaterequest.js.map +1 -1
- package/esm/models/createv2agentpreferenceevalrequest.d.ts +1 -0
- package/esm/models/createv2agentpreferenceevalrequest.d.ts.map +1 -1
- package/esm/models/createv2agentpreferenceevalrequest.js +1 -0
- package/esm/models/createv2agentpreferenceevalrequest.js.map +1 -1
- package/esm/models/createv2evalrequest.d.ts +1 -0
- package/esm/models/createv2evalrequest.d.ts.map +1 -1
- package/esm/models/createv2evalrequest.js +1 -0
- package/esm/models/createv2evalrequest.js.map +1 -1
- package/esm/models/createv2promptrequest.d.ts +1 -0
- package/esm/models/createv2promptrequest.d.ts.map +1 -1
- package/esm/models/createv2promptrequest.js +1 -0
- package/esm/models/createv2promptrequest.js.map +1 -1
- package/esm/models/createv2repositoryrequest.d.ts.map +1 -1
- package/esm/models/createv2repositoryrequest.js +1 -1
- package/esm/models/createv2repositoryrequest.js.map +1 -1
- package/esm/models/evaltemplate.d.ts +2 -2
- package/esm/models/evaltemplate.d.ts.map +1 -1
- package/esm/models/evaltemplate.js +1 -1
- package/esm/models/evaltemplate.js.map +1 -1
- package/esm/models/updateevaltemplaterequest.d.ts +2 -2
- package/esm/models/updateevaltemplaterequest.d.ts.map +1 -1
- package/esm/models/updateevaltemplaterequest.js +1 -1
- package/esm/models/updateevaltemplaterequest.js.map +1 -1
- package/esm/models/updatev2agentpreferenceevalrequest.d.ts +1 -0
- package/esm/models/updatev2agentpreferenceevalrequest.d.ts.map +1 -1
- package/esm/models/updatev2agentpreferenceevalrequest.js +1 -0
- package/esm/models/updatev2agentpreferenceevalrequest.js.map +1 -1
- package/esm/models/updatev2evalrequest.d.ts +1 -0
- package/esm/models/updatev2evalrequest.d.ts.map +1 -1
- package/esm/models/updatev2evalrequest.js +1 -0
- package/esm/models/updatev2evalrequest.js.map +1 -1
- package/esm/models/updatev2promptrequest.d.ts +1 -0
- package/esm/models/updatev2promptrequest.d.ts.map +1 -1
- package/esm/models/updatev2promptrequest.js +1 -0
- package/esm/models/updatev2promptrequest.js.map +1 -1
- package/esm/models/v2agent.d.ts +2 -0
- package/esm/models/v2agent.d.ts.map +1 -1
- package/esm/models/v2agent.js +2 -0
- package/esm/models/v2agent.js.map +1 -1
- package/esm/models/v2agentpreferenceeval.d.ts +1 -0
- package/esm/models/v2agentpreferenceeval.d.ts.map +1 -1
- package/esm/models/v2agentpreferenceeval.js +1 -0
- package/esm/models/v2agentpreferenceeval.js.map +1 -1
- package/esm/models/v2eval.d.ts +1 -0
- package/esm/models/v2eval.d.ts.map +1 -1
- package/esm/models/v2eval.js +1 -0
- package/esm/models/v2eval.js.map +1 -1
- package/esm/models/v2evalresultsummary.d.ts +1 -0
- package/esm/models/v2evalresultsummary.d.ts.map +1 -1
- package/esm/models/v2evalresultsummary.js +1 -0
- package/esm/models/v2evalresultsummary.js.map +1 -1
- package/esm/models/v2promptrundetail.d.ts +1 -0
- package/esm/models/v2promptrundetail.d.ts.map +1 -1
- package/esm/models/v2promptrundetail.js +3 -2
- package/esm/models/v2promptrundetail.js.map +1 -1
- package/esm/models/v2promptrunsummary.d.ts +1 -0
- package/esm/models/v2promptrunsummary.d.ts.map +1 -1
- package/esm/models/v2promptrunsummary.js +3 -2
- package/esm/models/v2promptrunsummary.js.map +1 -1
- package/esm/models/v2prompttagsresponse.d.ts +8 -0
- package/esm/models/v2prompttagsresponse.d.ts.map +1 -0
- package/esm/models/v2prompttagsresponse.js +12 -0
- package/esm/models/v2prompttagsresponse.js.map +1 -0
- package/esm/models/v2repository.d.ts +19 -0
- package/esm/models/v2repository.d.ts.map +1 -1
- package/esm/models/v2repository.js +15 -0
- package/esm/models/v2repository.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +6 -2
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/promptsCreate.ts +1 -1
- package/src/funcs/promptsTagsList.ts +124 -0
- package/src/funcs/promptsUpdate.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 +3 -1
- package/src/mcp-server/tools/promptsCreate.ts +1 -1
- package/src/mcp-server/tools/promptsTagsList.ts +36 -0
- package/src/mcp-server/tools/promptsUpdate.ts +1 -1
- package/src/models/createevaltemplaterequest.ts +4 -4
- package/src/models/createv2agentpreferenceevalrequest.ts +4 -0
- package/src/models/createv2evalrequest.ts +4 -0
- package/src/models/createv2promptrequest.ts +4 -0
- package/src/models/createv2repositoryrequest.ts +3 -1
- package/src/models/evaltemplate.ts +4 -4
- package/src/models/updateevaltemplaterequest.ts +4 -2
- package/src/models/updatev2agentpreferenceevalrequest.ts +4 -0
- package/src/models/updatev2evalrequest.ts +4 -0
- package/src/models/updatev2promptrequest.ts +4 -0
- package/src/models/v2agent.ts +12 -1
- package/src/models/v2agentpreferenceeval.ts +4 -0
- package/src/models/v2eval.ts +4 -0
- package/src/models/v2evalresultsummary.ts +4 -0
- package/src/models/v2promptrundetail.ts +6 -2
- package/src/models/v2promptrunsummary.ts +6 -2
- package/src/models/v2prompttagsresponse.ts +21 -0
- package/src/models/v2repository.ts +29 -0
- package/src/tool-names.ts +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2repository.js","sourceRoot":"","sources":["../../src/models/v2repository.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAMX,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,UAAU;IACV,OAAO;CACR,CAAC,CAAC,QAAQ,CACT,oGAAoG,CACrG,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX,MAAM,CAAC,MAAM,+BA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AAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAyTlE,CAAC"}
|
package/esm/tool-names.js
CHANGED
|
@@ -34,7 +34,11 @@ export const toolNames = [
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "prompts-create",
|
|
37
|
-
"description": "Create Prompts\n\nCreates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors."
|
|
37
|
+
"description": "Create Prompts\n\nCreates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors. Tag names that match no existing prompt tag create new tags."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "prompts-tags-list",
|
|
41
|
+
"description": "List Tags\n\nReturns the organization's prompt tags. Set tags on a prompt by name with `tags` on `POST /v2/prompts` or `PATCH /v2/prompts/{prompt_id}`; a name with no match creates the tag."
|
|
38
42
|
},
|
|
39
43
|
{
|
|
40
44
|
"name": "prompts-topics-list",
|
|
@@ -74,7 +78,7 @@ export const toolNames = [
|
|
|
74
78
|
},
|
|
75
79
|
{
|
|
76
80
|
"name": "prompts-update",
|
|
77
|
-
"description": "Update Prompt\n\nUpdates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged."
|
|
81
|
+
"description": "Update Prompt\n\nUpdates a prompt's text, topic, platforms, tags, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged; `tags` replaces the prompt's tags."
|
|
78
82
|
},
|
|
79
83
|
{
|
|
80
84
|
"name": "prompts-delete",
|
package/esm/tool-names.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,YAAY;QACpB,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,wBAAwB;QAChC,aAAa,EAAE,0HAA0H;KAC1I;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,6YAA6Y;KAC7Z;IACD;QACE,MAAM,EAAE,8BAA8B;QACtC,aAAa,EAAE,qOAAqO;KACrP;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,wQAAwQ;KACxR;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,yLAAyL;KACzM;IACD;QACE,MAAM,EAAE,uCAAuC;QAC/C,aAAa,EAAE,4YAA4Y;KAC5Z;IACD;QACE,MAAM,EAAE,cAAc;QACtB,aAAa,EAAE,gWAAgW;KAChX;IACD;QACE,MAAM,EAAE,gBAAgB;QACxB,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,YAAY;QACpB,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,wBAAwB;QAChC,aAAa,EAAE,0HAA0H;KAC1I;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,6YAA6Y;KAC7Z;IACD;QACE,MAAM,EAAE,8BAA8B;QACtC,aAAa,EAAE,qOAAqO;KACrP;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,wQAAwQ;KACxR;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,yLAAyL;KACzM;IACD;QACE,MAAM,EAAE,uCAAuC;QAC/C,aAAa,EAAE,4YAA4Y;KAC5Z;IACD;QACE,MAAM,EAAE,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AE,+FAA+F;KAC/G;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,iKAAiK;KACjL;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,ubAAub;KACvc;IACD;QACE,MAAM,EAAE,aAAa;QACrB,aAAa,EAAE,0fAA0f;KAC1gB;IACD;QACE,MAAM,EAAE,mBAAmB;QAC3B,aAAa,EAAE,6OAA6O;KAC7P;IACD;QACE,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,wFAAwF;KACxG;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,mEAAmE;KACnF;IACD;QACE,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,uFAAuF;KACvG;IACD;QACE,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,mGAAmG;KACnH;IACD;QACE,MAAM,EAAE,mBAAmB;QAC3B,aAAa,EAAE,oFAAoF;KACpG;IACD;QACE,MAAM,EAAE,kBAAkB;QAC1B,aAAa,EAAE,iGAAiG;KACjH;IACD;QACE,MAAM,EAAE,YAAY;QACpB,aAAa,EAAE,qFAAqF;KACrG;IACD;QACE,MAAM,EAAE,aAAa;QACrB,aAAa,EAAE,wFAAwF;KACxG;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Create Prompts
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Creates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors.
|
|
33
|
+
* Creates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors. Tag names that match no existing prompt tag create new tags.
|
|
34
34
|
*/
|
|
35
35
|
export function promptsCreate(
|
|
36
36
|
client$: LightsageMcpCore,
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 75923fea23fb
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/httpclienterrors.js";
|
|
19
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
20
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
21
|
+
import { Result } from "../types/fp.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* List Tags
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Returns the organization's prompt tags. Set tags on a prompt by name with `tags` on `POST /v2/prompts` or `PATCH /v2/prompts/{prompt_id}`; a name with no match creates the tag.
|
|
28
|
+
*/
|
|
29
|
+
export function promptsTagsList(
|
|
30
|
+
client$: LightsageMcpCore,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<
|
|
33
|
+
Result<
|
|
34
|
+
Response,
|
|
35
|
+
| APIError
|
|
36
|
+
| SDKValidationError
|
|
37
|
+
| UnexpectedClientError
|
|
38
|
+
| InvalidRequestError
|
|
39
|
+
| RequestAbortedError
|
|
40
|
+
| RequestTimeoutError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
>
|
|
43
|
+
> {
|
|
44
|
+
return new APIPromise($do(
|
|
45
|
+
client$,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async function $do(
|
|
51
|
+
client$: LightsageMcpCore,
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): Promise<
|
|
54
|
+
[
|
|
55
|
+
Result<
|
|
56
|
+
Response,
|
|
57
|
+
| APIError
|
|
58
|
+
| SDKValidationError
|
|
59
|
+
| UnexpectedClientError
|
|
60
|
+
| InvalidRequestError
|
|
61
|
+
| RequestAbortedError
|
|
62
|
+
| RequestTimeoutError
|
|
63
|
+
| ConnectionError
|
|
64
|
+
>,
|
|
65
|
+
APICall,
|
|
66
|
+
]
|
|
67
|
+
> {
|
|
68
|
+
const path$ = pathToFunc("/v2/prompts/tags")();
|
|
69
|
+
|
|
70
|
+
const headers$ = new Headers(compactMap({
|
|
71
|
+
Accept: "application/json",
|
|
72
|
+
}));
|
|
73
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
74
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75
|
+
|
|
76
|
+
const context = {
|
|
77
|
+
options: client$._options,
|
|
78
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
79
|
+
operationID: "v2_prompt_tags_list",
|
|
80
|
+
oAuth2Scopes: null,
|
|
81
|
+
resolvedSecurity: requestSecurity,
|
|
82
|
+
securitySource: client$._options.security,
|
|
83
|
+
retryConfig: options?.retries
|
|
84
|
+
|| client$._options.retryConfig
|
|
85
|
+
|| { strategy: "none" },
|
|
86
|
+
retryCodes: options?.retryCodes || [
|
|
87
|
+
"429",
|
|
88
|
+
"500",
|
|
89
|
+
"502",
|
|
90
|
+
"503",
|
|
91
|
+
"504",
|
|
92
|
+
],
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const requestRes = client$._createRequest(context, {
|
|
96
|
+
security: requestSecurity,
|
|
97
|
+
method: "GET",
|
|
98
|
+
baseURL: options?.serverURL,
|
|
99
|
+
path: path$,
|
|
100
|
+
headers: headers$,
|
|
101
|
+
userAgent: client$._options.userAgent,
|
|
102
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
103
|
+
|| -1,
|
|
104
|
+
}, options);
|
|
105
|
+
if (!requestRes.ok) {
|
|
106
|
+
return [requestRes, { status: "invalid" }];
|
|
107
|
+
}
|
|
108
|
+
const req$ = requestRes.value;
|
|
109
|
+
|
|
110
|
+
const doResult = await client$._do(req$, {
|
|
111
|
+
context,
|
|
112
|
+
errorCodes: [],
|
|
113
|
+
retryConfig: context.retryConfig,
|
|
114
|
+
retryCodes: context.retryCodes,
|
|
115
|
+
});
|
|
116
|
+
if (!doResult.ok) {
|
|
117
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
118
|
+
}
|
|
119
|
+
return [doResult, {
|
|
120
|
+
status: "complete",
|
|
121
|
+
"request": req$,
|
|
122
|
+
response: doResult.value,
|
|
123
|
+
}];
|
|
124
|
+
}
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Update Prompt
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged.
|
|
33
|
+
* Updates a prompt's text, topic, platforms, tags, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged; `tags` replaces the prompt's tags.
|
|
34
34
|
*/
|
|
35
35
|
export function promptsUpdate(
|
|
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.27/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.27",
|
|
70
70
|
genVersion: "2.948.4",
|
|
71
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
71
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.27 2.948.4 1.0.0 @lightsage/mcp",
|
|
72
72
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -69,6 +69,7 @@ import { tool$promptsRunCancel } from "./tools/promptsRunCancel.js";
|
|
|
69
69
|
import { tool$promptsRunsList } from "./tools/promptsRunsList.js";
|
|
70
70
|
import { tool$promptsRunsRetrieve } from "./tools/promptsRunsRetrieve.js";
|
|
71
71
|
import { tool$promptsRunStatus } from "./tools/promptsRunStatus.js";
|
|
72
|
+
import { tool$promptsTagsList } from "./tools/promptsTagsList.js";
|
|
72
73
|
import { tool$promptsTargetsList } from "./tools/promptsTargetsList.js";
|
|
73
74
|
import { tool$promptsTargetsSet } from "./tools/promptsTargetsSet.js";
|
|
74
75
|
import { tool$promptsTopicsCreate } from "./tools/promptsTopicsCreate.js";
|
|
@@ -115,7 +116,7 @@ export function createMCPServer(deps: {
|
|
|
115
116
|
sizes: ["any"],
|
|
116
117
|
}],
|
|
117
118
|
name: "LightsageMcp",
|
|
118
|
-
version: "0.4.
|
|
119
|
+
version: "0.4.27",
|
|
119
120
|
});
|
|
120
121
|
|
|
121
122
|
const getClient = deps.getSDK || (() =>
|
|
@@ -169,6 +170,7 @@ export function createMCPServer(deps: {
|
|
|
169
170
|
tool(tool$visibilityCitationsSummaryRetrieve);
|
|
170
171
|
tool(tool$promptsList);
|
|
171
172
|
tool(tool$promptsCreate);
|
|
173
|
+
tool(tool$promptsTagsList);
|
|
172
174
|
tool(tool$promptsTopicsList);
|
|
173
175
|
tool(tool$promptsTopicsCreate);
|
|
174
176
|
tool(tool$promptsTopicsUpdate);
|
|
@@ -15,7 +15,7 @@ export const tool$promptsCreate: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "prompts-create",
|
|
16
16
|
description: `Create Prompts
|
|
17
17
|
|
|
18
|
-
Creates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors.`,
|
|
18
|
+
Creates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors. Tag names that match no existing prompt tag create new tags.`,
|
|
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: f17854c03308
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { promptsTagsList } from "../../funcs/promptsTagsList.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
export const tool$promptsTagsList: ToolDefinition = {
|
|
10
|
+
name: "prompts-tags-list",
|
|
11
|
+
description: `List Tags
|
|
12
|
+
|
|
13
|
+
Returns the organization's prompt tags. Set tags on a prompt by name with \`tags\` on \`POST /v2/prompts\` or \`PATCH /v2/prompts/{prompt_id}\`; a name with no match creates the tag.`,
|
|
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 promptsTagsList(
|
|
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
|
+
};
|
|
@@ -15,7 +15,7 @@ export const tool$promptsUpdate: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "prompts-update",
|
|
16
16
|
description: `Update Prompt
|
|
17
17
|
|
|
18
|
-
Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged.`,
|
|
18
|
+
Updates a prompt's text, topic, platforms, tags, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged; \`tags\` replaces the prompt's tags.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -96,15 +96,18 @@ export type CreateEvalTemplateRequest = {
|
|
|
96
96
|
tag?: string | undefined;
|
|
97
97
|
competitor_ids?: Array<string> | undefined;
|
|
98
98
|
judges?: Array<GraderDefinition> | undefined;
|
|
99
|
-
target_keys?: Array<string> | undefined;
|
|
100
99
|
schedule?: EvalTemplateSchedule | undefined;
|
|
101
100
|
runs_per_execution?: number | undefined;
|
|
102
101
|
runtime?: EvalTemplateRuntime | undefined;
|
|
102
|
+
agent?: Array<string> | undefined;
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
export const CreateEvalTemplateRequest$zodSchema: z.ZodType<
|
|
106
106
|
CreateEvalTemplateRequest
|
|
107
107
|
> = z.object({
|
|
108
|
+
agent: z.array(z.string()).optional().describe(
|
|
109
|
+
"Runnable agents from `GET /v2/agents`, copied when `targets` is included. CLI clients expose repeatable `--agent`.",
|
|
110
|
+
),
|
|
108
111
|
category_name: z.string().optional().describe(
|
|
109
112
|
"Optional category copied when `category` is included.",
|
|
110
113
|
),
|
|
@@ -147,9 +150,6 @@ export const CreateEvalTemplateRequest$zodSchema: z.ZodType<
|
|
|
147
150
|
tag: z.string().optional().describe(
|
|
148
151
|
"Optional tag copied when `tag` is included.",
|
|
149
152
|
),
|
|
150
|
-
target_keys: z.array(z.string()).optional().describe(
|
|
151
|
-
"Runnable target keys copied when `targets` is included, such as `agent:codex:gpt-5.6-terra`.",
|
|
152
|
-
),
|
|
153
153
|
}).describe(
|
|
154
154
|
"Create a reusable eval that can be applied to many brands or prompts.",
|
|
155
155
|
);
|
|
@@ -15,6 +15,7 @@ export type CreateV2AgentPreferenceEvalRequest = {
|
|
|
15
15
|
name?: string | undefined;
|
|
16
16
|
agent?: Array<string> | undefined;
|
|
17
17
|
persona?: string | undefined;
|
|
18
|
+
repository?: string | undefined;
|
|
18
19
|
search_grounding?: SearchGroundingMode | undefined;
|
|
19
20
|
runs?: number | undefined;
|
|
20
21
|
tags?: Array<string> | undefined;
|
|
@@ -38,6 +39,9 @@ export const CreateV2AgentPreferenceEvalRequest$zodSchema: z.ZodType<
|
|
|
38
39
|
prompts: z.array(z.string()).describe(
|
|
39
40
|
"Buying or build questions the agent answers by choosing between your company and the competitor. CLI clients expose this as repeatable `--prompt`.",
|
|
40
41
|
),
|
|
42
|
+
repository: z.string().optional().describe(
|
|
43
|
+
"Repository every run starts from: a saved repository ID or a built-in alias such as `nextjs-starter` from `GET /v2/repositories`. Save a private repository with `POST /v2/repositories` first; it must be shared with your organization's Lightsage GitHub App.",
|
|
44
|
+
),
|
|
41
45
|
runs: z.int().default(1).describe(
|
|
42
46
|
"Independent attempts for every prompt-agent pair.",
|
|
43
47
|
),
|
|
@@ -39,6 +39,7 @@ export type CreateV2EvalRequest = {
|
|
|
39
39
|
mcps?: Array<V2InlineMcpDefinition | V2SavedMcpReference> | undefined;
|
|
40
40
|
setup_commands?: Array<string> | undefined;
|
|
41
41
|
cleanup_commands?: Array<string> | undefined;
|
|
42
|
+
repository?: string | undefined;
|
|
42
43
|
search_grounding?: SearchGroundingMode | undefined;
|
|
43
44
|
runs?: number | undefined;
|
|
44
45
|
tags?: Array<string> | undefined;
|
|
@@ -74,6 +75,9 @@ export const CreateV2EvalRequest$zodSchema: z.ZodType<CreateV2EvalRequest> = z
|
|
|
74
75
|
prompts: z.array(z.string()).describe(
|
|
75
76
|
"Task prompts. CLI clients expose this as repeatable `--prompt`.",
|
|
76
77
|
),
|
|
78
|
+
repository: z.string().optional().describe(
|
|
79
|
+
"Repository every run starts from: a saved repository ID or a built-in alias such as `nextjs-starter` from `GET /v2/repositories`. Save a private repository with `POST /v2/repositories` first; it must be shared with your organization's Lightsage GitHub App.",
|
|
80
|
+
),
|
|
77
81
|
runs: z.int().default(1).describe(
|
|
78
82
|
"Independent attempts for every prompt-agent pair.",
|
|
79
83
|
),
|
|
@@ -13,6 +13,7 @@ export type CreateV2PromptRequest = {
|
|
|
13
13
|
topic_id: string;
|
|
14
14
|
text: string;
|
|
15
15
|
platform_ids?: Array<string> | undefined;
|
|
16
|
+
tags?: Array<string> | undefined;
|
|
16
17
|
run_settings?: V2PromptRunSettingsInput | null | undefined;
|
|
17
18
|
};
|
|
18
19
|
|
|
@@ -25,6 +26,9 @@ export const CreateV2PromptRequest$zodSchema: z.ZodType<CreateV2PromptRequest> =
|
|
|
25
26
|
.describe(
|
|
26
27
|
"Run settings that apply to coding-agent runs of this prompt. Omitted fields keep their current or default values.",
|
|
27
28
|
),
|
|
29
|
+
tags: z.array(z.string()).optional().describe(
|
|
30
|
+
"Tag names. A name matches an existing prompt tag of the organization regardless of case; a name with no match creates a new tag. CLI clients may expose this string array as a repeatable `--tag` flag. Omit to create the prompt untagged.",
|
|
31
|
+
),
|
|
28
32
|
text: z.string(),
|
|
29
33
|
topic_id: z.string().describe(
|
|
30
34
|
"Prompt topic ID from `GET /v2/prompts/topics`.",
|
|
@@ -53,7 +53,9 @@ export const CreateV2RepositoryRequest$zodSchema: z.ZodType<
|
|
|
53
53
|
install_steps: z.array(z.string()).optional(),
|
|
54
54
|
name: z.string(),
|
|
55
55
|
ref: z.string().default("main").describe("Branch, tag, or commit SHA."),
|
|
56
|
-
repo_url: z.string()
|
|
56
|
+
repo_url: z.string().describe(
|
|
57
|
+
"An https://github.com/<owner>/<repo> URL. A private repository must be shared with your organization's Lightsage GitHub App.",
|
|
58
|
+
),
|
|
57
59
|
subdir: z.string().default("").describe(
|
|
58
60
|
"Project root inside the repository.",
|
|
59
61
|
),
|
|
@@ -91,10 +91,10 @@ export type EvalTemplate = {
|
|
|
91
91
|
tag?: string | null | undefined;
|
|
92
92
|
competitor_ids?: Array<string> | undefined;
|
|
93
93
|
judges?: Array<GraderDefinition> | undefined;
|
|
94
|
-
target_keys?: Array<string> | undefined;
|
|
95
94
|
schedule?: EvalTemplateSchedule | undefined;
|
|
96
95
|
runs_per_execution?: number | undefined;
|
|
97
96
|
runtime?: EvalTemplateRuntime | undefined;
|
|
97
|
+
agent?: Array<string> | undefined;
|
|
98
98
|
id: string;
|
|
99
99
|
org_id: string;
|
|
100
100
|
version: number;
|
|
@@ -105,6 +105,9 @@ export type EvalTemplate = {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
export const EvalTemplate$zodSchema: z.ZodType<EvalTemplate> = z.object({
|
|
108
|
+
agent: z.array(z.string()).optional().describe(
|
|
109
|
+
"Runnable agents from `GET /v2/agents`, copied when `targets` is included. CLI clients expose repeatable `--agent`.",
|
|
110
|
+
),
|
|
108
111
|
category_name: z.string().nullable().optional().describe(
|
|
109
112
|
"Optional category copied when `category` is included.",
|
|
110
113
|
),
|
|
@@ -150,9 +153,6 @@ export const EvalTemplate$zodSchema: z.ZodType<EvalTemplate> = z.object({
|
|
|
150
153
|
tag: z.string().nullable().optional().describe(
|
|
151
154
|
"Optional tag copied when `tag` is included.",
|
|
152
155
|
),
|
|
153
|
-
target_keys: z.array(z.string()).optional().describe(
|
|
154
|
-
"Runnable target keys copied when `targets` is included, such as `agent:codex:gpt-5.6-terra`.",
|
|
155
|
-
),
|
|
156
156
|
updated_at: z.string(),
|
|
157
157
|
version: z.int(),
|
|
158
158
|
});
|
|
@@ -89,15 +89,18 @@ export type UpdateEvalTemplateRequest = {
|
|
|
89
89
|
tag?: string | undefined;
|
|
90
90
|
competitor_ids?: Array<string> | null | undefined;
|
|
91
91
|
judges?: Array<GraderDefinition> | null | undefined;
|
|
92
|
-
target_keys?: Array<string> | null | undefined;
|
|
93
92
|
schedule?: EvalTemplateSchedule | null | undefined;
|
|
94
93
|
runs_per_execution?: number | undefined;
|
|
95
94
|
runtime?: EvalTemplateRuntime | null | undefined;
|
|
95
|
+
agent?: Array<string> | null | undefined;
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
export const UpdateEvalTemplateRequest$zodSchema: z.ZodType<
|
|
99
99
|
UpdateEvalTemplateRequest
|
|
100
100
|
> = z.object({
|
|
101
|
+
agent: z.array(z.string()).nullable().optional().describe(
|
|
102
|
+
"Replacement agents from `GET /v2/agents`. Omit to leave the saved agents unchanged.",
|
|
103
|
+
),
|
|
101
104
|
category_name: z.string().optional(),
|
|
102
105
|
competitor_ids: z.array(z.string()).nullable().optional(),
|
|
103
106
|
description: z.string().optional(),
|
|
@@ -114,5 +117,4 @@ export const UpdateEvalTemplateRequest$zodSchema: z.ZodType<
|
|
|
114
117
|
runtime: EvalTemplateRuntime$zodSchema.nullable().optional(),
|
|
115
118
|
schedule: EvalTemplateSchedule$zodSchema.nullable().optional(),
|
|
116
119
|
tag: z.string().optional(),
|
|
117
|
-
target_keys: z.array(z.string()).nullable().optional(),
|
|
118
120
|
});
|
|
@@ -14,6 +14,7 @@ export type UpdateV2AgentPreferenceEvalRequest = {
|
|
|
14
14
|
prompts?: Array<string> | null | undefined;
|
|
15
15
|
agent?: Array<string> | null | undefined;
|
|
16
16
|
persona?: string | undefined;
|
|
17
|
+
repository?: string | undefined;
|
|
17
18
|
search_grounding?: SearchGroundingMode | null | undefined;
|
|
18
19
|
runs?: number | undefined;
|
|
19
20
|
tags?: Array<string> | null | undefined;
|
|
@@ -32,6 +33,9 @@ export const UpdateV2AgentPreferenceEvalRequest$zodSchema: z.ZodType<
|
|
|
32
33
|
prompts: z.array(z.string()).nullable().optional().describe(
|
|
33
34
|
"Buying or build questions the agent answers by choosing between your company and the competitor. CLI clients expose this as repeatable `--prompt`.",
|
|
34
35
|
),
|
|
36
|
+
repository: z.string().optional().describe(
|
|
37
|
+
"Replacement starting repository: a saved repository ID or a built-in alias. Pass null to start from an empty workspace; omit it to keep the saved repository.",
|
|
38
|
+
),
|
|
35
39
|
runs: z.int().optional(),
|
|
36
40
|
search_grounding: SearchGroundingMode$zodSchema.nullable().optional(),
|
|
37
41
|
tags: z.array(z.string()).nullable().optional(),
|
|
@@ -39,6 +39,7 @@ export type UpdateV2EvalRequest = {
|
|
|
39
39
|
mcps?: Array<V2InlineMcpDefinition | V2SavedMcpReference> | null | undefined;
|
|
40
40
|
setup_commands?: Array<string> | null | undefined;
|
|
41
41
|
cleanup_commands?: Array<string> | null | undefined;
|
|
42
|
+
repository?: string | undefined;
|
|
42
43
|
search_grounding?: SearchGroundingMode | null | undefined;
|
|
43
44
|
runs?: number | undefined;
|
|
44
45
|
tags?: Array<string> | null | undefined;
|
|
@@ -68,6 +69,9 @@ export const UpdateV2EvalRequest$zodSchema: z.ZodType<UpdateV2EvalRequest> = z
|
|
|
68
69
|
"Replacement eval persona. Pass null to clear it; omit it to leave the saved value unchanged.",
|
|
69
70
|
),
|
|
70
71
|
prompts: z.array(z.string()).nullable().optional(),
|
|
72
|
+
repository: z.string().optional().describe(
|
|
73
|
+
"Replacement starting repository: a saved repository ID or a built-in alias. Pass null to start from an empty workspace; omit it to keep the saved repository.",
|
|
74
|
+
),
|
|
71
75
|
runs: z.int().optional(),
|
|
72
76
|
search_grounding: SearchGroundingMode$zodSchema.nullable().optional()
|
|
73
77
|
.describe(
|
|
@@ -29,6 +29,7 @@ export type UpdateV2PromptRequest = {
|
|
|
29
29
|
platform_ids?: Array<string> | null | undefined;
|
|
30
30
|
status?: UpdateV2PromptRequestStatus | undefined;
|
|
31
31
|
is_branded?: boolean | undefined;
|
|
32
|
+
tags?: Array<string> | null | undefined;
|
|
32
33
|
run_settings?: V2PromptRunSettingsInput | null | undefined;
|
|
33
34
|
};
|
|
34
35
|
|
|
@@ -45,6 +46,9 @@ export const UpdateV2PromptRequest$zodSchema: z.ZodType<UpdateV2PromptRequest> =
|
|
|
45
46
|
"Run settings that apply to coding-agent runs of this prompt. Omitted fields keep their current or default values.",
|
|
46
47
|
),
|
|
47
48
|
status: UpdateV2PromptRequestStatus$zodSchema.optional(),
|
|
49
|
+
tags: z.array(z.string()).nullable().optional().describe(
|
|
50
|
+
"Tag names. A name matches an existing prompt tag of the organization regardless of case; a name with no match creates a new tag. CLI clients may expose this string array as a repeatable `--tag` flag. Replaces the prompt's tags. Pass an empty array to clear them; omit to keep the current tags.",
|
|
51
|
+
),
|
|
48
52
|
text: z.string().optional(),
|
|
49
53
|
topic_id: z.string().optional().describe(
|
|
50
54
|
"Prompt topic ID from `GET /v2/prompts/topics`.",
|
package/src/models/v2agent.ts
CHANGED
|
@@ -5,11 +5,22 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
|
-
export type V2Agent = {
|
|
8
|
+
export type V2Agent = {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
harness: string;
|
|
12
|
+
model: string;
|
|
13
|
+
};
|
|
9
14
|
|
|
10
15
|
export const V2Agent$zodSchema: z.ZodType<V2Agent> = z.object({
|
|
16
|
+
harness: z.string().describe(
|
|
17
|
+
"The coding-agent harness, such as `claude-code`.",
|
|
18
|
+
),
|
|
11
19
|
id: z.string().describe(
|
|
12
20
|
"Runnable agent ID combining the harness and model, such as `claude-code:claude-opus-4-8`.",
|
|
13
21
|
),
|
|
22
|
+
model: z.string().describe(
|
|
23
|
+
"The model the harness runs, such as `anthropic/claude-sonnet-5.5`.",
|
|
24
|
+
),
|
|
14
25
|
name: z.string().describe("Human-readable harness and model name."),
|
|
15
26
|
});
|
|
@@ -21,6 +21,7 @@ export type V2AgentPreferenceEval = {
|
|
|
21
21
|
judges?: Array<string> | undefined;
|
|
22
22
|
agent?: Array<string> | undefined;
|
|
23
23
|
persona?: string | null | undefined;
|
|
24
|
+
repository?: string | null | undefined;
|
|
24
25
|
search_grounding?: SearchGroundingMode | undefined;
|
|
25
26
|
runs?: number | undefined;
|
|
26
27
|
tags?: Array<string> | undefined;
|
|
@@ -45,6 +46,9 @@ export const V2AgentPreferenceEval$zodSchema: z.ZodType<V2AgentPreferenceEval> =
|
|
|
45
46
|
name: z.string(),
|
|
46
47
|
persona: z.string().nullable().optional(),
|
|
47
48
|
prompts: z.array(z.string()).optional(),
|
|
49
|
+
repository: z.string().nullable().optional().describe(
|
|
50
|
+
"Saved repository ID or built-in alias every run starts from; null for an empty workspace.",
|
|
51
|
+
),
|
|
48
52
|
runs: z.int().default(1),
|
|
49
53
|
search_grounding: SearchGroundingMode$zodSchema.optional().describe(
|
|
50
54
|
"Requested web-retrieval behavior for an eval run.",
|
package/src/models/v2eval.ts
CHANGED
|
@@ -51,6 +51,7 @@ export type V2Eval = {
|
|
|
51
51
|
mcps?: Array<V2InlineMcpDefinition | V2SavedMcpReference> | undefined;
|
|
52
52
|
setup_commands?: Array<string> | undefined;
|
|
53
53
|
cleanup_commands?: Array<string> | undefined;
|
|
54
|
+
repository?: string | null | undefined;
|
|
54
55
|
search_grounding?: SearchGroundingMode | undefined;
|
|
55
56
|
runs?: number | undefined;
|
|
56
57
|
tags?: Array<string> | undefined;
|
|
@@ -78,6 +79,9 @@ export const V2Eval$zodSchema: z.ZodType<V2Eval> = z.object({
|
|
|
78
79
|
name: z.string(),
|
|
79
80
|
persona: z.string().nullable().optional(),
|
|
80
81
|
prompts: z.array(z.string()).optional(),
|
|
82
|
+
repository: z.string().nullable().optional().describe(
|
|
83
|
+
"Saved repository ID or built-in alias every run starts from; null for an empty workspace.",
|
|
84
|
+
),
|
|
81
85
|
runs: z.int().default(1),
|
|
82
86
|
search_grounding: SearchGroundingMode$zodSchema.optional().describe(
|
|
83
87
|
"Requested web-retrieval behavior for an eval run.",
|
|
@@ -33,6 +33,7 @@ export type V2EvalResultSummary = {
|
|
|
33
33
|
id: string;
|
|
34
34
|
eval_id?: string | null | undefined;
|
|
35
35
|
agent?: string | null | undefined;
|
|
36
|
+
agent_version?: string | null | undefined;
|
|
36
37
|
prompt?: string | null | undefined;
|
|
37
38
|
prompt_index?: number | undefined;
|
|
38
39
|
repeat_index?: number | undefined;
|
|
@@ -58,6 +59,9 @@ export const V2EvalResultSummary$zodSchema: z.ZodType<V2EvalResultSummary> = z
|
|
|
58
59
|
agent: z.string().nullable().optional().describe(
|
|
59
60
|
"Runnable agent combining the harness and model.",
|
|
60
61
|
),
|
|
62
|
+
agent_version: z.string().nullable().optional().describe(
|
|
63
|
+
"Version of the coding agent that ran this attempt, as reported by the agent itself, for example `2.1.293` for Claude Code or `0.154.0` for Codex. Cursor reports its SDK version with the CLI build in brackets. Null for text models, for attempts that did not start an agent, and for attempts before agent versions were recorded.",
|
|
64
|
+
),
|
|
61
65
|
created_at: z.string().nullable().optional(),
|
|
62
66
|
environment: PublicEvalRunEnvironment$zodSchema.nullable().optional()
|
|
63
67
|
.describe(
|