@lightsage/mcp 0.4.18 → 0.4.20
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 +478 -129
- package/bin/mcp-server.js.map +30 -21
- package/esm/funcs/agentsList.d.ts +1 -1
- package/esm/funcs/agentsList.js +1 -1
- package/esm/funcs/promptsList.d.ts +1 -1
- package/esm/funcs/promptsList.js +3 -1
- package/esm/funcs/promptsList.js.map +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/promptsList.js +1 -1
- package/esm/mcp-server/tools/promptsList.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/v2listpromptsresponse.d.ts +2 -0
- package/esm/models/v2listpromptsresponse.d.ts.map +1 -1
- package/esm/models/v2listpromptsresponse.js +3 -1
- package/esm/models/v2listpromptsresponse.js.map +1 -1
- package/esm/models/v2promptslistop.d.ts +2 -0
- package/esm/models/v2promptslistop.d.ts.map +1 -1
- package/esm/models/v2promptslistop.js +3 -0
- package/esm/models/v2promptslistop.js.map +1 -1
- 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 +11 -3
- 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/promptsList.ts +3 -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/promptsList.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/v2listpromptsresponse.ts +9 -1
- package/src/models/v2promptslistop.ts +5 -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 +11 -3
- package/test/tracker.test.js +83 -1
package/bin/mcp-server.js
CHANGED
|
@@ -26303,6 +26303,15 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
26303
26303
|
}
|
|
26304
26304
|
return max;
|
|
26305
26305
|
};
|
|
26306
|
+
var countElements = function countElements(arr) {
|
|
26307
|
+
var count = 0;
|
|
26308
|
+
for (var i = 0;i < arr.length; ++i) {
|
|
26309
|
+
if (has.call(arr, i)) {
|
|
26310
|
+
count += 1;
|
|
26311
|
+
}
|
|
26312
|
+
}
|
|
26313
|
+
return count;
|
|
26314
|
+
};
|
|
26306
26315
|
var limitedPair = function limitedPair(first, second, options) {
|
|
26307
26316
|
var pair = [first, second];
|
|
26308
26317
|
if (options && typeof options.arrayLimit === "number" && pair.length > options.arrayLimit) {
|
|
@@ -26320,7 +26329,7 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
26320
26329
|
if (typeof source !== "object" && typeof source !== "function") {
|
|
26321
26330
|
if (isArray(target)) {
|
|
26322
26331
|
var nextIndex = target.length;
|
|
26323
|
-
if (options && typeof options.arrayLimit === "number" &&
|
|
26332
|
+
if (options && typeof options.arrayLimit === "number" && countElements(target) >= options.arrayLimit) {
|
|
26324
26333
|
if (options.throwOnLimitExceeded) {
|
|
26325
26334
|
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
26326
26335
|
}
|
|
@@ -26389,7 +26398,7 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
26389
26398
|
target[i] = item;
|
|
26390
26399
|
}
|
|
26391
26400
|
});
|
|
26392
|
-
if (options && typeof options.arrayLimit === "number" && target
|
|
26401
|
+
if (options && typeof options.arrayLimit === "number" && countElements(target) > options.arrayLimit) {
|
|
26393
26402
|
if (options.throwOnLimitExceeded) {
|
|
26394
26403
|
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
26395
26404
|
}
|
|
@@ -26883,6 +26892,7 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
26883
26892
|
var has = Object.prototype.hasOwnProperty;
|
|
26884
26893
|
var isArray = Array.isArray;
|
|
26885
26894
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
26895
|
+
var fromCharCode = String.fromCharCode;
|
|
26886
26896
|
var isPlainContainer = function isPlainContainer(value) {
|
|
26887
26897
|
if (!value || typeof value !== "object") {
|
|
26888
26898
|
return false;
|
|
@@ -26951,7 +26961,12 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
26951
26961
|
};
|
|
26952
26962
|
var interpretNumericEntities = function(str) {
|
|
26953
26963
|
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
26954
|
-
|
|
26964
|
+
var c = parseInt(numberStr, 10);
|
|
26965
|
+
if (c > 65535 && c <= 1114111) {
|
|
26966
|
+
c -= 65536;
|
|
26967
|
+
return fromCharCode(55296 | c >> 10, 56320 | c & 1023);
|
|
26968
|
+
}
|
|
26969
|
+
return fromCharCode(c);
|
|
26955
26970
|
});
|
|
26956
26971
|
};
|
|
26957
26972
|
var parseArrayValue = function(val, options, currentArrayLength) {
|
|
@@ -27044,6 +27059,9 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
27044
27059
|
}
|
|
27045
27060
|
return obj;
|
|
27046
27061
|
};
|
|
27062
|
+
var stripWrappingBrackets = function stripWrappingBrackets(key) {
|
|
27063
|
+
return key.charAt(0) === "[" && key.charAt(key.length - 1) === "]" ? key.slice(1, -1) : key;
|
|
27064
|
+
};
|
|
27047
27065
|
var parseObject = function(chain, val, options, valuesParsed) {
|
|
27048
27066
|
var currentArrayLength = 0;
|
|
27049
27067
|
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
@@ -27062,12 +27080,12 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
27062
27080
|
}
|
|
27063
27081
|
} else {
|
|
27064
27082
|
obj = options.plainObjects ? { __proto__: null } : {};
|
|
27065
|
-
var cleanRoot =
|
|
27083
|
+
var cleanRoot = stripWrappingBrackets(root);
|
|
27066
27084
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/gi, ".") : cleanRoot;
|
|
27067
27085
|
var index = parseInt(decodedRoot, 10);
|
|
27068
27086
|
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
27069
27087
|
if (!options.parseArrays && decodedRoot === "") {
|
|
27070
|
-
obj =
|
|
27088
|
+
obj[0] = leaf;
|
|
27071
27089
|
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
27072
27090
|
obj = [];
|
|
27073
27091
|
obj[index] = leaf;
|
|
@@ -27114,7 +27132,7 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
27114
27132
|
var splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) {
|
|
27115
27133
|
var key = options.allowDots ? topLevelDotsToBrackets(originalKey) : originalKey;
|
|
27116
27134
|
if (options.depth <= 0) {
|
|
27117
|
-
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
27135
|
+
if (!options.plainObjects && has.call(Object.prototype, stripWrappingBrackets(key))) {
|
|
27118
27136
|
if (!options.allowPrototypes) {
|
|
27119
27137
|
return;
|
|
27120
27138
|
}
|
|
@@ -27401,10 +27419,11 @@ var require_encodeurl = __commonJS(function(exports, module) {
|
|
|
27401
27419
|
*/
|
|
27402
27420
|
module.exports = encodeUrl;
|
|
27403
27421
|
var ENCODE_CHARS_REGEXP = /(?:[^\x21\x23-\x3B\x3D\x3F-\x5F\x61-\x7A\x7C\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g;
|
|
27404
|
-
var
|
|
27405
|
-
var UNMATCHED_SURROGATE_PAIR_REPLACE = "$1�$2";
|
|
27422
|
+
var SURROGATE_REGEXP = /([\uD800-\uDBFF][\uDC00-\uDFFF])|[\uD800-\uDFFF]/g;
|
|
27406
27423
|
function encodeUrl(url) {
|
|
27407
|
-
return String(url).replace(
|
|
27424
|
+
return String(url).replace(SURROGATE_REGEXP, function(_, pair) {
|
|
27425
|
+
return pair || "�";
|
|
27426
|
+
}).replace(ENCODE_CHARS_REGEXP, encodeURI);
|
|
27408
27427
|
}
|
|
27409
27428
|
});
|
|
27410
27429
|
|
|
@@ -53728,9 +53747,9 @@ var init_config = __esm(() => {
|
|
|
53728
53747
|
SDK_METADATA = {
|
|
53729
53748
|
language: "typescript",
|
|
53730
53749
|
openapiDocVersion: "1.0.0",
|
|
53731
|
-
sdkVersion: "0.4.
|
|
53750
|
+
sdkVersion: "0.4.20",
|
|
53732
53751
|
genVersion: "2.948.4",
|
|
53733
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
53752
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.20 2.948.4 1.0.0 @lightsage/mcp"
|
|
53734
53753
|
};
|
|
53735
53754
|
});
|
|
53736
53755
|
|
|
@@ -57469,7 +57488,7 @@ var init_agentsList2 = __esm(() => {
|
|
|
57469
57488
|
name: "agents-list",
|
|
57470
57489
|
description: `List Agents
|
|
57471
57490
|
|
|
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.`,
|
|
57491
|
+
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
57492
|
annotations: {
|
|
57474
57493
|
title: "",
|
|
57475
57494
|
destructiveHint: false,
|
|
@@ -60215,17 +60234,17 @@ var init_evaltemplateruntime = __esm(() => {
|
|
|
60215
60234
|
});
|
|
60216
60235
|
|
|
60217
60236
|
// src/models/evaltemplateschedule.ts
|
|
60218
|
-
var
|
|
60237
|
+
var EvalTemplateScheduleFrequency$zodSchema, EvalTemplateSchedule$zodSchema;
|
|
60219
60238
|
var init_evaltemplateschedule = __esm(() => {
|
|
60220
60239
|
init_zod();
|
|
60221
|
-
|
|
60240
|
+
EvalTemplateScheduleFrequency$zodSchema = _enum([
|
|
60222
60241
|
"daily",
|
|
60223
60242
|
"every_other_day",
|
|
60224
60243
|
"weekly"
|
|
60225
60244
|
]).describe("Schedule cadence used when `enabled` is true.");
|
|
60226
60245
|
EvalTemplateSchedule$zodSchema = object({
|
|
60227
60246
|
enabled: boolean2().default(false).describe("Whether each eval created from the template receives a schedule."),
|
|
60228
|
-
frequency:
|
|
60247
|
+
frequency: EvalTemplateScheduleFrequency$zodSchema.default("weekly").describe("Schedule cadence used when `enabled` is true.")
|
|
60229
60248
|
}).describe("Schedule copied into every eval created from the template.");
|
|
60230
60249
|
});
|
|
60231
60250
|
|
|
@@ -61862,8 +61881,10 @@ var init_v2listpromptsresponse = __esm(() => {
|
|
|
61862
61881
|
init_zod();
|
|
61863
61882
|
init_v2promptresponse();
|
|
61864
61883
|
V2ListPromptsResponse$zodSchema = object({
|
|
61865
|
-
count: int(),
|
|
61866
|
-
data: array(V2PromptResponse$zodSchema)
|
|
61884
|
+
count: int().describe("Total prompts that match the filters, across every page."),
|
|
61885
|
+
data: array(V2PromptResponse$zodSchema),
|
|
61886
|
+
limit: int().nullable().optional().describe("Page size, or null when every prompt was returned."),
|
|
61887
|
+
offset: int().default(0)
|
|
61867
61888
|
});
|
|
61868
61889
|
});
|
|
61869
61890
|
|
|
@@ -61880,6 +61901,8 @@ var init_v2promptslistop = __esm(() => {
|
|
|
61880
61901
|
]);
|
|
61881
61902
|
V2PromptsListRequest$zodSchema = object({
|
|
61882
61903
|
include_archived: boolean2().default(false),
|
|
61904
|
+
limit: int().describe("Prompts per page. Omit to return every prompt.").optional(),
|
|
61905
|
+
offset: int().default(0).describe("Prompts to skip. Used with `limit`."),
|
|
61883
61906
|
status: V2PromptsListStatus$zodSchema.optional(),
|
|
61884
61907
|
topic_id: string2().describe("Optional prompt topic ID.").optional()
|
|
61885
61908
|
});
|
|
@@ -61903,6 +61926,8 @@ async function $do44(client$, request, options) {
|
|
|
61903
61926
|
const path$ = pathToFunc("/v2/prompts")();
|
|
61904
61927
|
const query$ = encodeFormQuery({
|
|
61905
61928
|
include_archived: payload$?.include_archived,
|
|
61929
|
+
limit: payload$?.limit,
|
|
61930
|
+
offset: payload$?.offset,
|
|
61906
61931
|
status: payload$?.status,
|
|
61907
61932
|
topic_id: payload$?.topic_id
|
|
61908
61933
|
});
|
|
@@ -61980,7 +62005,7 @@ var init_promptsList2 = __esm(() => {
|
|
|
61980
62005
|
name: "prompts-list",
|
|
61981
62006
|
description: `List Prompts
|
|
61982
62007
|
|
|
61983
|
-
Returns active and inactive prompts by default. Set \`include_archived\` to include archived prompts
|
|
62008
|
+
Returns active and inactive prompts by default, newest first. Set \`include_archived\` to include archived prompts. Without \`limit\`, every matching prompt is returned in one response. Set \`limit\` to page through them: \`count\` is the total across every page, so request the next page with \`offset\` until \`offset + limit\` reaches \`count\`.`,
|
|
61984
62009
|
annotations: {
|
|
61985
62010
|
title: "",
|
|
61986
62011
|
destructiveHint: false,
|
|
@@ -62135,7 +62160,7 @@ var CreateV2PromptRunRequest$zodSchema;
|
|
|
62135
62160
|
var init_createv2promptrunrequest = __esm(() => {
|
|
62136
62161
|
init_zod();
|
|
62137
62162
|
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
|
|
62163
|
+
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
62164
|
force: boolean2().default(false).describe("Run even when a prompt already ran today on the same platform and model."),
|
|
62140
62165
|
prompt_ids: array(string2()).nullable().optional().describe("Prompt IDs from `GET /v2/prompts`. Omit this field to run all active prompts.")
|
|
62141
62166
|
});
|
|
@@ -62230,7 +62255,8 @@ var init_promptsRun2 = __esm(() => {
|
|
|
62230
62255
|
Queue saved prompts on answer engines and coding agents.
|
|
62231
62256
|
|
|
62232
62257
|
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
|
|
62258
|
+
prompts. By default the run uses the organization's configured targets,
|
|
62259
|
+
listed by \`GET /v2/prompts/targets\`.
|
|
62234
62260
|
Provide \`agent\` with IDs from \`GET /v2/agents\` to run the prompts on
|
|
62235
62261
|
specific coding-agent harnesses and models instead, for example to compare
|
|
62236
62262
|
how several coding tools answer the same developer question. Results
|
|
@@ -63005,6 +63031,316 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
|
|
|
63005
63031
|
};
|
|
63006
63032
|
});
|
|
63007
63033
|
|
|
63034
|
+
// src/models/v2prompttarget.ts
|
|
63035
|
+
var V2PromptTargetKind$zodSchema, V2PromptTargetFrequency$zodSchema, V2PromptTarget$zodSchema;
|
|
63036
|
+
var init_v2prompttarget = __esm(() => {
|
|
63037
|
+
init_zod();
|
|
63038
|
+
init_v2promptruntopic();
|
|
63039
|
+
V2PromptTargetKind$zodSchema = _enum([
|
|
63040
|
+
"answer_engine",
|
|
63041
|
+
"coding_agent"
|
|
63042
|
+
]);
|
|
63043
|
+
V2PromptTargetFrequency$zodSchema = _enum([
|
|
63044
|
+
"daily",
|
|
63045
|
+
"every_other_day",
|
|
63046
|
+
"weekly",
|
|
63047
|
+
"manual"
|
|
63048
|
+
]).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.");
|
|
63049
|
+
V2PromptTarget$zodSchema = object({
|
|
63050
|
+
agent: string2().nullable().optional().describe("Agent ID from `GET /v2/agents` for coding-agent targets."),
|
|
63051
|
+
answer_engine: string2().nullable().optional().describe("Answer engine identifier for answer-engine targets."),
|
|
63052
|
+
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."),
|
|
63053
|
+
id: string2(),
|
|
63054
|
+
kind: V2PromptTargetKind$zodSchema,
|
|
63055
|
+
last_run_at: string2().nullable().optional(),
|
|
63056
|
+
name: string2().describe("Human-readable answer engine or agent name."),
|
|
63057
|
+
next_run_at: string2().nullable().optional(),
|
|
63058
|
+
topic: V2PromptRunTopic$zodSchema.nullable().optional().describe("Topic the target runs for. Null means it runs for every topic.")
|
|
63059
|
+
});
|
|
63060
|
+
});
|
|
63061
|
+
|
|
63062
|
+
// src/models/v2prompttargetsresponse.ts
|
|
63063
|
+
var V2PromptTargetsResponse$zodSchema;
|
|
63064
|
+
var init_v2prompttargetsresponse = __esm(() => {
|
|
63065
|
+
init_zod();
|
|
63066
|
+
init_v2prompttarget();
|
|
63067
|
+
V2PromptTargetsResponse$zodSchema = object({
|
|
63068
|
+
count: int(),
|
|
63069
|
+
data: array(V2PromptTarget$zodSchema).optional()
|
|
63070
|
+
});
|
|
63071
|
+
});
|
|
63072
|
+
|
|
63073
|
+
// src/models/v2prompttargetslistop.ts
|
|
63074
|
+
var V2PromptTargetsListRequest$zodSchema, V2PromptTargetsListResponse$zodSchema;
|
|
63075
|
+
var init_v2prompttargetslistop = __esm(() => {
|
|
63076
|
+
init_zod();
|
|
63077
|
+
init_httpvalidationerror();
|
|
63078
|
+
init_v2prompttargetsresponse();
|
|
63079
|
+
V2PromptTargetsListRequest$zodSchema = object({
|
|
63080
|
+
topic_id: string2().describe("Optional prompt topic ID.").optional()
|
|
63081
|
+
});
|
|
63082
|
+
V2PromptTargetsListResponse$zodSchema = union([
|
|
63083
|
+
V2PromptTargetsResponse$zodSchema,
|
|
63084
|
+
HTTPValidationError$zodSchema
|
|
63085
|
+
]);
|
|
63086
|
+
});
|
|
63087
|
+
|
|
63088
|
+
// src/funcs/promptsTargetsList.ts
|
|
63089
|
+
function promptsTargetsList(client$, request, options) {
|
|
63090
|
+
return new APIPromise($do51(client$, request, options));
|
|
63091
|
+
}
|
|
63092
|
+
async function $do51(client$, request, options) {
|
|
63093
|
+
const parsed$ = safeParse4(request, (value$) => V2PromptTargetsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63094
|
+
if (!parsed$.ok) {
|
|
63095
|
+
return [parsed$, { status: "invalid" }];
|
|
63096
|
+
}
|
|
63097
|
+
const payload$ = parsed$.value;
|
|
63098
|
+
const body$ = null;
|
|
63099
|
+
const path$ = pathToFunc("/v2/prompts/targets")();
|
|
63100
|
+
const query$ = encodeFormQuery({
|
|
63101
|
+
topic_id: payload$?.topic_id
|
|
63102
|
+
});
|
|
63103
|
+
const headers$ = new Headers(compactMap({
|
|
63104
|
+
Accept: "application/json"
|
|
63105
|
+
}));
|
|
63106
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63108
|
+
const context = {
|
|
63109
|
+
options: client$._options,
|
|
63110
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63111
|
+
operationID: "v2_prompt_targets_list",
|
|
63112
|
+
oAuth2Scopes: null,
|
|
63113
|
+
resolvedSecurity: requestSecurity,
|
|
63114
|
+
securitySource: client$._options.security,
|
|
63115
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63116
|
+
retryCodes: options?.retryCodes || [
|
|
63117
|
+
"429",
|
|
63118
|
+
"500",
|
|
63119
|
+
"502",
|
|
63120
|
+
"503",
|
|
63121
|
+
"504"
|
|
63122
|
+
]
|
|
63123
|
+
};
|
|
63124
|
+
const requestRes = client$._createRequest(context, {
|
|
63125
|
+
security: requestSecurity,
|
|
63126
|
+
method: "GET",
|
|
63127
|
+
baseURL: options?.serverURL,
|
|
63128
|
+
path: path$,
|
|
63129
|
+
headers: headers$,
|
|
63130
|
+
query: query$,
|
|
63131
|
+
body: body$,
|
|
63132
|
+
userAgent: client$._options.userAgent,
|
|
63133
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63134
|
+
}, options);
|
|
63135
|
+
if (!requestRes.ok) {
|
|
63136
|
+
return [requestRes, { status: "invalid" }];
|
|
63137
|
+
}
|
|
63138
|
+
const req$ = requestRes.value;
|
|
63139
|
+
const doResult = await client$._do(req$, {
|
|
63140
|
+
context,
|
|
63141
|
+
errorCodes: [],
|
|
63142
|
+
retryConfig: context.retryConfig,
|
|
63143
|
+
retryCodes: context.retryCodes
|
|
63144
|
+
});
|
|
63145
|
+
if (!doResult.ok) {
|
|
63146
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63147
|
+
}
|
|
63148
|
+
return [doResult, {
|
|
63149
|
+
status: "complete",
|
|
63150
|
+
request: req$,
|
|
63151
|
+
response: doResult.value
|
|
63152
|
+
}];
|
|
63153
|
+
}
|
|
63154
|
+
var init_promptsTargetsList = __esm(() => {
|
|
63155
|
+
init_encodings();
|
|
63156
|
+
init_primitives();
|
|
63157
|
+
init_schemas4();
|
|
63158
|
+
init_security();
|
|
63159
|
+
init_url();
|
|
63160
|
+
init_v2prompttargetslistop();
|
|
63161
|
+
init_async();
|
|
63162
|
+
});
|
|
63163
|
+
|
|
63164
|
+
// src/mcp-server/tools/promptsTargetsList.ts
|
|
63165
|
+
var args42, tool$promptsTargetsList;
|
|
63166
|
+
var init_promptsTargetsList2 = __esm(() => {
|
|
63167
|
+
init_promptsTargetsList();
|
|
63168
|
+
init_v2prompttargetslistop();
|
|
63169
|
+
init_tools();
|
|
63170
|
+
args42 = {
|
|
63171
|
+
request: V2PromptTargetsListRequest$zodSchema.optional()
|
|
63172
|
+
};
|
|
63173
|
+
tool$promptsTargetsList = {
|
|
63174
|
+
name: "prompts-targets-list",
|
|
63175
|
+
description: `List Targets
|
|
63176
|
+
|
|
63177
|
+
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.`,
|
|
63178
|
+
annotations: {
|
|
63179
|
+
title: "",
|
|
63180
|
+
destructiveHint: false,
|
|
63181
|
+
idempotentHint: false,
|
|
63182
|
+
openWorldHint: false,
|
|
63183
|
+
readOnlyHint: true
|
|
63184
|
+
},
|
|
63185
|
+
args: args42,
|
|
63186
|
+
tool: async (client, args, ctx) => {
|
|
63187
|
+
const [result] = await promptsTargetsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63188
|
+
if (!result.ok) {
|
|
63189
|
+
return {
|
|
63190
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63191
|
+
isError: true
|
|
63192
|
+
};
|
|
63193
|
+
}
|
|
63194
|
+
return formatResult(result.value);
|
|
63195
|
+
}
|
|
63196
|
+
};
|
|
63197
|
+
});
|
|
63198
|
+
|
|
63199
|
+
// src/models/v2prompttargetinput.ts
|
|
63200
|
+
var AnswerEngine$zodSchema, V2PromptTargetInputFrequency$zodSchema, V2PromptTargetInput$zodSchema;
|
|
63201
|
+
var init_v2prompttargetinput = __esm(() => {
|
|
63202
|
+
init_zod();
|
|
63203
|
+
AnswerEngine$zodSchema = _enum([
|
|
63204
|
+
"chatgpt",
|
|
63205
|
+
"google-ai-overviews",
|
|
63206
|
+
"google-ai-mode",
|
|
63207
|
+
"gemini-search",
|
|
63208
|
+
"perplexity",
|
|
63209
|
+
"claude",
|
|
63210
|
+
"microsoft-copilot"
|
|
63211
|
+
]);
|
|
63212
|
+
V2PromptTargetInputFrequency$zodSchema = _enum([
|
|
63213
|
+
"daily",
|
|
63214
|
+
"every_other_day",
|
|
63215
|
+
"weekly",
|
|
63216
|
+
"manual"
|
|
63217
|
+
]).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.");
|
|
63218
|
+
V2PromptTargetInput$zodSchema = object({
|
|
63219
|
+
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."),
|
|
63220
|
+
answer_engine: AnswerEngine$zodSchema.nullable().optional().describe("Answer engine to run the topic's prompts on. Set this or `agent`, not both."),
|
|
63221
|
+
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.")
|
|
63222
|
+
});
|
|
63223
|
+
});
|
|
63224
|
+
|
|
63225
|
+
// src/models/setv2prompttargetsrequest.ts
|
|
63226
|
+
var SetV2PromptTargetsRequest$zodSchema;
|
|
63227
|
+
var init_setv2prompttargetsrequest = __esm(() => {
|
|
63228
|
+
init_zod();
|
|
63229
|
+
init_v2prompttargetinput();
|
|
63230
|
+
SetV2PromptTargetsRequest$zodSchema = object({
|
|
63231
|
+
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."),
|
|
63232
|
+
topic_id: string2().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
|
|
63233
|
+
});
|
|
63234
|
+
});
|
|
63235
|
+
|
|
63236
|
+
// src/funcs/promptsTargetsSet.ts
|
|
63237
|
+
function promptsTargetsSet(client$, request, options) {
|
|
63238
|
+
return new APIPromise($do52(client$, request, options));
|
|
63239
|
+
}
|
|
63240
|
+
async function $do52(client$, request, options) {
|
|
63241
|
+
const parsed$ = safeParse4(request, (value$) => SetV2PromptTargetsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63242
|
+
if (!parsed$.ok) {
|
|
63243
|
+
return [parsed$, { status: "invalid" }];
|
|
63244
|
+
}
|
|
63245
|
+
const payload$ = parsed$.value;
|
|
63246
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
63247
|
+
const path$ = pathToFunc("/v2/prompts/targets")();
|
|
63248
|
+
const headers$ = new Headers(compactMap({
|
|
63249
|
+
"Content-Type": "application/json",
|
|
63250
|
+
Accept: "application/json"
|
|
63251
|
+
}));
|
|
63252
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63253
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63254
|
+
const context = {
|
|
63255
|
+
options: client$._options,
|
|
63256
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63257
|
+
operationID: "v2_prompt_targets_set",
|
|
63258
|
+
oAuth2Scopes: null,
|
|
63259
|
+
resolvedSecurity: requestSecurity,
|
|
63260
|
+
securitySource: client$._options.security,
|
|
63261
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63262
|
+
retryCodes: options?.retryCodes || [
|
|
63263
|
+
"429",
|
|
63264
|
+
"500",
|
|
63265
|
+
"502",
|
|
63266
|
+
"503",
|
|
63267
|
+
"504"
|
|
63268
|
+
]
|
|
63269
|
+
};
|
|
63270
|
+
const requestRes = client$._createRequest(context, {
|
|
63271
|
+
security: requestSecurity,
|
|
63272
|
+
method: "PUT",
|
|
63273
|
+
baseURL: options?.serverURL,
|
|
63274
|
+
path: path$,
|
|
63275
|
+
headers: headers$,
|
|
63276
|
+
body: body$,
|
|
63277
|
+
userAgent: client$._options.userAgent,
|
|
63278
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63279
|
+
}, options);
|
|
63280
|
+
if (!requestRes.ok) {
|
|
63281
|
+
return [requestRes, { status: "invalid" }];
|
|
63282
|
+
}
|
|
63283
|
+
const req$ = requestRes.value;
|
|
63284
|
+
const doResult = await client$._do(req$, {
|
|
63285
|
+
context,
|
|
63286
|
+
errorCodes: [],
|
|
63287
|
+
retryConfig: context.retryConfig,
|
|
63288
|
+
retryCodes: context.retryCodes
|
|
63289
|
+
});
|
|
63290
|
+
if (!doResult.ok) {
|
|
63291
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63292
|
+
}
|
|
63293
|
+
return [doResult, {
|
|
63294
|
+
status: "complete",
|
|
63295
|
+
request: req$,
|
|
63296
|
+
response: doResult.value
|
|
63297
|
+
}];
|
|
63298
|
+
}
|
|
63299
|
+
var init_promptsTargetsSet = __esm(() => {
|
|
63300
|
+
init_encodings();
|
|
63301
|
+
init_primitives();
|
|
63302
|
+
init_schemas4();
|
|
63303
|
+
init_security();
|
|
63304
|
+
init_url();
|
|
63305
|
+
init_setv2prompttargetsrequest();
|
|
63306
|
+
init_async();
|
|
63307
|
+
});
|
|
63308
|
+
|
|
63309
|
+
// src/mcp-server/tools/promptsTargetsSet.ts
|
|
63310
|
+
var args43, tool$promptsTargetsSet;
|
|
63311
|
+
var init_promptsTargetsSet2 = __esm(() => {
|
|
63312
|
+
init_promptsTargetsSet();
|
|
63313
|
+
init_setv2prompttargetsrequest();
|
|
63314
|
+
init_tools();
|
|
63315
|
+
args43 = {
|
|
63316
|
+
request: SetV2PromptTargetsRequest$zodSchema
|
|
63317
|
+
};
|
|
63318
|
+
tool$promptsTargetsSet = {
|
|
63319
|
+
name: "prompts-targets-set",
|
|
63320
|
+
description: `Set Targets
|
|
63321
|
+
|
|
63322
|
+
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.`,
|
|
63323
|
+
annotations: {
|
|
63324
|
+
title: "",
|
|
63325
|
+
destructiveHint: false,
|
|
63326
|
+
idempotentHint: false,
|
|
63327
|
+
openWorldHint: false,
|
|
63328
|
+
readOnlyHint: false
|
|
63329
|
+
},
|
|
63330
|
+
args: args43,
|
|
63331
|
+
tool: async (client, args, ctx) => {
|
|
63332
|
+
const [result] = await promptsTargetsSet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63333
|
+
if (!result.ok) {
|
|
63334
|
+
return {
|
|
63335
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63336
|
+
isError: true
|
|
63337
|
+
};
|
|
63338
|
+
}
|
|
63339
|
+
return formatResult(result.value);
|
|
63340
|
+
}
|
|
63341
|
+
};
|
|
63342
|
+
});
|
|
63343
|
+
|
|
63008
63344
|
// src/models/createprompttopicrequest.ts
|
|
63009
63345
|
var CreatePromptTopicRequest$zodSchema;
|
|
63010
63346
|
var init_createprompttopicrequest = __esm(() => {
|
|
@@ -63016,9 +63352,9 @@ var init_createprompttopicrequest = __esm(() => {
|
|
|
63016
63352
|
|
|
63017
63353
|
// src/funcs/promptsTopicsCreate.ts
|
|
63018
63354
|
function promptsTopicsCreate(client$, request, options) {
|
|
63019
|
-
return new APIPromise($
|
|
63355
|
+
return new APIPromise($do53(client$, request, options));
|
|
63020
63356
|
}
|
|
63021
|
-
async function $
|
|
63357
|
+
async function $do53(client$, request, options) {
|
|
63022
63358
|
const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63023
63359
|
if (!parsed$.ok) {
|
|
63024
63360
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63088,12 +63424,12 @@ var init_promptsTopicsCreate = __esm(() => {
|
|
|
63088
63424
|
});
|
|
63089
63425
|
|
|
63090
63426
|
// src/mcp-server/tools/promptsTopicsCreate.ts
|
|
63091
|
-
var
|
|
63427
|
+
var args44, tool$promptsTopicsCreate;
|
|
63092
63428
|
var init_promptsTopicsCreate2 = __esm(() => {
|
|
63093
63429
|
init_promptsTopicsCreate();
|
|
63094
63430
|
init_createprompttopicrequest();
|
|
63095
63431
|
init_tools();
|
|
63096
|
-
|
|
63432
|
+
args44 = {
|
|
63097
63433
|
request: CreatePromptTopicRequest$zodSchema
|
|
63098
63434
|
};
|
|
63099
63435
|
tool$promptsTopicsCreate = {
|
|
@@ -63108,7 +63444,7 @@ Creates a prompt topic and returns the saved topic.`,
|
|
|
63108
63444
|
openWorldHint: false,
|
|
63109
63445
|
readOnlyHint: false
|
|
63110
63446
|
},
|
|
63111
|
-
args:
|
|
63447
|
+
args: args44,
|
|
63112
63448
|
tool: async (client, args, ctx) => {
|
|
63113
63449
|
const [result] = await promptsTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63114
63450
|
if (!result.ok) {
|
|
@@ -63140,9 +63476,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
|
|
|
63140
63476
|
|
|
63141
63477
|
// src/funcs/promptsTopicsDelete.ts
|
|
63142
63478
|
function promptsTopicsDelete(client$, request, options) {
|
|
63143
|
-
return new APIPromise($
|
|
63479
|
+
return new APIPromise($do54(client$, request, options));
|
|
63144
63480
|
}
|
|
63145
|
-
async function $
|
|
63481
|
+
async function $do54(client$, request, options) {
|
|
63146
63482
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63147
63483
|
if (!parsed$.ok) {
|
|
63148
63484
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63221,12 +63557,12 @@ var init_promptsTopicsDelete = __esm(() => {
|
|
|
63221
63557
|
});
|
|
63222
63558
|
|
|
63223
63559
|
// src/mcp-server/tools/promptsTopicsDelete.ts
|
|
63224
|
-
var
|
|
63560
|
+
var args45, tool$promptsTopicsDelete;
|
|
63225
63561
|
var init_promptsTopicsDelete2 = __esm(() => {
|
|
63226
63562
|
init_promptsTopicsDelete();
|
|
63227
63563
|
init_v2prompttopicsdeleteop();
|
|
63228
63564
|
init_tools();
|
|
63229
|
-
|
|
63565
|
+
args45 = {
|
|
63230
63566
|
request: V2PromptTopicsDeleteRequest$zodSchema
|
|
63231
63567
|
};
|
|
63232
63568
|
tool$promptsTopicsDelete = {
|
|
@@ -63241,7 +63577,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
63241
63577
|
openWorldHint: false,
|
|
63242
63578
|
readOnlyHint: false
|
|
63243
63579
|
},
|
|
63244
|
-
args:
|
|
63580
|
+
args: args45,
|
|
63245
63581
|
tool: async (client, args, ctx) => {
|
|
63246
63582
|
const [result] = await promptsTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63247
63583
|
if (!result.ok) {
|
|
@@ -63257,9 +63593,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
63257
63593
|
|
|
63258
63594
|
// src/funcs/promptsTopicsList.ts
|
|
63259
63595
|
function promptsTopicsList(client$, options) {
|
|
63260
|
-
return new APIPromise($
|
|
63596
|
+
return new APIPromise($do55(client$, options));
|
|
63261
63597
|
}
|
|
63262
|
-
async function $
|
|
63598
|
+
async function $do55(client$, options) {
|
|
63263
63599
|
const path$ = pathToFunc("/v2/prompts/topics")();
|
|
63264
63600
|
const headers$ = new Headers(compactMap({
|
|
63265
63601
|
Accept: "application/json"
|
|
@@ -63375,9 +63711,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
|
|
|
63375
63711
|
|
|
63376
63712
|
// src/funcs/promptsTopicsUpdate.ts
|
|
63377
63713
|
function promptsTopicsUpdate(client$, request, options) {
|
|
63378
|
-
return new APIPromise($
|
|
63714
|
+
return new APIPromise($do56(client$, request, options));
|
|
63379
63715
|
}
|
|
63380
|
-
async function $
|
|
63716
|
+
async function $do56(client$, request, options) {
|
|
63381
63717
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63382
63718
|
if (!parsed$.ok) {
|
|
63383
63719
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63453,12 +63789,12 @@ var init_promptsTopicsUpdate = __esm(() => {
|
|
|
63453
63789
|
});
|
|
63454
63790
|
|
|
63455
63791
|
// src/mcp-server/tools/promptsTopicsUpdate.ts
|
|
63456
|
-
var
|
|
63792
|
+
var args46, tool$promptsTopicsUpdate;
|
|
63457
63793
|
var init_promptsTopicsUpdate2 = __esm(() => {
|
|
63458
63794
|
init_promptsTopicsUpdate();
|
|
63459
63795
|
init_v2prompttopicsupdateop();
|
|
63460
63796
|
init_tools();
|
|
63461
|
-
|
|
63797
|
+
args46 = {
|
|
63462
63798
|
request: V2PromptTopicsUpdateRequest$zodSchema
|
|
63463
63799
|
};
|
|
63464
63800
|
tool$promptsTopicsUpdate = {
|
|
@@ -63473,7 +63809,7 @@ Renames a prompt topic and returns the updated topic.`,
|
|
|
63473
63809
|
openWorldHint: false,
|
|
63474
63810
|
readOnlyHint: false
|
|
63475
63811
|
},
|
|
63476
|
-
args:
|
|
63812
|
+
args: args46,
|
|
63477
63813
|
tool: async (client, args, ctx) => {
|
|
63478
63814
|
const [result] = await promptsTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63479
63815
|
if (!result.ok) {
|
|
@@ -63525,9 +63861,9 @@ var init_v2promptsupdateop = __esm(() => {
|
|
|
63525
63861
|
|
|
63526
63862
|
// src/funcs/promptsUpdate.ts
|
|
63527
63863
|
function promptsUpdate(client$, request, options) {
|
|
63528
|
-
return new APIPromise($
|
|
63864
|
+
return new APIPromise($do57(client$, request, options));
|
|
63529
63865
|
}
|
|
63530
|
-
async function $
|
|
63866
|
+
async function $do57(client$, request, options) {
|
|
63531
63867
|
const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63532
63868
|
if (!parsed$.ok) {
|
|
63533
63869
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63603,12 +63939,12 @@ var init_promptsUpdate = __esm(() => {
|
|
|
63603
63939
|
});
|
|
63604
63940
|
|
|
63605
63941
|
// src/mcp-server/tools/promptsUpdate.ts
|
|
63606
|
-
var
|
|
63942
|
+
var args47, tool$promptsUpdate;
|
|
63607
63943
|
var init_promptsUpdate2 = __esm(() => {
|
|
63608
63944
|
init_promptsUpdate();
|
|
63609
63945
|
init_v2promptsupdateop();
|
|
63610
63946
|
init_tools();
|
|
63611
|
-
|
|
63947
|
+
args47 = {
|
|
63612
63948
|
request: V2PromptsUpdateRequest$zodSchema
|
|
63613
63949
|
};
|
|
63614
63950
|
tool$promptsUpdate = {
|
|
@@ -63623,7 +63959,7 @@ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run
|
|
|
63623
63959
|
openWorldHint: false,
|
|
63624
63960
|
readOnlyHint: false
|
|
63625
63961
|
},
|
|
63626
|
-
args:
|
|
63962
|
+
args: args47,
|
|
63627
63963
|
tool: async (client, args, ctx) => {
|
|
63628
63964
|
const [result] = await promptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63629
63965
|
if (!result.ok) {
|
|
@@ -63666,9 +64002,9 @@ var init_createv2repositoryrequest = __esm(() => {
|
|
|
63666
64002
|
|
|
63667
64003
|
// src/funcs/repositoriesCreate.ts
|
|
63668
64004
|
function repositoriesCreate(client$, request, options) {
|
|
63669
|
-
return new APIPromise($
|
|
64005
|
+
return new APIPromise($do58(client$, request, options));
|
|
63670
64006
|
}
|
|
63671
|
-
async function $
|
|
64007
|
+
async function $do58(client$, request, options) {
|
|
63672
64008
|
const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63673
64009
|
if (!parsed$.ok) {
|
|
63674
64010
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63738,12 +64074,12 @@ var init_repositoriesCreate = __esm(() => {
|
|
|
63738
64074
|
});
|
|
63739
64075
|
|
|
63740
64076
|
// src/mcp-server/tools/repositoriesCreate.ts
|
|
63741
|
-
var
|
|
64077
|
+
var args48, tool$repositoriesCreate;
|
|
63742
64078
|
var init_repositoriesCreate2 = __esm(() => {
|
|
63743
64079
|
init_repositoriesCreate();
|
|
63744
64080
|
init_createv2repositoryrequest();
|
|
63745
64081
|
init_tools();
|
|
63746
|
-
|
|
64082
|
+
args48 = {
|
|
63747
64083
|
request: CreateV2RepositoryRequest$zodSchema
|
|
63748
64084
|
};
|
|
63749
64085
|
tool$repositoriesCreate = {
|
|
@@ -63758,7 +64094,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
|
|
|
63758
64094
|
openWorldHint: false,
|
|
63759
64095
|
readOnlyHint: false
|
|
63760
64096
|
},
|
|
63761
|
-
args:
|
|
64097
|
+
args: args48,
|
|
63762
64098
|
tool: async (client, args, ctx) => {
|
|
63763
64099
|
const [result] = await repositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63764
64100
|
if (!result.ok) {
|
|
@@ -63824,9 +64160,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
|
|
|
63824
64160
|
|
|
63825
64161
|
// src/funcs/repositoriesDelete.ts
|
|
63826
64162
|
function repositoriesDelete(client$, request, options) {
|
|
63827
|
-
return new APIPromise($
|
|
64163
|
+
return new APIPromise($do59(client$, request, options));
|
|
63828
64164
|
}
|
|
63829
|
-
async function $
|
|
64165
|
+
async function $do59(client$, request, options) {
|
|
63830
64166
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63831
64167
|
if (!parsed$.ok) {
|
|
63832
64168
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63901,12 +64237,12 @@ var init_repositoriesDelete = __esm(() => {
|
|
|
63901
64237
|
});
|
|
63902
64238
|
|
|
63903
64239
|
// src/mcp-server/tools/repositoriesDelete.ts
|
|
63904
|
-
var
|
|
64240
|
+
var args49, tool$repositoriesDelete;
|
|
63905
64241
|
var init_repositoriesDelete2 = __esm(() => {
|
|
63906
64242
|
init_repositoriesDelete();
|
|
63907
64243
|
init_v2repositoriesdeleteop();
|
|
63908
64244
|
init_tools();
|
|
63909
|
-
|
|
64245
|
+
args49 = {
|
|
63910
64246
|
request: V2RepositoriesDeleteRequest$zodSchema
|
|
63911
64247
|
};
|
|
63912
64248
|
tool$repositoriesDelete = {
|
|
@@ -63921,7 +64257,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
63921
64257
|
openWorldHint: false,
|
|
63922
64258
|
readOnlyHint: false
|
|
63923
64259
|
},
|
|
63924
|
-
args:
|
|
64260
|
+
args: args49,
|
|
63925
64261
|
tool: async (client, args, ctx) => {
|
|
63926
64262
|
const [result] = await repositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63927
64263
|
if (!result.ok) {
|
|
@@ -63937,9 +64273,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
63937
64273
|
|
|
63938
64274
|
// src/funcs/repositoriesList.ts
|
|
63939
64275
|
function repositoriesList(client$, options) {
|
|
63940
|
-
return new APIPromise($
|
|
64276
|
+
return new APIPromise($do60(client$, options));
|
|
63941
64277
|
}
|
|
63942
|
-
async function $
|
|
64278
|
+
async function $do60(client$, options) {
|
|
63943
64279
|
const path$ = pathToFunc("/v2/repositories")();
|
|
63944
64280
|
const headers$ = new Headers(compactMap({
|
|
63945
64281
|
Accept: "application/json"
|
|
@@ -64044,9 +64380,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
|
|
|
64044
64380
|
|
|
64045
64381
|
// src/funcs/repositoriesRetrieve.ts
|
|
64046
64382
|
function repositoriesRetrieve(client$, request, options) {
|
|
64047
|
-
return new APIPromise($
|
|
64383
|
+
return new APIPromise($do61(client$, request, options));
|
|
64048
64384
|
}
|
|
64049
|
-
async function $
|
|
64385
|
+
async function $do61(client$, request, options) {
|
|
64050
64386
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64051
64387
|
if (!parsed$.ok) {
|
|
64052
64388
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64121,12 +64457,12 @@ var init_repositoriesRetrieve = __esm(() => {
|
|
|
64121
64457
|
});
|
|
64122
64458
|
|
|
64123
64459
|
// src/mcp-server/tools/repositoriesRetrieve.ts
|
|
64124
|
-
var
|
|
64460
|
+
var args50, tool$repositoriesRetrieve;
|
|
64125
64461
|
var init_repositoriesRetrieve2 = __esm(() => {
|
|
64126
64462
|
init_repositoriesRetrieve();
|
|
64127
64463
|
init_v2repositoriesretrieveop();
|
|
64128
64464
|
init_tools();
|
|
64129
|
-
|
|
64465
|
+
args50 = {
|
|
64130
64466
|
request: V2RepositoriesRetrieveRequest$zodSchema
|
|
64131
64467
|
};
|
|
64132
64468
|
tool$repositoriesRetrieve = {
|
|
@@ -64141,7 +64477,7 @@ Returns one reusable repository workspace.`,
|
|
|
64141
64477
|
openWorldHint: false,
|
|
64142
64478
|
readOnlyHint: true
|
|
64143
64479
|
},
|
|
64144
|
-
args:
|
|
64480
|
+
args: args50,
|
|
64145
64481
|
tool: async (client, args, ctx) => {
|
|
64146
64482
|
const [result] = await repositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64147
64483
|
if (!result.ok) {
|
|
@@ -64201,9 +64537,9 @@ var init_v2repositoriesupdateop = __esm(() => {
|
|
|
64201
64537
|
|
|
64202
64538
|
// src/funcs/repositoriesUpdate.ts
|
|
64203
64539
|
function repositoriesUpdate(client$, request, options) {
|
|
64204
|
-
return new APIPromise($
|
|
64540
|
+
return new APIPromise($do62(client$, request, options));
|
|
64205
64541
|
}
|
|
64206
|
-
async function $
|
|
64542
|
+
async function $do62(client$, request, options) {
|
|
64207
64543
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64208
64544
|
if (!parsed$.ok) {
|
|
64209
64545
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64279,12 +64615,12 @@ var init_repositoriesUpdate = __esm(() => {
|
|
|
64279
64615
|
});
|
|
64280
64616
|
|
|
64281
64617
|
// src/mcp-server/tools/repositoriesUpdate.ts
|
|
64282
|
-
var
|
|
64618
|
+
var args51, tool$repositoriesUpdate;
|
|
64283
64619
|
var init_repositoriesUpdate2 = __esm(() => {
|
|
64284
64620
|
init_repositoriesUpdate();
|
|
64285
64621
|
init_v2repositoriesupdateop();
|
|
64286
64622
|
init_tools();
|
|
64287
|
-
|
|
64623
|
+
args51 = {
|
|
64288
64624
|
request: V2RepositoriesUpdateRequest$zodSchema
|
|
64289
64625
|
};
|
|
64290
64626
|
tool$repositoriesUpdate = {
|
|
@@ -64299,7 +64635,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
64299
64635
|
openWorldHint: false,
|
|
64300
64636
|
readOnlyHint: false
|
|
64301
64637
|
},
|
|
64302
|
-
args:
|
|
64638
|
+
args: args51,
|
|
64303
64639
|
tool: async (client, args, ctx) => {
|
|
64304
64640
|
const [result] = await repositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64305
64641
|
if (!result.ok) {
|
|
@@ -64315,9 +64651,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
64315
64651
|
|
|
64316
64652
|
// src/funcs/siteAuditsList.ts
|
|
64317
64653
|
function siteAuditsList(client$, options) {
|
|
64318
|
-
return new APIPromise($
|
|
64654
|
+
return new APIPromise($do63(client$, options));
|
|
64319
64655
|
}
|
|
64320
|
-
async function $
|
|
64656
|
+
async function $do63(client$, options) {
|
|
64321
64657
|
const path$ = pathToFunc("/v2/site-audits")();
|
|
64322
64658
|
const headers$ = new Headers(compactMap({
|
|
64323
64659
|
Accept: "application/json"
|
|
@@ -64458,9 +64794,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
|
|
|
64458
64794
|
|
|
64459
64795
|
// src/funcs/siteAuditsRetrieve.ts
|
|
64460
64796
|
function siteAuditsRetrieve(client$, request, options) {
|
|
64461
|
-
return new APIPromise($
|
|
64797
|
+
return new APIPromise($do64(client$, request, options));
|
|
64462
64798
|
}
|
|
64463
|
-
async function $
|
|
64799
|
+
async function $do64(client$, request, options) {
|
|
64464
64800
|
const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64465
64801
|
if (!parsed$.ok) {
|
|
64466
64802
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64535,12 +64871,12 @@ var init_siteAuditsRetrieve = __esm(() => {
|
|
|
64535
64871
|
});
|
|
64536
64872
|
|
|
64537
64873
|
// src/mcp-server/tools/siteAuditsRetrieve.ts
|
|
64538
|
-
var
|
|
64874
|
+
var args52, tool$siteAuditsRetrieve;
|
|
64539
64875
|
var init_siteAuditsRetrieve2 = __esm(() => {
|
|
64540
64876
|
init_siteAuditsRetrieve();
|
|
64541
64877
|
init_v2siteauditsretrieveop();
|
|
64542
64878
|
init_tools();
|
|
64543
|
-
|
|
64879
|
+
args52 = {
|
|
64544
64880
|
request: V2SiteAuditsRetrieveRequest$zodSchema
|
|
64545
64881
|
};
|
|
64546
64882
|
tool$siteAuditsRetrieve = {
|
|
@@ -64555,7 +64891,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
64555
64891
|
openWorldHint: false,
|
|
64556
64892
|
readOnlyHint: true
|
|
64557
64893
|
},
|
|
64558
|
-
args:
|
|
64894
|
+
args: args52,
|
|
64559
64895
|
tool: async (client, args, ctx) => {
|
|
64560
64896
|
const [result] = await siteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64561
64897
|
if (!result.ok) {
|
|
@@ -64571,9 +64907,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
64571
64907
|
|
|
64572
64908
|
// src/funcs/skillsList.ts
|
|
64573
64909
|
function skillsList(client$, options) {
|
|
64574
|
-
return new APIPromise($
|
|
64910
|
+
return new APIPromise($do65(client$, options));
|
|
64575
64911
|
}
|
|
64576
|
-
async function $
|
|
64912
|
+
async function $do65(client$, options) {
|
|
64577
64913
|
const path$ = pathToFunc("/v2/skills")();
|
|
64578
64914
|
const headers$ = new Headers(compactMap({
|
|
64579
64915
|
Accept: "application/json"
|
|
@@ -64663,9 +64999,9 @@ Returns reusable skills available to workflows and eval configurations.`,
|
|
|
64663
64999
|
|
|
64664
65000
|
// src/funcs/statusAuthStatusGet.ts
|
|
64665
65001
|
function statusAuthStatusGet(client$, options) {
|
|
64666
|
-
return new APIPromise($
|
|
65002
|
+
return new APIPromise($do66(client$, options));
|
|
64667
65003
|
}
|
|
64668
|
-
async function $
|
|
65004
|
+
async function $do66(client$, options) {
|
|
64669
65005
|
const path$ = pathToFunc("/v2/auth/status")();
|
|
64670
65006
|
const headers$ = new Headers(compactMap({
|
|
64671
65007
|
Accept: "application/json"
|
|
@@ -64755,9 +65091,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
|
|
|
64755
65091
|
|
|
64756
65092
|
// src/funcs/statusGet.ts
|
|
64757
65093
|
function statusGet(client$, options) {
|
|
64758
|
-
return new APIPromise($
|
|
65094
|
+
return new APIPromise($do67(client$, options));
|
|
64759
65095
|
}
|
|
64760
|
-
async function $
|
|
65096
|
+
async function $do67(client$, options) {
|
|
64761
65097
|
const path$ = pathToFunc("/v2/status")();
|
|
64762
65098
|
const headers$ = new Headers(compactMap({
|
|
64763
65099
|
Accept: "application/json"
|
|
@@ -64886,9 +65222,9 @@ var init_createtaskrequest = __esm(() => {
|
|
|
64886
65222
|
|
|
64887
65223
|
// src/funcs/tasksCreate.ts
|
|
64888
65224
|
function tasksCreate(client$, request, options) {
|
|
64889
|
-
return new APIPromise($
|
|
65225
|
+
return new APIPromise($do68(client$, request, options));
|
|
64890
65226
|
}
|
|
64891
|
-
async function $
|
|
65227
|
+
async function $do68(client$, request, options) {
|
|
64892
65228
|
const parsed$ = safeParse4(request, (value$) => CreateTaskRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64893
65229
|
if (!parsed$.ok) {
|
|
64894
65230
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64958,12 +65294,12 @@ var init_tasksCreate = __esm(() => {
|
|
|
64958
65294
|
});
|
|
64959
65295
|
|
|
64960
65296
|
// src/mcp-server/tools/tasksCreate.ts
|
|
64961
|
-
var
|
|
65297
|
+
var args53, tool$tasksCreate;
|
|
64962
65298
|
var init_tasksCreate2 = __esm(() => {
|
|
64963
65299
|
init_tasksCreate();
|
|
64964
65300
|
init_createtaskrequest();
|
|
64965
65301
|
init_tools();
|
|
64966
|
-
|
|
65302
|
+
args53 = {
|
|
64967
65303
|
request: CreateTaskRequest$zodSchema
|
|
64968
65304
|
};
|
|
64969
65305
|
tool$tasksCreate = {
|
|
@@ -64978,7 +65314,7 @@ Adds a task to today's queue and returns it with its execution prompt. New tasks
|
|
|
64978
65314
|
openWorldHint: false,
|
|
64979
65315
|
readOnlyHint: false
|
|
64980
65316
|
},
|
|
64981
|
-
args:
|
|
65317
|
+
args: args53,
|
|
64982
65318
|
tool: async (client, args, ctx) => {
|
|
64983
65319
|
const [result] = await tasksCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64984
65320
|
if (!result.ok) {
|
|
@@ -65138,9 +65474,9 @@ var init_v2taskslistop = __esm(() => {
|
|
|
65138
65474
|
|
|
65139
65475
|
// src/funcs/tasksList.ts
|
|
65140
65476
|
function tasksList(client$, request, options) {
|
|
65141
|
-
return new APIPromise($
|
|
65477
|
+
return new APIPromise($do69(client$, request, options));
|
|
65142
65478
|
}
|
|
65143
|
-
async function $
|
|
65479
|
+
async function $do69(client$, request, options) {
|
|
65144
65480
|
const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
65145
65481
|
if (!parsed$.ok) {
|
|
65146
65482
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65214,12 +65550,12 @@ var init_tasksList = __esm(() => {
|
|
|
65214
65550
|
});
|
|
65215
65551
|
|
|
65216
65552
|
// src/mcp-server/tools/tasksList.ts
|
|
65217
|
-
var
|
|
65553
|
+
var args54, tool$tasksList;
|
|
65218
65554
|
var init_tasksList2 = __esm(() => {
|
|
65219
65555
|
init_tasksList();
|
|
65220
65556
|
init_v2taskslistop();
|
|
65221
65557
|
init_tools();
|
|
65222
|
-
|
|
65558
|
+
args54 = {
|
|
65223
65559
|
request: V2TasksListRequest$zodSchema.optional()
|
|
65224
65560
|
};
|
|
65225
65561
|
tool$tasksList = {
|
|
@@ -65234,7 +65570,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
|
|
|
65234
65570
|
openWorldHint: false,
|
|
65235
65571
|
readOnlyHint: true
|
|
65236
65572
|
},
|
|
65237
|
-
args:
|
|
65573
|
+
args: args54,
|
|
65238
65574
|
tool: async (client, args, ctx) => {
|
|
65239
65575
|
const [result] = await tasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65240
65576
|
if (!result.ok) {
|
|
@@ -65265,9 +65601,9 @@ var init_v2tasksretrieveop = __esm(() => {
|
|
|
65265
65601
|
|
|
65266
65602
|
// src/funcs/tasksRetrieve.ts
|
|
65267
65603
|
function tasksRetrieve(client$, request, options) {
|
|
65268
|
-
return new APIPromise($
|
|
65604
|
+
return new APIPromise($do70(client$, request, options));
|
|
65269
65605
|
}
|
|
65270
|
-
async function $
|
|
65606
|
+
async function $do70(client$, request, options) {
|
|
65271
65607
|
const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65272
65608
|
if (!parsed$.ok) {
|
|
65273
65609
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65342,12 +65678,12 @@ var init_tasksRetrieve = __esm(() => {
|
|
|
65342
65678
|
});
|
|
65343
65679
|
|
|
65344
65680
|
// src/mcp-server/tools/tasksRetrieve.ts
|
|
65345
|
-
var
|
|
65681
|
+
var args55, tool$tasksRetrieve;
|
|
65346
65682
|
var init_tasksRetrieve2 = __esm(() => {
|
|
65347
65683
|
init_tasksRetrieve();
|
|
65348
65684
|
init_v2tasksretrieveop();
|
|
65349
65685
|
init_tools();
|
|
65350
|
-
|
|
65686
|
+
args55 = {
|
|
65351
65687
|
request: V2TasksRetrieveRequest$zodSchema
|
|
65352
65688
|
};
|
|
65353
65689
|
tool$tasksRetrieve = {
|
|
@@ -65362,7 +65698,7 @@ Returns one persisted task and its execution prompt.`,
|
|
|
65362
65698
|
openWorldHint: false,
|
|
65363
65699
|
readOnlyHint: true
|
|
65364
65700
|
},
|
|
65365
|
-
args:
|
|
65701
|
+
args: args55,
|
|
65366
65702
|
tool: async (client, args, ctx) => {
|
|
65367
65703
|
const [result] = await tasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65368
65704
|
if (!result.ok) {
|
|
@@ -65425,9 +65761,9 @@ var init_v2tasksupdateop = __esm(() => {
|
|
|
65425
65761
|
|
|
65426
65762
|
// src/funcs/tasksUpdate.ts
|
|
65427
65763
|
function tasksUpdate(client$, request, options) {
|
|
65428
|
-
return new APIPromise($
|
|
65764
|
+
return new APIPromise($do71(client$, request, options));
|
|
65429
65765
|
}
|
|
65430
|
-
async function $
|
|
65766
|
+
async function $do71(client$, request, options) {
|
|
65431
65767
|
const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65432
65768
|
if (!parsed$.ok) {
|
|
65433
65769
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65503,12 +65839,12 @@ var init_tasksUpdate = __esm(() => {
|
|
|
65503
65839
|
});
|
|
65504
65840
|
|
|
65505
65841
|
// src/mcp-server/tools/tasksUpdate.ts
|
|
65506
|
-
var
|
|
65842
|
+
var args56, tool$tasksUpdate;
|
|
65507
65843
|
var init_tasksUpdate2 = __esm(() => {
|
|
65508
65844
|
init_tasksUpdate();
|
|
65509
65845
|
init_v2tasksupdateop();
|
|
65510
65846
|
init_tools();
|
|
65511
|
-
|
|
65847
|
+
args56 = {
|
|
65512
65848
|
request: V2TasksUpdateRequest$zodSchema
|
|
65513
65849
|
};
|
|
65514
65850
|
tool$tasksUpdate = {
|
|
@@ -65523,7 +65859,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
|
|
|
65523
65859
|
openWorldHint: false,
|
|
65524
65860
|
readOnlyHint: false
|
|
65525
65861
|
},
|
|
65526
|
-
args:
|
|
65862
|
+
args: args56,
|
|
65527
65863
|
tool: async (client, args, ctx) => {
|
|
65528
65864
|
const [result] = await tasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65529
65865
|
if (!result.ok) {
|
|
@@ -65715,9 +66051,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
|
|
|
65715
66051
|
|
|
65716
66052
|
// src/funcs/visibilityCitationsList.ts
|
|
65717
66053
|
function visibilityCitationsList(client$, request, options) {
|
|
65718
|
-
return new APIPromise($
|
|
66054
|
+
return new APIPromise($do72(client$, request, options));
|
|
65719
66055
|
}
|
|
65720
|
-
async function $
|
|
66056
|
+
async function $do72(client$, request, options) {
|
|
65721
66057
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
65722
66058
|
if (!parsed$.ok) {
|
|
65723
66059
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65795,12 +66131,12 @@ var init_visibilityCitationsList = __esm(() => {
|
|
|
65795
66131
|
});
|
|
65796
66132
|
|
|
65797
66133
|
// src/mcp-server/tools/visibilityCitationsList.ts
|
|
65798
|
-
var
|
|
66134
|
+
var args57, tool$visibilityCitationsList;
|
|
65799
66135
|
var init_visibilityCitationsList2 = __esm(() => {
|
|
65800
66136
|
init_visibilityCitationsList();
|
|
65801
66137
|
init_v2visibilitycitationslistop();
|
|
65802
66138
|
init_tools();
|
|
65803
|
-
|
|
66139
|
+
args57 = {
|
|
65804
66140
|
request: V2VisibilityCitationsListRequest$zodSchema.optional()
|
|
65805
66141
|
};
|
|
65806
66142
|
tool$visibilityCitationsList = {
|
|
@@ -65815,7 +66151,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
65815
66151
|
openWorldHint: false,
|
|
65816
66152
|
readOnlyHint: true
|
|
65817
66153
|
},
|
|
65818
|
-
args:
|
|
66154
|
+
args: args57,
|
|
65819
66155
|
tool: async (client, args, ctx) => {
|
|
65820
66156
|
const [result] = await visibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65821
66157
|
if (!result.ok) {
|
|
@@ -65940,9 +66276,9 @@ var init_v2visibilitycitationssummaryretrieveop = __esm(() => {
|
|
|
65940
66276
|
|
|
65941
66277
|
// src/funcs/visibilityCitationsSummaryRetrieve.ts
|
|
65942
66278
|
function visibilityCitationsSummaryRetrieve(client$, request, options) {
|
|
65943
|
-
return new APIPromise($
|
|
66279
|
+
return new APIPromise($do73(client$, request, options));
|
|
65944
66280
|
}
|
|
65945
|
-
async function $
|
|
66281
|
+
async function $do73(client$, request, options) {
|
|
65946
66282
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
65947
66283
|
if (!parsed$.ok) {
|
|
65948
66284
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66022,12 +66358,12 @@ var init_visibilityCitationsSummaryRetrieve = __esm(() => {
|
|
|
66022
66358
|
});
|
|
66023
66359
|
|
|
66024
66360
|
// src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts
|
|
66025
|
-
var
|
|
66361
|
+
var args58, tool$visibilityCitationsSummaryRetrieve;
|
|
66026
66362
|
var init_visibilityCitationsSummaryRetrieve2 = __esm(() => {
|
|
66027
66363
|
init_visibilityCitationsSummaryRetrieve();
|
|
66028
66364
|
init_v2visibilitycitationssummaryretrieveop();
|
|
66029
66365
|
init_tools();
|
|
66030
|
-
|
|
66366
|
+
args58 = {
|
|
66031
66367
|
request: V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional()
|
|
66032
66368
|
};
|
|
66033
66369
|
tool$visibilityCitationsSummaryRetrieve = {
|
|
@@ -66042,7 +66378,7 @@ Returns citation totals grouped by URL prefix (domain and first path segment, su
|
|
|
66042
66378
|
openWorldHint: false,
|
|
66043
66379
|
readOnlyHint: true
|
|
66044
66380
|
},
|
|
66045
|
-
args:
|
|
66381
|
+
args: args58,
|
|
66046
66382
|
tool: async (client, args, ctx) => {
|
|
66047
66383
|
const [result] = await visibilityCitationsSummaryRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66048
66384
|
if (!result.ok) {
|
|
@@ -66131,9 +66467,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
66131
66467
|
|
|
66132
66468
|
// src/funcs/visibilityCurrentRetrieve.ts
|
|
66133
66469
|
function visibilityCurrentRetrieve(client$, request, options) {
|
|
66134
|
-
return new APIPromise($
|
|
66470
|
+
return new APIPromise($do74(client$, request, options));
|
|
66135
66471
|
}
|
|
66136
|
-
async function $
|
|
66472
|
+
async function $do74(client$, request, options) {
|
|
66137
66473
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
66138
66474
|
if (!parsed$.ok) {
|
|
66139
66475
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66208,12 +66544,12 @@ var init_visibilityCurrentRetrieve = __esm(() => {
|
|
|
66208
66544
|
});
|
|
66209
66545
|
|
|
66210
66546
|
// src/mcp-server/tools/visibilityCurrentRetrieve.ts
|
|
66211
|
-
var
|
|
66547
|
+
var args59, tool$visibilityCurrentRetrieve;
|
|
66212
66548
|
var init_visibilityCurrentRetrieve2 = __esm(() => {
|
|
66213
66549
|
init_visibilityCurrentRetrieve();
|
|
66214
66550
|
init_v2visibilitycurrentretrieveop();
|
|
66215
66551
|
init_tools();
|
|
66216
|
-
|
|
66552
|
+
args59 = {
|
|
66217
66553
|
request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
|
|
66218
66554
|
};
|
|
66219
66555
|
tool$visibilityCurrentRetrieve = {
|
|
@@ -66228,7 +66564,7 @@ Returns recommendation score, visibility score, ranks, and date-range metadata f
|
|
|
66228
66564
|
openWorldHint: false,
|
|
66229
66565
|
readOnlyHint: true
|
|
66230
66566
|
},
|
|
66231
|
-
args:
|
|
66567
|
+
args: args59,
|
|
66232
66568
|
tool: async (client, args, ctx) => {
|
|
66233
66569
|
const [result] = await visibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66234
66570
|
if (!result.ok) {
|
|
@@ -66384,9 +66720,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
66384
66720
|
|
|
66385
66721
|
// src/funcs/visibilityOverviewRetrieve.ts
|
|
66386
66722
|
function visibilityOverviewRetrieve(client$, request, options) {
|
|
66387
|
-
return new APIPromise($
|
|
66723
|
+
return new APIPromise($do75(client$, request, options));
|
|
66388
66724
|
}
|
|
66389
|
-
async function $
|
|
66725
|
+
async function $do75(client$, request, options) {
|
|
66390
66726
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
66391
66727
|
if (!parsed$.ok) {
|
|
66392
66728
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66461,12 +66797,12 @@ var init_visibilityOverviewRetrieve = __esm(() => {
|
|
|
66461
66797
|
});
|
|
66462
66798
|
|
|
66463
66799
|
// src/mcp-server/tools/visibilityOverviewRetrieve.ts
|
|
66464
|
-
var
|
|
66800
|
+
var args60, tool$visibilityOverviewRetrieve;
|
|
66465
66801
|
var init_visibilityOverviewRetrieve2 = __esm(() => {
|
|
66466
66802
|
init_visibilityOverviewRetrieve();
|
|
66467
66803
|
init_v2visibilityoverviewretrieveop();
|
|
66468
66804
|
init_tools();
|
|
66469
|
-
|
|
66805
|
+
args60 = {
|
|
66470
66806
|
request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
|
|
66471
66807
|
};
|
|
66472
66808
|
tool$visibilityOverviewRetrieve = {
|
|
@@ -66481,7 +66817,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
|
|
|
66481
66817
|
openWorldHint: false,
|
|
66482
66818
|
readOnlyHint: true
|
|
66483
66819
|
},
|
|
66484
|
-
args:
|
|
66820
|
+
args: args60,
|
|
66485
66821
|
tool: async (client, args, ctx) => {
|
|
66486
66822
|
const [result] = await visibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66487
66823
|
if (!result.ok) {
|
|
@@ -66603,9 +66939,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
66603
66939
|
|
|
66604
66940
|
// src/funcs/visibilityPromptsRetrieve.ts
|
|
66605
66941
|
function visibilityPromptsRetrieve(client$, request, options) {
|
|
66606
|
-
return new APIPromise($
|
|
66942
|
+
return new APIPromise($do76(client$, request, options));
|
|
66607
66943
|
}
|
|
66608
|
-
async function $
|
|
66944
|
+
async function $do76(client$, request, options) {
|
|
66609
66945
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
66610
66946
|
if (!parsed$.ok) {
|
|
66611
66947
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66680,12 +67016,12 @@ var init_visibilityPromptsRetrieve = __esm(() => {
|
|
|
66680
67016
|
});
|
|
66681
67017
|
|
|
66682
67018
|
// src/mcp-server/tools/visibilityPromptsRetrieve.ts
|
|
66683
|
-
var
|
|
67019
|
+
var args61, tool$visibilityPromptsRetrieve;
|
|
66684
67020
|
var init_visibilityPromptsRetrieve2 = __esm(() => {
|
|
66685
67021
|
init_visibilityPromptsRetrieve();
|
|
66686
67022
|
init_v2visibilitypromptsretrieveop();
|
|
66687
67023
|
init_tools();
|
|
66688
|
-
|
|
67024
|
+
args61 = {
|
|
66689
67025
|
request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
|
|
66690
67026
|
};
|
|
66691
67027
|
tool$visibilityPromptsRetrieve = {
|
|
@@ -66700,7 +67036,7 @@ Returns per-topic and per-prompt visibility metrics including recommendation sco
|
|
|
66700
67036
|
openWorldHint: false,
|
|
66701
67037
|
readOnlyHint: true
|
|
66702
67038
|
},
|
|
66703
|
-
args:
|
|
67039
|
+
args: args61,
|
|
66704
67040
|
tool: async (client, args, ctx) => {
|
|
66705
67041
|
const [result] = await visibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66706
67042
|
if (!result.ok) {
|
|
@@ -66724,7 +67060,7 @@ function createMCPServer(deps) {
|
|
|
66724
67060
|
sizes: ["any"]
|
|
66725
67061
|
}],
|
|
66726
67062
|
name: "LightsageMcp",
|
|
66727
|
-
version: "0.4.
|
|
67063
|
+
version: "0.4.20"
|
|
66728
67064
|
});
|
|
66729
67065
|
const getClient = deps.getSDK || (() => new LightsageMcpCore({
|
|
66730
67066
|
security: deps.security,
|
|
@@ -66756,6 +67092,8 @@ function createMCPServer(deps) {
|
|
|
66756
67092
|
tool(tool$promptsTopicsCreate);
|
|
66757
67093
|
tool(tool$promptsTopicsUpdate);
|
|
66758
67094
|
tool(tool$promptsTopicsDelete);
|
|
67095
|
+
tool(tool$promptsTargetsList);
|
|
67096
|
+
tool(tool$promptsTargetsSet);
|
|
66759
67097
|
tool(tool$promptsRunsList);
|
|
66760
67098
|
tool(tool$promptsRunsRetrieve);
|
|
66761
67099
|
tool(tool$promptsRetrieve);
|
|
@@ -66877,6 +67215,8 @@ var init_server3 = __esm(() => {
|
|
|
66877
67215
|
init_promptsRunsList2();
|
|
66878
67216
|
init_promptsRunsRetrieve2();
|
|
66879
67217
|
init_promptsRunStatus2();
|
|
67218
|
+
init_promptsTargetsList2();
|
|
67219
|
+
init_promptsTargetsSet2();
|
|
66880
67220
|
init_promptsTopicsCreate2();
|
|
66881
67221
|
init_promptsTopicsDelete2();
|
|
66882
67222
|
init_promptsTopicsList2();
|
|
@@ -66945,7 +67285,7 @@ Returns per-topic and per-prompt visibility metrics including recommendation sco
|
|
|
66945
67285
|
},
|
|
66946
67286
|
{
|
|
66947
67287
|
name: "prompts-list",
|
|
66948
|
-
description: "List Prompts\n\nReturns active and inactive prompts by default. Set `include_archived` to include archived prompts."
|
|
67288
|
+
description: "List Prompts\n\nReturns active and inactive prompts by default, newest first. Set `include_archived` to include archived prompts. Without `limit`, every matching prompt is returned in one response. Set `limit` to page through them: `count` is the total across every page, so request the next page with `offset` until `offset + limit` reaches `count`."
|
|
66949
67289
|
},
|
|
66950
67290
|
{
|
|
66951
67291
|
name: "prompts-create",
|
|
@@ -66975,6 +67315,14 @@ Renames a prompt topic and returns the updated topic.`
|
|
|
66975
67315
|
name: "prompts-topics-delete",
|
|
66976
67316
|
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
67317
|
},
|
|
67318
|
+
{
|
|
67319
|
+
name: "prompts-targets-list",
|
|
67320
|
+
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."
|
|
67321
|
+
},
|
|
67322
|
+
{
|
|
67323
|
+
name: "prompts-targets-set",
|
|
67324
|
+
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."
|
|
67325
|
+
},
|
|
66978
67326
|
{
|
|
66979
67327
|
name: "prompts-runs-list",
|
|
66980
67328
|
description: `List Prompt Runs
|
|
@@ -67012,7 +67360,8 @@ Archives the prompt and excludes it from normal listings while preserving its hi
|
|
|
67012
67360
|
Queue saved prompts on answer engines and coding agents.
|
|
67013
67361
|
|
|
67014
67362
|
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
|
|
67363
|
+
prompts. By default the run uses the organization's configured targets,
|
|
67364
|
+
listed by \`GET /v2/prompts/targets\`.
|
|
67016
67365
|
Provide \`agent\` with IDs from \`GET /v2/agents\` to run the prompts on
|
|
67017
67366
|
specific coding-agent harnesses and models instead, for example to compare
|
|
67018
67367
|
how several coding tools answer the same developer question. Results
|
|
@@ -67246,7 +67595,7 @@ Returns recorded attempts for an Agent Preference eval, newest first, each with
|
|
|
67246
67595
|
},
|
|
67247
67596
|
{
|
|
67248
67597
|
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."
|
|
67598
|
+
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
67599
|
},
|
|
67251
67600
|
{
|
|
67252
67601
|
name: "repositories-list",
|
|
@@ -68206,7 +68555,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
68206
68555
|
<h1>Instructions</h1>
|
|
68207
68556
|
<p>One-click installation for Claude Desktop users</p>
|
|
68208
68557
|
<div class="instruction-item">
|
|
68209
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.
|
|
68558
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.20/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
68210
68559
|
\uD83D\uDCE5 Download MCP Bundle
|
|
68211
68560
|
</a>
|
|
68212
68561
|
</div>
|
|
@@ -71106,7 +71455,7 @@ var routes = buildRouteMap({
|
|
|
71106
71455
|
var app = buildApplication(routes, {
|
|
71107
71456
|
name: "mcp",
|
|
71108
71457
|
versionInfo: {
|
|
71109
|
-
currentVersion: "0.4.
|
|
71458
|
+
currentVersion: "0.4.20"
|
|
71110
71459
|
}
|
|
71111
71460
|
});
|
|
71112
71461
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -71114,5 +71463,5 @@ export {
|
|
|
71114
71463
|
app
|
|
71115
71464
|
};
|
|
71116
71465
|
|
|
71117
|
-
//# debugId=
|
|
71466
|
+
//# debugId=D2DE954636D1AFD064756E2164756E21
|
|
71118
71467
|
//# sourceMappingURL=mcp-server.js.map
|