@lightsage/mcp 0.4.18 → 0.4.19
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/api/mcp.js +4 -1
- package/bin/mcp-server.js +440 -116
- package/bin/mcp-server.js.map +23 -14
- package/esm/funcs/agentsList.d.ts +1 -1
- package/esm/funcs/agentsList.js +1 -1
- package/esm/funcs/promptsRun.d.ts +2 -1
- package/esm/funcs/promptsRun.d.ts.map +1 -1
- package/esm/funcs/promptsRun.js +2 -1
- package/esm/funcs/promptsRun.js.map +1 -1
- package/esm/funcs/promptsTargetsList.d.ts +16 -0
- package/esm/funcs/promptsTargetsList.d.ts.map +1 -0
- package/esm/funcs/promptsTargetsList.js +86 -0
- package/esm/funcs/promptsTargetsList.js.map +1 -0
- package/esm/funcs/promptsTargetsSet.d.ts +16 -0
- package/esm/funcs/promptsTargetsSet.d.ts.map +1 -0
- package/esm/funcs/promptsTargetsSet.js +83 -0
- package/esm/funcs/promptsTargetsSet.js.map +1 -0
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +5 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/agentsList.js +1 -1
- package/esm/mcp-server/tools/agentsList.js.map +1 -1
- package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -1
- package/esm/mcp-server/tools/promptsRun.js +2 -1
- package/esm/mcp-server/tools/promptsRun.js.map +1 -1
- package/esm/mcp-server/tools/promptsTargetsList.d.ts +7 -0
- package/esm/mcp-server/tools/promptsTargetsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsTargetsList.js +35 -0
- package/esm/mcp-server/tools/promptsTargetsList.js.map +1 -0
- package/esm/mcp-server/tools/promptsTargetsSet.d.ts +7 -0
- package/esm/mcp-server/tools/promptsTargetsSet.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsTargetsSet.js +35 -0
- package/esm/mcp-server/tools/promptsTargetsSet.js.map +1 -0
- package/esm/models/createv2promptrunrequest.js +1 -1
- package/esm/models/createv2promptrunrequest.js.map +1 -1
- package/esm/models/evaltemplateschedule.d.ts +4 -4
- package/esm/models/evaltemplateschedule.d.ts.map +1 -1
- package/esm/models/evaltemplateschedule.js +4 -3
- package/esm/models/evaltemplateschedule.js.map +1 -1
- package/esm/models/setv2prompttargetsrequest.d.ts +8 -0
- package/esm/models/setv2prompttargetsrequest.d.ts.map +1 -0
- package/esm/models/setv2prompttargetsrequest.js +11 -0
- package/esm/models/setv2prompttargetsrequest.js.map +1 -0
- package/esm/models/setv2prompttargetsresponse.d.ts +9 -0
- package/esm/models/setv2prompttargetsresponse.d.ts.map +1 -0
- package/esm/models/setv2prompttargetsresponse.js +12 -0
- package/esm/models/setv2prompttargetsresponse.js.map +1 -0
- package/esm/models/v2prompttarget.d.ts +44 -0
- package/esm/models/v2prompttarget.d.ts.map +1 -0
- package/esm/models/v2prompttarget.js +41 -0
- package/esm/models/v2prompttarget.js.map +1 -0
- package/esm/models/v2prompttargetinput.d.ts +47 -0
- package/esm/models/v2prompttargetinput.d.ts.map +1 -0
- package/esm/models/v2prompttargetinput.js +45 -0
- package/esm/models/v2prompttargetinput.js.map +1 -0
- package/esm/models/v2prompttargetslistop.d.ts +10 -0
- package/esm/models/v2prompttargetslistop.d.ts.map +1 -0
- package/esm/models/v2prompttargetslistop.js +15 -0
- package/esm/models/v2prompttargetslistop.js.map +1 -0
- package/esm/models/v2prompttargetsresponse.d.ts +8 -0
- package/esm/models/v2prompttargetsresponse.d.ts.map +1 -0
- package/esm/models/v2prompttargetsresponse.js +11 -0
- package/esm/models/v2prompttargetsresponse.js.map +1 -0
- package/esm/models/v2prompttargetssetop.d.ts +6 -0
- package/esm/models/v2prompttargetssetop.d.ts.map +1 -0
- package/esm/models/v2prompttargetssetop.js +12 -0
- package/esm/models/v2prompttargetssetop.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +10 -2
- package/esm/tool-names.js.map +1 -1
- package/lib/feedback.js +47 -0
- package/lib/tracker.js +4 -2
- package/package.json +5 -4
- package/src/funcs/agentsList.ts +1 -1
- package/src/funcs/promptsRun.ts +2 -1
- package/src/funcs/promptsTargetsList.ts +148 -0
- package/src/funcs/promptsTargetsSet.ts +145 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/agentsList.ts +1 -1
- package/src/mcp-server/tools/promptsRun.ts +2 -1
- package/src/mcp-server/tools/promptsTargetsList.ts +43 -0
- package/src/mcp-server/tools/promptsTargetsSet.ts +43 -0
- package/src/models/createv2promptrunrequest.ts +1 -1
- package/src/models/evaltemplateschedule.ts +8 -7
- package/src/models/setv2prompttargetsrequest.ts +26 -0
- package/src/models/setv2prompttargetsresponse.ts +23 -0
- package/src/models/v2prompttarget.ts +79 -0
- package/src/models/v2prompttargetinput.ts +72 -0
- package/src/models/v2prompttargetslistop.ts +33 -0
- package/src/models/v2prompttargetsresponse.ts +19 -0
- package/src/models/v2prompttargetssetop.ts +25 -0
- package/src/tool-names.ts +10 -2
- package/test/tracker.test.js +83 -1
package/bin/mcp-server.js
CHANGED
|
@@ -53728,9 +53728,9 @@ var init_config = __esm(() => {
|
|
|
53728
53728
|
SDK_METADATA = {
|
|
53729
53729
|
language: "typescript",
|
|
53730
53730
|
openapiDocVersion: "1.0.0",
|
|
53731
|
-
sdkVersion: "0.4.
|
|
53731
|
+
sdkVersion: "0.4.19",
|
|
53732
53732
|
genVersion: "2.948.4",
|
|
53733
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
53733
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.19 2.948.4 1.0.0 @lightsage/mcp"
|
|
53734
53734
|
};
|
|
53735
53735
|
});
|
|
53736
53736
|
|
|
@@ -57469,7 +57469,7 @@ var init_agentsList2 = __esm(() => {
|
|
|
57469
57469
|
name: "agents-list",
|
|
57470
57470
|
description: `List Agents
|
|
57471
57471
|
|
|
57472
|
-
Returns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as \`agent\` to \`POST /v2/prompts/runs\` to see how coding agents answer your prompts, with mentions and citations; to \`POST /v2/agent-preference/evals\` to see whether agents recommend your company over one competitor; or to \`POST /v2/evals\` and \`POST /v2/eval-runs\` to measure how well agents complete tasks with your product.`,
|
|
57472
|
+
Returns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as \`agent\` to \`POST /v2/prompts/runs\` to see how coding agents answer your prompts, with mentions and citations, or to \`PUT /v2/prompts/targets\` to run them on a schedule; to \`POST /v2/agent-preference/evals\` to see whether agents recommend your company over one competitor; or to \`POST /v2/evals\` and \`POST /v2/eval-runs\` to measure how well agents complete tasks with your product.`,
|
|
57473
57473
|
annotations: {
|
|
57474
57474
|
title: "",
|
|
57475
57475
|
destructiveHint: false,
|
|
@@ -60215,17 +60215,17 @@ var init_evaltemplateruntime = __esm(() => {
|
|
|
60215
60215
|
});
|
|
60216
60216
|
|
|
60217
60217
|
// src/models/evaltemplateschedule.ts
|
|
60218
|
-
var
|
|
60218
|
+
var EvalTemplateScheduleFrequency$zodSchema, EvalTemplateSchedule$zodSchema;
|
|
60219
60219
|
var init_evaltemplateschedule = __esm(() => {
|
|
60220
60220
|
init_zod();
|
|
60221
|
-
|
|
60221
|
+
EvalTemplateScheduleFrequency$zodSchema = _enum([
|
|
60222
60222
|
"daily",
|
|
60223
60223
|
"every_other_day",
|
|
60224
60224
|
"weekly"
|
|
60225
60225
|
]).describe("Schedule cadence used when `enabled` is true.");
|
|
60226
60226
|
EvalTemplateSchedule$zodSchema = object({
|
|
60227
60227
|
enabled: boolean2().default(false).describe("Whether each eval created from the template receives a schedule."),
|
|
60228
|
-
frequency:
|
|
60228
|
+
frequency: EvalTemplateScheduleFrequency$zodSchema.default("weekly").describe("Schedule cadence used when `enabled` is true.")
|
|
60229
60229
|
}).describe("Schedule copied into every eval created from the template.");
|
|
60230
60230
|
});
|
|
60231
60231
|
|
|
@@ -62135,7 +62135,7 @@ var CreateV2PromptRunRequest$zodSchema;
|
|
|
62135
62135
|
var init_createv2promptrunrequest = __esm(() => {
|
|
62136
62136
|
init_zod();
|
|
62137
62137
|
CreateV2PromptRunRequest$zodSchema = object({
|
|
62138
|
-
agent: array(string2()).nullable().optional().describe("Runnable agents from `GET /v2/agents`, each a coding-agent harness and model such as `claude-code:claude-opus-5-5`. Every selected prompt runs once on each agent, so you can compare how several coding tools and models answer the same question. When set, this run uses only these agents instead of the organization's configured targets, including answer engines. Omit it to use the configured targets
|
|
62138
|
+
agent: array(string2()).nullable().optional().describe("Runnable agents from `GET /v2/agents`, each a coding-agent harness and model such as `claude-code:claude-opus-5-5`. Every selected prompt runs once on each agent, so you can compare how several coding tools and models answer the same question. When set, this run uses only these agents instead of the organization's configured targets, including answer engines, and saves nothing. Omit it to use the configured targets; change those with `PUT /v2/prompts/targets`. CLI clients expose repeatable `--agent`."),
|
|
62139
62139
|
force: boolean2().default(false).describe("Run even when a prompt already ran today on the same platform and model."),
|
|
62140
62140
|
prompt_ids: array(string2()).nullable().optional().describe("Prompt IDs from `GET /v2/prompts`. Omit this field to run all active prompts.")
|
|
62141
62141
|
});
|
|
@@ -62230,7 +62230,8 @@ var init_promptsRun2 = __esm(() => {
|
|
|
62230
62230
|
Queue saved prompts on answer engines and coding agents.
|
|
62231
62231
|
|
|
62232
62232
|
Provide \`prompt_ids\` to run selected prompts, or omit them to run all active
|
|
62233
|
-
prompts. By default the run uses the organization's configured targets
|
|
62233
|
+
prompts. By default the run uses the organization's configured targets,
|
|
62234
|
+
listed by \`GET /v2/prompts/targets\`.
|
|
62234
62235
|
Provide \`agent\` with IDs from \`GET /v2/agents\` to run the prompts on
|
|
62235
62236
|
specific coding-agent harnesses and models instead, for example to compare
|
|
62236
62237
|
how several coding tools answer the same developer question. Results
|
|
@@ -63005,6 +63006,316 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
|
|
|
63005
63006
|
};
|
|
63006
63007
|
});
|
|
63007
63008
|
|
|
63009
|
+
// src/models/v2prompttarget.ts
|
|
63010
|
+
var V2PromptTargetKind$zodSchema, V2PromptTargetFrequency$zodSchema, V2PromptTarget$zodSchema;
|
|
63011
|
+
var init_v2prompttarget = __esm(() => {
|
|
63012
|
+
init_zod();
|
|
63013
|
+
init_v2promptruntopic();
|
|
63014
|
+
V2PromptTargetKind$zodSchema = _enum([
|
|
63015
|
+
"answer_engine",
|
|
63016
|
+
"coding_agent"
|
|
63017
|
+
]);
|
|
63018
|
+
V2PromptTargetFrequency$zodSchema = _enum([
|
|
63019
|
+
"daily",
|
|
63020
|
+
"every_other_day",
|
|
63021
|
+
"weekly",
|
|
63022
|
+
"manual"
|
|
63023
|
+
]).describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.");
|
|
63024
|
+
V2PromptTarget$zodSchema = object({
|
|
63025
|
+
agent: string2().nullable().optional().describe("Agent ID from `GET /v2/agents` for coding-agent targets."),
|
|
63026
|
+
answer_engine: string2().nullable().optional().describe("Answer engine identifier for answer-engine targets."),
|
|
63027
|
+
frequency: V2PromptTargetFrequency$zodSchema.describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization."),
|
|
63028
|
+
id: string2(),
|
|
63029
|
+
kind: V2PromptTargetKind$zodSchema,
|
|
63030
|
+
last_run_at: string2().nullable().optional(),
|
|
63031
|
+
name: string2().describe("Human-readable answer engine or agent name."),
|
|
63032
|
+
next_run_at: string2().nullable().optional(),
|
|
63033
|
+
topic: V2PromptRunTopic$zodSchema.nullable().optional().describe("Topic the target runs for. Null means it runs for every topic.")
|
|
63034
|
+
});
|
|
63035
|
+
});
|
|
63036
|
+
|
|
63037
|
+
// src/models/v2prompttargetsresponse.ts
|
|
63038
|
+
var V2PromptTargetsResponse$zodSchema;
|
|
63039
|
+
var init_v2prompttargetsresponse = __esm(() => {
|
|
63040
|
+
init_zod();
|
|
63041
|
+
init_v2prompttarget();
|
|
63042
|
+
V2PromptTargetsResponse$zodSchema = object({
|
|
63043
|
+
count: int(),
|
|
63044
|
+
data: array(V2PromptTarget$zodSchema).optional()
|
|
63045
|
+
});
|
|
63046
|
+
});
|
|
63047
|
+
|
|
63048
|
+
// src/models/v2prompttargetslistop.ts
|
|
63049
|
+
var V2PromptTargetsListRequest$zodSchema, V2PromptTargetsListResponse$zodSchema;
|
|
63050
|
+
var init_v2prompttargetslistop = __esm(() => {
|
|
63051
|
+
init_zod();
|
|
63052
|
+
init_httpvalidationerror();
|
|
63053
|
+
init_v2prompttargetsresponse();
|
|
63054
|
+
V2PromptTargetsListRequest$zodSchema = object({
|
|
63055
|
+
topic_id: string2().describe("Optional prompt topic ID.").optional()
|
|
63056
|
+
});
|
|
63057
|
+
V2PromptTargetsListResponse$zodSchema = union([
|
|
63058
|
+
V2PromptTargetsResponse$zodSchema,
|
|
63059
|
+
HTTPValidationError$zodSchema
|
|
63060
|
+
]);
|
|
63061
|
+
});
|
|
63062
|
+
|
|
63063
|
+
// src/funcs/promptsTargetsList.ts
|
|
63064
|
+
function promptsTargetsList(client$, request, options) {
|
|
63065
|
+
return new APIPromise($do51(client$, request, options));
|
|
63066
|
+
}
|
|
63067
|
+
async function $do51(client$, request, options) {
|
|
63068
|
+
const parsed$ = safeParse4(request, (value$) => V2PromptTargetsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63069
|
+
if (!parsed$.ok) {
|
|
63070
|
+
return [parsed$, { status: "invalid" }];
|
|
63071
|
+
}
|
|
63072
|
+
const payload$ = parsed$.value;
|
|
63073
|
+
const body$ = null;
|
|
63074
|
+
const path$ = pathToFunc("/v2/prompts/targets")();
|
|
63075
|
+
const query$ = encodeFormQuery({
|
|
63076
|
+
topic_id: payload$?.topic_id
|
|
63077
|
+
});
|
|
63078
|
+
const headers$ = new Headers(compactMap({
|
|
63079
|
+
Accept: "application/json"
|
|
63080
|
+
}));
|
|
63081
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63082
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63083
|
+
const context = {
|
|
63084
|
+
options: client$._options,
|
|
63085
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63086
|
+
operationID: "v2_prompt_targets_list",
|
|
63087
|
+
oAuth2Scopes: null,
|
|
63088
|
+
resolvedSecurity: requestSecurity,
|
|
63089
|
+
securitySource: client$._options.security,
|
|
63090
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63091
|
+
retryCodes: options?.retryCodes || [
|
|
63092
|
+
"429",
|
|
63093
|
+
"500",
|
|
63094
|
+
"502",
|
|
63095
|
+
"503",
|
|
63096
|
+
"504"
|
|
63097
|
+
]
|
|
63098
|
+
};
|
|
63099
|
+
const requestRes = client$._createRequest(context, {
|
|
63100
|
+
security: requestSecurity,
|
|
63101
|
+
method: "GET",
|
|
63102
|
+
baseURL: options?.serverURL,
|
|
63103
|
+
path: path$,
|
|
63104
|
+
headers: headers$,
|
|
63105
|
+
query: query$,
|
|
63106
|
+
body: body$,
|
|
63107
|
+
userAgent: client$._options.userAgent,
|
|
63108
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63109
|
+
}, options);
|
|
63110
|
+
if (!requestRes.ok) {
|
|
63111
|
+
return [requestRes, { status: "invalid" }];
|
|
63112
|
+
}
|
|
63113
|
+
const req$ = requestRes.value;
|
|
63114
|
+
const doResult = await client$._do(req$, {
|
|
63115
|
+
context,
|
|
63116
|
+
errorCodes: [],
|
|
63117
|
+
retryConfig: context.retryConfig,
|
|
63118
|
+
retryCodes: context.retryCodes
|
|
63119
|
+
});
|
|
63120
|
+
if (!doResult.ok) {
|
|
63121
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63122
|
+
}
|
|
63123
|
+
return [doResult, {
|
|
63124
|
+
status: "complete",
|
|
63125
|
+
request: req$,
|
|
63126
|
+
response: doResult.value
|
|
63127
|
+
}];
|
|
63128
|
+
}
|
|
63129
|
+
var init_promptsTargetsList = __esm(() => {
|
|
63130
|
+
init_encodings();
|
|
63131
|
+
init_primitives();
|
|
63132
|
+
init_schemas4();
|
|
63133
|
+
init_security();
|
|
63134
|
+
init_url();
|
|
63135
|
+
init_v2prompttargetslistop();
|
|
63136
|
+
init_async();
|
|
63137
|
+
});
|
|
63138
|
+
|
|
63139
|
+
// src/mcp-server/tools/promptsTargetsList.ts
|
|
63140
|
+
var args42, tool$promptsTargetsList;
|
|
63141
|
+
var init_promptsTargetsList2 = __esm(() => {
|
|
63142
|
+
init_promptsTargetsList();
|
|
63143
|
+
init_v2prompttargetslistop();
|
|
63144
|
+
init_tools();
|
|
63145
|
+
args42 = {
|
|
63146
|
+
request: V2PromptTargetsListRequest$zodSchema.optional()
|
|
63147
|
+
};
|
|
63148
|
+
tool$promptsTargetsList = {
|
|
63149
|
+
name: "prompts-targets-list",
|
|
63150
|
+
description: `List Targets
|
|
63151
|
+
|
|
63152
|
+
Returns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic and frequency. Provide \`topic_id\` to list one topic's targets.`,
|
|
63153
|
+
annotations: {
|
|
63154
|
+
title: "",
|
|
63155
|
+
destructiveHint: false,
|
|
63156
|
+
idempotentHint: false,
|
|
63157
|
+
openWorldHint: false,
|
|
63158
|
+
readOnlyHint: true
|
|
63159
|
+
},
|
|
63160
|
+
args: args42,
|
|
63161
|
+
tool: async (client, args, ctx) => {
|
|
63162
|
+
const [result] = await promptsTargetsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63163
|
+
if (!result.ok) {
|
|
63164
|
+
return {
|
|
63165
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63166
|
+
isError: true
|
|
63167
|
+
};
|
|
63168
|
+
}
|
|
63169
|
+
return formatResult(result.value);
|
|
63170
|
+
}
|
|
63171
|
+
};
|
|
63172
|
+
});
|
|
63173
|
+
|
|
63174
|
+
// src/models/v2prompttargetinput.ts
|
|
63175
|
+
var AnswerEngine$zodSchema, V2PromptTargetInputFrequency$zodSchema, V2PromptTargetInput$zodSchema;
|
|
63176
|
+
var init_v2prompttargetinput = __esm(() => {
|
|
63177
|
+
init_zod();
|
|
63178
|
+
AnswerEngine$zodSchema = _enum([
|
|
63179
|
+
"chatgpt",
|
|
63180
|
+
"google-ai-overviews",
|
|
63181
|
+
"google-ai-mode",
|
|
63182
|
+
"gemini-search",
|
|
63183
|
+
"perplexity",
|
|
63184
|
+
"claude",
|
|
63185
|
+
"microsoft-copilot"
|
|
63186
|
+
]);
|
|
63187
|
+
V2PromptTargetInputFrequency$zodSchema = _enum([
|
|
63188
|
+
"daily",
|
|
63189
|
+
"every_other_day",
|
|
63190
|
+
"weekly",
|
|
63191
|
+
"manual"
|
|
63192
|
+
]).describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.");
|
|
63193
|
+
V2PromptTargetInput$zodSchema = object({
|
|
63194
|
+
agent: string2().nullable().optional().describe("Runnable agent from `GET /v2/agents`, a coding-agent harness and model such as `claude-code:claude-opus-5-5`. Set this or `answer_engine`, not both."),
|
|
63195
|
+
answer_engine: AnswerEngine$zodSchema.nullable().optional().describe("Answer engine to run the topic's prompts on. Set this or `agent`, not both."),
|
|
63196
|
+
frequency: V2PromptTargetInputFrequency$zodSchema.default("daily").describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.")
|
|
63197
|
+
});
|
|
63198
|
+
});
|
|
63199
|
+
|
|
63200
|
+
// src/models/setv2prompttargetsrequest.ts
|
|
63201
|
+
var SetV2PromptTargetsRequest$zodSchema;
|
|
63202
|
+
var init_setv2prompttargetsrequest = __esm(() => {
|
|
63203
|
+
init_zod();
|
|
63204
|
+
init_v2prompttargetinput();
|
|
63205
|
+
SetV2PromptTargetsRequest$zodSchema = object({
|
|
63206
|
+
targets: array(V2PromptTargetInput$zodSchema).describe("The complete set of answer engines and coding agents for the topic. Targets you leave out stop running. List an agent harness more than once to run it on several models."),
|
|
63207
|
+
topic_id: string2().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
|
|
63208
|
+
});
|
|
63209
|
+
});
|
|
63210
|
+
|
|
63211
|
+
// src/funcs/promptsTargetsSet.ts
|
|
63212
|
+
function promptsTargetsSet(client$, request, options) {
|
|
63213
|
+
return new APIPromise($do52(client$, request, options));
|
|
63214
|
+
}
|
|
63215
|
+
async function $do52(client$, request, options) {
|
|
63216
|
+
const parsed$ = safeParse4(request, (value$) => SetV2PromptTargetsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63217
|
+
if (!parsed$.ok) {
|
|
63218
|
+
return [parsed$, { status: "invalid" }];
|
|
63219
|
+
}
|
|
63220
|
+
const payload$ = parsed$.value;
|
|
63221
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
63222
|
+
const path$ = pathToFunc("/v2/prompts/targets")();
|
|
63223
|
+
const headers$ = new Headers(compactMap({
|
|
63224
|
+
"Content-Type": "application/json",
|
|
63225
|
+
Accept: "application/json"
|
|
63226
|
+
}));
|
|
63227
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63228
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63229
|
+
const context = {
|
|
63230
|
+
options: client$._options,
|
|
63231
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63232
|
+
operationID: "v2_prompt_targets_set",
|
|
63233
|
+
oAuth2Scopes: null,
|
|
63234
|
+
resolvedSecurity: requestSecurity,
|
|
63235
|
+
securitySource: client$._options.security,
|
|
63236
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63237
|
+
retryCodes: options?.retryCodes || [
|
|
63238
|
+
"429",
|
|
63239
|
+
"500",
|
|
63240
|
+
"502",
|
|
63241
|
+
"503",
|
|
63242
|
+
"504"
|
|
63243
|
+
]
|
|
63244
|
+
};
|
|
63245
|
+
const requestRes = client$._createRequest(context, {
|
|
63246
|
+
security: requestSecurity,
|
|
63247
|
+
method: "PUT",
|
|
63248
|
+
baseURL: options?.serverURL,
|
|
63249
|
+
path: path$,
|
|
63250
|
+
headers: headers$,
|
|
63251
|
+
body: body$,
|
|
63252
|
+
userAgent: client$._options.userAgent,
|
|
63253
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63254
|
+
}, options);
|
|
63255
|
+
if (!requestRes.ok) {
|
|
63256
|
+
return [requestRes, { status: "invalid" }];
|
|
63257
|
+
}
|
|
63258
|
+
const req$ = requestRes.value;
|
|
63259
|
+
const doResult = await client$._do(req$, {
|
|
63260
|
+
context,
|
|
63261
|
+
errorCodes: [],
|
|
63262
|
+
retryConfig: context.retryConfig,
|
|
63263
|
+
retryCodes: context.retryCodes
|
|
63264
|
+
});
|
|
63265
|
+
if (!doResult.ok) {
|
|
63266
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63267
|
+
}
|
|
63268
|
+
return [doResult, {
|
|
63269
|
+
status: "complete",
|
|
63270
|
+
request: req$,
|
|
63271
|
+
response: doResult.value
|
|
63272
|
+
}];
|
|
63273
|
+
}
|
|
63274
|
+
var init_promptsTargetsSet = __esm(() => {
|
|
63275
|
+
init_encodings();
|
|
63276
|
+
init_primitives();
|
|
63277
|
+
init_schemas4();
|
|
63278
|
+
init_security();
|
|
63279
|
+
init_url();
|
|
63280
|
+
init_setv2prompttargetsrequest();
|
|
63281
|
+
init_async();
|
|
63282
|
+
});
|
|
63283
|
+
|
|
63284
|
+
// src/mcp-server/tools/promptsTargetsSet.ts
|
|
63285
|
+
var args43, tool$promptsTargetsSet;
|
|
63286
|
+
var init_promptsTargetsSet2 = __esm(() => {
|
|
63287
|
+
init_promptsTargetsSet();
|
|
63288
|
+
init_setv2prompttargetsrequest();
|
|
63289
|
+
init_tools();
|
|
63290
|
+
args43 = {
|
|
63291
|
+
request: SetV2PromptTargetsRequest$zodSchema
|
|
63292
|
+
};
|
|
63293
|
+
tool$promptsTargetsSet = {
|
|
63294
|
+
name: "prompts-targets-set",
|
|
63295
|
+
description: `Set Targets
|
|
63296
|
+
|
|
63297
|
+
Sets which answer engines and coding agents run a topic's prompts on schedule, the same way the prompt editor does. The list replaces the topic's targets: targets you leave out stop running. Every prompt in the topic is set to exactly these platforms; you can still narrow one prompt afterwards with \`platform_ids\`. Name coding agents with IDs from \`GET /v2/agents\`, and list a harness more than once to run it on several models. To pick agents for a single run without changing the schedule, pass \`agent\` to \`POST /v2/prompts/runs\` instead.`,
|
|
63298
|
+
annotations: {
|
|
63299
|
+
title: "",
|
|
63300
|
+
destructiveHint: false,
|
|
63301
|
+
idempotentHint: false,
|
|
63302
|
+
openWorldHint: false,
|
|
63303
|
+
readOnlyHint: false
|
|
63304
|
+
},
|
|
63305
|
+
args: args43,
|
|
63306
|
+
tool: async (client, args, ctx) => {
|
|
63307
|
+
const [result] = await promptsTargetsSet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63308
|
+
if (!result.ok) {
|
|
63309
|
+
return {
|
|
63310
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63311
|
+
isError: true
|
|
63312
|
+
};
|
|
63313
|
+
}
|
|
63314
|
+
return formatResult(result.value);
|
|
63315
|
+
}
|
|
63316
|
+
};
|
|
63317
|
+
});
|
|
63318
|
+
|
|
63008
63319
|
// src/models/createprompttopicrequest.ts
|
|
63009
63320
|
var CreatePromptTopicRequest$zodSchema;
|
|
63010
63321
|
var init_createprompttopicrequest = __esm(() => {
|
|
@@ -63016,9 +63327,9 @@ var init_createprompttopicrequest = __esm(() => {
|
|
|
63016
63327
|
|
|
63017
63328
|
// src/funcs/promptsTopicsCreate.ts
|
|
63018
63329
|
function promptsTopicsCreate(client$, request, options) {
|
|
63019
|
-
return new APIPromise($
|
|
63330
|
+
return new APIPromise($do53(client$, request, options));
|
|
63020
63331
|
}
|
|
63021
|
-
async function $
|
|
63332
|
+
async function $do53(client$, request, options) {
|
|
63022
63333
|
const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63023
63334
|
if (!parsed$.ok) {
|
|
63024
63335
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63088,12 +63399,12 @@ var init_promptsTopicsCreate = __esm(() => {
|
|
|
63088
63399
|
});
|
|
63089
63400
|
|
|
63090
63401
|
// src/mcp-server/tools/promptsTopicsCreate.ts
|
|
63091
|
-
var
|
|
63402
|
+
var args44, tool$promptsTopicsCreate;
|
|
63092
63403
|
var init_promptsTopicsCreate2 = __esm(() => {
|
|
63093
63404
|
init_promptsTopicsCreate();
|
|
63094
63405
|
init_createprompttopicrequest();
|
|
63095
63406
|
init_tools();
|
|
63096
|
-
|
|
63407
|
+
args44 = {
|
|
63097
63408
|
request: CreatePromptTopicRequest$zodSchema
|
|
63098
63409
|
};
|
|
63099
63410
|
tool$promptsTopicsCreate = {
|
|
@@ -63108,7 +63419,7 @@ Creates a prompt topic and returns the saved topic.`,
|
|
|
63108
63419
|
openWorldHint: false,
|
|
63109
63420
|
readOnlyHint: false
|
|
63110
63421
|
},
|
|
63111
|
-
args:
|
|
63422
|
+
args: args44,
|
|
63112
63423
|
tool: async (client, args, ctx) => {
|
|
63113
63424
|
const [result] = await promptsTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63114
63425
|
if (!result.ok) {
|
|
@@ -63140,9 +63451,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
|
|
|
63140
63451
|
|
|
63141
63452
|
// src/funcs/promptsTopicsDelete.ts
|
|
63142
63453
|
function promptsTopicsDelete(client$, request, options) {
|
|
63143
|
-
return new APIPromise($
|
|
63454
|
+
return new APIPromise($do54(client$, request, options));
|
|
63144
63455
|
}
|
|
63145
|
-
async function $
|
|
63456
|
+
async function $do54(client$, request, options) {
|
|
63146
63457
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63147
63458
|
if (!parsed$.ok) {
|
|
63148
63459
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63221,12 +63532,12 @@ var init_promptsTopicsDelete = __esm(() => {
|
|
|
63221
63532
|
});
|
|
63222
63533
|
|
|
63223
63534
|
// src/mcp-server/tools/promptsTopicsDelete.ts
|
|
63224
|
-
var
|
|
63535
|
+
var args45, tool$promptsTopicsDelete;
|
|
63225
63536
|
var init_promptsTopicsDelete2 = __esm(() => {
|
|
63226
63537
|
init_promptsTopicsDelete();
|
|
63227
63538
|
init_v2prompttopicsdeleteop();
|
|
63228
63539
|
init_tools();
|
|
63229
|
-
|
|
63540
|
+
args45 = {
|
|
63230
63541
|
request: V2PromptTopicsDeleteRequest$zodSchema
|
|
63231
63542
|
};
|
|
63232
63543
|
tool$promptsTopicsDelete = {
|
|
@@ -63241,7 +63552,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
63241
63552
|
openWorldHint: false,
|
|
63242
63553
|
readOnlyHint: false
|
|
63243
63554
|
},
|
|
63244
|
-
args:
|
|
63555
|
+
args: args45,
|
|
63245
63556
|
tool: async (client, args, ctx) => {
|
|
63246
63557
|
const [result] = await promptsTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63247
63558
|
if (!result.ok) {
|
|
@@ -63257,9 +63568,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
63257
63568
|
|
|
63258
63569
|
// src/funcs/promptsTopicsList.ts
|
|
63259
63570
|
function promptsTopicsList(client$, options) {
|
|
63260
|
-
return new APIPromise($
|
|
63571
|
+
return new APIPromise($do55(client$, options));
|
|
63261
63572
|
}
|
|
63262
|
-
async function $
|
|
63573
|
+
async function $do55(client$, options) {
|
|
63263
63574
|
const path$ = pathToFunc("/v2/prompts/topics")();
|
|
63264
63575
|
const headers$ = new Headers(compactMap({
|
|
63265
63576
|
Accept: "application/json"
|
|
@@ -63375,9 +63686,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
|
|
|
63375
63686
|
|
|
63376
63687
|
// src/funcs/promptsTopicsUpdate.ts
|
|
63377
63688
|
function promptsTopicsUpdate(client$, request, options) {
|
|
63378
|
-
return new APIPromise($
|
|
63689
|
+
return new APIPromise($do56(client$, request, options));
|
|
63379
63690
|
}
|
|
63380
|
-
async function $
|
|
63691
|
+
async function $do56(client$, request, options) {
|
|
63381
63692
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63382
63693
|
if (!parsed$.ok) {
|
|
63383
63694
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63453,12 +63764,12 @@ var init_promptsTopicsUpdate = __esm(() => {
|
|
|
63453
63764
|
});
|
|
63454
63765
|
|
|
63455
63766
|
// src/mcp-server/tools/promptsTopicsUpdate.ts
|
|
63456
|
-
var
|
|
63767
|
+
var args46, tool$promptsTopicsUpdate;
|
|
63457
63768
|
var init_promptsTopicsUpdate2 = __esm(() => {
|
|
63458
63769
|
init_promptsTopicsUpdate();
|
|
63459
63770
|
init_v2prompttopicsupdateop();
|
|
63460
63771
|
init_tools();
|
|
63461
|
-
|
|
63772
|
+
args46 = {
|
|
63462
63773
|
request: V2PromptTopicsUpdateRequest$zodSchema
|
|
63463
63774
|
};
|
|
63464
63775
|
tool$promptsTopicsUpdate = {
|
|
@@ -63473,7 +63784,7 @@ Renames a prompt topic and returns the updated topic.`,
|
|
|
63473
63784
|
openWorldHint: false,
|
|
63474
63785
|
readOnlyHint: false
|
|
63475
63786
|
},
|
|
63476
|
-
args:
|
|
63787
|
+
args: args46,
|
|
63477
63788
|
tool: async (client, args, ctx) => {
|
|
63478
63789
|
const [result] = await promptsTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63479
63790
|
if (!result.ok) {
|
|
@@ -63525,9 +63836,9 @@ var init_v2promptsupdateop = __esm(() => {
|
|
|
63525
63836
|
|
|
63526
63837
|
// src/funcs/promptsUpdate.ts
|
|
63527
63838
|
function promptsUpdate(client$, request, options) {
|
|
63528
|
-
return new APIPromise($
|
|
63839
|
+
return new APIPromise($do57(client$, request, options));
|
|
63529
63840
|
}
|
|
63530
|
-
async function $
|
|
63841
|
+
async function $do57(client$, request, options) {
|
|
63531
63842
|
const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63532
63843
|
if (!parsed$.ok) {
|
|
63533
63844
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63603,12 +63914,12 @@ var init_promptsUpdate = __esm(() => {
|
|
|
63603
63914
|
});
|
|
63604
63915
|
|
|
63605
63916
|
// src/mcp-server/tools/promptsUpdate.ts
|
|
63606
|
-
var
|
|
63917
|
+
var args47, tool$promptsUpdate;
|
|
63607
63918
|
var init_promptsUpdate2 = __esm(() => {
|
|
63608
63919
|
init_promptsUpdate();
|
|
63609
63920
|
init_v2promptsupdateop();
|
|
63610
63921
|
init_tools();
|
|
63611
|
-
|
|
63922
|
+
args47 = {
|
|
63612
63923
|
request: V2PromptsUpdateRequest$zodSchema
|
|
63613
63924
|
};
|
|
63614
63925
|
tool$promptsUpdate = {
|
|
@@ -63623,7 +63934,7 @@ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run
|
|
|
63623
63934
|
openWorldHint: false,
|
|
63624
63935
|
readOnlyHint: false
|
|
63625
63936
|
},
|
|
63626
|
-
args:
|
|
63937
|
+
args: args47,
|
|
63627
63938
|
tool: async (client, args, ctx) => {
|
|
63628
63939
|
const [result] = await promptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63629
63940
|
if (!result.ok) {
|
|
@@ -63666,9 +63977,9 @@ var init_createv2repositoryrequest = __esm(() => {
|
|
|
63666
63977
|
|
|
63667
63978
|
// src/funcs/repositoriesCreate.ts
|
|
63668
63979
|
function repositoriesCreate(client$, request, options) {
|
|
63669
|
-
return new APIPromise($
|
|
63980
|
+
return new APIPromise($do58(client$, request, options));
|
|
63670
63981
|
}
|
|
63671
|
-
async function $
|
|
63982
|
+
async function $do58(client$, request, options) {
|
|
63672
63983
|
const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63673
63984
|
if (!parsed$.ok) {
|
|
63674
63985
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63738,12 +64049,12 @@ var init_repositoriesCreate = __esm(() => {
|
|
|
63738
64049
|
});
|
|
63739
64050
|
|
|
63740
64051
|
// src/mcp-server/tools/repositoriesCreate.ts
|
|
63741
|
-
var
|
|
64052
|
+
var args48, tool$repositoriesCreate;
|
|
63742
64053
|
var init_repositoriesCreate2 = __esm(() => {
|
|
63743
64054
|
init_repositoriesCreate();
|
|
63744
64055
|
init_createv2repositoryrequest();
|
|
63745
64056
|
init_tools();
|
|
63746
|
-
|
|
64057
|
+
args48 = {
|
|
63747
64058
|
request: CreateV2RepositoryRequest$zodSchema
|
|
63748
64059
|
};
|
|
63749
64060
|
tool$repositoriesCreate = {
|
|
@@ -63758,7 +64069,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
|
|
|
63758
64069
|
openWorldHint: false,
|
|
63759
64070
|
readOnlyHint: false
|
|
63760
64071
|
},
|
|
63761
|
-
args:
|
|
64072
|
+
args: args48,
|
|
63762
64073
|
tool: async (client, args, ctx) => {
|
|
63763
64074
|
const [result] = await repositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63764
64075
|
if (!result.ok) {
|
|
@@ -63824,9 +64135,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
|
|
|
63824
64135
|
|
|
63825
64136
|
// src/funcs/repositoriesDelete.ts
|
|
63826
64137
|
function repositoriesDelete(client$, request, options) {
|
|
63827
|
-
return new APIPromise($
|
|
64138
|
+
return new APIPromise($do59(client$, request, options));
|
|
63828
64139
|
}
|
|
63829
|
-
async function $
|
|
64140
|
+
async function $do59(client$, request, options) {
|
|
63830
64141
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63831
64142
|
if (!parsed$.ok) {
|
|
63832
64143
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63901,12 +64212,12 @@ var init_repositoriesDelete = __esm(() => {
|
|
|
63901
64212
|
});
|
|
63902
64213
|
|
|
63903
64214
|
// src/mcp-server/tools/repositoriesDelete.ts
|
|
63904
|
-
var
|
|
64215
|
+
var args49, tool$repositoriesDelete;
|
|
63905
64216
|
var init_repositoriesDelete2 = __esm(() => {
|
|
63906
64217
|
init_repositoriesDelete();
|
|
63907
64218
|
init_v2repositoriesdeleteop();
|
|
63908
64219
|
init_tools();
|
|
63909
|
-
|
|
64220
|
+
args49 = {
|
|
63910
64221
|
request: V2RepositoriesDeleteRequest$zodSchema
|
|
63911
64222
|
};
|
|
63912
64223
|
tool$repositoriesDelete = {
|
|
@@ -63921,7 +64232,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
63921
64232
|
openWorldHint: false,
|
|
63922
64233
|
readOnlyHint: false
|
|
63923
64234
|
},
|
|
63924
|
-
args:
|
|
64235
|
+
args: args49,
|
|
63925
64236
|
tool: async (client, args, ctx) => {
|
|
63926
64237
|
const [result] = await repositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63927
64238
|
if (!result.ok) {
|
|
@@ -63937,9 +64248,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
63937
64248
|
|
|
63938
64249
|
// src/funcs/repositoriesList.ts
|
|
63939
64250
|
function repositoriesList(client$, options) {
|
|
63940
|
-
return new APIPromise($
|
|
64251
|
+
return new APIPromise($do60(client$, options));
|
|
63941
64252
|
}
|
|
63942
|
-
async function $
|
|
64253
|
+
async function $do60(client$, options) {
|
|
63943
64254
|
const path$ = pathToFunc("/v2/repositories")();
|
|
63944
64255
|
const headers$ = new Headers(compactMap({
|
|
63945
64256
|
Accept: "application/json"
|
|
@@ -64044,9 +64355,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
|
|
|
64044
64355
|
|
|
64045
64356
|
// src/funcs/repositoriesRetrieve.ts
|
|
64046
64357
|
function repositoriesRetrieve(client$, request, options) {
|
|
64047
|
-
return new APIPromise($
|
|
64358
|
+
return new APIPromise($do61(client$, request, options));
|
|
64048
64359
|
}
|
|
64049
|
-
async function $
|
|
64360
|
+
async function $do61(client$, request, options) {
|
|
64050
64361
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64051
64362
|
if (!parsed$.ok) {
|
|
64052
64363
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64121,12 +64432,12 @@ var init_repositoriesRetrieve = __esm(() => {
|
|
|
64121
64432
|
});
|
|
64122
64433
|
|
|
64123
64434
|
// src/mcp-server/tools/repositoriesRetrieve.ts
|
|
64124
|
-
var
|
|
64435
|
+
var args50, tool$repositoriesRetrieve;
|
|
64125
64436
|
var init_repositoriesRetrieve2 = __esm(() => {
|
|
64126
64437
|
init_repositoriesRetrieve();
|
|
64127
64438
|
init_v2repositoriesretrieveop();
|
|
64128
64439
|
init_tools();
|
|
64129
|
-
|
|
64440
|
+
args50 = {
|
|
64130
64441
|
request: V2RepositoriesRetrieveRequest$zodSchema
|
|
64131
64442
|
};
|
|
64132
64443
|
tool$repositoriesRetrieve = {
|
|
@@ -64141,7 +64452,7 @@ Returns one reusable repository workspace.`,
|
|
|
64141
64452
|
openWorldHint: false,
|
|
64142
64453
|
readOnlyHint: true
|
|
64143
64454
|
},
|
|
64144
|
-
args:
|
|
64455
|
+
args: args50,
|
|
64145
64456
|
tool: async (client, args, ctx) => {
|
|
64146
64457
|
const [result] = await repositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64147
64458
|
if (!result.ok) {
|
|
@@ -64201,9 +64512,9 @@ var init_v2repositoriesupdateop = __esm(() => {
|
|
|
64201
64512
|
|
|
64202
64513
|
// src/funcs/repositoriesUpdate.ts
|
|
64203
64514
|
function repositoriesUpdate(client$, request, options) {
|
|
64204
|
-
return new APIPromise($
|
|
64515
|
+
return new APIPromise($do62(client$, request, options));
|
|
64205
64516
|
}
|
|
64206
|
-
async function $
|
|
64517
|
+
async function $do62(client$, request, options) {
|
|
64207
64518
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64208
64519
|
if (!parsed$.ok) {
|
|
64209
64520
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64279,12 +64590,12 @@ var init_repositoriesUpdate = __esm(() => {
|
|
|
64279
64590
|
});
|
|
64280
64591
|
|
|
64281
64592
|
// src/mcp-server/tools/repositoriesUpdate.ts
|
|
64282
|
-
var
|
|
64593
|
+
var args51, tool$repositoriesUpdate;
|
|
64283
64594
|
var init_repositoriesUpdate2 = __esm(() => {
|
|
64284
64595
|
init_repositoriesUpdate();
|
|
64285
64596
|
init_v2repositoriesupdateop();
|
|
64286
64597
|
init_tools();
|
|
64287
|
-
|
|
64598
|
+
args51 = {
|
|
64288
64599
|
request: V2RepositoriesUpdateRequest$zodSchema
|
|
64289
64600
|
};
|
|
64290
64601
|
tool$repositoriesUpdate = {
|
|
@@ -64299,7 +64610,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
64299
64610
|
openWorldHint: false,
|
|
64300
64611
|
readOnlyHint: false
|
|
64301
64612
|
},
|
|
64302
|
-
args:
|
|
64613
|
+
args: args51,
|
|
64303
64614
|
tool: async (client, args, ctx) => {
|
|
64304
64615
|
const [result] = await repositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64305
64616
|
if (!result.ok) {
|
|
@@ -64315,9 +64626,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
64315
64626
|
|
|
64316
64627
|
// src/funcs/siteAuditsList.ts
|
|
64317
64628
|
function siteAuditsList(client$, options) {
|
|
64318
|
-
return new APIPromise($
|
|
64629
|
+
return new APIPromise($do63(client$, options));
|
|
64319
64630
|
}
|
|
64320
|
-
async function $
|
|
64631
|
+
async function $do63(client$, options) {
|
|
64321
64632
|
const path$ = pathToFunc("/v2/site-audits")();
|
|
64322
64633
|
const headers$ = new Headers(compactMap({
|
|
64323
64634
|
Accept: "application/json"
|
|
@@ -64458,9 +64769,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
|
|
|
64458
64769
|
|
|
64459
64770
|
// src/funcs/siteAuditsRetrieve.ts
|
|
64460
64771
|
function siteAuditsRetrieve(client$, request, options) {
|
|
64461
|
-
return new APIPromise($
|
|
64772
|
+
return new APIPromise($do64(client$, request, options));
|
|
64462
64773
|
}
|
|
64463
|
-
async function $
|
|
64774
|
+
async function $do64(client$, request, options) {
|
|
64464
64775
|
const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64465
64776
|
if (!parsed$.ok) {
|
|
64466
64777
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64535,12 +64846,12 @@ var init_siteAuditsRetrieve = __esm(() => {
|
|
|
64535
64846
|
});
|
|
64536
64847
|
|
|
64537
64848
|
// src/mcp-server/tools/siteAuditsRetrieve.ts
|
|
64538
|
-
var
|
|
64849
|
+
var args52, tool$siteAuditsRetrieve;
|
|
64539
64850
|
var init_siteAuditsRetrieve2 = __esm(() => {
|
|
64540
64851
|
init_siteAuditsRetrieve();
|
|
64541
64852
|
init_v2siteauditsretrieveop();
|
|
64542
64853
|
init_tools();
|
|
64543
|
-
|
|
64854
|
+
args52 = {
|
|
64544
64855
|
request: V2SiteAuditsRetrieveRequest$zodSchema
|
|
64545
64856
|
};
|
|
64546
64857
|
tool$siteAuditsRetrieve = {
|
|
@@ -64555,7 +64866,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
64555
64866
|
openWorldHint: false,
|
|
64556
64867
|
readOnlyHint: true
|
|
64557
64868
|
},
|
|
64558
|
-
args:
|
|
64869
|
+
args: args52,
|
|
64559
64870
|
tool: async (client, args, ctx) => {
|
|
64560
64871
|
const [result] = await siteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64561
64872
|
if (!result.ok) {
|
|
@@ -64571,9 +64882,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
64571
64882
|
|
|
64572
64883
|
// src/funcs/skillsList.ts
|
|
64573
64884
|
function skillsList(client$, options) {
|
|
64574
|
-
return new APIPromise($
|
|
64885
|
+
return new APIPromise($do65(client$, options));
|
|
64575
64886
|
}
|
|
64576
|
-
async function $
|
|
64887
|
+
async function $do65(client$, options) {
|
|
64577
64888
|
const path$ = pathToFunc("/v2/skills")();
|
|
64578
64889
|
const headers$ = new Headers(compactMap({
|
|
64579
64890
|
Accept: "application/json"
|
|
@@ -64663,9 +64974,9 @@ Returns reusable skills available to workflows and eval configurations.`,
|
|
|
64663
64974
|
|
|
64664
64975
|
// src/funcs/statusAuthStatusGet.ts
|
|
64665
64976
|
function statusAuthStatusGet(client$, options) {
|
|
64666
|
-
return new APIPromise($
|
|
64977
|
+
return new APIPromise($do66(client$, options));
|
|
64667
64978
|
}
|
|
64668
|
-
async function $
|
|
64979
|
+
async function $do66(client$, options) {
|
|
64669
64980
|
const path$ = pathToFunc("/v2/auth/status")();
|
|
64670
64981
|
const headers$ = new Headers(compactMap({
|
|
64671
64982
|
Accept: "application/json"
|
|
@@ -64755,9 +65066,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
|
|
|
64755
65066
|
|
|
64756
65067
|
// src/funcs/statusGet.ts
|
|
64757
65068
|
function statusGet(client$, options) {
|
|
64758
|
-
return new APIPromise($
|
|
65069
|
+
return new APIPromise($do67(client$, options));
|
|
64759
65070
|
}
|
|
64760
|
-
async function $
|
|
65071
|
+
async function $do67(client$, options) {
|
|
64761
65072
|
const path$ = pathToFunc("/v2/status")();
|
|
64762
65073
|
const headers$ = new Headers(compactMap({
|
|
64763
65074
|
Accept: "application/json"
|
|
@@ -64886,9 +65197,9 @@ var init_createtaskrequest = __esm(() => {
|
|
|
64886
65197
|
|
|
64887
65198
|
// src/funcs/tasksCreate.ts
|
|
64888
65199
|
function tasksCreate(client$, request, options) {
|
|
64889
|
-
return new APIPromise($
|
|
65200
|
+
return new APIPromise($do68(client$, request, options));
|
|
64890
65201
|
}
|
|
64891
|
-
async function $
|
|
65202
|
+
async function $do68(client$, request, options) {
|
|
64892
65203
|
const parsed$ = safeParse4(request, (value$) => CreateTaskRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64893
65204
|
if (!parsed$.ok) {
|
|
64894
65205
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64958,12 +65269,12 @@ var init_tasksCreate = __esm(() => {
|
|
|
64958
65269
|
});
|
|
64959
65270
|
|
|
64960
65271
|
// src/mcp-server/tools/tasksCreate.ts
|
|
64961
|
-
var
|
|
65272
|
+
var args53, tool$tasksCreate;
|
|
64962
65273
|
var init_tasksCreate2 = __esm(() => {
|
|
64963
65274
|
init_tasksCreate();
|
|
64964
65275
|
init_createtaskrequest();
|
|
64965
65276
|
init_tools();
|
|
64966
|
-
|
|
65277
|
+
args53 = {
|
|
64967
65278
|
request: CreateTaskRequest$zodSchema
|
|
64968
65279
|
};
|
|
64969
65280
|
tool$tasksCreate = {
|
|
@@ -64978,7 +65289,7 @@ Adds a task to today's queue and returns it with its execution prompt. New tasks
|
|
|
64978
65289
|
openWorldHint: false,
|
|
64979
65290
|
readOnlyHint: false
|
|
64980
65291
|
},
|
|
64981
|
-
args:
|
|
65292
|
+
args: args53,
|
|
64982
65293
|
tool: async (client, args, ctx) => {
|
|
64983
65294
|
const [result] = await tasksCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64984
65295
|
if (!result.ok) {
|
|
@@ -65138,9 +65449,9 @@ var init_v2taskslistop = __esm(() => {
|
|
|
65138
65449
|
|
|
65139
65450
|
// src/funcs/tasksList.ts
|
|
65140
65451
|
function tasksList(client$, request, options) {
|
|
65141
|
-
return new APIPromise($
|
|
65452
|
+
return new APIPromise($do69(client$, request, options));
|
|
65142
65453
|
}
|
|
65143
|
-
async function $
|
|
65454
|
+
async function $do69(client$, request, options) {
|
|
65144
65455
|
const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
65145
65456
|
if (!parsed$.ok) {
|
|
65146
65457
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65214,12 +65525,12 @@ var init_tasksList = __esm(() => {
|
|
|
65214
65525
|
});
|
|
65215
65526
|
|
|
65216
65527
|
// src/mcp-server/tools/tasksList.ts
|
|
65217
|
-
var
|
|
65528
|
+
var args54, tool$tasksList;
|
|
65218
65529
|
var init_tasksList2 = __esm(() => {
|
|
65219
65530
|
init_tasksList();
|
|
65220
65531
|
init_v2taskslistop();
|
|
65221
65532
|
init_tools();
|
|
65222
|
-
|
|
65533
|
+
args54 = {
|
|
65223
65534
|
request: V2TasksListRequest$zodSchema.optional()
|
|
65224
65535
|
};
|
|
65225
65536
|
tool$tasksList = {
|
|
@@ -65234,7 +65545,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
|
|
|
65234
65545
|
openWorldHint: false,
|
|
65235
65546
|
readOnlyHint: true
|
|
65236
65547
|
},
|
|
65237
|
-
args:
|
|
65548
|
+
args: args54,
|
|
65238
65549
|
tool: async (client, args, ctx) => {
|
|
65239
65550
|
const [result] = await tasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65240
65551
|
if (!result.ok) {
|
|
@@ -65265,9 +65576,9 @@ var init_v2tasksretrieveop = __esm(() => {
|
|
|
65265
65576
|
|
|
65266
65577
|
// src/funcs/tasksRetrieve.ts
|
|
65267
65578
|
function tasksRetrieve(client$, request, options) {
|
|
65268
|
-
return new APIPromise($
|
|
65579
|
+
return new APIPromise($do70(client$, request, options));
|
|
65269
65580
|
}
|
|
65270
|
-
async function $
|
|
65581
|
+
async function $do70(client$, request, options) {
|
|
65271
65582
|
const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65272
65583
|
if (!parsed$.ok) {
|
|
65273
65584
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65342,12 +65653,12 @@ var init_tasksRetrieve = __esm(() => {
|
|
|
65342
65653
|
});
|
|
65343
65654
|
|
|
65344
65655
|
// src/mcp-server/tools/tasksRetrieve.ts
|
|
65345
|
-
var
|
|
65656
|
+
var args55, tool$tasksRetrieve;
|
|
65346
65657
|
var init_tasksRetrieve2 = __esm(() => {
|
|
65347
65658
|
init_tasksRetrieve();
|
|
65348
65659
|
init_v2tasksretrieveop();
|
|
65349
65660
|
init_tools();
|
|
65350
|
-
|
|
65661
|
+
args55 = {
|
|
65351
65662
|
request: V2TasksRetrieveRequest$zodSchema
|
|
65352
65663
|
};
|
|
65353
65664
|
tool$tasksRetrieve = {
|
|
@@ -65362,7 +65673,7 @@ Returns one persisted task and its execution prompt.`,
|
|
|
65362
65673
|
openWorldHint: false,
|
|
65363
65674
|
readOnlyHint: true
|
|
65364
65675
|
},
|
|
65365
|
-
args:
|
|
65676
|
+
args: args55,
|
|
65366
65677
|
tool: async (client, args, ctx) => {
|
|
65367
65678
|
const [result] = await tasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65368
65679
|
if (!result.ok) {
|
|
@@ -65425,9 +65736,9 @@ var init_v2tasksupdateop = __esm(() => {
|
|
|
65425
65736
|
|
|
65426
65737
|
// src/funcs/tasksUpdate.ts
|
|
65427
65738
|
function tasksUpdate(client$, request, options) {
|
|
65428
|
-
return new APIPromise($
|
|
65739
|
+
return new APIPromise($do71(client$, request, options));
|
|
65429
65740
|
}
|
|
65430
|
-
async function $
|
|
65741
|
+
async function $do71(client$, request, options) {
|
|
65431
65742
|
const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65432
65743
|
if (!parsed$.ok) {
|
|
65433
65744
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65503,12 +65814,12 @@ var init_tasksUpdate = __esm(() => {
|
|
|
65503
65814
|
});
|
|
65504
65815
|
|
|
65505
65816
|
// src/mcp-server/tools/tasksUpdate.ts
|
|
65506
|
-
var
|
|
65817
|
+
var args56, tool$tasksUpdate;
|
|
65507
65818
|
var init_tasksUpdate2 = __esm(() => {
|
|
65508
65819
|
init_tasksUpdate();
|
|
65509
65820
|
init_v2tasksupdateop();
|
|
65510
65821
|
init_tools();
|
|
65511
|
-
|
|
65822
|
+
args56 = {
|
|
65512
65823
|
request: V2TasksUpdateRequest$zodSchema
|
|
65513
65824
|
};
|
|
65514
65825
|
tool$tasksUpdate = {
|
|
@@ -65523,7 +65834,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
|
|
|
65523
65834
|
openWorldHint: false,
|
|
65524
65835
|
readOnlyHint: false
|
|
65525
65836
|
},
|
|
65526
|
-
args:
|
|
65837
|
+
args: args56,
|
|
65527
65838
|
tool: async (client, args, ctx) => {
|
|
65528
65839
|
const [result] = await tasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65529
65840
|
if (!result.ok) {
|
|
@@ -65715,9 +66026,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
|
|
|
65715
66026
|
|
|
65716
66027
|
// src/funcs/visibilityCitationsList.ts
|
|
65717
66028
|
function visibilityCitationsList(client$, request, options) {
|
|
65718
|
-
return new APIPromise($
|
|
66029
|
+
return new APIPromise($do72(client$, request, options));
|
|
65719
66030
|
}
|
|
65720
|
-
async function $
|
|
66031
|
+
async function $do72(client$, request, options) {
|
|
65721
66032
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
65722
66033
|
if (!parsed$.ok) {
|
|
65723
66034
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65795,12 +66106,12 @@ var init_visibilityCitationsList = __esm(() => {
|
|
|
65795
66106
|
});
|
|
65796
66107
|
|
|
65797
66108
|
// src/mcp-server/tools/visibilityCitationsList.ts
|
|
65798
|
-
var
|
|
66109
|
+
var args57, tool$visibilityCitationsList;
|
|
65799
66110
|
var init_visibilityCitationsList2 = __esm(() => {
|
|
65800
66111
|
init_visibilityCitationsList();
|
|
65801
66112
|
init_v2visibilitycitationslistop();
|
|
65802
66113
|
init_tools();
|
|
65803
|
-
|
|
66114
|
+
args57 = {
|
|
65804
66115
|
request: V2VisibilityCitationsListRequest$zodSchema.optional()
|
|
65805
66116
|
};
|
|
65806
66117
|
tool$visibilityCitationsList = {
|
|
@@ -65815,7 +66126,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
65815
66126
|
openWorldHint: false,
|
|
65816
66127
|
readOnlyHint: true
|
|
65817
66128
|
},
|
|
65818
|
-
args:
|
|
66129
|
+
args: args57,
|
|
65819
66130
|
tool: async (client, args, ctx) => {
|
|
65820
66131
|
const [result] = await visibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65821
66132
|
if (!result.ok) {
|
|
@@ -65940,9 +66251,9 @@ var init_v2visibilitycitationssummaryretrieveop = __esm(() => {
|
|
|
65940
66251
|
|
|
65941
66252
|
// src/funcs/visibilityCitationsSummaryRetrieve.ts
|
|
65942
66253
|
function visibilityCitationsSummaryRetrieve(client$, request, options) {
|
|
65943
|
-
return new APIPromise($
|
|
66254
|
+
return new APIPromise($do73(client$, request, options));
|
|
65944
66255
|
}
|
|
65945
|
-
async function $
|
|
66256
|
+
async function $do73(client$, request, options) {
|
|
65946
66257
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
65947
66258
|
if (!parsed$.ok) {
|
|
65948
66259
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66022,12 +66333,12 @@ var init_visibilityCitationsSummaryRetrieve = __esm(() => {
|
|
|
66022
66333
|
});
|
|
66023
66334
|
|
|
66024
66335
|
// src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts
|
|
66025
|
-
var
|
|
66336
|
+
var args58, tool$visibilityCitationsSummaryRetrieve;
|
|
66026
66337
|
var init_visibilityCitationsSummaryRetrieve2 = __esm(() => {
|
|
66027
66338
|
init_visibilityCitationsSummaryRetrieve();
|
|
66028
66339
|
init_v2visibilitycitationssummaryretrieveop();
|
|
66029
66340
|
init_tools();
|
|
66030
|
-
|
|
66341
|
+
args58 = {
|
|
66031
66342
|
request: V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional()
|
|
66032
66343
|
};
|
|
66033
66344
|
tool$visibilityCitationsSummaryRetrieve = {
|
|
@@ -66042,7 +66353,7 @@ Returns citation totals grouped by URL prefix (domain and first path segment, su
|
|
|
66042
66353
|
openWorldHint: false,
|
|
66043
66354
|
readOnlyHint: true
|
|
66044
66355
|
},
|
|
66045
|
-
args:
|
|
66356
|
+
args: args58,
|
|
66046
66357
|
tool: async (client, args, ctx) => {
|
|
66047
66358
|
const [result] = await visibilityCitationsSummaryRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66048
66359
|
if (!result.ok) {
|
|
@@ -66131,9 +66442,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
66131
66442
|
|
|
66132
66443
|
// src/funcs/visibilityCurrentRetrieve.ts
|
|
66133
66444
|
function visibilityCurrentRetrieve(client$, request, options) {
|
|
66134
|
-
return new APIPromise($
|
|
66445
|
+
return new APIPromise($do74(client$, request, options));
|
|
66135
66446
|
}
|
|
66136
|
-
async function $
|
|
66447
|
+
async function $do74(client$, request, options) {
|
|
66137
66448
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
66138
66449
|
if (!parsed$.ok) {
|
|
66139
66450
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66208,12 +66519,12 @@ var init_visibilityCurrentRetrieve = __esm(() => {
|
|
|
66208
66519
|
});
|
|
66209
66520
|
|
|
66210
66521
|
// src/mcp-server/tools/visibilityCurrentRetrieve.ts
|
|
66211
|
-
var
|
|
66522
|
+
var args59, tool$visibilityCurrentRetrieve;
|
|
66212
66523
|
var init_visibilityCurrentRetrieve2 = __esm(() => {
|
|
66213
66524
|
init_visibilityCurrentRetrieve();
|
|
66214
66525
|
init_v2visibilitycurrentretrieveop();
|
|
66215
66526
|
init_tools();
|
|
66216
|
-
|
|
66527
|
+
args59 = {
|
|
66217
66528
|
request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
|
|
66218
66529
|
};
|
|
66219
66530
|
tool$visibilityCurrentRetrieve = {
|
|
@@ -66228,7 +66539,7 @@ Returns recommendation score, visibility score, ranks, and date-range metadata f
|
|
|
66228
66539
|
openWorldHint: false,
|
|
66229
66540
|
readOnlyHint: true
|
|
66230
66541
|
},
|
|
66231
|
-
args:
|
|
66542
|
+
args: args59,
|
|
66232
66543
|
tool: async (client, args, ctx) => {
|
|
66233
66544
|
const [result] = await visibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66234
66545
|
if (!result.ok) {
|
|
@@ -66384,9 +66695,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
66384
66695
|
|
|
66385
66696
|
// src/funcs/visibilityOverviewRetrieve.ts
|
|
66386
66697
|
function visibilityOverviewRetrieve(client$, request, options) {
|
|
66387
|
-
return new APIPromise($
|
|
66698
|
+
return new APIPromise($do75(client$, request, options));
|
|
66388
66699
|
}
|
|
66389
|
-
async function $
|
|
66700
|
+
async function $do75(client$, request, options) {
|
|
66390
66701
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
66391
66702
|
if (!parsed$.ok) {
|
|
66392
66703
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66461,12 +66772,12 @@ var init_visibilityOverviewRetrieve = __esm(() => {
|
|
|
66461
66772
|
});
|
|
66462
66773
|
|
|
66463
66774
|
// src/mcp-server/tools/visibilityOverviewRetrieve.ts
|
|
66464
|
-
var
|
|
66775
|
+
var args60, tool$visibilityOverviewRetrieve;
|
|
66465
66776
|
var init_visibilityOverviewRetrieve2 = __esm(() => {
|
|
66466
66777
|
init_visibilityOverviewRetrieve();
|
|
66467
66778
|
init_v2visibilityoverviewretrieveop();
|
|
66468
66779
|
init_tools();
|
|
66469
|
-
|
|
66780
|
+
args60 = {
|
|
66470
66781
|
request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
|
|
66471
66782
|
};
|
|
66472
66783
|
tool$visibilityOverviewRetrieve = {
|
|
@@ -66481,7 +66792,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
|
|
|
66481
66792
|
openWorldHint: false,
|
|
66482
66793
|
readOnlyHint: true
|
|
66483
66794
|
},
|
|
66484
|
-
args:
|
|
66795
|
+
args: args60,
|
|
66485
66796
|
tool: async (client, args, ctx) => {
|
|
66486
66797
|
const [result] = await visibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66487
66798
|
if (!result.ok) {
|
|
@@ -66603,9 +66914,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
66603
66914
|
|
|
66604
66915
|
// src/funcs/visibilityPromptsRetrieve.ts
|
|
66605
66916
|
function visibilityPromptsRetrieve(client$, request, options) {
|
|
66606
|
-
return new APIPromise($
|
|
66917
|
+
return new APIPromise($do76(client$, request, options));
|
|
66607
66918
|
}
|
|
66608
|
-
async function $
|
|
66919
|
+
async function $do76(client$, request, options) {
|
|
66609
66920
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
66610
66921
|
if (!parsed$.ok) {
|
|
66611
66922
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66680,12 +66991,12 @@ var init_visibilityPromptsRetrieve = __esm(() => {
|
|
|
66680
66991
|
});
|
|
66681
66992
|
|
|
66682
66993
|
// src/mcp-server/tools/visibilityPromptsRetrieve.ts
|
|
66683
|
-
var
|
|
66994
|
+
var args61, tool$visibilityPromptsRetrieve;
|
|
66684
66995
|
var init_visibilityPromptsRetrieve2 = __esm(() => {
|
|
66685
66996
|
init_visibilityPromptsRetrieve();
|
|
66686
66997
|
init_v2visibilitypromptsretrieveop();
|
|
66687
66998
|
init_tools();
|
|
66688
|
-
|
|
66999
|
+
args61 = {
|
|
66689
67000
|
request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
|
|
66690
67001
|
};
|
|
66691
67002
|
tool$visibilityPromptsRetrieve = {
|
|
@@ -66700,7 +67011,7 @@ Returns per-topic and per-prompt visibility metrics including recommendation sco
|
|
|
66700
67011
|
openWorldHint: false,
|
|
66701
67012
|
readOnlyHint: true
|
|
66702
67013
|
},
|
|
66703
|
-
args:
|
|
67014
|
+
args: args61,
|
|
66704
67015
|
tool: async (client, args, ctx) => {
|
|
66705
67016
|
const [result] = await visibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66706
67017
|
if (!result.ok) {
|
|
@@ -66724,7 +67035,7 @@ function createMCPServer(deps) {
|
|
|
66724
67035
|
sizes: ["any"]
|
|
66725
67036
|
}],
|
|
66726
67037
|
name: "LightsageMcp",
|
|
66727
|
-
version: "0.4.
|
|
67038
|
+
version: "0.4.19"
|
|
66728
67039
|
});
|
|
66729
67040
|
const getClient = deps.getSDK || (() => new LightsageMcpCore({
|
|
66730
67041
|
security: deps.security,
|
|
@@ -66756,6 +67067,8 @@ function createMCPServer(deps) {
|
|
|
66756
67067
|
tool(tool$promptsTopicsCreate);
|
|
66757
67068
|
tool(tool$promptsTopicsUpdate);
|
|
66758
67069
|
tool(tool$promptsTopicsDelete);
|
|
67070
|
+
tool(tool$promptsTargetsList);
|
|
67071
|
+
tool(tool$promptsTargetsSet);
|
|
66759
67072
|
tool(tool$promptsRunsList);
|
|
66760
67073
|
tool(tool$promptsRunsRetrieve);
|
|
66761
67074
|
tool(tool$promptsRetrieve);
|
|
@@ -66877,6 +67190,8 @@ var init_server3 = __esm(() => {
|
|
|
66877
67190
|
init_promptsRunsList2();
|
|
66878
67191
|
init_promptsRunsRetrieve2();
|
|
66879
67192
|
init_promptsRunStatus2();
|
|
67193
|
+
init_promptsTargetsList2();
|
|
67194
|
+
init_promptsTargetsSet2();
|
|
66880
67195
|
init_promptsTopicsCreate2();
|
|
66881
67196
|
init_promptsTopicsDelete2();
|
|
66882
67197
|
init_promptsTopicsList2();
|
|
@@ -66975,6 +67290,14 @@ Renames a prompt topic and returns the updated topic.`
|
|
|
66975
67290
|
name: "prompts-topics-delete",
|
|
66976
67291
|
description: "Delete Topic\n\nArchives a prompt topic. Set `archive_prompts` to archive remaining prompts; otherwise the request fails with `400` if prompts remain."
|
|
66977
67292
|
},
|
|
67293
|
+
{
|
|
67294
|
+
name: "prompts-targets-list",
|
|
67295
|
+
description: "List Targets\n\nReturns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic and frequency. Provide `topic_id` to list one topic's targets."
|
|
67296
|
+
},
|
|
67297
|
+
{
|
|
67298
|
+
name: "prompts-targets-set",
|
|
67299
|
+
description: "Set Targets\n\nSets which answer engines and coding agents run a topic's prompts on schedule, the same way the prompt editor does. The list replaces the topic's targets: targets you leave out stop running. Every prompt in the topic is set to exactly these platforms; you can still narrow one prompt afterwards with `platform_ids`. Name coding agents with IDs from `GET /v2/agents`, and list a harness more than once to run it on several models. To pick agents for a single run without changing the schedule, pass `agent` to `POST /v2/prompts/runs` instead."
|
|
67300
|
+
},
|
|
66978
67301
|
{
|
|
66979
67302
|
name: "prompts-runs-list",
|
|
66980
67303
|
description: `List Prompt Runs
|
|
@@ -67012,7 +67335,8 @@ Archives the prompt and excludes it from normal listings while preserving its hi
|
|
|
67012
67335
|
Queue saved prompts on answer engines and coding agents.
|
|
67013
67336
|
|
|
67014
67337
|
Provide \`prompt_ids\` to run selected prompts, or omit them to run all active
|
|
67015
|
-
prompts. By default the run uses the organization's configured targets
|
|
67338
|
+
prompts. By default the run uses the organization's configured targets,
|
|
67339
|
+
listed by \`GET /v2/prompts/targets\`.
|
|
67016
67340
|
Provide \`agent\` with IDs from \`GET /v2/agents\` to run the prompts on
|
|
67017
67341
|
specific coding-agent harnesses and models instead, for example to compare
|
|
67018
67342
|
how several coding tools answer the same developer question. Results
|
|
@@ -67246,7 +67570,7 @@ Returns recorded attempts for an Agent Preference eval, newest first, each with
|
|
|
67246
67570
|
},
|
|
67247
67571
|
{
|
|
67248
67572
|
name: "agents-list",
|
|
67249
|
-
description: "List Agents\n\nReturns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as `agent` to `POST /v2/prompts/runs` to see how coding agents answer your prompts, with mentions and citations; to `POST /v2/agent-preference/evals` to see whether agents recommend your company over one competitor; or to `POST /v2/evals` and `POST /v2/eval-runs` to measure how well agents complete tasks with your product."
|
|
67573
|
+
description: "List Agents\n\nReturns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as `agent` to `POST /v2/prompts/runs` to see how coding agents answer your prompts, with mentions and citations, or to `PUT /v2/prompts/targets` to run them on a schedule; to `POST /v2/agent-preference/evals` to see whether agents recommend your company over one competitor; or to `POST /v2/evals` and `POST /v2/eval-runs` to measure how well agents complete tasks with your product."
|
|
67250
67574
|
},
|
|
67251
67575
|
{
|
|
67252
67576
|
name: "repositories-list",
|
|
@@ -68206,7 +68530,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
68206
68530
|
<h1>Instructions</h1>
|
|
68207
68531
|
<p>One-click installation for Claude Desktop users</p>
|
|
68208
68532
|
<div class="instruction-item">
|
|
68209
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.
|
|
68533
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.19/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
68210
68534
|
\uD83D\uDCE5 Download MCP Bundle
|
|
68211
68535
|
</a>
|
|
68212
68536
|
</div>
|
|
@@ -71106,7 +71430,7 @@ var routes = buildRouteMap({
|
|
|
71106
71430
|
var app = buildApplication(routes, {
|
|
71107
71431
|
name: "mcp",
|
|
71108
71432
|
versionInfo: {
|
|
71109
|
-
currentVersion: "0.4.
|
|
71433
|
+
currentVersion: "0.4.19"
|
|
71110
71434
|
}
|
|
71111
71435
|
});
|
|
71112
71436
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -71114,5 +71438,5 @@ export {
|
|
|
71114
71438
|
app
|
|
71115
71439
|
};
|
|
71116
71440
|
|
|
71117
|
-
//# debugId=
|
|
71441
|
+
//# debugId=DC66C97A4F0231D164756E2164756E21
|
|
71118
71442
|
//# sourceMappingURL=mcp-server.js.map
|