@lightsage/mcp 0.4.0 → 0.4.1
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 +1227 -235
- package/bin/mcp-server.js.map +32 -9
- package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.d.ts +16 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.d.ts.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.js +83 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.js.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.d.ts +16 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.d.ts.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.js +88 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.js.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesList.d.ts +15 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesList.d.ts.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesList.js +72 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesList.js.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.d.ts +16 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.d.ts.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.js +88 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.js.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.d.ts +16 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.d.ts.map +1 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.js +89 -0
- package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.js.map +1 -0
- package/esm/funcs/evalsV2EvalsBatchCreate.d.ts +16 -0
- package/esm/funcs/evalsV2EvalsBatchCreate.d.ts.map +1 -0
- package/esm/funcs/evalsV2EvalsBatchCreate.js +83 -0
- package/esm/funcs/evalsV2EvalsBatchCreate.js.map +1 -0
- 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 +13 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.d.ts +7 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.js +35 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.js.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.d.ts +7 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.js +35 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.js.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.d.ts +3 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.js +30 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.js.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.d.ts +7 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.js +35 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.js.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.d.ts +7 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.js +35 -0
- package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.js.map +1 -0
- package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.d.ts +7 -0
- package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.js +35 -0
- package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.js.map +1 -0
- package/esm/models/createevaltemplatebatchrequest.d.ts +12 -0
- package/esm/models/createevaltemplatebatchrequest.d.ts.map +1 -0
- package/esm/models/createevaltemplatebatchrequest.js +12 -0
- package/esm/models/createevaltemplatebatchrequest.js.map +1 -0
- package/esm/models/createevaltemplaterequest.d.ts +79 -0
- package/esm/models/createevaltemplaterequest.d.ts.map +1 -0
- package/esm/models/createevaltemplaterequest.js +74 -0
- package/esm/models/createevaltemplaterequest.js.map +1 -0
- package/esm/models/evaltemplate.d.ts +83 -0
- package/esm/models/evaltemplate.d.ts.map +1 -0
- package/esm/models/evaltemplate.js +81 -0
- package/esm/models/evaltemplate.js.map +1 -0
- package/esm/models/evaltemplatebatchcreatedeval.d.ts +11 -0
- package/esm/models/evaltemplatebatchcreatedeval.d.ts.map +1 -0
- package/esm/models/evaltemplatebatchcreatedeval.js +14 -0
- package/esm/models/evaltemplatebatchcreatedeval.js.map +1 -0
- package/esm/models/evaltemplatebatchitem.d.ts +32 -0
- package/esm/models/evaltemplatebatchitem.d.ts.map +1 -0
- package/esm/models/evaltemplatebatchitem.js +27 -0
- package/esm/models/evaltemplatebatchitem.js.map +1 -0
- package/esm/models/evaltemplatebatchresponse.d.ts +12 -0
- package/esm/models/evaltemplatebatchresponse.d.ts.map +1 -0
- package/esm/models/evaltemplatebatchresponse.js +15 -0
- package/esm/models/evaltemplatebatchresponse.js.map +1 -0
- package/esm/models/evaltemplatebatchresult.d.ts +10 -0
- package/esm/models/evaltemplatebatchresult.d.ts.map +1 -0
- package/esm/models/evaltemplatebatchresult.js +13 -0
- package/esm/models/evaltemplatebatchresult.js.map +1 -0
- package/esm/models/evaltemplateruntime.d.ts +20 -0
- package/esm/models/evaltemplateruntime.d.ts.map +1 -0
- package/esm/models/evaltemplateruntime.js +21 -0
- package/esm/models/evaltemplateruntime.js.map +1 -0
- package/esm/models/evaltemplateschedule.d.ts +28 -0
- package/esm/models/evaltemplateschedule.d.ts.map +1 -0
- package/esm/models/evaltemplateschedule.js +24 -0
- package/esm/models/evaltemplateschedule.js.map +1 -0
- package/esm/models/evaltemplatesresponse.d.ts +8 -0
- package/esm/models/evaltemplatesresponse.d.ts.map +1 -0
- package/esm/models/evaltemplatesresponse.js +11 -0
- package/esm/models/evaltemplatesresponse.js.map +1 -0
- package/esm/models/graderdefinition.d.ts +14 -0
- package/esm/models/graderdefinition.d.ts.map +1 -0
- package/esm/models/graderdefinition.js +17 -0
- package/esm/models/graderdefinition.js.map +1 -0
- package/esm/models/updateevaltemplaterequest.d.ts +71 -0
- package/esm/models/updateevaltemplaterequest.d.ts.map +1 -0
- package/esm/models/updateevaltemplaterequest.js +71 -0
- package/esm/models/updateevaltemplaterequest.js.map +1 -0
- package/esm/models/v2evalsbatchcreateop.d.ts +27 -0
- package/esm/models/v2evalsbatchcreateop.d.ts.map +1 -0
- package/esm/models/v2evalsbatchcreateop.js +24 -0
- package/esm/models/v2evalsbatchcreateop.js.map +1 -0
- package/esm/models/v2evaltemplatescreateop.d.ts +13 -0
- package/esm/models/v2evaltemplatescreateop.d.ts.map +1 -0
- package/esm/models/v2evaltemplatescreateop.js +16 -0
- package/esm/models/v2evaltemplatescreateop.js.map +1 -0
- package/esm/models/v2evaltemplatesdeleteop.d.ts +24 -0
- package/esm/models/v2evaltemplatesdeleteop.d.ts.map +1 -0
- package/esm/models/v2evaltemplatesdeleteop.js +23 -0
- package/esm/models/v2evaltemplatesdeleteop.js.map +1 -0
- package/esm/models/v2evaltemplatesretrieveop.d.ts +17 -0
- package/esm/models/v2evaltemplatesretrieveop.d.ts.map +1 -0
- package/esm/models/v2evaltemplatesretrieveop.js +19 -0
- package/esm/models/v2evaltemplatesretrieveop.js.map +1 -0
- package/esm/models/v2evaltemplatesupdateop.d.ts +33 -0
- package/esm/models/v2evaltemplatesupdateop.d.ts.map +1 -0
- package/esm/models/v2evaltemplatesupdateop.js +29 -0
- package/esm/models/v2evaltemplatesupdateop.js.map +1 -0
- package/esm/models/v2inlinemcpdefinition.d.ts +4 -4
- package/esm/models/v2inlinemcpdefinition.d.ts.map +1 -1
- package/esm/models/v2inlinemcpdefinition.js +3 -3
- package/esm/models/v2inlinemcpdefinition.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +24 -0
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/evalTemplatesV2EvalTemplatesCreate.ts +145 -0
- package/src/funcs/evalTemplatesV2EvalTemplatesDelete.ts +153 -0
- package/src/funcs/evalTemplatesV2EvalTemplatesList.ts +124 -0
- package/src/funcs/evalTemplatesV2EvalTemplatesRetrieve.ts +153 -0
- package/src/funcs/evalTemplatesV2EvalTemplatesUpdate.ts +154 -0
- package/src/funcs/evalsV2EvalsBatchCreate.ts +145 -0
- 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 +13 -1
- package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.ts +45 -0
- package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.ts +45 -0
- package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesList.ts +36 -0
- package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.ts +45 -0
- package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.ts +45 -0
- package/src/mcp-server/tools/evalsV2EvalsBatchCreate.ts +43 -0
- package/src/models/createevaltemplatebatchrequest.ts +35 -0
- package/src/models/createevaltemplaterequest.ts +151 -0
- package/src/models/evaltemplate.ts +154 -0
- package/src/models/evaltemplatebatchcreatedeval.ts +26 -0
- package/src/models/evaltemplatebatchitem.ts +54 -0
- package/src/models/evaltemplatebatchresponse.ts +30 -0
- package/src/models/evaltemplatebatchresult.ts +26 -0
- package/src/models/evaltemplateruntime.ts +64 -0
- package/src/models/evaltemplateschedule.ts +44 -0
- package/src/models/evaltemplatesresponse.ts +18 -0
- package/src/models/graderdefinition.ts +34 -0
- package/src/models/updateevaltemplaterequest.ts +116 -0
- package/src/models/v2evalsbatchcreateop.ts +66 -0
- package/src/models/v2evaltemplatescreateop.ts +37 -0
- package/src/models/v2evaltemplatesdeleteop.ts +56 -0
- package/src/models/v2evaltemplatesretrieveop.ts +43 -0
- package/src/models/v2evaltemplatesupdateop.ts +79 -0
- package/src/models/v2inlinemcpdefinition.ts +7 -5
- package/src/tool-names.ts +24 -0
package/bin/mcp-server.js
CHANGED
|
@@ -52844,9 +52844,9 @@ var init_config = __esm(() => {
|
|
|
52844
52844
|
SDK_METADATA = {
|
|
52845
52845
|
language: "typescript",
|
|
52846
52846
|
openapiDocVersion: "1.0.0",
|
|
52847
|
-
sdkVersion: "0.4.
|
|
52847
|
+
sdkVersion: "0.4.1",
|
|
52848
52848
|
genVersion: "2.941.0",
|
|
52849
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
52849
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.1 2.941.0 1.0.0 @lightsage/mcp"
|
|
52850
52850
|
};
|
|
52851
52851
|
});
|
|
52852
52852
|
|
|
@@ -55628,10 +55628,10 @@ Returns the run's current status and progress. Once its attempts finish, the res
|
|
|
55628
55628
|
});
|
|
55629
55629
|
|
|
55630
55630
|
// src/models/v2inlinemcpdefinition.ts
|
|
55631
|
-
var
|
|
55631
|
+
var V2InlineMcpDefinitionType$zodSchema, V2InlineMcpDefinition$zodSchema;
|
|
55632
55632
|
var init_v2inlinemcpdefinition = __esm(() => {
|
|
55633
55633
|
init_zod();
|
|
55634
|
-
|
|
55634
|
+
V2InlineMcpDefinitionType$zodSchema = _enum([
|
|
55635
55635
|
"http",
|
|
55636
55636
|
"sse",
|
|
55637
55637
|
"stdio"
|
|
@@ -55642,7 +55642,7 @@ var init_v2inlinemcpdefinition = __esm(() => {
|
|
|
55642
55642
|
env: record(string2(), string2()).optional().describe("Environment mapping for a `stdio` MCP server. Values may reference run secrets with `${VARIABLE_NAME}`."),
|
|
55643
55643
|
headers: record(string2(), string2()).optional().describe("HTTP headers. Reference run secrets with `${VARIABLE_NAME}` instead of embedding credentials."),
|
|
55644
55644
|
name: string2().describe("Stable server name used in the selected agent's MCP config."),
|
|
55645
|
-
type:
|
|
55645
|
+
type: V2InlineMcpDefinitionType$zodSchema,
|
|
55646
55646
|
url: string2().nullable().optional().describe("HTTPS endpoint for an `http` or `sse` MCP server.")
|
|
55647
55647
|
});
|
|
55648
55648
|
});
|
|
@@ -56708,6 +56708,144 @@ Updates an eval configuration; omitted fields remain unchanged.`,
|
|
|
56708
56708
|
};
|
|
56709
56709
|
});
|
|
56710
56710
|
|
|
56711
|
+
// src/models/evaltemplatebatchitem.ts
|
|
56712
|
+
var EvalTemplateBatchItemType$zodSchema, EvalTemplateBatchItem$zodSchema;
|
|
56713
|
+
var init_evaltemplatebatchitem = __esm(() => {
|
|
56714
|
+
init_zod();
|
|
56715
|
+
EvalTemplateBatchItemType$zodSchema = _enum([
|
|
56716
|
+
"workflow",
|
|
56717
|
+
"mcp",
|
|
56718
|
+
"cli",
|
|
56719
|
+
"skill"
|
|
56720
|
+
]).describe("Eval subject type used for organization and reporting.");
|
|
56721
|
+
EvalTemplateBatchItem$zodSchema = object({
|
|
56722
|
+
name: string2().describe("Name of the prompt-specific eval to create."),
|
|
56723
|
+
prompts: array(string2()).describe("Task prompts owned by this eval. Judges, targets, scheduling, and runtime resources come from the template."),
|
|
56724
|
+
subject_id: string2().nullable().optional().describe("Optional subject identifier associated with this eval."),
|
|
56725
|
+
type: EvalTemplateBatchItemType$zodSchema.default("workflow").describe("Eval subject type used for organization and reporting.")
|
|
56726
|
+
}).describe("Prompt-specific fields combined with the referenced template.");
|
|
56727
|
+
});
|
|
56728
|
+
|
|
56729
|
+
// src/models/createevaltemplatebatchrequest.ts
|
|
56730
|
+
var CreateEvalTemplateBatchRequest$zodSchema;
|
|
56731
|
+
var init_createevaltemplatebatchrequest = __esm(() => {
|
|
56732
|
+
init_zod();
|
|
56733
|
+
init_evaltemplatebatchitem();
|
|
56734
|
+
CreateEvalTemplateBatchRequest$zodSchema = object({
|
|
56735
|
+
evals: array(EvalTemplateBatchItem$zodSchema).describe("Prompt-specific evals to create from the referenced template. Template-owned fields are intentionally rejected here to avoid ambiguous overrides."),
|
|
56736
|
+
expected_template_version: int().optional().describe("Template `version` returned when the template was read or created. When supplied, creation fails if the template changed before reuse."),
|
|
56737
|
+
template_id: string2().describe("Template `id` returned by `POST /v2/eval-templates`.")
|
|
56738
|
+
}).describe("Reuse one template across up to 100 prompt-specific eval definitions.");
|
|
56739
|
+
});
|
|
56740
|
+
|
|
56741
|
+
// src/funcs/evalsV2EvalsBatchCreate.ts
|
|
56742
|
+
function evalsV2EvalsBatchCreate(client$, request, options) {
|
|
56743
|
+
return new APIPromise($do17(client$, request, options));
|
|
56744
|
+
}
|
|
56745
|
+
async function $do17(client$, request, options) {
|
|
56746
|
+
const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateBatchRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56747
|
+
if (!parsed$.ok) {
|
|
56748
|
+
return [parsed$, { status: "invalid" }];
|
|
56749
|
+
}
|
|
56750
|
+
const payload$ = parsed$.value;
|
|
56751
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
56752
|
+
const path$ = pathToFunc("/v2/evals/batch")();
|
|
56753
|
+
const headers$ = new Headers(compactMap({
|
|
56754
|
+
"Content-Type": "application/json",
|
|
56755
|
+
Accept: "application/json"
|
|
56756
|
+
}));
|
|
56757
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
56758
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
56759
|
+
const context = {
|
|
56760
|
+
options: client$._options,
|
|
56761
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
56762
|
+
operationID: "v2_evals_batch_create",
|
|
56763
|
+
oAuth2Scopes: null,
|
|
56764
|
+
resolvedSecurity: requestSecurity,
|
|
56765
|
+
securitySource: client$._options.security,
|
|
56766
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
56767
|
+
retryCodes: options?.retryCodes || [
|
|
56768
|
+
"429",
|
|
56769
|
+
"500",
|
|
56770
|
+
"502",
|
|
56771
|
+
"503",
|
|
56772
|
+
"504"
|
|
56773
|
+
]
|
|
56774
|
+
};
|
|
56775
|
+
const requestRes = client$._createRequest(context, {
|
|
56776
|
+
security: requestSecurity,
|
|
56777
|
+
method: "POST",
|
|
56778
|
+
baseURL: options?.serverURL,
|
|
56779
|
+
path: path$,
|
|
56780
|
+
headers: headers$,
|
|
56781
|
+
body: body$,
|
|
56782
|
+
userAgent: client$._options.userAgent,
|
|
56783
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
56784
|
+
}, options);
|
|
56785
|
+
if (!requestRes.ok) {
|
|
56786
|
+
return [requestRes, { status: "invalid" }];
|
|
56787
|
+
}
|
|
56788
|
+
const req$ = requestRes.value;
|
|
56789
|
+
const doResult = await client$._do(req$, {
|
|
56790
|
+
context,
|
|
56791
|
+
errorCodes: [],
|
|
56792
|
+
retryConfig: context.retryConfig,
|
|
56793
|
+
retryCodes: context.retryCodes
|
|
56794
|
+
});
|
|
56795
|
+
if (!doResult.ok) {
|
|
56796
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
56797
|
+
}
|
|
56798
|
+
return [doResult, {
|
|
56799
|
+
status: "complete",
|
|
56800
|
+
request: req$,
|
|
56801
|
+
response: doResult.value
|
|
56802
|
+
}];
|
|
56803
|
+
}
|
|
56804
|
+
var init_evalsV2EvalsBatchCreate = __esm(() => {
|
|
56805
|
+
init_encodings();
|
|
56806
|
+
init_primitives();
|
|
56807
|
+
init_schemas4();
|
|
56808
|
+
init_security();
|
|
56809
|
+
init_url();
|
|
56810
|
+
init_createevaltemplatebatchrequest();
|
|
56811
|
+
init_async();
|
|
56812
|
+
});
|
|
56813
|
+
|
|
56814
|
+
// src/mcp-server/tools/evalsV2EvalsBatchCreate.ts
|
|
56815
|
+
var args14, tool$evalsV2EvalsBatchCreate;
|
|
56816
|
+
var init_evalsV2EvalsBatchCreate2 = __esm(() => {
|
|
56817
|
+
init_evalsV2EvalsBatchCreate();
|
|
56818
|
+
init_createevaltemplatebatchrequest();
|
|
56819
|
+
init_tools();
|
|
56820
|
+
args14 = {
|
|
56821
|
+
request: CreateEvalTemplateBatchRequest$zodSchema
|
|
56822
|
+
};
|
|
56823
|
+
tool$evalsV2EvalsBatchCreate = {
|
|
56824
|
+
name: "evals-v2-evals-batch-create",
|
|
56825
|
+
description: `Create evals from a template
|
|
56826
|
+
|
|
56827
|
+
Step 2 of the reusable template workflow. Provide the \`id\` and \`version\` returned by \`POST /v2/eval-templates\` as \`template_id\` and \`expected_template_version\`, then provide only prompt-specific fields in \`evals\`. The template supplies only the settings named in its \`included_components\`; omitted settings keep the values supplied by the creation workflow or its defaults. Included values are copied at creation time, so later template changes do not alter the created evals. Competitor selections create one additional eval per selected competitor for every input item, and the response groups each base eval with those variants. Brand-scoped runtime resources are validated against the organization's primary brand before any eval is created.`,
|
|
56828
|
+
annotations: {
|
|
56829
|
+
title: "",
|
|
56830
|
+
destructiveHint: false,
|
|
56831
|
+
idempotentHint: false,
|
|
56832
|
+
openWorldHint: false,
|
|
56833
|
+
readOnlyHint: false
|
|
56834
|
+
},
|
|
56835
|
+
args: args14,
|
|
56836
|
+
tool: async (client, args, ctx) => {
|
|
56837
|
+
const [result] = await evalsV2EvalsBatchCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56838
|
+
if (!result.ok) {
|
|
56839
|
+
return {
|
|
56840
|
+
content: [{ type: "text", text: result.error.message }],
|
|
56841
|
+
isError: true
|
|
56842
|
+
};
|
|
56843
|
+
}
|
|
56844
|
+
return formatResult(result.value);
|
|
56845
|
+
}
|
|
56846
|
+
};
|
|
56847
|
+
});
|
|
56848
|
+
|
|
56711
56849
|
// src/models/createv2evalrequest.ts
|
|
56712
56850
|
var CreateV2EvalRequestMcp$zodSchema, CreateV2EvalRequest$zodSchema;
|
|
56713
56851
|
var init_createv2evalrequest = __esm(() => {
|
|
@@ -56740,9 +56878,9 @@ var init_createv2evalrequest = __esm(() => {
|
|
|
56740
56878
|
|
|
56741
56879
|
// src/funcs/evalsV2EvalsCreate.ts
|
|
56742
56880
|
function evalsV2EvalsCreate(client$, request, options) {
|
|
56743
|
-
return new APIPromise($
|
|
56881
|
+
return new APIPromise($do18(client$, request, options));
|
|
56744
56882
|
}
|
|
56745
|
-
async function $
|
|
56883
|
+
async function $do18(client$, request, options) {
|
|
56746
56884
|
const parsed$ = safeParse4(request, (value$) => CreateV2EvalRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56747
56885
|
if (!parsed$.ok) {
|
|
56748
56886
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56812,12 +56950,12 @@ var init_evalsV2EvalsCreate = __esm(() => {
|
|
|
56812
56950
|
});
|
|
56813
56951
|
|
|
56814
56952
|
// src/mcp-server/tools/evalsV2EvalsCreate.ts
|
|
56815
|
-
var
|
|
56953
|
+
var args15, tool$evalsV2EvalsCreate;
|
|
56816
56954
|
var init_evalsV2EvalsCreate2 = __esm(() => {
|
|
56817
56955
|
init_evalsV2EvalsCreate();
|
|
56818
56956
|
init_createv2evalrequest();
|
|
56819
56957
|
init_tools();
|
|
56820
|
-
|
|
56958
|
+
args15 = {
|
|
56821
56959
|
request: CreateV2EvalRequest$zodSchema
|
|
56822
56960
|
};
|
|
56823
56961
|
tool$evalsV2EvalsCreate = {
|
|
@@ -56832,7 +56970,7 @@ Creates a reusable simulation definition with one or more task prompts and judge
|
|
|
56832
56970
|
openWorldHint: false,
|
|
56833
56971
|
readOnlyHint: false
|
|
56834
56972
|
},
|
|
56835
|
-
args:
|
|
56973
|
+
args: args15,
|
|
56836
56974
|
tool: async (client, args, ctx) => {
|
|
56837
56975
|
const [result] = await evalsV2EvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56838
56976
|
if (!result.ok) {
|
|
@@ -56923,9 +57061,9 @@ var init_v2evalsdeleteop = __esm(() => {
|
|
|
56923
57061
|
|
|
56924
57062
|
// src/funcs/evalsV2EvalsDelete.ts
|
|
56925
57063
|
function evalsV2EvalsDelete(client$, request, options) {
|
|
56926
|
-
return new APIPromise($
|
|
57064
|
+
return new APIPromise($do19(client$, request, options));
|
|
56927
57065
|
}
|
|
56928
|
-
async function $
|
|
57066
|
+
async function $do19(client$, request, options) {
|
|
56929
57067
|
const parsed$ = safeParse4(request, (value$) => V2EvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56930
57068
|
if (!parsed$.ok) {
|
|
56931
57069
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57000,12 +57138,12 @@ var init_evalsV2EvalsDelete = __esm(() => {
|
|
|
57000
57138
|
});
|
|
57001
57139
|
|
|
57002
57140
|
// src/mcp-server/tools/evalsV2EvalsDelete.ts
|
|
57003
|
-
var
|
|
57141
|
+
var args16, tool$evalsV2EvalsDelete;
|
|
57004
57142
|
var init_evalsV2EvalsDelete2 = __esm(() => {
|
|
57005
57143
|
init_evalsV2EvalsDelete();
|
|
57006
57144
|
init_v2evalsdeleteop();
|
|
57007
57145
|
init_tools();
|
|
57008
|
-
|
|
57146
|
+
args16 = {
|
|
57009
57147
|
request: V2EvalsDeleteRequest$zodSchema
|
|
57010
57148
|
};
|
|
57011
57149
|
tool$evalsV2EvalsDelete = {
|
|
@@ -57020,7 +57158,7 @@ Permanently deletes an eval and all of its saved configurations.`,
|
|
|
57020
57158
|
openWorldHint: false,
|
|
57021
57159
|
readOnlyHint: false
|
|
57022
57160
|
},
|
|
57023
|
-
args:
|
|
57161
|
+
args: args16,
|
|
57024
57162
|
tool: async (client, args, ctx) => {
|
|
57025
57163
|
const [result] = await evalsV2EvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57026
57164
|
if (!result.ok) {
|
|
@@ -57036,9 +57174,9 @@ Permanently deletes an eval and all of its saved configurations.`,
|
|
|
57036
57174
|
|
|
57037
57175
|
// src/funcs/evalsV2EvalsList.ts
|
|
57038
57176
|
function evalsV2EvalsList(client$, options) {
|
|
57039
|
-
return new APIPromise($
|
|
57177
|
+
return new APIPromise($do20(client$, options));
|
|
57040
57178
|
}
|
|
57041
|
-
async function $
|
|
57179
|
+
async function $do20(client$, options) {
|
|
57042
57180
|
const path$ = pathToFunc("/v2/evals")();
|
|
57043
57181
|
const headers$ = new Headers(compactMap({
|
|
57044
57182
|
Accept: "application/json"
|
|
@@ -57141,24 +57279,806 @@ var init_v2evalsretrieveop = __esm(() => {
|
|
|
57141
57279
|
]);
|
|
57142
57280
|
});
|
|
57143
57281
|
|
|
57144
|
-
// src/funcs/evalsV2EvalsRetrieve.ts
|
|
57145
|
-
function evalsV2EvalsRetrieve(client$, request, options) {
|
|
57146
|
-
return new APIPromise($
|
|
57282
|
+
// src/funcs/evalsV2EvalsRetrieve.ts
|
|
57283
|
+
function evalsV2EvalsRetrieve(client$, request, options) {
|
|
57284
|
+
return new APIPromise($do21(client$, request, options));
|
|
57285
|
+
}
|
|
57286
|
+
async function $do21(client$, request, options) {
|
|
57287
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57288
|
+
if (!parsed$.ok) {
|
|
57289
|
+
return [parsed$, { status: "invalid" }];
|
|
57290
|
+
}
|
|
57291
|
+
const payload$ = parsed$.value;
|
|
57292
|
+
const body$ = null;
|
|
57293
|
+
const pathParams$ = {
|
|
57294
|
+
eval_id: encodeSimple("eval_id", payload$.eval_id, {
|
|
57295
|
+
explode: false,
|
|
57296
|
+
charEncoding: "percent"
|
|
57297
|
+
})
|
|
57298
|
+
};
|
|
57299
|
+
const path$ = pathToFunc("/v2/evals/{eval_id}")(pathParams$);
|
|
57300
|
+
const headers$ = new Headers(compactMap({
|
|
57301
|
+
Accept: "application/json"
|
|
57302
|
+
}));
|
|
57303
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57304
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57305
|
+
const context = {
|
|
57306
|
+
options: client$._options,
|
|
57307
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57308
|
+
operationID: "v2_evals_retrieve",
|
|
57309
|
+
oAuth2Scopes: null,
|
|
57310
|
+
resolvedSecurity: requestSecurity,
|
|
57311
|
+
securitySource: client$._options.security,
|
|
57312
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57313
|
+
retryCodes: options?.retryCodes || [
|
|
57314
|
+
"429",
|
|
57315
|
+
"500",
|
|
57316
|
+
"502",
|
|
57317
|
+
"503",
|
|
57318
|
+
"504"
|
|
57319
|
+
]
|
|
57320
|
+
};
|
|
57321
|
+
const requestRes = client$._createRequest(context, {
|
|
57322
|
+
security: requestSecurity,
|
|
57323
|
+
method: "GET",
|
|
57324
|
+
baseURL: options?.serverURL,
|
|
57325
|
+
path: path$,
|
|
57326
|
+
headers: headers$,
|
|
57327
|
+
body: body$,
|
|
57328
|
+
userAgent: client$._options.userAgent,
|
|
57329
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57330
|
+
}, options);
|
|
57331
|
+
if (!requestRes.ok) {
|
|
57332
|
+
return [requestRes, { status: "invalid" }];
|
|
57333
|
+
}
|
|
57334
|
+
const req$ = requestRes.value;
|
|
57335
|
+
const doResult = await client$._do(req$, {
|
|
57336
|
+
context,
|
|
57337
|
+
errorCodes: [],
|
|
57338
|
+
retryConfig: context.retryConfig,
|
|
57339
|
+
retryCodes: context.retryCodes
|
|
57340
|
+
});
|
|
57341
|
+
if (!doResult.ok) {
|
|
57342
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
57343
|
+
}
|
|
57344
|
+
return [doResult, {
|
|
57345
|
+
status: "complete",
|
|
57346
|
+
request: req$,
|
|
57347
|
+
response: doResult.value
|
|
57348
|
+
}];
|
|
57349
|
+
}
|
|
57350
|
+
var init_evalsV2EvalsRetrieve = __esm(() => {
|
|
57351
|
+
init_encodings();
|
|
57352
|
+
init_primitives();
|
|
57353
|
+
init_schemas4();
|
|
57354
|
+
init_security();
|
|
57355
|
+
init_url();
|
|
57356
|
+
init_v2evalsretrieveop();
|
|
57357
|
+
init_async();
|
|
57358
|
+
});
|
|
57359
|
+
|
|
57360
|
+
// src/mcp-server/tools/evalsV2EvalsRetrieve.ts
|
|
57361
|
+
var args17, tool$evalsV2EvalsRetrieve;
|
|
57362
|
+
var init_evalsV2EvalsRetrieve2 = __esm(() => {
|
|
57363
|
+
init_evalsV2EvalsRetrieve();
|
|
57364
|
+
init_v2evalsretrieveop();
|
|
57365
|
+
init_tools();
|
|
57366
|
+
args17 = {
|
|
57367
|
+
request: V2EvalsRetrieveRequest$zodSchema
|
|
57368
|
+
};
|
|
57369
|
+
tool$evalsV2EvalsRetrieve = {
|
|
57370
|
+
name: "evals-v2-evals-retrieve",
|
|
57371
|
+
description: `Retrieve Eval
|
|
57372
|
+
|
|
57373
|
+
Returns one reusable eval simulation definition.`,
|
|
57374
|
+
annotations: {
|
|
57375
|
+
title: "",
|
|
57376
|
+
destructiveHint: false,
|
|
57377
|
+
idempotentHint: false,
|
|
57378
|
+
openWorldHint: false,
|
|
57379
|
+
readOnlyHint: true
|
|
57380
|
+
},
|
|
57381
|
+
args: args17,
|
|
57382
|
+
tool: async (client, args, ctx) => {
|
|
57383
|
+
const [result] = await evalsV2EvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57384
|
+
if (!result.ok) {
|
|
57385
|
+
return {
|
|
57386
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57387
|
+
isError: true
|
|
57388
|
+
};
|
|
57389
|
+
}
|
|
57390
|
+
return formatResult(result.value);
|
|
57391
|
+
}
|
|
57392
|
+
};
|
|
57393
|
+
});
|
|
57394
|
+
|
|
57395
|
+
// src/models/updatev2evalrequest.ts
|
|
57396
|
+
var UpdateV2EvalRequestMcp$zodSchema, UpdateV2EvalRequest$zodSchema;
|
|
57397
|
+
var init_updatev2evalrequest = __esm(() => {
|
|
57398
|
+
init_zod();
|
|
57399
|
+
init_searchgroundingmode();
|
|
57400
|
+
init_v2inlinemcpdefinition();
|
|
57401
|
+
init_v2savedmcpreference();
|
|
57402
|
+
UpdateV2EvalRequestMcp$zodSchema = union([
|
|
57403
|
+
V2InlineMcpDefinition$zodSchema,
|
|
57404
|
+
V2SavedMcpReference$zodSchema
|
|
57405
|
+
]);
|
|
57406
|
+
UpdateV2EvalRequest$zodSchema = object({
|
|
57407
|
+
agent: array(string2()).nullable().optional(),
|
|
57408
|
+
cleanup_commands: array(string2()).nullable().optional().describe("Replacement cleanup commands. Pass an empty array to clear all saved cleanup commands."),
|
|
57409
|
+
clis: array(string2()).nullable().optional().describe("Replacement saved CLI IDs or shell installation commands. UUID values resolve saved CLIs; every other value is an installation command. Pass an empty array to clear all CLIs."),
|
|
57410
|
+
judges: array(string2()).nullable().optional().describe("Replacement success criteria for the eval."),
|
|
57411
|
+
mcps: array(union([
|
|
57412
|
+
V2InlineMcpDefinition$zodSchema,
|
|
57413
|
+
V2SavedMcpReference$zodSchema
|
|
57414
|
+
])).nullable().optional(),
|
|
57415
|
+
name: string2().optional(),
|
|
57416
|
+
persona: string2().optional().describe("Replacement eval persona. Pass null to clear it; omit it to leave the saved value unchanged."),
|
|
57417
|
+
prompts: array(string2()).nullable().optional(),
|
|
57418
|
+
runs: int().optional(),
|
|
57419
|
+
search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Replacement web-retrieval policy. Omit it to keep the saved value."),
|
|
57420
|
+
setup_commands: array(string2()).nullable().optional().describe("Replacement setup commands. Pass an empty array to clear all saved setup commands."),
|
|
57421
|
+
tags: array(string2()).nullable().optional().describe("Replacement labels for the eval. Pass an empty array to clear all tags.")
|
|
57422
|
+
});
|
|
57423
|
+
});
|
|
57424
|
+
|
|
57425
|
+
// src/models/v2evalsupdateop.ts
|
|
57426
|
+
var V2EvalsUpdateRequest$zodSchema, V2EvalsUpdateResponse$zodSchema;
|
|
57427
|
+
var init_v2evalsupdateop = __esm(() => {
|
|
57428
|
+
init_zod();
|
|
57429
|
+
init_httpvalidationerror();
|
|
57430
|
+
init_updatev2evalrequest();
|
|
57431
|
+
init_v2eval();
|
|
57432
|
+
V2EvalsUpdateRequest$zodSchema = object({
|
|
57433
|
+
body: UpdateV2EvalRequest$zodSchema,
|
|
57434
|
+
eval_id: string2()
|
|
57435
|
+
});
|
|
57436
|
+
V2EvalsUpdateResponse$zodSchema = union([
|
|
57437
|
+
V2Eval$zodSchema,
|
|
57438
|
+
HTTPValidationError$zodSchema
|
|
57439
|
+
]);
|
|
57440
|
+
});
|
|
57441
|
+
|
|
57442
|
+
// src/funcs/evalsV2EvalsUpdate.ts
|
|
57443
|
+
function evalsV2EvalsUpdate(client$, request, options) {
|
|
57444
|
+
return new APIPromise($do22(client$, request, options));
|
|
57445
|
+
}
|
|
57446
|
+
async function $do22(client$, request, options) {
|
|
57447
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57448
|
+
if (!parsed$.ok) {
|
|
57449
|
+
return [parsed$, { status: "invalid" }];
|
|
57450
|
+
}
|
|
57451
|
+
const payload$ = parsed$.value;
|
|
57452
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
57453
|
+
const pathParams$ = {
|
|
57454
|
+
eval_id: encodeSimple("eval_id", payload$.eval_id, {
|
|
57455
|
+
explode: false,
|
|
57456
|
+
charEncoding: "percent"
|
|
57457
|
+
})
|
|
57458
|
+
};
|
|
57459
|
+
const path$ = pathToFunc("/v2/evals/{eval_id}")(pathParams$);
|
|
57460
|
+
const headers$ = new Headers(compactMap({
|
|
57461
|
+
"Content-Type": "application/json",
|
|
57462
|
+
Accept: "application/json"
|
|
57463
|
+
}));
|
|
57464
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57465
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57466
|
+
const context = {
|
|
57467
|
+
options: client$._options,
|
|
57468
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57469
|
+
operationID: "v2_evals_update",
|
|
57470
|
+
oAuth2Scopes: null,
|
|
57471
|
+
resolvedSecurity: requestSecurity,
|
|
57472
|
+
securitySource: client$._options.security,
|
|
57473
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57474
|
+
retryCodes: options?.retryCodes || [
|
|
57475
|
+
"429",
|
|
57476
|
+
"500",
|
|
57477
|
+
"502",
|
|
57478
|
+
"503",
|
|
57479
|
+
"504"
|
|
57480
|
+
]
|
|
57481
|
+
};
|
|
57482
|
+
const requestRes = client$._createRequest(context, {
|
|
57483
|
+
security: requestSecurity,
|
|
57484
|
+
method: "PATCH",
|
|
57485
|
+
baseURL: options?.serverURL,
|
|
57486
|
+
path: path$,
|
|
57487
|
+
headers: headers$,
|
|
57488
|
+
body: body$,
|
|
57489
|
+
userAgent: client$._options.userAgent,
|
|
57490
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57491
|
+
}, options);
|
|
57492
|
+
if (!requestRes.ok) {
|
|
57493
|
+
return [requestRes, { status: "invalid" }];
|
|
57494
|
+
}
|
|
57495
|
+
const req$ = requestRes.value;
|
|
57496
|
+
const doResult = await client$._do(req$, {
|
|
57497
|
+
context,
|
|
57498
|
+
errorCodes: [],
|
|
57499
|
+
retryConfig: context.retryConfig,
|
|
57500
|
+
retryCodes: context.retryCodes
|
|
57501
|
+
});
|
|
57502
|
+
if (!doResult.ok) {
|
|
57503
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
57504
|
+
}
|
|
57505
|
+
return [doResult, {
|
|
57506
|
+
status: "complete",
|
|
57507
|
+
request: req$,
|
|
57508
|
+
response: doResult.value
|
|
57509
|
+
}];
|
|
57510
|
+
}
|
|
57511
|
+
var init_evalsV2EvalsUpdate = __esm(() => {
|
|
57512
|
+
init_encodings();
|
|
57513
|
+
init_primitives();
|
|
57514
|
+
init_schemas4();
|
|
57515
|
+
init_security();
|
|
57516
|
+
init_url();
|
|
57517
|
+
init_v2evalsupdateop();
|
|
57518
|
+
init_async();
|
|
57519
|
+
});
|
|
57520
|
+
|
|
57521
|
+
// src/mcp-server/tools/evalsV2EvalsUpdate.ts
|
|
57522
|
+
var args18, tool$evalsV2EvalsUpdate;
|
|
57523
|
+
var init_evalsV2EvalsUpdate2 = __esm(() => {
|
|
57524
|
+
init_evalsV2EvalsUpdate();
|
|
57525
|
+
init_v2evalsupdateop();
|
|
57526
|
+
init_tools();
|
|
57527
|
+
args18 = {
|
|
57528
|
+
request: V2EvalsUpdateRequest$zodSchema
|
|
57529
|
+
};
|
|
57530
|
+
tool$evalsV2EvalsUpdate = {
|
|
57531
|
+
name: "evals-v2-evals-update",
|
|
57532
|
+
description: `Update Eval
|
|
57533
|
+
|
|
57534
|
+
Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty \`agent\`, \`clis\`, \`mcps\`, \`setup_commands\`, \`cleanup_commands\`, or \`tags\` arrays clear those collections, and \`persona: null\` clears the saved persona.`,
|
|
57535
|
+
annotations: {
|
|
57536
|
+
title: "",
|
|
57537
|
+
destructiveHint: false,
|
|
57538
|
+
idempotentHint: false,
|
|
57539
|
+
openWorldHint: false,
|
|
57540
|
+
readOnlyHint: false
|
|
57541
|
+
},
|
|
57542
|
+
args: args18,
|
|
57543
|
+
tool: async (client, args, ctx) => {
|
|
57544
|
+
const [result] = await evalsV2EvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57545
|
+
if (!result.ok) {
|
|
57546
|
+
return {
|
|
57547
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57548
|
+
isError: true
|
|
57549
|
+
};
|
|
57550
|
+
}
|
|
57551
|
+
return formatResult(result.value);
|
|
57552
|
+
}
|
|
57553
|
+
};
|
|
57554
|
+
});
|
|
57555
|
+
|
|
57556
|
+
// src/models/evaltemplateruntime.ts
|
|
57557
|
+
var EvalTemplateRuntime$zodSchema;
|
|
57558
|
+
var init_evaltemplateruntime = __esm(() => {
|
|
57559
|
+
init_zod();
|
|
57560
|
+
init_searchgroundingmode();
|
|
57561
|
+
EvalTemplateRuntime$zodSchema = object({
|
|
57562
|
+
cleanup_commands: array(string2()).optional().describe("Shell commands run after each eval attempt, in order."),
|
|
57563
|
+
cli_ids: array(string2()).optional().describe("Reusable CLI IDs copied into each created eval."),
|
|
57564
|
+
environment_profile_ids: array(string2()).optional().describe("Environment profile IDs copied into each created eval."),
|
|
57565
|
+
include_brand_docs: boolean2().default(false).describe("Whether organization documentation is included at runtime."),
|
|
57566
|
+
include_env_vars: boolean2().default(true).describe("Whether selected environment profiles are enabled."),
|
|
57567
|
+
mcp_server_ids: array(string2()).optional().describe("Reusable MCP server IDs copied into each created eval."),
|
|
57568
|
+
run_on_github_pr: boolean2().default(false).describe("Whether each created eval is configured for GitHub pull requests."),
|
|
57569
|
+
search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
|
|
57570
|
+
setup_commands: array(string2()).optional().describe("Shell commands run before each eval attempt, in order."),
|
|
57571
|
+
skill_ids: array(string2()).optional().describe("Reusable skill IDs copied into each created eval."),
|
|
57572
|
+
starting_project_id: string2().nullable().optional().describe("Optional reusable repository workspace ID.")
|
|
57573
|
+
}).describe("Reusable runtime resources copied into each created eval.");
|
|
57574
|
+
});
|
|
57575
|
+
|
|
57576
|
+
// src/models/evaltemplateschedule.ts
|
|
57577
|
+
var Frequency$zodSchema, EvalTemplateSchedule$zodSchema;
|
|
57578
|
+
var init_evaltemplateschedule = __esm(() => {
|
|
57579
|
+
init_zod();
|
|
57580
|
+
Frequency$zodSchema = _enum([
|
|
57581
|
+
"daily",
|
|
57582
|
+
"every_other_day",
|
|
57583
|
+
"weekly"
|
|
57584
|
+
]).describe("Schedule cadence used when `enabled` is true.");
|
|
57585
|
+
EvalTemplateSchedule$zodSchema = object({
|
|
57586
|
+
enabled: boolean2().default(false).describe("Whether each eval created from the template receives a schedule."),
|
|
57587
|
+
frequency: Frequency$zodSchema.default("weekly").describe("Schedule cadence used when `enabled` is true.")
|
|
57588
|
+
}).describe("Schedule copied into every eval created from the template.");
|
|
57589
|
+
});
|
|
57590
|
+
|
|
57591
|
+
// src/models/graderdefinition.ts
|
|
57592
|
+
var GraderDefinition$zodSchema;
|
|
57593
|
+
var init_graderdefinition = __esm(() => {
|
|
57594
|
+
init_zod();
|
|
57595
|
+
GraderDefinition$zodSchema = object({
|
|
57596
|
+
blocking: boolean2().default(false).describe("Whether a failed or missing result from this grader fails the entire eval regardless of the aggregate score."),
|
|
57597
|
+
case_sensitive: boolean2().default(false),
|
|
57598
|
+
criteria: string2().nullable().optional(),
|
|
57599
|
+
name: string2(),
|
|
57600
|
+
needle: string2().nullable().optional(),
|
|
57601
|
+
needles: array(string2()).nullable().optional(),
|
|
57602
|
+
pattern: string2().nullable().optional(),
|
|
57603
|
+
type: string2(),
|
|
57604
|
+
weight: number2().default(1)
|
|
57605
|
+
});
|
|
57606
|
+
});
|
|
57607
|
+
|
|
57608
|
+
// src/models/createevaltemplaterequest.ts
|
|
57609
|
+
var CreateEvalTemplateRequestEvalType$zodSchema, CreateEvalTemplateRequestIncludedComponent$zodSchema, CreateEvalTemplateRequest$zodSchema;
|
|
57610
|
+
var init_createevaltemplaterequest = __esm(() => {
|
|
57611
|
+
init_zod();
|
|
57612
|
+
init_evaltemplateruntime();
|
|
57613
|
+
init_evaltemplateschedule();
|
|
57614
|
+
init_graderdefinition();
|
|
57615
|
+
CreateEvalTemplateRequestEvalType$zodSchema = _enum([
|
|
57616
|
+
"custom_eval",
|
|
57617
|
+
"agent_preference"
|
|
57618
|
+
]).describe("Kind of eval the template creates. A template only applies to evals of the same type.");
|
|
57619
|
+
CreateEvalTemplateRequestIncludedComponent$zodSchema = _enum([
|
|
57620
|
+
"judges",
|
|
57621
|
+
"targets",
|
|
57622
|
+
"persona",
|
|
57623
|
+
"competitors",
|
|
57624
|
+
"tag",
|
|
57625
|
+
"category",
|
|
57626
|
+
"runs",
|
|
57627
|
+
"schedule",
|
|
57628
|
+
"repository",
|
|
57629
|
+
"environment",
|
|
57630
|
+
"search_grounding",
|
|
57631
|
+
"skills",
|
|
57632
|
+
"mcp_servers",
|
|
57633
|
+
"clis",
|
|
57634
|
+
"brand_docs",
|
|
57635
|
+
"github_pr",
|
|
57636
|
+
"runtime_commands"
|
|
57637
|
+
]);
|
|
57638
|
+
CreateEvalTemplateRequest$zodSchema = object({
|
|
57639
|
+
category_name: string2().optional().describe("Optional category copied when `category` is included."),
|
|
57640
|
+
competitor_ids: array(string2()).optional().describe("Competitor IDs that create additional variants when `competitors` is included."),
|
|
57641
|
+
description: string2().optional().describe("Optional guidance describing when to use the template."),
|
|
57642
|
+
eval_type: CreateEvalTemplateRequestEvalType$zodSchema.default("custom_eval").describe("Kind of eval the template creates. A template only applies to evals of the same type."),
|
|
57643
|
+
included_components: array(CreateEvalTemplateRequestIncludedComponent$zodSchema).describe("Settings copied when the template is applied. Omitted components do not override the new eval; included components copy their saved value, including an empty value."),
|
|
57644
|
+
judges: array(GraderDefinition$zodSchema).optional().describe("Judge definitions copied when `judges` is included. May be empty to explicitly create the eval without template judges."),
|
|
57645
|
+
name: string2().describe("Organization-visible name for this reusable template."),
|
|
57646
|
+
persona: string2().optional().describe("Optional persona copied when `persona` is included."),
|
|
57647
|
+
runs_per_execution: int().default(1).describe("Attempt count copied when `runs` is included."),
|
|
57648
|
+
runtime: EvalTemplateRuntime$zodSchema.optional().describe("Reusable runtime resources copied into each created eval."),
|
|
57649
|
+
schedule: EvalTemplateSchedule$zodSchema.optional().describe("Schedule copied into every eval created from the template."),
|
|
57650
|
+
tag: string2().optional().describe("Optional tag copied when `tag` is included."),
|
|
57651
|
+
target_keys: array(string2()).optional().describe("Runnable target keys copied when `targets` is included, such as `agent:codex:gpt-5.6-terra`.")
|
|
57652
|
+
}).describe("Create reusable configuration before supplying prompt-specific evals.");
|
|
57653
|
+
});
|
|
57654
|
+
|
|
57655
|
+
// src/funcs/evalTemplatesV2EvalTemplatesCreate.ts
|
|
57656
|
+
function evalTemplatesV2EvalTemplatesCreate(client$, request, options) {
|
|
57657
|
+
return new APIPromise($do23(client$, request, options));
|
|
57658
|
+
}
|
|
57659
|
+
async function $do23(client$, request, options) {
|
|
57660
|
+
const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57661
|
+
if (!parsed$.ok) {
|
|
57662
|
+
return [parsed$, { status: "invalid" }];
|
|
57663
|
+
}
|
|
57664
|
+
const payload$ = parsed$.value;
|
|
57665
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
57666
|
+
const path$ = pathToFunc("/v2/eval-templates")();
|
|
57667
|
+
const headers$ = new Headers(compactMap({
|
|
57668
|
+
"Content-Type": "application/json",
|
|
57669
|
+
Accept: "application/json"
|
|
57670
|
+
}));
|
|
57671
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57672
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57673
|
+
const context = {
|
|
57674
|
+
options: client$._options,
|
|
57675
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57676
|
+
operationID: "v2_eval_templates_create",
|
|
57677
|
+
oAuth2Scopes: null,
|
|
57678
|
+
resolvedSecurity: requestSecurity,
|
|
57679
|
+
securitySource: client$._options.security,
|
|
57680
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57681
|
+
retryCodes: options?.retryCodes || [
|
|
57682
|
+
"429",
|
|
57683
|
+
"500",
|
|
57684
|
+
"502",
|
|
57685
|
+
"503",
|
|
57686
|
+
"504"
|
|
57687
|
+
]
|
|
57688
|
+
};
|
|
57689
|
+
const requestRes = client$._createRequest(context, {
|
|
57690
|
+
security: requestSecurity,
|
|
57691
|
+
method: "POST",
|
|
57692
|
+
baseURL: options?.serverURL,
|
|
57693
|
+
path: path$,
|
|
57694
|
+
headers: headers$,
|
|
57695
|
+
body: body$,
|
|
57696
|
+
userAgent: client$._options.userAgent,
|
|
57697
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57698
|
+
}, options);
|
|
57699
|
+
if (!requestRes.ok) {
|
|
57700
|
+
return [requestRes, { status: "invalid" }];
|
|
57701
|
+
}
|
|
57702
|
+
const req$ = requestRes.value;
|
|
57703
|
+
const doResult = await client$._do(req$, {
|
|
57704
|
+
context,
|
|
57705
|
+
errorCodes: [],
|
|
57706
|
+
retryConfig: context.retryConfig,
|
|
57707
|
+
retryCodes: context.retryCodes
|
|
57708
|
+
});
|
|
57709
|
+
if (!doResult.ok) {
|
|
57710
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
57711
|
+
}
|
|
57712
|
+
return [doResult, {
|
|
57713
|
+
status: "complete",
|
|
57714
|
+
request: req$,
|
|
57715
|
+
response: doResult.value
|
|
57716
|
+
}];
|
|
57717
|
+
}
|
|
57718
|
+
var init_evalTemplatesV2EvalTemplatesCreate = __esm(() => {
|
|
57719
|
+
init_encodings();
|
|
57720
|
+
init_primitives();
|
|
57721
|
+
init_schemas4();
|
|
57722
|
+
init_security();
|
|
57723
|
+
init_url();
|
|
57724
|
+
init_createevaltemplaterequest();
|
|
57725
|
+
init_async();
|
|
57726
|
+
});
|
|
57727
|
+
|
|
57728
|
+
// src/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.ts
|
|
57729
|
+
var args19, tool$evalTemplatesV2EvalTemplatesCreate;
|
|
57730
|
+
var init_evalTemplatesV2EvalTemplatesCreate2 = __esm(() => {
|
|
57731
|
+
init_evalTemplatesV2EvalTemplatesCreate();
|
|
57732
|
+
init_createevaltemplaterequest();
|
|
57733
|
+
init_tools();
|
|
57734
|
+
args19 = {
|
|
57735
|
+
request: CreateEvalTemplateRequest$zodSchema
|
|
57736
|
+
};
|
|
57737
|
+
tool$evalTemplatesV2EvalTemplatesCreate = {
|
|
57738
|
+
name: "eval-templates-v2-eval-templates-create",
|
|
57739
|
+
description: `Create an Eval template
|
|
57740
|
+
|
|
57741
|
+
Step 1 of the reusable template workflow. Creates an organization-owned Eval template containing only the configuration components selected in \`included_components\`. Do not include task prompts in the template. The response returns the template \`id\` and \`version\`; pass them as \`template_id\` and \`expected_template_version\` to \`POST /v2/evals/batch\` with each eval's name and prompts. Applying a template copies its values into the new evals without creating a live link.`,
|
|
57742
|
+
annotations: {
|
|
57743
|
+
title: "",
|
|
57744
|
+
destructiveHint: false,
|
|
57745
|
+
idempotentHint: false,
|
|
57746
|
+
openWorldHint: false,
|
|
57747
|
+
readOnlyHint: false
|
|
57748
|
+
},
|
|
57749
|
+
args: args19,
|
|
57750
|
+
tool: async (client, args, ctx) => {
|
|
57751
|
+
const [result] = await evalTemplatesV2EvalTemplatesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57752
|
+
if (!result.ok) {
|
|
57753
|
+
return {
|
|
57754
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57755
|
+
isError: true
|
|
57756
|
+
};
|
|
57757
|
+
}
|
|
57758
|
+
return formatResult(result.value);
|
|
57759
|
+
}
|
|
57760
|
+
};
|
|
57761
|
+
});
|
|
57762
|
+
|
|
57763
|
+
// src/models/evaltemplate.ts
|
|
57764
|
+
var EvalTemplateEvalType$zodSchema, EvalTemplateIncludedComponent$zodSchema, EvalTemplate$zodSchema;
|
|
57765
|
+
var init_evaltemplate = __esm(() => {
|
|
57766
|
+
init_zod();
|
|
57767
|
+
init_evaltemplateruntime();
|
|
57768
|
+
init_evaltemplateschedule();
|
|
57769
|
+
init_graderdefinition();
|
|
57770
|
+
EvalTemplateEvalType$zodSchema = _enum([
|
|
57771
|
+
"custom_eval",
|
|
57772
|
+
"agent_preference"
|
|
57773
|
+
]).describe("Kind of eval the template creates. A template only applies to evals of the same type.");
|
|
57774
|
+
EvalTemplateIncludedComponent$zodSchema = _enum([
|
|
57775
|
+
"judges",
|
|
57776
|
+
"targets",
|
|
57777
|
+
"persona",
|
|
57778
|
+
"competitors",
|
|
57779
|
+
"tag",
|
|
57780
|
+
"category",
|
|
57781
|
+
"runs",
|
|
57782
|
+
"schedule",
|
|
57783
|
+
"repository",
|
|
57784
|
+
"environment",
|
|
57785
|
+
"search_grounding",
|
|
57786
|
+
"skills",
|
|
57787
|
+
"mcp_servers",
|
|
57788
|
+
"clis",
|
|
57789
|
+
"brand_docs",
|
|
57790
|
+
"github_pr",
|
|
57791
|
+
"runtime_commands"
|
|
57792
|
+
]);
|
|
57793
|
+
EvalTemplate$zodSchema = object({
|
|
57794
|
+
category_name: string2().nullable().optional().describe("Optional category copied when `category` is included."),
|
|
57795
|
+
competitor_ids: array(string2()).optional().describe("Competitor IDs that create additional variants when `competitors` is included."),
|
|
57796
|
+
created_at: datetime2({ offset: true }),
|
|
57797
|
+
created_by: string2().nullable().optional(),
|
|
57798
|
+
deleted_at: datetime2({ offset: true }).nullable().optional(),
|
|
57799
|
+
description: string2().nullable().optional().describe("Optional guidance describing when to use the template."),
|
|
57800
|
+
eval_type: EvalTemplateEvalType$zodSchema.default("custom_eval").describe("Kind of eval the template creates. A template only applies to evals of the same type."),
|
|
57801
|
+
id: string2(),
|
|
57802
|
+
included_components: array(EvalTemplateIncludedComponent$zodSchema).describe("Settings copied when the template is applied. Omitted components do not override the new eval; included components copy their saved value, including an empty value."),
|
|
57803
|
+
judges: array(GraderDefinition$zodSchema).optional().describe("Judge definitions copied when `judges` is included. May be empty to explicitly create the eval without template judges."),
|
|
57804
|
+
name: string2().describe("Organization-visible name for this reusable template."),
|
|
57805
|
+
org_id: string2(),
|
|
57806
|
+
persona: string2().nullable().optional().describe("Optional persona copied when `persona` is included."),
|
|
57807
|
+
runs_per_execution: int().default(1).describe("Attempt count copied when `runs` is included."),
|
|
57808
|
+
runtime: EvalTemplateRuntime$zodSchema.optional().describe("Reusable runtime resources copied into each created eval."),
|
|
57809
|
+
schedule: EvalTemplateSchedule$zodSchema.optional().describe("Schedule copied into every eval created from the template."),
|
|
57810
|
+
tag: string2().nullable().optional().describe("Optional tag copied when `tag` is included."),
|
|
57811
|
+
target_keys: array(string2()).optional().describe("Runnable target keys copied when `targets` is included, such as `agent:codex:gpt-5.6-terra`."),
|
|
57812
|
+
updated_at: datetime2({ offset: true }),
|
|
57813
|
+
version: int()
|
|
57814
|
+
});
|
|
57815
|
+
});
|
|
57816
|
+
|
|
57817
|
+
// src/models/v2evaltemplatesdeleteop.ts
|
|
57818
|
+
var V2EvalTemplatesDeleteRequest$zodSchema, V2EvalTemplatesDeleteConflictResponseBody$zodSchema, V2EvalTemplatesDeleteNotFoundResponseBody$zodSchema, V2EvalTemplatesDeleteResponse$zodSchema;
|
|
57819
|
+
var init_v2evaltemplatesdeleteop = __esm(() => {
|
|
57820
|
+
init_zod();
|
|
57821
|
+
init_evaltemplate();
|
|
57822
|
+
init_httpvalidationerror();
|
|
57823
|
+
V2EvalTemplatesDeleteRequest$zodSchema = object({
|
|
57824
|
+
template_id: string2()
|
|
57825
|
+
});
|
|
57826
|
+
V2EvalTemplatesDeleteConflictResponseBody$zodSchema = object({
|
|
57827
|
+
detail: string2()
|
|
57828
|
+
}).describe("The supplied template version is stale.");
|
|
57829
|
+
V2EvalTemplatesDeleteNotFoundResponseBody$zodSchema = object({
|
|
57830
|
+
detail: string2()
|
|
57831
|
+
}).describe("The Eval template does not exist in the organization.");
|
|
57832
|
+
V2EvalTemplatesDeleteResponse$zodSchema = union([
|
|
57833
|
+
EvalTemplate$zodSchema,
|
|
57834
|
+
lazy(() => V2EvalTemplatesDeleteNotFoundResponseBody$zodSchema),
|
|
57835
|
+
lazy(() => V2EvalTemplatesDeleteConflictResponseBody$zodSchema),
|
|
57836
|
+
HTTPValidationError$zodSchema
|
|
57837
|
+
]);
|
|
57838
|
+
});
|
|
57839
|
+
|
|
57840
|
+
// src/funcs/evalTemplatesV2EvalTemplatesDelete.ts
|
|
57841
|
+
function evalTemplatesV2EvalTemplatesDelete(client$, request, options) {
|
|
57842
|
+
return new APIPromise($do24(client$, request, options));
|
|
57843
|
+
}
|
|
57844
|
+
async function $do24(client$, request, options) {
|
|
57845
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57846
|
+
if (!parsed$.ok) {
|
|
57847
|
+
return [parsed$, { status: "invalid" }];
|
|
57848
|
+
}
|
|
57849
|
+
const payload$ = parsed$.value;
|
|
57850
|
+
const body$ = null;
|
|
57851
|
+
const pathParams$ = {
|
|
57852
|
+
template_id: encodeSimple("template_id", payload$.template_id, {
|
|
57853
|
+
explode: false,
|
|
57854
|
+
charEncoding: "percent"
|
|
57855
|
+
})
|
|
57856
|
+
};
|
|
57857
|
+
const path$ = pathToFunc("/v2/eval-templates/{template_id}")(pathParams$);
|
|
57858
|
+
const headers$ = new Headers(compactMap({
|
|
57859
|
+
Accept: "application/json"
|
|
57860
|
+
}));
|
|
57861
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57862
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57863
|
+
const context = {
|
|
57864
|
+
options: client$._options,
|
|
57865
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57866
|
+
operationID: "v2_eval_templates_delete",
|
|
57867
|
+
oAuth2Scopes: null,
|
|
57868
|
+
resolvedSecurity: requestSecurity,
|
|
57869
|
+
securitySource: client$._options.security,
|
|
57870
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57871
|
+
retryCodes: options?.retryCodes || [
|
|
57872
|
+
"429",
|
|
57873
|
+
"500",
|
|
57874
|
+
"502",
|
|
57875
|
+
"503",
|
|
57876
|
+
"504"
|
|
57877
|
+
]
|
|
57878
|
+
};
|
|
57879
|
+
const requestRes = client$._createRequest(context, {
|
|
57880
|
+
security: requestSecurity,
|
|
57881
|
+
method: "DELETE",
|
|
57882
|
+
baseURL: options?.serverURL,
|
|
57883
|
+
path: path$,
|
|
57884
|
+
headers: headers$,
|
|
57885
|
+
body: body$,
|
|
57886
|
+
userAgent: client$._options.userAgent,
|
|
57887
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57888
|
+
}, options);
|
|
57889
|
+
if (!requestRes.ok) {
|
|
57890
|
+
return [requestRes, { status: "invalid" }];
|
|
57891
|
+
}
|
|
57892
|
+
const req$ = requestRes.value;
|
|
57893
|
+
const doResult = await client$._do(req$, {
|
|
57894
|
+
context,
|
|
57895
|
+
errorCodes: [],
|
|
57896
|
+
retryConfig: context.retryConfig,
|
|
57897
|
+
retryCodes: context.retryCodes
|
|
57898
|
+
});
|
|
57899
|
+
if (!doResult.ok) {
|
|
57900
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
57901
|
+
}
|
|
57902
|
+
return [doResult, {
|
|
57903
|
+
status: "complete",
|
|
57904
|
+
request: req$,
|
|
57905
|
+
response: doResult.value
|
|
57906
|
+
}];
|
|
57907
|
+
}
|
|
57908
|
+
var init_evalTemplatesV2EvalTemplatesDelete = __esm(() => {
|
|
57909
|
+
init_encodings();
|
|
57910
|
+
init_primitives();
|
|
57911
|
+
init_schemas4();
|
|
57912
|
+
init_security();
|
|
57913
|
+
init_url();
|
|
57914
|
+
init_v2evaltemplatesdeleteop();
|
|
57915
|
+
init_async();
|
|
57916
|
+
});
|
|
57917
|
+
|
|
57918
|
+
// src/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.ts
|
|
57919
|
+
var args20, tool$evalTemplatesV2EvalTemplatesDelete;
|
|
57920
|
+
var init_evalTemplatesV2EvalTemplatesDelete2 = __esm(() => {
|
|
57921
|
+
init_evalTemplatesV2EvalTemplatesDelete();
|
|
57922
|
+
init_v2evaltemplatesdeleteop();
|
|
57923
|
+
init_tools();
|
|
57924
|
+
args20 = {
|
|
57925
|
+
request: V2EvalTemplatesDeleteRequest$zodSchema
|
|
57926
|
+
};
|
|
57927
|
+
tool$evalTemplatesV2EvalTemplatesDelete = {
|
|
57928
|
+
name: "eval-templates-v2-eval-templates-delete",
|
|
57929
|
+
description: `Delete an Eval template
|
|
57930
|
+
|
|
57931
|
+
Soft-deletes an Eval template. Evals previously created from it remain independent and continue to run with their copied configuration.`,
|
|
57932
|
+
annotations: {
|
|
57933
|
+
title: "",
|
|
57934
|
+
destructiveHint: true,
|
|
57935
|
+
idempotentHint: false,
|
|
57936
|
+
openWorldHint: false,
|
|
57937
|
+
readOnlyHint: false
|
|
57938
|
+
},
|
|
57939
|
+
args: args20,
|
|
57940
|
+
tool: async (client, args, ctx) => {
|
|
57941
|
+
const [result] = await evalTemplatesV2EvalTemplatesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57942
|
+
if (!result.ok) {
|
|
57943
|
+
return {
|
|
57944
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57945
|
+
isError: true
|
|
57946
|
+
};
|
|
57947
|
+
}
|
|
57948
|
+
return formatResult(result.value);
|
|
57949
|
+
}
|
|
57950
|
+
};
|
|
57951
|
+
});
|
|
57952
|
+
|
|
57953
|
+
// src/funcs/evalTemplatesV2EvalTemplatesList.ts
|
|
57954
|
+
function evalTemplatesV2EvalTemplatesList(client$, options) {
|
|
57955
|
+
return new APIPromise($do25(client$, options));
|
|
57956
|
+
}
|
|
57957
|
+
async function $do25(client$, options) {
|
|
57958
|
+
const path$ = pathToFunc("/v2/eval-templates")();
|
|
57959
|
+
const headers$ = new Headers(compactMap({
|
|
57960
|
+
Accept: "application/json"
|
|
57961
|
+
}));
|
|
57962
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57963
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57964
|
+
const context = {
|
|
57965
|
+
options: client$._options,
|
|
57966
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57967
|
+
operationID: "v2_eval_templates_list",
|
|
57968
|
+
oAuth2Scopes: null,
|
|
57969
|
+
resolvedSecurity: requestSecurity,
|
|
57970
|
+
securitySource: client$._options.security,
|
|
57971
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57972
|
+
retryCodes: options?.retryCodes || [
|
|
57973
|
+
"429",
|
|
57974
|
+
"500",
|
|
57975
|
+
"502",
|
|
57976
|
+
"503",
|
|
57977
|
+
"504"
|
|
57978
|
+
]
|
|
57979
|
+
};
|
|
57980
|
+
const requestRes = client$._createRequest(context, {
|
|
57981
|
+
security: requestSecurity,
|
|
57982
|
+
method: "GET",
|
|
57983
|
+
baseURL: options?.serverURL,
|
|
57984
|
+
path: path$,
|
|
57985
|
+
headers: headers$,
|
|
57986
|
+
userAgent: client$._options.userAgent,
|
|
57987
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57988
|
+
}, options);
|
|
57989
|
+
if (!requestRes.ok) {
|
|
57990
|
+
return [requestRes, { status: "invalid" }];
|
|
57991
|
+
}
|
|
57992
|
+
const req$ = requestRes.value;
|
|
57993
|
+
const doResult = await client$._do(req$, {
|
|
57994
|
+
context,
|
|
57995
|
+
errorCodes: [],
|
|
57996
|
+
retryConfig: context.retryConfig,
|
|
57997
|
+
retryCodes: context.retryCodes
|
|
57998
|
+
});
|
|
57999
|
+
if (!doResult.ok) {
|
|
58000
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
58001
|
+
}
|
|
58002
|
+
return [doResult, {
|
|
58003
|
+
status: "complete",
|
|
58004
|
+
request: req$,
|
|
58005
|
+
response: doResult.value
|
|
58006
|
+
}];
|
|
58007
|
+
}
|
|
58008
|
+
var init_evalTemplatesV2EvalTemplatesList = __esm(() => {
|
|
58009
|
+
init_primitives();
|
|
58010
|
+
init_security();
|
|
58011
|
+
init_url();
|
|
58012
|
+
init_async();
|
|
58013
|
+
});
|
|
58014
|
+
|
|
58015
|
+
// src/mcp-server/tools/evalTemplatesV2EvalTemplatesList.ts
|
|
58016
|
+
var tool$evalTemplatesV2EvalTemplatesList;
|
|
58017
|
+
var init_evalTemplatesV2EvalTemplatesList2 = __esm(() => {
|
|
58018
|
+
init_evalTemplatesV2EvalTemplatesList();
|
|
58019
|
+
init_tools();
|
|
58020
|
+
tool$evalTemplatesV2EvalTemplatesList = {
|
|
58021
|
+
name: "eval-templates-v2-eval-templates-list",
|
|
58022
|
+
description: `List Eval templates
|
|
58023
|
+
|
|
58024
|
+
Returns active reusable Eval templates owned by the authenticated organization. Templates contain reusable configuration and never task prompts.`,
|
|
58025
|
+
annotations: {
|
|
58026
|
+
title: "",
|
|
58027
|
+
destructiveHint: false,
|
|
58028
|
+
idempotentHint: false,
|
|
58029
|
+
openWorldHint: false,
|
|
58030
|
+
readOnlyHint: true
|
|
58031
|
+
},
|
|
58032
|
+
tool: async (client, ctx) => {
|
|
58033
|
+
const [result] = await evalTemplatesV2EvalTemplatesList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58034
|
+
if (!result.ok) {
|
|
58035
|
+
return {
|
|
58036
|
+
content: [{ type: "text", text: result.error.message }],
|
|
58037
|
+
isError: true
|
|
58038
|
+
};
|
|
58039
|
+
}
|
|
58040
|
+
return formatResult(result.value);
|
|
58041
|
+
}
|
|
58042
|
+
};
|
|
58043
|
+
});
|
|
58044
|
+
|
|
58045
|
+
// src/models/v2evaltemplatesretrieveop.ts
|
|
58046
|
+
var V2EvalTemplatesRetrieveRequest$zodSchema, V2EvalTemplatesRetrieveResponseBody$zodSchema, V2EvalTemplatesRetrieveResponse$zodSchema;
|
|
58047
|
+
var init_v2evaltemplatesretrieveop = __esm(() => {
|
|
58048
|
+
init_zod();
|
|
58049
|
+
init_evaltemplate();
|
|
58050
|
+
init_httpvalidationerror();
|
|
58051
|
+
V2EvalTemplatesRetrieveRequest$zodSchema = object({
|
|
58052
|
+
template_id: string2()
|
|
58053
|
+
});
|
|
58054
|
+
V2EvalTemplatesRetrieveResponseBody$zodSchema = object({
|
|
58055
|
+
detail: string2()
|
|
58056
|
+
}).describe("The Eval template does not exist in the organization.");
|
|
58057
|
+
V2EvalTemplatesRetrieveResponse$zodSchema = union([
|
|
58058
|
+
EvalTemplate$zodSchema,
|
|
58059
|
+
lazy(() => V2EvalTemplatesRetrieveResponseBody$zodSchema),
|
|
58060
|
+
HTTPValidationError$zodSchema
|
|
58061
|
+
]);
|
|
58062
|
+
});
|
|
58063
|
+
|
|
58064
|
+
// src/funcs/evalTemplatesV2EvalTemplatesRetrieve.ts
|
|
58065
|
+
function evalTemplatesV2EvalTemplatesRetrieve(client$, request, options) {
|
|
58066
|
+
return new APIPromise($do26(client$, request, options));
|
|
57147
58067
|
}
|
|
57148
|
-
async function $
|
|
57149
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
58068
|
+
async function $do26(client$, request, options) {
|
|
58069
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57150
58070
|
if (!parsed$.ok) {
|
|
57151
58071
|
return [parsed$, { status: "invalid" }];
|
|
57152
58072
|
}
|
|
57153
58073
|
const payload$ = parsed$.value;
|
|
57154
58074
|
const body$ = null;
|
|
57155
58075
|
const pathParams$ = {
|
|
57156
|
-
|
|
58076
|
+
template_id: encodeSimple("template_id", payload$.template_id, {
|
|
57157
58077
|
explode: false,
|
|
57158
58078
|
charEncoding: "percent"
|
|
57159
58079
|
})
|
|
57160
58080
|
};
|
|
57161
|
-
const path$ = pathToFunc("/v2/
|
|
58081
|
+
const path$ = pathToFunc("/v2/eval-templates/{template_id}")(pathParams$);
|
|
57162
58082
|
const headers$ = new Headers(compactMap({
|
|
57163
58083
|
Accept: "application/json"
|
|
57164
58084
|
}));
|
|
@@ -57167,7 +58087,7 @@ async function $do20(client$, request, options) {
|
|
|
57167
58087
|
const context = {
|
|
57168
58088
|
options: client$._options,
|
|
57169
58089
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57170
|
-
operationID: "
|
|
58090
|
+
operationID: "v2_eval_templates_retrieve",
|
|
57171
58091
|
oAuth2Scopes: null,
|
|
57172
58092
|
resolvedSecurity: requestSecurity,
|
|
57173
58093
|
securitySource: client$._options.security,
|
|
@@ -57209,30 +58129,30 @@ async function $do20(client$, request, options) {
|
|
|
57209
58129
|
response: doResult.value
|
|
57210
58130
|
}];
|
|
57211
58131
|
}
|
|
57212
|
-
var
|
|
58132
|
+
var init_evalTemplatesV2EvalTemplatesRetrieve = __esm(() => {
|
|
57213
58133
|
init_encodings();
|
|
57214
58134
|
init_primitives();
|
|
57215
58135
|
init_schemas4();
|
|
57216
58136
|
init_security();
|
|
57217
58137
|
init_url();
|
|
57218
|
-
|
|
58138
|
+
init_v2evaltemplatesretrieveop();
|
|
57219
58139
|
init_async();
|
|
57220
58140
|
});
|
|
57221
58141
|
|
|
57222
|
-
// src/mcp-server/tools/
|
|
57223
|
-
var
|
|
57224
|
-
var
|
|
57225
|
-
|
|
57226
|
-
|
|
58142
|
+
// src/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.ts
|
|
58143
|
+
var args21, tool$evalTemplatesV2EvalTemplatesRetrieve;
|
|
58144
|
+
var init_evalTemplatesV2EvalTemplatesRetrieve2 = __esm(() => {
|
|
58145
|
+
init_evalTemplatesV2EvalTemplatesRetrieve();
|
|
58146
|
+
init_v2evaltemplatesretrieveop();
|
|
57227
58147
|
init_tools();
|
|
57228
|
-
|
|
57229
|
-
request:
|
|
58148
|
+
args21 = {
|
|
58149
|
+
request: V2EvalTemplatesRetrieveRequest$zodSchema
|
|
57230
58150
|
};
|
|
57231
|
-
tool$
|
|
57232
|
-
name: "
|
|
57233
|
-
description: `Retrieve Eval
|
|
58151
|
+
tool$evalTemplatesV2EvalTemplatesRetrieve = {
|
|
58152
|
+
name: "eval-templates-v2-eval-templates-retrieve",
|
|
58153
|
+
description: `Retrieve an Eval template
|
|
57234
58154
|
|
|
57235
|
-
Returns one reusable
|
|
58155
|
+
Returns one active reusable Eval template.`,
|
|
57236
58156
|
annotations: {
|
|
57237
58157
|
title: "",
|
|
57238
58158
|
destructiveHint: false,
|
|
@@ -57240,9 +58160,9 @@ Returns one reusable eval simulation definition.`,
|
|
|
57240
58160
|
openWorldHint: false,
|
|
57241
58161
|
readOnlyHint: true
|
|
57242
58162
|
},
|
|
57243
|
-
args:
|
|
58163
|
+
args: args21,
|
|
57244
58164
|
tool: async (client, args, ctx) => {
|
|
57245
|
-
const [result] = await
|
|
58165
|
+
const [result] = await evalTemplatesV2EvalTemplatesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57246
58166
|
if (!result.ok) {
|
|
57247
58167
|
return {
|
|
57248
58168
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57254,71 +58174,101 @@ Returns one reusable eval simulation definition.`,
|
|
|
57254
58174
|
};
|
|
57255
58175
|
});
|
|
57256
58176
|
|
|
57257
|
-
// src/models/
|
|
57258
|
-
var
|
|
57259
|
-
var
|
|
58177
|
+
// src/models/updateevaltemplaterequest.ts
|
|
58178
|
+
var UpdateEvalTemplateRequestEvalType$zodSchema, UpdateEvalTemplateRequestIncludedComponent$zodSchema, UpdateEvalTemplateRequest$zodSchema;
|
|
58179
|
+
var init_updateevaltemplaterequest = __esm(() => {
|
|
57260
58180
|
init_zod();
|
|
57261
|
-
|
|
57262
|
-
|
|
57263
|
-
|
|
57264
|
-
|
|
57265
|
-
|
|
57266
|
-
|
|
58181
|
+
init_evaltemplateruntime();
|
|
58182
|
+
init_evaltemplateschedule();
|
|
58183
|
+
init_graderdefinition();
|
|
58184
|
+
UpdateEvalTemplateRequestEvalType$zodSchema = _enum([
|
|
58185
|
+
"custom_eval",
|
|
58186
|
+
"agent_preference"
|
|
57267
58187
|
]);
|
|
57268
|
-
|
|
57269
|
-
|
|
57270
|
-
|
|
57271
|
-
|
|
57272
|
-
|
|
57273
|
-
|
|
57274
|
-
|
|
57275
|
-
|
|
57276
|
-
|
|
58188
|
+
UpdateEvalTemplateRequestIncludedComponent$zodSchema = _enum([
|
|
58189
|
+
"judges",
|
|
58190
|
+
"targets",
|
|
58191
|
+
"persona",
|
|
58192
|
+
"competitors",
|
|
58193
|
+
"tag",
|
|
58194
|
+
"category",
|
|
58195
|
+
"runs",
|
|
58196
|
+
"schedule",
|
|
58197
|
+
"repository",
|
|
58198
|
+
"environment",
|
|
58199
|
+
"search_grounding",
|
|
58200
|
+
"skills",
|
|
58201
|
+
"mcp_servers",
|
|
58202
|
+
"clis",
|
|
58203
|
+
"brand_docs",
|
|
58204
|
+
"github_pr",
|
|
58205
|
+
"runtime_commands"
|
|
58206
|
+
]);
|
|
58207
|
+
UpdateEvalTemplateRequest$zodSchema = object({
|
|
58208
|
+
category_name: string2().optional(),
|
|
58209
|
+
competitor_ids: array(string2()).nullable().optional(),
|
|
58210
|
+
description: string2().optional(),
|
|
58211
|
+
eval_type: UpdateEvalTemplateRequestEvalType$zodSchema.optional(),
|
|
58212
|
+
expected_template_version: int().optional(),
|
|
58213
|
+
included_components: array(UpdateEvalTemplateRequestIncludedComponent$zodSchema).nullable().optional(),
|
|
58214
|
+
judges: array(GraderDefinition$zodSchema).nullable().optional(),
|
|
57277
58215
|
name: string2().optional(),
|
|
57278
|
-
persona: string2().optional()
|
|
57279
|
-
|
|
57280
|
-
|
|
57281
|
-
|
|
57282
|
-
|
|
57283
|
-
|
|
58216
|
+
persona: string2().optional(),
|
|
58217
|
+
runs_per_execution: int().optional(),
|
|
58218
|
+
runtime: EvalTemplateRuntime$zodSchema.nullable().optional(),
|
|
58219
|
+
schedule: EvalTemplateSchedule$zodSchema.nullable().optional(),
|
|
58220
|
+
tag: string2().optional(),
|
|
58221
|
+
target_keys: array(string2()).nullable().optional()
|
|
57284
58222
|
});
|
|
57285
58223
|
});
|
|
57286
58224
|
|
|
57287
|
-
// src/models/
|
|
57288
|
-
var
|
|
57289
|
-
var
|
|
58225
|
+
// src/models/v2evaltemplatesupdateop.ts
|
|
58226
|
+
var V2EvalTemplatesUpdateRequest$zodSchema, V2EvalTemplatesUpdateConflictResponseBody$zodSchema, V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema, V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema, V2EvalTemplatesUpdateResponse$zodSchema;
|
|
58227
|
+
var init_v2evaltemplatesupdateop = __esm(() => {
|
|
57290
58228
|
init_zod();
|
|
58229
|
+
init_evaltemplate();
|
|
57291
58230
|
init_httpvalidationerror();
|
|
57292
|
-
|
|
57293
|
-
|
|
57294
|
-
|
|
57295
|
-
|
|
57296
|
-
eval_id: string2()
|
|
58231
|
+
init_updateevaltemplaterequest();
|
|
58232
|
+
V2EvalTemplatesUpdateRequest$zodSchema = object({
|
|
58233
|
+
body: UpdateEvalTemplateRequest$zodSchema,
|
|
58234
|
+
template_id: string2()
|
|
57297
58235
|
});
|
|
57298
|
-
|
|
57299
|
-
|
|
58236
|
+
V2EvalTemplatesUpdateConflictResponseBody$zodSchema = object({
|
|
58237
|
+
detail: string2()
|
|
58238
|
+
}).describe("The supplied template version is stale.");
|
|
58239
|
+
V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema = object({
|
|
58240
|
+
detail: string2()
|
|
58241
|
+
}).describe("The Eval template does not exist in the organization.");
|
|
58242
|
+
V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema = object({
|
|
58243
|
+
detail: string2()
|
|
58244
|
+
}).describe("The template contains invalid judges, targets, scheduling, metadata, or organization resources.");
|
|
58245
|
+
V2EvalTemplatesUpdateResponse$zodSchema = union([
|
|
58246
|
+
EvalTemplate$zodSchema,
|
|
58247
|
+
lazy(() => V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema),
|
|
58248
|
+
lazy(() => V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema),
|
|
58249
|
+
lazy(() => V2EvalTemplatesUpdateConflictResponseBody$zodSchema),
|
|
57300
58250
|
HTTPValidationError$zodSchema
|
|
57301
58251
|
]);
|
|
57302
58252
|
});
|
|
57303
58253
|
|
|
57304
|
-
// src/funcs/
|
|
57305
|
-
function
|
|
57306
|
-
return new APIPromise($
|
|
58254
|
+
// src/funcs/evalTemplatesV2EvalTemplatesUpdate.ts
|
|
58255
|
+
function evalTemplatesV2EvalTemplatesUpdate(client$, request, options) {
|
|
58256
|
+
return new APIPromise($do27(client$, request, options));
|
|
57307
58257
|
}
|
|
57308
|
-
async function $
|
|
57309
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
58258
|
+
async function $do27(client$, request, options) {
|
|
58259
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57310
58260
|
if (!parsed$.ok) {
|
|
57311
58261
|
return [parsed$, { status: "invalid" }];
|
|
57312
58262
|
}
|
|
57313
58263
|
const payload$ = parsed$.value;
|
|
57314
58264
|
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
57315
58265
|
const pathParams$ = {
|
|
57316
|
-
|
|
58266
|
+
template_id: encodeSimple("template_id", payload$.template_id, {
|
|
57317
58267
|
explode: false,
|
|
57318
58268
|
charEncoding: "percent"
|
|
57319
58269
|
})
|
|
57320
58270
|
};
|
|
57321
|
-
const path$ = pathToFunc("/v2/
|
|
58271
|
+
const path$ = pathToFunc("/v2/eval-templates/{template_id}")(pathParams$);
|
|
57322
58272
|
const headers$ = new Headers(compactMap({
|
|
57323
58273
|
"Content-Type": "application/json",
|
|
57324
58274
|
Accept: "application/json"
|
|
@@ -57328,7 +58278,7 @@ async function $do21(client$, request, options) {
|
|
|
57328
58278
|
const context = {
|
|
57329
58279
|
options: client$._options,
|
|
57330
58280
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57331
|
-
operationID: "
|
|
58281
|
+
operationID: "v2_eval_templates_update",
|
|
57332
58282
|
oAuth2Scopes: null,
|
|
57333
58283
|
resolvedSecurity: requestSecurity,
|
|
57334
58284
|
securitySource: client$._options.security,
|
|
@@ -57370,30 +58320,30 @@ async function $do21(client$, request, options) {
|
|
|
57370
58320
|
response: doResult.value
|
|
57371
58321
|
}];
|
|
57372
58322
|
}
|
|
57373
|
-
var
|
|
58323
|
+
var init_evalTemplatesV2EvalTemplatesUpdate = __esm(() => {
|
|
57374
58324
|
init_encodings();
|
|
57375
58325
|
init_primitives();
|
|
57376
58326
|
init_schemas4();
|
|
57377
58327
|
init_security();
|
|
57378
58328
|
init_url();
|
|
57379
|
-
|
|
58329
|
+
init_v2evaltemplatesupdateop();
|
|
57380
58330
|
init_async();
|
|
57381
58331
|
});
|
|
57382
58332
|
|
|
57383
|
-
// src/mcp-server/tools/
|
|
57384
|
-
var
|
|
57385
|
-
var
|
|
57386
|
-
|
|
57387
|
-
|
|
58333
|
+
// src/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.ts
|
|
58334
|
+
var args22, tool$evalTemplatesV2EvalTemplatesUpdate;
|
|
58335
|
+
var init_evalTemplatesV2EvalTemplatesUpdate2 = __esm(() => {
|
|
58336
|
+
init_evalTemplatesV2EvalTemplatesUpdate();
|
|
58337
|
+
init_v2evaltemplatesupdateop();
|
|
57388
58338
|
init_tools();
|
|
57389
|
-
|
|
57390
|
-
request:
|
|
58339
|
+
args22 = {
|
|
58340
|
+
request: V2EvalTemplatesUpdateRequest$zodSchema
|
|
57391
58341
|
};
|
|
57392
|
-
tool$
|
|
57393
|
-
name: "
|
|
57394
|
-
description: `Update Eval
|
|
58342
|
+
tool$evalTemplatesV2EvalTemplatesUpdate = {
|
|
58343
|
+
name: "eval-templates-v2-eval-templates-update",
|
|
58344
|
+
description: `Update an Eval template
|
|
57395
58345
|
|
|
57396
|
-
Updates
|
|
58346
|
+
Updates an Eval template. Supply \`expected_template_version\` to reject an edit based on stale data. Existing evals are never changed.`,
|
|
57397
58347
|
annotations: {
|
|
57398
58348
|
title: "",
|
|
57399
58349
|
destructiveHint: false,
|
|
@@ -57401,9 +58351,9 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
|
|
|
57401
58351
|
openWorldHint: false,
|
|
57402
58352
|
readOnlyHint: false
|
|
57403
58353
|
},
|
|
57404
|
-
args:
|
|
58354
|
+
args: args22,
|
|
57405
58355
|
tool: async (client, args, ctx) => {
|
|
57406
|
-
const [result] = await
|
|
58356
|
+
const [result] = await evalTemplatesV2EvalTemplatesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57407
58357
|
if (!result.ok) {
|
|
57408
58358
|
return {
|
|
57409
58359
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57417,9 +58367,9 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
|
|
|
57417
58367
|
|
|
57418
58368
|
// src/funcs/mcpServersV2MCPServersList.ts
|
|
57419
58369
|
function mcpServersV2MCPServersList(client$, options) {
|
|
57420
|
-
return new APIPromise($
|
|
58370
|
+
return new APIPromise($do28(client$, options));
|
|
57421
58371
|
}
|
|
57422
|
-
async function $
|
|
58372
|
+
async function $do28(client$, options) {
|
|
57423
58373
|
const path$ = pathToFunc("/v2/mcp-servers")();
|
|
57424
58374
|
const headers$ = new Headers(compactMap({
|
|
57425
58375
|
Accept: "application/json"
|
|
@@ -57601,9 +58551,9 @@ var init_v2opportunitieslistop = __esm(() => {
|
|
|
57601
58551
|
|
|
57602
58552
|
// src/funcs/opportunitiesV2OpportunitiesList.ts
|
|
57603
58553
|
function opportunitiesV2OpportunitiesList(client$, request, options) {
|
|
57604
|
-
return new APIPromise($
|
|
58554
|
+
return new APIPromise($do29(client$, request, options));
|
|
57605
58555
|
}
|
|
57606
|
-
async function $
|
|
58556
|
+
async function $do29(client$, request, options) {
|
|
57607
58557
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
57608
58558
|
if (!parsed$.ok) {
|
|
57609
58559
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57681,12 +58631,12 @@ var init_opportunitiesV2OpportunitiesList = __esm(() => {
|
|
|
57681
58631
|
});
|
|
57682
58632
|
|
|
57683
58633
|
// src/mcp-server/tools/opportunitiesV2OpportunitiesList.ts
|
|
57684
|
-
var
|
|
58634
|
+
var args23, tool$opportunitiesV2OpportunitiesList;
|
|
57685
58635
|
var init_opportunitiesV2OpportunitiesList2 = __esm(() => {
|
|
57686
58636
|
init_opportunitiesV2OpportunitiesList();
|
|
57687
58637
|
init_v2opportunitieslistop();
|
|
57688
58638
|
init_tools();
|
|
57689
|
-
|
|
58639
|
+
args23 = {
|
|
57690
58640
|
request: V2OpportunitiesListRequest$zodSchema.optional()
|
|
57691
58641
|
};
|
|
57692
58642
|
tool$opportunitiesV2OpportunitiesList = {
|
|
@@ -57701,7 +58651,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
|
|
|
57701
58651
|
openWorldHint: false,
|
|
57702
58652
|
readOnlyHint: true
|
|
57703
58653
|
},
|
|
57704
|
-
args:
|
|
58654
|
+
args: args23,
|
|
57705
58655
|
tool: async (client, args, ctx) => {
|
|
57706
58656
|
const [result] = await opportunitiesV2OpportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57707
58657
|
if (!result.ok) {
|
|
@@ -57773,9 +58723,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
|
|
|
57773
58723
|
|
|
57774
58724
|
// src/funcs/opportunitiesV2OpportunitiesRetrieve.ts
|
|
57775
58725
|
function opportunitiesV2OpportunitiesRetrieve(client$, request, options) {
|
|
57776
|
-
return new APIPromise($
|
|
58726
|
+
return new APIPromise($do30(client$, request, options));
|
|
57777
58727
|
}
|
|
57778
|
-
async function $
|
|
58728
|
+
async function $do30(client$, request, options) {
|
|
57779
58729
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57780
58730
|
if (!parsed$.ok) {
|
|
57781
58731
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57856,12 +58806,12 @@ var init_opportunitiesV2OpportunitiesRetrieve = __esm(() => {
|
|
|
57856
58806
|
});
|
|
57857
58807
|
|
|
57858
58808
|
// src/mcp-server/tools/opportunitiesV2OpportunitiesRetrieve.ts
|
|
57859
|
-
var
|
|
58809
|
+
var args24, tool$opportunitiesV2OpportunitiesRetrieve;
|
|
57860
58810
|
var init_opportunitiesV2OpportunitiesRetrieve2 = __esm(() => {
|
|
57861
58811
|
init_opportunitiesV2OpportunitiesRetrieve();
|
|
57862
58812
|
init_v2opportunitiesretrieveop();
|
|
57863
58813
|
init_tools();
|
|
57864
|
-
|
|
58814
|
+
args24 = {
|
|
57865
58815
|
request: V2OpportunitiesRetrieveRequest$zodSchema
|
|
57866
58816
|
};
|
|
57867
58817
|
tool$opportunitiesV2OpportunitiesRetrieve = {
|
|
@@ -57876,7 +58826,7 @@ Returns one computed opportunity and its execution context for the selected date
|
|
|
57876
58826
|
openWorldHint: false,
|
|
57877
58827
|
readOnlyHint: true
|
|
57878
58828
|
},
|
|
57879
|
-
args:
|
|
58829
|
+
args: args24,
|
|
57880
58830
|
tool: async (client, args, ctx) => {
|
|
57881
58831
|
const [result] = await opportunitiesV2OpportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57882
58832
|
if (!result.ok) {
|
|
@@ -57984,9 +58934,9 @@ var init_v2promptrunslistop = __esm(() => {
|
|
|
57984
58934
|
|
|
57985
58935
|
// src/funcs/promptsV2PromptRunsList.ts
|
|
57986
58936
|
function promptsV2PromptRunsList(client$, request, options) {
|
|
57987
|
-
return new APIPromise($
|
|
58937
|
+
return new APIPromise($do31(client$, request, options));
|
|
57988
58938
|
}
|
|
57989
|
-
async function $
|
|
58939
|
+
async function $do31(client$, request, options) {
|
|
57990
58940
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
57991
58941
|
if (!parsed$.ok) {
|
|
57992
58942
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58064,12 +59014,12 @@ var init_promptsV2PromptRunsList = __esm(() => {
|
|
|
58064
59014
|
});
|
|
58065
59015
|
|
|
58066
59016
|
// src/mcp-server/tools/promptsV2PromptRunsList.ts
|
|
58067
|
-
var
|
|
59017
|
+
var args25, tool$promptsV2PromptRunsList;
|
|
58068
59018
|
var init_promptsV2PromptRunsList2 = __esm(() => {
|
|
58069
59019
|
init_promptsV2PromptRunsList();
|
|
58070
59020
|
init_v2promptrunslistop();
|
|
58071
59021
|
init_tools();
|
|
58072
|
-
|
|
59022
|
+
args25 = {
|
|
58073
59023
|
request: V2PromptRunsListRequest$zodSchema.optional()
|
|
58074
59024
|
};
|
|
58075
59025
|
tool$promptsV2PromptRunsList = {
|
|
@@ -58084,7 +59034,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
|
|
|
58084
59034
|
openWorldHint: false,
|
|
58085
59035
|
readOnlyHint: true
|
|
58086
59036
|
},
|
|
58087
|
-
args:
|
|
59037
|
+
args: args25,
|
|
58088
59038
|
tool: async (client, args, ctx) => {
|
|
58089
59039
|
const [result] = await promptsV2PromptRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58090
59040
|
if (!result.ok) {
|
|
@@ -58191,9 +59141,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
|
|
|
58191
59141
|
|
|
58192
59142
|
// src/funcs/promptsV2PromptRunsRetrieve.ts
|
|
58193
59143
|
function promptsV2PromptRunsRetrieve(client$, request, options) {
|
|
58194
|
-
return new APIPromise($
|
|
59144
|
+
return new APIPromise($do32(client$, request, options));
|
|
58195
59145
|
}
|
|
58196
|
-
async function $
|
|
59146
|
+
async function $do32(client$, request, options) {
|
|
58197
59147
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58198
59148
|
if (!parsed$.ok) {
|
|
58199
59149
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58268,12 +59218,12 @@ var init_promptsV2PromptRunsRetrieve = __esm(() => {
|
|
|
58268
59218
|
});
|
|
58269
59219
|
|
|
58270
59220
|
// src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts
|
|
58271
|
-
var
|
|
59221
|
+
var args26, tool$promptsV2PromptRunsRetrieve;
|
|
58272
59222
|
var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
|
|
58273
59223
|
init_promptsV2PromptRunsRetrieve();
|
|
58274
59224
|
init_v2promptrunsretrieveop();
|
|
58275
59225
|
init_tools();
|
|
58276
|
-
|
|
59226
|
+
args26 = {
|
|
58277
59227
|
request: V2PromptRunsRetrieveRequest$zodSchema
|
|
58278
59228
|
};
|
|
58279
59229
|
tool$promptsV2PromptRunsRetrieve = {
|
|
@@ -58288,7 +59238,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
|
|
|
58288
59238
|
openWorldHint: false,
|
|
58289
59239
|
readOnlyHint: true
|
|
58290
59240
|
},
|
|
58291
|
-
args:
|
|
59241
|
+
args: args26,
|
|
58292
59242
|
tool: async (client, args, ctx) => {
|
|
58293
59243
|
const [result] = await promptsV2PromptRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58294
59244
|
if (!result.ok) {
|
|
@@ -58325,9 +59275,9 @@ var init_createv2promptsrequest = __esm(() => {
|
|
|
58325
59275
|
|
|
58326
59276
|
// src/funcs/promptsV2PromptsCreate.ts
|
|
58327
59277
|
function promptsV2PromptsCreate(client$, request, options) {
|
|
58328
|
-
return new APIPromise($
|
|
59278
|
+
return new APIPromise($do33(client$, request, options));
|
|
58329
59279
|
}
|
|
58330
|
-
async function $
|
|
59280
|
+
async function $do33(client$, request, options) {
|
|
58331
59281
|
const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58332
59282
|
if (!parsed$.ok) {
|
|
58333
59283
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58397,12 +59347,12 @@ var init_promptsV2PromptsCreate = __esm(() => {
|
|
|
58397
59347
|
});
|
|
58398
59348
|
|
|
58399
59349
|
// src/mcp-server/tools/promptsV2PromptsCreate.ts
|
|
58400
|
-
var
|
|
59350
|
+
var args27, tool$promptsV2PromptsCreate;
|
|
58401
59351
|
var init_promptsV2PromptsCreate2 = __esm(() => {
|
|
58402
59352
|
init_promptsV2PromptsCreate();
|
|
58403
59353
|
init_createv2promptsrequest();
|
|
58404
59354
|
init_tools();
|
|
58405
|
-
|
|
59355
|
+
args27 = {
|
|
58406
59356
|
request: CreateV2PromptsRequest$zodSchema
|
|
58407
59357
|
};
|
|
58408
59358
|
tool$promptsV2PromptsCreate = {
|
|
@@ -58417,7 +59367,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
|
|
|
58417
59367
|
openWorldHint: false,
|
|
58418
59368
|
readOnlyHint: false
|
|
58419
59369
|
},
|
|
58420
|
-
args:
|
|
59370
|
+
args: args27,
|
|
58421
59371
|
tool: async (client, args, ctx) => {
|
|
58422
59372
|
const [result] = await promptsV2PromptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58423
59373
|
if (!result.ok) {
|
|
@@ -58457,9 +59407,9 @@ var init_v2promptsdeleteop = __esm(() => {
|
|
|
58457
59407
|
|
|
58458
59408
|
// src/funcs/promptsV2PromptsDelete.ts
|
|
58459
59409
|
function promptsV2PromptsDelete(client$, request, options) {
|
|
58460
|
-
return new APIPromise($
|
|
59410
|
+
return new APIPromise($do34(client$, request, options));
|
|
58461
59411
|
}
|
|
58462
|
-
async function $
|
|
59412
|
+
async function $do34(client$, request, options) {
|
|
58463
59413
|
const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58464
59414
|
if (!parsed$.ok) {
|
|
58465
59415
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58534,12 +59484,12 @@ var init_promptsV2PromptsDelete = __esm(() => {
|
|
|
58534
59484
|
});
|
|
58535
59485
|
|
|
58536
59486
|
// src/mcp-server/tools/promptsV2PromptsDelete.ts
|
|
58537
|
-
var
|
|
59487
|
+
var args28, tool$promptsV2PromptsDelete;
|
|
58538
59488
|
var init_promptsV2PromptsDelete2 = __esm(() => {
|
|
58539
59489
|
init_promptsV2PromptsDelete();
|
|
58540
59490
|
init_v2promptsdeleteop();
|
|
58541
59491
|
init_tools();
|
|
58542
|
-
|
|
59492
|
+
args28 = {
|
|
58543
59493
|
request: V2PromptsDeleteRequest$zodSchema
|
|
58544
59494
|
};
|
|
58545
59495
|
tool$promptsV2PromptsDelete = {
|
|
@@ -58554,7 +59504,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
|
|
|
58554
59504
|
openWorldHint: false,
|
|
58555
59505
|
readOnlyHint: false
|
|
58556
59506
|
},
|
|
58557
|
-
args:
|
|
59507
|
+
args: args28,
|
|
58558
59508
|
tool: async (client, args, ctx) => {
|
|
58559
59509
|
const [result] = await promptsV2PromptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58560
59510
|
if (!result.ok) {
|
|
@@ -58664,9 +59614,9 @@ var init_v2promptslistop = __esm(() => {
|
|
|
58664
59614
|
|
|
58665
59615
|
// src/funcs/promptsV2PromptsList.ts
|
|
58666
59616
|
function promptsV2PromptsList(client$, request, options) {
|
|
58667
|
-
return new APIPromise($
|
|
59617
|
+
return new APIPromise($do35(client$, request, options));
|
|
58668
59618
|
}
|
|
58669
|
-
async function $
|
|
59619
|
+
async function $do35(client$, request, options) {
|
|
58670
59620
|
const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
58671
59621
|
if (!parsed$.ok) {
|
|
58672
59622
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58741,12 +59691,12 @@ var init_promptsV2PromptsList = __esm(() => {
|
|
|
58741
59691
|
});
|
|
58742
59692
|
|
|
58743
59693
|
// src/mcp-server/tools/promptsV2PromptsList.ts
|
|
58744
|
-
var
|
|
59694
|
+
var args29, tool$promptsV2PromptsList;
|
|
58745
59695
|
var init_promptsV2PromptsList2 = __esm(() => {
|
|
58746
59696
|
init_promptsV2PromptsList();
|
|
58747
59697
|
init_v2promptslistop();
|
|
58748
59698
|
init_tools();
|
|
58749
|
-
|
|
59699
|
+
args29 = {
|
|
58750
59700
|
request: V2PromptsListRequest$zodSchema.optional()
|
|
58751
59701
|
};
|
|
58752
59702
|
tool$promptsV2PromptsList = {
|
|
@@ -58761,7 +59711,7 @@ Returns active and inactive prompts by default. Set \`include_archived\` to incl
|
|
|
58761
59711
|
openWorldHint: false,
|
|
58762
59712
|
readOnlyHint: true
|
|
58763
59713
|
},
|
|
58764
|
-
args:
|
|
59714
|
+
args: args29,
|
|
58765
59715
|
tool: async (client, args, ctx) => {
|
|
58766
59716
|
const [result] = await promptsV2PromptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58767
59717
|
if (!result.ok) {
|
|
@@ -58792,9 +59742,9 @@ var init_v2promptsretrieveop = __esm(() => {
|
|
|
58792
59742
|
|
|
58793
59743
|
// src/funcs/promptsV2PromptsRetrieve.ts
|
|
58794
59744
|
function promptsV2PromptsRetrieve(client$, request, options) {
|
|
58795
|
-
return new APIPromise($
|
|
59745
|
+
return new APIPromise($do36(client$, request, options));
|
|
58796
59746
|
}
|
|
58797
|
-
async function $
|
|
59747
|
+
async function $do36(client$, request, options) {
|
|
58798
59748
|
const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58799
59749
|
if (!parsed$.ok) {
|
|
58800
59750
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58869,12 +59819,12 @@ var init_promptsV2PromptsRetrieve = __esm(() => {
|
|
|
58869
59819
|
});
|
|
58870
59820
|
|
|
58871
59821
|
// src/mcp-server/tools/promptsV2PromptsRetrieve.ts
|
|
58872
|
-
var
|
|
59822
|
+
var args30, tool$promptsV2PromptsRetrieve;
|
|
58873
59823
|
var init_promptsV2PromptsRetrieve2 = __esm(() => {
|
|
58874
59824
|
init_promptsV2PromptsRetrieve();
|
|
58875
59825
|
init_v2promptsretrieveop();
|
|
58876
59826
|
init_tools();
|
|
58877
|
-
|
|
59827
|
+
args30 = {
|
|
58878
59828
|
request: V2PromptsRetrieveRequest$zodSchema
|
|
58879
59829
|
};
|
|
58880
59830
|
tool$promptsV2PromptsRetrieve = {
|
|
@@ -58889,7 +59839,7 @@ Returns a prompt with its topic, platforms, tags, and lifecycle status.`,
|
|
|
58889
59839
|
openWorldHint: false,
|
|
58890
59840
|
readOnlyHint: true
|
|
58891
59841
|
},
|
|
58892
|
-
args:
|
|
59842
|
+
args: args30,
|
|
58893
59843
|
tool: async (client, args, ctx) => {
|
|
58894
59844
|
const [result] = await promptsV2PromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58895
59845
|
if (!result.ok) {
|
|
@@ -58938,9 +59888,9 @@ var init_v2promptsupdateop = __esm(() => {
|
|
|
58938
59888
|
|
|
58939
59889
|
// src/funcs/promptsV2PromptsUpdate.ts
|
|
58940
59890
|
function promptsV2PromptsUpdate(client$, request, options) {
|
|
58941
|
-
return new APIPromise($
|
|
59891
|
+
return new APIPromise($do37(client$, request, options));
|
|
58942
59892
|
}
|
|
58943
|
-
async function $
|
|
59893
|
+
async function $do37(client$, request, options) {
|
|
58944
59894
|
const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58945
59895
|
if (!parsed$.ok) {
|
|
58946
59896
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59016,12 +59966,12 @@ var init_promptsV2PromptsUpdate = __esm(() => {
|
|
|
59016
59966
|
});
|
|
59017
59967
|
|
|
59018
59968
|
// src/mcp-server/tools/promptsV2PromptsUpdate.ts
|
|
59019
|
-
var
|
|
59969
|
+
var args31, tool$promptsV2PromptsUpdate;
|
|
59020
59970
|
var init_promptsV2PromptsUpdate2 = __esm(() => {
|
|
59021
59971
|
init_promptsV2PromptsUpdate();
|
|
59022
59972
|
init_v2promptsupdateop();
|
|
59023
59973
|
init_tools();
|
|
59024
|
-
|
|
59974
|
+
args31 = {
|
|
59025
59975
|
request: V2PromptsUpdateRequest$zodSchema
|
|
59026
59976
|
};
|
|
59027
59977
|
tool$promptsV2PromptsUpdate = {
|
|
@@ -59036,7 +59986,7 @@ Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields r
|
|
|
59036
59986
|
openWorldHint: false,
|
|
59037
59987
|
readOnlyHint: false
|
|
59038
59988
|
},
|
|
59039
|
-
args:
|
|
59989
|
+
args: args31,
|
|
59040
59990
|
tool: async (client, args, ctx) => {
|
|
59041
59991
|
const [result] = await promptsV2PromptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59042
59992
|
if (!result.ok) {
|
|
@@ -59061,9 +60011,9 @@ var init_createprompttopicrequest = __esm(() => {
|
|
|
59061
60011
|
|
|
59062
60012
|
// src/funcs/promptsV2PromptTopicsCreate.ts
|
|
59063
60013
|
function promptsV2PromptTopicsCreate(client$, request, options) {
|
|
59064
|
-
return new APIPromise($
|
|
60014
|
+
return new APIPromise($do38(client$, request, options));
|
|
59065
60015
|
}
|
|
59066
|
-
async function $
|
|
60016
|
+
async function $do38(client$, request, options) {
|
|
59067
60017
|
const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59068
60018
|
if (!parsed$.ok) {
|
|
59069
60019
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59133,12 +60083,12 @@ var init_promptsV2PromptTopicsCreate = __esm(() => {
|
|
|
59133
60083
|
});
|
|
59134
60084
|
|
|
59135
60085
|
// src/mcp-server/tools/promptsV2PromptTopicsCreate.ts
|
|
59136
|
-
var
|
|
60086
|
+
var args32, tool$promptsV2PromptTopicsCreate;
|
|
59137
60087
|
var init_promptsV2PromptTopicsCreate2 = __esm(() => {
|
|
59138
60088
|
init_promptsV2PromptTopicsCreate();
|
|
59139
60089
|
init_createprompttopicrequest();
|
|
59140
60090
|
init_tools();
|
|
59141
|
-
|
|
60091
|
+
args32 = {
|
|
59142
60092
|
request: CreatePromptTopicRequest$zodSchema
|
|
59143
60093
|
};
|
|
59144
60094
|
tool$promptsV2PromptTopicsCreate = {
|
|
@@ -59153,7 +60103,7 @@ Creates a prompt topic and returns the saved topic.`,
|
|
|
59153
60103
|
openWorldHint: false,
|
|
59154
60104
|
readOnlyHint: false
|
|
59155
60105
|
},
|
|
59156
|
-
args:
|
|
60106
|
+
args: args32,
|
|
59157
60107
|
tool: async (client, args, ctx) => {
|
|
59158
60108
|
const [result] = await promptsV2PromptTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59159
60109
|
if (!result.ok) {
|
|
@@ -59185,9 +60135,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
|
|
|
59185
60135
|
|
|
59186
60136
|
// src/funcs/promptsV2PromptTopicsDelete.ts
|
|
59187
60137
|
function promptsV2PromptTopicsDelete(client$, request, options) {
|
|
59188
|
-
return new APIPromise($
|
|
60138
|
+
return new APIPromise($do39(client$, request, options));
|
|
59189
60139
|
}
|
|
59190
|
-
async function $
|
|
60140
|
+
async function $do39(client$, request, options) {
|
|
59191
60141
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59192
60142
|
if (!parsed$.ok) {
|
|
59193
60143
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59266,12 +60216,12 @@ var init_promptsV2PromptTopicsDelete = __esm(() => {
|
|
|
59266
60216
|
});
|
|
59267
60217
|
|
|
59268
60218
|
// src/mcp-server/tools/promptsV2PromptTopicsDelete.ts
|
|
59269
|
-
var
|
|
60219
|
+
var args33, tool$promptsV2PromptTopicsDelete;
|
|
59270
60220
|
var init_promptsV2PromptTopicsDelete2 = __esm(() => {
|
|
59271
60221
|
init_promptsV2PromptTopicsDelete();
|
|
59272
60222
|
init_v2prompttopicsdeleteop();
|
|
59273
60223
|
init_tools();
|
|
59274
|
-
|
|
60224
|
+
args33 = {
|
|
59275
60225
|
request: V2PromptTopicsDeleteRequest$zodSchema
|
|
59276
60226
|
};
|
|
59277
60227
|
tool$promptsV2PromptTopicsDelete = {
|
|
@@ -59286,7 +60236,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
59286
60236
|
openWorldHint: false,
|
|
59287
60237
|
readOnlyHint: false
|
|
59288
60238
|
},
|
|
59289
|
-
args:
|
|
60239
|
+
args: args33,
|
|
59290
60240
|
tool: async (client, args, ctx) => {
|
|
59291
60241
|
const [result] = await promptsV2PromptTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59292
60242
|
if (!result.ok) {
|
|
@@ -59302,9 +60252,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
59302
60252
|
|
|
59303
60253
|
// src/funcs/promptsV2PromptTopicsList.ts
|
|
59304
60254
|
function promptsV2PromptTopicsList(client$, options) {
|
|
59305
|
-
return new APIPromise($
|
|
60255
|
+
return new APIPromise($do40(client$, options));
|
|
59306
60256
|
}
|
|
59307
|
-
async function $
|
|
60257
|
+
async function $do40(client$, options) {
|
|
59308
60258
|
const path$ = pathToFunc("/v2/prompts/topics")();
|
|
59309
60259
|
const headers$ = new Headers(compactMap({
|
|
59310
60260
|
Accept: "application/json"
|
|
@@ -59420,9 +60370,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
|
|
|
59420
60370
|
|
|
59421
60371
|
// src/funcs/promptsV2PromptTopicsUpdate.ts
|
|
59422
60372
|
function promptsV2PromptTopicsUpdate(client$, request, options) {
|
|
59423
|
-
return new APIPromise($
|
|
60373
|
+
return new APIPromise($do41(client$, request, options));
|
|
59424
60374
|
}
|
|
59425
|
-
async function $
|
|
60375
|
+
async function $do41(client$, request, options) {
|
|
59426
60376
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59427
60377
|
if (!parsed$.ok) {
|
|
59428
60378
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59498,12 +60448,12 @@ var init_promptsV2PromptTopicsUpdate = __esm(() => {
|
|
|
59498
60448
|
});
|
|
59499
60449
|
|
|
59500
60450
|
// src/mcp-server/tools/promptsV2PromptTopicsUpdate.ts
|
|
59501
|
-
var
|
|
60451
|
+
var args34, tool$promptsV2PromptTopicsUpdate;
|
|
59502
60452
|
var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
|
|
59503
60453
|
init_promptsV2PromptTopicsUpdate();
|
|
59504
60454
|
init_v2prompttopicsupdateop();
|
|
59505
60455
|
init_tools();
|
|
59506
|
-
|
|
60456
|
+
args34 = {
|
|
59507
60457
|
request: V2PromptTopicsUpdateRequest$zodSchema
|
|
59508
60458
|
};
|
|
59509
60459
|
tool$promptsV2PromptTopicsUpdate = {
|
|
@@ -59518,7 +60468,7 @@ Renames a prompt topic and returns the updated topic.`,
|
|
|
59518
60468
|
openWorldHint: false,
|
|
59519
60469
|
readOnlyHint: false
|
|
59520
60470
|
},
|
|
59521
|
-
args:
|
|
60471
|
+
args: args34,
|
|
59522
60472
|
tool: async (client, args, ctx) => {
|
|
59523
60473
|
const [result] = await promptsV2PromptTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59524
60474
|
if (!result.ok) {
|
|
@@ -59561,9 +60511,9 @@ var init_createv2repositoryrequest = __esm(() => {
|
|
|
59561
60511
|
|
|
59562
60512
|
// src/funcs/repositoriesV2RepositoriesCreate.ts
|
|
59563
60513
|
function repositoriesV2RepositoriesCreate(client$, request, options) {
|
|
59564
|
-
return new APIPromise($
|
|
60514
|
+
return new APIPromise($do42(client$, request, options));
|
|
59565
60515
|
}
|
|
59566
|
-
async function $
|
|
60516
|
+
async function $do42(client$, request, options) {
|
|
59567
60517
|
const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59568
60518
|
if (!parsed$.ok) {
|
|
59569
60519
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59633,12 +60583,12 @@ var init_repositoriesV2RepositoriesCreate = __esm(() => {
|
|
|
59633
60583
|
});
|
|
59634
60584
|
|
|
59635
60585
|
// src/mcp-server/tools/repositoriesV2RepositoriesCreate.ts
|
|
59636
|
-
var
|
|
60586
|
+
var args35, tool$repositoriesV2RepositoriesCreate;
|
|
59637
60587
|
var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
|
|
59638
60588
|
init_repositoriesV2RepositoriesCreate();
|
|
59639
60589
|
init_createv2repositoryrequest();
|
|
59640
60590
|
init_tools();
|
|
59641
|
-
|
|
60591
|
+
args35 = {
|
|
59642
60592
|
request: CreateV2RepositoryRequest$zodSchema
|
|
59643
60593
|
};
|
|
59644
60594
|
tool$repositoriesV2RepositoriesCreate = {
|
|
@@ -59653,7 +60603,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
|
|
|
59653
60603
|
openWorldHint: false,
|
|
59654
60604
|
readOnlyHint: false
|
|
59655
60605
|
},
|
|
59656
|
-
args:
|
|
60606
|
+
args: args35,
|
|
59657
60607
|
tool: async (client, args, ctx) => {
|
|
59658
60608
|
const [result] = await repositoriesV2RepositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59659
60609
|
if (!result.ok) {
|
|
@@ -59719,9 +60669,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
|
|
|
59719
60669
|
|
|
59720
60670
|
// src/funcs/repositoriesV2RepositoriesDelete.ts
|
|
59721
60671
|
function repositoriesV2RepositoriesDelete(client$, request, options) {
|
|
59722
|
-
return new APIPromise($
|
|
60672
|
+
return new APIPromise($do43(client$, request, options));
|
|
59723
60673
|
}
|
|
59724
|
-
async function $
|
|
60674
|
+
async function $do43(client$, request, options) {
|
|
59725
60675
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59726
60676
|
if (!parsed$.ok) {
|
|
59727
60677
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59796,12 +60746,12 @@ var init_repositoriesV2RepositoriesDelete = __esm(() => {
|
|
|
59796
60746
|
});
|
|
59797
60747
|
|
|
59798
60748
|
// src/mcp-server/tools/repositoriesV2RepositoriesDelete.ts
|
|
59799
|
-
var
|
|
60749
|
+
var args36, tool$repositoriesV2RepositoriesDelete;
|
|
59800
60750
|
var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
|
|
59801
60751
|
init_repositoriesV2RepositoriesDelete();
|
|
59802
60752
|
init_v2repositoriesdeleteop();
|
|
59803
60753
|
init_tools();
|
|
59804
|
-
|
|
60754
|
+
args36 = {
|
|
59805
60755
|
request: V2RepositoriesDeleteRequest$zodSchema
|
|
59806
60756
|
};
|
|
59807
60757
|
tool$repositoriesV2RepositoriesDelete = {
|
|
@@ -59816,7 +60766,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
59816
60766
|
openWorldHint: false,
|
|
59817
60767
|
readOnlyHint: false
|
|
59818
60768
|
},
|
|
59819
|
-
args:
|
|
60769
|
+
args: args36,
|
|
59820
60770
|
tool: async (client, args, ctx) => {
|
|
59821
60771
|
const [result] = await repositoriesV2RepositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59822
60772
|
if (!result.ok) {
|
|
@@ -59832,9 +60782,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
59832
60782
|
|
|
59833
60783
|
// src/funcs/repositoriesV2RepositoriesList.ts
|
|
59834
60784
|
function repositoriesV2RepositoriesList(client$, options) {
|
|
59835
|
-
return new APIPromise($
|
|
60785
|
+
return new APIPromise($do44(client$, options));
|
|
59836
60786
|
}
|
|
59837
|
-
async function $
|
|
60787
|
+
async function $do44(client$, options) {
|
|
59838
60788
|
const path$ = pathToFunc("/v2/repositories")();
|
|
59839
60789
|
const headers$ = new Headers(compactMap({
|
|
59840
60790
|
Accept: "application/json"
|
|
@@ -59939,9 +60889,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
|
|
|
59939
60889
|
|
|
59940
60890
|
// src/funcs/repositoriesV2RepositoriesRetrieve.ts
|
|
59941
60891
|
function repositoriesV2RepositoriesRetrieve(client$, request, options) {
|
|
59942
|
-
return new APIPromise($
|
|
60892
|
+
return new APIPromise($do45(client$, request, options));
|
|
59943
60893
|
}
|
|
59944
|
-
async function $
|
|
60894
|
+
async function $do45(client$, request, options) {
|
|
59945
60895
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59946
60896
|
if (!parsed$.ok) {
|
|
59947
60897
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60016,12 +60966,12 @@ var init_repositoriesV2RepositoriesRetrieve = __esm(() => {
|
|
|
60016
60966
|
});
|
|
60017
60967
|
|
|
60018
60968
|
// src/mcp-server/tools/repositoriesV2RepositoriesRetrieve.ts
|
|
60019
|
-
var
|
|
60969
|
+
var args37, tool$repositoriesV2RepositoriesRetrieve;
|
|
60020
60970
|
var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
|
|
60021
60971
|
init_repositoriesV2RepositoriesRetrieve();
|
|
60022
60972
|
init_v2repositoriesretrieveop();
|
|
60023
60973
|
init_tools();
|
|
60024
|
-
|
|
60974
|
+
args37 = {
|
|
60025
60975
|
request: V2RepositoriesRetrieveRequest$zodSchema
|
|
60026
60976
|
};
|
|
60027
60977
|
tool$repositoriesV2RepositoriesRetrieve = {
|
|
@@ -60036,7 +60986,7 @@ Returns one reusable repository workspace.`,
|
|
|
60036
60986
|
openWorldHint: false,
|
|
60037
60987
|
readOnlyHint: true
|
|
60038
60988
|
},
|
|
60039
|
-
args:
|
|
60989
|
+
args: args37,
|
|
60040
60990
|
tool: async (client, args, ctx) => {
|
|
60041
60991
|
const [result] = await repositoriesV2RepositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60042
60992
|
if (!result.ok) {
|
|
@@ -60096,9 +61046,9 @@ var init_v2repositoriesupdateop = __esm(() => {
|
|
|
60096
61046
|
|
|
60097
61047
|
// src/funcs/repositoriesV2RepositoriesUpdate.ts
|
|
60098
61048
|
function repositoriesV2RepositoriesUpdate(client$, request, options) {
|
|
60099
|
-
return new APIPromise($
|
|
61049
|
+
return new APIPromise($do46(client$, request, options));
|
|
60100
61050
|
}
|
|
60101
|
-
async function $
|
|
61051
|
+
async function $do46(client$, request, options) {
|
|
60102
61052
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60103
61053
|
if (!parsed$.ok) {
|
|
60104
61054
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60174,12 +61124,12 @@ var init_repositoriesV2RepositoriesUpdate = __esm(() => {
|
|
|
60174
61124
|
});
|
|
60175
61125
|
|
|
60176
61126
|
// src/mcp-server/tools/repositoriesV2RepositoriesUpdate.ts
|
|
60177
|
-
var
|
|
61127
|
+
var args38, tool$repositoriesV2RepositoriesUpdate;
|
|
60178
61128
|
var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
|
|
60179
61129
|
init_repositoriesV2RepositoriesUpdate();
|
|
60180
61130
|
init_v2repositoriesupdateop();
|
|
60181
61131
|
init_tools();
|
|
60182
|
-
|
|
61132
|
+
args38 = {
|
|
60183
61133
|
request: V2RepositoriesUpdateRequest$zodSchema
|
|
60184
61134
|
};
|
|
60185
61135
|
tool$repositoriesV2RepositoriesUpdate = {
|
|
@@ -60194,7 +61144,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
60194
61144
|
openWorldHint: false,
|
|
60195
61145
|
readOnlyHint: false
|
|
60196
61146
|
},
|
|
60197
|
-
args:
|
|
61147
|
+
args: args38,
|
|
60198
61148
|
tool: async (client, args, ctx) => {
|
|
60199
61149
|
const [result] = await repositoriesV2RepositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60200
61150
|
if (!result.ok) {
|
|
@@ -60210,9 +61160,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
60210
61160
|
|
|
60211
61161
|
// src/funcs/siteAuditsV2SiteAuditsList.ts
|
|
60212
61162
|
function siteAuditsV2SiteAuditsList(client$, options) {
|
|
60213
|
-
return new APIPromise($
|
|
61163
|
+
return new APIPromise($do47(client$, options));
|
|
60214
61164
|
}
|
|
60215
|
-
async function $
|
|
61165
|
+
async function $do47(client$, options) {
|
|
60216
61166
|
const path$ = pathToFunc("/v2/site-audits")();
|
|
60217
61167
|
const headers$ = new Headers(compactMap({
|
|
60218
61168
|
Accept: "application/json"
|
|
@@ -60353,9 +61303,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
|
|
|
60353
61303
|
|
|
60354
61304
|
// src/funcs/siteAuditsV2SiteAuditsRetrieve.ts
|
|
60355
61305
|
function siteAuditsV2SiteAuditsRetrieve(client$, request, options) {
|
|
60356
|
-
return new APIPromise($
|
|
61306
|
+
return new APIPromise($do48(client$, request, options));
|
|
60357
61307
|
}
|
|
60358
|
-
async function $
|
|
61308
|
+
async function $do48(client$, request, options) {
|
|
60359
61309
|
const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60360
61310
|
if (!parsed$.ok) {
|
|
60361
61311
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60430,12 +61380,12 @@ var init_siteAuditsV2SiteAuditsRetrieve = __esm(() => {
|
|
|
60430
61380
|
});
|
|
60431
61381
|
|
|
60432
61382
|
// src/mcp-server/tools/siteAuditsV2SiteAuditsRetrieve.ts
|
|
60433
|
-
var
|
|
61383
|
+
var args39, tool$siteAuditsV2SiteAuditsRetrieve;
|
|
60434
61384
|
var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
|
|
60435
61385
|
init_siteAuditsV2SiteAuditsRetrieve();
|
|
60436
61386
|
init_v2siteauditsretrieveop();
|
|
60437
61387
|
init_tools();
|
|
60438
|
-
|
|
61388
|
+
args39 = {
|
|
60439
61389
|
request: V2SiteAuditsRetrieveRequest$zodSchema
|
|
60440
61390
|
};
|
|
60441
61391
|
tool$siteAuditsV2SiteAuditsRetrieve = {
|
|
@@ -60450,7 +61400,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
60450
61400
|
openWorldHint: false,
|
|
60451
61401
|
readOnlyHint: true
|
|
60452
61402
|
},
|
|
60453
|
-
args:
|
|
61403
|
+
args: args39,
|
|
60454
61404
|
tool: async (client, args, ctx) => {
|
|
60455
61405
|
const [result] = await siteAuditsV2SiteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60456
61406
|
if (!result.ok) {
|
|
@@ -60466,9 +61416,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
60466
61416
|
|
|
60467
61417
|
// src/funcs/skillsV2SkillsList.ts
|
|
60468
61418
|
function skillsV2SkillsList(client$, options) {
|
|
60469
|
-
return new APIPromise($
|
|
61419
|
+
return new APIPromise($do49(client$, options));
|
|
60470
61420
|
}
|
|
60471
|
-
async function $
|
|
61421
|
+
async function $do49(client$, options) {
|
|
60472
61422
|
const path$ = pathToFunc("/v2/skills")();
|
|
60473
61423
|
const headers$ = new Headers(compactMap({
|
|
60474
61424
|
Accept: "application/json"
|
|
@@ -60558,9 +61508,9 @@ Returns reusable skills available to workflows and eval configurations.`,
|
|
|
60558
61508
|
|
|
60559
61509
|
// src/funcs/statusV2AuthStatusGet.ts
|
|
60560
61510
|
function statusV2AuthStatusGet(client$, options) {
|
|
60561
|
-
return new APIPromise($
|
|
61511
|
+
return new APIPromise($do50(client$, options));
|
|
60562
61512
|
}
|
|
60563
|
-
async function $
|
|
61513
|
+
async function $do50(client$, options) {
|
|
60564
61514
|
const path$ = pathToFunc("/v2/auth/status")();
|
|
60565
61515
|
const headers$ = new Headers(compactMap({
|
|
60566
61516
|
Accept: "application/json"
|
|
@@ -60650,9 +61600,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
|
|
|
60650
61600
|
|
|
60651
61601
|
// src/funcs/statusV2StatusGet.ts
|
|
60652
61602
|
function statusV2StatusGet(client$, options) {
|
|
60653
|
-
return new APIPromise($
|
|
61603
|
+
return new APIPromise($do51(client$, options));
|
|
60654
61604
|
}
|
|
60655
|
-
async function $
|
|
61605
|
+
async function $do51(client$, options) {
|
|
60656
61606
|
const path$ = pathToFunc("/v2/status")();
|
|
60657
61607
|
const headers$ = new Headers(compactMap({
|
|
60658
61608
|
Accept: "application/json"
|
|
@@ -60872,9 +61822,9 @@ var init_v2taskslistop = __esm(() => {
|
|
|
60872
61822
|
|
|
60873
61823
|
// src/funcs/tasksV2TasksList.ts
|
|
60874
61824
|
function tasksV2TasksList(client$, request, options) {
|
|
60875
|
-
return new APIPromise($
|
|
61825
|
+
return new APIPromise($do52(client$, request, options));
|
|
60876
61826
|
}
|
|
60877
|
-
async function $
|
|
61827
|
+
async function $do52(client$, request, options) {
|
|
60878
61828
|
const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
60879
61829
|
if (!parsed$.ok) {
|
|
60880
61830
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60948,12 +61898,12 @@ var init_tasksV2TasksList = __esm(() => {
|
|
|
60948
61898
|
});
|
|
60949
61899
|
|
|
60950
61900
|
// src/mcp-server/tools/tasksV2TasksList.ts
|
|
60951
|
-
var
|
|
61901
|
+
var args40, tool$tasksV2TasksList;
|
|
60952
61902
|
var init_tasksV2TasksList2 = __esm(() => {
|
|
60953
61903
|
init_tasksV2TasksList();
|
|
60954
61904
|
init_v2taskslistop();
|
|
60955
61905
|
init_tools();
|
|
60956
|
-
|
|
61906
|
+
args40 = {
|
|
60957
61907
|
request: V2TasksListRequest$zodSchema.optional()
|
|
60958
61908
|
};
|
|
60959
61909
|
tool$tasksV2TasksList = {
|
|
@@ -60968,7 +61918,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
|
|
|
60968
61918
|
openWorldHint: false,
|
|
60969
61919
|
readOnlyHint: true
|
|
60970
61920
|
},
|
|
60971
|
-
args:
|
|
61921
|
+
args: args40,
|
|
60972
61922
|
tool: async (client, args, ctx) => {
|
|
60973
61923
|
const [result] = await tasksV2TasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60974
61924
|
if (!result.ok) {
|
|
@@ -60999,9 +61949,9 @@ var init_v2tasksretrieveop = __esm(() => {
|
|
|
60999
61949
|
|
|
61000
61950
|
// src/funcs/tasksV2TasksRetrieve.ts
|
|
61001
61951
|
function tasksV2TasksRetrieve(client$, request, options) {
|
|
61002
|
-
return new APIPromise($
|
|
61952
|
+
return new APIPromise($do53(client$, request, options));
|
|
61003
61953
|
}
|
|
61004
|
-
async function $
|
|
61954
|
+
async function $do53(client$, request, options) {
|
|
61005
61955
|
const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61006
61956
|
if (!parsed$.ok) {
|
|
61007
61957
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61076,12 +62026,12 @@ var init_tasksV2TasksRetrieve = __esm(() => {
|
|
|
61076
62026
|
});
|
|
61077
62027
|
|
|
61078
62028
|
// src/mcp-server/tools/tasksV2TasksRetrieve.ts
|
|
61079
|
-
var
|
|
62029
|
+
var args41, tool$tasksV2TasksRetrieve;
|
|
61080
62030
|
var init_tasksV2TasksRetrieve2 = __esm(() => {
|
|
61081
62031
|
init_tasksV2TasksRetrieve();
|
|
61082
62032
|
init_v2tasksretrieveop();
|
|
61083
62033
|
init_tools();
|
|
61084
|
-
|
|
62034
|
+
args41 = {
|
|
61085
62035
|
request: V2TasksRetrieveRequest$zodSchema
|
|
61086
62036
|
};
|
|
61087
62037
|
tool$tasksV2TasksRetrieve = {
|
|
@@ -61096,7 +62046,7 @@ Returns one persisted task and its execution prompt.`,
|
|
|
61096
62046
|
openWorldHint: false,
|
|
61097
62047
|
readOnlyHint: true
|
|
61098
62048
|
},
|
|
61099
|
-
args:
|
|
62049
|
+
args: args41,
|
|
61100
62050
|
tool: async (client, args, ctx) => {
|
|
61101
62051
|
const [result] = await tasksV2TasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61102
62052
|
if (!result.ok) {
|
|
@@ -61159,9 +62109,9 @@ var init_v2tasksupdateop = __esm(() => {
|
|
|
61159
62109
|
|
|
61160
62110
|
// src/funcs/tasksV2TasksUpdate.ts
|
|
61161
62111
|
function tasksV2TasksUpdate(client$, request, options) {
|
|
61162
|
-
return new APIPromise($
|
|
62112
|
+
return new APIPromise($do54(client$, request, options));
|
|
61163
62113
|
}
|
|
61164
|
-
async function $
|
|
62114
|
+
async function $do54(client$, request, options) {
|
|
61165
62115
|
const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61166
62116
|
if (!parsed$.ok) {
|
|
61167
62117
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61237,12 +62187,12 @@ var init_tasksV2TasksUpdate = __esm(() => {
|
|
|
61237
62187
|
});
|
|
61238
62188
|
|
|
61239
62189
|
// src/mcp-server/tools/tasksV2TasksUpdate.ts
|
|
61240
|
-
var
|
|
62190
|
+
var args42, tool$tasksV2TasksUpdate;
|
|
61241
62191
|
var init_tasksV2TasksUpdate2 = __esm(() => {
|
|
61242
62192
|
init_tasksV2TasksUpdate();
|
|
61243
62193
|
init_v2tasksupdateop();
|
|
61244
62194
|
init_tools();
|
|
61245
|
-
|
|
62195
|
+
args42 = {
|
|
61246
62196
|
request: V2TasksUpdateRequest$zodSchema
|
|
61247
62197
|
};
|
|
61248
62198
|
tool$tasksV2TasksUpdate = {
|
|
@@ -61257,7 +62207,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
|
|
|
61257
62207
|
openWorldHint: false,
|
|
61258
62208
|
readOnlyHint: false
|
|
61259
62209
|
},
|
|
61260
|
-
args:
|
|
62210
|
+
args: args42,
|
|
61261
62211
|
tool: async (client, args, ctx) => {
|
|
61262
62212
|
const [result] = await tasksV2TasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61263
62213
|
if (!result.ok) {
|
|
@@ -61345,9 +62295,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
|
|
|
61345
62295
|
|
|
61346
62296
|
// src/funcs/visibilityV2VisibilityCitationsList.ts
|
|
61347
62297
|
function visibilityV2VisibilityCitationsList(client$, request, options) {
|
|
61348
|
-
return new APIPromise($
|
|
62298
|
+
return new APIPromise($do55(client$, request, options));
|
|
61349
62299
|
}
|
|
61350
|
-
async function $
|
|
62300
|
+
async function $do55(client$, request, options) {
|
|
61351
62301
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61352
62302
|
if (!parsed$.ok) {
|
|
61353
62303
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61424,12 +62374,12 @@ var init_visibilityV2VisibilityCitationsList = __esm(() => {
|
|
|
61424
62374
|
});
|
|
61425
62375
|
|
|
61426
62376
|
// src/mcp-server/tools/visibilityV2VisibilityCitationsList.ts
|
|
61427
|
-
var
|
|
62377
|
+
var args43, tool$visibilityV2VisibilityCitationsList;
|
|
61428
62378
|
var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
|
|
61429
62379
|
init_visibilityV2VisibilityCitationsList();
|
|
61430
62380
|
init_v2visibilitycitationslistop();
|
|
61431
62381
|
init_tools();
|
|
61432
|
-
|
|
62382
|
+
args43 = {
|
|
61433
62383
|
request: V2VisibilityCitationsListRequest$zodSchema.optional()
|
|
61434
62384
|
};
|
|
61435
62385
|
tool$visibilityV2VisibilityCitationsList = {
|
|
@@ -61444,7 +62394,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
61444
62394
|
openWorldHint: false,
|
|
61445
62395
|
readOnlyHint: true
|
|
61446
62396
|
},
|
|
61447
|
-
args:
|
|
62397
|
+
args: args43,
|
|
61448
62398
|
tool: async (client, args, ctx) => {
|
|
61449
62399
|
const [result] = await visibilityV2VisibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61450
62400
|
if (!result.ok) {
|
|
@@ -61509,9 +62459,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
61509
62459
|
|
|
61510
62460
|
// src/funcs/visibilityV2VisibilityCurrentRetrieve.ts
|
|
61511
62461
|
function visibilityV2VisibilityCurrentRetrieve(client$, request, options) {
|
|
61512
|
-
return new APIPromise($
|
|
62462
|
+
return new APIPromise($do56(client$, request, options));
|
|
61513
62463
|
}
|
|
61514
|
-
async function $
|
|
62464
|
+
async function $do56(client$, request, options) {
|
|
61515
62465
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61516
62466
|
if (!parsed$.ok) {
|
|
61517
62467
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61585,12 +62535,12 @@ var init_visibilityV2VisibilityCurrentRetrieve = __esm(() => {
|
|
|
61585
62535
|
});
|
|
61586
62536
|
|
|
61587
62537
|
// src/mcp-server/tools/visibilityV2VisibilityCurrentRetrieve.ts
|
|
61588
|
-
var
|
|
62538
|
+
var args44, tool$visibilityV2VisibilityCurrentRetrieve;
|
|
61589
62539
|
var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
|
|
61590
62540
|
init_visibilityV2VisibilityCurrentRetrieve();
|
|
61591
62541
|
init_v2visibilitycurrentretrieveop();
|
|
61592
62542
|
init_tools();
|
|
61593
|
-
|
|
62543
|
+
args44 = {
|
|
61594
62544
|
request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
|
|
61595
62545
|
};
|
|
61596
62546
|
tool$visibilityV2VisibilityCurrentRetrieve = {
|
|
@@ -61605,7 +62555,7 @@ Returns visibility score, share of voice, ranks, and date-range metadata for the
|
|
|
61605
62555
|
openWorldHint: false,
|
|
61606
62556
|
readOnlyHint: true
|
|
61607
62557
|
},
|
|
61608
|
-
args:
|
|
62558
|
+
args: args44,
|
|
61609
62559
|
tool: async (client, args, ctx) => {
|
|
61610
62560
|
const [result] = await visibilityV2VisibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61611
62561
|
if (!result.ok) {
|
|
@@ -61748,9 +62698,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
61748
62698
|
|
|
61749
62699
|
// src/funcs/visibilityV2VisibilityOverviewRetrieve.ts
|
|
61750
62700
|
function visibilityV2VisibilityOverviewRetrieve(client$, request, options) {
|
|
61751
|
-
return new APIPromise($
|
|
62701
|
+
return new APIPromise($do57(client$, request, options));
|
|
61752
62702
|
}
|
|
61753
|
-
async function $
|
|
62703
|
+
async function $do57(client$, request, options) {
|
|
61754
62704
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61755
62705
|
if (!parsed$.ok) {
|
|
61756
62706
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61824,12 +62774,12 @@ var init_visibilityV2VisibilityOverviewRetrieve = __esm(() => {
|
|
|
61824
62774
|
});
|
|
61825
62775
|
|
|
61826
62776
|
// src/mcp-server/tools/visibilityV2VisibilityOverviewRetrieve.ts
|
|
61827
|
-
var
|
|
62777
|
+
var args45, tool$visibilityV2VisibilityOverviewRetrieve;
|
|
61828
62778
|
var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
|
|
61829
62779
|
init_visibilityV2VisibilityOverviewRetrieve();
|
|
61830
62780
|
init_v2visibilityoverviewretrieveop();
|
|
61831
62781
|
init_tools();
|
|
61832
|
-
|
|
62782
|
+
args45 = {
|
|
61833
62783
|
request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
|
|
61834
62784
|
};
|
|
61835
62785
|
tool$visibilityV2VisibilityOverviewRetrieve = {
|
|
@@ -61844,7 +62794,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
|
|
|
61844
62794
|
openWorldHint: false,
|
|
61845
62795
|
readOnlyHint: true
|
|
61846
62796
|
},
|
|
61847
|
-
args:
|
|
62797
|
+
args: args45,
|
|
61848
62798
|
tool: async (client, args, ctx) => {
|
|
61849
62799
|
const [result] = await visibilityV2VisibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61850
62800
|
if (!result.ok) {
|
|
@@ -61958,9 +62908,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
61958
62908
|
|
|
61959
62909
|
// src/funcs/visibilityV2VisibilityPromptsRetrieve.ts
|
|
61960
62910
|
function visibilityV2VisibilityPromptsRetrieve(client$, request, options) {
|
|
61961
|
-
return new APIPromise($
|
|
62911
|
+
return new APIPromise($do58(client$, request, options));
|
|
61962
62912
|
}
|
|
61963
|
-
async function $
|
|
62913
|
+
async function $do58(client$, request, options) {
|
|
61964
62914
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61965
62915
|
if (!parsed$.ok) {
|
|
61966
62916
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62034,12 +62984,12 @@ var init_visibilityV2VisibilityPromptsRetrieve = __esm(() => {
|
|
|
62034
62984
|
});
|
|
62035
62985
|
|
|
62036
62986
|
// src/mcp-server/tools/visibilityV2VisibilityPromptsRetrieve.ts
|
|
62037
|
-
var
|
|
62987
|
+
var args46, tool$visibilityV2VisibilityPromptsRetrieve;
|
|
62038
62988
|
var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
|
|
62039
62989
|
init_visibilityV2VisibilityPromptsRetrieve();
|
|
62040
62990
|
init_v2visibilitypromptsretrieveop();
|
|
62041
62991
|
init_tools();
|
|
62042
|
-
|
|
62992
|
+
args46 = {
|
|
62043
62993
|
request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
|
|
62044
62994
|
};
|
|
62045
62995
|
tool$visibilityV2VisibilityPromptsRetrieve = {
|
|
@@ -62054,7 +63004,7 @@ Returns per-topic and per-prompt visibility metrics including score, rank, share
|
|
|
62054
63004
|
openWorldHint: false,
|
|
62055
63005
|
readOnlyHint: true
|
|
62056
63006
|
},
|
|
62057
|
-
args:
|
|
63007
|
+
args: args46,
|
|
62058
63008
|
tool: async (client, args, ctx) => {
|
|
62059
63009
|
const [result] = await visibilityV2VisibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62060
63010
|
if (!result.ok) {
|
|
@@ -62078,7 +63028,7 @@ function createMCPServer(deps) {
|
|
|
62078
63028
|
sizes: ["any"]
|
|
62079
63029
|
}],
|
|
62080
63030
|
name: "LightsageMcp",
|
|
62081
|
-
version: "0.4.
|
|
63031
|
+
version: "0.4.1"
|
|
62082
63032
|
});
|
|
62083
63033
|
const getClient = deps.getSDK || (() => new LightsageMcpCore({
|
|
62084
63034
|
security: deps.security,
|
|
@@ -62126,6 +63076,7 @@ function createMCPServer(deps) {
|
|
|
62126
63076
|
tool(tool$siteAuditsV2SiteAuditsRetrieve);
|
|
62127
63077
|
tool(tool$evalsV2EvalsList);
|
|
62128
63078
|
tool(tool$evalsV2EvalsCreate);
|
|
63079
|
+
tool(tool$evalsV2EvalsBatchCreate);
|
|
62129
63080
|
tool(tool$evalsV2EvalsRetrieve);
|
|
62130
63081
|
tool(tool$evalsV2EvalsUpdate);
|
|
62131
63082
|
tool(tool$evalsV2EvalsDelete);
|
|
@@ -62138,6 +63089,11 @@ function createMCPServer(deps) {
|
|
|
62138
63089
|
tool(tool$evalsCancel);
|
|
62139
63090
|
tool(tool$evalsTrace);
|
|
62140
63091
|
tool(tool$evalsGet);
|
|
63092
|
+
tool(tool$evalTemplatesV2EvalTemplatesList);
|
|
63093
|
+
tool(tool$evalTemplatesV2EvalTemplatesCreate);
|
|
63094
|
+
tool(tool$evalTemplatesV2EvalTemplatesRetrieve);
|
|
63095
|
+
tool(tool$evalTemplatesV2EvalTemplatesUpdate);
|
|
63096
|
+
tool(tool$evalTemplatesV2EvalTemplatesDelete);
|
|
62141
63097
|
tool(tool$evalRunsV2EvalRunsList);
|
|
62142
63098
|
tool(tool$agentsV2AgentsList);
|
|
62143
63099
|
tool(tool$repositoriesV2RepositoriesList);
|
|
@@ -62175,11 +63131,17 @@ var init_server2 = __esm(() => {
|
|
|
62175
63131
|
init_evalsV2EvalConfigurationsList2();
|
|
62176
63132
|
init_evalsV2EvalConfigurationsRetrieve2();
|
|
62177
63133
|
init_evalsV2EvalConfigurationsUpdate2();
|
|
63134
|
+
init_evalsV2EvalsBatchCreate2();
|
|
62178
63135
|
init_evalsV2EvalsCreate2();
|
|
62179
63136
|
init_evalsV2EvalsDelete2();
|
|
62180
63137
|
init_evalsV2EvalsList2();
|
|
62181
63138
|
init_evalsV2EvalsRetrieve2();
|
|
62182
63139
|
init_evalsV2EvalsUpdate2();
|
|
63140
|
+
init_evalTemplatesV2EvalTemplatesCreate2();
|
|
63141
|
+
init_evalTemplatesV2EvalTemplatesDelete2();
|
|
63142
|
+
init_evalTemplatesV2EvalTemplatesList2();
|
|
63143
|
+
init_evalTemplatesV2EvalTemplatesRetrieve2();
|
|
63144
|
+
init_evalTemplatesV2EvalTemplatesUpdate2();
|
|
62183
63145
|
init_mcpServersV2MCPServersList2();
|
|
62184
63146
|
init_opportunitiesV2OpportunitiesList2();
|
|
62185
63147
|
init_opportunitiesV2OpportunitiesRetrieve2();
|
|
@@ -62377,6 +63339,10 @@ Returns all active eval definitions owned by the organization.`
|
|
|
62377
63339
|
name: "evals-v2-evals-create",
|
|
62378
63340
|
description: "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values."
|
|
62379
63341
|
},
|
|
63342
|
+
{
|
|
63343
|
+
name: "evals-v2-evals-batch-create",
|
|
63344
|
+
description: "Create evals from a template\n\nStep 2 of the reusable template workflow. Provide the `id` and `version` returned by `POST /v2/eval-templates` as `template_id` and `expected_template_version`, then provide only prompt-specific fields in `evals`. The template supplies only the settings named in its `included_components`; omitted settings keep the values supplied by the creation workflow or its defaults. Included values are copied at creation time, so later template changes do not alter the created evals. Competitor selections create one additional eval per selected competitor for every input item, and the response groups each base eval with those variants. Brand-scoped runtime resources are validated against the organization's primary brand before any eval is created."
|
|
63345
|
+
},
|
|
62380
63346
|
{
|
|
62381
63347
|
name: "evals-v2-evals-retrieve",
|
|
62382
63348
|
description: `Retrieve Eval
|
|
@@ -62442,6 +63408,32 @@ Marks an active eval run as cancelled and prevents queued attempts from starting
|
|
|
62442
63408
|
description: `Retrieve an eval run
|
|
62443
63409
|
|
|
62444
63410
|
Returns the run's current status and progress. Once its attempts finish, the response also includes their results and analysis. Poll this until the status reaches a terminal value. Use the trace operation for the raw execution event log, or the monitor operation to follow a run live.`
|
|
63411
|
+
},
|
|
63412
|
+
{
|
|
63413
|
+
name: "eval-templates-v2-eval-templates-list",
|
|
63414
|
+
description: `List Eval templates
|
|
63415
|
+
|
|
63416
|
+
Returns active reusable Eval templates owned by the authenticated organization. Templates contain reusable configuration and never task prompts.`
|
|
63417
|
+
},
|
|
63418
|
+
{
|
|
63419
|
+
name: "eval-templates-v2-eval-templates-create",
|
|
63420
|
+
description: "Create an Eval template\n\nStep 1 of the reusable template workflow. Creates an organization-owned Eval template containing only the configuration components selected in `included_components`. Do not include task prompts in the template. The response returns the template `id` and `version`; pass them as `template_id` and `expected_template_version` to `POST /v2/evals/batch` with each eval's name and prompts. Applying a template copies its values into the new evals without creating a live link."
|
|
63421
|
+
},
|
|
63422
|
+
{
|
|
63423
|
+
name: "eval-templates-v2-eval-templates-retrieve",
|
|
63424
|
+
description: `Retrieve an Eval template
|
|
63425
|
+
|
|
63426
|
+
Returns one active reusable Eval template.`
|
|
63427
|
+
},
|
|
63428
|
+
{
|
|
63429
|
+
name: "eval-templates-v2-eval-templates-update",
|
|
63430
|
+
description: "Update an Eval template\n\nUpdates an Eval template. Supply `expected_template_version` to reject an edit based on stale data. Existing evals are never changed."
|
|
63431
|
+
},
|
|
63432
|
+
{
|
|
63433
|
+
name: "eval-templates-v2-eval-templates-delete",
|
|
63434
|
+
description: `Delete an Eval template
|
|
63435
|
+
|
|
63436
|
+
Soft-deletes an Eval template. Evals previously created from it remain independent and continue to run with their copied configuration.`
|
|
62445
63437
|
},
|
|
62446
63438
|
{
|
|
62447
63439
|
name: "eval-runs-v2-eval-runs-list",
|
|
@@ -63411,7 +64403,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
63411
64403
|
<h1>Instructions</h1>
|
|
63412
64404
|
<p>One-click installation for Claude Desktop users</p>
|
|
63413
64405
|
<div class="instruction-item">
|
|
63414
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.
|
|
64406
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.1/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
63415
64407
|
\uD83D\uDCE5 Download MCP Bundle
|
|
63416
64408
|
</a>
|
|
63417
64409
|
</div>
|
|
@@ -66289,7 +67281,7 @@ var routes = buildRouteMap({
|
|
|
66289
67281
|
var app = buildApplication(routes, {
|
|
66290
67282
|
name: "mcp",
|
|
66291
67283
|
versionInfo: {
|
|
66292
|
-
currentVersion: "0.4.
|
|
67284
|
+
currentVersion: "0.4.1"
|
|
66293
67285
|
}
|
|
66294
67286
|
});
|
|
66295
67287
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -66297,5 +67289,5 @@ export {
|
|
|
66297
67289
|
app
|
|
66298
67290
|
};
|
|
66299
67291
|
|
|
66300
|
-
//# debugId=
|
|
67292
|
+
//# debugId=9D9BF9F9417C659E64756E2164756E21
|
|
66301
67293
|
//# sourceMappingURL=mcp-server.js.map
|