@lightsage/mcp 0.4.1 → 0.4.3

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.
Files changed (158) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +527 -153
  3. package/bin/mcp-server.js.map +31 -22
  4. package/esm/funcs/promptsRun.d.ts +21 -0
  5. package/esm/funcs/promptsRun.d.ts.map +1 -0
  6. package/esm/funcs/promptsRun.js +88 -0
  7. package/esm/funcs/promptsRun.js.map +1 -0
  8. package/esm/funcs/promptsRunStatus.d.ts +19 -0
  9. package/esm/funcs/promptsRunStatus.d.ts.map +1 -0
  10. package/esm/funcs/promptsRunStatus.js +91 -0
  11. package/esm/funcs/promptsRunStatus.js.map +1 -0
  12. package/esm/funcs/promptsV2PromptsRetrieve.d.ts +1 -1
  13. package/esm/funcs/promptsV2PromptsRetrieve.js +1 -1
  14. package/esm/funcs/promptsV2PromptsUpdate.d.ts +1 -1
  15. package/esm/funcs/promptsV2PromptsUpdate.js +1 -1
  16. package/esm/landing-page.js +1 -1
  17. package/esm/lib/config.d.ts +2 -2
  18. package/esm/lib/config.js +2 -2
  19. package/esm/mcp-server/mcp-server.js +1 -1
  20. package/esm/mcp-server/server.d.ts.map +1 -1
  21. package/esm/mcp-server/server.js +5 -1
  22. package/esm/mcp-server/server.js.map +1 -1
  23. package/esm/mcp-server/tools/promptsRun.d.ts +7 -0
  24. package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -0
  25. package/esm/mcp-server/tools/promptsRun.js +40 -0
  26. package/esm/mcp-server/tools/promptsRun.js.map +1 -0
  27. package/esm/mcp-server/tools/promptsRunStatus.d.ts +7 -0
  28. package/esm/mcp-server/tools/promptsRunStatus.d.ts.map +1 -0
  29. package/esm/mcp-server/tools/promptsRunStatus.js +38 -0
  30. package/esm/mcp-server/tools/promptsRunStatus.js.map +1 -0
  31. package/esm/mcp-server/tools/promptsV2PromptsRetrieve.js +1 -1
  32. package/esm/mcp-server/tools/promptsV2PromptsRetrieve.js.map +1 -1
  33. package/esm/mcp-server/tools/promptsV2PromptsUpdate.js +1 -1
  34. package/esm/mcp-server/tools/promptsV2PromptsUpdate.js.map +1 -1
  35. package/esm/models/createv2promptrequest.d.ts +2 -0
  36. package/esm/models/createv2promptrequest.d.ts.map +1 -1
  37. package/esm/models/createv2promptrequest.js +3 -0
  38. package/esm/models/createv2promptrequest.js.map +1 -1
  39. package/esm/models/createv2promptrunrequest.d.ts +7 -0
  40. package/esm/models/createv2promptrunrequest.d.ts.map +1 -0
  41. package/esm/models/createv2promptrunrequest.js +10 -0
  42. package/esm/models/createv2promptrunrequest.js.map +1 -0
  43. package/esm/models/updatev2promptrequest.d.ts +2 -0
  44. package/esm/models/updatev2promptrequest.d.ts.map +1 -1
  45. package/esm/models/updatev2promptrequest.js +3 -0
  46. package/esm/models/updatev2promptrequest.js.map +1 -1
  47. package/esm/models/v2evalrunscreateop.d.ts +3 -3
  48. package/esm/models/v2evalrunscreateop.d.ts.map +1 -1
  49. package/esm/models/v2evalrunscreateop.js +2 -2
  50. package/esm/models/v2evalrunscreateop.js.map +1 -1
  51. package/esm/models/v2listpromptsresponse.d.ts +8 -0
  52. package/esm/models/v2listpromptsresponse.d.ts.map +1 -0
  53. package/esm/models/v2listpromptsresponse.js +11 -0
  54. package/esm/models/v2listpromptsresponse.js.map +1 -0
  55. package/esm/models/v2promptbatchresponse.d.ts +10 -0
  56. package/esm/models/v2promptbatchresponse.d.ts.map +1 -0
  57. package/esm/models/v2promptbatchresponse.js +13 -0
  58. package/esm/models/v2promptbatchresponse.js.map +1 -0
  59. package/esm/models/{publicprompt.d.ts → v2promptresponse.d.ts} +9 -7
  60. package/esm/models/v2promptresponse.d.ts.map +1 -0
  61. package/esm/models/{publicprompt.js → v2promptresponse.js} +8 -6
  62. package/esm/models/v2promptresponse.js.map +1 -0
  63. package/esm/models/v2promptrundetail.d.ts +6 -0
  64. package/esm/models/v2promptrundetail.d.ts.map +1 -1
  65. package/esm/models/v2promptrundetail.js +7 -0
  66. package/esm/models/v2promptrundetail.js.map +1 -1
  67. package/esm/models/v2promptrunjobresponse.d.ts +46 -0
  68. package/esm/models/v2promptrunjobresponse.d.ts.map +1 -0
  69. package/esm/models/v2promptrunjobresponse.js +49 -0
  70. package/esm/models/v2promptrunjobresponse.js.map +1 -0
  71. package/esm/models/v2promptrunscreateop.d.ts +40 -0
  72. package/esm/models/v2promptrunscreateop.d.ts.map +1 -0
  73. package/esm/models/v2promptrunscreateop.js +33 -0
  74. package/esm/models/v2promptrunscreateop.js.map +1 -0
  75. package/esm/models/v2promptrunsettings.d.ts +26 -0
  76. package/esm/models/v2promptrunsettings.d.ts.map +1 -0
  77. package/esm/models/v2promptrunsettings.js +26 -0
  78. package/esm/models/v2promptrunsettings.js.map +1 -0
  79. package/esm/models/v2promptrunsettingsinput.d.ts +20 -0
  80. package/esm/models/v2promptrunsettingsinput.d.ts.map +1 -0
  81. package/esm/models/v2promptrunsettingsinput.js +23 -0
  82. package/esm/models/v2promptrunsettingsinput.js.map +1 -0
  83. package/esm/models/v2promptrunstatusretrieveop.d.ts +24 -0
  84. package/esm/models/v2promptrunstatusretrieveop.d.ts.map +1 -0
  85. package/esm/models/v2promptrunstatusretrieveop.js +23 -0
  86. package/esm/models/v2promptrunstatusretrieveop.js.map +1 -0
  87. package/esm/models/v2promptrunsummary.d.ts +6 -0
  88. package/esm/models/v2promptrunsummary.d.ts.map +1 -1
  89. package/esm/models/v2promptrunsummary.js +7 -0
  90. package/esm/models/v2promptrunsummary.js.map +1 -1
  91. package/esm/models/v2promptscreateop.d.ts +2 -2
  92. package/esm/models/v2promptscreateop.d.ts.map +1 -1
  93. package/esm/models/v2promptscreateop.js +2 -2
  94. package/esm/models/v2promptscreateop.js.map +1 -1
  95. package/esm/models/v2promptslistop.d.ts +2 -2
  96. package/esm/models/v2promptslistop.d.ts.map +1 -1
  97. package/esm/models/v2promptslistop.js +2 -2
  98. package/esm/models/v2promptslistop.js.map +1 -1
  99. package/esm/models/v2promptsretrieveop.d.ts +2 -2
  100. package/esm/models/v2promptsretrieveop.d.ts.map +1 -1
  101. package/esm/models/v2promptsretrieveop.js +2 -2
  102. package/esm/models/v2promptsretrieveop.js.map +1 -1
  103. package/esm/models/v2promptsupdateop.d.ts +2 -2
  104. package/esm/models/v2promptsupdateop.d.ts.map +1 -1
  105. package/esm/models/v2promptsupdateop.js +2 -2
  106. package/esm/models/v2promptsupdateop.js.map +1 -1
  107. package/esm/models/validationerror.d.ts +4 -0
  108. package/esm/models/validationerror.d.ts.map +1 -1
  109. package/esm/models/validationerror.js +3 -0
  110. package/esm/models/validationerror.js.map +1 -1
  111. package/esm/tool-names.d.ts.map +1 -1
  112. package/esm/tool-names.js +10 -2
  113. package/esm/tool-names.js.map +1 -1
  114. package/package.json +9 -4
  115. package/src/funcs/promptsRun.ts +150 -0
  116. package/src/funcs/promptsRunStatus.ts +156 -0
  117. package/src/funcs/promptsV2PromptsRetrieve.ts +1 -1
  118. package/src/funcs/promptsV2PromptsUpdate.ts +1 -1
  119. package/src/landing-page.ts +1 -1
  120. package/src/lib/config.ts +2 -2
  121. package/src/mcp-server/mcp-server.ts +1 -1
  122. package/src/mcp-server/server.ts +5 -1
  123. package/src/mcp-server/tools/promptsRun.ts +48 -0
  124. package/src/mcp-server/tools/promptsRunStatus.ts +46 -0
  125. package/src/mcp-server/tools/promptsV2PromptsRetrieve.ts +1 -1
  126. package/src/mcp-server/tools/promptsV2PromptsUpdate.ts +1 -1
  127. package/src/models/createv2promptrequest.ts +9 -0
  128. package/src/models/createv2promptrunrequest.ts +22 -0
  129. package/src/models/updatev2promptrequest.ts +9 -0
  130. package/src/models/v2evalrunscreateop.ts +12 -4
  131. package/src/models/v2listpromptsresponse.ts +21 -0
  132. package/src/models/v2promptbatchresponse.ts +27 -0
  133. package/src/models/{publicprompt.ts → v2promptresponse.ts} +29 -21
  134. package/src/models/v2promptrundetail.ts +21 -0
  135. package/src/models/v2promptrunjobresponse.ts +97 -0
  136. package/src/models/v2promptrunscreateop.ts +100 -0
  137. package/src/models/v2promptrunsettings.ts +50 -0
  138. package/src/models/v2promptrunsettingsinput.ts +47 -0
  139. package/src/models/v2promptrunstatusretrieveop.ts +64 -0
  140. package/src/models/v2promptrunsummary.ts +21 -0
  141. package/src/models/v2promptscreateop.ts +5 -5
  142. package/src/models/v2promptslistop.ts +5 -5
  143. package/src/models/v2promptsretrieveop.ts +6 -3
  144. package/src/models/v2promptsupdateop.ts +6 -3
  145. package/src/models/validationerror.ts +8 -0
  146. package/src/tool-names.ts +10 -2
  147. package/esm/models/listpromptsresponse.d.ts +0 -8
  148. package/esm/models/listpromptsresponse.d.ts.map +0 -1
  149. package/esm/models/listpromptsresponse.js +0 -12
  150. package/esm/models/listpromptsresponse.js.map +0 -1
  151. package/esm/models/publicprompt.d.ts.map +0 -1
  152. package/esm/models/publicprompt.js.map +0 -1
  153. package/esm/models/publicpromptbatchresponse.d.ts +0 -10
  154. package/esm/models/publicpromptbatchresponse.d.ts.map +0 -1
  155. package/esm/models/publicpromptbatchresponse.js +0 -13
  156. package/esm/models/publicpromptbatchresponse.js.map +0 -1
  157. package/src/models/listpromptsresponse.ts +0 -15
  158. package/src/models/publicpromptbatchresponse.ts +0 -25
