@lightsage/mcp 0.4.3 → 0.4.5
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 +358 -772
- package/bin/mcp-server.js.map +14 -24
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- 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 +1 -7
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/models/evaltemplate.js +3 -3
- package/esm/models/evaltemplate.js.map +1 -1
- package/esm/models/v2visibilitycurrentretrieveop.js +1 -1
- package/esm/models/v2visibilitycurrentretrieveop.js.map +1 -1
- package/esm/models/v2visibilityoverviewretrieveop.js +1 -1
- package/esm/models/v2visibilityoverviewretrieveop.js.map +1 -1
- package/esm/models/v2visibilitypromptsretrieveop.js +1 -1
- package/esm/models/v2visibilitypromptsretrieveop.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +0 -12
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -7
- package/src/models/evaltemplate.ts +3 -3
- package/src/models/v2visibilitycurrentretrieveop.ts +1 -1
- package/src/models/v2visibilityoverviewretrieveop.ts +1 -1
- package/src/models/v2visibilitypromptsretrieveop.ts +1 -1
- package/src/tool-names.ts +0 -12
- package/esm/funcs/contentV2ContentDraftsCreate.d.ts +0 -16
- package/esm/funcs/contentV2ContentDraftsCreate.d.ts.map +0 -1
- package/esm/funcs/contentV2ContentDraftsCreate.js +0 -83
- package/esm/funcs/contentV2ContentDraftsCreate.js.map +0 -1
- package/esm/funcs/contentV2ContentFinalize.d.ts +0 -16
- package/esm/funcs/contentV2ContentFinalize.d.ts.map +0 -1
- package/esm/funcs/contentV2ContentFinalize.js +0 -88
- package/esm/funcs/contentV2ContentFinalize.js.map +0 -1
- package/esm/funcs/contentV2ContentRetrieve.d.ts +0 -16
- package/esm/funcs/contentV2ContentRetrieve.d.ts.map +0 -1
- package/esm/funcs/contentV2ContentRetrieve.js +0 -88
- package/esm/funcs/contentV2ContentRetrieve.js.map +0 -1
- package/esm/mcp-server/tools/contentV2ContentDraftsCreate.d.ts +0 -7
- package/esm/mcp-server/tools/contentV2ContentDraftsCreate.d.ts.map +0 -1
- package/esm/mcp-server/tools/contentV2ContentDraftsCreate.js +0 -35
- package/esm/mcp-server/tools/contentV2ContentDraftsCreate.js.map +0 -1
- package/esm/mcp-server/tools/contentV2ContentFinalize.d.ts +0 -7
- package/esm/mcp-server/tools/contentV2ContentFinalize.d.ts.map +0 -1
- package/esm/mcp-server/tools/contentV2ContentFinalize.js +0 -35
- package/esm/mcp-server/tools/contentV2ContentFinalize.js.map +0 -1
- package/esm/mcp-server/tools/contentV2ContentRetrieve.d.ts +0 -7
- package/esm/mcp-server/tools/contentV2ContentRetrieve.d.ts.map +0 -1
- package/esm/mcp-server/tools/contentV2ContentRetrieve.js +0 -35
- package/esm/mcp-server/tools/contentV2ContentRetrieve.js.map +0 -1
- package/esm/models/generatecontentdraftrequest.d.ts +0 -9
- package/esm/models/generatecontentdraftrequest.d.ts.map +0 -1
- package/esm/models/generatecontentdraftrequest.js +0 -12
- package/esm/models/generatecontentdraftrequest.js.map +0 -1
- package/esm/models/publiccontent.d.ts +0 -11
- package/esm/models/publiccontent.d.ts.map +0 -1
- package/esm/models/publiccontent.js +0 -14
- package/esm/models/publiccontent.js.map +0 -1
- package/esm/models/v2contentdraftscreateop.d.ts +0 -6
- package/esm/models/v2contentdraftscreateop.d.ts.map +0 -1
- package/esm/models/v2contentdraftscreateop.js +0 -12
- package/esm/models/v2contentdraftscreateop.js.map +0 -1
- package/esm/models/v2contentfinalizeop.d.ts +0 -10
- package/esm/models/v2contentfinalizeop.d.ts.map +0 -1
- package/esm/models/v2contentfinalizeop.js +0 -15
- package/esm/models/v2contentfinalizeop.js.map +0 -1
- package/esm/models/v2contentretrieveop.d.ts +0 -10
- package/esm/models/v2contentretrieveop.d.ts.map +0 -1
- package/esm/models/v2contentretrieveop.js +0 -15
- package/esm/models/v2contentretrieveop.js.map +0 -1
- package/src/funcs/contentV2ContentDraftsCreate.ts +0 -145
- package/src/funcs/contentV2ContentFinalize.ts +0 -153
- package/src/funcs/contentV2ContentRetrieve.ts +0 -153
- package/src/mcp-server/tools/contentV2ContentDraftsCreate.ts +0 -43
- package/src/mcp-server/tools/contentV2ContentFinalize.ts +0 -43
- package/src/mcp-server/tools/contentV2ContentRetrieve.ts +0 -43
- package/src/models/generatecontentdraftrequest.ts +0 -28
- package/src/models/publiccontent.ts +0 -24
- package/src/models/v2contentdraftscreateop.ts +0 -20
- package/src/models/v2contentfinalizeop.ts +0 -28
- package/src/models/v2contentretrieveop.ts +0 -28
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.
|
|
52848
|
-
genVersion: "2.
|
|
52849
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
52847
|
+
sdkVersion: "0.4.5",
|
|
52848
|
+
genVersion: "2.943.0",
|
|
52849
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.5 2.943.0 1.0.0 @lightsage/mcp"
|
|
52850
52850
|
};
|
|
52851
52851
|
});
|
|
52852
52852
|
|
|
@@ -54449,501 +54449,11 @@ Returns reusable CLIs without exposing setup or installation commands.`,
|
|
|
54449
54449
|
};
|
|
54450
54450
|
});
|
|
54451
54451
|
|
|
54452
|
-
// src/models/errors/sdkvalidationerror.ts
|
|
54453
|
-
function formatZodError(err) {
|
|
54454
|
-
return prettifyError(err);
|
|
54455
|
-
}
|
|
54456
|
-
var SDKValidationError;
|
|
54457
|
-
var init_sdkvalidationerror = __esm(() => {
|
|
54458
|
-
init_zod();
|
|
54459
|
-
SDKValidationError = class SDKValidationError extends Error {
|
|
54460
|
-
rawValue;
|
|
54461
|
-
rawMessage;
|
|
54462
|
-
constructor(message, cause, rawValue) {
|
|
54463
|
-
super(`${message}: ${cause}`);
|
|
54464
|
-
this.name = "SDKValidationError";
|
|
54465
|
-
this.cause = cause;
|
|
54466
|
-
this.rawValue = rawValue;
|
|
54467
|
-
this.rawMessage = message;
|
|
54468
|
-
}
|
|
54469
|
-
pretty() {
|
|
54470
|
-
if (this.cause instanceof ZodError) {
|
|
54471
|
-
return `${this.rawMessage}
|
|
54472
|
-
${formatZodError(this.cause)}`;
|
|
54473
|
-
} else {
|
|
54474
|
-
return this.toString();
|
|
54475
|
-
}
|
|
54476
|
-
}
|
|
54477
|
-
};
|
|
54478
|
-
});
|
|
54479
|
-
|
|
54480
|
-
// src/types/fp.ts
|
|
54481
|
-
function OK3(value) {
|
|
54482
|
-
return { ok: true, value };
|
|
54483
|
-
}
|
|
54484
|
-
function ERR2(error) {
|
|
54485
|
-
return { ok: false, error };
|
|
54486
|
-
}
|
|
54487
|
-
|
|
54488
|
-
// src/lib/schemas.ts
|
|
54489
|
-
function collectExtraKeys(obj, extrasKey, optional) {
|
|
54490
|
-
return obj.transform((val) => {
|
|
54491
|
-
const extras = {};
|
|
54492
|
-
const { shape } = obj;
|
|
54493
|
-
for (const [key] of Object.entries(val)) {
|
|
54494
|
-
if (key in shape) {
|
|
54495
|
-
continue;
|
|
54496
|
-
}
|
|
54497
|
-
const v = val[key];
|
|
54498
|
-
if (typeof v === "undefined") {
|
|
54499
|
-
continue;
|
|
54500
|
-
}
|
|
54501
|
-
extras[key] = v;
|
|
54502
|
-
delete val[key];
|
|
54503
|
-
}
|
|
54504
|
-
if (optional && Object.keys(extras).length === 0) {
|
|
54505
|
-
return val;
|
|
54506
|
-
}
|
|
54507
|
-
return { ...val, [extrasKey]: extras };
|
|
54508
|
-
});
|
|
54509
|
-
}
|
|
54510
|
-
function safeParse4(rawValue, fn, errorMessage) {
|
|
54511
|
-
try {
|
|
54512
|
-
return OK3(fn(rawValue));
|
|
54513
|
-
} catch (err) {
|
|
54514
|
-
return ERR2(new SDKValidationError(errorMessage, err, rawValue));
|
|
54515
|
-
}
|
|
54516
|
-
}
|
|
54517
|
-
var init_schemas4 = __esm(() => {
|
|
54518
|
-
init_sdkvalidationerror();
|
|
54519
|
-
});
|
|
54520
|
-
|
|
54521
|
-
// src/models/generatecontentdraftrequest.ts
|
|
54522
|
-
var GenerateContentDraftRequest$zodSchema;
|
|
54523
|
-
var init_generatecontentdraftrequest = __esm(() => {
|
|
54524
|
-
init_zod();
|
|
54525
|
-
GenerateContentDraftRequest$zodSchema = object({
|
|
54526
|
-
description: string2().optional().describe("Brief on angle, audience, or goals."),
|
|
54527
|
-
prompt_texts: array(string2()).optional().describe("Related prompts or questions to ground the article."),
|
|
54528
|
-
title: string2(),
|
|
54529
|
-
topic_name: string2().optional().describe("The topic or theme for the article. Defaults to `title`.")
|
|
54530
|
-
});
|
|
54531
|
-
});
|
|
54532
|
-
|
|
54533
|
-
// src/funcs/contentV2ContentDraftsCreate.ts
|
|
54534
|
-
function contentV2ContentDraftsCreate(client$, request, options) {
|
|
54535
|
-
return new APIPromise($do3(client$, request, options));
|
|
54536
|
-
}
|
|
54537
|
-
async function $do3(client$, request, options) {
|
|
54538
|
-
const parsed$ = safeParse4(request, (value$) => GenerateContentDraftRequest$zodSchema.parse(value$), "Input validation failed");
|
|
54539
|
-
if (!parsed$.ok) {
|
|
54540
|
-
return [parsed$, { status: "invalid" }];
|
|
54541
|
-
}
|
|
54542
|
-
const payload$ = parsed$.value;
|
|
54543
|
-
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
54544
|
-
const path$ = pathToFunc("/v2/content/drafts")();
|
|
54545
|
-
const headers$ = new Headers(compactMap({
|
|
54546
|
-
"Content-Type": "application/json",
|
|
54547
|
-
Accept: "application/json"
|
|
54548
|
-
}));
|
|
54549
|
-
const securityInput = await extractSecurity(client$._options.security);
|
|
54550
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54551
|
-
const context = {
|
|
54552
|
-
options: client$._options,
|
|
54553
|
-
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
54554
|
-
operationID: "v2_content_drafts_create",
|
|
54555
|
-
oAuth2Scopes: null,
|
|
54556
|
-
resolvedSecurity: requestSecurity,
|
|
54557
|
-
securitySource: client$._options.security,
|
|
54558
|
-
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
54559
|
-
retryCodes: options?.retryCodes || [
|
|
54560
|
-
"429",
|
|
54561
|
-
"500",
|
|
54562
|
-
"502",
|
|
54563
|
-
"503",
|
|
54564
|
-
"504"
|
|
54565
|
-
]
|
|
54566
|
-
};
|
|
54567
|
-
const requestRes = client$._createRequest(context, {
|
|
54568
|
-
security: requestSecurity,
|
|
54569
|
-
method: "POST",
|
|
54570
|
-
baseURL: options?.serverURL,
|
|
54571
|
-
path: path$,
|
|
54572
|
-
headers: headers$,
|
|
54573
|
-
body: body$,
|
|
54574
|
-
userAgent: client$._options.userAgent,
|
|
54575
|
-
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
54576
|
-
}, options);
|
|
54577
|
-
if (!requestRes.ok) {
|
|
54578
|
-
return [requestRes, { status: "invalid" }];
|
|
54579
|
-
}
|
|
54580
|
-
const req$ = requestRes.value;
|
|
54581
|
-
const doResult = await client$._do(req$, {
|
|
54582
|
-
context,
|
|
54583
|
-
errorCodes: [],
|
|
54584
|
-
retryConfig: context.retryConfig,
|
|
54585
|
-
retryCodes: context.retryCodes
|
|
54586
|
-
});
|
|
54587
|
-
if (!doResult.ok) {
|
|
54588
|
-
return [doResult, { status: "request-error", request: req$ }];
|
|
54589
|
-
}
|
|
54590
|
-
return [doResult, {
|
|
54591
|
-
status: "complete",
|
|
54592
|
-
request: req$,
|
|
54593
|
-
response: doResult.value
|
|
54594
|
-
}];
|
|
54595
|
-
}
|
|
54596
|
-
var init_contentV2ContentDraftsCreate = __esm(() => {
|
|
54597
|
-
init_encodings();
|
|
54598
|
-
init_primitives();
|
|
54599
|
-
init_schemas4();
|
|
54600
|
-
init_security();
|
|
54601
|
-
init_url();
|
|
54602
|
-
init_generatecontentdraftrequest();
|
|
54603
|
-
init_async();
|
|
54604
|
-
});
|
|
54605
|
-
|
|
54606
|
-
// src/mcp-server/tools/contentV2ContentDraftsCreate.ts
|
|
54607
|
-
var args, tool$contentV2ContentDraftsCreate;
|
|
54608
|
-
var init_contentV2ContentDraftsCreate2 = __esm(() => {
|
|
54609
|
-
init_contentV2ContentDraftsCreate();
|
|
54610
|
-
init_generatecontentdraftrequest();
|
|
54611
|
-
init_tools();
|
|
54612
|
-
args = {
|
|
54613
|
-
request: GenerateContentDraftRequest$zodSchema
|
|
54614
|
-
};
|
|
54615
|
-
tool$contentV2ContentDraftsCreate = {
|
|
54616
|
-
name: "content-v2-content-drafts-create",
|
|
54617
|
-
description: `Create Content Draft
|
|
54618
|
-
|
|
54619
|
-
Generates and saves a draft article using AI. Returns the new content record with its ID, title, markdown body, slug, and status. Consumes credits.`,
|
|
54620
|
-
annotations: {
|
|
54621
|
-
title: "",
|
|
54622
|
-
destructiveHint: false,
|
|
54623
|
-
idempotentHint: false,
|
|
54624
|
-
openWorldHint: false,
|
|
54625
|
-
readOnlyHint: false
|
|
54626
|
-
},
|
|
54627
|
-
args,
|
|
54628
|
-
tool: async (client, args, ctx) => {
|
|
54629
|
-
const [result] = await contentV2ContentDraftsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54630
|
-
if (!result.ok) {
|
|
54631
|
-
return {
|
|
54632
|
-
content: [{ type: "text", text: result.error.message }],
|
|
54633
|
-
isError: true
|
|
54634
|
-
};
|
|
54635
|
-
}
|
|
54636
|
-
return formatResult(result.value);
|
|
54637
|
-
}
|
|
54638
|
-
};
|
|
54639
|
-
});
|
|
54640
|
-
|
|
54641
|
-
// src/models/validationerror.ts
|
|
54642
|
-
var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
|
|
54643
|
-
var init_validationerror = __esm(() => {
|
|
54644
|
-
init_zod();
|
|
54645
|
-
Loc$zodSchema = union([
|
|
54646
|
-
string2(),
|
|
54647
|
-
int()
|
|
54648
|
-
]);
|
|
54649
|
-
Context$zodSchema = object({});
|
|
54650
|
-
ValidationError$zodSchema = object({
|
|
54651
|
-
ctx: lazy(() => Context$zodSchema).optional(),
|
|
54652
|
-
input: any().optional(),
|
|
54653
|
-
loc: array(union([
|
|
54654
|
-
string2(),
|
|
54655
|
-
int()
|
|
54656
|
-
])),
|
|
54657
|
-
msg: string2(),
|
|
54658
|
-
type: string2()
|
|
54659
|
-
});
|
|
54660
|
-
});
|
|
54661
|
-
|
|
54662
|
-
// src/models/httpvalidationerror.ts
|
|
54663
|
-
var HTTPValidationError$zodSchema;
|
|
54664
|
-
var init_httpvalidationerror = __esm(() => {
|
|
54665
|
-
init_zod();
|
|
54666
|
-
init_validationerror();
|
|
54667
|
-
HTTPValidationError$zodSchema = object({
|
|
54668
|
-
detail: array(ValidationError$zodSchema).optional()
|
|
54669
|
-
});
|
|
54670
|
-
});
|
|
54671
|
-
|
|
54672
|
-
// src/models/publiccontent.ts
|
|
54673
|
-
var PublicContent$zodSchema;
|
|
54674
|
-
var init_publiccontent = __esm(() => {
|
|
54675
|
-
init_zod();
|
|
54676
|
-
PublicContent$zodSchema = object({
|
|
54677
|
-
description: string2().nullable().optional(),
|
|
54678
|
-
id: string2(),
|
|
54679
|
-
slug: string2(),
|
|
54680
|
-
status: string2(),
|
|
54681
|
-
text: string2().describe("The article body in Markdown."),
|
|
54682
|
-
title: string2()
|
|
54683
|
-
});
|
|
54684
|
-
});
|
|
54685
|
-
|
|
54686
|
-
// src/models/v2contentfinalizeop.ts
|
|
54687
|
-
var V2ContentFinalizeRequest$zodSchema, V2ContentFinalizeResponse$zodSchema;
|
|
54688
|
-
var init_v2contentfinalizeop = __esm(() => {
|
|
54689
|
-
init_zod();
|
|
54690
|
-
init_httpvalidationerror();
|
|
54691
|
-
init_publiccontent();
|
|
54692
|
-
V2ContentFinalizeRequest$zodSchema = object({
|
|
54693
|
-
content_id: string2()
|
|
54694
|
-
});
|
|
54695
|
-
V2ContentFinalizeResponse$zodSchema = union([
|
|
54696
|
-
PublicContent$zodSchema,
|
|
54697
|
-
HTTPValidationError$zodSchema
|
|
54698
|
-
]);
|
|
54699
|
-
});
|
|
54700
|
-
|
|
54701
|
-
// src/funcs/contentV2ContentFinalize.ts
|
|
54702
|
-
function contentV2ContentFinalize(client$, request, options) {
|
|
54703
|
-
return new APIPromise($do4(client$, request, options));
|
|
54704
|
-
}
|
|
54705
|
-
async function $do4(client$, request, options) {
|
|
54706
|
-
const parsed$ = safeParse4(request, (value$) => V2ContentFinalizeRequest$zodSchema.parse(value$), "Input validation failed");
|
|
54707
|
-
if (!parsed$.ok) {
|
|
54708
|
-
return [parsed$, { status: "invalid" }];
|
|
54709
|
-
}
|
|
54710
|
-
const payload$ = parsed$.value;
|
|
54711
|
-
const body$ = null;
|
|
54712
|
-
const pathParams$ = {
|
|
54713
|
-
content_id: encodeSimple("content_id", payload$.content_id, {
|
|
54714
|
-
explode: false,
|
|
54715
|
-
charEncoding: "percent"
|
|
54716
|
-
})
|
|
54717
|
-
};
|
|
54718
|
-
const path$ = pathToFunc("/v2/content/{content_id}/finalize")(pathParams$);
|
|
54719
|
-
const headers$ = new Headers(compactMap({
|
|
54720
|
-
Accept: "application/json"
|
|
54721
|
-
}));
|
|
54722
|
-
const securityInput = await extractSecurity(client$._options.security);
|
|
54723
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54724
|
-
const context = {
|
|
54725
|
-
options: client$._options,
|
|
54726
|
-
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
54727
|
-
operationID: "v2_content_finalize",
|
|
54728
|
-
oAuth2Scopes: null,
|
|
54729
|
-
resolvedSecurity: requestSecurity,
|
|
54730
|
-
securitySource: client$._options.security,
|
|
54731
|
-
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
54732
|
-
retryCodes: options?.retryCodes || [
|
|
54733
|
-
"429",
|
|
54734
|
-
"500",
|
|
54735
|
-
"502",
|
|
54736
|
-
"503",
|
|
54737
|
-
"504"
|
|
54738
|
-
]
|
|
54739
|
-
};
|
|
54740
|
-
const requestRes = client$._createRequest(context, {
|
|
54741
|
-
security: requestSecurity,
|
|
54742
|
-
method: "POST",
|
|
54743
|
-
baseURL: options?.serverURL,
|
|
54744
|
-
path: path$,
|
|
54745
|
-
headers: headers$,
|
|
54746
|
-
body: body$,
|
|
54747
|
-
userAgent: client$._options.userAgent,
|
|
54748
|
-
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
54749
|
-
}, options);
|
|
54750
|
-
if (!requestRes.ok) {
|
|
54751
|
-
return [requestRes, { status: "invalid" }];
|
|
54752
|
-
}
|
|
54753
|
-
const req$ = requestRes.value;
|
|
54754
|
-
const doResult = await client$._do(req$, {
|
|
54755
|
-
context,
|
|
54756
|
-
errorCodes: [],
|
|
54757
|
-
retryConfig: context.retryConfig,
|
|
54758
|
-
retryCodes: context.retryCodes
|
|
54759
|
-
});
|
|
54760
|
-
if (!doResult.ok) {
|
|
54761
|
-
return [doResult, { status: "request-error", request: req$ }];
|
|
54762
|
-
}
|
|
54763
|
-
return [doResult, {
|
|
54764
|
-
status: "complete",
|
|
54765
|
-
request: req$,
|
|
54766
|
-
response: doResult.value
|
|
54767
|
-
}];
|
|
54768
|
-
}
|
|
54769
|
-
var init_contentV2ContentFinalize = __esm(() => {
|
|
54770
|
-
init_encodings();
|
|
54771
|
-
init_primitives();
|
|
54772
|
-
init_schemas4();
|
|
54773
|
-
init_security();
|
|
54774
|
-
init_url();
|
|
54775
|
-
init_v2contentfinalizeop();
|
|
54776
|
-
init_async();
|
|
54777
|
-
});
|
|
54778
|
-
|
|
54779
|
-
// src/mcp-server/tools/contentV2ContentFinalize.ts
|
|
54780
|
-
var args2, tool$contentV2ContentFinalize;
|
|
54781
|
-
var init_contentV2ContentFinalize2 = __esm(() => {
|
|
54782
|
-
init_contentV2ContentFinalize();
|
|
54783
|
-
init_v2contentfinalizeop();
|
|
54784
|
-
init_tools();
|
|
54785
|
-
args2 = {
|
|
54786
|
-
request: V2ContentFinalizeRequest$zodSchema
|
|
54787
|
-
};
|
|
54788
|
-
tool$contentV2ContentFinalize = {
|
|
54789
|
-
name: "content-v2-content-finalize",
|
|
54790
|
-
description: `Finalize Content
|
|
54791
|
-
|
|
54792
|
-
Rewrites an existing draft into final, publish-ready content and updates its status. Consumes credits.`,
|
|
54793
|
-
annotations: {
|
|
54794
|
-
title: "",
|
|
54795
|
-
destructiveHint: false,
|
|
54796
|
-
idempotentHint: false,
|
|
54797
|
-
openWorldHint: false,
|
|
54798
|
-
readOnlyHint: false
|
|
54799
|
-
},
|
|
54800
|
-
args: args2,
|
|
54801
|
-
tool: async (client, args, ctx) => {
|
|
54802
|
-
const [result] = await contentV2ContentFinalize(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54803
|
-
if (!result.ok) {
|
|
54804
|
-
return {
|
|
54805
|
-
content: [{ type: "text", text: result.error.message }],
|
|
54806
|
-
isError: true
|
|
54807
|
-
};
|
|
54808
|
-
}
|
|
54809
|
-
return formatResult(result.value);
|
|
54810
|
-
}
|
|
54811
|
-
};
|
|
54812
|
-
});
|
|
54813
|
-
|
|
54814
|
-
// src/models/v2contentretrieveop.ts
|
|
54815
|
-
var V2ContentRetrieveRequest$zodSchema, V2ContentRetrieveResponse$zodSchema;
|
|
54816
|
-
var init_v2contentretrieveop = __esm(() => {
|
|
54817
|
-
init_zod();
|
|
54818
|
-
init_httpvalidationerror();
|
|
54819
|
-
init_publiccontent();
|
|
54820
|
-
V2ContentRetrieveRequest$zodSchema = object({
|
|
54821
|
-
content_id: string2()
|
|
54822
|
-
});
|
|
54823
|
-
V2ContentRetrieveResponse$zodSchema = union([
|
|
54824
|
-
PublicContent$zodSchema,
|
|
54825
|
-
HTTPValidationError$zodSchema
|
|
54826
|
-
]);
|
|
54827
|
-
});
|
|
54828
|
-
|
|
54829
|
-
// src/funcs/contentV2ContentRetrieve.ts
|
|
54830
|
-
function contentV2ContentRetrieve(client$, request, options) {
|
|
54831
|
-
return new APIPromise($do5(client$, request, options));
|
|
54832
|
-
}
|
|
54833
|
-
async function $do5(client$, request, options) {
|
|
54834
|
-
const parsed$ = safeParse4(request, (value$) => V2ContentRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
54835
|
-
if (!parsed$.ok) {
|
|
54836
|
-
return [parsed$, { status: "invalid" }];
|
|
54837
|
-
}
|
|
54838
|
-
const payload$ = parsed$.value;
|
|
54839
|
-
const body$ = null;
|
|
54840
|
-
const pathParams$ = {
|
|
54841
|
-
content_id: encodeSimple("content_id", payload$.content_id, {
|
|
54842
|
-
explode: false,
|
|
54843
|
-
charEncoding: "percent"
|
|
54844
|
-
})
|
|
54845
|
-
};
|
|
54846
|
-
const path$ = pathToFunc("/v2/content/{content_id}")(pathParams$);
|
|
54847
|
-
const headers$ = new Headers(compactMap({
|
|
54848
|
-
Accept: "application/json"
|
|
54849
|
-
}));
|
|
54850
|
-
const securityInput = await extractSecurity(client$._options.security);
|
|
54851
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54852
|
-
const context = {
|
|
54853
|
-
options: client$._options,
|
|
54854
|
-
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
54855
|
-
operationID: "v2_content_retrieve",
|
|
54856
|
-
oAuth2Scopes: null,
|
|
54857
|
-
resolvedSecurity: requestSecurity,
|
|
54858
|
-
securitySource: client$._options.security,
|
|
54859
|
-
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
54860
|
-
retryCodes: options?.retryCodes || [
|
|
54861
|
-
"429",
|
|
54862
|
-
"500",
|
|
54863
|
-
"502",
|
|
54864
|
-
"503",
|
|
54865
|
-
"504"
|
|
54866
|
-
]
|
|
54867
|
-
};
|
|
54868
|
-
const requestRes = client$._createRequest(context, {
|
|
54869
|
-
security: requestSecurity,
|
|
54870
|
-
method: "GET",
|
|
54871
|
-
baseURL: options?.serverURL,
|
|
54872
|
-
path: path$,
|
|
54873
|
-
headers: headers$,
|
|
54874
|
-
body: body$,
|
|
54875
|
-
userAgent: client$._options.userAgent,
|
|
54876
|
-
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
54877
|
-
}, options);
|
|
54878
|
-
if (!requestRes.ok) {
|
|
54879
|
-
return [requestRes, { status: "invalid" }];
|
|
54880
|
-
}
|
|
54881
|
-
const req$ = requestRes.value;
|
|
54882
|
-
const doResult = await client$._do(req$, {
|
|
54883
|
-
context,
|
|
54884
|
-
errorCodes: [],
|
|
54885
|
-
retryConfig: context.retryConfig,
|
|
54886
|
-
retryCodes: context.retryCodes
|
|
54887
|
-
});
|
|
54888
|
-
if (!doResult.ok) {
|
|
54889
|
-
return [doResult, { status: "request-error", request: req$ }];
|
|
54890
|
-
}
|
|
54891
|
-
return [doResult, {
|
|
54892
|
-
status: "complete",
|
|
54893
|
-
request: req$,
|
|
54894
|
-
response: doResult.value
|
|
54895
|
-
}];
|
|
54896
|
-
}
|
|
54897
|
-
var init_contentV2ContentRetrieve = __esm(() => {
|
|
54898
|
-
init_encodings();
|
|
54899
|
-
init_primitives();
|
|
54900
|
-
init_schemas4();
|
|
54901
|
-
init_security();
|
|
54902
|
-
init_url();
|
|
54903
|
-
init_v2contentretrieveop();
|
|
54904
|
-
init_async();
|
|
54905
|
-
});
|
|
54906
|
-
|
|
54907
|
-
// src/mcp-server/tools/contentV2ContentRetrieve.ts
|
|
54908
|
-
var args3, tool$contentV2ContentRetrieve;
|
|
54909
|
-
var init_contentV2ContentRetrieve2 = __esm(() => {
|
|
54910
|
-
init_contentV2ContentRetrieve();
|
|
54911
|
-
init_v2contentretrieveop();
|
|
54912
|
-
init_tools();
|
|
54913
|
-
args3 = {
|
|
54914
|
-
request: V2ContentRetrieveRequest$zodSchema
|
|
54915
|
-
};
|
|
54916
|
-
tool$contentV2ContentRetrieve = {
|
|
54917
|
-
name: "content-v2-content-retrieve",
|
|
54918
|
-
description: `Retrieve Content
|
|
54919
|
-
|
|
54920
|
-
Returns a content record by ID, including title, markdown body, slug, and status.`,
|
|
54921
|
-
annotations: {
|
|
54922
|
-
title: "",
|
|
54923
|
-
destructiveHint: false,
|
|
54924
|
-
idempotentHint: false,
|
|
54925
|
-
openWorldHint: false,
|
|
54926
|
-
readOnlyHint: true
|
|
54927
|
-
},
|
|
54928
|
-
args: args3,
|
|
54929
|
-
tool: async (client, args, ctx) => {
|
|
54930
|
-
const [result] = await contentV2ContentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54931
|
-
if (!result.ok) {
|
|
54932
|
-
return {
|
|
54933
|
-
content: [{ type: "text", text: result.error.message }],
|
|
54934
|
-
isError: true
|
|
54935
|
-
};
|
|
54936
|
-
}
|
|
54937
|
-
return formatResult(result.value);
|
|
54938
|
-
}
|
|
54939
|
-
};
|
|
54940
|
-
});
|
|
54941
|
-
|
|
54942
54452
|
// src/funcs/environmentsV2EnvironmentsList.ts
|
|
54943
54453
|
function environmentsV2EnvironmentsList(client$, options) {
|
|
54944
|
-
return new APIPromise($
|
|
54454
|
+
return new APIPromise($do3(client$, options));
|
|
54945
54455
|
}
|
|
54946
|
-
async function $
|
|
54456
|
+
async function $do3(client$, options) {
|
|
54947
54457
|
const path$ = pathToFunc("/v2/environments")();
|
|
54948
54458
|
const headers$ = new Headers(compactMap({
|
|
54949
54459
|
Accept: "application/json"
|
|
@@ -55031,6 +54541,106 @@ Returns reusable environments without exposing secret values.`,
|
|
|
55031
54541
|
};
|
|
55032
54542
|
});
|
|
55033
54543
|
|
|
54544
|
+
// src/models/errors/sdkvalidationerror.ts
|
|
54545
|
+
function formatZodError(err) {
|
|
54546
|
+
return prettifyError(err);
|
|
54547
|
+
}
|
|
54548
|
+
var SDKValidationError;
|
|
54549
|
+
var init_sdkvalidationerror = __esm(() => {
|
|
54550
|
+
init_zod();
|
|
54551
|
+
SDKValidationError = class SDKValidationError extends Error {
|
|
54552
|
+
rawValue;
|
|
54553
|
+
rawMessage;
|
|
54554
|
+
constructor(message, cause, rawValue) {
|
|
54555
|
+
super(`${message}: ${cause}`);
|
|
54556
|
+
this.name = "SDKValidationError";
|
|
54557
|
+
this.cause = cause;
|
|
54558
|
+
this.rawValue = rawValue;
|
|
54559
|
+
this.rawMessage = message;
|
|
54560
|
+
}
|
|
54561
|
+
pretty() {
|
|
54562
|
+
if (this.cause instanceof ZodError) {
|
|
54563
|
+
return `${this.rawMessage}
|
|
54564
|
+
${formatZodError(this.cause)}`;
|
|
54565
|
+
} else {
|
|
54566
|
+
return this.toString();
|
|
54567
|
+
}
|
|
54568
|
+
}
|
|
54569
|
+
};
|
|
54570
|
+
});
|
|
54571
|
+
|
|
54572
|
+
// src/types/fp.ts
|
|
54573
|
+
function OK3(value) {
|
|
54574
|
+
return { ok: true, value };
|
|
54575
|
+
}
|
|
54576
|
+
function ERR2(error) {
|
|
54577
|
+
return { ok: false, error };
|
|
54578
|
+
}
|
|
54579
|
+
|
|
54580
|
+
// src/lib/schemas.ts
|
|
54581
|
+
function collectExtraKeys(obj, extrasKey, optional) {
|
|
54582
|
+
return obj.transform((val) => {
|
|
54583
|
+
const extras = {};
|
|
54584
|
+
const { shape } = obj;
|
|
54585
|
+
for (const [key] of Object.entries(val)) {
|
|
54586
|
+
if (key in shape) {
|
|
54587
|
+
continue;
|
|
54588
|
+
}
|
|
54589
|
+
const v = val[key];
|
|
54590
|
+
if (typeof v === "undefined") {
|
|
54591
|
+
continue;
|
|
54592
|
+
}
|
|
54593
|
+
extras[key] = v;
|
|
54594
|
+
delete val[key];
|
|
54595
|
+
}
|
|
54596
|
+
if (optional && Object.keys(extras).length === 0) {
|
|
54597
|
+
return val;
|
|
54598
|
+
}
|
|
54599
|
+
return { ...val, [extrasKey]: extras };
|
|
54600
|
+
});
|
|
54601
|
+
}
|
|
54602
|
+
function safeParse4(rawValue, fn, errorMessage) {
|
|
54603
|
+
try {
|
|
54604
|
+
return OK3(fn(rawValue));
|
|
54605
|
+
} catch (err) {
|
|
54606
|
+
return ERR2(new SDKValidationError(errorMessage, err, rawValue));
|
|
54607
|
+
}
|
|
54608
|
+
}
|
|
54609
|
+
var init_schemas4 = __esm(() => {
|
|
54610
|
+
init_sdkvalidationerror();
|
|
54611
|
+
});
|
|
54612
|
+
|
|
54613
|
+
// src/models/validationerror.ts
|
|
54614
|
+
var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
|
|
54615
|
+
var init_validationerror = __esm(() => {
|
|
54616
|
+
init_zod();
|
|
54617
|
+
Loc$zodSchema = union([
|
|
54618
|
+
string2(),
|
|
54619
|
+
int()
|
|
54620
|
+
]);
|
|
54621
|
+
Context$zodSchema = object({});
|
|
54622
|
+
ValidationError$zodSchema = object({
|
|
54623
|
+
ctx: lazy(() => Context$zodSchema).optional(),
|
|
54624
|
+
input: any().optional(),
|
|
54625
|
+
loc: array(union([
|
|
54626
|
+
string2(),
|
|
54627
|
+
int()
|
|
54628
|
+
])),
|
|
54629
|
+
msg: string2(),
|
|
54630
|
+
type: string2()
|
|
54631
|
+
});
|
|
54632
|
+
});
|
|
54633
|
+
|
|
54634
|
+
// src/models/httpvalidationerror.ts
|
|
54635
|
+
var HTTPValidationError$zodSchema;
|
|
54636
|
+
var init_httpvalidationerror = __esm(() => {
|
|
54637
|
+
init_zod();
|
|
54638
|
+
init_validationerror();
|
|
54639
|
+
HTTPValidationError$zodSchema = object({
|
|
54640
|
+
detail: array(ValidationError$zodSchema).optional()
|
|
54641
|
+
});
|
|
54642
|
+
});
|
|
54643
|
+
|
|
55034
54644
|
// src/models/publicevalrunprogress.ts
|
|
55035
54645
|
var PublicEvalRunProgress$zodSchema;
|
|
55036
54646
|
var init_publicevalrunprogress = __esm(() => {
|
|
@@ -55107,9 +54717,9 @@ var init_v2evalrunslistop = __esm(() => {
|
|
|
55107
54717
|
|
|
55108
54718
|
// src/funcs/evalRunsV2EvalRunsList.ts
|
|
55109
54719
|
function evalRunsV2EvalRunsList(client$, request, options) {
|
|
55110
|
-
return new APIPromise($
|
|
54720
|
+
return new APIPromise($do4(client$, request, options));
|
|
55111
54721
|
}
|
|
55112
|
-
async function $
|
|
54722
|
+
async function $do4(client$, request, options) {
|
|
55113
54723
|
const parsed$ = safeParse4(request, (value$) => V2EvalRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
55114
54724
|
if (!parsed$.ok) {
|
|
55115
54725
|
return [parsed$, { status: "invalid" }];
|
|
@@ -55183,12 +54793,12 @@ var init_evalRunsV2EvalRunsList = __esm(() => {
|
|
|
55183
54793
|
});
|
|
55184
54794
|
|
|
55185
54795
|
// src/mcp-server/tools/evalRunsV2EvalRunsList.ts
|
|
55186
|
-
var
|
|
54796
|
+
var args, tool$evalRunsV2EvalRunsList;
|
|
55187
54797
|
var init_evalRunsV2EvalRunsList2 = __esm(() => {
|
|
55188
54798
|
init_evalRunsV2EvalRunsList();
|
|
55189
54799
|
init_v2evalrunslistop();
|
|
55190
54800
|
init_tools();
|
|
55191
|
-
|
|
54801
|
+
args = {
|
|
55192
54802
|
request: V2EvalRunsListRequest$zodSchema.optional()
|
|
55193
54803
|
};
|
|
55194
54804
|
tool$evalRunsV2EvalRunsList = {
|
|
@@ -55203,7 +54813,7 @@ Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with
|
|
|
55203
54813
|
openWorldHint: false,
|
|
55204
54814
|
readOnlyHint: true
|
|
55205
54815
|
},
|
|
55206
|
-
args
|
|
54816
|
+
args,
|
|
55207
54817
|
tool: async (client, args, ctx) => {
|
|
55208
54818
|
const [result] = await evalRunsV2EvalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55209
54819
|
if (!result.ok) {
|
|
@@ -55246,9 +54856,9 @@ var init_v2evalrunscancelop = __esm(() => {
|
|
|
55246
54856
|
|
|
55247
54857
|
// src/funcs/evalsCancel.ts
|
|
55248
54858
|
function evalsCancel(client$, request, options) {
|
|
55249
|
-
return new APIPromise($
|
|
54859
|
+
return new APIPromise($do5(client$, request, options));
|
|
55250
54860
|
}
|
|
55251
|
-
async function $
|
|
54861
|
+
async function $do5(client$, request, options) {
|
|
55252
54862
|
const parsed$ = safeParse4(request, (value$) => V2EvalRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55253
54863
|
if (!parsed$.ok) {
|
|
55254
54864
|
return [parsed$, { status: "invalid" }];
|
|
@@ -55323,12 +54933,12 @@ var init_evalsCancel = __esm(() => {
|
|
|
55323
54933
|
});
|
|
55324
54934
|
|
|
55325
54935
|
// src/mcp-server/tools/evalsCancel.ts
|
|
55326
|
-
var
|
|
54936
|
+
var args2, tool$evalsCancel;
|
|
55327
54937
|
var init_evalsCancel2 = __esm(() => {
|
|
55328
54938
|
init_evalsCancel();
|
|
55329
54939
|
init_v2evalrunscancelop();
|
|
55330
54940
|
init_tools();
|
|
55331
|
-
|
|
54941
|
+
args2 = {
|
|
55332
54942
|
request: V2EvalRunsCancelRequest$zodSchema
|
|
55333
54943
|
};
|
|
55334
54944
|
tool$evalsCancel = {
|
|
@@ -55343,7 +54953,7 @@ Marks an active eval run as cancelled and prevents queued attempts from starting
|
|
|
55343
54953
|
openWorldHint: false,
|
|
55344
54954
|
readOnlyHint: false
|
|
55345
54955
|
},
|
|
55346
|
-
args:
|
|
54956
|
+
args: args2,
|
|
55347
54957
|
tool: async (client, args, ctx) => {
|
|
55348
54958
|
const [result] = await evalsCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55349
54959
|
if (!result.ok) {
|
|
@@ -55519,9 +55129,9 @@ var init_v2evalrunsretrieveop = __esm(() => {
|
|
|
55519
55129
|
|
|
55520
55130
|
// src/funcs/evalsGet.ts
|
|
55521
55131
|
function evalsGet(client$, request, options) {
|
|
55522
|
-
return new APIPromise($
|
|
55132
|
+
return new APIPromise($do6(client$, request, options));
|
|
55523
55133
|
}
|
|
55524
|
-
async function $
|
|
55134
|
+
async function $do6(client$, request, options) {
|
|
55525
55135
|
const parsed$ = safeParse4(request, (value$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55526
55136
|
if (!parsed$.ok) {
|
|
55527
55137
|
return [parsed$, { status: "invalid" }];
|
|
@@ -55596,12 +55206,12 @@ var init_evalsGet = __esm(() => {
|
|
|
55596
55206
|
});
|
|
55597
55207
|
|
|
55598
55208
|
// src/mcp-server/tools/evalsGet.ts
|
|
55599
|
-
var
|
|
55209
|
+
var args3, tool$evalsGet;
|
|
55600
55210
|
var init_evalsGet2 = __esm(() => {
|
|
55601
55211
|
init_evalsGet();
|
|
55602
55212
|
init_v2evalrunsretrieveop();
|
|
55603
55213
|
init_tools();
|
|
55604
|
-
|
|
55214
|
+
args3 = {
|
|
55605
55215
|
request: V2EvalRunsRetrieveRequest$zodSchema
|
|
55606
55216
|
};
|
|
55607
55217
|
tool$evalsGet = {
|
|
@@ -55616,7 +55226,7 @@ Returns the run's current status and progress. Once its attempts finish, the res
|
|
|
55616
55226
|
openWorldHint: false,
|
|
55617
55227
|
readOnlyHint: true
|
|
55618
55228
|
},
|
|
55619
|
-
args:
|
|
55229
|
+
args: args3,
|
|
55620
55230
|
tool: async (client, args, ctx) => {
|
|
55621
55231
|
const [result] = await evalsGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55622
55232
|
if (!result.ok) {
|
|
@@ -55697,9 +55307,9 @@ var init_createv2evalrunrequest = __esm(() => {
|
|
|
55697
55307
|
|
|
55698
55308
|
// src/funcs/evalsRun.ts
|
|
55699
55309
|
function evalsRun(client$, request, options) {
|
|
55700
|
-
return new APIPromise($
|
|
55310
|
+
return new APIPromise($do7(client$, request, options));
|
|
55701
55311
|
}
|
|
55702
|
-
async function $
|
|
55312
|
+
async function $do7(client$, request, options) {
|
|
55703
55313
|
const parsed$ = safeParse4(request, (value$) => CreateV2EvalRunRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55704
55314
|
if (!parsed$.ok) {
|
|
55705
55315
|
return [parsed$, { status: "invalid" }];
|
|
@@ -55769,12 +55379,12 @@ var init_evalsRun = __esm(() => {
|
|
|
55769
55379
|
});
|
|
55770
55380
|
|
|
55771
55381
|
// src/mcp-server/tools/evalsRun.ts
|
|
55772
|
-
var
|
|
55382
|
+
var args4, tool$evalsRun;
|
|
55773
55383
|
var init_evalsRun2 = __esm(() => {
|
|
55774
55384
|
init_evalsRun();
|
|
55775
55385
|
init_createv2evalrunrequest();
|
|
55776
55386
|
init_tools();
|
|
55777
|
-
|
|
55387
|
+
args4 = {
|
|
55778
55388
|
request: CreateV2EvalRunRequest$zodSchema
|
|
55779
55389
|
};
|
|
55780
55390
|
tool$evalsRun = {
|
|
@@ -55798,7 +55408,7 @@ A saved or inline environment containing an empty or placeholder credential is r
|
|
|
55798
55408
|
openWorldHint: false,
|
|
55799
55409
|
readOnlyHint: false
|
|
55800
55410
|
},
|
|
55801
|
-
args:
|
|
55411
|
+
args: args4,
|
|
55802
55412
|
tool: async (client, args, ctx) => {
|
|
55803
55413
|
const [result] = await evalsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55804
55414
|
if (!result.ok) {
|
|
@@ -55874,9 +55484,9 @@ var init_v2evalrunstraceop = __esm(() => {
|
|
|
55874
55484
|
|
|
55875
55485
|
// src/funcs/evalsTrace.ts
|
|
55876
55486
|
function evalsTrace(client$, request, options) {
|
|
55877
|
-
return new APIPromise($
|
|
55487
|
+
return new APIPromise($do8(client$, request, options));
|
|
55878
55488
|
}
|
|
55879
|
-
async function $
|
|
55489
|
+
async function $do8(client$, request, options) {
|
|
55880
55490
|
const parsed$ = safeParse4(request, (value$) => V2EvalRunsTraceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55881
55491
|
if (!parsed$.ok) {
|
|
55882
55492
|
return [parsed$, { status: "invalid" }];
|
|
@@ -55956,12 +55566,12 @@ var init_evalsTrace = __esm(() => {
|
|
|
55956
55566
|
});
|
|
55957
55567
|
|
|
55958
55568
|
// src/mcp-server/tools/evalsTrace.ts
|
|
55959
|
-
var
|
|
55569
|
+
var args5, tool$evalsTrace;
|
|
55960
55570
|
var init_evalsTrace2 = __esm(() => {
|
|
55961
55571
|
init_evalsTrace();
|
|
55962
55572
|
init_v2evalrunstraceop();
|
|
55963
55573
|
init_tools();
|
|
55964
|
-
|
|
55574
|
+
args5 = {
|
|
55965
55575
|
request: V2EvalRunsTraceRequest$zodSchema
|
|
55966
55576
|
};
|
|
55967
55577
|
tool$evalsTrace = {
|
|
@@ -55976,7 +55586,7 @@ Returns a finite page of sanitized execution events for one eval run. Use \`next
|
|
|
55976
55586
|
openWorldHint: false,
|
|
55977
55587
|
readOnlyHint: true
|
|
55978
55588
|
},
|
|
55979
|
-
args:
|
|
55589
|
+
args: args5,
|
|
55980
55590
|
tool: async (client, args, ctx) => {
|
|
55981
55591
|
const [result] = await evalsTrace(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55982
55592
|
if (!result.ok) {
|
|
@@ -56049,9 +55659,9 @@ var init_v2evalconfigurationscreateop = __esm(() => {
|
|
|
56049
55659
|
|
|
56050
55660
|
// src/funcs/evalsV2EvalConfigurationsCreate.ts
|
|
56051
55661
|
function evalsV2EvalConfigurationsCreate(client$, request, options) {
|
|
56052
|
-
return new APIPromise($
|
|
55662
|
+
return new APIPromise($do9(client$, request, options));
|
|
56053
55663
|
}
|
|
56054
|
-
async function $
|
|
55664
|
+
async function $do9(client$, request, options) {
|
|
56055
55665
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsCreateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56056
55666
|
if (!parsed$.ok) {
|
|
56057
55667
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56127,12 +55737,12 @@ var init_evalsV2EvalConfigurationsCreate = __esm(() => {
|
|
|
56127
55737
|
});
|
|
56128
55738
|
|
|
56129
55739
|
// src/mcp-server/tools/evalsV2EvalConfigurationsCreate.ts
|
|
56130
|
-
var
|
|
55740
|
+
var args6, tool$evalsV2EvalConfigurationsCreate;
|
|
56131
55741
|
var init_evalsV2EvalConfigurationsCreate2 = __esm(() => {
|
|
56132
55742
|
init_evalsV2EvalConfigurationsCreate();
|
|
56133
55743
|
init_v2evalconfigurationscreateop();
|
|
56134
55744
|
init_tools();
|
|
56135
|
-
|
|
55745
|
+
args6 = {
|
|
56136
55746
|
request: V2EvalConfigurationsCreateRequest$zodSchema
|
|
56137
55747
|
};
|
|
56138
55748
|
tool$evalsV2EvalConfigurationsCreate = {
|
|
@@ -56147,7 +55757,7 @@ Creates a saved runtime configuration that pairs an eval with a repository, envi
|
|
|
56147
55757
|
openWorldHint: false,
|
|
56148
55758
|
readOnlyHint: false
|
|
56149
55759
|
},
|
|
56150
|
-
args:
|
|
55760
|
+
args: args6,
|
|
56151
55761
|
tool: async (client, args, ctx) => {
|
|
56152
55762
|
const [result] = await evalsV2EvalConfigurationsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56153
55763
|
if (!result.ok) {
|
|
@@ -56179,9 +55789,9 @@ var init_v2evalconfigurationsdeleteop = __esm(() => {
|
|
|
56179
55789
|
|
|
56180
55790
|
// src/funcs/evalsV2EvalConfigurationsDelete.ts
|
|
56181
55791
|
function evalsV2EvalConfigurationsDelete(client$, request, options) {
|
|
56182
|
-
return new APIPromise($
|
|
55792
|
+
return new APIPromise($do10(client$, request, options));
|
|
56183
55793
|
}
|
|
56184
|
-
async function $
|
|
55794
|
+
async function $do10(client$, request, options) {
|
|
56185
55795
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56186
55796
|
if (!parsed$.ok) {
|
|
56187
55797
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56257,12 +55867,12 @@ var init_evalsV2EvalConfigurationsDelete = __esm(() => {
|
|
|
56257
55867
|
});
|
|
56258
55868
|
|
|
56259
55869
|
// src/mcp-server/tools/evalsV2EvalConfigurationsDelete.ts
|
|
56260
|
-
var
|
|
55870
|
+
var args7, tool$evalsV2EvalConfigurationsDelete;
|
|
56261
55871
|
var init_evalsV2EvalConfigurationsDelete2 = __esm(() => {
|
|
56262
55872
|
init_evalsV2EvalConfigurationsDelete();
|
|
56263
55873
|
init_v2evalconfigurationsdeleteop();
|
|
56264
55874
|
init_tools();
|
|
56265
|
-
|
|
55875
|
+
args7 = {
|
|
56266
55876
|
request: V2EvalConfigurationsDeleteRequest$zodSchema
|
|
56267
55877
|
};
|
|
56268
55878
|
tool$evalsV2EvalConfigurationsDelete = {
|
|
@@ -56277,7 +55887,7 @@ Permanently deletes an eval configuration and returns its last saved state.`,
|
|
|
56277
55887
|
openWorldHint: false,
|
|
56278
55888
|
readOnlyHint: false
|
|
56279
55889
|
},
|
|
56280
|
-
args:
|
|
55890
|
+
args: args7,
|
|
56281
55891
|
tool: async (client, args, ctx) => {
|
|
56282
55892
|
const [result] = await evalsV2EvalConfigurationsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56283
55893
|
if (!result.ok) {
|
|
@@ -56319,9 +55929,9 @@ var init_v2evalconfigurationslistop = __esm(() => {
|
|
|
56319
55929
|
|
|
56320
55930
|
// src/funcs/evalsV2EvalConfigurationsList.ts
|
|
56321
55931
|
function evalsV2EvalConfigurationsList(client$, request, options) {
|
|
56322
|
-
return new APIPromise($
|
|
55932
|
+
return new APIPromise($do11(client$, request, options));
|
|
56323
55933
|
}
|
|
56324
|
-
async function $
|
|
55934
|
+
async function $do11(client$, request, options) {
|
|
56325
55935
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsListRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56326
55936
|
if (!parsed$.ok) {
|
|
56327
55937
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56396,12 +56006,12 @@ var init_evalsV2EvalConfigurationsList = __esm(() => {
|
|
|
56396
56006
|
});
|
|
56397
56007
|
|
|
56398
56008
|
// src/mcp-server/tools/evalsV2EvalConfigurationsList.ts
|
|
56399
|
-
var
|
|
56009
|
+
var args8, tool$evalsV2EvalConfigurationsList;
|
|
56400
56010
|
var init_evalsV2EvalConfigurationsList2 = __esm(() => {
|
|
56401
56011
|
init_evalsV2EvalConfigurationsList();
|
|
56402
56012
|
init_v2evalconfigurationslistop();
|
|
56403
56013
|
init_tools();
|
|
56404
|
-
|
|
56014
|
+
args8 = {
|
|
56405
56015
|
request: V2EvalConfigurationsListRequest$zodSchema
|
|
56406
56016
|
};
|
|
56407
56017
|
tool$evalsV2EvalConfigurationsList = {
|
|
@@ -56416,7 +56026,7 @@ Returns the saved runtime configurations for an eval, including repository, envi
|
|
|
56416
56026
|
openWorldHint: false,
|
|
56417
56027
|
readOnlyHint: true
|
|
56418
56028
|
},
|
|
56419
|
-
args:
|
|
56029
|
+
args: args8,
|
|
56420
56030
|
tool: async (client, args, ctx) => {
|
|
56421
56031
|
const [result] = await evalsV2EvalConfigurationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56422
56032
|
if (!result.ok) {
|
|
@@ -56448,9 +56058,9 @@ var init_v2evalconfigurationsretrieveop = __esm(() => {
|
|
|
56448
56058
|
|
|
56449
56059
|
// src/funcs/evalsV2EvalConfigurationsRetrieve.ts
|
|
56450
56060
|
function evalsV2EvalConfigurationsRetrieve(client$, request, options) {
|
|
56451
|
-
return new APIPromise($
|
|
56061
|
+
return new APIPromise($do12(client$, request, options));
|
|
56452
56062
|
}
|
|
56453
|
-
async function $
|
|
56063
|
+
async function $do12(client$, request, options) {
|
|
56454
56064
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56455
56065
|
if (!parsed$.ok) {
|
|
56456
56066
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56526,12 +56136,12 @@ var init_evalsV2EvalConfigurationsRetrieve = __esm(() => {
|
|
|
56526
56136
|
});
|
|
56527
56137
|
|
|
56528
56138
|
// src/mcp-server/tools/evalsV2EvalConfigurationsRetrieve.ts
|
|
56529
|
-
var
|
|
56139
|
+
var args9, tool$evalsV2EvalConfigurationsRetrieve;
|
|
56530
56140
|
var init_evalsV2EvalConfigurationsRetrieve2 = __esm(() => {
|
|
56531
56141
|
init_evalsV2EvalConfigurationsRetrieve();
|
|
56532
56142
|
init_v2evalconfigurationsretrieveop();
|
|
56533
56143
|
init_tools();
|
|
56534
|
-
|
|
56144
|
+
args9 = {
|
|
56535
56145
|
request: V2EvalConfigurationsRetrieveRequest$zodSchema
|
|
56536
56146
|
};
|
|
56537
56147
|
tool$evalsV2EvalConfigurationsRetrieve = {
|
|
@@ -56546,7 +56156,7 @@ Returns one saved configuration for an eval.`,
|
|
|
56546
56156
|
openWorldHint: false,
|
|
56547
56157
|
readOnlyHint: true
|
|
56548
56158
|
},
|
|
56549
|
-
args:
|
|
56159
|
+
args: args9,
|
|
56550
56160
|
tool: async (client, args, ctx) => {
|
|
56551
56161
|
const [result] = await evalsV2EvalConfigurationsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56552
56162
|
if (!result.ok) {
|
|
@@ -56598,9 +56208,9 @@ var init_v2evalconfigurationsupdateop = __esm(() => {
|
|
|
56598
56208
|
|
|
56599
56209
|
// src/funcs/evalsV2EvalConfigurationsUpdate.ts
|
|
56600
56210
|
function evalsV2EvalConfigurationsUpdate(client$, request, options) {
|
|
56601
|
-
return new APIPromise($
|
|
56211
|
+
return new APIPromise($do13(client$, request, options));
|
|
56602
56212
|
}
|
|
56603
|
-
async function $
|
|
56213
|
+
async function $do13(client$, request, options) {
|
|
56604
56214
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56605
56215
|
if (!parsed$.ok) {
|
|
56606
56216
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56677,12 +56287,12 @@ var init_evalsV2EvalConfigurationsUpdate = __esm(() => {
|
|
|
56677
56287
|
});
|
|
56678
56288
|
|
|
56679
56289
|
// src/mcp-server/tools/evalsV2EvalConfigurationsUpdate.ts
|
|
56680
|
-
var
|
|
56290
|
+
var args10, tool$evalsV2EvalConfigurationsUpdate;
|
|
56681
56291
|
var init_evalsV2EvalConfigurationsUpdate2 = __esm(() => {
|
|
56682
56292
|
init_evalsV2EvalConfigurationsUpdate();
|
|
56683
56293
|
init_v2evalconfigurationsupdateop();
|
|
56684
56294
|
init_tools();
|
|
56685
|
-
|
|
56295
|
+
args10 = {
|
|
56686
56296
|
request: V2EvalConfigurationsUpdateRequest$zodSchema
|
|
56687
56297
|
};
|
|
56688
56298
|
tool$evalsV2EvalConfigurationsUpdate = {
|
|
@@ -56697,7 +56307,7 @@ Updates an eval configuration; omitted fields remain unchanged.`,
|
|
|
56697
56307
|
openWorldHint: false,
|
|
56698
56308
|
readOnlyHint: false
|
|
56699
56309
|
},
|
|
56700
|
-
args:
|
|
56310
|
+
args: args10,
|
|
56701
56311
|
tool: async (client, args, ctx) => {
|
|
56702
56312
|
const [result] = await evalsV2EvalConfigurationsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56703
56313
|
if (!result.ok) {
|
|
@@ -56743,9 +56353,9 @@ var init_createevaltemplatebatchrequest = __esm(() => {
|
|
|
56743
56353
|
|
|
56744
56354
|
// src/funcs/evalsV2EvalsBatchCreate.ts
|
|
56745
56355
|
function evalsV2EvalsBatchCreate(client$, request, options) {
|
|
56746
|
-
return new APIPromise($
|
|
56356
|
+
return new APIPromise($do14(client$, request, options));
|
|
56747
56357
|
}
|
|
56748
|
-
async function $
|
|
56358
|
+
async function $do14(client$, request, options) {
|
|
56749
56359
|
const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateBatchRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56750
56360
|
if (!parsed$.ok) {
|
|
56751
56361
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56815,12 +56425,12 @@ var init_evalsV2EvalsBatchCreate = __esm(() => {
|
|
|
56815
56425
|
});
|
|
56816
56426
|
|
|
56817
56427
|
// src/mcp-server/tools/evalsV2EvalsBatchCreate.ts
|
|
56818
|
-
var
|
|
56428
|
+
var args11, tool$evalsV2EvalsBatchCreate;
|
|
56819
56429
|
var init_evalsV2EvalsBatchCreate2 = __esm(() => {
|
|
56820
56430
|
init_evalsV2EvalsBatchCreate();
|
|
56821
56431
|
init_createevaltemplatebatchrequest();
|
|
56822
56432
|
init_tools();
|
|
56823
|
-
|
|
56433
|
+
args11 = {
|
|
56824
56434
|
request: CreateEvalTemplateBatchRequest$zodSchema
|
|
56825
56435
|
};
|
|
56826
56436
|
tool$evalsV2EvalsBatchCreate = {
|
|
@@ -56835,7 +56445,7 @@ Step 2 of the reusable template workflow. Provide the \`id\` and \`version\` ret
|
|
|
56835
56445
|
openWorldHint: false,
|
|
56836
56446
|
readOnlyHint: false
|
|
56837
56447
|
},
|
|
56838
|
-
args:
|
|
56448
|
+
args: args11,
|
|
56839
56449
|
tool: async (client, args, ctx) => {
|
|
56840
56450
|
const [result] = await evalsV2EvalsBatchCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56841
56451
|
if (!result.ok) {
|
|
@@ -56881,9 +56491,9 @@ var init_createv2evalrequest = __esm(() => {
|
|
|
56881
56491
|
|
|
56882
56492
|
// src/funcs/evalsV2EvalsCreate.ts
|
|
56883
56493
|
function evalsV2EvalsCreate(client$, request, options) {
|
|
56884
|
-
return new APIPromise($
|
|
56494
|
+
return new APIPromise($do15(client$, request, options));
|
|
56885
56495
|
}
|
|
56886
|
-
async function $
|
|
56496
|
+
async function $do15(client$, request, options) {
|
|
56887
56497
|
const parsed$ = safeParse4(request, (value$) => CreateV2EvalRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56888
56498
|
if (!parsed$.ok) {
|
|
56889
56499
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56953,12 +56563,12 @@ var init_evalsV2EvalsCreate = __esm(() => {
|
|
|
56953
56563
|
});
|
|
56954
56564
|
|
|
56955
56565
|
// src/mcp-server/tools/evalsV2EvalsCreate.ts
|
|
56956
|
-
var
|
|
56566
|
+
var args12, tool$evalsV2EvalsCreate;
|
|
56957
56567
|
var init_evalsV2EvalsCreate2 = __esm(() => {
|
|
56958
56568
|
init_evalsV2EvalsCreate();
|
|
56959
56569
|
init_createv2evalrequest();
|
|
56960
56570
|
init_tools();
|
|
56961
|
-
|
|
56571
|
+
args12 = {
|
|
56962
56572
|
request: CreateV2EvalRequest$zodSchema
|
|
56963
56573
|
};
|
|
56964
56574
|
tool$evalsV2EvalsCreate = {
|
|
@@ -56973,7 +56583,7 @@ Creates a reusable simulation definition with one or more task prompts and judge
|
|
|
56973
56583
|
openWorldHint: false,
|
|
56974
56584
|
readOnlyHint: false
|
|
56975
56585
|
},
|
|
56976
|
-
args:
|
|
56586
|
+
args: args12,
|
|
56977
56587
|
tool: async (client, args, ctx) => {
|
|
56978
56588
|
const [result] = await evalsV2EvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56979
56589
|
if (!result.ok) {
|
|
@@ -57064,9 +56674,9 @@ var init_v2evalsdeleteop = __esm(() => {
|
|
|
57064
56674
|
|
|
57065
56675
|
// src/funcs/evalsV2EvalsDelete.ts
|
|
57066
56676
|
function evalsV2EvalsDelete(client$, request, options) {
|
|
57067
|
-
return new APIPromise($
|
|
56677
|
+
return new APIPromise($do16(client$, request, options));
|
|
57068
56678
|
}
|
|
57069
|
-
async function $
|
|
56679
|
+
async function $do16(client$, request, options) {
|
|
57070
56680
|
const parsed$ = safeParse4(request, (value$) => V2EvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57071
56681
|
if (!parsed$.ok) {
|
|
57072
56682
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57141,12 +56751,12 @@ var init_evalsV2EvalsDelete = __esm(() => {
|
|
|
57141
56751
|
});
|
|
57142
56752
|
|
|
57143
56753
|
// src/mcp-server/tools/evalsV2EvalsDelete.ts
|
|
57144
|
-
var
|
|
56754
|
+
var args13, tool$evalsV2EvalsDelete;
|
|
57145
56755
|
var init_evalsV2EvalsDelete2 = __esm(() => {
|
|
57146
56756
|
init_evalsV2EvalsDelete();
|
|
57147
56757
|
init_v2evalsdeleteop();
|
|
57148
56758
|
init_tools();
|
|
57149
|
-
|
|
56759
|
+
args13 = {
|
|
57150
56760
|
request: V2EvalsDeleteRequest$zodSchema
|
|
57151
56761
|
};
|
|
57152
56762
|
tool$evalsV2EvalsDelete = {
|
|
@@ -57161,7 +56771,7 @@ Permanently deletes an eval and all of its saved configurations.`,
|
|
|
57161
56771
|
openWorldHint: false,
|
|
57162
56772
|
readOnlyHint: false
|
|
57163
56773
|
},
|
|
57164
|
-
args:
|
|
56774
|
+
args: args13,
|
|
57165
56775
|
tool: async (client, args, ctx) => {
|
|
57166
56776
|
const [result] = await evalsV2EvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57167
56777
|
if (!result.ok) {
|
|
@@ -57177,9 +56787,9 @@ Permanently deletes an eval and all of its saved configurations.`,
|
|
|
57177
56787
|
|
|
57178
56788
|
// src/funcs/evalsV2EvalsList.ts
|
|
57179
56789
|
function evalsV2EvalsList(client$, options) {
|
|
57180
|
-
return new APIPromise($
|
|
56790
|
+
return new APIPromise($do17(client$, options));
|
|
57181
56791
|
}
|
|
57182
|
-
async function $
|
|
56792
|
+
async function $do17(client$, options) {
|
|
57183
56793
|
const path$ = pathToFunc("/v2/evals")();
|
|
57184
56794
|
const headers$ = new Headers(compactMap({
|
|
57185
56795
|
Accept: "application/json"
|
|
@@ -57284,9 +56894,9 @@ var init_v2evalsretrieveop = __esm(() => {
|
|
|
57284
56894
|
|
|
57285
56895
|
// src/funcs/evalsV2EvalsRetrieve.ts
|
|
57286
56896
|
function evalsV2EvalsRetrieve(client$, request, options) {
|
|
57287
|
-
return new APIPromise($
|
|
56897
|
+
return new APIPromise($do18(client$, request, options));
|
|
57288
56898
|
}
|
|
57289
|
-
async function $
|
|
56899
|
+
async function $do18(client$, request, options) {
|
|
57290
56900
|
const parsed$ = safeParse4(request, (value$) => V2EvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57291
56901
|
if (!parsed$.ok) {
|
|
57292
56902
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57361,12 +56971,12 @@ var init_evalsV2EvalsRetrieve = __esm(() => {
|
|
|
57361
56971
|
});
|
|
57362
56972
|
|
|
57363
56973
|
// src/mcp-server/tools/evalsV2EvalsRetrieve.ts
|
|
57364
|
-
var
|
|
56974
|
+
var args14, tool$evalsV2EvalsRetrieve;
|
|
57365
56975
|
var init_evalsV2EvalsRetrieve2 = __esm(() => {
|
|
57366
56976
|
init_evalsV2EvalsRetrieve();
|
|
57367
56977
|
init_v2evalsretrieveop();
|
|
57368
56978
|
init_tools();
|
|
57369
|
-
|
|
56979
|
+
args14 = {
|
|
57370
56980
|
request: V2EvalsRetrieveRequest$zodSchema
|
|
57371
56981
|
};
|
|
57372
56982
|
tool$evalsV2EvalsRetrieve = {
|
|
@@ -57381,7 +56991,7 @@ Returns one reusable eval simulation definition.`,
|
|
|
57381
56991
|
openWorldHint: false,
|
|
57382
56992
|
readOnlyHint: true
|
|
57383
56993
|
},
|
|
57384
|
-
args:
|
|
56994
|
+
args: args14,
|
|
57385
56995
|
tool: async (client, args, ctx) => {
|
|
57386
56996
|
const [result] = await evalsV2EvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57387
56997
|
if (!result.ok) {
|
|
@@ -57444,9 +57054,9 @@ var init_v2evalsupdateop = __esm(() => {
|
|
|
57444
57054
|
|
|
57445
57055
|
// src/funcs/evalsV2EvalsUpdate.ts
|
|
57446
57056
|
function evalsV2EvalsUpdate(client$, request, options) {
|
|
57447
|
-
return new APIPromise($
|
|
57057
|
+
return new APIPromise($do19(client$, request, options));
|
|
57448
57058
|
}
|
|
57449
|
-
async function $
|
|
57059
|
+
async function $do19(client$, request, options) {
|
|
57450
57060
|
const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57451
57061
|
if (!parsed$.ok) {
|
|
57452
57062
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57522,12 +57132,12 @@ var init_evalsV2EvalsUpdate = __esm(() => {
|
|
|
57522
57132
|
});
|
|
57523
57133
|
|
|
57524
57134
|
// src/mcp-server/tools/evalsV2EvalsUpdate.ts
|
|
57525
|
-
var
|
|
57135
|
+
var args15, tool$evalsV2EvalsUpdate;
|
|
57526
57136
|
var init_evalsV2EvalsUpdate2 = __esm(() => {
|
|
57527
57137
|
init_evalsV2EvalsUpdate();
|
|
57528
57138
|
init_v2evalsupdateop();
|
|
57529
57139
|
init_tools();
|
|
57530
|
-
|
|
57140
|
+
args15 = {
|
|
57531
57141
|
request: V2EvalsUpdateRequest$zodSchema
|
|
57532
57142
|
};
|
|
57533
57143
|
tool$evalsV2EvalsUpdate = {
|
|
@@ -57542,7 +57152,7 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
|
|
|
57542
57152
|
openWorldHint: false,
|
|
57543
57153
|
readOnlyHint: false
|
|
57544
57154
|
},
|
|
57545
|
-
args:
|
|
57155
|
+
args: args15,
|
|
57546
57156
|
tool: async (client, args, ctx) => {
|
|
57547
57157
|
const [result] = await evalsV2EvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57548
57158
|
if (!result.ok) {
|
|
@@ -57657,9 +57267,9 @@ var init_createevaltemplaterequest = __esm(() => {
|
|
|
57657
57267
|
|
|
57658
57268
|
// src/funcs/evalTemplatesV2EvalTemplatesCreate.ts
|
|
57659
57269
|
function evalTemplatesV2EvalTemplatesCreate(client$, request, options) {
|
|
57660
|
-
return new APIPromise($
|
|
57270
|
+
return new APIPromise($do20(client$, request, options));
|
|
57661
57271
|
}
|
|
57662
|
-
async function $
|
|
57272
|
+
async function $do20(client$, request, options) {
|
|
57663
57273
|
const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57664
57274
|
if (!parsed$.ok) {
|
|
57665
57275
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57729,12 +57339,12 @@ var init_evalTemplatesV2EvalTemplatesCreate = __esm(() => {
|
|
|
57729
57339
|
});
|
|
57730
57340
|
|
|
57731
57341
|
// src/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.ts
|
|
57732
|
-
var
|
|
57342
|
+
var args16, tool$evalTemplatesV2EvalTemplatesCreate;
|
|
57733
57343
|
var init_evalTemplatesV2EvalTemplatesCreate2 = __esm(() => {
|
|
57734
57344
|
init_evalTemplatesV2EvalTemplatesCreate();
|
|
57735
57345
|
init_createevaltemplaterequest();
|
|
57736
57346
|
init_tools();
|
|
57737
|
-
|
|
57347
|
+
args16 = {
|
|
57738
57348
|
request: CreateEvalTemplateRequest$zodSchema
|
|
57739
57349
|
};
|
|
57740
57350
|
tool$evalTemplatesV2EvalTemplatesCreate = {
|
|
@@ -57749,7 +57359,7 @@ Step 1 of the reusable template workflow. Creates an organization-owned Eval tem
|
|
|
57749
57359
|
openWorldHint: false,
|
|
57750
57360
|
readOnlyHint: false
|
|
57751
57361
|
},
|
|
57752
|
-
args:
|
|
57362
|
+
args: args16,
|
|
57753
57363
|
tool: async (client, args, ctx) => {
|
|
57754
57364
|
const [result] = await evalTemplatesV2EvalTemplatesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57755
57365
|
if (!result.ok) {
|
|
@@ -57796,9 +57406,9 @@ var init_evaltemplate = __esm(() => {
|
|
|
57796
57406
|
EvalTemplate$zodSchema = object({
|
|
57797
57407
|
category_name: string2().nullable().optional().describe("Optional category copied when `category` is included."),
|
|
57798
57408
|
competitor_ids: array(string2()).optional().describe("Competitor IDs that create additional variants when `competitors` is included."),
|
|
57799
|
-
created_at:
|
|
57409
|
+
created_at: string2(),
|
|
57800
57410
|
created_by: string2().nullable().optional(),
|
|
57801
|
-
deleted_at:
|
|
57411
|
+
deleted_at: string2().nullable().optional(),
|
|
57802
57412
|
description: string2().nullable().optional().describe("Optional guidance describing when to use the template."),
|
|
57803
57413
|
eval_type: EvalTemplateEvalType$zodSchema.default("custom_eval").describe("Kind of eval the template creates. A template only applies to evals of the same type."),
|
|
57804
57414
|
id: string2(),
|
|
@@ -57812,7 +57422,7 @@ var init_evaltemplate = __esm(() => {
|
|
|
57812
57422
|
schedule: EvalTemplateSchedule$zodSchema.optional().describe("Schedule copied into every eval created from the template."),
|
|
57813
57423
|
tag: string2().nullable().optional().describe("Optional tag copied when `tag` is included."),
|
|
57814
57424
|
target_keys: array(string2()).optional().describe("Runnable target keys copied when `targets` is included, such as `agent:codex:gpt-5.6-terra`."),
|
|
57815
|
-
updated_at:
|
|
57425
|
+
updated_at: string2(),
|
|
57816
57426
|
version: int()
|
|
57817
57427
|
});
|
|
57818
57428
|
});
|
|
@@ -57842,9 +57452,9 @@ var init_v2evaltemplatesdeleteop = __esm(() => {
|
|
|
57842
57452
|
|
|
57843
57453
|
// src/funcs/evalTemplatesV2EvalTemplatesDelete.ts
|
|
57844
57454
|
function evalTemplatesV2EvalTemplatesDelete(client$, request, options) {
|
|
57845
|
-
return new APIPromise($
|
|
57455
|
+
return new APIPromise($do21(client$, request, options));
|
|
57846
57456
|
}
|
|
57847
|
-
async function $
|
|
57457
|
+
async function $do21(client$, request, options) {
|
|
57848
57458
|
const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57849
57459
|
if (!parsed$.ok) {
|
|
57850
57460
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57919,12 +57529,12 @@ var init_evalTemplatesV2EvalTemplatesDelete = __esm(() => {
|
|
|
57919
57529
|
});
|
|
57920
57530
|
|
|
57921
57531
|
// src/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.ts
|
|
57922
|
-
var
|
|
57532
|
+
var args17, tool$evalTemplatesV2EvalTemplatesDelete;
|
|
57923
57533
|
var init_evalTemplatesV2EvalTemplatesDelete2 = __esm(() => {
|
|
57924
57534
|
init_evalTemplatesV2EvalTemplatesDelete();
|
|
57925
57535
|
init_v2evaltemplatesdeleteop();
|
|
57926
57536
|
init_tools();
|
|
57927
|
-
|
|
57537
|
+
args17 = {
|
|
57928
57538
|
request: V2EvalTemplatesDeleteRequest$zodSchema
|
|
57929
57539
|
};
|
|
57930
57540
|
tool$evalTemplatesV2EvalTemplatesDelete = {
|
|
@@ -57939,7 +57549,7 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
|
|
|
57939
57549
|
openWorldHint: false,
|
|
57940
57550
|
readOnlyHint: false
|
|
57941
57551
|
},
|
|
57942
|
-
args:
|
|
57552
|
+
args: args17,
|
|
57943
57553
|
tool: async (client, args, ctx) => {
|
|
57944
57554
|
const [result] = await evalTemplatesV2EvalTemplatesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57945
57555
|
if (!result.ok) {
|
|
@@ -57955,9 +57565,9 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
|
|
|
57955
57565
|
|
|
57956
57566
|
// src/funcs/evalTemplatesV2EvalTemplatesList.ts
|
|
57957
57567
|
function evalTemplatesV2EvalTemplatesList(client$, options) {
|
|
57958
|
-
return new APIPromise($
|
|
57568
|
+
return new APIPromise($do22(client$, options));
|
|
57959
57569
|
}
|
|
57960
|
-
async function $
|
|
57570
|
+
async function $do22(client$, options) {
|
|
57961
57571
|
const path$ = pathToFunc("/v2/eval-templates")();
|
|
57962
57572
|
const headers$ = new Headers(compactMap({
|
|
57963
57573
|
Accept: "application/json"
|
|
@@ -58066,9 +57676,9 @@ var init_v2evaltemplatesretrieveop = __esm(() => {
|
|
|
58066
57676
|
|
|
58067
57677
|
// src/funcs/evalTemplatesV2EvalTemplatesRetrieve.ts
|
|
58068
57678
|
function evalTemplatesV2EvalTemplatesRetrieve(client$, request, options) {
|
|
58069
|
-
return new APIPromise($
|
|
57679
|
+
return new APIPromise($do23(client$, request, options));
|
|
58070
57680
|
}
|
|
58071
|
-
async function $
|
|
57681
|
+
async function $do23(client$, request, options) {
|
|
58072
57682
|
const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58073
57683
|
if (!parsed$.ok) {
|
|
58074
57684
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58143,12 +57753,12 @@ var init_evalTemplatesV2EvalTemplatesRetrieve = __esm(() => {
|
|
|
58143
57753
|
});
|
|
58144
57754
|
|
|
58145
57755
|
// src/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.ts
|
|
58146
|
-
var
|
|
57756
|
+
var args18, tool$evalTemplatesV2EvalTemplatesRetrieve;
|
|
58147
57757
|
var init_evalTemplatesV2EvalTemplatesRetrieve2 = __esm(() => {
|
|
58148
57758
|
init_evalTemplatesV2EvalTemplatesRetrieve();
|
|
58149
57759
|
init_v2evaltemplatesretrieveop();
|
|
58150
57760
|
init_tools();
|
|
58151
|
-
|
|
57761
|
+
args18 = {
|
|
58152
57762
|
request: V2EvalTemplatesRetrieveRequest$zodSchema
|
|
58153
57763
|
};
|
|
58154
57764
|
tool$evalTemplatesV2EvalTemplatesRetrieve = {
|
|
@@ -58163,7 +57773,7 @@ Returns one active reusable Eval template.`,
|
|
|
58163
57773
|
openWorldHint: false,
|
|
58164
57774
|
readOnlyHint: true
|
|
58165
57775
|
},
|
|
58166
|
-
args:
|
|
57776
|
+
args: args18,
|
|
58167
57777
|
tool: async (client, args, ctx) => {
|
|
58168
57778
|
const [result] = await evalTemplatesV2EvalTemplatesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58169
57779
|
if (!result.ok) {
|
|
@@ -58256,9 +57866,9 @@ var init_v2evaltemplatesupdateop = __esm(() => {
|
|
|
58256
57866
|
|
|
58257
57867
|
// src/funcs/evalTemplatesV2EvalTemplatesUpdate.ts
|
|
58258
57868
|
function evalTemplatesV2EvalTemplatesUpdate(client$, request, options) {
|
|
58259
|
-
return new APIPromise($
|
|
57869
|
+
return new APIPromise($do24(client$, request, options));
|
|
58260
57870
|
}
|
|
58261
|
-
async function $
|
|
57871
|
+
async function $do24(client$, request, options) {
|
|
58262
57872
|
const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58263
57873
|
if (!parsed$.ok) {
|
|
58264
57874
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58334,12 +57944,12 @@ var init_evalTemplatesV2EvalTemplatesUpdate = __esm(() => {
|
|
|
58334
57944
|
});
|
|
58335
57945
|
|
|
58336
57946
|
// src/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.ts
|
|
58337
|
-
var
|
|
57947
|
+
var args19, tool$evalTemplatesV2EvalTemplatesUpdate;
|
|
58338
57948
|
var init_evalTemplatesV2EvalTemplatesUpdate2 = __esm(() => {
|
|
58339
57949
|
init_evalTemplatesV2EvalTemplatesUpdate();
|
|
58340
57950
|
init_v2evaltemplatesupdateop();
|
|
58341
57951
|
init_tools();
|
|
58342
|
-
|
|
57952
|
+
args19 = {
|
|
58343
57953
|
request: V2EvalTemplatesUpdateRequest$zodSchema
|
|
58344
57954
|
};
|
|
58345
57955
|
tool$evalTemplatesV2EvalTemplatesUpdate = {
|
|
@@ -58354,7 +57964,7 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
|
|
|
58354
57964
|
openWorldHint: false,
|
|
58355
57965
|
readOnlyHint: false
|
|
58356
57966
|
},
|
|
58357
|
-
args:
|
|
57967
|
+
args: args19,
|
|
58358
57968
|
tool: async (client, args, ctx) => {
|
|
58359
57969
|
const [result] = await evalTemplatesV2EvalTemplatesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58360
57970
|
if (!result.ok) {
|
|
@@ -58370,9 +57980,9 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
|
|
|
58370
57980
|
|
|
58371
57981
|
// src/funcs/mcpServersV2MCPServersList.ts
|
|
58372
57982
|
function mcpServersV2MCPServersList(client$, options) {
|
|
58373
|
-
return new APIPromise($
|
|
57983
|
+
return new APIPromise($do25(client$, options));
|
|
58374
57984
|
}
|
|
58375
|
-
async function $
|
|
57985
|
+
async function $do25(client$, options) {
|
|
58376
57986
|
const path$ = pathToFunc("/v2/mcp-servers")();
|
|
58377
57987
|
const headers$ = new Headers(compactMap({
|
|
58378
57988
|
Accept: "application/json"
|
|
@@ -58554,9 +58164,9 @@ var init_v2opportunitieslistop = __esm(() => {
|
|
|
58554
58164
|
|
|
58555
58165
|
// src/funcs/opportunitiesV2OpportunitiesList.ts
|
|
58556
58166
|
function opportunitiesV2OpportunitiesList(client$, request, options) {
|
|
58557
|
-
return new APIPromise($
|
|
58167
|
+
return new APIPromise($do26(client$, request, options));
|
|
58558
58168
|
}
|
|
58559
|
-
async function $
|
|
58169
|
+
async function $do26(client$, request, options) {
|
|
58560
58170
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
58561
58171
|
if (!parsed$.ok) {
|
|
58562
58172
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58634,12 +58244,12 @@ var init_opportunitiesV2OpportunitiesList = __esm(() => {
|
|
|
58634
58244
|
});
|
|
58635
58245
|
|
|
58636
58246
|
// src/mcp-server/tools/opportunitiesV2OpportunitiesList.ts
|
|
58637
|
-
var
|
|
58247
|
+
var args20, tool$opportunitiesV2OpportunitiesList;
|
|
58638
58248
|
var init_opportunitiesV2OpportunitiesList2 = __esm(() => {
|
|
58639
58249
|
init_opportunitiesV2OpportunitiesList();
|
|
58640
58250
|
init_v2opportunitieslistop();
|
|
58641
58251
|
init_tools();
|
|
58642
|
-
|
|
58252
|
+
args20 = {
|
|
58643
58253
|
request: V2OpportunitiesListRequest$zodSchema.optional()
|
|
58644
58254
|
};
|
|
58645
58255
|
tool$opportunitiesV2OpportunitiesList = {
|
|
@@ -58654,7 +58264,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
|
|
|
58654
58264
|
openWorldHint: false,
|
|
58655
58265
|
readOnlyHint: true
|
|
58656
58266
|
},
|
|
58657
|
-
args:
|
|
58267
|
+
args: args20,
|
|
58658
58268
|
tool: async (client, args, ctx) => {
|
|
58659
58269
|
const [result] = await opportunitiesV2OpportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58660
58270
|
if (!result.ok) {
|
|
@@ -58726,9 +58336,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
|
|
|
58726
58336
|
|
|
58727
58337
|
// src/funcs/opportunitiesV2OpportunitiesRetrieve.ts
|
|
58728
58338
|
function opportunitiesV2OpportunitiesRetrieve(client$, request, options) {
|
|
58729
|
-
return new APIPromise($
|
|
58339
|
+
return new APIPromise($do27(client$, request, options));
|
|
58730
58340
|
}
|
|
58731
|
-
async function $
|
|
58341
|
+
async function $do27(client$, request, options) {
|
|
58732
58342
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58733
58343
|
if (!parsed$.ok) {
|
|
58734
58344
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58809,12 +58419,12 @@ var init_opportunitiesV2OpportunitiesRetrieve = __esm(() => {
|
|
|
58809
58419
|
});
|
|
58810
58420
|
|
|
58811
58421
|
// src/mcp-server/tools/opportunitiesV2OpportunitiesRetrieve.ts
|
|
58812
|
-
var
|
|
58422
|
+
var args21, tool$opportunitiesV2OpportunitiesRetrieve;
|
|
58813
58423
|
var init_opportunitiesV2OpportunitiesRetrieve2 = __esm(() => {
|
|
58814
58424
|
init_opportunitiesV2OpportunitiesRetrieve();
|
|
58815
58425
|
init_v2opportunitiesretrieveop();
|
|
58816
58426
|
init_tools();
|
|
58817
|
-
|
|
58427
|
+
args21 = {
|
|
58818
58428
|
request: V2OpportunitiesRetrieveRequest$zodSchema
|
|
58819
58429
|
};
|
|
58820
58430
|
tool$opportunitiesV2OpportunitiesRetrieve = {
|
|
@@ -58829,7 +58439,7 @@ Returns one computed opportunity and its execution context for the selected date
|
|
|
58829
58439
|
openWorldHint: false,
|
|
58830
58440
|
readOnlyHint: true
|
|
58831
58441
|
},
|
|
58832
|
-
args:
|
|
58442
|
+
args: args21,
|
|
58833
58443
|
tool: async (client, args, ctx) => {
|
|
58834
58444
|
const [result] = await opportunitiesV2OpportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58835
58445
|
if (!result.ok) {
|
|
@@ -58855,9 +58465,9 @@ var init_createv2promptrunrequest = __esm(() => {
|
|
|
58855
58465
|
|
|
58856
58466
|
// src/funcs/promptsRun.ts
|
|
58857
58467
|
function promptsRun(client$, request, options) {
|
|
58858
|
-
return new APIPromise($
|
|
58468
|
+
return new APIPromise($do28(client$, request, options));
|
|
58859
58469
|
}
|
|
58860
|
-
async function $
|
|
58470
|
+
async function $do28(client$, request, options) {
|
|
58861
58471
|
const parsed$ = safeParse4(request, (value$) => CreateV2PromptRunRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58862
58472
|
if (!parsed$.ok) {
|
|
58863
58473
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58927,12 +58537,12 @@ var init_promptsRun = __esm(() => {
|
|
|
58927
58537
|
});
|
|
58928
58538
|
|
|
58929
58539
|
// src/mcp-server/tools/promptsRun.ts
|
|
58930
|
-
var
|
|
58540
|
+
var args22, tool$promptsRun;
|
|
58931
58541
|
var init_promptsRun2 = __esm(() => {
|
|
58932
58542
|
init_promptsRun();
|
|
58933
58543
|
init_createv2promptrunrequest();
|
|
58934
58544
|
init_tools();
|
|
58935
|
-
|
|
58545
|
+
args22 = {
|
|
58936
58546
|
request: CreateV2PromptRunRequest$zodSchema
|
|
58937
58547
|
};
|
|
58938
58548
|
tool$promptsRun = {
|
|
@@ -58952,7 +58562,7 @@ response returns a run ID to poll with
|
|
|
58952
58562
|
openWorldHint: false,
|
|
58953
58563
|
readOnlyHint: false
|
|
58954
58564
|
},
|
|
58955
|
-
args:
|
|
58565
|
+
args: args22,
|
|
58956
58566
|
tool: async (client, args, ctx) => {
|
|
58957
58567
|
const [result] = await promptsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58958
58568
|
if (!result.ok) {
|
|
@@ -59031,9 +58641,9 @@ var init_v2promptrunstatusretrieveop = __esm(() => {
|
|
|
59031
58641
|
|
|
59032
58642
|
// src/funcs/promptsRunStatus.ts
|
|
59033
58643
|
function promptsRunStatus(client$, request, options) {
|
|
59034
|
-
return new APIPromise($
|
|
58644
|
+
return new APIPromise($do29(client$, request, options));
|
|
59035
58645
|
}
|
|
59036
|
-
async function $
|
|
58646
|
+
async function $do29(client$, request, options) {
|
|
59037
58647
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59038
58648
|
if (!parsed$.ok) {
|
|
59039
58649
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59108,12 +58718,12 @@ var init_promptsRunStatus = __esm(() => {
|
|
|
59108
58718
|
});
|
|
59109
58719
|
|
|
59110
58720
|
// src/mcp-server/tools/promptsRunStatus.ts
|
|
59111
|
-
var
|
|
58721
|
+
var args23, tool$promptsRunStatus;
|
|
59112
58722
|
var init_promptsRunStatus2 = __esm(() => {
|
|
59113
58723
|
init_promptsRunStatus();
|
|
59114
58724
|
init_v2promptrunstatusretrieveop();
|
|
59115
58725
|
init_tools();
|
|
59116
|
-
|
|
58726
|
+
args23 = {
|
|
59117
58727
|
request: V2PromptRunStatusRetrieveRequest$zodSchema
|
|
59118
58728
|
};
|
|
59119
58729
|
tool$promptsRunStatus = {
|
|
@@ -59131,7 +58741,7 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
|
|
|
59131
58741
|
openWorldHint: false,
|
|
59132
58742
|
readOnlyHint: true
|
|
59133
58743
|
},
|
|
59134
|
-
args:
|
|
58744
|
+
args: args23,
|
|
59135
58745
|
tool: async (client, args, ctx) => {
|
|
59136
58746
|
const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59137
58747
|
if (!result.ok) {
|
|
@@ -59245,9 +58855,9 @@ var init_v2promptrunslistop = __esm(() => {
|
|
|
59245
58855
|
|
|
59246
58856
|
// src/funcs/promptsV2PromptRunsList.ts
|
|
59247
58857
|
function promptsV2PromptRunsList(client$, request, options) {
|
|
59248
|
-
return new APIPromise($
|
|
58858
|
+
return new APIPromise($do30(client$, request, options));
|
|
59249
58859
|
}
|
|
59250
|
-
async function $
|
|
58860
|
+
async function $do30(client$, request, options) {
|
|
59251
58861
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
59252
58862
|
if (!parsed$.ok) {
|
|
59253
58863
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59325,12 +58935,12 @@ var init_promptsV2PromptRunsList = __esm(() => {
|
|
|
59325
58935
|
});
|
|
59326
58936
|
|
|
59327
58937
|
// src/mcp-server/tools/promptsV2PromptRunsList.ts
|
|
59328
|
-
var
|
|
58938
|
+
var args24, tool$promptsV2PromptRunsList;
|
|
59329
58939
|
var init_promptsV2PromptRunsList2 = __esm(() => {
|
|
59330
58940
|
init_promptsV2PromptRunsList();
|
|
59331
58941
|
init_v2promptrunslistop();
|
|
59332
58942
|
init_tools();
|
|
59333
|
-
|
|
58943
|
+
args24 = {
|
|
59334
58944
|
request: V2PromptRunsListRequest$zodSchema.optional()
|
|
59335
58945
|
};
|
|
59336
58946
|
tool$promptsV2PromptRunsList = {
|
|
@@ -59345,7 +58955,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
|
|
|
59345
58955
|
openWorldHint: false,
|
|
59346
58956
|
readOnlyHint: true
|
|
59347
58957
|
},
|
|
59348
|
-
args:
|
|
58958
|
+
args: args24,
|
|
59349
58959
|
tool: async (client, args, ctx) => {
|
|
59350
58960
|
const [result] = await promptsV2PromptRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59351
58961
|
if (!result.ok) {
|
|
@@ -59458,9 +59068,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
|
|
|
59458
59068
|
|
|
59459
59069
|
// src/funcs/promptsV2PromptRunsRetrieve.ts
|
|
59460
59070
|
function promptsV2PromptRunsRetrieve(client$, request, options) {
|
|
59461
|
-
return new APIPromise($
|
|
59071
|
+
return new APIPromise($do31(client$, request, options));
|
|
59462
59072
|
}
|
|
59463
|
-
async function $
|
|
59073
|
+
async function $do31(client$, request, options) {
|
|
59464
59074
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59465
59075
|
if (!parsed$.ok) {
|
|
59466
59076
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59535,12 +59145,12 @@ var init_promptsV2PromptRunsRetrieve = __esm(() => {
|
|
|
59535
59145
|
});
|
|
59536
59146
|
|
|
59537
59147
|
// src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts
|
|
59538
|
-
var
|
|
59148
|
+
var args25, tool$promptsV2PromptRunsRetrieve;
|
|
59539
59149
|
var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
|
|
59540
59150
|
init_promptsV2PromptRunsRetrieve();
|
|
59541
59151
|
init_v2promptrunsretrieveop();
|
|
59542
59152
|
init_tools();
|
|
59543
|
-
|
|
59153
|
+
args25 = {
|
|
59544
59154
|
request: V2PromptRunsRetrieveRequest$zodSchema
|
|
59545
59155
|
};
|
|
59546
59156
|
tool$promptsV2PromptRunsRetrieve = {
|
|
@@ -59555,7 +59165,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
|
|
|
59555
59165
|
openWorldHint: false,
|
|
59556
59166
|
readOnlyHint: true
|
|
59557
59167
|
},
|
|
59558
|
-
args:
|
|
59168
|
+
args: args25,
|
|
59559
59169
|
tool: async (client, args, ctx) => {
|
|
59560
59170
|
const [result] = await promptsV2PromptRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59561
59171
|
if (!result.ok) {
|
|
@@ -59610,9 +59220,9 @@ var init_createv2promptsrequest = __esm(() => {
|
|
|
59610
59220
|
|
|
59611
59221
|
// src/funcs/promptsV2PromptsCreate.ts
|
|
59612
59222
|
function promptsV2PromptsCreate(client$, request, options) {
|
|
59613
|
-
return new APIPromise($
|
|
59223
|
+
return new APIPromise($do32(client$, request, options));
|
|
59614
59224
|
}
|
|
59615
|
-
async function $
|
|
59225
|
+
async function $do32(client$, request, options) {
|
|
59616
59226
|
const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59617
59227
|
if (!parsed$.ok) {
|
|
59618
59228
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59682,12 +59292,12 @@ var init_promptsV2PromptsCreate = __esm(() => {
|
|
|
59682
59292
|
});
|
|
59683
59293
|
|
|
59684
59294
|
// src/mcp-server/tools/promptsV2PromptsCreate.ts
|
|
59685
|
-
var
|
|
59295
|
+
var args26, tool$promptsV2PromptsCreate;
|
|
59686
59296
|
var init_promptsV2PromptsCreate2 = __esm(() => {
|
|
59687
59297
|
init_promptsV2PromptsCreate();
|
|
59688
59298
|
init_createv2promptsrequest();
|
|
59689
59299
|
init_tools();
|
|
59690
|
-
|
|
59300
|
+
args26 = {
|
|
59691
59301
|
request: CreateV2PromptsRequest$zodSchema
|
|
59692
59302
|
};
|
|
59693
59303
|
tool$promptsV2PromptsCreate = {
|
|
@@ -59702,7 +59312,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
|
|
|
59702
59312
|
openWorldHint: false,
|
|
59703
59313
|
readOnlyHint: false
|
|
59704
59314
|
},
|
|
59705
|
-
args:
|
|
59315
|
+
args: args26,
|
|
59706
59316
|
tool: async (client, args, ctx) => {
|
|
59707
59317
|
const [result] = await promptsV2PromptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59708
59318
|
if (!result.ok) {
|
|
@@ -59742,9 +59352,9 @@ var init_v2promptsdeleteop = __esm(() => {
|
|
|
59742
59352
|
|
|
59743
59353
|
// src/funcs/promptsV2PromptsDelete.ts
|
|
59744
59354
|
function promptsV2PromptsDelete(client$, request, options) {
|
|
59745
|
-
return new APIPromise($
|
|
59355
|
+
return new APIPromise($do33(client$, request, options));
|
|
59746
59356
|
}
|
|
59747
|
-
async function $
|
|
59357
|
+
async function $do33(client$, request, options) {
|
|
59748
59358
|
const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59749
59359
|
if (!parsed$.ok) {
|
|
59750
59360
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59819,12 +59429,12 @@ var init_promptsV2PromptsDelete = __esm(() => {
|
|
|
59819
59429
|
});
|
|
59820
59430
|
|
|
59821
59431
|
// src/mcp-server/tools/promptsV2PromptsDelete.ts
|
|
59822
|
-
var
|
|
59432
|
+
var args27, tool$promptsV2PromptsDelete;
|
|
59823
59433
|
var init_promptsV2PromptsDelete2 = __esm(() => {
|
|
59824
59434
|
init_promptsV2PromptsDelete();
|
|
59825
59435
|
init_v2promptsdeleteop();
|
|
59826
59436
|
init_tools();
|
|
59827
|
-
|
|
59437
|
+
args27 = {
|
|
59828
59438
|
request: V2PromptsDeleteRequest$zodSchema
|
|
59829
59439
|
};
|
|
59830
59440
|
tool$promptsV2PromptsDelete = {
|
|
@@ -59839,7 +59449,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
|
|
|
59839
59449
|
openWorldHint: false,
|
|
59840
59450
|
readOnlyHint: false
|
|
59841
59451
|
},
|
|
59842
|
-
args:
|
|
59452
|
+
args: args27,
|
|
59843
59453
|
tool: async (client, args, ctx) => {
|
|
59844
59454
|
const [result] = await promptsV2PromptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59845
59455
|
if (!result.ok) {
|
|
@@ -59967,9 +59577,9 @@ var init_v2promptslistop = __esm(() => {
|
|
|
59967
59577
|
|
|
59968
59578
|
// src/funcs/promptsV2PromptsList.ts
|
|
59969
59579
|
function promptsV2PromptsList(client$, request, options) {
|
|
59970
|
-
return new APIPromise($
|
|
59580
|
+
return new APIPromise($do34(client$, request, options));
|
|
59971
59581
|
}
|
|
59972
|
-
async function $
|
|
59582
|
+
async function $do34(client$, request, options) {
|
|
59973
59583
|
const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
59974
59584
|
if (!parsed$.ok) {
|
|
59975
59585
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60044,12 +59654,12 @@ var init_promptsV2PromptsList = __esm(() => {
|
|
|
60044
59654
|
});
|
|
60045
59655
|
|
|
60046
59656
|
// src/mcp-server/tools/promptsV2PromptsList.ts
|
|
60047
|
-
var
|
|
59657
|
+
var args28, tool$promptsV2PromptsList;
|
|
60048
59658
|
var init_promptsV2PromptsList2 = __esm(() => {
|
|
60049
59659
|
init_promptsV2PromptsList();
|
|
60050
59660
|
init_v2promptslistop();
|
|
60051
59661
|
init_tools();
|
|
60052
|
-
|
|
59662
|
+
args28 = {
|
|
60053
59663
|
request: V2PromptsListRequest$zodSchema.optional()
|
|
60054
59664
|
};
|
|
60055
59665
|
tool$promptsV2PromptsList = {
|
|
@@ -60064,7 +59674,7 @@ Returns active and inactive prompts by default. Set \`include_archived\` to incl
|
|
|
60064
59674
|
openWorldHint: false,
|
|
60065
59675
|
readOnlyHint: true
|
|
60066
59676
|
},
|
|
60067
|
-
args:
|
|
59677
|
+
args: args28,
|
|
60068
59678
|
tool: async (client, args, ctx) => {
|
|
60069
59679
|
const [result] = await promptsV2PromptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60070
59680
|
if (!result.ok) {
|
|
@@ -60095,9 +59705,9 @@ var init_v2promptsretrieveop = __esm(() => {
|
|
|
60095
59705
|
|
|
60096
59706
|
// src/funcs/promptsV2PromptsRetrieve.ts
|
|
60097
59707
|
function promptsV2PromptsRetrieve(client$, request, options) {
|
|
60098
|
-
return new APIPromise($
|
|
59708
|
+
return new APIPromise($do35(client$, request, options));
|
|
60099
59709
|
}
|
|
60100
|
-
async function $
|
|
59710
|
+
async function $do35(client$, request, options) {
|
|
60101
59711
|
const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60102
59712
|
if (!parsed$.ok) {
|
|
60103
59713
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60172,12 +59782,12 @@ var init_promptsV2PromptsRetrieve = __esm(() => {
|
|
|
60172
59782
|
});
|
|
60173
59783
|
|
|
60174
59784
|
// src/mcp-server/tools/promptsV2PromptsRetrieve.ts
|
|
60175
|
-
var
|
|
59785
|
+
var args29, tool$promptsV2PromptsRetrieve;
|
|
60176
59786
|
var init_promptsV2PromptsRetrieve2 = __esm(() => {
|
|
60177
59787
|
init_promptsV2PromptsRetrieve();
|
|
60178
59788
|
init_v2promptsretrieveop();
|
|
60179
59789
|
init_tools();
|
|
60180
|
-
|
|
59790
|
+
args29 = {
|
|
60181
59791
|
request: V2PromptsRetrieveRequest$zodSchema
|
|
60182
59792
|
};
|
|
60183
59793
|
tool$promptsV2PromptsRetrieve = {
|
|
@@ -60192,7 +59802,7 @@ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-a
|
|
|
60192
59802
|
openWorldHint: false,
|
|
60193
59803
|
readOnlyHint: true
|
|
60194
59804
|
},
|
|
60195
|
-
args:
|
|
59805
|
+
args: args29,
|
|
60196
59806
|
tool: async (client, args, ctx) => {
|
|
60197
59807
|
const [result] = await promptsV2PromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60198
59808
|
if (!result.ok) {
|
|
@@ -60243,9 +59853,9 @@ var init_v2promptsupdateop = __esm(() => {
|
|
|
60243
59853
|
|
|
60244
59854
|
// src/funcs/promptsV2PromptsUpdate.ts
|
|
60245
59855
|
function promptsV2PromptsUpdate(client$, request, options) {
|
|
60246
|
-
return new APIPromise($
|
|
59856
|
+
return new APIPromise($do36(client$, request, options));
|
|
60247
59857
|
}
|
|
60248
|
-
async function $
|
|
59858
|
+
async function $do36(client$, request, options) {
|
|
60249
59859
|
const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60250
59860
|
if (!parsed$.ok) {
|
|
60251
59861
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60321,12 +59931,12 @@ var init_promptsV2PromptsUpdate = __esm(() => {
|
|
|
60321
59931
|
});
|
|
60322
59932
|
|
|
60323
59933
|
// src/mcp-server/tools/promptsV2PromptsUpdate.ts
|
|
60324
|
-
var
|
|
59934
|
+
var args30, tool$promptsV2PromptsUpdate;
|
|
60325
59935
|
var init_promptsV2PromptsUpdate2 = __esm(() => {
|
|
60326
59936
|
init_promptsV2PromptsUpdate();
|
|
60327
59937
|
init_v2promptsupdateop();
|
|
60328
59938
|
init_tools();
|
|
60329
|
-
|
|
59939
|
+
args30 = {
|
|
60330
59940
|
request: V2PromptsUpdateRequest$zodSchema
|
|
60331
59941
|
};
|
|
60332
59942
|
tool$promptsV2PromptsUpdate = {
|
|
@@ -60341,7 +59951,7 @@ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run
|
|
|
60341
59951
|
openWorldHint: false,
|
|
60342
59952
|
readOnlyHint: false
|
|
60343
59953
|
},
|
|
60344
|
-
args:
|
|
59954
|
+
args: args30,
|
|
60345
59955
|
tool: async (client, args, ctx) => {
|
|
60346
59956
|
const [result] = await promptsV2PromptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60347
59957
|
if (!result.ok) {
|
|
@@ -60366,9 +59976,9 @@ var init_createprompttopicrequest = __esm(() => {
|
|
|
60366
59976
|
|
|
60367
59977
|
// src/funcs/promptsV2PromptTopicsCreate.ts
|
|
60368
59978
|
function promptsV2PromptTopicsCreate(client$, request, options) {
|
|
60369
|
-
return new APIPromise($
|
|
59979
|
+
return new APIPromise($do37(client$, request, options));
|
|
60370
59980
|
}
|
|
60371
|
-
async function $
|
|
59981
|
+
async function $do37(client$, request, options) {
|
|
60372
59982
|
const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60373
59983
|
if (!parsed$.ok) {
|
|
60374
59984
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60438,12 +60048,12 @@ var init_promptsV2PromptTopicsCreate = __esm(() => {
|
|
|
60438
60048
|
});
|
|
60439
60049
|
|
|
60440
60050
|
// src/mcp-server/tools/promptsV2PromptTopicsCreate.ts
|
|
60441
|
-
var
|
|
60051
|
+
var args31, tool$promptsV2PromptTopicsCreate;
|
|
60442
60052
|
var init_promptsV2PromptTopicsCreate2 = __esm(() => {
|
|
60443
60053
|
init_promptsV2PromptTopicsCreate();
|
|
60444
60054
|
init_createprompttopicrequest();
|
|
60445
60055
|
init_tools();
|
|
60446
|
-
|
|
60056
|
+
args31 = {
|
|
60447
60057
|
request: CreatePromptTopicRequest$zodSchema
|
|
60448
60058
|
};
|
|
60449
60059
|
tool$promptsV2PromptTopicsCreate = {
|
|
@@ -60458,7 +60068,7 @@ Creates a prompt topic and returns the saved topic.`,
|
|
|
60458
60068
|
openWorldHint: false,
|
|
60459
60069
|
readOnlyHint: false
|
|
60460
60070
|
},
|
|
60461
|
-
args:
|
|
60071
|
+
args: args31,
|
|
60462
60072
|
tool: async (client, args, ctx) => {
|
|
60463
60073
|
const [result] = await promptsV2PromptTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60464
60074
|
if (!result.ok) {
|
|
@@ -60490,9 +60100,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
|
|
|
60490
60100
|
|
|
60491
60101
|
// src/funcs/promptsV2PromptTopicsDelete.ts
|
|
60492
60102
|
function promptsV2PromptTopicsDelete(client$, request, options) {
|
|
60493
|
-
return new APIPromise($
|
|
60103
|
+
return new APIPromise($do38(client$, request, options));
|
|
60494
60104
|
}
|
|
60495
|
-
async function $
|
|
60105
|
+
async function $do38(client$, request, options) {
|
|
60496
60106
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60497
60107
|
if (!parsed$.ok) {
|
|
60498
60108
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60571,12 +60181,12 @@ var init_promptsV2PromptTopicsDelete = __esm(() => {
|
|
|
60571
60181
|
});
|
|
60572
60182
|
|
|
60573
60183
|
// src/mcp-server/tools/promptsV2PromptTopicsDelete.ts
|
|
60574
|
-
var
|
|
60184
|
+
var args32, tool$promptsV2PromptTopicsDelete;
|
|
60575
60185
|
var init_promptsV2PromptTopicsDelete2 = __esm(() => {
|
|
60576
60186
|
init_promptsV2PromptTopicsDelete();
|
|
60577
60187
|
init_v2prompttopicsdeleteop();
|
|
60578
60188
|
init_tools();
|
|
60579
|
-
|
|
60189
|
+
args32 = {
|
|
60580
60190
|
request: V2PromptTopicsDeleteRequest$zodSchema
|
|
60581
60191
|
};
|
|
60582
60192
|
tool$promptsV2PromptTopicsDelete = {
|
|
@@ -60591,7 +60201,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
60591
60201
|
openWorldHint: false,
|
|
60592
60202
|
readOnlyHint: false
|
|
60593
60203
|
},
|
|
60594
|
-
args:
|
|
60204
|
+
args: args32,
|
|
60595
60205
|
tool: async (client, args, ctx) => {
|
|
60596
60206
|
const [result] = await promptsV2PromptTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60597
60207
|
if (!result.ok) {
|
|
@@ -60607,9 +60217,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
60607
60217
|
|
|
60608
60218
|
// src/funcs/promptsV2PromptTopicsList.ts
|
|
60609
60219
|
function promptsV2PromptTopicsList(client$, options) {
|
|
60610
|
-
return new APIPromise($
|
|
60220
|
+
return new APIPromise($do39(client$, options));
|
|
60611
60221
|
}
|
|
60612
|
-
async function $
|
|
60222
|
+
async function $do39(client$, options) {
|
|
60613
60223
|
const path$ = pathToFunc("/v2/prompts/topics")();
|
|
60614
60224
|
const headers$ = new Headers(compactMap({
|
|
60615
60225
|
Accept: "application/json"
|
|
@@ -60725,9 +60335,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
|
|
|
60725
60335
|
|
|
60726
60336
|
// src/funcs/promptsV2PromptTopicsUpdate.ts
|
|
60727
60337
|
function promptsV2PromptTopicsUpdate(client$, request, options) {
|
|
60728
|
-
return new APIPromise($
|
|
60338
|
+
return new APIPromise($do40(client$, request, options));
|
|
60729
60339
|
}
|
|
60730
|
-
async function $
|
|
60340
|
+
async function $do40(client$, request, options) {
|
|
60731
60341
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60732
60342
|
if (!parsed$.ok) {
|
|
60733
60343
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60803,12 +60413,12 @@ var init_promptsV2PromptTopicsUpdate = __esm(() => {
|
|
|
60803
60413
|
});
|
|
60804
60414
|
|
|
60805
60415
|
// src/mcp-server/tools/promptsV2PromptTopicsUpdate.ts
|
|
60806
|
-
var
|
|
60416
|
+
var args33, tool$promptsV2PromptTopicsUpdate;
|
|
60807
60417
|
var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
|
|
60808
60418
|
init_promptsV2PromptTopicsUpdate();
|
|
60809
60419
|
init_v2prompttopicsupdateop();
|
|
60810
60420
|
init_tools();
|
|
60811
|
-
|
|
60421
|
+
args33 = {
|
|
60812
60422
|
request: V2PromptTopicsUpdateRequest$zodSchema
|
|
60813
60423
|
};
|
|
60814
60424
|
tool$promptsV2PromptTopicsUpdate = {
|
|
@@ -60823,7 +60433,7 @@ Renames a prompt topic and returns the updated topic.`,
|
|
|
60823
60433
|
openWorldHint: false,
|
|
60824
60434
|
readOnlyHint: false
|
|
60825
60435
|
},
|
|
60826
|
-
args:
|
|
60436
|
+
args: args33,
|
|
60827
60437
|
tool: async (client, args, ctx) => {
|
|
60828
60438
|
const [result] = await promptsV2PromptTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60829
60439
|
if (!result.ok) {
|
|
@@ -60866,9 +60476,9 @@ var init_createv2repositoryrequest = __esm(() => {
|
|
|
60866
60476
|
|
|
60867
60477
|
// src/funcs/repositoriesV2RepositoriesCreate.ts
|
|
60868
60478
|
function repositoriesV2RepositoriesCreate(client$, request, options) {
|
|
60869
|
-
return new APIPromise($
|
|
60479
|
+
return new APIPromise($do41(client$, request, options));
|
|
60870
60480
|
}
|
|
60871
|
-
async function $
|
|
60481
|
+
async function $do41(client$, request, options) {
|
|
60872
60482
|
const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60873
60483
|
if (!parsed$.ok) {
|
|
60874
60484
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60938,12 +60548,12 @@ var init_repositoriesV2RepositoriesCreate = __esm(() => {
|
|
|
60938
60548
|
});
|
|
60939
60549
|
|
|
60940
60550
|
// src/mcp-server/tools/repositoriesV2RepositoriesCreate.ts
|
|
60941
|
-
var
|
|
60551
|
+
var args34, tool$repositoriesV2RepositoriesCreate;
|
|
60942
60552
|
var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
|
|
60943
60553
|
init_repositoriesV2RepositoriesCreate();
|
|
60944
60554
|
init_createv2repositoryrequest();
|
|
60945
60555
|
init_tools();
|
|
60946
|
-
|
|
60556
|
+
args34 = {
|
|
60947
60557
|
request: CreateV2RepositoryRequest$zodSchema
|
|
60948
60558
|
};
|
|
60949
60559
|
tool$repositoriesV2RepositoriesCreate = {
|
|
@@ -60958,7 +60568,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
|
|
|
60958
60568
|
openWorldHint: false,
|
|
60959
60569
|
readOnlyHint: false
|
|
60960
60570
|
},
|
|
60961
|
-
args:
|
|
60571
|
+
args: args34,
|
|
60962
60572
|
tool: async (client, args, ctx) => {
|
|
60963
60573
|
const [result] = await repositoriesV2RepositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60964
60574
|
if (!result.ok) {
|
|
@@ -61024,9 +60634,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
|
|
|
61024
60634
|
|
|
61025
60635
|
// src/funcs/repositoriesV2RepositoriesDelete.ts
|
|
61026
60636
|
function repositoriesV2RepositoriesDelete(client$, request, options) {
|
|
61027
|
-
return new APIPromise($
|
|
60637
|
+
return new APIPromise($do42(client$, request, options));
|
|
61028
60638
|
}
|
|
61029
|
-
async function $
|
|
60639
|
+
async function $do42(client$, request, options) {
|
|
61030
60640
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61031
60641
|
if (!parsed$.ok) {
|
|
61032
60642
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61101,12 +60711,12 @@ var init_repositoriesV2RepositoriesDelete = __esm(() => {
|
|
|
61101
60711
|
});
|
|
61102
60712
|
|
|
61103
60713
|
// src/mcp-server/tools/repositoriesV2RepositoriesDelete.ts
|
|
61104
|
-
var
|
|
60714
|
+
var args35, tool$repositoriesV2RepositoriesDelete;
|
|
61105
60715
|
var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
|
|
61106
60716
|
init_repositoriesV2RepositoriesDelete();
|
|
61107
60717
|
init_v2repositoriesdeleteop();
|
|
61108
60718
|
init_tools();
|
|
61109
|
-
|
|
60719
|
+
args35 = {
|
|
61110
60720
|
request: V2RepositoriesDeleteRequest$zodSchema
|
|
61111
60721
|
};
|
|
61112
60722
|
tool$repositoriesV2RepositoriesDelete = {
|
|
@@ -61121,7 +60731,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
61121
60731
|
openWorldHint: false,
|
|
61122
60732
|
readOnlyHint: false
|
|
61123
60733
|
},
|
|
61124
|
-
args:
|
|
60734
|
+
args: args35,
|
|
61125
60735
|
tool: async (client, args, ctx) => {
|
|
61126
60736
|
const [result] = await repositoriesV2RepositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61127
60737
|
if (!result.ok) {
|
|
@@ -61137,9 +60747,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
61137
60747
|
|
|
61138
60748
|
// src/funcs/repositoriesV2RepositoriesList.ts
|
|
61139
60749
|
function repositoriesV2RepositoriesList(client$, options) {
|
|
61140
|
-
return new APIPromise($
|
|
60750
|
+
return new APIPromise($do43(client$, options));
|
|
61141
60751
|
}
|
|
61142
|
-
async function $
|
|
60752
|
+
async function $do43(client$, options) {
|
|
61143
60753
|
const path$ = pathToFunc("/v2/repositories")();
|
|
61144
60754
|
const headers$ = new Headers(compactMap({
|
|
61145
60755
|
Accept: "application/json"
|
|
@@ -61244,9 +60854,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
|
|
|
61244
60854
|
|
|
61245
60855
|
// src/funcs/repositoriesV2RepositoriesRetrieve.ts
|
|
61246
60856
|
function repositoriesV2RepositoriesRetrieve(client$, request, options) {
|
|
61247
|
-
return new APIPromise($
|
|
60857
|
+
return new APIPromise($do44(client$, request, options));
|
|
61248
60858
|
}
|
|
61249
|
-
async function $
|
|
60859
|
+
async function $do44(client$, request, options) {
|
|
61250
60860
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61251
60861
|
if (!parsed$.ok) {
|
|
61252
60862
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61321,12 +60931,12 @@ var init_repositoriesV2RepositoriesRetrieve = __esm(() => {
|
|
|
61321
60931
|
});
|
|
61322
60932
|
|
|
61323
60933
|
// src/mcp-server/tools/repositoriesV2RepositoriesRetrieve.ts
|
|
61324
|
-
var
|
|
60934
|
+
var args36, tool$repositoriesV2RepositoriesRetrieve;
|
|
61325
60935
|
var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
|
|
61326
60936
|
init_repositoriesV2RepositoriesRetrieve();
|
|
61327
60937
|
init_v2repositoriesretrieveop();
|
|
61328
60938
|
init_tools();
|
|
61329
|
-
|
|
60939
|
+
args36 = {
|
|
61330
60940
|
request: V2RepositoriesRetrieveRequest$zodSchema
|
|
61331
60941
|
};
|
|
61332
60942
|
tool$repositoriesV2RepositoriesRetrieve = {
|
|
@@ -61341,7 +60951,7 @@ Returns one reusable repository workspace.`,
|
|
|
61341
60951
|
openWorldHint: false,
|
|
61342
60952
|
readOnlyHint: true
|
|
61343
60953
|
},
|
|
61344
|
-
args:
|
|
60954
|
+
args: args36,
|
|
61345
60955
|
tool: async (client, args, ctx) => {
|
|
61346
60956
|
const [result] = await repositoriesV2RepositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61347
60957
|
if (!result.ok) {
|
|
@@ -61401,9 +61011,9 @@ var init_v2repositoriesupdateop = __esm(() => {
|
|
|
61401
61011
|
|
|
61402
61012
|
// src/funcs/repositoriesV2RepositoriesUpdate.ts
|
|
61403
61013
|
function repositoriesV2RepositoriesUpdate(client$, request, options) {
|
|
61404
|
-
return new APIPromise($
|
|
61014
|
+
return new APIPromise($do45(client$, request, options));
|
|
61405
61015
|
}
|
|
61406
|
-
async function $
|
|
61016
|
+
async function $do45(client$, request, options) {
|
|
61407
61017
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61408
61018
|
if (!parsed$.ok) {
|
|
61409
61019
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61479,12 +61089,12 @@ var init_repositoriesV2RepositoriesUpdate = __esm(() => {
|
|
|
61479
61089
|
});
|
|
61480
61090
|
|
|
61481
61091
|
// src/mcp-server/tools/repositoriesV2RepositoriesUpdate.ts
|
|
61482
|
-
var
|
|
61092
|
+
var args37, tool$repositoriesV2RepositoriesUpdate;
|
|
61483
61093
|
var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
|
|
61484
61094
|
init_repositoriesV2RepositoriesUpdate();
|
|
61485
61095
|
init_v2repositoriesupdateop();
|
|
61486
61096
|
init_tools();
|
|
61487
|
-
|
|
61097
|
+
args37 = {
|
|
61488
61098
|
request: V2RepositoriesUpdateRequest$zodSchema
|
|
61489
61099
|
};
|
|
61490
61100
|
tool$repositoriesV2RepositoriesUpdate = {
|
|
@@ -61499,7 +61109,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
61499
61109
|
openWorldHint: false,
|
|
61500
61110
|
readOnlyHint: false
|
|
61501
61111
|
},
|
|
61502
|
-
args:
|
|
61112
|
+
args: args37,
|
|
61503
61113
|
tool: async (client, args, ctx) => {
|
|
61504
61114
|
const [result] = await repositoriesV2RepositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61505
61115
|
if (!result.ok) {
|
|
@@ -61515,9 +61125,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
61515
61125
|
|
|
61516
61126
|
// src/funcs/siteAuditsV2SiteAuditsList.ts
|
|
61517
61127
|
function siteAuditsV2SiteAuditsList(client$, options) {
|
|
61518
|
-
return new APIPromise($
|
|
61128
|
+
return new APIPromise($do46(client$, options));
|
|
61519
61129
|
}
|
|
61520
|
-
async function $
|
|
61130
|
+
async function $do46(client$, options) {
|
|
61521
61131
|
const path$ = pathToFunc("/v2/site-audits")();
|
|
61522
61132
|
const headers$ = new Headers(compactMap({
|
|
61523
61133
|
Accept: "application/json"
|
|
@@ -61658,9 +61268,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
|
|
|
61658
61268
|
|
|
61659
61269
|
// src/funcs/siteAuditsV2SiteAuditsRetrieve.ts
|
|
61660
61270
|
function siteAuditsV2SiteAuditsRetrieve(client$, request, options) {
|
|
61661
|
-
return new APIPromise($
|
|
61271
|
+
return new APIPromise($do47(client$, request, options));
|
|
61662
61272
|
}
|
|
61663
|
-
async function $
|
|
61273
|
+
async function $do47(client$, request, options) {
|
|
61664
61274
|
const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61665
61275
|
if (!parsed$.ok) {
|
|
61666
61276
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61735,12 +61345,12 @@ var init_siteAuditsV2SiteAuditsRetrieve = __esm(() => {
|
|
|
61735
61345
|
});
|
|
61736
61346
|
|
|
61737
61347
|
// src/mcp-server/tools/siteAuditsV2SiteAuditsRetrieve.ts
|
|
61738
|
-
var
|
|
61348
|
+
var args38, tool$siteAuditsV2SiteAuditsRetrieve;
|
|
61739
61349
|
var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
|
|
61740
61350
|
init_siteAuditsV2SiteAuditsRetrieve();
|
|
61741
61351
|
init_v2siteauditsretrieveop();
|
|
61742
61352
|
init_tools();
|
|
61743
|
-
|
|
61353
|
+
args38 = {
|
|
61744
61354
|
request: V2SiteAuditsRetrieveRequest$zodSchema
|
|
61745
61355
|
};
|
|
61746
61356
|
tool$siteAuditsV2SiteAuditsRetrieve = {
|
|
@@ -61755,7 +61365,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
61755
61365
|
openWorldHint: false,
|
|
61756
61366
|
readOnlyHint: true
|
|
61757
61367
|
},
|
|
61758
|
-
args:
|
|
61368
|
+
args: args38,
|
|
61759
61369
|
tool: async (client, args, ctx) => {
|
|
61760
61370
|
const [result] = await siteAuditsV2SiteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61761
61371
|
if (!result.ok) {
|
|
@@ -61771,9 +61381,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
61771
61381
|
|
|
61772
61382
|
// src/funcs/skillsV2SkillsList.ts
|
|
61773
61383
|
function skillsV2SkillsList(client$, options) {
|
|
61774
|
-
return new APIPromise($
|
|
61384
|
+
return new APIPromise($do48(client$, options));
|
|
61775
61385
|
}
|
|
61776
|
-
async function $
|
|
61386
|
+
async function $do48(client$, options) {
|
|
61777
61387
|
const path$ = pathToFunc("/v2/skills")();
|
|
61778
61388
|
const headers$ = new Headers(compactMap({
|
|
61779
61389
|
Accept: "application/json"
|
|
@@ -61863,9 +61473,9 @@ Returns reusable skills available to workflows and eval configurations.`,
|
|
|
61863
61473
|
|
|
61864
61474
|
// src/funcs/statusV2AuthStatusGet.ts
|
|
61865
61475
|
function statusV2AuthStatusGet(client$, options) {
|
|
61866
|
-
return new APIPromise($
|
|
61476
|
+
return new APIPromise($do49(client$, options));
|
|
61867
61477
|
}
|
|
61868
|
-
async function $
|
|
61478
|
+
async function $do49(client$, options) {
|
|
61869
61479
|
const path$ = pathToFunc("/v2/auth/status")();
|
|
61870
61480
|
const headers$ = new Headers(compactMap({
|
|
61871
61481
|
Accept: "application/json"
|
|
@@ -61955,9 +61565,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
|
|
|
61955
61565
|
|
|
61956
61566
|
// src/funcs/statusV2StatusGet.ts
|
|
61957
61567
|
function statusV2StatusGet(client$, options) {
|
|
61958
|
-
return new APIPromise($
|
|
61568
|
+
return new APIPromise($do50(client$, options));
|
|
61959
61569
|
}
|
|
61960
|
-
async function $
|
|
61570
|
+
async function $do50(client$, options) {
|
|
61961
61571
|
const path$ = pathToFunc("/v2/status")();
|
|
61962
61572
|
const headers$ = new Headers(compactMap({
|
|
61963
61573
|
Accept: "application/json"
|
|
@@ -62177,9 +61787,9 @@ var init_v2taskslistop = __esm(() => {
|
|
|
62177
61787
|
|
|
62178
61788
|
// src/funcs/tasksV2TasksList.ts
|
|
62179
61789
|
function tasksV2TasksList(client$, request, options) {
|
|
62180
|
-
return new APIPromise($
|
|
61790
|
+
return new APIPromise($do51(client$, request, options));
|
|
62181
61791
|
}
|
|
62182
|
-
async function $
|
|
61792
|
+
async function $do51(client$, request, options) {
|
|
62183
61793
|
const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62184
61794
|
if (!parsed$.ok) {
|
|
62185
61795
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62253,12 +61863,12 @@ var init_tasksV2TasksList = __esm(() => {
|
|
|
62253
61863
|
});
|
|
62254
61864
|
|
|
62255
61865
|
// src/mcp-server/tools/tasksV2TasksList.ts
|
|
62256
|
-
var
|
|
61866
|
+
var args39, tool$tasksV2TasksList;
|
|
62257
61867
|
var init_tasksV2TasksList2 = __esm(() => {
|
|
62258
61868
|
init_tasksV2TasksList();
|
|
62259
61869
|
init_v2taskslistop();
|
|
62260
61870
|
init_tools();
|
|
62261
|
-
|
|
61871
|
+
args39 = {
|
|
62262
61872
|
request: V2TasksListRequest$zodSchema.optional()
|
|
62263
61873
|
};
|
|
62264
61874
|
tool$tasksV2TasksList = {
|
|
@@ -62273,7 +61883,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
|
|
|
62273
61883
|
openWorldHint: false,
|
|
62274
61884
|
readOnlyHint: true
|
|
62275
61885
|
},
|
|
62276
|
-
args:
|
|
61886
|
+
args: args39,
|
|
62277
61887
|
tool: async (client, args, ctx) => {
|
|
62278
61888
|
const [result] = await tasksV2TasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62279
61889
|
if (!result.ok) {
|
|
@@ -62304,9 +61914,9 @@ var init_v2tasksretrieveop = __esm(() => {
|
|
|
62304
61914
|
|
|
62305
61915
|
// src/funcs/tasksV2TasksRetrieve.ts
|
|
62306
61916
|
function tasksV2TasksRetrieve(client$, request, options) {
|
|
62307
|
-
return new APIPromise($
|
|
61917
|
+
return new APIPromise($do52(client$, request, options));
|
|
62308
61918
|
}
|
|
62309
|
-
async function $
|
|
61919
|
+
async function $do52(client$, request, options) {
|
|
62310
61920
|
const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62311
61921
|
if (!parsed$.ok) {
|
|
62312
61922
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62381,12 +61991,12 @@ var init_tasksV2TasksRetrieve = __esm(() => {
|
|
|
62381
61991
|
});
|
|
62382
61992
|
|
|
62383
61993
|
// src/mcp-server/tools/tasksV2TasksRetrieve.ts
|
|
62384
|
-
var
|
|
61994
|
+
var args40, tool$tasksV2TasksRetrieve;
|
|
62385
61995
|
var init_tasksV2TasksRetrieve2 = __esm(() => {
|
|
62386
61996
|
init_tasksV2TasksRetrieve();
|
|
62387
61997
|
init_v2tasksretrieveop();
|
|
62388
61998
|
init_tools();
|
|
62389
|
-
|
|
61999
|
+
args40 = {
|
|
62390
62000
|
request: V2TasksRetrieveRequest$zodSchema
|
|
62391
62001
|
};
|
|
62392
62002
|
tool$tasksV2TasksRetrieve = {
|
|
@@ -62401,7 +62011,7 @@ Returns one persisted task and its execution prompt.`,
|
|
|
62401
62011
|
openWorldHint: false,
|
|
62402
62012
|
readOnlyHint: true
|
|
62403
62013
|
},
|
|
62404
|
-
args:
|
|
62014
|
+
args: args40,
|
|
62405
62015
|
tool: async (client, args, ctx) => {
|
|
62406
62016
|
const [result] = await tasksV2TasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62407
62017
|
if (!result.ok) {
|
|
@@ -62464,9 +62074,9 @@ var init_v2tasksupdateop = __esm(() => {
|
|
|
62464
62074
|
|
|
62465
62075
|
// src/funcs/tasksV2TasksUpdate.ts
|
|
62466
62076
|
function tasksV2TasksUpdate(client$, request, options) {
|
|
62467
|
-
return new APIPromise($
|
|
62077
|
+
return new APIPromise($do53(client$, request, options));
|
|
62468
62078
|
}
|
|
62469
|
-
async function $
|
|
62079
|
+
async function $do53(client$, request, options) {
|
|
62470
62080
|
const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62471
62081
|
if (!parsed$.ok) {
|
|
62472
62082
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62542,12 +62152,12 @@ var init_tasksV2TasksUpdate = __esm(() => {
|
|
|
62542
62152
|
});
|
|
62543
62153
|
|
|
62544
62154
|
// src/mcp-server/tools/tasksV2TasksUpdate.ts
|
|
62545
|
-
var
|
|
62155
|
+
var args41, tool$tasksV2TasksUpdate;
|
|
62546
62156
|
var init_tasksV2TasksUpdate2 = __esm(() => {
|
|
62547
62157
|
init_tasksV2TasksUpdate();
|
|
62548
62158
|
init_v2tasksupdateop();
|
|
62549
62159
|
init_tools();
|
|
62550
|
-
|
|
62160
|
+
args41 = {
|
|
62551
62161
|
request: V2TasksUpdateRequest$zodSchema
|
|
62552
62162
|
};
|
|
62553
62163
|
tool$tasksV2TasksUpdate = {
|
|
@@ -62562,7 +62172,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
|
|
|
62562
62172
|
openWorldHint: false,
|
|
62563
62173
|
readOnlyHint: false
|
|
62564
62174
|
},
|
|
62565
|
-
args:
|
|
62175
|
+
args: args41,
|
|
62566
62176
|
tool: async (client, args, ctx) => {
|
|
62567
62177
|
const [result] = await tasksV2TasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62568
62178
|
if (!result.ok) {
|
|
@@ -62650,9 +62260,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
|
|
|
62650
62260
|
|
|
62651
62261
|
// src/funcs/visibilityV2VisibilityCitationsList.ts
|
|
62652
62262
|
function visibilityV2VisibilityCitationsList(client$, request, options) {
|
|
62653
|
-
return new APIPromise($
|
|
62263
|
+
return new APIPromise($do54(client$, request, options));
|
|
62654
62264
|
}
|
|
62655
|
-
async function $
|
|
62265
|
+
async function $do54(client$, request, options) {
|
|
62656
62266
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62657
62267
|
if (!parsed$.ok) {
|
|
62658
62268
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62729,12 +62339,12 @@ var init_visibilityV2VisibilityCitationsList = __esm(() => {
|
|
|
62729
62339
|
});
|
|
62730
62340
|
|
|
62731
62341
|
// src/mcp-server/tools/visibilityV2VisibilityCitationsList.ts
|
|
62732
|
-
var
|
|
62342
|
+
var args42, tool$visibilityV2VisibilityCitationsList;
|
|
62733
62343
|
var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
|
|
62734
62344
|
init_visibilityV2VisibilityCitationsList();
|
|
62735
62345
|
init_v2visibilitycitationslistop();
|
|
62736
62346
|
init_tools();
|
|
62737
|
-
|
|
62347
|
+
args42 = {
|
|
62738
62348
|
request: V2VisibilityCitationsListRequest$zodSchema.optional()
|
|
62739
62349
|
};
|
|
62740
62350
|
tool$visibilityV2VisibilityCitationsList = {
|
|
@@ -62749,7 +62359,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
62749
62359
|
openWorldHint: false,
|
|
62750
62360
|
readOnlyHint: true
|
|
62751
62361
|
},
|
|
62752
|
-
args:
|
|
62362
|
+
args: args42,
|
|
62753
62363
|
tool: async (client, args, ctx) => {
|
|
62754
62364
|
const [result] = await visibilityV2VisibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62755
62365
|
if (!result.ok) {
|
|
@@ -62804,7 +62414,7 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
62804
62414
|
init_publiccurrentvisibilityresponse();
|
|
62805
62415
|
V2VisibilityCurrentRetrieveRequest$zodSchema = object({
|
|
62806
62416
|
end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
|
|
62807
|
-
start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date.").optional()
|
|
62417
|
+
start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional()
|
|
62808
62418
|
});
|
|
62809
62419
|
V2VisibilityCurrentRetrieveResponse$zodSchema = union([
|
|
62810
62420
|
PublicCurrentVisibilityResponse$zodSchema,
|
|
@@ -62814,9 +62424,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
62814
62424
|
|
|
62815
62425
|
// src/funcs/visibilityV2VisibilityCurrentRetrieve.ts
|
|
62816
62426
|
function visibilityV2VisibilityCurrentRetrieve(client$, request, options) {
|
|
62817
|
-
return new APIPromise($
|
|
62427
|
+
return new APIPromise($do55(client$, request, options));
|
|
62818
62428
|
}
|
|
62819
|
-
async function $
|
|
62429
|
+
async function $do55(client$, request, options) {
|
|
62820
62430
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62821
62431
|
if (!parsed$.ok) {
|
|
62822
62432
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62890,12 +62500,12 @@ var init_visibilityV2VisibilityCurrentRetrieve = __esm(() => {
|
|
|
62890
62500
|
});
|
|
62891
62501
|
|
|
62892
62502
|
// src/mcp-server/tools/visibilityV2VisibilityCurrentRetrieve.ts
|
|
62893
|
-
var
|
|
62503
|
+
var args43, tool$visibilityV2VisibilityCurrentRetrieve;
|
|
62894
62504
|
var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
|
|
62895
62505
|
init_visibilityV2VisibilityCurrentRetrieve();
|
|
62896
62506
|
init_v2visibilitycurrentretrieveop();
|
|
62897
62507
|
init_tools();
|
|
62898
|
-
|
|
62508
|
+
args43 = {
|
|
62899
62509
|
request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
|
|
62900
62510
|
};
|
|
62901
62511
|
tool$visibilityV2VisibilityCurrentRetrieve = {
|
|
@@ -62910,7 +62520,7 @@ Returns visibility score, share of voice, ranks, and date-range metadata for the
|
|
|
62910
62520
|
openWorldHint: false,
|
|
62911
62521
|
readOnlyHint: true
|
|
62912
62522
|
},
|
|
62913
|
-
args:
|
|
62523
|
+
args: args43,
|
|
62914
62524
|
tool: async (client, args, ctx) => {
|
|
62915
62525
|
const [result] = await visibilityV2VisibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62916
62526
|
if (!result.ok) {
|
|
@@ -63043,7 +62653,7 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
63043
62653
|
init_publicvisibilityoverviewresponse();
|
|
63044
62654
|
V2VisibilityOverviewRetrieveRequest$zodSchema = object({
|
|
63045
62655
|
end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
|
|
63046
|
-
start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date.").optional()
|
|
62656
|
+
start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional()
|
|
63047
62657
|
});
|
|
63048
62658
|
V2VisibilityOverviewRetrieveResponse$zodSchema = union([
|
|
63049
62659
|
PublicVisibilityOverviewResponse$zodSchema,
|
|
@@ -63053,9 +62663,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
63053
62663
|
|
|
63054
62664
|
// src/funcs/visibilityV2VisibilityOverviewRetrieve.ts
|
|
63055
62665
|
function visibilityV2VisibilityOverviewRetrieve(client$, request, options) {
|
|
63056
|
-
return new APIPromise($
|
|
62666
|
+
return new APIPromise($do56(client$, request, options));
|
|
63057
62667
|
}
|
|
63058
|
-
async function $
|
|
62668
|
+
async function $do56(client$, request, options) {
|
|
63059
62669
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63060
62670
|
if (!parsed$.ok) {
|
|
63061
62671
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63129,12 +62739,12 @@ var init_visibilityV2VisibilityOverviewRetrieve = __esm(() => {
|
|
|
63129
62739
|
});
|
|
63130
62740
|
|
|
63131
62741
|
// src/mcp-server/tools/visibilityV2VisibilityOverviewRetrieve.ts
|
|
63132
|
-
var
|
|
62742
|
+
var args44, tool$visibilityV2VisibilityOverviewRetrieve;
|
|
63133
62743
|
var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
|
|
63134
62744
|
init_visibilityV2VisibilityOverviewRetrieve();
|
|
63135
62745
|
init_v2visibilityoverviewretrieveop();
|
|
63136
62746
|
init_tools();
|
|
63137
|
-
|
|
62747
|
+
args44 = {
|
|
63138
62748
|
request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
|
|
63139
62749
|
};
|
|
63140
62750
|
tool$visibilityV2VisibilityOverviewRetrieve = {
|
|
@@ -63149,7 +62759,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
|
|
|
63149
62759
|
openWorldHint: false,
|
|
63150
62760
|
readOnlyHint: true
|
|
63151
62761
|
},
|
|
63152
|
-
args:
|
|
62762
|
+
args: args44,
|
|
63153
62763
|
tool: async (client, args, ctx) => {
|
|
63154
62764
|
const [result] = await visibilityV2VisibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63155
62765
|
if (!result.ok) {
|
|
@@ -63253,7 +62863,7 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
63253
62863
|
init_publicpromptvisibilityreportresponse();
|
|
63254
62864
|
V2VisibilityPromptsRetrieveRequest$zodSchema = object({
|
|
63255
62865
|
end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
|
|
63256
|
-
start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date.").optional()
|
|
62866
|
+
start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional()
|
|
63257
62867
|
});
|
|
63258
62868
|
V2VisibilityPromptsRetrieveResponse$zodSchema = union([
|
|
63259
62869
|
PublicPromptVisibilityReportResponse$zodSchema,
|
|
@@ -63263,9 +62873,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
63263
62873
|
|
|
63264
62874
|
// src/funcs/visibilityV2VisibilityPromptsRetrieve.ts
|
|
63265
62875
|
function visibilityV2VisibilityPromptsRetrieve(client$, request, options) {
|
|
63266
|
-
return new APIPromise($
|
|
62876
|
+
return new APIPromise($do57(client$, request, options));
|
|
63267
62877
|
}
|
|
63268
|
-
async function $
|
|
62878
|
+
async function $do57(client$, request, options) {
|
|
63269
62879
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63270
62880
|
if (!parsed$.ok) {
|
|
63271
62881
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63339,12 +62949,12 @@ var init_visibilityV2VisibilityPromptsRetrieve = __esm(() => {
|
|
|
63339
62949
|
});
|
|
63340
62950
|
|
|
63341
62951
|
// src/mcp-server/tools/visibilityV2VisibilityPromptsRetrieve.ts
|
|
63342
|
-
var
|
|
62952
|
+
var args45, tool$visibilityV2VisibilityPromptsRetrieve;
|
|
63343
62953
|
var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
|
|
63344
62954
|
init_visibilityV2VisibilityPromptsRetrieve();
|
|
63345
62955
|
init_v2visibilitypromptsretrieveop();
|
|
63346
62956
|
init_tools();
|
|
63347
|
-
|
|
62957
|
+
args45 = {
|
|
63348
62958
|
request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
|
|
63349
62959
|
};
|
|
63350
62960
|
tool$visibilityV2VisibilityPromptsRetrieve = {
|
|
@@ -63359,7 +62969,7 @@ Returns per-topic and per-prompt visibility metrics including score, rank, share
|
|
|
63359
62969
|
openWorldHint: false,
|
|
63360
62970
|
readOnlyHint: true
|
|
63361
62971
|
},
|
|
63362
|
-
args:
|
|
62972
|
+
args: args45,
|
|
63363
62973
|
tool: async (client, args, ctx) => {
|
|
63364
62974
|
const [result] = await visibilityV2VisibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63365
62975
|
if (!result.ok) {
|
|
@@ -63383,7 +62993,7 @@ function createMCPServer(deps) {
|
|
|
63383
62993
|
sizes: ["any"]
|
|
63384
62994
|
}],
|
|
63385
62995
|
name: "LightsageMcp",
|
|
63386
|
-
version: "0.4.
|
|
62996
|
+
version: "0.4.5"
|
|
63387
62997
|
});
|
|
63388
62998
|
const getClient = deps.getSDK || (() => new LightsageMcpCore({
|
|
63389
62999
|
security: deps.security,
|
|
@@ -63426,9 +63036,6 @@ function createMCPServer(deps) {
|
|
|
63426
63036
|
tool(tool$tasksV2TasksList);
|
|
63427
63037
|
tool(tool$tasksV2TasksRetrieve);
|
|
63428
63038
|
tool(tool$tasksV2TasksUpdate);
|
|
63429
|
-
tool(tool$contentV2ContentDraftsCreate);
|
|
63430
|
-
tool(tool$contentV2ContentFinalize);
|
|
63431
|
-
tool(tool$contentV2ContentRetrieve);
|
|
63432
63039
|
tool(tool$siteAuditsV2SiteAuditsList);
|
|
63433
63040
|
tool(tool$siteAuditsV2SiteAuditsRetrieve);
|
|
63434
63041
|
tool(tool$evalsV2EvalsList);
|
|
@@ -63474,9 +63081,6 @@ var init_server2 = __esm(() => {
|
|
|
63474
63081
|
init_tools();
|
|
63475
63082
|
init_agentsV2AgentsList2();
|
|
63476
63083
|
init_clIsV2ClisList2();
|
|
63477
|
-
init_contentV2ContentDraftsCreate2();
|
|
63478
|
-
init_contentV2ContentFinalize2();
|
|
63479
|
-
init_contentV2ContentRetrieve2();
|
|
63480
63084
|
init_environmentsV2EnvironmentsList2();
|
|
63481
63085
|
init_evalRunsV2EvalRunsList2();
|
|
63482
63086
|
init_evalsCancel2();
|
|
@@ -63672,24 +63276,6 @@ Returns one persisted task and its execution prompt.`
|
|
|
63672
63276
|
description: `Update Task
|
|
63673
63277
|
|
|
63674
63278
|
Updates a task's status, priority, assignee, or action type. Only sent fields are changed; omitted fields remain unchanged.`
|
|
63675
|
-
},
|
|
63676
|
-
{
|
|
63677
|
-
name: "content-v2-content-drafts-create",
|
|
63678
|
-
description: `Create Content Draft
|
|
63679
|
-
|
|
63680
|
-
Generates and saves a draft article using AI. Returns the new content record with its ID, title, markdown body, slug, and status. Consumes credits.`
|
|
63681
|
-
},
|
|
63682
|
-
{
|
|
63683
|
-
name: "content-v2-content-finalize",
|
|
63684
|
-
description: `Finalize Content
|
|
63685
|
-
|
|
63686
|
-
Rewrites an existing draft into final, publish-ready content and updates its status. Consumes credits.`
|
|
63687
|
-
},
|
|
63688
|
-
{
|
|
63689
|
-
name: "content-v2-content-retrieve",
|
|
63690
|
-
description: `Retrieve Content
|
|
63691
|
-
|
|
63692
|
-
Returns a content record by ID, including title, markdown body, slug, and status.`
|
|
63693
63279
|
},
|
|
63694
63280
|
{
|
|
63695
63281
|
name: "site-audits-v2-site-audits-list",
|
|
@@ -64777,7 +64363,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
64777
64363
|
<h1>Instructions</h1>
|
|
64778
64364
|
<p>One-click installation for Claude Desktop users</p>
|
|
64779
64365
|
<div class="instruction-item">
|
|
64780
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.
|
|
64366
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.5/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
64781
64367
|
\uD83D\uDCE5 Download MCP Bundle
|
|
64782
64368
|
</a>
|
|
64783
64369
|
</div>
|
|
@@ -67655,7 +67241,7 @@ var routes = buildRouteMap({
|
|
|
67655
67241
|
var app = buildApplication(routes, {
|
|
67656
67242
|
name: "mcp",
|
|
67657
67243
|
versionInfo: {
|
|
67658
|
-
currentVersion: "0.4.
|
|
67244
|
+
currentVersion: "0.4.5"
|
|
67659
67245
|
}
|
|
67660
67246
|
});
|
|
67661
67247
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -67663,5 +67249,5 @@ export {
|
|
|
67663
67249
|
app
|
|
67664
67250
|
};
|
|
67665
67251
|
|
|
67666
|
-
//# debugId=
|
|
67252
|
+
//# debugId=243CF3FE60B2C5ED64756E2164756E21
|
|
67667
67253
|
//# sourceMappingURL=mcp-server.js.map
|