package/bin/mcp-server.js CHANGED
@@ -52844,9 +52844,9 @@ var init_config = __esm(() => {
52844
52844
  SDK_METADATA = {
52845
52845
  language: "typescript",
52846
52846
  openapiDocVersion: "1.0.0",
52847
- sdkVersion: "0.4.1",
52847
+ sdkVersion: "0.4.3",
52848
52848
  genVersion: "2.941.0",
52849
- userAgent: "speakeasy-sdk/mcp-typescript 0.4.1 2.941.0 1.0.0 @lightsage/mcp"
52849
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.3 2.941.0 1.0.0 @lightsage/mcp"
52850
52850
  };
52851
52851
  });
52852
52852
 
@@ -54639,14 +54639,17 @@ Generates and saves a draft article using AI. Returns the new content record wit
54639
54639
  });
54640
54640
 
54641
54641
  // src/models/validationerror.ts
54642
- var Loc$zodSchema, ValidationError$zodSchema;
54642
+ var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
54643
54643
  var init_validationerror = __esm(() => {
54644
54644
  init_zod();
54645
54645
  Loc$zodSchema = union([
54646
54646
  string2(),
54647
54647
  int()
54648
54648
  ]);
54649
+ Context$zodSchema = object({});
54649
54650
  ValidationError$zodSchema = object({
54651
+ ctx: lazy(() => Context$zodSchema).optional(),
54652
+ input: any().optional(),
54650
54653
  loc: array(union([
54651
54654
  string2(),
54652
54655
  int()
@@ -58840,6 +58843,308 @@ Returns one computed opportunity and its execution context for the selected date
58840
58843
  };
58841
58844
  });
58842
58845
 
58846
+ // src/models/createv2promptrunrequest.ts
58847
+ var CreateV2PromptRunRequest$zodSchema;
58848
+ var init_createv2promptrunrequest = __esm(() => {
58849
+ init_zod();
58850
+ CreateV2PromptRunRequest$zodSchema = object({
58851
+ force: boolean2().default(false).describe("Run even when a prompt already ran today on the configured platform and model."),
58852
+ prompt_ids: array(string2()).nullable().optional().describe("Prompt IDs from `GET /v2/prompts`. Omit this field to run all active prompts.")
58853
+ });
58854
+ });
58855
+
58856
+ // src/funcs/promptsRun.ts
58857
+ function promptsRun(client$, request, options) {
58858
+ return new APIPromise($do31(client$, request, options));
58859
+ }
58860
+ async function $do31(client$, request, options) {
58861
+ const parsed$ = safeParse4(request, (value$) => CreateV2PromptRunRequest$zodSchema.parse(value$), "Input validation failed");
58862
+ if (!parsed$.ok) {
58863
+ return [parsed$, { status: "invalid" }];
58864
+ }
58865
+ const payload$ = parsed$.value;
58866
+ const body$ = encodeJSON("body", payload$, { explode: true });
58867
+ const path$ = pathToFunc("/v2/prompts/runs")();
58868
+ const headers$ = new Headers(compactMap({
58869
+ "Content-Type": "application/json",
58870
+ Accept: "application/json"
58871
+ }));
58872
+ const securityInput = await extractSecurity(client$._options.security);
58873
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58874
+ const context = {
58875
+ options: client$._options,
58876
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
58877
+ operationID: "v2_prompt_runs_create",
58878
+ oAuth2Scopes: null,
58879
+ resolvedSecurity: requestSecurity,
58880
+ securitySource: client$._options.security,
58881
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
58882
+ retryCodes: options?.retryCodes || [
58883
+ "429",
58884
+ "500",
58885
+ "502",
58886
+ "503",
58887
+ "504"
58888
+ ]
58889
+ };
58890
+ const requestRes = client$._createRequest(context, {
58891
+ security: requestSecurity,
58892
+ method: "POST",
58893
+ baseURL: options?.serverURL,
58894
+ path: path$,
58895
+ headers: headers$,
58896
+ body: body$,
58897
+ userAgent: client$._options.userAgent,
58898
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
58899
+ }, options);
58900
+ if (!requestRes.ok) {
58901
+ return [requestRes, { status: "invalid" }];
58902
+ }
58903
+ const req$ = requestRes.value;
58904
+ const doResult = await client$._do(req$, {
58905
+ context,
58906
+ errorCodes: [],
58907
+ retryConfig: context.retryConfig,
58908
+ retryCodes: context.retryCodes
58909
+ });
58910
+ if (!doResult.ok) {
58911
+ return [doResult, { status: "request-error", request: req$ }];
58912
+ }
58913
+ return [doResult, {
58914
+ status: "complete",
58915
+ request: req$,
58916
+ response: doResult.value
58917
+ }];
58918
+ }
58919
+ var init_promptsRun = __esm(() => {
58920
+ init_encodings();
58921
+ init_primitives();
58922
+ init_schemas4();
58923
+ init_security();
58924
+ init_url();
58925
+ init_createv2promptrunrequest();
58926
+ init_async();
58927
+ });
58928
+
58929
+ // src/mcp-server/tools/promptsRun.ts
58930
+ var args25, tool$promptsRun;
58931
+ var init_promptsRun2 = __esm(() => {
58932
+ init_promptsRun();
58933
+ init_createv2promptrunrequest();
58934
+ init_tools();
58935
+ args25 = {
58936
+ request: CreateV2PromptRunRequest$zodSchema
58937
+ };
58938
+ tool$promptsRun = {
58939
+ name: "prompts-run",
58940
+ description: `Run Prompts
58941
+
58942
+ Queue saved prompts using the organization's configured targets.
58943
+
58944
+ Provide \`prompt_ids\` to run selected prompts, or omit them to run all active
58945
+ prompts. Saved prompt run settings apply to coding-agent targets. The
58946
+ response returns a run ID to poll with
58947
+ \`GET /v2/prompts/runs/{run_id}/status\`.`,
58948
+ annotations: {
58949
+ title: "",
58950
+ destructiveHint: false,
58951
+ idempotentHint: false,
58952
+ openWorldHint: false,
58953
+ readOnlyHint: false
58954
+ },
58955
+ args: args25,
58956
+ tool: async (client, args, ctx) => {
58957
+ const [result] = await promptsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58958
+ if (!result.ok) {
58959
+ return {
58960
+ content: [{ type: "text", text: result.error.message }],
58961
+ isError: true
58962
+ };
58963
+ }
58964
+ return formatResult(result.value);
58965
+ }
58966
+ };
58967
+ });
58968
+
58969
+ // src/models/v2promptrunjobresponse.ts
58970
+ var V2PromptRunJobResponseStatusEnum$zodSchema, Status$zodSchema, V2PromptRunJobResponse$zodSchema;
58971
+ var init_v2promptrunjobresponse = __esm(() => {
58972
+ init_zod();
58973
+ init_publicevalrunprogress();
58974
+ V2PromptRunJobResponseStatusEnum$zodSchema = _enum([
58975
+ "pending",
58976
+ "running",
58977
+ "summarizing",
58978
+ "completed",
58979
+ "failed",
58980
+ "cancelled",
58981
+ "interrupted"
58982
+ ]);
58983
+ Status$zodSchema = union([
58984
+ V2PromptRunJobResponseStatusEnum$zodSchema,
58985
+ string2()
58986
+ ]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.");
58987
+ V2PromptRunJobResponse$zodSchema = object({
58988
+ completed_at: string2().nullable().optional().describe("Can be set while `status` is still `summarizing`; use `status` to detect completion."),
58989
+ created_at: string2().nullable().optional(),
58990
+ dispatch_id: string2().nullable().optional(),
58991
+ error: string2().nullable().optional(),
58992
+ estimated_cost: number2().nullable().optional().describe("The estimated credit cost for prompt jobs or estimated USD cost for API Performance jobs. Null when no estimate is available."),
58993
+ eval_count: int().nullable().optional(),
58994
+ id: string2().describe("Run ID to poll with `GET /v2/prompts/runs/{run_id}/status`."),
58995
+ job_id: string2().describe("Parent job ID. It currently matches `id`."),
58996
+ model_count: int().nullable().optional(),
58997
+ progress: PublicEvalRunProgress$zodSchema.optional(),
58998
+ source_type: literal("prompts").default("prompts").optional(),
58999
+ stage: string2().nullable().optional().describe("Current lifecycle stage, including `retrying` while interrupted child jobs wait to be reclaimed."),
59000
+ started_at: string2().nullable().optional(),
59001
+ status: union([
59002
+ V2PromptRunJobResponseStatusEnum$zodSchema,
59003
+ string2()
59004
+ ]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`."),
59005
+ type: literal("prompts").default("prompts").optional()
59006
+ });
59007
+ });
59008
+
59009
+ // src/models/v2promptrunstatusretrieveop.ts
59010
+ var V2PromptRunStatusRetrieveRequest$zodSchema, V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema, V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema, V2PromptRunStatusRetrieveResponse$zodSchema;
59011
+ var init_v2promptrunstatusretrieveop = __esm(() => {
59012
+ init_zod();
59013
+ init_httpvalidationerror();
59014
+ init_v2promptrunjobresponse();
59015
+ V2PromptRunStatusRetrieveRequest$zodSchema = object({
59016
+ run_id: string2().describe("Run ID returned by `POST /v2/prompts/runs`, not a stored prompt result ID.")
59017
+ });
59018
+ V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema = object({
59019
+ detail: string2()
59020
+ }).describe("The prompt run job does not exist or is not visible to this API key.");
59021
+ V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema = object({
59022
+ detail: string2()
59023
+ }).describe("The prompt run ID is not a valid UUID.");
59024
+ V2PromptRunStatusRetrieveResponse$zodSchema = union([
59025
+ V2PromptRunJobResponse$zodSchema,
59026
+ lazy(() => V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema),
59027
+ lazy(() => V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema),
59028
+ HTTPValidationError$zodSchema
59029
+ ]);
59030
+ });
59031
+
59032
+ // src/funcs/promptsRunStatus.ts
59033
+ function promptsRunStatus(client$, request, options) {
59034
+ return new APIPromise($do32(client$, request, options));
59035
+ }
59036
+ async function $do32(client$, request, options) {
59037
+ const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59038
+ if (!parsed$.ok) {
59039
+ return [parsed$, { status: "invalid" }];
59040
+ }
59041
+ const payload$ = parsed$.value;
59042
+ const body$ = null;
59043
+ const pathParams$ = {
59044
+ run_id: encodeSimple("run_id", payload$.run_id, {
59045
+ explode: false,
59046
+ charEncoding: "percent"
59047
+ })
59048
+ };
59049
+ const path$ = pathToFunc("/v2/prompts/runs/{run_id}/status")(pathParams$);
59050
+ const headers$ = new Headers(compactMap({
59051
+ Accept: "application/json"
59052
+ }));
59053
+ const securityInput = await extractSecurity(client$._options.security);
59054
+ const requestSecurity = resolveGlobalSecurity(securityInput);
59055
+ const context = {
59056
+ options: client$._options,
59057
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
59058
+ operationID: "v2_prompt_run_status_retrieve",
59059
+ oAuth2Scopes: null,
59060
+ resolvedSecurity: requestSecurity,
59061
+ securitySource: client$._options.security,
59062
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
59063
+ retryCodes: options?.retryCodes || [
59064
+ "429",
59065
+ "500",
59066
+ "502",
59067
+ "503",
59068
+ "504"
59069
+ ]
59070
+ };
59071
+ const requestRes = client$._createRequest(context, {
59072
+ security: requestSecurity,
59073
+ method: "GET",
59074
+ baseURL: options?.serverURL,
59075
+ path: path$,
59076
+ headers: headers$,
59077
+ body: body$,
59078
+ userAgent: client$._options.userAgent,
59079
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
59080
+ }, options);
59081
+ if (!requestRes.ok) {
59082
+ return [requestRes, { status: "invalid" }];
59083
+ }
59084
+ const req$ = requestRes.value;
59085
+ const doResult = await client$._do(req$, {
59086
+ context,
59087
+ errorCodes: [],
59088
+ retryConfig: context.retryConfig,
59089
+ retryCodes: context.retryCodes
59090
+ });
59091
+ if (!doResult.ok) {
59092
+ return [doResult, { status: "request-error", request: req$ }];
59093
+ }
59094
+ return [doResult, {
59095
+ status: "complete",
59096
+ request: req$,
59097
+ response: doResult.value
59098
+ }];
59099
+ }
59100
+ var init_promptsRunStatus = __esm(() => {
59101
+ init_encodings();
59102
+ init_primitives();
59103
+ init_schemas4();
59104
+ init_security();
59105
+ init_url();
59106
+ init_v2promptrunstatusretrieveop();
59107
+ init_async();
59108
+ });
59109
+
59110
+ // src/mcp-server/tools/promptsRunStatus.ts
59111
+ var args26, tool$promptsRunStatus;
59112
+ var init_promptsRunStatus2 = __esm(() => {
59113
+ init_promptsRunStatus();
59114
+ init_v2promptrunstatusretrieveop();
59115
+ init_tools();
59116
+ args26 = {
59117
+ request: V2PromptRunStatusRetrieveRequest$zodSchema
59118
+ };
59119
+ tool$promptsRunStatus = {
59120
+ name: "prompts-run-status",
59121
+ description: `Get Prompt Run Status
59122
+
59123
+ Return status and progress for a queued prompt run.
59124
+
59125
+ Poll this endpoint until \`status\` is \`completed\`, \`failed\`, or \`cancelled\`.
59126
+ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
59127
+ annotations: {
59128
+ title: "",
59129
+ destructiveHint: false,
59130
+ idempotentHint: false,
59131
+ openWorldHint: false,
59132
+ readOnlyHint: true
59133
+ },
59134
+ args: args26,
59135
+ tool: async (client, args, ctx) => {
59136
+ const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59137
+ if (!result.ok) {
59138
+ return {
59139
+ content: [{ type: "text", text: result.error.message }],
59140
+ isError: true
59141
+ };
59142
+ }
59143
+ return formatResult(result.value);
59144
+ }
59145
+ };
59146
+ });
59147
+
58843
59148
  // src/models/v2promptrunplatform.ts
58844
59149
  var V2PromptRunPlatform$zodSchema;
58845
59150
  var init_v2promptrunplatform = __esm(() => {
@@ -58876,6 +59181,7 @@ var init_v2promptrunprompt = __esm(() => {
58876
59181
  var V2PromptRunSummaryTargetKind$zodSchema, V2PromptRunSummary$zodSchema;
58877
59182
  var init_v2promptrunsummary = __esm(() => {
58878
59183
  init_zod();
59184
+ init_searchgroundingmode();
58879
59185
  init_v2promptrunplatform();
58880
59186
  init_v2promptrunprompt();
58881
59187
  V2PromptRunSummaryTargetKind$zodSchema = _enum([
@@ -58885,6 +59191,8 @@ var init_v2promptrunsummary = __esm(() => {
58885
59191
  V2PromptRunSummary$zodSchema = object({
58886
59192
  citation_count: int().default(0),
58887
59193
  created_at: string2().nullable().optional(),
59194
+ grounding_qualification_reason: string2().nullable().optional(),
59195
+ grounding_qualified: boolean2().nullable().optional().describe("Whether the run satisfied the requested web access mode. Null means the default mode was used or isolation could not be proven."),
58888
59196
  harness: string2().nullable().optional().describe("Coding-agent harness for agent runs; otherwise the answer platform identifier."),
58889
59197
  id: string2(),
58890
59198
  is_brand_mentioned: boolean2().nullable().optional(),
@@ -58894,8 +59202,11 @@ var init_v2promptrunsummary = __esm(() => {
58894
59202
  prompt_id: string2(),
58895
59203
  response_preview: string2().nullable().optional(),
58896
59204
  run_date: string2(),
59205
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Web access mode requested for this run. Null for runs recorded before web access was tracked."),
59206
+ search_observed: boolean2().nullable().optional(),
58897
59207
  target_kind: V2PromptRunSummaryTargetKind$zodSchema.nullable().optional(),
58898
- tool_call_count: int().nullable().optional().describe("Coding-agent tool invocations, counting a call and its result once. Matches the length of `tool_calls` on the detail response; null for answer-engine runs.")
59208
+ tool_call_count: int().nullable().optional().describe("Coding-agent tool invocations, counting a call and its result once. Matches the length of `tool_calls` on the detail response; null for answer-engine runs."),
59209
+ web_retrieval_observed: boolean2().nullable().optional().describe("Whether the coding agent was observed searching or fetching from the web. Null when not measured, including answer-engine runs.")
58899
59210
  });
58900
59211
  });
58901
59212
 
@@ -58934,9 +59245,9 @@ var init_v2promptrunslistop = __esm(() => {
58934
59245
 
58935
59246
  // src/funcs/promptsV2PromptRunsList.ts
58936
59247
  function promptsV2PromptRunsList(client$, request, options) {
58937
- return new APIPromise($do31(client$, request, options));
59248
+ return new APIPromise($do33(client$, request, options));
58938
59249
  }
58939
- async function $do31(client$, request, options) {
59250
+ async function $do33(client$, request, options) {
58940
59251
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
58941
59252
  if (!parsed$.ok) {
58942
59253
  return [parsed$, { status: "invalid" }];
@@ -59014,12 +59325,12 @@ var init_promptsV2PromptRunsList = __esm(() => {
59014
59325
  });
59015
59326
 
59016
59327
  // src/mcp-server/tools/promptsV2PromptRunsList.ts
59017
- var args25, tool$promptsV2PromptRunsList;
59328
+ var args27, tool$promptsV2PromptRunsList;
59018
59329
  var init_promptsV2PromptRunsList2 = __esm(() => {
59019
59330
  init_promptsV2PromptRunsList();
59020
59331
  init_v2promptrunslistop();
59021
59332
  init_tools();
59022
- args25 = {
59333
+ args27 = {
59023
59334
  request: V2PromptRunsListRequest$zodSchema.optional()
59024
59335
  };
59025
59336
  tool$promptsV2PromptRunsList = {
@@ -59034,7 +59345,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
59034
59345
  openWorldHint: false,
59035
59346
  readOnlyHint: true
59036
59347
  },
59037
- args: args25,
59348
+ args: args27,
59038
59349
  tool: async (client, args, ctx) => {
59039
59350
  const [result] = await promptsV2PromptRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59040
59351
  if (!result.ok) {
@@ -59094,6 +59405,7 @@ var init_v2promptrunmention = __esm(() => {
59094
59405
  var V2PromptRunDetailTargetKind$zodSchema, V2PromptRunDetail$zodSchema;
59095
59406
  var init_v2promptrundetail = __esm(() => {
59096
59407
  init_zod();
59408
+ init_searchgroundingmode();
59097
59409
  init_v2promptruncitation();
59098
59410
  init_v2promptrunmention();
59099
59411
  init_v2promptrunplatform();
@@ -59107,6 +59419,8 @@ var init_v2promptrundetail = __esm(() => {
59107
59419
  citations: array(V2PromptRunCitation$zodSchema).optional(),
59108
59420
  conversation_turns: array(record(string2(), any())).optional().describe("Sanitized interleaved text and tool-call trace captured for this run. It interleaves the agent's `text` turns with `tool_call` turns, so its length is not a tool-call count; use `tool_calls` or `tool_call_count`."),
59109
59421
  created_at: string2().nullable().optional(),
59422
+ grounding_qualification_reason: string2().nullable().optional(),
59423
+ grounding_qualified: boolean2().nullable().optional().describe("Whether the run satisfied the requested web access mode. Null means the default mode was used or isolation could not be proven."),
59110
59424
  harness: string2().nullable().optional().describe("Coding-agent harness for agent runs; otherwise the answer platform identifier."),
59111
59425
  id: string2(),
59112
59426
  is_brand_mentioned: boolean2().nullable().optional(),
@@ -59118,9 +59432,12 @@ var init_v2promptrundetail = __esm(() => {
59118
59432
  response: string2().nullable().optional(),
59119
59433
  response_preview: string2().nullable().optional(),
59120
59434
  run_date: string2(),
59435
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Web access mode requested for this run. Null for runs recorded before web access was tracked."),
59436
+ search_observed: boolean2().nullable().optional(),
59121
59437
  target_kind: V2PromptRunDetailTargetKind$zodSchema.nullable().optional(),
59122
59438
  tool_call_count: int().nullable().optional().describe("Coding-agent tool invocations, counting a call and its result once. Matches the length of `tool_calls` on the detail response; null for answer-engine runs."),
59123
- tool_calls: array(record(string2(), any())).optional().describe("Sanitized coding-agent tool invocations captured for this run, one entry per invocation with its result merged in.")
59439
+ tool_calls: array(record(string2(), any())).optional().describe("Sanitized coding-agent tool invocations captured for this run, one entry per invocation with its result merged in."),
59440
+ web_retrieval_observed: boolean2().nullable().optional().describe("Whether the coding agent was observed searching or fetching from the web. Null when not measured, including answer-engine runs.")
59124
59441
  });
59125
59442
  });
59126
59443
 
@@ -59141,9 +59458,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
59141
59458
 
59142
59459
  // src/funcs/promptsV2PromptRunsRetrieve.ts
59143
59460
  function promptsV2PromptRunsRetrieve(client$, request, options) {
59144
- return new APIPromise($do32(client$, request, options));
59461
+ return new APIPromise($do34(client$, request, options));
59145
59462
  }
59146
- async function $do32(client$, request, options) {
59463
+ async function $do34(client$, request, options) {
59147
59464
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59148
59465
  if (!parsed$.ok) {
59149
59466
  return [parsed$, { status: "invalid" }];
@@ -59218,12 +59535,12 @@ var init_promptsV2PromptRunsRetrieve = __esm(() => {
59218
59535
  });
59219
59536
 
59220
59537
  // src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts
59221
- var args26, tool$promptsV2PromptRunsRetrieve;
59538
+ var args28, tool$promptsV2PromptRunsRetrieve;
59222
59539
  var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
59223
59540
  init_promptsV2PromptRunsRetrieve();
59224
59541
  init_v2promptrunsretrieveop();
59225
59542
  init_tools();
59226
- args26 = {
59543
+ args28 = {
59227
59544
  request: V2PromptRunsRetrieveRequest$zodSchema
59228
59545
  };
59229
59546
  tool$promptsV2PromptRunsRetrieve = {
@@ -59238,7 +59555,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
59238
59555
  openWorldHint: false,
59239
59556
  readOnlyHint: true
59240
59557
  },
59241
- args: args26,
59558
+ args: args28,
59242
59559
  tool: async (client, args, ctx) => {
59243
59560
  const [result] = await promptsV2PromptRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59244
59561
  if (!result.ok) {
@@ -59252,12 +59569,30 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
59252
59569
  };
59253
59570
  });
59254
59571
 
59572
+ // src/models/v2promptrunsettingsinput.ts
59573
+ var V2PromptRunSettingsInputWebSearchInstruction$zodSchema, V2PromptRunSettingsInput$zodSchema;
59574
+ var init_v2promptrunsettingsinput = __esm(() => {
59575
+ init_zod();
59576
+ init_searchgroundingmode();
59577
+ V2PromptRunSettingsInputWebSearchInstruction$zodSchema = _enum([
59578
+ "omit",
59579
+ "append",
59580
+ "both"
59581
+ ]);
59582
+ V2PromptRunSettingsInput$zodSchema = object({
59583
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Web access for coding-agent runs of this prompt. `disabled` blocks web access in the agent sandbox, `enabled` requires the agent to retrieve from the web, and `default` leaves the choice to the agent. Answer engines are not affected. An eval-run target that sets `search_grounding` overrides this setting."),
59584
+ web_search_instruction: V2PromptRunSettingsInputWebSearchInstruction$zodSchema.nullable().optional().describe('Whether coding-agent runs append "Use web search." to the prompt. `both` runs the prompt once without and once with the instruction. Ignored when `search_grounding` is `disabled`. Answer engines always receive the prompt as written.')
59585
+ });
59586
+ });
59587
+
59255
59588
  // src/models/createv2promptrequest.ts
59256
59589
  var CreateV2PromptRequest$zodSchema;
59257
59590
  var init_createv2promptrequest = __esm(() => {
59258
59591
  init_zod();
59592
+ init_v2promptrunsettingsinput();
59259
59593
  CreateV2PromptRequest$zodSchema = object({
59260
59594
  platform_ids: array(string2()).optional().describe("Answer-platform IDs from the prompt configuration. Omit to attach none."),
59595
+ run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional().describe("Run settings that apply to coding-agent runs of this prompt. Omitted fields keep their current or default values."),
59261
59596
  text: string2(),
59262
59597
  topic_id: string2().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
59263
59598
  });
@@ -59275,9 +59610,9 @@ var init_createv2promptsrequest = __esm(() => {
59275
59610
 
59276
59611
  // src/funcs/promptsV2PromptsCreate.ts
59277
59612
  function promptsV2PromptsCreate(client$, request, options) {
59278
- return new APIPromise($do33(client$, request, options));
59613
+ return new APIPromise($do35(client$, request, options));
59279
59614
  }
59280
- async function $do33(client$, request, options) {
59615
+ async function $do35(client$, request, options) {
59281
59616
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
59282
59617
  if (!parsed$.ok) {
59283
59618
  return [parsed$, { status: "invalid" }];
@@ -59347,12 +59682,12 @@ var init_promptsV2PromptsCreate = __esm(() => {
59347
59682
  });
59348
59683
 
59349
59684
  // src/mcp-server/tools/promptsV2PromptsCreate.ts
59350
- var args27, tool$promptsV2PromptsCreate;
59685
+ var args29, tool$promptsV2PromptsCreate;
59351
59686
  var init_promptsV2PromptsCreate2 = __esm(() => {
59352
59687
  init_promptsV2PromptsCreate();
59353
59688
  init_createv2promptsrequest();
59354
59689
  init_tools();
59355
- args27 = {
59690
+ args29 = {
59356
59691
  request: CreateV2PromptsRequest$zodSchema
59357
59692
  };
59358
59693
  tool$promptsV2PromptsCreate = {
@@ -59367,7 +59702,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
59367
59702
  openWorldHint: false,
59368
59703
  readOnlyHint: false
59369
59704
  },
59370
- args: args27,
59705
+ args: args29,
59371
59706
  tool: async (client, args, ctx) => {
59372
59707
  const [result] = await promptsV2PromptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59373
59708
  if (!result.ok) {
@@ -59407,9 +59742,9 @@ var init_v2promptsdeleteop = __esm(() => {
59407
59742
 
59408
59743
  // src/funcs/promptsV2PromptsDelete.ts
59409
59744
  function promptsV2PromptsDelete(client$, request, options) {
59410
- return new APIPromise($do34(client$, request, options));
59745
+ return new APIPromise($do36(client$, request, options));
59411
59746
  }
59412
- async function $do34(client$, request, options) {
59747
+ async function $do36(client$, request, options) {
59413
59748
  const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
59414
59749
  if (!parsed$.ok) {
59415
59750
  return [parsed$, { status: "invalid" }];
@@ -59484,12 +59819,12 @@ var init_promptsV2PromptsDelete = __esm(() => {
59484
59819
  });
59485
59820
 
59486
59821
  // src/mcp-server/tools/promptsV2PromptsDelete.ts
59487
- var args28, tool$promptsV2PromptsDelete;
59822
+ var args30, tool$promptsV2PromptsDelete;
59488
59823
  var init_promptsV2PromptsDelete2 = __esm(() => {
59489
59824
  init_promptsV2PromptsDelete();
59490
59825
  init_v2promptsdeleteop();
59491
59826
  init_tools();
59492
- args28 = {
59827
+ args30 = {
59493
59828
  request: V2PromptsDeleteRequest$zodSchema
59494
59829
  };
59495
59830
  tool$promptsV2PromptsDelete = {
@@ -59504,7 +59839,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
59504
59839
  openWorldHint: false,
59505
59840
  readOnlyHint: false
59506
59841
  },
59507
- args: args28,
59842
+ args: args30,
59508
59843
  tool: async (client, args, ctx) => {
59509
59844
  const [result] = await promptsV2PromptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59510
59845
  if (!result.ok) {
@@ -59552,25 +59887,43 @@ var init_publicprompttopic = __esm(() => {
59552
59887
  });
59553
59888
  });
59554
59889
 
59555
- // src/models/publicprompt.ts
59556
- var PublicPromptStatus$zodSchema, PublicPrompt$zodSchema;
59557
- var init_publicprompt = __esm(() => {
59890
+ // src/models/v2promptrunsettings.ts
59891
+ var V2PromptRunSettingsWebSearchInstruction$zodSchema, V2PromptRunSettings$zodSchema;
59892
+ var init_v2promptrunsettings = __esm(() => {
59893
+ init_zod();
59894
+ init_searchgroundingmode();
59895
+ V2PromptRunSettingsWebSearchInstruction$zodSchema = _enum([
59896
+ "omit",
59897
+ "append",
59898
+ "both"
59899
+ ]).describe('Whether coding-agent runs append "Use web search." to the prompt. `both` runs the prompt once without and once with the instruction. Ignored when `search_grounding` is `disabled`. Answer engines always receive the prompt as written.');
59900
+ V2PromptRunSettings$zodSchema = object({
59901
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
59902
+ web_search_instruction: V2PromptRunSettingsWebSearchInstruction$zodSchema.default("omit").describe('Whether coding-agent runs append "Use web search." to the prompt. `both` runs the prompt once without and once with the instruction. Ignored when `search_grounding` is `disabled`. Answer engines always receive the prompt as written.')
59903
+ });
59904
+ });
59905
+
59906
+ // src/models/v2promptresponse.ts
59907
+ var V2PromptResponseStatus$zodSchema, V2PromptResponse$zodSchema;
59908
+ var init_v2promptresponse = __esm(() => {
59558
59909
  init_zod();
59559
59910
  init_publicpromptplatform();
59560
59911
  init_publicprompttag();
59561
59912
  init_publicprompttopic();
59562
- PublicPromptStatus$zodSchema = _enum([
59913
+ init_v2promptrunsettings();
59914
+ V2PromptResponseStatus$zodSchema = _enum([
59563
59915
  "active",
59564
59916
  "inactive",
59565
59917
  "archived"
59566
59918
  ]).describe("The prompt lifecycle status. Only `active` prompts run on schedule.");
59567
- PublicPrompt$zodSchema = object({
59919
+ V2PromptResponse$zodSchema = object({
59568
59920
  created_at: string2().nullable().optional(),
59569
59921
  id: string2(),
59570
59922
  language_id: string2().nullable().optional(),
59571
59923
  platforms: array(PublicPromptPlatform$zodSchema).optional(),
59572
59924
  region_id: string2().nullable().optional(),
59573
- status: PublicPromptStatus$zodSchema.describe("The prompt lifecycle status. Only `active` prompts run on schedule."),
59925
+ run_settings: V2PromptRunSettings$zodSchema.optional(),
59926
+ status: V2PromptResponseStatus$zodSchema.describe("The prompt lifecycle status. Only `active` prompts run on schedule."),
59574
59927
  tags: array(PublicPromptTag$zodSchema).optional(),
59575
59928
  text: string2(),
59576
59929
  topic: PublicPromptTopic$zodSchema.nullable().optional(),
@@ -59579,14 +59932,14 @@ var init_publicprompt = __esm(() => {
59579
59932
  });
59580
59933
  });
59581
59934
 
59582
- // src/models/listpromptsresponse.ts
59583
- var ListPromptsResponse$zodSchema;
59584
- var init_listpromptsresponse = __esm(() => {
59935
+ // src/models/v2listpromptsresponse.ts
59936
+ var V2ListPromptsResponse$zodSchema;
59937
+ var init_v2listpromptsresponse = __esm(() => {
59585
59938
  init_zod();
59586
- init_publicprompt();
59587
- ListPromptsResponse$zodSchema = object({
59939
+ init_v2promptresponse();
59940
+ V2ListPromptsResponse$zodSchema = object({
59588
59941
  count: int(),
59589
- data: array(PublicPrompt$zodSchema)
59942
+ data: array(V2PromptResponse$zodSchema)
59590
59943
  });
59591
59944
  });
59592
59945
 
@@ -59595,7 +59948,7 @@ var V2PromptsListStatus$zodSchema, V2PromptsListRequest$zodSchema, V2PromptsList
59595
59948
  var init_v2promptslistop = __esm(() => {
59596
59949
  init_zod();
59597
59950
  init_httpvalidationerror();
59598
- init_listpromptsresponse();
59951
+ init_v2listpromptsresponse();
59599
59952
  V2PromptsListStatus$zodSchema = _enum([
59600
59953
  "active",
59601
59954
  "inactive",
@@ -59607,16 +59960,16 @@ var init_v2promptslistop = __esm(() => {
59607
59960
  topic_id: string2().describe("Optional prompt topic ID.").optional()
59608
59961
  });
59609
59962
  V2PromptsListResponse$zodSchema = union([
59610
- ListPromptsResponse$zodSchema,
59963
+ V2ListPromptsResponse$zodSchema,
59611
59964
  HTTPValidationError$zodSchema
59612
59965
  ]);
59613
59966
  });
59614
59967
 
59615
59968
  // src/funcs/promptsV2PromptsList.ts
59616
59969
  function promptsV2PromptsList(client$, request, options) {
59617
- return new APIPromise($do35(client$, request, options));
59970
+ return new APIPromise($do37(client$, request, options));
59618
59971
  }
59619
- async function $do35(client$, request, options) {
59972
+ async function $do37(client$, request, options) {
59620
59973
  const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
59621
59974
  if (!parsed$.ok) {
59622
59975
  return [parsed$, { status: "invalid" }];
@@ -59691,12 +60044,12 @@ var init_promptsV2PromptsList = __esm(() => {
59691
60044
  });
59692
60045
 
59693
60046
  // src/mcp-server/tools/promptsV2PromptsList.ts
59694
- var args29, tool$promptsV2PromptsList;
60047
+ var args31, tool$promptsV2PromptsList;
59695
60048
  var init_promptsV2PromptsList2 = __esm(() => {
59696
60049
  init_promptsV2PromptsList();
59697
60050
  init_v2promptslistop();
59698
60051
  init_tools();
59699
- args29 = {
60052
+ args31 = {
59700
60053
  request: V2PromptsListRequest$zodSchema.optional()
59701
60054
  };
59702
60055
  tool$promptsV2PromptsList = {
@@ -59711,7 +60064,7 @@ Returns active and inactive prompts by default. Set \`include_archived\` to incl
59711
60064
  openWorldHint: false,
59712
60065
  readOnlyHint: true
59713
60066
  },
59714
- args: args29,
60067
+ args: args31,
59715
60068
  tool: async (client, args, ctx) => {
59716
60069
  const [result] = await promptsV2PromptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59717
60070
  if (!result.ok) {
@@ -59730,21 +60083,21 @@ var V2PromptsRetrieveRequest$zodSchema, V2PromptsRetrieveResponse$zodSchema;
59730
60083
  var init_v2promptsretrieveop = __esm(() => {
59731
60084
  init_zod();
59732
60085
  init_httpvalidationerror();
59733
- init_publicprompt();
60086
+ init_v2promptresponse();
59734
60087
  V2PromptsRetrieveRequest$zodSchema = object({
59735
60088
  prompt_id: string2()
59736
60089
  });
59737
60090
  V2PromptsRetrieveResponse$zodSchema = union([
59738
- PublicPrompt$zodSchema,
60091
+ V2PromptResponse$zodSchema,
59739
60092
  HTTPValidationError$zodSchema
59740
60093
  ]);
59741
60094
  });
59742
60095
 
59743
60096
  // src/funcs/promptsV2PromptsRetrieve.ts
59744
60097
  function promptsV2PromptsRetrieve(client$, request, options) {
59745
- return new APIPromise($do36(client$, request, options));
60098
+ return new APIPromise($do38(client$, request, options));
59746
60099
  }
59747
- async function $do36(client$, request, options) {
60100
+ async function $do38(client$, request, options) {
59748
60101
  const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59749
60102
  if (!parsed$.ok) {
59750
60103
  return [parsed$, { status: "invalid" }];
@@ -59819,19 +60172,19 @@ var init_promptsV2PromptsRetrieve = __esm(() => {
59819
60172
  });
59820
60173
 
59821
60174
  // src/mcp-server/tools/promptsV2PromptsRetrieve.ts
59822
- var args30, tool$promptsV2PromptsRetrieve;
60175
+ var args32, tool$promptsV2PromptsRetrieve;
59823
60176
  var init_promptsV2PromptsRetrieve2 = __esm(() => {
59824
60177
  init_promptsV2PromptsRetrieve();
59825
60178
  init_v2promptsretrieveop();
59826
60179
  init_tools();
59827
- args30 = {
60180
+ args32 = {
59828
60181
  request: V2PromptsRetrieveRequest$zodSchema
59829
60182
  };
59830
60183
  tool$promptsV2PromptsRetrieve = {
59831
60184
  name: "prompts-v2-prompts-retrieve",
59832
60185
  description: `Retrieve Prompt
59833
60186
 
59834
- Returns a prompt with its topic, platforms, tags, and lifecycle status.`,
60187
+ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-agent run settings.`,
59835
60188
  annotations: {
59836
60189
  title: "",
59837
60190
  destructiveHint: false,
@@ -59839,7 +60192,7 @@ Returns a prompt with its topic, platforms, tags, and lifecycle status.`,
59839
60192
  openWorldHint: false,
59840
60193
  readOnlyHint: true
59841
60194
  },
59842
- args: args30,
60195
+ args: args32,
59843
60196
  tool: async (client, args, ctx) => {
59844
60197
  const [result] = await promptsV2PromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59845
60198
  if (!result.ok) {
@@ -59857,12 +60210,14 @@ Returns a prompt with its topic, platforms, tags, and lifecycle status.`,
59857
60210
  var UpdateV2PromptRequestStatus$zodSchema, UpdateV2PromptRequest$zodSchema;
59858
60211
  var init_updatev2promptrequest = __esm(() => {
59859
60212
  init_zod();
60213
+ init_v2promptrunsettingsinput();
59860
60214
  UpdateV2PromptRequestStatus$zodSchema = _enum([
59861
60215
  "active",
59862
60216
  "inactive"
59863
60217
  ]);
59864
60218
  UpdateV2PromptRequest$zodSchema = object({
59865
60219
  platform_ids: array(string2()).nullable().optional().describe("Replacement list of answer-platform IDs."),
60220
+ run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional().describe("Run settings that apply to coding-agent runs of this prompt. Omitted fields keep their current or default values."),
59866
60221
  status: UpdateV2PromptRequestStatus$zodSchema.optional(),
59867
60222
  text: string2().optional(),
59868
60223
  topic_id: string2().optional().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
@@ -59874,23 +60229,23 @@ var V2PromptsUpdateRequest$zodSchema, V2PromptsUpdateResponse$zodSchema;
59874
60229
  var init_v2promptsupdateop = __esm(() => {
59875
60230
  init_zod();
59876
60231
  init_httpvalidationerror();
59877
- init_publicprompt();
59878
60232
  init_updatev2promptrequest();
60233
+ init_v2promptresponse();
59879
60234
  V2PromptsUpdateRequest$zodSchema = object({
59880
60235
  body: UpdateV2PromptRequest$zodSchema,
59881
60236
  prompt_id: string2()
59882
60237
  });
59883
60238
  V2PromptsUpdateResponse$zodSchema = union([
59884
- PublicPrompt$zodSchema,
60239
+ V2PromptResponse$zodSchema,
59885
60240
  HTTPValidationError$zodSchema
59886
60241
  ]);
59887
60242
  });
59888
60243
 
59889
60244
  // src/funcs/promptsV2PromptsUpdate.ts
59890
60245
  function promptsV2PromptsUpdate(client$, request, options) {
59891
- return new APIPromise($do37(client$, request, options));
60246
+ return new APIPromise($do39(client$, request, options));
59892
60247
  }
59893
- async function $do37(client$, request, options) {
60248
+ async function $do39(client$, request, options) {
59894
60249
  const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
59895
60250
  if (!parsed$.ok) {
59896
60251
  return [parsed$, { status: "invalid" }];
@@ -59966,19 +60321,19 @@ var init_promptsV2PromptsUpdate = __esm(() => {
59966
60321
  });
59967
60322
 
59968
60323
  // src/mcp-server/tools/promptsV2PromptsUpdate.ts
59969
- var args31, tool$promptsV2PromptsUpdate;
60324
+ var args33, tool$promptsV2PromptsUpdate;
59970
60325
  var init_promptsV2PromptsUpdate2 = __esm(() => {
59971
60326
  init_promptsV2PromptsUpdate();
59972
60327
  init_v2promptsupdateop();
59973
60328
  init_tools();
59974
- args31 = {
60329
+ args33 = {
59975
60330
  request: V2PromptsUpdateRequest$zodSchema
59976
60331
  };
59977
60332
  tool$promptsV2PromptsUpdate = {
59978
60333
  name: "prompts-v2-prompts-update",
59979
60334
  description: `Update Prompt
59980
60335
 
59981
- Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields remain unchanged.`,
60336
+ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged.`,
59982
60337
  annotations: {
59983
60338
  title: "",
59984
60339
  destructiveHint: false,
@@ -59986,7 +60341,7 @@ Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields r
59986
60341
  openWorldHint: false,
59987
60342
  readOnlyHint: false
59988
60343
  },
59989
- args: args31,
60344
+ args: args33,
59990
60345
  tool: async (client, args, ctx) => {
59991
60346
  const [result] = await promptsV2PromptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59992
60347
  if (!result.ok) {
@@ -60011,9 +60366,9 @@ var init_createprompttopicrequest = __esm(() => {
60011
60366
 
60012
60367
  // src/funcs/promptsV2PromptTopicsCreate.ts
60013
60368
  function promptsV2PromptTopicsCreate(client$, request, options) {
60014
- return new APIPromise($do38(client$, request, options));
60369
+ return new APIPromise($do40(client$, request, options));
60015
60370
  }
60016
- async function $do38(client$, request, options) {
60371
+ async function $do40(client$, request, options) {
60017
60372
  const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
60018
60373
  if (!parsed$.ok) {
60019
60374
  return [parsed$, { status: "invalid" }];
@@ -60083,12 +60438,12 @@ var init_promptsV2PromptTopicsCreate = __esm(() => {
60083
60438
  });
60084
60439
 
60085
60440
  // src/mcp-server/tools/promptsV2PromptTopicsCreate.ts
60086
- var args32, tool$promptsV2PromptTopicsCreate;
60441
+ var args34, tool$promptsV2PromptTopicsCreate;
60087
60442
  var init_promptsV2PromptTopicsCreate2 = __esm(() => {
60088
60443
  init_promptsV2PromptTopicsCreate();
60089
60444
  init_createprompttopicrequest();
60090
60445
  init_tools();
60091
- args32 = {
60446
+ args34 = {
60092
60447
  request: CreatePromptTopicRequest$zodSchema
60093
60448
  };
60094
60449
  tool$promptsV2PromptTopicsCreate = {
@@ -60103,7 +60458,7 @@ Creates a prompt topic and returns the saved topic.`,
60103
60458
  openWorldHint: false,
60104
60459
  readOnlyHint: false
60105
60460
  },
60106
- args: args32,
60461
+ args: args34,
60107
60462
  tool: async (client, args, ctx) => {
60108
60463
  const [result] = await promptsV2PromptTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60109
60464
  if (!result.ok) {
@@ -60135,9 +60490,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
60135
60490
 
60136
60491
  // src/funcs/promptsV2PromptTopicsDelete.ts
60137
60492
  function promptsV2PromptTopicsDelete(client$, request, options) {
60138
- return new APIPromise($do39(client$, request, options));
60493
+ return new APIPromise($do41(client$, request, options));
60139
60494
  }
60140
- async function $do39(client$, request, options) {
60495
+ async function $do41(client$, request, options) {
60141
60496
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
60142
60497
  if (!parsed$.ok) {
60143
60498
  return [parsed$, { status: "invalid" }];
@@ -60216,12 +60571,12 @@ var init_promptsV2PromptTopicsDelete = __esm(() => {
60216
60571
  });
60217
60572
 
60218
60573
  // src/mcp-server/tools/promptsV2PromptTopicsDelete.ts
60219
- var args33, tool$promptsV2PromptTopicsDelete;
60574
+ var args35, tool$promptsV2PromptTopicsDelete;
60220
60575
  var init_promptsV2PromptTopicsDelete2 = __esm(() => {
60221
60576
  init_promptsV2PromptTopicsDelete();
60222
60577
  init_v2prompttopicsdeleteop();
60223
60578
  init_tools();
60224
- args33 = {
60579
+ args35 = {
60225
60580
  request: V2PromptTopicsDeleteRequest$zodSchema
60226
60581
  };
60227
60582
  tool$promptsV2PromptTopicsDelete = {
@@ -60236,7 +60591,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
60236
60591
  openWorldHint: false,
60237
60592
  readOnlyHint: false
60238
60593
  },
60239
- args: args33,
60594
+ args: args35,
60240
60595
  tool: async (client, args, ctx) => {
60241
60596
  const [result] = await promptsV2PromptTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60242
60597
  if (!result.ok) {
@@ -60252,9 +60607,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
60252
60607
 
60253
60608
  // src/funcs/promptsV2PromptTopicsList.ts
60254
60609
  function promptsV2PromptTopicsList(client$, options) {
60255
- return new APIPromise($do40(client$, options));
60610
+ return new APIPromise($do42(client$, options));
60256
60611
  }
60257
- async function $do40(client$, options) {
60612
+ async function $do42(client$, options) {
60258
60613
  const path$ = pathToFunc("/v2/prompts/topics")();
60259
60614
  const headers$ = new Headers(compactMap({
60260
60615
  Accept: "application/json"
@@ -60370,9 +60725,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
60370
60725
 
60371
60726
  // src/funcs/promptsV2PromptTopicsUpdate.ts
60372
60727
  function promptsV2PromptTopicsUpdate(client$, request, options) {
60373
- return new APIPromise($do41(client$, request, options));
60728
+ return new APIPromise($do43(client$, request, options));
60374
60729
  }
60375
- async function $do41(client$, request, options) {
60730
+ async function $do43(client$, request, options) {
60376
60731
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
60377
60732
  if (!parsed$.ok) {
60378
60733
  return [parsed$, { status: "invalid" }];
@@ -60448,12 +60803,12 @@ var init_promptsV2PromptTopicsUpdate = __esm(() => {
60448
60803
  });
60449
60804
 
60450
60805
  // src/mcp-server/tools/promptsV2PromptTopicsUpdate.ts
60451
- var args34, tool$promptsV2PromptTopicsUpdate;
60806
+ var args36, tool$promptsV2PromptTopicsUpdate;
60452
60807
  var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
60453
60808
  init_promptsV2PromptTopicsUpdate();
60454
60809
  init_v2prompttopicsupdateop();
60455
60810
  init_tools();
60456
- args34 = {
60811
+ args36 = {
60457
60812
  request: V2PromptTopicsUpdateRequest$zodSchema
60458
60813
  };
60459
60814
  tool$promptsV2PromptTopicsUpdate = {
@@ -60468,7 +60823,7 @@ Renames a prompt topic and returns the updated topic.`,
60468
60823
  openWorldHint: false,
60469
60824
  readOnlyHint: false
60470
60825
  },
60471
- args: args34,
60826
+ args: args36,
60472
60827
  tool: async (client, args, ctx) => {
60473
60828
  const [result] = await promptsV2PromptTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60474
60829
  if (!result.ok) {
@@ -60511,9 +60866,9 @@ var init_createv2repositoryrequest = __esm(() => {
60511
60866
 
60512
60867
  // src/funcs/repositoriesV2RepositoriesCreate.ts
60513
60868
  function repositoriesV2RepositoriesCreate(client$, request, options) {
60514
- return new APIPromise($do42(client$, request, options));
60869
+ return new APIPromise($do44(client$, request, options));
60515
60870
  }
60516
- async function $do42(client$, request, options) {
60871
+ async function $do44(client$, request, options) {
60517
60872
  const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
60518
60873
  if (!parsed$.ok) {
60519
60874
  return [parsed$, { status: "invalid" }];
@@ -60583,12 +60938,12 @@ var init_repositoriesV2RepositoriesCreate = __esm(() => {
60583
60938
  });
60584
60939
 
60585
60940
  // src/mcp-server/tools/repositoriesV2RepositoriesCreate.ts
60586
- var args35, tool$repositoriesV2RepositoriesCreate;
60941
+ var args37, tool$repositoriesV2RepositoriesCreate;
60587
60942
  var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
60588
60943
  init_repositoriesV2RepositoriesCreate();
60589
60944
  init_createv2repositoryrequest();
60590
60945
  init_tools();
60591
- args35 = {
60946
+ args37 = {
60592
60947
  request: CreateV2RepositoryRequest$zodSchema
60593
60948
  };
60594
60949
  tool$repositoriesV2RepositoriesCreate = {
@@ -60603,7 +60958,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
60603
60958
  openWorldHint: false,
60604
60959
  readOnlyHint: false
60605
60960
  },
60606
- args: args35,
60961
+ args: args37,
60607
60962
  tool: async (client, args, ctx) => {
60608
60963
  const [result] = await repositoriesV2RepositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60609
60964
  if (!result.ok) {
@@ -60669,9 +61024,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
60669
61024
 
60670
61025
  // src/funcs/repositoriesV2RepositoriesDelete.ts
60671
61026
  function repositoriesV2RepositoriesDelete(client$, request, options) {
60672
- return new APIPromise($do43(client$, request, options));
61027
+ return new APIPromise($do45(client$, request, options));
60673
61028
  }
60674
- async function $do43(client$, request, options) {
61029
+ async function $do45(client$, request, options) {
60675
61030
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
60676
61031
  if (!parsed$.ok) {
60677
61032
  return [parsed$, { status: "invalid" }];
@@ -60746,12 +61101,12 @@ var init_repositoriesV2RepositoriesDelete = __esm(() => {
60746
61101
  });
60747
61102
 
60748
61103
  // src/mcp-server/tools/repositoriesV2RepositoriesDelete.ts
60749
- var args36, tool$repositoriesV2RepositoriesDelete;
61104
+ var args38, tool$repositoriesV2RepositoriesDelete;
60750
61105
  var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
60751
61106
  init_repositoriesV2RepositoriesDelete();
60752
61107
  init_v2repositoriesdeleteop();
60753
61108
  init_tools();
60754
- args36 = {
61109
+ args38 = {
60755
61110
  request: V2RepositoriesDeleteRequest$zodSchema
60756
61111
  };
60757
61112
  tool$repositoriesV2RepositoriesDelete = {
@@ -60766,7 +61121,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
60766
61121
  openWorldHint: false,
60767
61122
  readOnlyHint: false
60768
61123
  },
60769
- args: args36,
61124
+ args: args38,
60770
61125
  tool: async (client, args, ctx) => {
60771
61126
  const [result] = await repositoriesV2RepositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60772
61127
  if (!result.ok) {
@@ -60782,9 +61137,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
60782
61137
 
60783
61138
  // src/funcs/repositoriesV2RepositoriesList.ts
60784
61139
  function repositoriesV2RepositoriesList(client$, options) {
60785
- return new APIPromise($do44(client$, options));
61140
+ return new APIPromise($do46(client$, options));
60786
61141
  }
60787
- async function $do44(client$, options) {
61142
+ async function $do46(client$, options) {
60788
61143
  const path$ = pathToFunc("/v2/repositories")();
60789
61144
  const headers$ = new Headers(compactMap({
60790
61145
  Accept: "application/json"
@@ -60889,9 +61244,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
60889
61244
 
60890
61245
  // src/funcs/repositoriesV2RepositoriesRetrieve.ts
60891
61246
  function repositoriesV2RepositoriesRetrieve(client$, request, options) {
60892
- return new APIPromise($do45(client$, request, options));
61247
+ return new APIPromise($do47(client$, request, options));
60893
61248
  }
60894
- async function $do45(client$, request, options) {
61249
+ async function $do47(client$, request, options) {
60895
61250
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60896
61251
  if (!parsed$.ok) {
60897
61252
  return [parsed$, { status: "invalid" }];
@@ -60966,12 +61321,12 @@ var init_repositoriesV2RepositoriesRetrieve = __esm(() => {
60966
61321
  });
60967
61322
 
60968
61323
  // src/mcp-server/tools/repositoriesV2RepositoriesRetrieve.ts
60969
- var args37, tool$repositoriesV2RepositoriesRetrieve;
61324
+ var args39, tool$repositoriesV2RepositoriesRetrieve;
60970
61325
  var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
60971
61326
  init_repositoriesV2RepositoriesRetrieve();
60972
61327
  init_v2repositoriesretrieveop();
60973
61328
  init_tools();
60974
- args37 = {
61329
+ args39 = {
60975
61330
  request: V2RepositoriesRetrieveRequest$zodSchema
60976
61331
  };
60977
61332
  tool$repositoriesV2RepositoriesRetrieve = {
@@ -60986,7 +61341,7 @@ Returns one reusable repository workspace.`,
60986
61341
  openWorldHint: false,
60987
61342
  readOnlyHint: true
60988
61343
  },
60989
- args: args37,
61344
+ args: args39,
60990
61345
  tool: async (client, args, ctx) => {
60991
61346
  const [result] = await repositoriesV2RepositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60992
61347
  if (!result.ok) {
@@ -61046,9 +61401,9 @@ var init_v2repositoriesupdateop = __esm(() => {
61046
61401
 
61047
61402
  // src/funcs/repositoriesV2RepositoriesUpdate.ts
61048
61403
  function repositoriesV2RepositoriesUpdate(client$, request, options) {
61049
- return new APIPromise($do46(client$, request, options));
61404
+ return new APIPromise($do48(client$, request, options));
61050
61405
  }
61051
- async function $do46(client$, request, options) {
61406
+ async function $do48(client$, request, options) {
61052
61407
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
61053
61408
  if (!parsed$.ok) {
61054
61409
  return [parsed$, { status: "invalid" }];
@@ -61124,12 +61479,12 @@ var init_repositoriesV2RepositoriesUpdate = __esm(() => {
61124
61479
  });
61125
61480
 
61126
61481
  // src/mcp-server/tools/repositoriesV2RepositoriesUpdate.ts
61127
- var args38, tool$repositoriesV2RepositoriesUpdate;
61482
+ var args40, tool$repositoriesV2RepositoriesUpdate;
61128
61483
  var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
61129
61484
  init_repositoriesV2RepositoriesUpdate();
61130
61485
  init_v2repositoriesupdateop();
61131
61486
  init_tools();
61132
- args38 = {
61487
+ args40 = {
61133
61488
  request: V2RepositoriesUpdateRequest$zodSchema
61134
61489
  };
61135
61490
  tool$repositoriesV2RepositoriesUpdate = {
@@ -61144,7 +61499,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
61144
61499
  openWorldHint: false,
61145
61500
  readOnlyHint: false
61146
61501
  },
61147
- args: args38,
61502
+ args: args40,
61148
61503
  tool: async (client, args, ctx) => {
61149
61504
  const [result] = await repositoriesV2RepositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61150
61505
  if (!result.ok) {
@@ -61160,9 +61515,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
61160
61515
 
61161
61516
  // src/funcs/siteAuditsV2SiteAuditsList.ts
61162
61517
  function siteAuditsV2SiteAuditsList(client$, options) {
61163
- return new APIPromise($do47(client$, options));
61518
+ return new APIPromise($do49(client$, options));
61164
61519
  }
61165
- async function $do47(client$, options) {
61520
+ async function $do49(client$, options) {
61166
61521
  const path$ = pathToFunc("/v2/site-audits")();
61167
61522
  const headers$ = new Headers(compactMap({
61168
61523
  Accept: "application/json"
@@ -61303,9 +61658,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
61303
61658
 
61304
61659
  // src/funcs/siteAuditsV2SiteAuditsRetrieve.ts
61305
61660
  function siteAuditsV2SiteAuditsRetrieve(client$, request, options) {
61306
- return new APIPromise($do48(client$, request, options));
61661
+ return new APIPromise($do50(client$, request, options));
61307
61662
  }
61308
- async function $do48(client$, request, options) {
61663
+ async function $do50(client$, request, options) {
61309
61664
  const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61310
61665
  if (!parsed$.ok) {
61311
61666
  return [parsed$, { status: "invalid" }];
@@ -61380,12 +61735,12 @@ var init_siteAuditsV2SiteAuditsRetrieve = __esm(() => {
61380
61735
  });
61381
61736
 
61382
61737
  // src/mcp-server/tools/siteAuditsV2SiteAuditsRetrieve.ts
61383
- var args39, tool$siteAuditsV2SiteAuditsRetrieve;
61738
+ var args41, tool$siteAuditsV2SiteAuditsRetrieve;
61384
61739
  var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
61385
61740
  init_siteAuditsV2SiteAuditsRetrieve();
61386
61741
  init_v2siteauditsretrieveop();
61387
61742
  init_tools();
61388
- args39 = {
61743
+ args41 = {
61389
61744
  request: V2SiteAuditsRetrieveRequest$zodSchema
61390
61745
  };
61391
61746
  tool$siteAuditsV2SiteAuditsRetrieve = {
@@ -61400,7 +61755,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
61400
61755
  openWorldHint: false,
61401
61756
  readOnlyHint: true
61402
61757
  },
61403
- args: args39,
61758
+ args: args41,
61404
61759
  tool: async (client, args, ctx) => {
61405
61760
  const [result] = await siteAuditsV2SiteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61406
61761
  if (!result.ok) {
@@ -61416,9 +61771,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
61416
61771
 
61417
61772
  // src/funcs/skillsV2SkillsList.ts
61418
61773
  function skillsV2SkillsList(client$, options) {
61419
- return new APIPromise($do49(client$, options));
61774
+ return new APIPromise($do51(client$, options));
61420
61775
  }
61421
- async function $do49(client$, options) {
61776
+ async function $do51(client$, options) {
61422
61777
  const path$ = pathToFunc("/v2/skills")();
61423
61778
  const headers$ = new Headers(compactMap({
61424
61779
  Accept: "application/json"
@@ -61508,9 +61863,9 @@ Returns reusable skills available to workflows and eval configurations.`,
61508
61863
 
61509
61864
  // src/funcs/statusV2AuthStatusGet.ts
61510
61865
  function statusV2AuthStatusGet(client$, options) {
61511
- return new APIPromise($do50(client$, options));
61866
+ return new APIPromise($do52(client$, options));
61512
61867
  }
61513
- async function $do50(client$, options) {
61868
+ async function $do52(client$, options) {
61514
61869
  const path$ = pathToFunc("/v2/auth/status")();
61515
61870
  const headers$ = new Headers(compactMap({
61516
61871
  Accept: "application/json"
@@ -61600,9 +61955,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
61600
61955
 
61601
61956
  // src/funcs/statusV2StatusGet.ts
61602
61957
  function statusV2StatusGet(client$, options) {
61603
- return new APIPromise($do51(client$, options));
61958
+ return new APIPromise($do53(client$, options));
61604
61959
  }
61605
- async function $do51(client$, options) {
61960
+ async function $do53(client$, options) {
61606
61961
  const path$ = pathToFunc("/v2/status")();
61607
61962
  const headers$ = new Headers(compactMap({
61608
61963
  Accept: "application/json"
@@ -61822,9 +62177,9 @@ var init_v2taskslistop = __esm(() => {
61822
62177
 
61823
62178
  // src/funcs/tasksV2TasksList.ts
61824
62179
  function tasksV2TasksList(client$, request, options) {
61825
- return new APIPromise($do52(client$, request, options));
62180
+ return new APIPromise($do54(client$, request, options));
61826
62181
  }
61827
- async function $do52(client$, request, options) {
62182
+ async function $do54(client$, request, options) {
61828
62183
  const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
61829
62184
  if (!parsed$.ok) {
61830
62185
  return [parsed$, { status: "invalid" }];
@@ -61898,12 +62253,12 @@ var init_tasksV2TasksList = __esm(() => {
61898
62253
  });
61899
62254
 
61900
62255
  // src/mcp-server/tools/tasksV2TasksList.ts
61901
- var args40, tool$tasksV2TasksList;
62256
+ var args42, tool$tasksV2TasksList;
61902
62257
  var init_tasksV2TasksList2 = __esm(() => {
61903
62258
  init_tasksV2TasksList();
61904
62259
  init_v2taskslistop();
61905
62260
  init_tools();
61906
- args40 = {
62261
+ args42 = {
61907
62262
  request: V2TasksListRequest$zodSchema.optional()
61908
62263
  };
61909
62264
  tool$tasksV2TasksList = {
@@ -61918,7 +62273,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
61918
62273
  openWorldHint: false,
61919
62274
  readOnlyHint: true
61920
62275
  },
61921
- args: args40,
62276
+ args: args42,
61922
62277
  tool: async (client, args, ctx) => {
61923
62278
  const [result] = await tasksV2TasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61924
62279
  if (!result.ok) {
@@ -61949,9 +62304,9 @@ var init_v2tasksretrieveop = __esm(() => {
61949
62304
 
61950
62305
  // src/funcs/tasksV2TasksRetrieve.ts
61951
62306
  function tasksV2TasksRetrieve(client$, request, options) {
61952
- return new APIPromise($do53(client$, request, options));
62307
+ return new APIPromise($do55(client$, request, options));
61953
62308
  }
61954
- async function $do53(client$, request, options) {
62309
+ async function $do55(client$, request, options) {
61955
62310
  const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61956
62311
  if (!parsed$.ok) {
61957
62312
  return [parsed$, { status: "invalid" }];
@@ -62026,12 +62381,12 @@ var init_tasksV2TasksRetrieve = __esm(() => {
62026
62381
  });
62027
62382
 
62028
62383
  // src/mcp-server/tools/tasksV2TasksRetrieve.ts
62029
- var args41, tool$tasksV2TasksRetrieve;
62384
+ var args43, tool$tasksV2TasksRetrieve;
62030
62385
  var init_tasksV2TasksRetrieve2 = __esm(() => {
62031
62386
  init_tasksV2TasksRetrieve();
62032
62387
  init_v2tasksretrieveop();
62033
62388
  init_tools();
62034
- args41 = {
62389
+ args43 = {
62035
62390
  request: V2TasksRetrieveRequest$zodSchema
62036
62391
  };
62037
62392
  tool$tasksV2TasksRetrieve = {
@@ -62046,7 +62401,7 @@ Returns one persisted task and its execution prompt.`,
62046
62401
  openWorldHint: false,
62047
62402
  readOnlyHint: true
62048
62403
  },
62049
- args: args41,
62404
+ args: args43,
62050
62405
  tool: async (client, args, ctx) => {
62051
62406
  const [result] = await tasksV2TasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62052
62407
  if (!result.ok) {
@@ -62109,9 +62464,9 @@ var init_v2tasksupdateop = __esm(() => {
62109
62464
 
62110
62465
  // src/funcs/tasksV2TasksUpdate.ts
62111
62466
  function tasksV2TasksUpdate(client$, request, options) {
62112
- return new APIPromise($do54(client$, request, options));
62467
+ return new APIPromise($do56(client$, request, options));
62113
62468
  }
62114
- async function $do54(client$, request, options) {
62469
+ async function $do56(client$, request, options) {
62115
62470
  const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
62116
62471
  if (!parsed$.ok) {
62117
62472
  return [parsed$, { status: "invalid" }];
@@ -62187,12 +62542,12 @@ var init_tasksV2TasksUpdate = __esm(() => {
62187
62542
  });
62188
62543
 
62189
62544
  // src/mcp-server/tools/tasksV2TasksUpdate.ts
62190
- var args42, tool$tasksV2TasksUpdate;
62545
+ var args44, tool$tasksV2TasksUpdate;
62191
62546
  var init_tasksV2TasksUpdate2 = __esm(() => {
62192
62547
  init_tasksV2TasksUpdate();
62193
62548
  init_v2tasksupdateop();
62194
62549
  init_tools();
62195
- args42 = {
62550
+ args44 = {
62196
62551
  request: V2TasksUpdateRequest$zodSchema
62197
62552
  };
62198
62553
  tool$tasksV2TasksUpdate = {
@@ -62207,7 +62562,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
62207
62562
  openWorldHint: false,
62208
62563
  readOnlyHint: false
62209
62564
  },
62210
- args: args42,
62565
+ args: args44,
62211
62566
  tool: async (client, args, ctx) => {
62212
62567
  const [result] = await tasksV2TasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62213
62568
  if (!result.ok) {
@@ -62295,9 +62650,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
62295
62650
 
62296
62651
  // src/funcs/visibilityV2VisibilityCitationsList.ts
62297
62652
  function visibilityV2VisibilityCitationsList(client$, request, options) {
62298
- return new APIPromise($do55(client$, request, options));
62653
+ return new APIPromise($do57(client$, request, options));
62299
62654
  }
62300
- async function $do55(client$, request, options) {
62655
+ async function $do57(client$, request, options) {
62301
62656
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
62302
62657
  if (!parsed$.ok) {
62303
62658
  return [parsed$, { status: "invalid" }];
@@ -62374,12 +62729,12 @@ var init_visibilityV2VisibilityCitationsList = __esm(() => {
62374
62729
  });
62375
62730
 
62376
62731
  // src/mcp-server/tools/visibilityV2VisibilityCitationsList.ts
62377
- var args43, tool$visibilityV2VisibilityCitationsList;
62732
+ var args45, tool$visibilityV2VisibilityCitationsList;
62378
62733
  var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
62379
62734
  init_visibilityV2VisibilityCitationsList();
62380
62735
  init_v2visibilitycitationslistop();
62381
62736
  init_tools();
62382
- args43 = {
62737
+ args45 = {
62383
62738
  request: V2VisibilityCitationsListRequest$zodSchema.optional()
62384
62739
  };
62385
62740
  tool$visibilityV2VisibilityCitationsList = {
@@ -62394,7 +62749,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
62394
62749
  openWorldHint: false,
62395
62750
  readOnlyHint: true
62396
62751
  },
62397
- args: args43,
62752
+ args: args45,
62398
62753
  tool: async (client, args, ctx) => {
62399
62754
  const [result] = await visibilityV2VisibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62400
62755
  if (!result.ok) {
@@ -62459,9 +62814,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
62459
62814
 
62460
62815
  // src/funcs/visibilityV2VisibilityCurrentRetrieve.ts
62461
62816
  function visibilityV2VisibilityCurrentRetrieve(client$, request, options) {
62462
- return new APIPromise($do56(client$, request, options));
62817
+ return new APIPromise($do58(client$, request, options));
62463
62818
  }
62464
- async function $do56(client$, request, options) {
62819
+ async function $do58(client$, request, options) {
62465
62820
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
62466
62821
  if (!parsed$.ok) {
62467
62822
  return [parsed$, { status: "invalid" }];
@@ -62535,12 +62890,12 @@ var init_visibilityV2VisibilityCurrentRetrieve = __esm(() => {
62535
62890
  });
62536
62891
 
62537
62892
  // src/mcp-server/tools/visibilityV2VisibilityCurrentRetrieve.ts
62538
- var args44, tool$visibilityV2VisibilityCurrentRetrieve;
62893
+ var args46, tool$visibilityV2VisibilityCurrentRetrieve;
62539
62894
  var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
62540
62895
  init_visibilityV2VisibilityCurrentRetrieve();
62541
62896
  init_v2visibilitycurrentretrieveop();
62542
62897
  init_tools();
62543
- args44 = {
62898
+ args46 = {
62544
62899
  request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
62545
62900
  };
62546
62901
  tool$visibilityV2VisibilityCurrentRetrieve = {
@@ -62555,7 +62910,7 @@ Returns visibility score, share of voice, ranks, and date-range metadata for the
62555
62910
  openWorldHint: false,
62556
62911
  readOnlyHint: true
62557
62912
  },
62558
- args: args44,
62913
+ args: args46,
62559
62914
  tool: async (client, args, ctx) => {
62560
62915
  const [result] = await visibilityV2VisibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62561
62916
  if (!result.ok) {
@@ -62698,9 +63053,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
62698
63053
 
62699
63054
  // src/funcs/visibilityV2VisibilityOverviewRetrieve.ts
62700
63055
  function visibilityV2VisibilityOverviewRetrieve(client$, request, options) {
62701
- return new APIPromise($do57(client$, request, options));
63056
+ return new APIPromise($do59(client$, request, options));
62702
63057
  }
62703
- async function $do57(client$, request, options) {
63058
+ async function $do59(client$, request, options) {
62704
63059
  const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
62705
63060
  if (!parsed$.ok) {
62706
63061
  return [parsed$, { status: "invalid" }];
@@ -62774,12 +63129,12 @@ var init_visibilityV2VisibilityOverviewRetrieve = __esm(() => {
62774
63129
  });
62775
63130
 
62776
63131
  // src/mcp-server/tools/visibilityV2VisibilityOverviewRetrieve.ts
62777
- var args45, tool$visibilityV2VisibilityOverviewRetrieve;
63132
+ var args47, tool$visibilityV2VisibilityOverviewRetrieve;
62778
63133
  var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
62779
63134
  init_visibilityV2VisibilityOverviewRetrieve();
62780
63135
  init_v2visibilityoverviewretrieveop();
62781
63136
  init_tools();
62782
- args45 = {
63137
+ args47 = {
62783
63138
  request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
62784
63139
  };
62785
63140
  tool$visibilityV2VisibilityOverviewRetrieve = {
@@ -62794,7 +63149,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
62794
63149
  openWorldHint: false,
62795
63150
  readOnlyHint: true
62796
63151
  },
62797
- args: args45,
63152
+ args: args47,
62798
63153
  tool: async (client, args, ctx) => {
62799
63154
  const [result] = await visibilityV2VisibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62800
63155
  if (!result.ok) {
@@ -62908,9 +63263,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
62908
63263
 
62909
63264
  // src/funcs/visibilityV2VisibilityPromptsRetrieve.ts
62910
63265
  function visibilityV2VisibilityPromptsRetrieve(client$, request, options) {
62911
- return new APIPromise($do58(client$, request, options));
63266
+ return new APIPromise($do60(client$, request, options));
62912
63267
  }
62913
- async function $do58(client$, request, options) {
63268
+ async function $do60(client$, request, options) {
62914
63269
  const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
62915
63270
  if (!parsed$.ok) {
62916
63271
  return [parsed$, { status: "invalid" }];
@@ -62984,12 +63339,12 @@ var init_visibilityV2VisibilityPromptsRetrieve = __esm(() => {
62984
63339
  });
62985
63340
 
62986
63341
  // src/mcp-server/tools/visibilityV2VisibilityPromptsRetrieve.ts
62987
- var args46, tool$visibilityV2VisibilityPromptsRetrieve;
63342
+ var args48, tool$visibilityV2VisibilityPromptsRetrieve;
62988
63343
  var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
62989
63344
  init_visibilityV2VisibilityPromptsRetrieve();
62990
63345
  init_v2visibilitypromptsretrieveop();
62991
63346
  init_tools();
62992
- args46 = {
63347
+ args48 = {
62993
63348
  request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
62994
63349
  };
62995
63350
  tool$visibilityV2VisibilityPromptsRetrieve = {
@@ -63004,7 +63359,7 @@ Returns per-topic and per-prompt visibility metrics including score, rank, share
63004
63359
  openWorldHint: false,
63005
63360
  readOnlyHint: true
63006
63361
  },
63007
- args: args46,
63362
+ args: args48,
63008
63363
  tool: async (client, args, ctx) => {
63009
63364
  const [result] = await visibilityV2VisibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63010
63365
  if (!result.ok) {
@@ -63028,7 +63383,7 @@ function createMCPServer(deps) {
63028
63383
  sizes: ["any"]
63029
63384
  }],
63030
63385
  name: "LightsageMcp",
63031
- version: "0.4.1"
63386
+ version: "0.4.3"
63032
63387
  });
63033
63388
  const getClient = deps.getSDK || (() => new LightsageMcpCore({
63034
63389
  security: deps.security,
@@ -63064,6 +63419,8 @@ function createMCPServer(deps) {
63064
63419
  tool(tool$promptsV2PromptsRetrieve);
63065
63420
  tool(tool$promptsV2PromptsUpdate);
63066
63421
  tool(tool$promptsV2PromptsDelete);
63422
+ tool(tool$promptsRun);
63423
+ tool(tool$promptsRunStatus);
63067
63424
  tool(tool$opportunitiesV2OpportunitiesList);
63068
63425
  tool(tool$opportunitiesV2OpportunitiesRetrieve);
63069
63426
  tool(tool$tasksV2TasksList);
@@ -63145,6 +63502,8 @@ var init_server2 = __esm(() => {
63145
63502
  init_mcpServersV2MCPServersList2();
63146
63503
  init_opportunitiesV2OpportunitiesList2();
63147
63504
  init_opportunitiesV2OpportunitiesRetrieve2();
63505
+ init_promptsRun2();
63506
+ init_promptsRunStatus2();
63148
63507
  init_promptsV2PromptRunsList2();
63149
63508
  init_promptsV2PromptRunsRetrieve2();
63150
63509
  init_promptsV2PromptsCreate2();
@@ -63259,13 +63618,13 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
63259
63618
  name: "prompts-v2-prompts-retrieve",
63260
63619
  description: `Retrieve Prompt
63261
63620
 
63262
- Returns a prompt with its topic, platforms, tags, and lifecycle status.`
63621
+ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-agent run settings.`
63263
63622
  },
63264
63623
  {
63265
63624
  name: "prompts-v2-prompts-update",
63266
63625
  description: `Update Prompt
63267
63626
 
63268
- Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields remain unchanged.`
63627
+ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged.`
63269
63628
  },
63270
63629
  {
63271
63630
  name: "prompts-v2-prompts-delete",
@@ -63273,6 +63632,21 @@ Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields r
63273
63632
 
63274
63633
  Archives the prompt and excludes it from normal listings while preserving its historical run data.`
63275
63634
  },
63635
+ {
63636
+ name: "prompts-run",
63637
+ description: `Run Prompts
63638
+
63639
+ Queue saved prompts using the organization's configured targets.
63640
+
63641
+ Provide \`prompt_ids\` to run selected prompts, or omit them to run all active
63642
+ prompts. Saved prompt run settings apply to coding-agent targets. The
63643
+ response returns a run ID to poll with
63644
+ \`GET /v2/prompts/runs/{run_id}/status\`.`
63645
+ },
63646
+ {
63647
+ name: "prompts-run-status",
63648
+ description: "Get Prompt Run Status\n\nReturn status and progress for a queued prompt run.\n\nPoll this endpoint until `status` is `completed`, `failed`, or `cancelled`.\nIndividual stored results are available from `GET /v2/prompts/runs`."
63649
+ },
63276
63650
  {
63277
63651
  name: "opportunities-v2-opportunities-list",
63278
63652
  description: "List Opportunities\n\nReturns ranked opportunities computed from stored prompt visibility results. Each includes an `execution_prompt` with context for an AI agent. Default window is 30 days."
@@ -64403,7 +64777,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
64403
64777
  <h1>Instructions</h1>
64404
64778
  <p>One-click installation for Claude Desktop users</p>
64405
64779
  <div class="instruction-item">
64406
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.1/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
64780
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.3/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
64407
64781
  \uD83D\uDCE5 Download MCP Bundle
64408
64782
  </a>
64409
64783
  </div>
@@ -67281,7 +67655,7 @@ var routes = buildRouteMap({
67281
67655
  var app = buildApplication(routes, {
67282
67656
  name: "mcp",
67283
67657
  versionInfo: {
67284
- currentVersion: "0.4.1"
67658
+ currentVersion: "0.4.3"
67285
67659
  }
67286
67660
  });
67287
67661
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -67289,5 +67663,5 @@ export {
67289
67663
  app
67290
67664
  };
67291
67665
 
67292
- //# debugId=9D9BF9F9417C659E64756E2164756E21
67666
+ //# debugId=64F7A4E74599E0B064756E2164756E21
67293
67667
  //# sourceMappingURL=mcp-server.js.map