@lightsage/mcp 0.4.17 → 0.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/mcp.js +4 -1
- package/bin/mcp-server.js +1115 -205
- package/bin/mcp-server.js.map +82 -56
- package/esm/funcs/agentAnalyticsCountriesList.js +1 -0
- package/esm/funcs/agentAnalyticsCountriesList.js.map +1 -1
- package/esm/funcs/agentAnalyticsErrorPagesList.js +1 -0
- package/esm/funcs/agentAnalyticsErrorPagesList.js.map +1 -1
- package/esm/funcs/agentAnalyticsPagesList.js +1 -0
- package/esm/funcs/agentAnalyticsPagesList.js.map +1 -1
- package/esm/funcs/agentAnalyticsSourcesList.js +1 -0
- package/esm/funcs/agentAnalyticsSourcesList.js.map +1 -1
- package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts +1 -1
- package/esm/funcs/agentAnalyticsSummaryRetrieve.js +2 -1
- package/esm/funcs/agentAnalyticsSummaryRetrieve.js.map +1 -1
- package/esm/funcs/agentsList.d.ts +1 -1
- package/esm/funcs/agentsList.js +1 -1
- package/esm/funcs/evalsCreate.d.ts +2 -0
- package/esm/funcs/evalsCreate.d.ts.map +1 -1
- package/esm/funcs/evalsCreate.js +2 -0
- package/esm/funcs/evalsCreate.js.map +1 -1
- package/esm/funcs/evalsRun.d.ts +2 -0
- package/esm/funcs/evalsRun.d.ts.map +1 -1
- package/esm/funcs/evalsRun.js +2 -0
- package/esm/funcs/evalsRun.js.map +1 -1
- package/esm/funcs/promptsRun.d.ts +8 -3
- package/esm/funcs/promptsRun.d.ts.map +1 -1
- package/esm/funcs/promptsRun.js +8 -3
- package/esm/funcs/promptsRun.js.map +1 -1
- package/esm/funcs/promptsRunCancel.d.ts +16 -0
- package/esm/funcs/promptsRunCancel.d.ts.map +1 -0
- package/esm/funcs/promptsRunCancel.js +88 -0
- package/esm/funcs/promptsRunCancel.js.map +1 -0
- 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/funcs/visibilityCitationsList.d.ts +1 -1
- package/esm/funcs/visibilityCitationsList.js +2 -1
- package/esm/funcs/visibilityCitationsList.js.map +1 -1
- package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts +16 -0
- package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
- package/esm/funcs/visibilityCitationsSummaryRetrieve.js +93 -0
- package/esm/funcs/visibilityCitationsSummaryRetrieve.js.map +1 -0
- package/esm/funcs/visibilityCurrentRetrieve.d.ts +1 -1
- package/esm/funcs/visibilityCurrentRetrieve.js +2 -1
- package/esm/funcs/visibilityCurrentRetrieve.js.map +1 -1
- package/esm/funcs/visibilityOverviewRetrieve.d.ts +1 -1
- package/esm/funcs/visibilityOverviewRetrieve.js +2 -1
- package/esm/funcs/visibilityOverviewRetrieve.js.map +1 -1
- package/esm/funcs/visibilityPromptsRetrieve.js +1 -0
- package/esm/funcs/visibilityPromptsRetrieve.js.map +1 -1
- 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 +9 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js +1 -1
- package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.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/evalsCreate.d.ts.map +1 -1
- package/esm/mcp-server/tools/evalsCreate.js +3 -1
- package/esm/mcp-server/tools/evalsCreate.js.map +1 -1
- package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
- package/esm/mcp-server/tools/evalsRun.js +2 -0
- package/esm/mcp-server/tools/evalsRun.js.map +1 -1
- package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -1
- package/esm/mcp-server/tools/promptsRun.js +8 -3
- package/esm/mcp-server/tools/promptsRun.js.map +1 -1
- package/esm/mcp-server/tools/promptsRunCancel.d.ts +7 -0
- package/esm/mcp-server/tools/promptsRunCancel.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsRunCancel.js +35 -0
- package/esm/mcp-server/tools/promptsRunCancel.js.map +1 -0
- 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/mcp-server/tools/visibilityCitationsList.js +1 -1
- package/esm/mcp-server/tools/visibilityCitationsList.js.map +1 -1
- package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts +7 -0
- package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
- package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js +35 -0
- package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js.map +1 -0
- package/esm/mcp-server/tools/visibilityCurrentRetrieve.js +1 -1
- package/esm/mcp-server/tools/visibilityCurrentRetrieve.js.map +1 -1
- package/esm/mcp-server/tools/visibilityOverviewRetrieve.js +1 -1
- package/esm/mcp-server/tools/visibilityOverviewRetrieve.js.map +1 -1
- package/esm/models/createv2promptrequest.js +1 -1
- package/esm/models/createv2promptrequest.js.map +1 -1
- package/esm/models/createv2promptrunrequest.d.ts +1 -0
- package/esm/models/createv2promptrunrequest.d.ts.map +1 -1
- package/esm/models/createv2promptrunrequest.js +2 -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/publicagentanalyticscountrylistresponse.d.ts +2 -0
- package/esm/models/publicagentanalyticscountrylistresponse.d.ts.map +1 -1
- package/esm/models/publicagentanalyticscountrylistresponse.js +2 -0
- package/esm/models/publicagentanalyticscountrylistresponse.js.map +1 -1
- package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts +2 -0
- package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts.map +1 -1
- package/esm/models/publicagentanalyticserrorpagelistresponse.js +2 -0
- package/esm/models/publicagentanalyticserrorpagelistresponse.js.map +1 -1
- package/esm/models/publicagentanalyticspagelistresponse.d.ts +2 -0
- package/esm/models/publicagentanalyticspagelistresponse.d.ts.map +1 -1
- package/esm/models/publicagentanalyticspagelistresponse.js +2 -0
- package/esm/models/publicagentanalyticspagelistresponse.js.map +1 -1
- package/esm/models/publicagentanalyticssourcelistresponse.d.ts +2 -0
- package/esm/models/publicagentanalyticssourcelistresponse.d.ts.map +1 -1
- package/esm/models/publicagentanalyticssourcelistresponse.js +2 -0
- package/esm/models/publicagentanalyticssourcelistresponse.js.map +1 -1
- package/esm/models/publicagentanalyticssummary.d.ts +2 -0
- package/esm/models/publicagentanalyticssummary.d.ts.map +1 -1
- package/esm/models/publicagentanalyticssummary.js +2 -0
- package/esm/models/publicagentanalyticssummary.js.map +1 -1
- package/esm/models/publiccitationsummarygroup.d.ts +17 -0
- package/esm/models/publiccitationsummarygroup.d.ts.map +1 -0
- package/esm/models/publiccitationsummarygroup.js +20 -0
- package/esm/models/publiccitationsummarygroup.js.map +1 -0
- package/esm/models/publiccitationsummaryresponse.d.ts +61 -0
- package/esm/models/publiccitationsummaryresponse.d.ts.map +1 -0
- package/esm/models/publiccitationsummaryresponse.js +58 -0
- package/esm/models/publiccitationsummaryresponse.js.map +1 -0
- package/esm/models/publiccitationsummarytotals.d.ts +14 -0
- package/esm/models/publiccitationsummarytotals.d.ts.map +1 -0
- package/esm/models/publiccitationsummarytotals.js +17 -0
- package/esm/models/publiccitationsummarytotals.js.map +1 -0
- package/esm/models/publiccoverage.d.ts +12 -0
- package/esm/models/publiccoverage.d.ts.map +1 -0
- package/esm/models/publiccoverage.js +15 -0
- package/esm/models/publiccoverage.js.map +1 -0
- package/esm/models/publiccoverageday.d.ts +41 -0
- package/esm/models/publiccoverageday.d.ts.map +1 -0
- package/esm/models/publiccoverageday.js +39 -0
- package/esm/models/publiccoverageday.js.map +1 -0
- package/esm/models/publiccurrentvisibilityresponse.d.ts +8 -0
- package/esm/models/publiccurrentvisibilityresponse.d.ts.map +1 -1
- package/esm/models/publiccurrentvisibilityresponse.js +8 -0
- package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
- package/esm/models/publicperiodcoverage.d.ts +13 -0
- package/esm/models/publicperiodcoverage.d.ts.map +1 -0
- package/esm/models/publicperiodcoverage.js +17 -0
- package/esm/models/publicperiodcoverage.js.map +1 -0
- package/esm/models/publicperiodrates.d.ts +10 -0
- package/esm/models/publicperiodrates.d.ts.map +1 -0
- package/esm/models/publicperiodrates.js +14 -0
- package/esm/models/publicperiodrates.js.map +1 -0
- package/esm/models/publicpreviousvisibility.d.ts +10 -0
- package/esm/models/publicpreviousvisibility.d.ts.map +1 -0
- package/esm/models/publicpreviousvisibility.js +13 -0
- package/esm/models/publicpreviousvisibility.js.map +1 -0
- package/esm/models/publicpromptvisibilityreportresponse.d.ts +6 -0
- package/esm/models/publicpromptvisibilityreportresponse.d.ts.map +1 -1
- package/esm/models/publicpromptvisibilityreportresponse.js +6 -0
- package/esm/models/publicpromptvisibilityreportresponse.js.map +1 -1
- package/esm/models/publicratechanges.d.ts +8 -0
- package/esm/models/publicratechanges.d.ts.map +1 -0
- package/esm/models/publicratechanges.js +12 -0
- package/esm/models/publicratechanges.js.map +1 -0
- package/esm/models/publicrates.d.ts +27 -0
- package/esm/models/publicrates.d.ts.map +1 -0
- package/esm/models/publicrates.js +25 -0
- package/esm/models/publicrates.js.map +1 -0
- package/esm/models/publicresolvedperiod.d.ts +14 -0
- package/esm/models/publicresolvedperiod.d.ts.map +1 -0
- package/esm/models/publicresolvedperiod.js +18 -0
- package/esm/models/publicresolvedperiod.js.map +1 -0
- package/esm/models/publictopcitedurlsresponse.d.ts +10 -4
- package/esm/models/publictopcitedurlsresponse.d.ts.map +1 -1
- package/esm/models/publictopcitedurlsresponse.js +9 -3
- package/esm/models/publictopcitedurlsresponse.js.map +1 -1
- package/esm/models/publicvisibilityoverviewresponse.d.ts +6 -0
- package/esm/models/publicvisibilityoverviewresponse.d.ts.map +1 -1
- package/esm/models/publicvisibilityoverviewresponse.js +6 -0
- package/esm/models/publicvisibilityoverviewresponse.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/updatev2promptrequest.js +1 -1
- package/esm/models/updatev2promptrequest.js.map +1 -1
- package/esm/models/v2agentanalyticscountrieslistop.d.ts +1 -0
- package/esm/models/v2agentanalyticscountrieslistop.d.ts.map +1 -1
- package/esm/models/v2agentanalyticscountrieslistop.js +1 -0
- package/esm/models/v2agentanalyticscountrieslistop.js.map +1 -1
- package/esm/models/v2agentanalyticserrorpageslistop.d.ts +1 -0
- package/esm/models/v2agentanalyticserrorpageslistop.d.ts.map +1 -1
- package/esm/models/v2agentanalyticserrorpageslistop.js +1 -0
- package/esm/models/v2agentanalyticserrorpageslistop.js.map +1 -1
- package/esm/models/v2agentanalyticspageslistop.d.ts +1 -0
- package/esm/models/v2agentanalyticspageslistop.d.ts.map +1 -1
- package/esm/models/v2agentanalyticspageslistop.js +1 -0
- package/esm/models/v2agentanalyticspageslistop.js.map +1 -1
- package/esm/models/v2agentanalyticssourceslistop.d.ts +1 -0
- package/esm/models/v2agentanalyticssourceslistop.d.ts.map +1 -1
- package/esm/models/v2agentanalyticssourceslistop.js +1 -0
- package/esm/models/v2agentanalyticssourceslistop.js.map +1 -1
- package/esm/models/v2agentanalyticssummaryretrieveop.d.ts +1 -0
- package/esm/models/v2agentanalyticssummaryretrieveop.d.ts.map +1 -1
- package/esm/models/v2agentanalyticssummaryretrieveop.js +1 -0
- package/esm/models/v2agentanalyticssummaryretrieveop.js.map +1 -1
- package/esm/models/v2promptrunscancelop.d.ts +38 -0
- package/esm/models/v2promptrunscancelop.d.ts.map +1 -0
- package/esm/models/v2promptrunscancelop.js +31 -0
- package/esm/models/v2promptrunscancelop.js.map +1 -0
- package/esm/models/v2prompttarget.d.ts +44 -0
- package/esm/models/v2prompttarget.d.ts.map +1 -0
- package/esm/models/v2prompttarget.js +41 -0
- package/esm/models/v2prompttarget.js.map +1 -0
- package/esm/models/v2prompttargetinput.d.ts +47 -0
- package/esm/models/v2prompttargetinput.d.ts.map +1 -0
- package/esm/models/v2prompttargetinput.js +45 -0
- package/esm/models/v2prompttargetinput.js.map +1 -0
- package/esm/models/v2prompttargetslistop.d.ts +10 -0
- package/esm/models/v2prompttargetslistop.d.ts.map +1 -0
- package/esm/models/v2prompttargetslistop.js +15 -0
- package/esm/models/v2prompttargetslistop.js.map +1 -0
- package/esm/models/v2prompttargetsresponse.d.ts +8 -0
- package/esm/models/v2prompttargetsresponse.d.ts.map +1 -0
- package/esm/models/v2prompttargetsresponse.js +11 -0
- package/esm/models/v2prompttargetsresponse.js.map +1 -0
- package/esm/models/v2prompttargetssetop.d.ts +6 -0
- package/esm/models/v2prompttargetssetop.d.ts.map +1 -0
- package/esm/models/v2prompttargetssetop.js +12 -0
- package/esm/models/v2prompttargetssetop.js.map +1 -0
- package/esm/models/v2visibilitycitationslistop.d.ts +1 -0
- package/esm/models/v2visibilitycitationslistop.d.ts.map +1 -1
- package/esm/models/v2visibilitycitationslistop.js +1 -0
- package/esm/models/v2visibilitycitationslistop.js.map +1 -1
- package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts +54 -0
- package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts.map +1 -0
- package/esm/models/v2visibilitycitationssummaryretrieveop.js +51 -0
- package/esm/models/v2visibilitycitationssummaryretrieveop.js.map +1 -0
- package/esm/models/v2visibilitycurrentretrieveop.d.ts +1 -0
- package/esm/models/v2visibilitycurrentretrieveop.d.ts.map +1 -1
- package/esm/models/v2visibilitycurrentretrieveop.js +1 -0
- package/esm/models/v2visibilitycurrentretrieveop.js.map +1 -1
- package/esm/models/v2visibilityoverviewretrieveop.d.ts +1 -0
- package/esm/models/v2visibilityoverviewretrieveop.d.ts.map +1 -1
- package/esm/models/v2visibilityoverviewretrieveop.js +1 -0
- package/esm/models/v2visibilityoverviewretrieveop.js.map +1 -1
- package/esm/models/v2visibilitypromptsretrieveop.d.ts +1 -0
- package/esm/models/v2visibilitypromptsretrieveop.d.ts.map +1 -1
- package/esm/models/v2visibilitypromptsretrieveop.js +1 -0
- package/esm/models/v2visibilitypromptsretrieveop.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +24 -8
- 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/agentAnalyticsCountriesList.ts +1 -0
- package/src/funcs/agentAnalyticsErrorPagesList.ts +1 -0
- package/src/funcs/agentAnalyticsPagesList.ts +1 -0
- package/src/funcs/agentAnalyticsSourcesList.ts +1 -0
- package/src/funcs/agentAnalyticsSummaryRetrieve.ts +2 -1
- package/src/funcs/agentsList.ts +1 -1
- package/src/funcs/evalsCreate.ts +2 -0
- package/src/funcs/evalsRun.ts +2 -0
- package/src/funcs/promptsRun.ts +8 -3
- package/src/funcs/promptsRunCancel.ts +153 -0
- package/src/funcs/promptsTargetsList.ts +148 -0
- package/src/funcs/promptsTargetsSet.ts +145 -0
- package/src/funcs/visibilityCitationsList.ts +2 -1
- package/src/funcs/visibilityCitationsSummaryRetrieve.ts +158 -0
- package/src/funcs/visibilityCurrentRetrieve.ts +2 -1
- package/src/funcs/visibilityOverviewRetrieve.ts +2 -1
- package/src/funcs/visibilityPromptsRetrieve.ts +1 -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 +9 -1
- package/src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts +1 -1
- package/src/mcp-server/tools/agentsList.ts +1 -1
- package/src/mcp-server/tools/evalsCreate.ts +3 -1
- package/src/mcp-server/tools/evalsRun.ts +2 -0
- package/src/mcp-server/tools/promptsRun.ts +8 -3
- package/src/mcp-server/tools/promptsRunCancel.ts +43 -0
- package/src/mcp-server/tools/promptsTargetsList.ts +43 -0
- package/src/mcp-server/tools/promptsTargetsSet.ts +43 -0
- package/src/mcp-server/tools/visibilityCitationsList.ts +1 -1
- package/src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts +45 -0
- package/src/mcp-server/tools/visibilityCurrentRetrieve.ts +1 -1
- package/src/mcp-server/tools/visibilityOverviewRetrieve.ts +1 -1
- package/src/models/createv2promptrequest.ts +1 -1
- package/src/models/createv2promptrunrequest.ts +5 -1
- package/src/models/evaltemplateschedule.ts +8 -7
- package/src/models/publicagentanalyticscountrylistresponse.ts +8 -0
- package/src/models/publicagentanalyticserrorpagelistresponse.ts +8 -0
- package/src/models/publicagentanalyticspagelistresponse.ts +8 -0
- package/src/models/publicagentanalyticssourcelistresponse.ts +8 -0
- package/src/models/publicagentanalyticssummary.ts +8 -0
- package/src/models/publiccitationsummarygroup.ts +54 -0
- package/src/models/publiccitationsummaryresponse.ts +110 -0
- package/src/models/publiccitationsummarytotals.ts +38 -0
- package/src/models/publiccoverage.ts +34 -0
- package/src/models/publiccoverageday.ts +68 -0
- package/src/models/publiccurrentvisibilityresponse.ts +26 -0
- package/src/models/publicperiodcoverage.ts +33 -0
- package/src/models/publicperiodrates.ts +29 -0
- package/src/models/publicpreviousvisibility.ts +30 -0
- package/src/models/publicpromptvisibilityreportresponse.ts +18 -0
- package/src/models/publicratechanges.ts +25 -0
- package/src/models/publicrates.ts +52 -0
- package/src/models/publicresolvedperiod.ts +41 -0
- package/src/models/publictopcitedurlsresponse.ts +25 -5
- package/src/models/publicvisibilityoverviewresponse.ts +18 -0
- package/src/models/setv2prompttargetsrequest.ts +26 -0
- package/src/models/setv2prompttargetsresponse.ts +23 -0
- package/src/models/updatev2promptrequest.ts +1 -1
- package/src/models/v2agentanalyticscountrieslistop.ts +4 -0
- package/src/models/v2agentanalyticserrorpageslistop.ts +4 -0
- package/src/models/v2agentanalyticspageslistop.ts +4 -0
- package/src/models/v2agentanalyticssourceslistop.ts +4 -0
- package/src/models/v2agentanalyticssummaryretrieveop.ts +4 -0
- package/src/models/v2promptrunscancelop.ts +90 -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/models/v2visibilitycitationslistop.ts +4 -0
- package/src/models/v2visibilitycitationssummaryretrieveop.ts +113 -0
- package/src/models/v2visibilitycurrentretrieveop.ts +4 -0
- package/src/models/v2visibilityoverviewretrieveop.ts +4 -0
- package/src/models/v2visibilitypromptsretrieveop.ts +4 -0
- package/src/tool-names.ts +24 -8
- package/test/tracker.test.js +83 -1
package/bin/mcp-server.js
CHANGED
|
@@ -26195,7 +26195,8 @@ var require_formats = __commonJS(function(exports, module) {
|
|
|
26195
26195
|
var percentTwenties = /%20/g;
|
|
26196
26196
|
var Format = {
|
|
26197
26197
|
RFC1738: "RFC1738",
|
|
26198
|
-
RFC3986: "RFC3986"
|
|
26198
|
+
RFC3986: "RFC3986",
|
|
26199
|
+
WHATWG: "WHATWG"
|
|
26199
26200
|
};
|
|
26200
26201
|
module.exports = {
|
|
26201
26202
|
default: Format.RFC3986,
|
|
@@ -26205,10 +26206,14 @@ var require_formats = __commonJS(function(exports, module) {
|
|
|
26205
26206
|
},
|
|
26206
26207
|
RFC3986: function(value) {
|
|
26207
26208
|
return String(value);
|
|
26209
|
+
},
|
|
26210
|
+
WHATWG: function(value) {
|
|
26211
|
+
return replace.call(value, percentTwenties, "+");
|
|
26208
26212
|
}
|
|
26209
26213
|
},
|
|
26210
26214
|
RFC1738: Format.RFC1738,
|
|
26211
|
-
RFC3986: Format.RFC3986
|
|
26215
|
+
RFC3986: Format.RFC3986,
|
|
26216
|
+
WHATWG: Format.WHATWG
|
|
26212
26217
|
};
|
|
26213
26218
|
});
|
|
26214
26219
|
|
|
@@ -26512,7 +26517,7 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
26512
26517
|
var arr = [];
|
|
26513
26518
|
for (var i = 0;i < segment.length; ++i) {
|
|
26514
26519
|
var c = segment.charCodeAt(i);
|
|
26515
|
-
if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
|
|
26520
|
+
if (c === 45 || c === 46 || c === 95 || c === 126 && format !== formats.WHATWG || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41) || format === formats.WHATWG && c === 42) {
|
|
26516
26521
|
arr[arr.length] = segment.charAt(i);
|
|
26517
26522
|
continue;
|
|
26518
26523
|
}
|
|
@@ -26528,9 +26533,14 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
26528
26533
|
arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
26529
26534
|
continue;
|
|
26530
26535
|
}
|
|
26531
|
-
i
|
|
26532
|
-
c
|
|
26533
|
-
|
|
26536
|
+
var next = segment.charCodeAt(i + 1);
|
|
26537
|
+
if (c <= 56319 && next >= 56320 && next <= 57343) {
|
|
26538
|
+
i += 1;
|
|
26539
|
+
c = 65536 + ((c & 1023) << 10 | next & 1023);
|
|
26540
|
+
arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
26541
|
+
} else {
|
|
26542
|
+
arr[arr.length] = "%EF%BF%BD";
|
|
26543
|
+
}
|
|
26534
26544
|
}
|
|
26535
26545
|
out += arr.join("");
|
|
26536
26546
|
}
|
|
@@ -26610,6 +26620,7 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
26610
26620
|
markOverflow,
|
|
26611
26621
|
maybeMap,
|
|
26612
26622
|
merge,
|
|
26623
|
+
setProperty,
|
|
26613
26624
|
toCoercible
|
|
26614
26625
|
};
|
|
26615
26626
|
});
|
|
@@ -26734,7 +26745,7 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
26734
26745
|
var encodedPrefix = String(prefix);
|
|
26735
26746
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
26736
26747
|
if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
|
|
26737
|
-
return adjustedPrefix + "[]";
|
|
26748
|
+
return formatter(encoder && !encodeValuesOnly ? encoder(adjustedPrefix, defaults.encoder, charset, "key", format) : adjustedPrefix) + "[]";
|
|
26738
26749
|
}
|
|
26739
26750
|
for (var j = 0;j < objKeys.length; ++j) {
|
|
26740
26751
|
var key = objKeys[j];
|
|
@@ -26824,7 +26835,7 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
26824
26835
|
filter = options.filter;
|
|
26825
26836
|
obj = filter("", obj);
|
|
26826
26837
|
} else if (isArray(options.filter)) {
|
|
26827
|
-
filter = options.filter;
|
|
26838
|
+
filter = options.filter.slice();
|
|
26828
26839
|
objKeys = filter;
|
|
26829
26840
|
}
|
|
26830
26841
|
var keys = [];
|
|
@@ -26850,7 +26861,7 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
26850
26861
|
continue;
|
|
26851
26862
|
}
|
|
26852
26863
|
var encodedKey = options.encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
26853
|
-
pushToArray(keys, stringify(value, encodedKey, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null,
|
|
26864
|
+
pushToArray(keys, stringify(value, encodedKey, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel, options.depth, 0));
|
|
26854
26865
|
}
|
|
26855
26866
|
var joined = keys.join(options.delimiter);
|
|
26856
26867
|
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
@@ -26906,9 +26917,9 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
26906
26917
|
copies.set(value, copy);
|
|
26907
26918
|
queue[queue.length] = { source: value, target: copy };
|
|
26908
26919
|
}
|
|
26909
|
-
target
|
|
26920
|
+
utils.setProperty(target, keys[j], copies.get(value));
|
|
26910
26921
|
} else {
|
|
26911
|
-
target
|
|
26922
|
+
utils.setProperty(target, keys[j], value);
|
|
26912
26923
|
}
|
|
26913
26924
|
}
|
|
26914
26925
|
}
|
|
@@ -26958,7 +26969,7 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
26958
26969
|
}
|
|
26959
26970
|
return val.split(",");
|
|
26960
26971
|
}
|
|
26961
|
-
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
26972
|
+
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit && currentArrayLength > 0) {
|
|
26962
26973
|
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
26963
26974
|
}
|
|
26964
26975
|
return val;
|
|
@@ -27006,13 +27017,15 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
27006
27017
|
} else {
|
|
27007
27018
|
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
27008
27019
|
if (key !== null) {
|
|
27009
|
-
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
27020
|
+
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) && (options.duplicates === "combine" || isEmptyBracketKey) ? obj[key].length : 0), function(encodedVal) {
|
|
27010
27021
|
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
27011
27022
|
});
|
|
27012
27023
|
}
|
|
27013
27024
|
}
|
|
27014
27025
|
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
27015
|
-
val =
|
|
27026
|
+
val = utils.maybeMap(val, function(value) {
|
|
27027
|
+
return value ? interpretNumericEntities(String(value)) : value;
|
|
27028
|
+
});
|
|
27016
27029
|
}
|
|
27017
27030
|
if (isEmptyBracketKey) {
|
|
27018
27031
|
val = isArray(val) ? [val] : val;
|
|
@@ -27050,7 +27063,7 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
27050
27063
|
} else {
|
|
27051
27064
|
obj = options.plainObjects ? { __proto__: null } : {};
|
|
27052
27065
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
27053
|
-
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/
|
|
27066
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/gi, ".") : cleanRoot;
|
|
27054
27067
|
var index = parseInt(decodedRoot, 10);
|
|
27055
27068
|
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
27056
27069
|
if (!options.parseArrays && decodedRoot === "") {
|
|
@@ -53715,9 +53728,9 @@ var init_config = __esm(() => {
|
|
|
53715
53728
|
SDK_METADATA = {
|
|
53716
53729
|
language: "typescript",
|
|
53717
53730
|
openapiDocVersion: "1.0.0",
|
|
53718
|
-
sdkVersion: "0.4.
|
|
53731
|
+
sdkVersion: "0.4.19",
|
|
53719
53732
|
genVersion: "2.948.4",
|
|
53720
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
53733
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.19 2.948.4 1.0.0 @lightsage/mcp"
|
|
53721
53734
|
};
|
|
53722
53735
|
});
|
|
53723
53736
|
|
|
@@ -55217,14 +55230,33 @@ var init_publicagentcountry = __esm(() => {
|
|
|
55217
55230
|
});
|
|
55218
55231
|
});
|
|
55219
55232
|
|
|
55233
|
+
// src/models/publicresolvedperiod.ts
|
|
55234
|
+
var PublicResolvedPeriod$zodSchema;
|
|
55235
|
+
var init_publicresolvedperiod = __esm(() => {
|
|
55236
|
+
init_zod();
|
|
55237
|
+
PublicResolvedPeriod$zodSchema = object({
|
|
55238
|
+
days: int().describe("Days in the period, counting both ends."),
|
|
55239
|
+
end_date: string2().describe("Last day of the period (UTC), inclusive."),
|
|
55240
|
+
name: string2().nullable().optional().describe("The `period` requested, or null when the range came from `start_date` and `end_date`."),
|
|
55241
|
+
partial: boolean2().describe("Whether the period includes today, so its last day is still in progress."),
|
|
55242
|
+
previous_days: int().describe("Days in the previous period."),
|
|
55243
|
+
previous_end_date: string2().describe("Last day of the previous period. While a calendar week, month, or quarter is in progress, the previous one is cut to the same number of days."),
|
|
55244
|
+
previous_start_date: string2().describe("First day of the previous period it is compared with."),
|
|
55245
|
+
start_date: string2().describe("First day of the period (UTC), inclusive."),
|
|
55246
|
+
timezone: literal("UTC").default("UTC")
|
|
55247
|
+
});
|
|
55248
|
+
});
|
|
55249
|
+
|
|
55220
55250
|
// src/models/publicagentanalyticscountrylistresponse.ts
|
|
55221
55251
|
var PublicAgentAnalyticsCountryListResponse$zodSchema;
|
|
55222
55252
|
var init_publicagentanalyticscountrylistresponse = __esm(() => {
|
|
55223
55253
|
init_zod();
|
|
55224
55254
|
init_publicagentcountry();
|
|
55255
|
+
init_publicresolvedperiod();
|
|
55225
55256
|
PublicAgentAnalyticsCountryListResponse$zodSchema = object({
|
|
55226
55257
|
countries: array(PublicAgentCountry$zodSchema).optional().describe("Visits from coding agents and AI assistants per country, most visits first. The country is located from the IP address the request came from. For hosted assistants such as ChatGPT that is usually the provider's servers, not the person who asked; for coding agents it is usually the developer's machine."),
|
|
55227
55258
|
end_date: string2().date(),
|
|
55259
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
|
|
55228
55260
|
site_id: string2(),
|
|
55229
55261
|
start_date: string2().date()
|
|
55230
55262
|
});
|
|
@@ -55239,6 +55271,7 @@ var init_v2agentanalyticscountrieslistop = __esm(() => {
|
|
|
55239
55271
|
V2AgentAnalyticsCountriesListRequest$zodSchema = object({
|
|
55240
55272
|
end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
|
|
55241
55273
|
limit: int().default(20),
|
|
55274
|
+
period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
|
|
55242
55275
|
site_id: string2(),
|
|
55243
55276
|
start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional()
|
|
55244
55277
|
});
|
|
@@ -55298,6 +55331,7 @@ async function $do(client$, request, options) {
|
|
|
55298
55331
|
const query$ = encodeFormQuery({
|
|
55299
55332
|
end_date: payload$.end_date,
|
|
55300
55333
|
limit: payload$.limit,
|
|
55334
|
+
period: payload$.period,
|
|
55301
55335
|
start_date: payload$.start_date
|
|
55302
55336
|
});
|
|
55303
55337
|
const headers$ = new Headers(compactMap({
|
|
@@ -55442,9 +55476,11 @@ var PublicAgentAnalyticsErrorPageListResponse$zodSchema;
|
|
|
55442
55476
|
var init_publicagentanalyticserrorpagelistresponse = __esm(() => {
|
|
55443
55477
|
init_zod();
|
|
55444
55478
|
init_publicagenterrorpage();
|
|
55479
|
+
init_publicresolvedperiod();
|
|
55445
55480
|
PublicAgentAnalyticsErrorPageListResponse$zodSchema = object({
|
|
55446
55481
|
end_date: string2().date(),
|
|
55447
55482
|
pages: array(PublicAgentErrorPage$zodSchema).optional().describe("Most error requests first."),
|
|
55483
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
|
|
55448
55484
|
site_id: string2(),
|
|
55449
55485
|
start_date: string2().date(),
|
|
55450
55486
|
status_codes_tracked: boolean2().describe("Whether any request to the site in the date range reported a status code. Status codes come from server-side tracking such as a log drain or middleware; when this is false, an empty `pages` list does not mean there were no errors.")
|
|
@@ -55468,6 +55504,7 @@ var init_v2agentanalyticserrorpageslistop = __esm(() => {
|
|
|
55468
55504
|
V2AgentAnalyticsErrorPagesListRequest$zodSchema = object({
|
|
55469
55505
|
end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
|
|
55470
55506
|
limit: int().default(50),
|
|
55507
|
+
period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
|
|
55471
55508
|
site_id: string2(),
|
|
55472
55509
|
start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional(),
|
|
55473
55510
|
status: int().describe("Only this status code, such as 404.").optional(),
|
|
@@ -55500,6 +55537,7 @@ async function $do2(client$, request, options) {
|
|
|
55500
55537
|
const query$ = encodeFormQuery({
|
|
55501
55538
|
end_date: payload$.end_date,
|
|
55502
55539
|
limit: payload$.limit,
|
|
55540
|
+
period: payload$.period,
|
|
55503
55541
|
start_date: payload$.start_date,
|
|
55504
55542
|
status: payload$.status,
|
|
55505
55543
|
type: payload$.type
|
|
@@ -55622,10 +55660,12 @@ var PublicAgentAnalyticsPageListResponse$zodSchema;
|
|
|
55622
55660
|
var init_publicagentanalyticspagelistresponse = __esm(() => {
|
|
55623
55661
|
init_zod();
|
|
55624
55662
|
init_publicagenttrafficpage();
|
|
55663
|
+
init_publicresolvedperiod();
|
|
55625
55664
|
PublicAgentAnalyticsPageListResponse$zodSchema = object({
|
|
55626
55665
|
agent: string2().nullable().optional().describe("The coding agent the pages were filtered to, when `agent` was set. Its visits are in `coding` and `ai_total`; the other counts are 0."),
|
|
55627
55666
|
end_date: string2().date(),
|
|
55628
55667
|
pages: array(PublicAgentTrafficPage$zodSchema).optional(),
|
|
55668
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
|
|
55629
55669
|
site_id: string2(),
|
|
55630
55670
|
start_date: string2().date()
|
|
55631
55671
|
});
|
|
@@ -55659,6 +55699,7 @@ var init_v2agentanalyticspageslistop = __esm(() => {
|
|
|
55659
55699
|
agent: string2().describe("Only pages this coding agent read, by the `name` the sources list gives it, such as `codex` or `cursor`.").optional(),
|
|
55660
55700
|
end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
|
|
55661
55701
|
limit: int().default(20),
|
|
55702
|
+
period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
|
|
55662
55703
|
search: string2().describe("Only pages whose path contains this text.").optional(),
|
|
55663
55704
|
site_id: string2(),
|
|
55664
55705
|
sort: Sort$zodSchema.default("ai_total").describe("Traffic type to sort by, most visits first, or `last_seen` for the latest visit first."),
|
|
@@ -55693,6 +55734,7 @@ async function $do3(client$, request, options) {
|
|
|
55693
55734
|
agent: payload$.agent,
|
|
55694
55735
|
end_date: payload$.end_date,
|
|
55695
55736
|
limit: payload$.limit,
|
|
55737
|
+
period: payload$.period,
|
|
55696
55738
|
search: payload$.search,
|
|
55697
55739
|
sort: payload$.sort,
|
|
55698
55740
|
start_date: payload$.start_date,
|
|
@@ -55918,8 +55960,10 @@ var PublicAgentAnalyticsSourceListResponse$zodSchema;
|
|
|
55918
55960
|
var init_publicagentanalyticssourcelistresponse = __esm(() => {
|
|
55919
55961
|
init_zod();
|
|
55920
55962
|
init_publicagenttrafficsource();
|
|
55963
|
+
init_publicresolvedperiod();
|
|
55921
55964
|
PublicAgentAnalyticsSourceListResponse$zodSchema = object({
|
|
55922
55965
|
end_date: string2().date(),
|
|
55966
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
|
|
55923
55967
|
site_id: string2(),
|
|
55924
55968
|
sources: array(PublicAgentTrafficSource$zodSchema).optional().describe("Most visits first."),
|
|
55925
55969
|
start_date: string2().date()
|
|
@@ -55934,6 +55978,7 @@ var init_v2agentanalyticssourceslistop = __esm(() => {
|
|
|
55934
55978
|
init_publicagentanalyticssourcelistresponse();
|
|
55935
55979
|
V2AgentAnalyticsSourcesListRequest$zodSchema = object({
|
|
55936
55980
|
end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
|
|
55981
|
+
period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
|
|
55937
55982
|
site_id: string2(),
|
|
55938
55983
|
start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional()
|
|
55939
55984
|
});
|
|
@@ -55963,6 +56008,7 @@ async function $do5(client$, request, options) {
|
|
|
55963
56008
|
const path$ = pathToFunc("/v2/agent-analytics/sites/{site_id}/sources")(pathParams$);
|
|
55964
56009
|
const query$ = encodeFormQuery({
|
|
55965
56010
|
end_date: payload$.end_date,
|
|
56011
|
+
period: payload$.period,
|
|
55966
56012
|
start_date: payload$.start_date
|
|
55967
56013
|
});
|
|
55968
56014
|
const headers$ = new Headers(compactMap({
|
|
@@ -56082,9 +56128,11 @@ var PublicAgentAnalyticsSummary$zodSchema;
|
|
|
56082
56128
|
var init_publicagentanalyticssummary = __esm(() => {
|
|
56083
56129
|
init_zod();
|
|
56084
56130
|
init_publicagenttraffictotals();
|
|
56131
|
+
init_publicresolvedperiod();
|
|
56085
56132
|
PublicAgentAnalyticsSummary$zodSchema = object({
|
|
56086
56133
|
current: PublicAgentTrafficTotals$zodSchema,
|
|
56087
56134
|
end_date: string2().date(),
|
|
56135
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
|
|
56088
56136
|
previous: PublicAgentTrafficTotals$zodSchema,
|
|
56089
56137
|
site_id: string2(),
|
|
56090
56138
|
start_date: string2().date()
|
|
@@ -56099,6 +56147,7 @@ var init_v2agentanalyticssummaryretrieveop = __esm(() => {
|
|
|
56099
56147
|
init_publicagentanalyticssummary();
|
|
56100
56148
|
V2AgentAnalyticsSummaryRetrieveRequest$zodSchema = object({
|
|
56101
56149
|
end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
|
|
56150
|
+
period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
|
|
56102
56151
|
site_id: string2(),
|
|
56103
56152
|
start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional()
|
|
56104
56153
|
});
|
|
@@ -56128,6 +56177,7 @@ async function $do6(client$, request, options) {
|
|
|
56128
56177
|
const path$ = pathToFunc("/v2/agent-analytics/sites/{site_id}/summary")(pathParams$);
|
|
56129
56178
|
const query$ = encodeFormQuery({
|
|
56130
56179
|
end_date: payload$.end_date,
|
|
56180
|
+
period: payload$.period,
|
|
56131
56181
|
start_date: payload$.start_date
|
|
56132
56182
|
});
|
|
56133
56183
|
const headers$ = new Headers(compactMap({
|
|
@@ -56204,7 +56254,7 @@ var init_agentAnalyticsSummaryRetrieve2 = __esm(() => {
|
|
|
56204
56254
|
name: "agent-analytics-summary-retrieve",
|
|
56205
56255
|
description: `Retrieve Agent Analytics Summary
|
|
56206
56256
|
|
|
56207
|
-
Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the same number of days before it.`,
|
|
56257
|
+
Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the previous period (the same number of days before it, or the previous calendar week, month, or quarter for a named \`period\`).`,
|
|
56208
56258
|
annotations: {
|
|
56209
56259
|
title: "",
|
|
56210
56260
|
destructiveHint: false,
|
|
@@ -57419,7 +57469,7 @@ var init_agentsList2 = __esm(() => {
|
|
|
57419
57469
|
name: "agents-list",
|
|
57420
57470
|
description: `List Agents
|
|
57421
57471
|
|
|
57422
|
-
Returns the harness-and-model combinations your plan can run, as single agent IDs
|
|
57472
|
+
Returns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as \`agent\` to \`POST /v2/prompts/runs\` to see how coding agents answer your prompts, with mentions and citations, or to \`PUT /v2/prompts/targets\` to run them on a schedule; to \`POST /v2/agent-preference/evals\` to see whether agents recommend your company over one competitor; or to \`POST /v2/evals\` and \`POST /v2/eval-runs\` to measure how well agents complete tasks with your product.`,
|
|
57423
57473
|
annotations: {
|
|
57424
57474
|
title: "",
|
|
57425
57475
|
destructiveHint: false,
|
|
@@ -58954,7 +59004,9 @@ var init_evalsCreate2 = __esm(() => {
|
|
|
58954
59004
|
name: "evals-create",
|
|
58955
59005
|
description: `Create Eval
|
|
58956
59006
|
|
|
58957
|
-
Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. \`search_grounding\` supports \`disabled\`, \`enabled\`, and \`default\`; \`default\` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values
|
|
59007
|
+
Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. \`search_grounding\` supports \`disabled\`, \`enabled\`, and \`default\`; \`default\` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.
|
|
59008
|
+
|
|
59009
|
+
Evals measure how well agents complete tasks with your product. To track how agents and answer engines answer research questions, including which brands they mention and cite, run prompts with \`POST /v2/prompts/runs\` instead.`,
|
|
58958
59010
|
annotations: {
|
|
58959
59011
|
title: "",
|
|
58960
59012
|
destructiveHint: false,
|
|
@@ -59772,6 +59824,8 @@ var init_evalsRun2 = __esm(() => {
|
|
|
59772
59824
|
|
|
59773
59825
|
Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.
|
|
59774
59826
|
|
|
59827
|
+
Eval runs measure how well agents complete tasks with your product. To compare how coding agents and answer engines answer the same research question, with mentions and citations, use \`POST /v2/prompts/runs\` with \`agent\` instead.
|
|
59828
|
+
|
|
59775
59829
|
Send one of these flat request forms:
|
|
59776
59830
|
|
|
59777
59831
|
- **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
|
|
@@ -60161,17 +60215,17 @@ var init_evaltemplateruntime = __esm(() => {
|
|
|
60161
60215
|
});
|
|
60162
60216
|
|
|
60163
60217
|
// src/models/evaltemplateschedule.ts
|
|
60164
|
-
var
|
|
60218
|
+
var EvalTemplateScheduleFrequency$zodSchema, EvalTemplateSchedule$zodSchema;
|
|
60165
60219
|
var init_evaltemplateschedule = __esm(() => {
|
|
60166
60220
|
init_zod();
|
|
60167
|
-
|
|
60221
|
+
EvalTemplateScheduleFrequency$zodSchema = _enum([
|
|
60168
60222
|
"daily",
|
|
60169
60223
|
"every_other_day",
|
|
60170
60224
|
"weekly"
|
|
60171
60225
|
]).describe("Schedule cadence used when `enabled` is true.");
|
|
60172
60226
|
EvalTemplateSchedule$zodSchema = object({
|
|
60173
60227
|
enabled: boolean2().default(false).describe("Whether each eval created from the template receives a schedule."),
|
|
60174
|
-
frequency:
|
|
60228
|
+
frequency: EvalTemplateScheduleFrequency$zodSchema.default("weekly").describe("Schedule cadence used when `enabled` is true.")
|
|
60175
60229
|
}).describe("Schedule copied into every eval created from the template.");
|
|
60176
60230
|
});
|
|
60177
60231
|
|
|
@@ -61460,7 +61514,7 @@ var init_createv2promptrequest = __esm(() => {
|
|
|
61460
61514
|
init_zod();
|
|
61461
61515
|
init_v2promptrunsettingsinput();
|
|
61462
61516
|
CreateV2PromptRequest$zodSchema = object({
|
|
61463
|
-
platform_ids: array(string2()).optional().describe("
|
|
61517
|
+
platform_ids: array(string2()).optional().describe("Platform IDs, as returned in `platforms` on `GET /v2/prompts`. Omit to attach none. To choose which coding-agent models a run uses, pass `agent` to `POST /v2/prompts/runs`."),
|
|
61464
61518
|
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."),
|
|
61465
61519
|
text: string2(),
|
|
61466
61520
|
topic_id: string2().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
|
|
@@ -62081,7 +62135,8 @@ var CreateV2PromptRunRequest$zodSchema;
|
|
|
62081
62135
|
var init_createv2promptrunrequest = __esm(() => {
|
|
62082
62136
|
init_zod();
|
|
62083
62137
|
CreateV2PromptRunRequest$zodSchema = object({
|
|
62084
|
-
|
|
62138
|
+
agent: array(string2()).nullable().optional().describe("Runnable agents from `GET /v2/agents`, each a coding-agent harness and model such as `claude-code:claude-opus-5-5`. Every selected prompt runs once on each agent, so you can compare how several coding tools and models answer the same question. When set, this run uses only these agents instead of the organization's configured targets, including answer engines, and saves nothing. Omit it to use the configured targets; change those with `PUT /v2/prompts/targets`. CLI clients expose repeatable `--agent`."),
|
|
62139
|
+
force: boolean2().default(false).describe("Run even when a prompt already ran today on the same platform and model."),
|
|
62085
62140
|
prompt_ids: array(string2()).nullable().optional().describe("Prompt IDs from `GET /v2/prompts`. Omit this field to run all active prompts.")
|
|
62086
62141
|
});
|
|
62087
62142
|
});
|
|
@@ -62172,11 +62227,16 @@ var init_promptsRun2 = __esm(() => {
|
|
|
62172
62227
|
name: "prompts-run",
|
|
62173
62228
|
description: `Run Prompts
|
|
62174
62229
|
|
|
62175
|
-
Queue saved prompts
|
|
62230
|
+
Queue saved prompts on answer engines and coding agents.
|
|
62176
62231
|
|
|
62177
62232
|
Provide \`prompt_ids\` to run selected prompts, or omit them to run all active
|
|
62178
|
-
prompts.
|
|
62179
|
-
|
|
62233
|
+
prompts. By default the run uses the organization's configured targets,
|
|
62234
|
+
listed by \`GET /v2/prompts/targets\`.
|
|
62235
|
+
Provide \`agent\` with IDs from \`GET /v2/agents\` to run the prompts on
|
|
62236
|
+
specific coding-agent harnesses and models instead, for example to compare
|
|
62237
|
+
how several coding tools answer the same developer question. Results
|
|
62238
|
+
include mentions and citations. Saved prompt run settings apply to
|
|
62239
|
+
coding-agent targets. The response returns a run ID to poll with
|
|
62180
62240
|
\`GET /v2/prompts/runs/{run_id}/status\`.`,
|
|
62181
62241
|
annotations: {
|
|
62182
62242
|
title: "",
|
|
@@ -62199,6 +62259,190 @@ response returns a run ID to poll with
|
|
|
62199
62259
|
};
|
|
62200
62260
|
});
|
|
62201
62261
|
|
|
62262
|
+
// src/models/v2promptrunjobresponse.ts
|
|
62263
|
+
var V2PromptRunJobResponseStatusEnum$zodSchema, Status$zodSchema, V2PromptRunJobResponse$zodSchema;
|
|
62264
|
+
var init_v2promptrunjobresponse = __esm(() => {
|
|
62265
|
+
init_zod();
|
|
62266
|
+
init_publicevalrunprogress();
|
|
62267
|
+
V2PromptRunJobResponseStatusEnum$zodSchema = _enum([
|
|
62268
|
+
"pending",
|
|
62269
|
+
"running",
|
|
62270
|
+
"summarizing",
|
|
62271
|
+
"completed",
|
|
62272
|
+
"failed",
|
|
62273
|
+
"cancelled",
|
|
62274
|
+
"interrupted"
|
|
62275
|
+
]);
|
|
62276
|
+
Status$zodSchema = union([
|
|
62277
|
+
V2PromptRunJobResponseStatusEnum$zodSchema,
|
|
62278
|
+
string2()
|
|
62279
|
+
]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.");
|
|
62280
|
+
V2PromptRunJobResponse$zodSchema = object({
|
|
62281
|
+
completed_at: string2().nullable().optional().describe("Can be set while `status` is still `summarizing`; use `status` to detect completion."),
|
|
62282
|
+
created_at: string2().nullable().optional(),
|
|
62283
|
+
dispatch_id: string2().nullable().optional(),
|
|
62284
|
+
error: string2().nullable().optional(),
|
|
62285
|
+
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."),
|
|
62286
|
+
eval_count: int().nullable().optional(),
|
|
62287
|
+
id: string2().describe("Run ID to poll with `GET /v2/prompts/runs/{run_id}/status`."),
|
|
62288
|
+
job_id: string2().describe("Parent job ID. It currently matches `id`."),
|
|
62289
|
+
model_count: int().nullable().optional(),
|
|
62290
|
+
progress: PublicEvalRunProgress$zodSchema.optional(),
|
|
62291
|
+
source_type: literal("prompts").default("prompts").optional(),
|
|
62292
|
+
stage: string2().nullable().optional().describe("Current lifecycle stage, including `retrying` while interrupted child jobs wait to be reclaimed."),
|
|
62293
|
+
started_at: string2().nullable().optional(),
|
|
62294
|
+
status: union([
|
|
62295
|
+
V2PromptRunJobResponseStatusEnum$zodSchema,
|
|
62296
|
+
string2()
|
|
62297
|
+
]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`."),
|
|
62298
|
+
type: literal("prompts").default("prompts").optional()
|
|
62299
|
+
});
|
|
62300
|
+
});
|
|
62301
|
+
|
|
62302
|
+
// src/models/v2promptrunscancelop.ts
|
|
62303
|
+
var V2PromptRunsCancelRequest$zodSchema, V2PromptRunsCancelServiceUnavailableResponseBody$zodSchema, V2PromptRunsCancelConflictResponseBody$zodSchema, V2PromptRunsCancelNotFoundResponseBody$zodSchema, V2PromptRunsCancelBadRequestResponseBody$zodSchema, V2PromptRunsCancelResponse$zodSchema;
|
|
62304
|
+
var init_v2promptrunscancelop = __esm(() => {
|
|
62305
|
+
init_zod();
|
|
62306
|
+
init_httpvalidationerror();
|
|
62307
|
+
init_v2promptrunjobresponse();
|
|
62308
|
+
V2PromptRunsCancelRequest$zodSchema = object({
|
|
62309
|
+
run_id: string2().describe("Run ID returned by `POST /v2/prompts/runs`, not a stored prompt result ID.")
|
|
62310
|
+
});
|
|
62311
|
+
V2PromptRunsCancelServiceUnavailableResponseBody$zodSchema = object({
|
|
62312
|
+
detail: string2()
|
|
62313
|
+
}).describe("Prompt run cancellation is temporarily unavailable.");
|
|
62314
|
+
V2PromptRunsCancelConflictResponseBody$zodSchema = object({
|
|
62315
|
+
detail: string2()
|
|
62316
|
+
}).describe("The prompt run has already completed or failed.");
|
|
62317
|
+
V2PromptRunsCancelNotFoundResponseBody$zodSchema = object({
|
|
62318
|
+
detail: string2()
|
|
62319
|
+
}).describe("Prompt run not found. Use the run ID returned when you started the prompt run.");
|
|
62320
|
+
V2PromptRunsCancelBadRequestResponseBody$zodSchema = object({
|
|
62321
|
+
detail: string2()
|
|
62322
|
+
}).describe("The prompt run ID is not a valid UUID.");
|
|
62323
|
+
V2PromptRunsCancelResponse$zodSchema = union([
|
|
62324
|
+
V2PromptRunJobResponse$zodSchema,
|
|
62325
|
+
lazy(() => V2PromptRunsCancelBadRequestResponseBody$zodSchema),
|
|
62326
|
+
lazy(() => V2PromptRunsCancelNotFoundResponseBody$zodSchema),
|
|
62327
|
+
lazy(() => V2PromptRunsCancelConflictResponseBody$zodSchema),
|
|
62328
|
+
lazy(() => V2PromptRunsCancelServiceUnavailableResponseBody$zodSchema),
|
|
62329
|
+
HTTPValidationError$zodSchema
|
|
62330
|
+
]);
|
|
62331
|
+
});
|
|
62332
|
+
|
|
62333
|
+
// src/funcs/promptsRunCancel.ts
|
|
62334
|
+
function promptsRunCancel(client$, request, options) {
|
|
62335
|
+
return new APIPromise($do47(client$, request, options));
|
|
62336
|
+
}
|
|
62337
|
+
async function $do47(client$, request, options) {
|
|
62338
|
+
const parsed$ = safeParse4(request, (value$) => V2PromptRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62339
|
+
if (!parsed$.ok) {
|
|
62340
|
+
return [parsed$, { status: "invalid" }];
|
|
62341
|
+
}
|
|
62342
|
+
const payload$ = parsed$.value;
|
|
62343
|
+
const body$ = null;
|
|
62344
|
+
const pathParams$ = {
|
|
62345
|
+
run_id: encodeSimple("run_id", payload$.run_id, {
|
|
62346
|
+
explode: false,
|
|
62347
|
+
charEncoding: "percent"
|
|
62348
|
+
})
|
|
62349
|
+
};
|
|
62350
|
+
const path$ = pathToFunc("/v2/prompts/runs/{run_id}/cancel")(pathParams$);
|
|
62351
|
+
const headers$ = new Headers(compactMap({
|
|
62352
|
+
Accept: "application/json"
|
|
62353
|
+
}));
|
|
62354
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
62355
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
62356
|
+
const context = {
|
|
62357
|
+
options: client$._options,
|
|
62358
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
62359
|
+
operationID: "v2_prompt_runs_cancel",
|
|
62360
|
+
oAuth2Scopes: null,
|
|
62361
|
+
resolvedSecurity: requestSecurity,
|
|
62362
|
+
securitySource: client$._options.security,
|
|
62363
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
62364
|
+
retryCodes: options?.retryCodes || [
|
|
62365
|
+
"429",
|
|
62366
|
+
"500",
|
|
62367
|
+
"502",
|
|
62368
|
+
"503",
|
|
62369
|
+
"504"
|
|
62370
|
+
]
|
|
62371
|
+
};
|
|
62372
|
+
const requestRes = client$._createRequest(context, {
|
|
62373
|
+
security: requestSecurity,
|
|
62374
|
+
method: "POST",
|
|
62375
|
+
baseURL: options?.serverURL,
|
|
62376
|
+
path: path$,
|
|
62377
|
+
headers: headers$,
|
|
62378
|
+
body: body$,
|
|
62379
|
+
userAgent: client$._options.userAgent,
|
|
62380
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
62381
|
+
}, options);
|
|
62382
|
+
if (!requestRes.ok) {
|
|
62383
|
+
return [requestRes, { status: "invalid" }];
|
|
62384
|
+
}
|
|
62385
|
+
const req$ = requestRes.value;
|
|
62386
|
+
const doResult = await client$._do(req$, {
|
|
62387
|
+
context,
|
|
62388
|
+
errorCodes: [],
|
|
62389
|
+
retryConfig: context.retryConfig,
|
|
62390
|
+
retryCodes: context.retryCodes
|
|
62391
|
+
});
|
|
62392
|
+
if (!doResult.ok) {
|
|
62393
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
62394
|
+
}
|
|
62395
|
+
return [doResult, {
|
|
62396
|
+
status: "complete",
|
|
62397
|
+
request: req$,
|
|
62398
|
+
response: doResult.value
|
|
62399
|
+
}];
|
|
62400
|
+
}
|
|
62401
|
+
var init_promptsRunCancel = __esm(() => {
|
|
62402
|
+
init_encodings();
|
|
62403
|
+
init_primitives();
|
|
62404
|
+
init_schemas4();
|
|
62405
|
+
init_security();
|
|
62406
|
+
init_url();
|
|
62407
|
+
init_v2promptrunscancelop();
|
|
62408
|
+
init_async();
|
|
62409
|
+
});
|
|
62410
|
+
|
|
62411
|
+
// src/mcp-server/tools/promptsRunCancel.ts
|
|
62412
|
+
var args38, tool$promptsRunCancel;
|
|
62413
|
+
var init_promptsRunCancel2 = __esm(() => {
|
|
62414
|
+
init_promptsRunCancel();
|
|
62415
|
+
init_v2promptrunscancelop();
|
|
62416
|
+
init_tools();
|
|
62417
|
+
args38 = {
|
|
62418
|
+
request: V2PromptRunsCancelRequest$zodSchema
|
|
62419
|
+
};
|
|
62420
|
+
tool$promptsRunCancel = {
|
|
62421
|
+
name: "prompts-run-cancel",
|
|
62422
|
+
description: `Cancel a prompt run
|
|
62423
|
+
|
|
62424
|
+
Marks an active prompt run as cancelled and prevents queued prompts from starting. Running coding-agent attempts are stopped asynchronously. Requests already sent to an answer platform cannot be recalled, so prompts already in progress may still finish and store their results, but the run stays cancelled. Prompts that never start use no usage-based credits. The response has the same shape as the status operation, with cancelled prompts counted in \`progress.cancelled\`. Repeating this request for an already-cancelled run is safe.`,
|
|
62425
|
+
annotations: {
|
|
62426
|
+
title: "",
|
|
62427
|
+
destructiveHint: false,
|
|
62428
|
+
idempotentHint: false,
|
|
62429
|
+
openWorldHint: false,
|
|
62430
|
+
readOnlyHint: false
|
|
62431
|
+
},
|
|
62432
|
+
args: args38,
|
|
62433
|
+
tool: async (client, args, ctx) => {
|
|
62434
|
+
const [result] = await promptsRunCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62435
|
+
if (!result.ok) {
|
|
62436
|
+
return {
|
|
62437
|
+
content: [{ type: "text", text: result.error.message }],
|
|
62438
|
+
isError: true
|
|
62439
|
+
};
|
|
62440
|
+
}
|
|
62441
|
+
return formatResult(result.value);
|
|
62442
|
+
}
|
|
62443
|
+
};
|
|
62444
|
+
});
|
|
62445
|
+
|
|
62202
62446
|
// src/models/v2promptrunplatform.ts
|
|
62203
62447
|
var V2PromptRunPlatform$zodSchema;
|
|
62204
62448
|
var init_v2promptrunplatform = __esm(() => {
|
|
@@ -62299,9 +62543,9 @@ var init_v2promptrunslistop = __esm(() => {
|
|
|
62299
62543
|
|
|
62300
62544
|
// src/funcs/promptsRunsList.ts
|
|
62301
62545
|
function promptsRunsList(client$, request, options) {
|
|
62302
|
-
return new APIPromise($
|
|
62546
|
+
return new APIPromise($do48(client$, request, options));
|
|
62303
62547
|
}
|
|
62304
|
-
async function $
|
|
62548
|
+
async function $do48(client$, request, options) {
|
|
62305
62549
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62306
62550
|
if (!parsed$.ok) {
|
|
62307
62551
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62379,12 +62623,12 @@ var init_promptsRunsList = __esm(() => {
|
|
|
62379
62623
|
});
|
|
62380
62624
|
|
|
62381
62625
|
// src/mcp-server/tools/promptsRunsList.ts
|
|
62382
|
-
var
|
|
62626
|
+
var args39, tool$promptsRunsList;
|
|
62383
62627
|
var init_promptsRunsList2 = __esm(() => {
|
|
62384
62628
|
init_promptsRunsList();
|
|
62385
62629
|
init_v2promptrunslistop();
|
|
62386
62630
|
init_tools();
|
|
62387
|
-
|
|
62631
|
+
args39 = {
|
|
62388
62632
|
request: V2PromptRunsListRequest$zodSchema.optional()
|
|
62389
62633
|
};
|
|
62390
62634
|
tool$promptsRunsList = {
|
|
@@ -62399,7 +62643,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
|
|
|
62399
62643
|
openWorldHint: false,
|
|
62400
62644
|
readOnlyHint: true
|
|
62401
62645
|
},
|
|
62402
|
-
args:
|
|
62646
|
+
args: args39,
|
|
62403
62647
|
tool: async (client, args, ctx) => {
|
|
62404
62648
|
const [result] = await promptsRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62405
62649
|
if (!result.ok) {
|
|
@@ -62512,9 +62756,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
|
|
|
62512
62756
|
|
|
62513
62757
|
// src/funcs/promptsRunsRetrieve.ts
|
|
62514
62758
|
function promptsRunsRetrieve(client$, request, options) {
|
|
62515
|
-
return new APIPromise($
|
|
62759
|
+
return new APIPromise($do49(client$, request, options));
|
|
62516
62760
|
}
|
|
62517
|
-
async function $
|
|
62761
|
+
async function $do49(client$, request, options) {
|
|
62518
62762
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62519
62763
|
if (!parsed$.ok) {
|
|
62520
62764
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62589,12 +62833,12 @@ var init_promptsRunsRetrieve = __esm(() => {
|
|
|
62589
62833
|
});
|
|
62590
62834
|
|
|
62591
62835
|
// src/mcp-server/tools/promptsRunsRetrieve.ts
|
|
62592
|
-
var
|
|
62836
|
+
var args40, tool$promptsRunsRetrieve;
|
|
62593
62837
|
var init_promptsRunsRetrieve2 = __esm(() => {
|
|
62594
62838
|
init_promptsRunsRetrieve();
|
|
62595
62839
|
init_v2promptrunsretrieveop();
|
|
62596
62840
|
init_tools();
|
|
62597
|
-
|
|
62841
|
+
args40 = {
|
|
62598
62842
|
request: V2PromptRunsRetrieveRequest$zodSchema
|
|
62599
62843
|
};
|
|
62600
62844
|
tool$promptsRunsRetrieve = {
|
|
@@ -62609,7 +62853,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
|
|
|
62609
62853
|
openWorldHint: false,
|
|
62610
62854
|
readOnlyHint: true
|
|
62611
62855
|
},
|
|
62612
|
-
args:
|
|
62856
|
+
args: args40,
|
|
62613
62857
|
tool: async (client, args, ctx) => {
|
|
62614
62858
|
const [result] = await promptsRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62615
62859
|
if (!result.ok) {
|
|
@@ -62623,46 +62867,6 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
|
|
|
62623
62867
|
};
|
|
62624
62868
|
});
|
|
62625
62869
|
|
|
62626
|
-
// src/models/v2promptrunjobresponse.ts
|
|
62627
|
-
var V2PromptRunJobResponseStatusEnum$zodSchema, Status$zodSchema, V2PromptRunJobResponse$zodSchema;
|
|
62628
|
-
var init_v2promptrunjobresponse = __esm(() => {
|
|
62629
|
-
init_zod();
|
|
62630
|
-
init_publicevalrunprogress();
|
|
62631
|
-
V2PromptRunJobResponseStatusEnum$zodSchema = _enum([
|
|
62632
|
-
"pending",
|
|
62633
|
-
"running",
|
|
62634
|
-
"summarizing",
|
|
62635
|
-
"completed",
|
|
62636
|
-
"failed",
|
|
62637
|
-
"cancelled",
|
|
62638
|
-
"interrupted"
|
|
62639
|
-
]);
|
|
62640
|
-
Status$zodSchema = union([
|
|
62641
|
-
V2PromptRunJobResponseStatusEnum$zodSchema,
|
|
62642
|
-
string2()
|
|
62643
|
-
]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.");
|
|
62644
|
-
V2PromptRunJobResponse$zodSchema = object({
|
|
62645
|
-
completed_at: string2().nullable().optional().describe("Can be set while `status` is still `summarizing`; use `status` to detect completion."),
|
|
62646
|
-
created_at: string2().nullable().optional(),
|
|
62647
|
-
dispatch_id: string2().nullable().optional(),
|
|
62648
|
-
error: string2().nullable().optional(),
|
|
62649
|
-
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."),
|
|
62650
|
-
eval_count: int().nullable().optional(),
|
|
62651
|
-
id: string2().describe("Run ID to poll with `GET /v2/prompts/runs/{run_id}/status`."),
|
|
62652
|
-
job_id: string2().describe("Parent job ID. It currently matches `id`."),
|
|
62653
|
-
model_count: int().nullable().optional(),
|
|
62654
|
-
progress: PublicEvalRunProgress$zodSchema.optional(),
|
|
62655
|
-
source_type: literal("prompts").default("prompts").optional(),
|
|
62656
|
-
stage: string2().nullable().optional().describe("Current lifecycle stage, including `retrying` while interrupted child jobs wait to be reclaimed."),
|
|
62657
|
-
started_at: string2().nullable().optional(),
|
|
62658
|
-
status: union([
|
|
62659
|
-
V2PromptRunJobResponseStatusEnum$zodSchema,
|
|
62660
|
-
string2()
|
|
62661
|
-
]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`."),
|
|
62662
|
-
type: literal("prompts").default("prompts").optional()
|
|
62663
|
-
});
|
|
62664
|
-
});
|
|
62665
|
-
|
|
62666
62870
|
// src/models/v2promptrunstatusretrieveop.ts
|
|
62667
62871
|
var V2PromptRunStatusRetrieveRequest$zodSchema, V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema, V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema, V2PromptRunStatusRetrieveResponse$zodSchema;
|
|
62668
62872
|
var init_v2promptrunstatusretrieveop = __esm(() => {
|
|
@@ -62688,9 +62892,9 @@ var init_v2promptrunstatusretrieveop = __esm(() => {
|
|
|
62688
62892
|
|
|
62689
62893
|
// src/funcs/promptsRunStatus.ts
|
|
62690
62894
|
function promptsRunStatus(client$, request, options) {
|
|
62691
|
-
return new APIPromise($
|
|
62895
|
+
return new APIPromise($do50(client$, request, options));
|
|
62692
62896
|
}
|
|
62693
|
-
async function $
|
|
62897
|
+
async function $do50(client$, request, options) {
|
|
62694
62898
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62695
62899
|
if (!parsed$.ok) {
|
|
62696
62900
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62765,12 +62969,12 @@ var init_promptsRunStatus = __esm(() => {
|
|
|
62765
62969
|
});
|
|
62766
62970
|
|
|
62767
62971
|
// src/mcp-server/tools/promptsRunStatus.ts
|
|
62768
|
-
var
|
|
62972
|
+
var args41, tool$promptsRunStatus;
|
|
62769
62973
|
var init_promptsRunStatus2 = __esm(() => {
|
|
62770
62974
|
init_promptsRunStatus();
|
|
62771
62975
|
init_v2promptrunstatusretrieveop();
|
|
62772
62976
|
init_tools();
|
|
62773
|
-
|
|
62977
|
+
args41 = {
|
|
62774
62978
|
request: V2PromptRunStatusRetrieveRequest$zodSchema
|
|
62775
62979
|
};
|
|
62776
62980
|
tool$promptsRunStatus = {
|
|
@@ -62788,7 +62992,7 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
|
|
|
62788
62992
|
openWorldHint: false,
|
|
62789
62993
|
readOnlyHint: true
|
|
62790
62994
|
},
|
|
62791
|
-
args:
|
|
62995
|
+
args: args41,
|
|
62792
62996
|
tool: async (client, args, ctx) => {
|
|
62793
62997
|
const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62794
62998
|
if (!result.ok) {
|
|
@@ -62802,6 +63006,316 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
|
|
|
62802
63006
|
};
|
|
62803
63007
|
});
|
|
62804
63008
|
|
|
63009
|
+
// src/models/v2prompttarget.ts
|
|
63010
|
+
var V2PromptTargetKind$zodSchema, V2PromptTargetFrequency$zodSchema, V2PromptTarget$zodSchema;
|
|
63011
|
+
var init_v2prompttarget = __esm(() => {
|
|
63012
|
+
init_zod();
|
|
63013
|
+
init_v2promptruntopic();
|
|
63014
|
+
V2PromptTargetKind$zodSchema = _enum([
|
|
63015
|
+
"answer_engine",
|
|
63016
|
+
"coding_agent"
|
|
63017
|
+
]);
|
|
63018
|
+
V2PromptTargetFrequency$zodSchema = _enum([
|
|
63019
|
+
"daily",
|
|
63020
|
+
"every_other_day",
|
|
63021
|
+
"weekly",
|
|
63022
|
+
"manual"
|
|
63023
|
+
]).describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.");
|
|
63024
|
+
V2PromptTarget$zodSchema = object({
|
|
63025
|
+
agent: string2().nullable().optional().describe("Agent ID from `GET /v2/agents` for coding-agent targets."),
|
|
63026
|
+
answer_engine: string2().nullable().optional().describe("Answer engine identifier for answer-engine targets."),
|
|
63027
|
+
frequency: V2PromptTargetFrequency$zodSchema.describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization."),
|
|
63028
|
+
id: string2(),
|
|
63029
|
+
kind: V2PromptTargetKind$zodSchema,
|
|
63030
|
+
last_run_at: string2().nullable().optional(),
|
|
63031
|
+
name: string2().describe("Human-readable answer engine or agent name."),
|
|
63032
|
+
next_run_at: string2().nullable().optional(),
|
|
63033
|
+
topic: V2PromptRunTopic$zodSchema.nullable().optional().describe("Topic the target runs for. Null means it runs for every topic.")
|
|
63034
|
+
});
|
|
63035
|
+
});
|
|
63036
|
+
|
|
63037
|
+
// src/models/v2prompttargetsresponse.ts
|
|
63038
|
+
var V2PromptTargetsResponse$zodSchema;
|
|
63039
|
+
var init_v2prompttargetsresponse = __esm(() => {
|
|
63040
|
+
init_zod();
|
|
63041
|
+
init_v2prompttarget();
|
|
63042
|
+
V2PromptTargetsResponse$zodSchema = object({
|
|
63043
|
+
count: int(),
|
|
63044
|
+
data: array(V2PromptTarget$zodSchema).optional()
|
|
63045
|
+
});
|
|
63046
|
+
});
|
|
63047
|
+
|
|
63048
|
+
// src/models/v2prompttargetslistop.ts
|
|
63049
|
+
var V2PromptTargetsListRequest$zodSchema, V2PromptTargetsListResponse$zodSchema;
|
|
63050
|
+
var init_v2prompttargetslistop = __esm(() => {
|
|
63051
|
+
init_zod();
|
|
63052
|
+
init_httpvalidationerror();
|
|
63053
|
+
init_v2prompttargetsresponse();
|
|
63054
|
+
V2PromptTargetsListRequest$zodSchema = object({
|
|
63055
|
+
topic_id: string2().describe("Optional prompt topic ID.").optional()
|
|
63056
|
+
});
|
|
63057
|
+
V2PromptTargetsListResponse$zodSchema = union([
|
|
63058
|
+
V2PromptTargetsResponse$zodSchema,
|
|
63059
|
+
HTTPValidationError$zodSchema
|
|
63060
|
+
]);
|
|
63061
|
+
});
|
|
63062
|
+
|
|
63063
|
+
// src/funcs/promptsTargetsList.ts
|
|
63064
|
+
function promptsTargetsList(client$, request, options) {
|
|
63065
|
+
return new APIPromise($do51(client$, request, options));
|
|
63066
|
+
}
|
|
63067
|
+
async function $do51(client$, request, options) {
|
|
63068
|
+
const parsed$ = safeParse4(request, (value$) => V2PromptTargetsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63069
|
+
if (!parsed$.ok) {
|
|
63070
|
+
return [parsed$, { status: "invalid" }];
|
|
63071
|
+
}
|
|
63072
|
+
const payload$ = parsed$.value;
|
|
63073
|
+
const body$ = null;
|
|
63074
|
+
const path$ = pathToFunc("/v2/prompts/targets")();
|
|
63075
|
+
const query$ = encodeFormQuery({
|
|
63076
|
+
topic_id: payload$?.topic_id
|
|
63077
|
+
});
|
|
63078
|
+
const headers$ = new Headers(compactMap({
|
|
63079
|
+
Accept: "application/json"
|
|
63080
|
+
}));
|
|
63081
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63082
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63083
|
+
const context = {
|
|
63084
|
+
options: client$._options,
|
|
63085
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63086
|
+
operationID: "v2_prompt_targets_list",
|
|
63087
|
+
oAuth2Scopes: null,
|
|
63088
|
+
resolvedSecurity: requestSecurity,
|
|
63089
|
+
securitySource: client$._options.security,
|
|
63090
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63091
|
+
retryCodes: options?.retryCodes || [
|
|
63092
|
+
"429",
|
|
63093
|
+
"500",
|
|
63094
|
+
"502",
|
|
63095
|
+
"503",
|
|
63096
|
+
"504"
|
|
63097
|
+
]
|
|
63098
|
+
};
|
|
63099
|
+
const requestRes = client$._createRequest(context, {
|
|
63100
|
+
security: requestSecurity,
|
|
63101
|
+
method: "GET",
|
|
63102
|
+
baseURL: options?.serverURL,
|
|
63103
|
+
path: path$,
|
|
63104
|
+
headers: headers$,
|
|
63105
|
+
query: query$,
|
|
63106
|
+
body: body$,
|
|
63107
|
+
userAgent: client$._options.userAgent,
|
|
63108
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63109
|
+
}, options);
|
|
63110
|
+
if (!requestRes.ok) {
|
|
63111
|
+
return [requestRes, { status: "invalid" }];
|
|
63112
|
+
}
|
|
63113
|
+
const req$ = requestRes.value;
|
|
63114
|
+
const doResult = await client$._do(req$, {
|
|
63115
|
+
context,
|
|
63116
|
+
errorCodes: [],
|
|
63117
|
+
retryConfig: context.retryConfig,
|
|
63118
|
+
retryCodes: context.retryCodes
|
|
63119
|
+
});
|
|
63120
|
+
if (!doResult.ok) {
|
|
63121
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63122
|
+
}
|
|
63123
|
+
return [doResult, {
|
|
63124
|
+
status: "complete",
|
|
63125
|
+
request: req$,
|
|
63126
|
+
response: doResult.value
|
|
63127
|
+
}];
|
|
63128
|
+
}
|
|
63129
|
+
var init_promptsTargetsList = __esm(() => {
|
|
63130
|
+
init_encodings();
|
|
63131
|
+
init_primitives();
|
|
63132
|
+
init_schemas4();
|
|
63133
|
+
init_security();
|
|
63134
|
+
init_url();
|
|
63135
|
+
init_v2prompttargetslistop();
|
|
63136
|
+
init_async();
|
|
63137
|
+
});
|
|
63138
|
+
|
|
63139
|
+
// src/mcp-server/tools/promptsTargetsList.ts
|
|
63140
|
+
var args42, tool$promptsTargetsList;
|
|
63141
|
+
var init_promptsTargetsList2 = __esm(() => {
|
|
63142
|
+
init_promptsTargetsList();
|
|
63143
|
+
init_v2prompttargetslistop();
|
|
63144
|
+
init_tools();
|
|
63145
|
+
args42 = {
|
|
63146
|
+
request: V2PromptTargetsListRequest$zodSchema.optional()
|
|
63147
|
+
};
|
|
63148
|
+
tool$promptsTargetsList = {
|
|
63149
|
+
name: "prompts-targets-list",
|
|
63150
|
+
description: `List Targets
|
|
63151
|
+
|
|
63152
|
+
Returns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic and frequency. Provide \`topic_id\` to list one topic's targets.`,
|
|
63153
|
+
annotations: {
|
|
63154
|
+
title: "",
|
|
63155
|
+
destructiveHint: false,
|
|
63156
|
+
idempotentHint: false,
|
|
63157
|
+
openWorldHint: false,
|
|
63158
|
+
readOnlyHint: true
|
|
63159
|
+
},
|
|
63160
|
+
args: args42,
|
|
63161
|
+
tool: async (client, args, ctx) => {
|
|
63162
|
+
const [result] = await promptsTargetsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63163
|
+
if (!result.ok) {
|
|
63164
|
+
return {
|
|
63165
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63166
|
+
isError: true
|
|
63167
|
+
};
|
|
63168
|
+
}
|
|
63169
|
+
return formatResult(result.value);
|
|
63170
|
+
}
|
|
63171
|
+
};
|
|
63172
|
+
});
|
|
63173
|
+
|
|
63174
|
+
// src/models/v2prompttargetinput.ts
|
|
63175
|
+
var AnswerEngine$zodSchema, V2PromptTargetInputFrequency$zodSchema, V2PromptTargetInput$zodSchema;
|
|
63176
|
+
var init_v2prompttargetinput = __esm(() => {
|
|
63177
|
+
init_zod();
|
|
63178
|
+
AnswerEngine$zodSchema = _enum([
|
|
63179
|
+
"chatgpt",
|
|
63180
|
+
"google-ai-overviews",
|
|
63181
|
+
"google-ai-mode",
|
|
63182
|
+
"gemini-search",
|
|
63183
|
+
"perplexity",
|
|
63184
|
+
"claude",
|
|
63185
|
+
"microsoft-copilot"
|
|
63186
|
+
]);
|
|
63187
|
+
V2PromptTargetInputFrequency$zodSchema = _enum([
|
|
63188
|
+
"daily",
|
|
63189
|
+
"every_other_day",
|
|
63190
|
+
"weekly",
|
|
63191
|
+
"manual"
|
|
63192
|
+
]).describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.");
|
|
63193
|
+
V2PromptTargetInput$zodSchema = object({
|
|
63194
|
+
agent: string2().nullable().optional().describe("Runnable agent from `GET /v2/agents`, a coding-agent harness and model such as `claude-code:claude-opus-5-5`. Set this or `answer_engine`, not both."),
|
|
63195
|
+
answer_engine: AnswerEngine$zodSchema.nullable().optional().describe("Answer engine to run the topic's prompts on. Set this or `agent`, not both."),
|
|
63196
|
+
frequency: V2PromptTargetInputFrequency$zodSchema.default("daily").describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.")
|
|
63197
|
+
});
|
|
63198
|
+
});
|
|
63199
|
+
|
|
63200
|
+
// src/models/setv2prompttargetsrequest.ts
|
|
63201
|
+
var SetV2PromptTargetsRequest$zodSchema;
|
|
63202
|
+
var init_setv2prompttargetsrequest = __esm(() => {
|
|
63203
|
+
init_zod();
|
|
63204
|
+
init_v2prompttargetinput();
|
|
63205
|
+
SetV2PromptTargetsRequest$zodSchema = object({
|
|
63206
|
+
targets: array(V2PromptTargetInput$zodSchema).describe("The complete set of answer engines and coding agents for the topic. Targets you leave out stop running. List an agent harness more than once to run it on several models."),
|
|
63207
|
+
topic_id: string2().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
|
|
63208
|
+
});
|
|
63209
|
+
});
|
|
63210
|
+
|
|
63211
|
+
// src/funcs/promptsTargetsSet.ts
|
|
63212
|
+
function promptsTargetsSet(client$, request, options) {
|
|
63213
|
+
return new APIPromise($do52(client$, request, options));
|
|
63214
|
+
}
|
|
63215
|
+
async function $do52(client$, request, options) {
|
|
63216
|
+
const parsed$ = safeParse4(request, (value$) => SetV2PromptTargetsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63217
|
+
if (!parsed$.ok) {
|
|
63218
|
+
return [parsed$, { status: "invalid" }];
|
|
63219
|
+
}
|
|
63220
|
+
const payload$ = parsed$.value;
|
|
63221
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
63222
|
+
const path$ = pathToFunc("/v2/prompts/targets")();
|
|
63223
|
+
const headers$ = new Headers(compactMap({
|
|
63224
|
+
"Content-Type": "application/json",
|
|
63225
|
+
Accept: "application/json"
|
|
63226
|
+
}));
|
|
63227
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63228
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63229
|
+
const context = {
|
|
63230
|
+
options: client$._options,
|
|
63231
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63232
|
+
operationID: "v2_prompt_targets_set",
|
|
63233
|
+
oAuth2Scopes: null,
|
|
63234
|
+
resolvedSecurity: requestSecurity,
|
|
63235
|
+
securitySource: client$._options.security,
|
|
63236
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63237
|
+
retryCodes: options?.retryCodes || [
|
|
63238
|
+
"429",
|
|
63239
|
+
"500",
|
|
63240
|
+
"502",
|
|
63241
|
+
"503",
|
|
63242
|
+
"504"
|
|
63243
|
+
]
|
|
63244
|
+
};
|
|
63245
|
+
const requestRes = client$._createRequest(context, {
|
|
63246
|
+
security: requestSecurity,
|
|
63247
|
+
method: "PUT",
|
|
63248
|
+
baseURL: options?.serverURL,
|
|
63249
|
+
path: path$,
|
|
63250
|
+
headers: headers$,
|
|
63251
|
+
body: body$,
|
|
63252
|
+
userAgent: client$._options.userAgent,
|
|
63253
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63254
|
+
}, options);
|
|
63255
|
+
if (!requestRes.ok) {
|
|
63256
|
+
return [requestRes, { status: "invalid" }];
|
|
63257
|
+
}
|
|
63258
|
+
const req$ = requestRes.value;
|
|
63259
|
+
const doResult = await client$._do(req$, {
|
|
63260
|
+
context,
|
|
63261
|
+
errorCodes: [],
|
|
63262
|
+
retryConfig: context.retryConfig,
|
|
63263
|
+
retryCodes: context.retryCodes
|
|
63264
|
+
});
|
|
63265
|
+
if (!doResult.ok) {
|
|
63266
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63267
|
+
}
|
|
63268
|
+
return [doResult, {
|
|
63269
|
+
status: "complete",
|
|
63270
|
+
request: req$,
|
|
63271
|
+
response: doResult.value
|
|
63272
|
+
}];
|
|
63273
|
+
}
|
|
63274
|
+
var init_promptsTargetsSet = __esm(() => {
|
|
63275
|
+
init_encodings();
|
|
63276
|
+
init_primitives();
|
|
63277
|
+
init_schemas4();
|
|
63278
|
+
init_security();
|
|
63279
|
+
init_url();
|
|
63280
|
+
init_setv2prompttargetsrequest();
|
|
63281
|
+
init_async();
|
|
63282
|
+
});
|
|
63283
|
+
|
|
63284
|
+
// src/mcp-server/tools/promptsTargetsSet.ts
|
|
63285
|
+
var args43, tool$promptsTargetsSet;
|
|
63286
|
+
var init_promptsTargetsSet2 = __esm(() => {
|
|
63287
|
+
init_promptsTargetsSet();
|
|
63288
|
+
init_setv2prompttargetsrequest();
|
|
63289
|
+
init_tools();
|
|
63290
|
+
args43 = {
|
|
63291
|
+
request: SetV2PromptTargetsRequest$zodSchema
|
|
63292
|
+
};
|
|
63293
|
+
tool$promptsTargetsSet = {
|
|
63294
|
+
name: "prompts-targets-set",
|
|
63295
|
+
description: `Set Targets
|
|
63296
|
+
|
|
63297
|
+
Sets which answer engines and coding agents run a topic's prompts on schedule, the same way the prompt editor does. The list replaces the topic's targets: targets you leave out stop running. Every prompt in the topic is set to exactly these platforms; you can still narrow one prompt afterwards with \`platform_ids\`. Name coding agents with IDs from \`GET /v2/agents\`, and list a harness more than once to run it on several models. To pick agents for a single run without changing the schedule, pass \`agent\` to \`POST /v2/prompts/runs\` instead.`,
|
|
63298
|
+
annotations: {
|
|
63299
|
+
title: "",
|
|
63300
|
+
destructiveHint: false,
|
|
63301
|
+
idempotentHint: false,
|
|
63302
|
+
openWorldHint: false,
|
|
63303
|
+
readOnlyHint: false
|
|
63304
|
+
},
|
|
63305
|
+
args: args43,
|
|
63306
|
+
tool: async (client, args, ctx) => {
|
|
63307
|
+
const [result] = await promptsTargetsSet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63308
|
+
if (!result.ok) {
|
|
63309
|
+
return {
|
|
63310
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63311
|
+
isError: true
|
|
63312
|
+
};
|
|
63313
|
+
}
|
|
63314
|
+
return formatResult(result.value);
|
|
63315
|
+
}
|
|
63316
|
+
};
|
|
63317
|
+
});
|
|
63318
|
+
|
|
62805
63319
|
// src/models/createprompttopicrequest.ts
|
|
62806
63320
|
var CreatePromptTopicRequest$zodSchema;
|
|
62807
63321
|
var init_createprompttopicrequest = __esm(() => {
|
|
@@ -62813,9 +63327,9 @@ var init_createprompttopicrequest = __esm(() => {
|
|
|
62813
63327
|
|
|
62814
63328
|
// src/funcs/promptsTopicsCreate.ts
|
|
62815
63329
|
function promptsTopicsCreate(client$, request, options) {
|
|
62816
|
-
return new APIPromise($
|
|
63330
|
+
return new APIPromise($do53(client$, request, options));
|
|
62817
63331
|
}
|
|
62818
|
-
async function $
|
|
63332
|
+
async function $do53(client$, request, options) {
|
|
62819
63333
|
const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62820
63334
|
if (!parsed$.ok) {
|
|
62821
63335
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62885,12 +63399,12 @@ var init_promptsTopicsCreate = __esm(() => {
|
|
|
62885
63399
|
});
|
|
62886
63400
|
|
|
62887
63401
|
// src/mcp-server/tools/promptsTopicsCreate.ts
|
|
62888
|
-
var
|
|
63402
|
+
var args44, tool$promptsTopicsCreate;
|
|
62889
63403
|
var init_promptsTopicsCreate2 = __esm(() => {
|
|
62890
63404
|
init_promptsTopicsCreate();
|
|
62891
63405
|
init_createprompttopicrequest();
|
|
62892
63406
|
init_tools();
|
|
62893
|
-
|
|
63407
|
+
args44 = {
|
|
62894
63408
|
request: CreatePromptTopicRequest$zodSchema
|
|
62895
63409
|
};
|
|
62896
63410
|
tool$promptsTopicsCreate = {
|
|
@@ -62905,7 +63419,7 @@ Creates a prompt topic and returns the saved topic.`,
|
|
|
62905
63419
|
openWorldHint: false,
|
|
62906
63420
|
readOnlyHint: false
|
|
62907
63421
|
},
|
|
62908
|
-
args:
|
|
63422
|
+
args: args44,
|
|
62909
63423
|
tool: async (client, args, ctx) => {
|
|
62910
63424
|
const [result] = await promptsTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62911
63425
|
if (!result.ok) {
|
|
@@ -62937,9 +63451,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
|
|
|
62937
63451
|
|
|
62938
63452
|
// src/funcs/promptsTopicsDelete.ts
|
|
62939
63453
|
function promptsTopicsDelete(client$, request, options) {
|
|
62940
|
-
return new APIPromise($
|
|
63454
|
+
return new APIPromise($do54(client$, request, options));
|
|
62941
63455
|
}
|
|
62942
|
-
async function $
|
|
63456
|
+
async function $do54(client$, request, options) {
|
|
62943
63457
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62944
63458
|
if (!parsed$.ok) {
|
|
62945
63459
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63018,12 +63532,12 @@ var init_promptsTopicsDelete = __esm(() => {
|
|
|
63018
63532
|
});
|
|
63019
63533
|
|
|
63020
63534
|
// src/mcp-server/tools/promptsTopicsDelete.ts
|
|
63021
|
-
var
|
|
63535
|
+
var args45, tool$promptsTopicsDelete;
|
|
63022
63536
|
var init_promptsTopicsDelete2 = __esm(() => {
|
|
63023
63537
|
init_promptsTopicsDelete();
|
|
63024
63538
|
init_v2prompttopicsdeleteop();
|
|
63025
63539
|
init_tools();
|
|
63026
|
-
|
|
63540
|
+
args45 = {
|
|
63027
63541
|
request: V2PromptTopicsDeleteRequest$zodSchema
|
|
63028
63542
|
};
|
|
63029
63543
|
tool$promptsTopicsDelete = {
|
|
@@ -63038,7 +63552,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
63038
63552
|
openWorldHint: false,
|
|
63039
63553
|
readOnlyHint: false
|
|
63040
63554
|
},
|
|
63041
|
-
args:
|
|
63555
|
+
args: args45,
|
|
63042
63556
|
tool: async (client, args, ctx) => {
|
|
63043
63557
|
const [result] = await promptsTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63044
63558
|
if (!result.ok) {
|
|
@@ -63054,9 +63568,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
63054
63568
|
|
|
63055
63569
|
// src/funcs/promptsTopicsList.ts
|
|
63056
63570
|
function promptsTopicsList(client$, options) {
|
|
63057
|
-
return new APIPromise($
|
|
63571
|
+
return new APIPromise($do55(client$, options));
|
|
63058
63572
|
}
|
|
63059
|
-
async function $
|
|
63573
|
+
async function $do55(client$, options) {
|
|
63060
63574
|
const path$ = pathToFunc("/v2/prompts/topics")();
|
|
63061
63575
|
const headers$ = new Headers(compactMap({
|
|
63062
63576
|
Accept: "application/json"
|
|
@@ -63172,9 +63686,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
|
|
|
63172
63686
|
|
|
63173
63687
|
// src/funcs/promptsTopicsUpdate.ts
|
|
63174
63688
|
function promptsTopicsUpdate(client$, request, options) {
|
|
63175
|
-
return new APIPromise($
|
|
63689
|
+
return new APIPromise($do56(client$, request, options));
|
|
63176
63690
|
}
|
|
63177
|
-
async function $
|
|
63691
|
+
async function $do56(client$, request, options) {
|
|
63178
63692
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63179
63693
|
if (!parsed$.ok) {
|
|
63180
63694
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63250,12 +63764,12 @@ var init_promptsTopicsUpdate = __esm(() => {
|
|
|
63250
63764
|
});
|
|
63251
63765
|
|
|
63252
63766
|
// src/mcp-server/tools/promptsTopicsUpdate.ts
|
|
63253
|
-
var
|
|
63767
|
+
var args46, tool$promptsTopicsUpdate;
|
|
63254
63768
|
var init_promptsTopicsUpdate2 = __esm(() => {
|
|
63255
63769
|
init_promptsTopicsUpdate();
|
|
63256
63770
|
init_v2prompttopicsupdateop();
|
|
63257
63771
|
init_tools();
|
|
63258
|
-
|
|
63772
|
+
args46 = {
|
|
63259
63773
|
request: V2PromptTopicsUpdateRequest$zodSchema
|
|
63260
63774
|
};
|
|
63261
63775
|
tool$promptsTopicsUpdate = {
|
|
@@ -63270,7 +63784,7 @@ Renames a prompt topic and returns the updated topic.`,
|
|
|
63270
63784
|
openWorldHint: false,
|
|
63271
63785
|
readOnlyHint: false
|
|
63272
63786
|
},
|
|
63273
|
-
args:
|
|
63787
|
+
args: args46,
|
|
63274
63788
|
tool: async (client, args, ctx) => {
|
|
63275
63789
|
const [result] = await promptsTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63276
63790
|
if (!result.ok) {
|
|
@@ -63295,7 +63809,7 @@ var init_updatev2promptrequest = __esm(() => {
|
|
|
63295
63809
|
]);
|
|
63296
63810
|
UpdateV2PromptRequest$zodSchema = object({
|
|
63297
63811
|
is_branded: boolean2().optional().describe("Marks the prompt as branded or unbranded. Omit to keep the current value; changing `text` does not change it."),
|
|
63298
|
-
platform_ids: array(string2()).nullable().optional().describe("Replacement list of
|
|
63812
|
+
platform_ids: array(string2()).nullable().optional().describe("Replacement list of platform IDs, as returned in `platforms` on `GET /v2/prompts`."),
|
|
63299
63813
|
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."),
|
|
63300
63814
|
status: UpdateV2PromptRequestStatus$zodSchema.optional(),
|
|
63301
63815
|
text: string2().optional(),
|
|
@@ -63322,9 +63836,9 @@ var init_v2promptsupdateop = __esm(() => {
|
|
|
63322
63836
|
|
|
63323
63837
|
// src/funcs/promptsUpdate.ts
|
|
63324
63838
|
function promptsUpdate(client$, request, options) {
|
|
63325
|
-
return new APIPromise($
|
|
63839
|
+
return new APIPromise($do57(client$, request, options));
|
|
63326
63840
|
}
|
|
63327
|
-
async function $
|
|
63841
|
+
async function $do57(client$, request, options) {
|
|
63328
63842
|
const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63329
63843
|
if (!parsed$.ok) {
|
|
63330
63844
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63400,12 +63914,12 @@ var init_promptsUpdate = __esm(() => {
|
|
|
63400
63914
|
});
|
|
63401
63915
|
|
|
63402
63916
|
// src/mcp-server/tools/promptsUpdate.ts
|
|
63403
|
-
var
|
|
63917
|
+
var args47, tool$promptsUpdate;
|
|
63404
63918
|
var init_promptsUpdate2 = __esm(() => {
|
|
63405
63919
|
init_promptsUpdate();
|
|
63406
63920
|
init_v2promptsupdateop();
|
|
63407
63921
|
init_tools();
|
|
63408
|
-
|
|
63922
|
+
args47 = {
|
|
63409
63923
|
request: V2PromptsUpdateRequest$zodSchema
|
|
63410
63924
|
};
|
|
63411
63925
|
tool$promptsUpdate = {
|
|
@@ -63420,7 +63934,7 @@ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run
|
|
|
63420
63934
|
openWorldHint: false,
|
|
63421
63935
|
readOnlyHint: false
|
|
63422
63936
|
},
|
|
63423
|
-
args:
|
|
63937
|
+
args: args47,
|
|
63424
63938
|
tool: async (client, args, ctx) => {
|
|
63425
63939
|
const [result] = await promptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63426
63940
|
if (!result.ok) {
|
|
@@ -63463,9 +63977,9 @@ var init_createv2repositoryrequest = __esm(() => {
|
|
|
63463
63977
|
|
|
63464
63978
|
// src/funcs/repositoriesCreate.ts
|
|
63465
63979
|
function repositoriesCreate(client$, request, options) {
|
|
63466
|
-
return new APIPromise($
|
|
63980
|
+
return new APIPromise($do58(client$, request, options));
|
|
63467
63981
|
}
|
|
63468
|
-
async function $
|
|
63982
|
+
async function $do58(client$, request, options) {
|
|
63469
63983
|
const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63470
63984
|
if (!parsed$.ok) {
|
|
63471
63985
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63535,12 +64049,12 @@ var init_repositoriesCreate = __esm(() => {
|
|
|
63535
64049
|
});
|
|
63536
64050
|
|
|
63537
64051
|
// src/mcp-server/tools/repositoriesCreate.ts
|
|
63538
|
-
var
|
|
64052
|
+
var args48, tool$repositoriesCreate;
|
|
63539
64053
|
var init_repositoriesCreate2 = __esm(() => {
|
|
63540
64054
|
init_repositoriesCreate();
|
|
63541
64055
|
init_createv2repositoryrequest();
|
|
63542
64056
|
init_tools();
|
|
63543
|
-
|
|
64057
|
+
args48 = {
|
|
63544
64058
|
request: CreateV2RepositoryRequest$zodSchema
|
|
63545
64059
|
};
|
|
63546
64060
|
tool$repositoriesCreate = {
|
|
@@ -63555,7 +64069,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
|
|
|
63555
64069
|
openWorldHint: false,
|
|
63556
64070
|
readOnlyHint: false
|
|
63557
64071
|
},
|
|
63558
|
-
args:
|
|
64072
|
+
args: args48,
|
|
63559
64073
|
tool: async (client, args, ctx) => {
|
|
63560
64074
|
const [result] = await repositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63561
64075
|
if (!result.ok) {
|
|
@@ -63621,9 +64135,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
|
|
|
63621
64135
|
|
|
63622
64136
|
// src/funcs/repositoriesDelete.ts
|
|
63623
64137
|
function repositoriesDelete(client$, request, options) {
|
|
63624
|
-
return new APIPromise($
|
|
64138
|
+
return new APIPromise($do59(client$, request, options));
|
|
63625
64139
|
}
|
|
63626
|
-
async function $
|
|
64140
|
+
async function $do59(client$, request, options) {
|
|
63627
64141
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63628
64142
|
if (!parsed$.ok) {
|
|
63629
64143
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63698,12 +64212,12 @@ var init_repositoriesDelete = __esm(() => {
|
|
|
63698
64212
|
});
|
|
63699
64213
|
|
|
63700
64214
|
// src/mcp-server/tools/repositoriesDelete.ts
|
|
63701
|
-
var
|
|
64215
|
+
var args49, tool$repositoriesDelete;
|
|
63702
64216
|
var init_repositoriesDelete2 = __esm(() => {
|
|
63703
64217
|
init_repositoriesDelete();
|
|
63704
64218
|
init_v2repositoriesdeleteop();
|
|
63705
64219
|
init_tools();
|
|
63706
|
-
|
|
64220
|
+
args49 = {
|
|
63707
64221
|
request: V2RepositoriesDeleteRequest$zodSchema
|
|
63708
64222
|
};
|
|
63709
64223
|
tool$repositoriesDelete = {
|
|
@@ -63718,7 +64232,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
63718
64232
|
openWorldHint: false,
|
|
63719
64233
|
readOnlyHint: false
|
|
63720
64234
|
},
|
|
63721
|
-
args:
|
|
64235
|
+
args: args49,
|
|
63722
64236
|
tool: async (client, args, ctx) => {
|
|
63723
64237
|
const [result] = await repositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63724
64238
|
if (!result.ok) {
|
|
@@ -63734,9 +64248,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
63734
64248
|
|
|
63735
64249
|
// src/funcs/repositoriesList.ts
|
|
63736
64250
|
function repositoriesList(client$, options) {
|
|
63737
|
-
return new APIPromise($
|
|
64251
|
+
return new APIPromise($do60(client$, options));
|
|
63738
64252
|
}
|
|
63739
|
-
async function $
|
|
64253
|
+
async function $do60(client$, options) {
|
|
63740
64254
|
const path$ = pathToFunc("/v2/repositories")();
|
|
63741
64255
|
const headers$ = new Headers(compactMap({
|
|
63742
64256
|
Accept: "application/json"
|
|
@@ -63841,9 +64355,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
|
|
|
63841
64355
|
|
|
63842
64356
|
// src/funcs/repositoriesRetrieve.ts
|
|
63843
64357
|
function repositoriesRetrieve(client$, request, options) {
|
|
63844
|
-
return new APIPromise($
|
|
64358
|
+
return new APIPromise($do61(client$, request, options));
|
|
63845
64359
|
}
|
|
63846
|
-
async function $
|
|
64360
|
+
async function $do61(client$, request, options) {
|
|
63847
64361
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63848
64362
|
if (!parsed$.ok) {
|
|
63849
64363
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63918,12 +64432,12 @@ var init_repositoriesRetrieve = __esm(() => {
|
|
|
63918
64432
|
});
|
|
63919
64433
|
|
|
63920
64434
|
// src/mcp-server/tools/repositoriesRetrieve.ts
|
|
63921
|
-
var
|
|
64435
|
+
var args50, tool$repositoriesRetrieve;
|
|
63922
64436
|
var init_repositoriesRetrieve2 = __esm(() => {
|
|
63923
64437
|
init_repositoriesRetrieve();
|
|
63924
64438
|
init_v2repositoriesretrieveop();
|
|
63925
64439
|
init_tools();
|
|
63926
|
-
|
|
64440
|
+
args50 = {
|
|
63927
64441
|
request: V2RepositoriesRetrieveRequest$zodSchema
|
|
63928
64442
|
};
|
|
63929
64443
|
tool$repositoriesRetrieve = {
|
|
@@ -63938,7 +64452,7 @@ Returns one reusable repository workspace.`,
|
|
|
63938
64452
|
openWorldHint: false,
|
|
63939
64453
|
readOnlyHint: true
|
|
63940
64454
|
},
|
|
63941
|
-
args:
|
|
64455
|
+
args: args50,
|
|
63942
64456
|
tool: async (client, args, ctx) => {
|
|
63943
64457
|
const [result] = await repositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63944
64458
|
if (!result.ok) {
|
|
@@ -63998,9 +64512,9 @@ var init_v2repositoriesupdateop = __esm(() => {
|
|
|
63998
64512
|
|
|
63999
64513
|
// src/funcs/repositoriesUpdate.ts
|
|
64000
64514
|
function repositoriesUpdate(client$, request, options) {
|
|
64001
|
-
return new APIPromise($
|
|
64515
|
+
return new APIPromise($do62(client$, request, options));
|
|
64002
64516
|
}
|
|
64003
|
-
async function $
|
|
64517
|
+
async function $do62(client$, request, options) {
|
|
64004
64518
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64005
64519
|
if (!parsed$.ok) {
|
|
64006
64520
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64076,12 +64590,12 @@ var init_repositoriesUpdate = __esm(() => {
|
|
|
64076
64590
|
});
|
|
64077
64591
|
|
|
64078
64592
|
// src/mcp-server/tools/repositoriesUpdate.ts
|
|
64079
|
-
var
|
|
64593
|
+
var args51, tool$repositoriesUpdate;
|
|
64080
64594
|
var init_repositoriesUpdate2 = __esm(() => {
|
|
64081
64595
|
init_repositoriesUpdate();
|
|
64082
64596
|
init_v2repositoriesupdateop();
|
|
64083
64597
|
init_tools();
|
|
64084
|
-
|
|
64598
|
+
args51 = {
|
|
64085
64599
|
request: V2RepositoriesUpdateRequest$zodSchema
|
|
64086
64600
|
};
|
|
64087
64601
|
tool$repositoriesUpdate = {
|
|
@@ -64096,7 +64610,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
64096
64610
|
openWorldHint: false,
|
|
64097
64611
|
readOnlyHint: false
|
|
64098
64612
|
},
|
|
64099
|
-
args:
|
|
64613
|
+
args: args51,
|
|
64100
64614
|
tool: async (client, args, ctx) => {
|
|
64101
64615
|
const [result] = await repositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64102
64616
|
if (!result.ok) {
|
|
@@ -64112,9 +64626,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
64112
64626
|
|
|
64113
64627
|
// src/funcs/siteAuditsList.ts
|
|
64114
64628
|
function siteAuditsList(client$, options) {
|
|
64115
|
-
return new APIPromise($
|
|
64629
|
+
return new APIPromise($do63(client$, options));
|
|
64116
64630
|
}
|
|
64117
|
-
async function $
|
|
64631
|
+
async function $do63(client$, options) {
|
|
64118
64632
|
const path$ = pathToFunc("/v2/site-audits")();
|
|
64119
64633
|
const headers$ = new Headers(compactMap({
|
|
64120
64634
|
Accept: "application/json"
|
|
@@ -64255,9 +64769,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
|
|
|
64255
64769
|
|
|
64256
64770
|
// src/funcs/siteAuditsRetrieve.ts
|
|
64257
64771
|
function siteAuditsRetrieve(client$, request, options) {
|
|
64258
|
-
return new APIPromise($
|
|
64772
|
+
return new APIPromise($do64(client$, request, options));
|
|
64259
64773
|
}
|
|
64260
|
-
async function $
|
|
64774
|
+
async function $do64(client$, request, options) {
|
|
64261
64775
|
const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64262
64776
|
if (!parsed$.ok) {
|
|
64263
64777
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64332,12 +64846,12 @@ var init_siteAuditsRetrieve = __esm(() => {
|
|
|
64332
64846
|
});
|
|
64333
64847
|
|
|
64334
64848
|
// src/mcp-server/tools/siteAuditsRetrieve.ts
|
|
64335
|
-
var
|
|
64849
|
+
var args52, tool$siteAuditsRetrieve;
|
|
64336
64850
|
var init_siteAuditsRetrieve2 = __esm(() => {
|
|
64337
64851
|
init_siteAuditsRetrieve();
|
|
64338
64852
|
init_v2siteauditsretrieveop();
|
|
64339
64853
|
init_tools();
|
|
64340
|
-
|
|
64854
|
+
args52 = {
|
|
64341
64855
|
request: V2SiteAuditsRetrieveRequest$zodSchema
|
|
64342
64856
|
};
|
|
64343
64857
|
tool$siteAuditsRetrieve = {
|
|
@@ -64352,7 +64866,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
64352
64866
|
openWorldHint: false,
|
|
64353
64867
|
readOnlyHint: true
|
|
64354
64868
|
},
|
|
64355
|
-
args:
|
|
64869
|
+
args: args52,
|
|
64356
64870
|
tool: async (client, args, ctx) => {
|
|
64357
64871
|
const [result] = await siteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64358
64872
|
if (!result.ok) {
|
|
@@ -64368,9 +64882,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
64368
64882
|
|
|
64369
64883
|
// src/funcs/skillsList.ts
|
|
64370
64884
|
function skillsList(client$, options) {
|
|
64371
|
-
return new APIPromise($
|
|
64885
|
+
return new APIPromise($do65(client$, options));
|
|
64372
64886
|
}
|
|
64373
|
-
async function $
|
|
64887
|
+
async function $do65(client$, options) {
|
|
64374
64888
|
const path$ = pathToFunc("/v2/skills")();
|
|
64375
64889
|
const headers$ = new Headers(compactMap({
|
|
64376
64890
|
Accept: "application/json"
|
|
@@ -64460,9 +64974,9 @@ Returns reusable skills available to workflows and eval configurations.`,
|
|
|
64460
64974
|
|
|
64461
64975
|
// src/funcs/statusAuthStatusGet.ts
|
|
64462
64976
|
function statusAuthStatusGet(client$, options) {
|
|
64463
|
-
return new APIPromise($
|
|
64977
|
+
return new APIPromise($do66(client$, options));
|
|
64464
64978
|
}
|
|
64465
|
-
async function $
|
|
64979
|
+
async function $do66(client$, options) {
|
|
64466
64980
|
const path$ = pathToFunc("/v2/auth/status")();
|
|
64467
64981
|
const headers$ = new Headers(compactMap({
|
|
64468
64982
|
Accept: "application/json"
|
|
@@ -64552,9 +65066,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
|
|
|
64552
65066
|
|
|
64553
65067
|
// src/funcs/statusGet.ts
|
|
64554
65068
|
function statusGet(client$, options) {
|
|
64555
|
-
return new APIPromise($
|
|
65069
|
+
return new APIPromise($do67(client$, options));
|
|
64556
65070
|
}
|
|
64557
|
-
async function $
|
|
65071
|
+
async function $do67(client$, options) {
|
|
64558
65072
|
const path$ = pathToFunc("/v2/status")();
|
|
64559
65073
|
const headers$ = new Headers(compactMap({
|
|
64560
65074
|
Accept: "application/json"
|
|
@@ -64683,9 +65197,9 @@ var init_createtaskrequest = __esm(() => {
|
|
|
64683
65197
|
|
|
64684
65198
|
// src/funcs/tasksCreate.ts
|
|
64685
65199
|
function tasksCreate(client$, request, options) {
|
|
64686
|
-
return new APIPromise($
|
|
65200
|
+
return new APIPromise($do68(client$, request, options));
|
|
64687
65201
|
}
|
|
64688
|
-
async function $
|
|
65202
|
+
async function $do68(client$, request, options) {
|
|
64689
65203
|
const parsed$ = safeParse4(request, (value$) => CreateTaskRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64690
65204
|
if (!parsed$.ok) {
|
|
64691
65205
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64755,12 +65269,12 @@ var init_tasksCreate = __esm(() => {
|
|
|
64755
65269
|
});
|
|
64756
65270
|
|
|
64757
65271
|
// src/mcp-server/tools/tasksCreate.ts
|
|
64758
|
-
var
|
|
65272
|
+
var args53, tool$tasksCreate;
|
|
64759
65273
|
var init_tasksCreate2 = __esm(() => {
|
|
64760
65274
|
init_tasksCreate();
|
|
64761
65275
|
init_createtaskrequest();
|
|
64762
65276
|
init_tools();
|
|
64763
|
-
|
|
65277
|
+
args53 = {
|
|
64764
65278
|
request: CreateTaskRequest$zodSchema
|
|
64765
65279
|
};
|
|
64766
65280
|
tool$tasksCreate = {
|
|
@@ -64775,7 +65289,7 @@ Adds a task to today's queue and returns it with its execution prompt. New tasks
|
|
|
64775
65289
|
openWorldHint: false,
|
|
64776
65290
|
readOnlyHint: false
|
|
64777
65291
|
},
|
|
64778
|
-
args:
|
|
65292
|
+
args: args53,
|
|
64779
65293
|
tool: async (client, args, ctx) => {
|
|
64780
65294
|
const [result] = await tasksCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64781
65295
|
if (!result.ok) {
|
|
@@ -64935,9 +65449,9 @@ var init_v2taskslistop = __esm(() => {
|
|
|
64935
65449
|
|
|
64936
65450
|
// src/funcs/tasksList.ts
|
|
64937
65451
|
function tasksList(client$, request, options) {
|
|
64938
|
-
return new APIPromise($
|
|
65452
|
+
return new APIPromise($do69(client$, request, options));
|
|
64939
65453
|
}
|
|
64940
|
-
async function $
|
|
65454
|
+
async function $do69(client$, request, options) {
|
|
64941
65455
|
const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
64942
65456
|
if (!parsed$.ok) {
|
|
64943
65457
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65011,12 +65525,12 @@ var init_tasksList = __esm(() => {
|
|
|
65011
65525
|
});
|
|
65012
65526
|
|
|
65013
65527
|
// src/mcp-server/tools/tasksList.ts
|
|
65014
|
-
var
|
|
65528
|
+
var args54, tool$tasksList;
|
|
65015
65529
|
var init_tasksList2 = __esm(() => {
|
|
65016
65530
|
init_tasksList();
|
|
65017
65531
|
init_v2taskslistop();
|
|
65018
65532
|
init_tools();
|
|
65019
|
-
|
|
65533
|
+
args54 = {
|
|
65020
65534
|
request: V2TasksListRequest$zodSchema.optional()
|
|
65021
65535
|
};
|
|
65022
65536
|
tool$tasksList = {
|
|
@@ -65031,7 +65545,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
|
|
|
65031
65545
|
openWorldHint: false,
|
|
65032
65546
|
readOnlyHint: true
|
|
65033
65547
|
},
|
|
65034
|
-
args:
|
|
65548
|
+
args: args54,
|
|
65035
65549
|
tool: async (client, args, ctx) => {
|
|
65036
65550
|
const [result] = await tasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65037
65551
|
if (!result.ok) {
|
|
@@ -65062,9 +65576,9 @@ var init_v2tasksretrieveop = __esm(() => {
|
|
|
65062
65576
|
|
|
65063
65577
|
// src/funcs/tasksRetrieve.ts
|
|
65064
65578
|
function tasksRetrieve(client$, request, options) {
|
|
65065
|
-
return new APIPromise($
|
|
65579
|
+
return new APIPromise($do70(client$, request, options));
|
|
65066
65580
|
}
|
|
65067
|
-
async function $
|
|
65581
|
+
async function $do70(client$, request, options) {
|
|
65068
65582
|
const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65069
65583
|
if (!parsed$.ok) {
|
|
65070
65584
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65139,12 +65653,12 @@ var init_tasksRetrieve = __esm(() => {
|
|
|
65139
65653
|
});
|
|
65140
65654
|
|
|
65141
65655
|
// src/mcp-server/tools/tasksRetrieve.ts
|
|
65142
|
-
var
|
|
65656
|
+
var args55, tool$tasksRetrieve;
|
|
65143
65657
|
var init_tasksRetrieve2 = __esm(() => {
|
|
65144
65658
|
init_tasksRetrieve();
|
|
65145
65659
|
init_v2tasksretrieveop();
|
|
65146
65660
|
init_tools();
|
|
65147
|
-
|
|
65661
|
+
args55 = {
|
|
65148
65662
|
request: V2TasksRetrieveRequest$zodSchema
|
|
65149
65663
|
};
|
|
65150
65664
|
tool$tasksRetrieve = {
|
|
@@ -65159,7 +65673,7 @@ Returns one persisted task and its execution prompt.`,
|
|
|
65159
65673
|
openWorldHint: false,
|
|
65160
65674
|
readOnlyHint: true
|
|
65161
65675
|
},
|
|
65162
|
-
args:
|
|
65676
|
+
args: args55,
|
|
65163
65677
|
tool: async (client, args, ctx) => {
|
|
65164
65678
|
const [result] = await tasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65165
65679
|
if (!result.ok) {
|
|
@@ -65222,9 +65736,9 @@ var init_v2tasksupdateop = __esm(() => {
|
|
|
65222
65736
|
|
|
65223
65737
|
// src/funcs/tasksUpdate.ts
|
|
65224
65738
|
function tasksUpdate(client$, request, options) {
|
|
65225
|
-
return new APIPromise($
|
|
65739
|
+
return new APIPromise($do71(client$, request, options));
|
|
65226
65740
|
}
|
|
65227
|
-
async function $
|
|
65741
|
+
async function $do71(client$, request, options) {
|
|
65228
65742
|
const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65229
65743
|
if (!parsed$.ok) {
|
|
65230
65744
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65300,12 +65814,12 @@ var init_tasksUpdate = __esm(() => {
|
|
|
65300
65814
|
});
|
|
65301
65815
|
|
|
65302
65816
|
// src/mcp-server/tools/tasksUpdate.ts
|
|
65303
|
-
var
|
|
65817
|
+
var args56, tool$tasksUpdate;
|
|
65304
65818
|
var init_tasksUpdate2 = __esm(() => {
|
|
65305
65819
|
init_tasksUpdate();
|
|
65306
65820
|
init_v2tasksupdateop();
|
|
65307
65821
|
init_tools();
|
|
65308
|
-
|
|
65822
|
+
args56 = {
|
|
65309
65823
|
request: V2TasksUpdateRequest$zodSchema
|
|
65310
65824
|
};
|
|
65311
65825
|
tool$tasksUpdate = {
|
|
@@ -65320,7 +65834,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
|
|
|
65320
65834
|
openWorldHint: false,
|
|
65321
65835
|
readOnlyHint: false
|
|
65322
65836
|
},
|
|
65323
|
-
args:
|
|
65837
|
+
args: args56,
|
|
65324
65838
|
tool: async (client, args, ctx) => {
|
|
65325
65839
|
const [result] = await tasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65326
65840
|
if (!result.ok) {
|
|
@@ -65361,24 +65875,127 @@ var init_publiccitedurldaterange = __esm(() => {
|
|
|
65361
65875
|
});
|
|
65362
65876
|
});
|
|
65363
65877
|
|
|
65878
|
+
// src/models/publiccoverageday.ts
|
|
65879
|
+
var Period$zodSchema, PublicCoverageDayStatus$zodSchema, PublicCoverageDay$zodSchema;
|
|
65880
|
+
var init_publiccoverageday = __esm(() => {
|
|
65881
|
+
init_zod();
|
|
65882
|
+
Period$zodSchema = _enum([
|
|
65883
|
+
"current",
|
|
65884
|
+
"previous"
|
|
65885
|
+
]);
|
|
65886
|
+
PublicCoverageDayStatus$zodSchema = _enum([
|
|
65887
|
+
"ok",
|
|
65888
|
+
"short",
|
|
65889
|
+
"missing",
|
|
65890
|
+
"in_progress",
|
|
65891
|
+
"not_expected"
|
|
65892
|
+
]).describe("`missing`: no runs on a day that expected some. `short`: under half the expected runs. `in_progress`: today, before its runs finished.");
|
|
65893
|
+
PublicCoverageDay$zodSchema = object({
|
|
65894
|
+
date: string2(),
|
|
65895
|
+
expected_runs: int().describe("Median daily runs over the 7 days before; 0 when no daily runs are expected."),
|
|
65896
|
+
period: Period$zodSchema,
|
|
65897
|
+
runs: int().describe("Successful prompt runs of active prompts that day."),
|
|
65898
|
+
status: PublicCoverageDayStatus$zodSchema.describe("`missing`: no runs on a day that expected some. `short`: under half the expected runs. `in_progress`: today, before its runs finished.")
|
|
65899
|
+
});
|
|
65900
|
+
});
|
|
65901
|
+
|
|
65902
|
+
// src/models/publicperiodcoverage.ts
|
|
65903
|
+
var PublicPeriodCoverage$zodSchema;
|
|
65904
|
+
var init_publicperiodcoverage = __esm(() => {
|
|
65905
|
+
init_zod();
|
|
65906
|
+
PublicPeriodCoverage$zodSchema = object({
|
|
65907
|
+
complete_days: int().describe("Days in the period other than today in progress."),
|
|
65908
|
+
end_date: string2(),
|
|
65909
|
+
expected_runs: int(),
|
|
65910
|
+
missing_days: array(string2()).optional(),
|
|
65911
|
+
runs: int(),
|
|
65912
|
+
runs_per_day: number2().nullable().optional().describe("Runs per complete day."),
|
|
65913
|
+
short_days: array(string2()).optional(),
|
|
65914
|
+
start_date: string2()
|
|
65915
|
+
});
|
|
65916
|
+
});
|
|
65917
|
+
|
|
65918
|
+
// src/models/publiccoverage.ts
|
|
65919
|
+
var PublicCoverage$zodSchema;
|
|
65920
|
+
var init_publiccoverage = __esm(() => {
|
|
65921
|
+
init_zod();
|
|
65922
|
+
init_publiccoverageday();
|
|
65923
|
+
init_publicperiodcoverage();
|
|
65924
|
+
PublicCoverage$zodSchema = object({
|
|
65925
|
+
comparable: boolean2().describe("Whether totals can be compared between the two periods. False when either period has a missing or short day or runs per day differ by more than 20%; compare per-run rates instead."),
|
|
65926
|
+
current: PublicPeriodCoverage$zodSchema,
|
|
65927
|
+
days: array(PublicCoverageDay$zodSchema).optional(),
|
|
65928
|
+
notes: array(string2()).optional().describe("Why the periods are not comparable, in plain sentences."),
|
|
65929
|
+
previous: PublicPeriodCoverage$zodSchema
|
|
65930
|
+
});
|
|
65931
|
+
});
|
|
65932
|
+
|
|
65933
|
+
// src/models/publicperiodrates.ts
|
|
65934
|
+
var PublicPeriodRates$zodSchema;
|
|
65935
|
+
var init_publicperiodrates = __esm(() => {
|
|
65936
|
+
init_zod();
|
|
65937
|
+
PublicPeriodRates$zodSchema = object({
|
|
65938
|
+
brand_mention_runs: int().describe("Runs that mention the primary company."),
|
|
65939
|
+
mention_rate: number2().nullable().optional().describe("Share of runs that mention the primary company, from 0 to 1."),
|
|
65940
|
+
owned_citations: int().describe("Citations of the organization's own domains."),
|
|
65941
|
+
owned_citations_per_run: number2().nullable().optional(),
|
|
65942
|
+
runs: int()
|
|
65943
|
+
});
|
|
65944
|
+
});
|
|
65945
|
+
|
|
65946
|
+
// src/models/publicratechanges.ts
|
|
65947
|
+
var PublicRateChanges$zodSchema;
|
|
65948
|
+
var init_publicratechanges = __esm(() => {
|
|
65949
|
+
init_zod();
|
|
65950
|
+
PublicRateChanges$zodSchema = object({
|
|
65951
|
+
mention_rate: number2().nullable().optional().describe("Relative change from the previous period."),
|
|
65952
|
+
owned_citations: number2().nullable().optional().describe("Relative change from the previous period; 0.25 means 25% higher."),
|
|
65953
|
+
owned_citations_per_run: number2().nullable().optional().describe("Relative change from the previous period.")
|
|
65954
|
+
});
|
|
65955
|
+
});
|
|
65956
|
+
|
|
65957
|
+
// src/models/publicrates.ts
|
|
65958
|
+
var PublicRatesHeadlineMetric$zodSchema, PublicRates$zodSchema;
|
|
65959
|
+
var init_publicrates = __esm(() => {
|
|
65960
|
+
init_zod();
|
|
65961
|
+
init_publicperiodrates();
|
|
65962
|
+
init_publicratechanges();
|
|
65963
|
+
PublicRatesHeadlineMetric$zodSchema = _enum([
|
|
65964
|
+
"owned_citations",
|
|
65965
|
+
"owned_citations_per_run"
|
|
65966
|
+
]).describe("The number to lead with: owned citations when the periods are comparable, otherwise owned citations per run.");
|
|
65967
|
+
PublicRates$zodSchema = object({
|
|
65968
|
+
change: PublicRateChanges$zodSchema,
|
|
65969
|
+
current: PublicPeriodRates$zodSchema,
|
|
65970
|
+
headline_metric: PublicRatesHeadlineMetric$zodSchema.describe("The number to lead with: owned citations when the periods are comparable, otherwise owned citations per run."),
|
|
65971
|
+
previous: PublicPeriodRates$zodSchema
|
|
65972
|
+
});
|
|
65973
|
+
});
|
|
65974
|
+
|
|
65364
65975
|
// src/models/publictopcitedurlsresponse.ts
|
|
65365
|
-
var
|
|
65976
|
+
var PublicTopCitedUrlsResponseSourceType$zodSchema, PublicTopCitedUrlsResponse$zodSchema;
|
|
65366
65977
|
var init_publictopcitedurlsresponse = __esm(() => {
|
|
65367
65978
|
init_zod();
|
|
65368
65979
|
init_publiccitedurl();
|
|
65369
65980
|
init_publiccitedurldaterange();
|
|
65370
|
-
|
|
65981
|
+
init_publiccoverage();
|
|
65982
|
+
init_publicrates();
|
|
65983
|
+
init_publicresolvedperiod();
|
|
65984
|
+
PublicTopCitedUrlsResponseSourceType$zodSchema = _enum([
|
|
65371
65985
|
"all",
|
|
65372
65986
|
"owned",
|
|
65373
65987
|
"external"
|
|
65374
65988
|
]).describe("Whether the results include all, owned, or external URLs.");
|
|
65375
65989
|
PublicTopCitedUrlsResponse$zodSchema = object({
|
|
65376
65990
|
count: int().describe("Number of URL rows returned."),
|
|
65991
|
+
coverage: PublicCoverage$zodSchema.nullable().optional().describe("Runs per day against expected runs for both periods. Check `comparable` before comparing totals."),
|
|
65377
65992
|
data: array(PublicCitedUrl$zodSchema).optional().describe("Cited URLs ranked by citation count in descending order."),
|
|
65378
65993
|
date_range: PublicCitedUrlDateRange$zodSchema,
|
|
65379
65994
|
has_data: boolean2().describe("Whether any citations matched the selected filters."),
|
|
65995
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
|
|
65380
65996
|
platform: string2().nullable().optional().describe("Platform selector applied to the results, or null for all platforms."),
|
|
65381
|
-
|
|
65997
|
+
rates: PublicRates$zodSchema.nullable().optional().describe("Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`."),
|
|
65998
|
+
source_type: PublicTopCitedUrlsResponseSourceType$zodSchema.describe("Whether the results include all, owned, or external URLs.")
|
|
65382
65999
|
});
|
|
65383
66000
|
});
|
|
65384
66001
|
|
|
@@ -65396,6 +66013,7 @@ var init_v2visibilitycitationslistop = __esm(() => {
|
|
|
65396
66013
|
V2VisibilityCitationsListRequest$zodSchema = object({
|
|
65397
66014
|
end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
|
|
65398
66015
|
limit: int().default(20),
|
|
66016
|
+
period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
|
|
65399
66017
|
platform: string2().describe("Optional answer-platform ID, name, or slug.").optional(),
|
|
65400
66018
|
source_type: V2VisibilityCitationsListSourceType$zodSchema.default("all"),
|
|
65401
66019
|
start_date: string2().date().describe("Inclusive range start.").optional()
|
|
@@ -65408,9 +66026,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
|
|
|
65408
66026
|
|
|
65409
66027
|
// src/funcs/visibilityCitationsList.ts
|
|
65410
66028
|
function visibilityCitationsList(client$, request, options) {
|
|
65411
|
-
return new APIPromise($
|
|
66029
|
+
return new APIPromise($do72(client$, request, options));
|
|
65412
66030
|
}
|
|
65413
|
-
async function $
|
|
66031
|
+
async function $do72(client$, request, options) {
|
|
65414
66032
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
65415
66033
|
if (!parsed$.ok) {
|
|
65416
66034
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65421,6 +66039,7 @@ async function $do69(client$, request, options) {
|
|
|
65421
66039
|
const query$ = encodeFormQuery({
|
|
65422
66040
|
end_date: payload$?.end_date,
|
|
65423
66041
|
limit: payload$?.limit,
|
|
66042
|
+
period: payload$?.period,
|
|
65424
66043
|
platform: payload$?.platform,
|
|
65425
66044
|
source_type: payload$?.source_type,
|
|
65426
66045
|
start_date: payload$?.start_date
|
|
@@ -65487,19 +66106,19 @@ var init_visibilityCitationsList = __esm(() => {
|
|
|
65487
66106
|
});
|
|
65488
66107
|
|
|
65489
66108
|
// src/mcp-server/tools/visibilityCitationsList.ts
|
|
65490
|
-
var
|
|
66109
|
+
var args57, tool$visibilityCitationsList;
|
|
65491
66110
|
var init_visibilityCitationsList2 = __esm(() => {
|
|
65492
66111
|
init_visibilityCitationsList();
|
|
65493
66112
|
init_v2visibilitycitationslistop();
|
|
65494
66113
|
init_tools();
|
|
65495
|
-
|
|
66114
|
+
args57 = {
|
|
65496
66115
|
request: V2VisibilityCitationsListRequest$zodSchema.optional()
|
|
65497
66116
|
};
|
|
65498
66117
|
tool$visibilityCitationsList = {
|
|
65499
66118
|
name: "visibility-citations-list",
|
|
65500
66119
|
description: `List Top Cited Urls
|
|
65501
66120
|
|
|
65502
|
-
Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources.`,
|
|
66121
|
+
Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources. For totals by URL prefix, domain, or day compared with the previous period, use the citations summary.`,
|
|
65503
66122
|
annotations: {
|
|
65504
66123
|
title: "",
|
|
65505
66124
|
destructiveHint: false,
|
|
@@ -65507,7 +66126,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
65507
66126
|
openWorldHint: false,
|
|
65508
66127
|
readOnlyHint: true
|
|
65509
66128
|
},
|
|
65510
|
-
args:
|
|
66129
|
+
args: args57,
|
|
65511
66130
|
tool: async (client, args, ctx) => {
|
|
65512
66131
|
const [result] = await visibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65513
66132
|
if (!result.ok) {
|
|
@@ -65521,6 +66140,233 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
65521
66140
|
};
|
|
65522
66141
|
});
|
|
65523
66142
|
|
|
66143
|
+
// src/models/publiccitationsummarygroup.ts
|
|
66144
|
+
var PublicCitationSummaryGroup$zodSchema;
|
|
66145
|
+
var init_publiccitationsummarygroup = __esm(() => {
|
|
66146
|
+
init_zod();
|
|
66147
|
+
PublicCitationSummaryGroup$zodSchema = object({
|
|
66148
|
+
change: number2().nullable().optional().describe("Relative change in citations; 0.25 means 25% higher."),
|
|
66149
|
+
citation_count: int().describe("Citations in the period."),
|
|
66150
|
+
citations_per_run: number2().nullable().optional(),
|
|
66151
|
+
is_company_link: boolean2().describe("Whether the group includes an owned company domain."),
|
|
66152
|
+
key: string2().describe("The group: a URL prefix (domain and first path segment, such as `example.com/blog`), a normalized URL, a domain, or a day (YYYY-MM-DD)."),
|
|
66153
|
+
per_run_change: number2().nullable().optional().describe("Relative change in citations per run."),
|
|
66154
|
+
previous_citation_count: int().describe("Citations in the previous period. For `day` groups, the matching day of the previous period."),
|
|
66155
|
+
previous_citations_per_run: number2().nullable().optional(),
|
|
66156
|
+
prompt_count: int().describe("Distinct active prompts that cited the group in the period."),
|
|
66157
|
+
title: string2().nullable().optional().describe("Page title, for `url` groups."),
|
|
66158
|
+
url: string2().nullable().optional().describe("Most frequently observed variant of the URL, for `url` groups."),
|
|
66159
|
+
url_count: int().describe("Distinct URLs in the group in the period.")
|
|
66160
|
+
});
|
|
66161
|
+
});
|
|
66162
|
+
|
|
66163
|
+
// src/models/publiccitationsummarytotals.ts
|
|
66164
|
+
var PublicCitationSummaryTotals$zodSchema;
|
|
66165
|
+
var init_publiccitationsummarytotals = __esm(() => {
|
|
66166
|
+
init_zod();
|
|
66167
|
+
PublicCitationSummaryTotals$zodSchema = object({
|
|
66168
|
+
change: number2().nullable().optional().describe("Relative change in citations; 0.25 means 25% higher."),
|
|
66169
|
+
citation_count: int(),
|
|
66170
|
+
citations_per_run: number2().nullable().optional(),
|
|
66171
|
+
per_run_change: number2().nullable().optional().describe("Relative change in citations per run."),
|
|
66172
|
+
previous_citation_count: int(),
|
|
66173
|
+
previous_citations_per_run: number2().nullable().optional(),
|
|
66174
|
+
previous_run_count: int(),
|
|
66175
|
+
run_count: int().describe("Successful runs of active prompts in the period, after the platform filter."),
|
|
66176
|
+
url_count: int().describe("Distinct cited URLs in the period.")
|
|
66177
|
+
});
|
|
66178
|
+
});
|
|
66179
|
+
|
|
66180
|
+
// src/models/publiccitationsummaryresponse.ts
|
|
66181
|
+
var GroupBy$zodSchema, PublicCitationSummaryResponseSourceType$zodSchema, PublicCitationSummaryResponseHeadlineMetric$zodSchema, PublicCitationSummaryResponse$zodSchema;
|
|
66182
|
+
var init_publiccitationsummaryresponse = __esm(() => {
|
|
66183
|
+
init_zod();
|
|
66184
|
+
init_publiccitationsummarygroup();
|
|
66185
|
+
init_publiccitationsummarytotals();
|
|
66186
|
+
init_publiccoverage();
|
|
66187
|
+
init_publicresolvedperiod();
|
|
66188
|
+
GroupBy$zodSchema = _enum([
|
|
66189
|
+
"url_prefix",
|
|
66190
|
+
"url",
|
|
66191
|
+
"domain",
|
|
66192
|
+
"day"
|
|
66193
|
+
]);
|
|
66194
|
+
PublicCitationSummaryResponseSourceType$zodSchema = _enum([
|
|
66195
|
+
"all",
|
|
66196
|
+
"owned",
|
|
66197
|
+
"external"
|
|
66198
|
+
]);
|
|
66199
|
+
PublicCitationSummaryResponseHeadlineMetric$zodSchema = _enum([
|
|
66200
|
+
"citation_count",
|
|
66201
|
+
"citations_per_run"
|
|
66202
|
+
]).describe("The number to lead with: citation counts when the periods are comparable, otherwise citations per run.");
|
|
66203
|
+
PublicCitationSummaryResponse$zodSchema = object({
|
|
66204
|
+
count: int().describe("Groups returned."),
|
|
66205
|
+
coverage: PublicCoverage$zodSchema,
|
|
66206
|
+
group_by: GroupBy$zodSchema,
|
|
66207
|
+
group_count: int().describe("Groups matching the filters, before `limit`."),
|
|
66208
|
+
groups: array(PublicCitationSummaryGroup$zodSchema).optional().describe("Groups by citation count, most first; `day` groups are in date order."),
|
|
66209
|
+
has_data: boolean2(),
|
|
66210
|
+
headline_metric: PublicCitationSummaryResponseHeadlineMetric$zodSchema.describe("The number to lead with: citation counts when the periods are comparable, otherwise citations per run."),
|
|
66211
|
+
period: PublicResolvedPeriod$zodSchema,
|
|
66212
|
+
platform: string2().nullable().optional(),
|
|
66213
|
+
source_type: PublicCitationSummaryResponseSourceType$zodSchema,
|
|
66214
|
+
totals: PublicCitationSummaryTotals$zodSchema,
|
|
66215
|
+
url_prefix: string2().nullable().optional().describe("URL prefix filter applied, if any.")
|
|
66216
|
+
});
|
|
66217
|
+
});
|
|
66218
|
+
|
|
66219
|
+
// src/models/v2visibilitycitationssummaryretrieveop.ts
|
|
66220
|
+
var V2VisibilityCitationsSummaryRetrieveGroupBy$zodSchema, V2VisibilityCitationsSummaryRetrieveSourceType$zodSchema, V2VisibilityCitationsSummaryRetrieveRequest$zodSchema, V2VisibilityCitationsSummaryRetrieveResponse$zodSchema;
|
|
66221
|
+
var init_v2visibilitycitationssummaryretrieveop = __esm(() => {
|
|
66222
|
+
init_zod();
|
|
66223
|
+
init_httpvalidationerror();
|
|
66224
|
+
init_publiccitationsummaryresponse();
|
|
66225
|
+
V2VisibilityCitationsSummaryRetrieveGroupBy$zodSchema = _enum([
|
|
66226
|
+
"url_prefix",
|
|
66227
|
+
"url",
|
|
66228
|
+
"domain",
|
|
66229
|
+
"day"
|
|
66230
|
+
]).describe("How to group citations.");
|
|
66231
|
+
V2VisibilityCitationsSummaryRetrieveSourceType$zodSchema = _enum([
|
|
66232
|
+
"all",
|
|
66233
|
+
"owned",
|
|
66234
|
+
"external"
|
|
66235
|
+
]).describe("All citations, only owned company domains, or only external ones.");
|
|
66236
|
+
V2VisibilityCitationsSummaryRetrieveRequest$zodSchema = object({
|
|
66237
|
+
end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
|
|
66238
|
+
group_by: V2VisibilityCitationsSummaryRetrieveGroupBy$zodSchema.default("url_prefix").describe("How to group citations."),
|
|
66239
|
+
limit: int().default(20).describe("Groups to return; `day` groups return every day."),
|
|
66240
|
+
period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
|
|
66241
|
+
platform: string2().describe("Optional answer-platform ID, name, or slug.").optional(),
|
|
66242
|
+
source_type: V2VisibilityCitationsSummaryRetrieveSourceType$zodSchema.default("all").describe("All citations, only owned company domains, or only external ones."),
|
|
66243
|
+
start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional(),
|
|
66244
|
+
url_prefix: string2().describe("Only citations under this URL prefix, such as `https://example.com/blog/`. Scheme and `www.` are ignored.").optional()
|
|
66245
|
+
});
|
|
66246
|
+
V2VisibilityCitationsSummaryRetrieveResponse$zodSchema = union([
|
|
66247
|
+
PublicCitationSummaryResponse$zodSchema,
|
|
66248
|
+
HTTPValidationError$zodSchema
|
|
66249
|
+
]);
|
|
66250
|
+
});
|
|
66251
|
+
|
|
66252
|
+
// src/funcs/visibilityCitationsSummaryRetrieve.ts
|
|
66253
|
+
function visibilityCitationsSummaryRetrieve(client$, request, options) {
|
|
66254
|
+
return new APIPromise($do73(client$, request, options));
|
|
66255
|
+
}
|
|
66256
|
+
async function $do73(client$, request, options) {
|
|
66257
|
+
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
66258
|
+
if (!parsed$.ok) {
|
|
66259
|
+
return [parsed$, { status: "invalid" }];
|
|
66260
|
+
}
|
|
66261
|
+
const payload$ = parsed$.value;
|
|
66262
|
+
const body$ = null;
|
|
66263
|
+
const path$ = pathToFunc("/v2/visibility/citations/summary")();
|
|
66264
|
+
const query$ = encodeFormQuery({
|
|
66265
|
+
end_date: payload$?.end_date,
|
|
66266
|
+
group_by: payload$?.group_by,
|
|
66267
|
+
limit: payload$?.limit,
|
|
66268
|
+
period: payload$?.period,
|
|
66269
|
+
platform: payload$?.platform,
|
|
66270
|
+
source_type: payload$?.source_type,
|
|
66271
|
+
start_date: payload$?.start_date,
|
|
66272
|
+
url_prefix: payload$?.url_prefix
|
|
66273
|
+
});
|
|
66274
|
+
const headers$ = new Headers(compactMap({
|
|
66275
|
+
Accept: "application/json"
|
|
66276
|
+
}));
|
|
66277
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
66278
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
66279
|
+
const context = {
|
|
66280
|
+
options: client$._options,
|
|
66281
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
66282
|
+
operationID: "v2_visibility_citations_summary_retrieve",
|
|
66283
|
+
oAuth2Scopes: null,
|
|
66284
|
+
resolvedSecurity: requestSecurity,
|
|
66285
|
+
securitySource: client$._options.security,
|
|
66286
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
66287
|
+
retryCodes: options?.retryCodes || [
|
|
66288
|
+
"429",
|
|
66289
|
+
"500",
|
|
66290
|
+
"502",
|
|
66291
|
+
"503",
|
|
66292
|
+
"504"
|
|
66293
|
+
]
|
|
66294
|
+
};
|
|
66295
|
+
const requestRes = client$._createRequest(context, {
|
|
66296
|
+
security: requestSecurity,
|
|
66297
|
+
method: "GET",
|
|
66298
|
+
baseURL: options?.serverURL,
|
|
66299
|
+
path: path$,
|
|
66300
|
+
headers: headers$,
|
|
66301
|
+
query: query$,
|
|
66302
|
+
body: body$,
|
|
66303
|
+
userAgent: client$._options.userAgent,
|
|
66304
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
66305
|
+
}, options);
|
|
66306
|
+
if (!requestRes.ok) {
|
|
66307
|
+
return [requestRes, { status: "invalid" }];
|
|
66308
|
+
}
|
|
66309
|
+
const req$ = requestRes.value;
|
|
66310
|
+
const doResult = await client$._do(req$, {
|
|
66311
|
+
context,
|
|
66312
|
+
errorCodes: [],
|
|
66313
|
+
retryConfig: context.retryConfig,
|
|
66314
|
+
retryCodes: context.retryCodes
|
|
66315
|
+
});
|
|
66316
|
+
if (!doResult.ok) {
|
|
66317
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
66318
|
+
}
|
|
66319
|
+
return [doResult, {
|
|
66320
|
+
status: "complete",
|
|
66321
|
+
request: req$,
|
|
66322
|
+
response: doResult.value
|
|
66323
|
+
}];
|
|
66324
|
+
}
|
|
66325
|
+
var init_visibilityCitationsSummaryRetrieve = __esm(() => {
|
|
66326
|
+
init_encodings();
|
|
66327
|
+
init_primitives();
|
|
66328
|
+
init_schemas4();
|
|
66329
|
+
init_security();
|
|
66330
|
+
init_url();
|
|
66331
|
+
init_v2visibilitycitationssummaryretrieveop();
|
|
66332
|
+
init_async();
|
|
66333
|
+
});
|
|
66334
|
+
|
|
66335
|
+
// src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts
|
|
66336
|
+
var args58, tool$visibilityCitationsSummaryRetrieve;
|
|
66337
|
+
var init_visibilityCitationsSummaryRetrieve2 = __esm(() => {
|
|
66338
|
+
init_visibilityCitationsSummaryRetrieve();
|
|
66339
|
+
init_v2visibilitycitationssummaryretrieveop();
|
|
66340
|
+
init_tools();
|
|
66341
|
+
args58 = {
|
|
66342
|
+
request: V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional()
|
|
66343
|
+
};
|
|
66344
|
+
tool$visibilityCitationsSummaryRetrieve = {
|
|
66345
|
+
name: "visibility-citations-summary-retrieve",
|
|
66346
|
+
description: `Retrieve Citation Summary
|
|
66347
|
+
|
|
66348
|
+
Returns citation totals grouped by URL prefix (domain and first path segment, such as \`example.com/blog\`), URL, domain, or day, each compared with the previous period, with per-run rates and run coverage. Filter to one section of a site with \`url_prefix\`, for example \`https://example.com/blog/\`. Aggregated in one call; use it instead of paging the citations list.`,
|
|
66349
|
+
annotations: {
|
|
66350
|
+
title: "",
|
|
66351
|
+
destructiveHint: false,
|
|
66352
|
+
idempotentHint: false,
|
|
66353
|
+
openWorldHint: false,
|
|
66354
|
+
readOnlyHint: true
|
|
66355
|
+
},
|
|
66356
|
+
args: args58,
|
|
66357
|
+
tool: async (client, args, ctx) => {
|
|
66358
|
+
const [result] = await visibilityCitationsSummaryRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66359
|
+
if (!result.ok) {
|
|
66360
|
+
return {
|
|
66361
|
+
content: [{ type: "text", text: result.error.message }],
|
|
66362
|
+
isError: true
|
|
66363
|
+
};
|
|
66364
|
+
}
|
|
66365
|
+
return formatResult(result.value);
|
|
66366
|
+
}
|
|
66367
|
+
};
|
|
66368
|
+
});
|
|
66369
|
+
|
|
65524
66370
|
// src/models/publiccompany.ts
|
|
65525
66371
|
var PublicCompany$zodSchema;
|
|
65526
66372
|
var init_publiccompany = __esm(() => {
|
|
@@ -65533,19 +66379,40 @@ var init_publiccompany = __esm(() => {
|
|
|
65533
66379
|
});
|
|
65534
66380
|
});
|
|
65535
66381
|
|
|
66382
|
+
// src/models/publicpreviousvisibility.ts
|
|
66383
|
+
var PublicPreviousVisibility$zodSchema;
|
|
66384
|
+
var init_publicpreviousvisibility = __esm(() => {
|
|
66385
|
+
init_zod();
|
|
66386
|
+
PublicPreviousVisibility$zodSchema = object({
|
|
66387
|
+
average_position: number2().nullable().optional(),
|
|
66388
|
+
has_data: boolean2().default(false),
|
|
66389
|
+
recommendation_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded. `null` unless the organization turns on Recommendation Score under Settings › Navigation."),
|
|
66390
|
+
share_of_voice: number2().nullable().optional().describe("The company's share of all mentions of tracked companies (your company plus configured competitors) in the same prompt runs, from 0 to 1; tracked companies add up to 1. Each company counts once per run. `null` for companies you do not track. Not the `share_of_voice` field removed in October 2026, which held the mention rate now returned as `visibility_score`."),
|
|
66391
|
+
visibility_score: number2().nullable().optional().describe("Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded.")
|
|
66392
|
+
});
|
|
66393
|
+
});
|
|
66394
|
+
|
|
65536
66395
|
// src/models/publiccurrentvisibilityresponse.ts
|
|
65537
66396
|
var PublicCurrentVisibilityResponse$zodSchema;
|
|
65538
66397
|
var init_publiccurrentvisibilityresponse = __esm(() => {
|
|
65539
66398
|
init_zod();
|
|
65540
66399
|
init_publiccompany();
|
|
66400
|
+
init_publiccoverage();
|
|
66401
|
+
init_publicpreviousvisibility();
|
|
66402
|
+
init_publicrates();
|
|
66403
|
+
init_publicresolvedperiod();
|
|
65541
66404
|
PublicCurrentVisibilityResponse$zodSchema = object({
|
|
65542
66405
|
active_prompts_only: boolean2().default(true),
|
|
65543
66406
|
average_position: number2().nullable().optional().describe("Mean mention position in AI responses; 1 is first and lower is better."),
|
|
65544
66407
|
average_position_rank: int().nullable().optional(),
|
|
65545
66408
|
company: PublicCompany$zodSchema,
|
|
66409
|
+
coverage: PublicCoverage$zodSchema.nullable().optional().describe("Runs per day against expected runs for both periods. Check `comparable` before comparing totals."),
|
|
65546
66410
|
date: string2().nullable().optional().describe("Latest prompt-run date in the range."),
|
|
65547
66411
|
end_date: string2(),
|
|
65548
66412
|
has_data: boolean2(),
|
|
66413
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
|
|
66414
|
+
previous: PublicPreviousVisibility$zodSchema.nullable().optional().describe("The same metrics for the previous period."),
|
|
66415
|
+
rates: PublicRates$zodSchema.nullable().optional().describe("Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`."),
|
|
65549
66416
|
recommendation_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded. `null` unless the organization turns on Recommendation Score under Settings › Navigation."),
|
|
65550
66417
|
recommendation_score_rank: int().nullable().optional(),
|
|
65551
66418
|
share_of_voice: number2().nullable().optional().describe("The company's share of all mentions of tracked companies (your company plus configured competitors) in the same prompt runs, from 0 to 1; tracked companies add up to 1. Each company counts once per run. `null` for companies you do not track. Not the `share_of_voice` field removed in October 2026, which held the mention rate now returned as `visibility_score`."),
|
|
@@ -65564,6 +66431,7 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
65564
66431
|
init_publiccurrentvisibilityresponse();
|
|
65565
66432
|
V2VisibilityCurrentRetrieveRequest$zodSchema = object({
|
|
65566
66433
|
end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
|
|
66434
|
+
period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
|
|
65567
66435
|
start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional()
|
|
65568
66436
|
});
|
|
65569
66437
|
V2VisibilityCurrentRetrieveResponse$zodSchema = union([
|
|
@@ -65574,9 +66442,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
65574
66442
|
|
|
65575
66443
|
// src/funcs/visibilityCurrentRetrieve.ts
|
|
65576
66444
|
function visibilityCurrentRetrieve(client$, request, options) {
|
|
65577
|
-
return new APIPromise($
|
|
66445
|
+
return new APIPromise($do74(client$, request, options));
|
|
65578
66446
|
}
|
|
65579
|
-
async function $
|
|
66447
|
+
async function $do74(client$, request, options) {
|
|
65580
66448
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
65581
66449
|
if (!parsed$.ok) {
|
|
65582
66450
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65586,6 +66454,7 @@ async function $do70(client$, request, options) {
|
|
|
65586
66454
|
const path$ = pathToFunc("/v2/visibility/current")();
|
|
65587
66455
|
const query$ = encodeFormQuery({
|
|
65588
66456
|
end_date: payload$?.end_date,
|
|
66457
|
+
period: payload$?.period,
|
|
65589
66458
|
start_date: payload$?.start_date
|
|
65590
66459
|
});
|
|
65591
66460
|
const headers$ = new Headers(compactMap({
|
|
@@ -65650,19 +66519,19 @@ var init_visibilityCurrentRetrieve = __esm(() => {
|
|
|
65650
66519
|
});
|
|
65651
66520
|
|
|
65652
66521
|
// src/mcp-server/tools/visibilityCurrentRetrieve.ts
|
|
65653
|
-
var
|
|
66522
|
+
var args59, tool$visibilityCurrentRetrieve;
|
|
65654
66523
|
var init_visibilityCurrentRetrieve2 = __esm(() => {
|
|
65655
66524
|
init_visibilityCurrentRetrieve();
|
|
65656
66525
|
init_v2visibilitycurrentretrieveop();
|
|
65657
66526
|
init_tools();
|
|
65658
|
-
|
|
66527
|
+
args59 = {
|
|
65659
66528
|
request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
|
|
65660
66529
|
};
|
|
65661
66530
|
tool$visibilityCurrentRetrieve = {
|
|
65662
66531
|
name: "visibility-current-retrieve",
|
|
65663
66532
|
description: `Retrieve Current Visibility
|
|
65664
66533
|
|
|
65665
|
-
Returns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company. Metrics are computed from active prompts only; when no data exists, values are \`null
|
|
66534
|
+
Returns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company, with the same metrics for the previous period, run coverage, and per-run rates. Metrics are computed from active prompts only; when no data exists, values are \`null\`. Pass \`period\` (for example \`last_30_days\` or \`2026Q4\`) instead of computing dates.`,
|
|
65666
66535
|
annotations: {
|
|
65667
66536
|
title: "",
|
|
65668
66537
|
destructiveHint: false,
|
|
@@ -65670,7 +66539,7 @@ Returns recommendation score, visibility score, ranks, and date-range metadata f
|
|
|
65670
66539
|
openWorldHint: false,
|
|
65671
66540
|
readOnlyHint: true
|
|
65672
66541
|
},
|
|
65673
|
-
args:
|
|
66542
|
+
args: args59,
|
|
65674
66543
|
tool: async (client, args, ctx) => {
|
|
65675
66544
|
const [result] = await visibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65676
66545
|
if (!result.ok) {
|
|
@@ -65786,6 +66655,9 @@ var init_publicvisibilityoverviewresponse = __esm(() => {
|
|
|
65786
66655
|
init_zod();
|
|
65787
66656
|
init_publiccompany();
|
|
65788
66657
|
init_publiccompetitorrow();
|
|
66658
|
+
init_publiccoverage();
|
|
66659
|
+
init_publicrates();
|
|
66660
|
+
init_publicresolvedperiod();
|
|
65789
66661
|
init_publicvisibilitybyplatform();
|
|
65790
66662
|
init_publicvisibilitydaterange();
|
|
65791
66663
|
init_publicvisibilitysnapshot();
|
|
@@ -65794,8 +66666,11 @@ var init_publicvisibilityoverviewresponse = __esm(() => {
|
|
|
65794
66666
|
by_platform: PublicVisibilityByPlatform$zodSchema,
|
|
65795
66667
|
company: PublicCompany$zodSchema,
|
|
65796
66668
|
competitors: array(PublicCompetitorRow$zodSchema).optional().describe("Includes the primary company."),
|
|
66669
|
+
coverage: PublicCoverage$zodSchema.nullable().optional().describe("Runs per day against expected runs for both periods. Check `comparable` before comparing totals."),
|
|
65797
66670
|
date_range: PublicVisibilityDateRange$zodSchema,
|
|
65798
66671
|
has_data: boolean2(),
|
|
66672
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
|
|
66673
|
+
rates: PublicRates$zodSchema.nullable().optional().describe("Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`."),
|
|
65799
66674
|
snapshot: PublicVisibilitySnapshot$zodSchema,
|
|
65800
66675
|
timeseries: PublicVisibilityTimeseries$zodSchema
|
|
65801
66676
|
});
|
|
@@ -65809,6 +66684,7 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
65809
66684
|
init_publicvisibilityoverviewresponse();
|
|
65810
66685
|
V2VisibilityOverviewRetrieveRequest$zodSchema = object({
|
|
65811
66686
|
end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
|
|
66687
|
+
period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
|
|
65812
66688
|
start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional()
|
|
65813
66689
|
});
|
|
65814
66690
|
V2VisibilityOverviewRetrieveResponse$zodSchema = union([
|
|
@@ -65819,9 +66695,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
65819
66695
|
|
|
65820
66696
|
// src/funcs/visibilityOverviewRetrieve.ts
|
|
65821
66697
|
function visibilityOverviewRetrieve(client$, request, options) {
|
|
65822
|
-
return new APIPromise($
|
|
66698
|
+
return new APIPromise($do75(client$, request, options));
|
|
65823
66699
|
}
|
|
65824
|
-
async function $
|
|
66700
|
+
async function $do75(client$, request, options) {
|
|
65825
66701
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
65826
66702
|
if (!parsed$.ok) {
|
|
65827
66703
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65831,6 +66707,7 @@ async function $do71(client$, request, options) {
|
|
|
65831
66707
|
const path$ = pathToFunc("/v2/visibility/overview")();
|
|
65832
66708
|
const query$ = encodeFormQuery({
|
|
65833
66709
|
end_date: payload$?.end_date,
|
|
66710
|
+
period: payload$?.period,
|
|
65834
66711
|
start_date: payload$?.start_date
|
|
65835
66712
|
});
|
|
65836
66713
|
const headers$ = new Headers(compactMap({
|
|
@@ -65895,19 +66772,19 @@ var init_visibilityOverviewRetrieve = __esm(() => {
|
|
|
65895
66772
|
});
|
|
65896
66773
|
|
|
65897
66774
|
// src/mcp-server/tools/visibilityOverviewRetrieve.ts
|
|
65898
|
-
var
|
|
66775
|
+
var args60, tool$visibilityOverviewRetrieve;
|
|
65899
66776
|
var init_visibilityOverviewRetrieve2 = __esm(() => {
|
|
65900
66777
|
init_visibilityOverviewRetrieve();
|
|
65901
66778
|
init_v2visibilityoverviewretrieveop();
|
|
65902
66779
|
init_tools();
|
|
65903
|
-
|
|
66780
|
+
args60 = {
|
|
65904
66781
|
request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
|
|
65905
66782
|
};
|
|
65906
66783
|
tool$visibilityOverviewRetrieve = {
|
|
65907
66784
|
name: "visibility-overview-retrieve",
|
|
65908
66785
|
description: `Retrieve Visibility Overview
|
|
65909
66786
|
|
|
65910
|
-
Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison. Calculated from active prompts only.`,
|
|
66787
|
+
Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison, with run coverage and per-run rates against the previous period. Calculated from active prompts only.`,
|
|
65911
66788
|
annotations: {
|
|
65912
66789
|
title: "",
|
|
65913
66790
|
destructiveHint: false,
|
|
@@ -65915,7 +66792,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
|
|
|
65915
66792
|
openWorldHint: false,
|
|
65916
66793
|
readOnlyHint: true
|
|
65917
66794
|
},
|
|
65918
|
-
args:
|
|
66795
|
+
args: args60,
|
|
65919
66796
|
tool: async (client, args, ctx) => {
|
|
65920
66797
|
const [result] = await visibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65921
66798
|
if (!result.ok) {
|
|
@@ -66000,13 +66877,19 @@ var PublicPromptVisibilityReportResponse$zodSchema;
|
|
|
66000
66877
|
var init_publicpromptvisibilityreportresponse = __esm(() => {
|
|
66001
66878
|
init_zod();
|
|
66002
66879
|
init_publiccompany();
|
|
66880
|
+
init_publiccoverage();
|
|
66003
66881
|
init_publicpromptvisibilitydaterange();
|
|
66004
66882
|
init_publicpromptvisibilitysummary();
|
|
66883
|
+
init_publicrates();
|
|
66884
|
+
init_publicresolvedperiod();
|
|
66005
66885
|
init_publictopicvisibilityrow();
|
|
66006
66886
|
PublicPromptVisibilityReportResponse$zodSchema = object({
|
|
66007
66887
|
company: PublicCompany$zodSchema,
|
|
66888
|
+
coverage: PublicCoverage$zodSchema.nullable().optional().describe("Runs per day against expected runs for both periods. Check `comparable` before comparing totals."),
|
|
66008
66889
|
date_range: PublicPromptVisibilityDateRange$zodSchema,
|
|
66009
66890
|
has_data: boolean2(),
|
|
66891
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
|
|
66892
|
+
rates: PublicRates$zodSchema.nullable().optional().describe("Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`."),
|
|
66010
66893
|
summary: PublicPromptVisibilitySummary$zodSchema,
|
|
66011
66894
|
topics: array(PublicTopicVisibilityRow$zodSchema).optional()
|
|
66012
66895
|
});
|
|
@@ -66020,6 +66903,7 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
66020
66903
|
init_publicpromptvisibilityreportresponse();
|
|
66021
66904
|
V2VisibilityPromptsRetrieveRequest$zodSchema = object({
|
|
66022
66905
|
end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
|
|
66906
|
+
period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
|
|
66023
66907
|
start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional()
|
|
66024
66908
|
});
|
|
66025
66909
|
V2VisibilityPromptsRetrieveResponse$zodSchema = union([
|
|
@@ -66030,9 +66914,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
66030
66914
|
|
|
66031
66915
|
// src/funcs/visibilityPromptsRetrieve.ts
|
|
66032
66916
|
function visibilityPromptsRetrieve(client$, request, options) {
|
|
66033
|
-
return new APIPromise($
|
|
66917
|
+
return new APIPromise($do76(client$, request, options));
|
|
66034
66918
|
}
|
|
66035
|
-
async function $
|
|
66919
|
+
async function $do76(client$, request, options) {
|
|
66036
66920
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
66037
66921
|
if (!parsed$.ok) {
|
|
66038
66922
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66042,6 +66926,7 @@ async function $do72(client$, request, options) {
|
|
|
66042
66926
|
const path$ = pathToFunc("/v2/visibility/prompts")();
|
|
66043
66927
|
const query$ = encodeFormQuery({
|
|
66044
66928
|
end_date: payload$?.end_date,
|
|
66929
|
+
period: payload$?.period,
|
|
66045
66930
|
start_date: payload$?.start_date
|
|
66046
66931
|
});
|
|
66047
66932
|
const headers$ = new Headers(compactMap({
|
|
@@ -66106,12 +66991,12 @@ var init_visibilityPromptsRetrieve = __esm(() => {
|
|
|
66106
66991
|
});
|
|
66107
66992
|
|
|
66108
66993
|
// src/mcp-server/tools/visibilityPromptsRetrieve.ts
|
|
66109
|
-
var
|
|
66994
|
+
var args61, tool$visibilityPromptsRetrieve;
|
|
66110
66995
|
var init_visibilityPromptsRetrieve2 = __esm(() => {
|
|
66111
66996
|
init_visibilityPromptsRetrieve();
|
|
66112
66997
|
init_v2visibilitypromptsretrieveop();
|
|
66113
66998
|
init_tools();
|
|
66114
|
-
|
|
66999
|
+
args61 = {
|
|
66115
67000
|
request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
|
|
66116
67001
|
};
|
|
66117
67002
|
tool$visibilityPromptsRetrieve = {
|
|
@@ -66126,7 +67011,7 @@ Returns per-topic and per-prompt visibility metrics including recommendation sco
|
|
|
66126
67011
|
openWorldHint: false,
|
|
66127
67012
|
readOnlyHint: true
|
|
66128
67013
|
},
|
|
66129
|
-
args:
|
|
67014
|
+
args: args61,
|
|
66130
67015
|
tool: async (client, args, ctx) => {
|
|
66131
67016
|
const [result] = await visibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66132
67017
|
if (!result.ok) {
|
|
@@ -66150,7 +67035,7 @@ function createMCPServer(deps) {
|
|
|
66150
67035
|
sizes: ["any"]
|
|
66151
67036
|
}],
|
|
66152
67037
|
name: "LightsageMcp",
|
|
66153
|
-
version: "0.4.
|
|
67038
|
+
version: "0.4.19"
|
|
66154
67039
|
});
|
|
66155
67040
|
const getClient = deps.getSDK || (() => new LightsageMcpCore({
|
|
66156
67041
|
security: deps.security,
|
|
@@ -66175,12 +67060,15 @@ function createMCPServer(deps) {
|
|
|
66175
67060
|
tool(tool$visibilityOverviewRetrieve);
|
|
66176
67061
|
tool(tool$visibilityCitationsList);
|
|
66177
67062
|
tool(tool$visibilityPromptsRetrieve);
|
|
67063
|
+
tool(tool$visibilityCitationsSummaryRetrieve);
|
|
66178
67064
|
tool(tool$promptsList);
|
|
66179
67065
|
tool(tool$promptsCreate);
|
|
66180
67066
|
tool(tool$promptsTopicsList);
|
|
66181
67067
|
tool(tool$promptsTopicsCreate);
|
|
66182
67068
|
tool(tool$promptsTopicsUpdate);
|
|
66183
67069
|
tool(tool$promptsTopicsDelete);
|
|
67070
|
+
tool(tool$promptsTargetsList);
|
|
67071
|
+
tool(tool$promptsTargetsSet);
|
|
66184
67072
|
tool(tool$promptsRunsList);
|
|
66185
67073
|
tool(tool$promptsRunsRetrieve);
|
|
66186
67074
|
tool(tool$promptsRetrieve);
|
|
@@ -66188,6 +67076,7 @@ function createMCPServer(deps) {
|
|
|
66188
67076
|
tool(tool$promptsDelete);
|
|
66189
67077
|
tool(tool$promptsRun);
|
|
66190
67078
|
tool(tool$promptsRunStatus);
|
|
67079
|
+
tool(tool$promptsRunCancel);
|
|
66191
67080
|
tool(tool$opportunitiesList);
|
|
66192
67081
|
tool(tool$opportunitiesRetrieve);
|
|
66193
67082
|
tool(tool$tasksList);
|
|
@@ -66297,9 +67186,12 @@ var init_server3 = __esm(() => {
|
|
|
66297
67186
|
init_promptsList2();
|
|
66298
67187
|
init_promptsRetrieve2();
|
|
66299
67188
|
init_promptsRun2();
|
|
67189
|
+
init_promptsRunCancel2();
|
|
66300
67190
|
init_promptsRunsList2();
|
|
66301
67191
|
init_promptsRunsRetrieve2();
|
|
66302
67192
|
init_promptsRunStatus2();
|
|
67193
|
+
init_promptsTargetsList2();
|
|
67194
|
+
init_promptsTargetsSet2();
|
|
66303
67195
|
init_promptsTopicsCreate2();
|
|
66304
67196
|
init_promptsTopicsDelete2();
|
|
66305
67197
|
init_promptsTopicsList2();
|
|
@@ -66320,6 +67212,7 @@ var init_server3 = __esm(() => {
|
|
|
66320
67212
|
init_tasksRetrieve2();
|
|
66321
67213
|
init_tasksUpdate2();
|
|
66322
67214
|
init_visibilityCitationsList2();
|
|
67215
|
+
init_visibilityCitationsSummaryRetrieve2();
|
|
66323
67216
|
init_visibilityCurrentRetrieve2();
|
|
66324
67217
|
init_visibilityOverviewRetrieve2();
|
|
66325
67218
|
init_visibilityPromptsRetrieve2();
|
|
@@ -66341,19 +67234,19 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
|
|
|
66341
67234
|
},
|
|
66342
67235
|
{
|
|
66343
67236
|
name: "visibility-current-retrieve",
|
|
66344
|
-
description: "Retrieve Current Visibility\n\nReturns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company. Metrics are computed from active prompts only; when no data exists, values are `null`."
|
|
67237
|
+
description: "Retrieve Current Visibility\n\nReturns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company, with the same metrics for the previous period, run coverage, and per-run rates. Metrics are computed from active prompts only; when no data exists, values are `null`. Pass `period` (for example `last_30_days` or `2026Q4`) instead of computing dates."
|
|
66345
67238
|
},
|
|
66346
67239
|
{
|
|
66347
67240
|
name: "visibility-overview-retrieve",
|
|
66348
67241
|
description: `Retrieve Visibility Overview
|
|
66349
67242
|
|
|
66350
|
-
Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison. Calculated from active prompts only.`
|
|
67243
|
+
Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison, with run coverage and per-run rates against the previous period. Calculated from active prompts only.`
|
|
66351
67244
|
},
|
|
66352
67245
|
{
|
|
66353
67246
|
name: "visibility-citations-list",
|
|
66354
67247
|
description: `List Top Cited Urls
|
|
66355
67248
|
|
|
66356
|
-
Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources.`
|
|
67249
|
+
Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources. For totals by URL prefix, domain, or day compared with the previous period, use the citations summary.`
|
|
66357
67250
|
},
|
|
66358
67251
|
{
|
|
66359
67252
|
name: "visibility-prompts-retrieve",
|
|
@@ -66361,6 +67254,10 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
66361
67254
|
|
|
66362
67255
|
Returns per-topic and per-prompt visibility metrics including recommendation score, rank, visibility score, average position, and citation counts.`
|
|
66363
67256
|
},
|
|
67257
|
+
{
|
|
67258
|
+
name: "visibility-citations-summary-retrieve",
|
|
67259
|
+
description: "Retrieve Citation Summary\n\nReturns citation totals grouped by URL prefix (domain and first path segment, such as `example.com/blog`), URL, domain, or day, each compared with the previous period, with per-run rates and run coverage. Filter to one section of a site with `url_prefix`, for example `https://example.com/blog/`. Aggregated in one call; use it instead of paging the citations list."
|
|
67260
|
+
},
|
|
66364
67261
|
{
|
|
66365
67262
|
name: "prompts-list",
|
|
66366
67263
|
description: "List Prompts\n\nReturns active and inactive prompts by default. Set `include_archived` to include archived prompts."
|
|
@@ -66393,6 +67290,14 @@ Renames a prompt topic and returns the updated topic.`
|
|
|
66393
67290
|
name: "prompts-topics-delete",
|
|
66394
67291
|
description: "Delete Topic\n\nArchives a prompt topic. Set `archive_prompts` to archive remaining prompts; otherwise the request fails with `400` if prompts remain."
|
|
66395
67292
|
},
|
|
67293
|
+
{
|
|
67294
|
+
name: "prompts-targets-list",
|
|
67295
|
+
description: "List Targets\n\nReturns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic and frequency. Provide `topic_id` to list one topic's targets."
|
|
67296
|
+
},
|
|
67297
|
+
{
|
|
67298
|
+
name: "prompts-targets-set",
|
|
67299
|
+
description: "Set Targets\n\nSets which answer engines and coding agents run a topic's prompts on schedule, the same way the prompt editor does. The list replaces the topic's targets: targets you leave out stop running. Every prompt in the topic is set to exactly these platforms; you can still narrow one prompt afterwards with `platform_ids`. Name coding agents with IDs from `GET /v2/agents`, and list a harness more than once to run it on several models. To pick agents for a single run without changing the schedule, pass `agent` to `POST /v2/prompts/runs` instead."
|
|
67300
|
+
},
|
|
66396
67301
|
{
|
|
66397
67302
|
name: "prompts-runs-list",
|
|
66398
67303
|
description: `List Prompt Runs
|
|
@@ -66427,17 +67332,26 @@ Archives the prompt and excludes it from normal listings while preserving its hi
|
|
|
66427
67332
|
name: "prompts-run",
|
|
66428
67333
|
description: `Run Prompts
|
|
66429
67334
|
|
|
66430
|
-
Queue saved prompts
|
|
67335
|
+
Queue saved prompts on answer engines and coding agents.
|
|
66431
67336
|
|
|
66432
67337
|
Provide \`prompt_ids\` to run selected prompts, or omit them to run all active
|
|
66433
|
-
prompts.
|
|
66434
|
-
|
|
67338
|
+
prompts. By default the run uses the organization's configured targets,
|
|
67339
|
+
listed by \`GET /v2/prompts/targets\`.
|
|
67340
|
+
Provide \`agent\` with IDs from \`GET /v2/agents\` to run the prompts on
|
|
67341
|
+
specific coding-agent harnesses and models instead, for example to compare
|
|
67342
|
+
how several coding tools answer the same developer question. Results
|
|
67343
|
+
include mentions and citations. Saved prompt run settings apply to
|
|
67344
|
+
coding-agent targets. The response returns a run ID to poll with
|
|
66435
67345
|
\`GET /v2/prompts/runs/{run_id}/status\`.`
|
|
66436
67346
|
},
|
|
66437
67347
|
{
|
|
66438
67348
|
name: "prompts-run-status",
|
|
66439
67349
|
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`."
|
|
66440
67350
|
},
|
|
67351
|
+
{
|
|
67352
|
+
name: "prompts-run-cancel",
|
|
67353
|
+
description: "Cancel a prompt run\n\nMarks an active prompt run as cancelled and prevents queued prompts from starting. Running coding-agent attempts are stopped asynchronously. Requests already sent to an answer platform cannot be recalled, so prompts already in progress may still finish and store their results, but the run stays cancelled. Prompts that never start use no usage-based credits. The response has the same shape as the status operation, with cancelled prompts counted in `progress.cancelled`. Repeating this request for an already-cancelled run is safe."
|
|
67354
|
+
},
|
|
66441
67355
|
{
|
|
66442
67356
|
name: "opportunities-list",
|
|
66443
67357
|
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."
|
|
@@ -66486,9 +67400,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
66486
67400
|
},
|
|
66487
67401
|
{
|
|
66488
67402
|
name: "agent-analytics-summary-retrieve",
|
|
66489
|
-
description:
|
|
66490
|
-
|
|
66491
|
-
Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the same number of days before it.`
|
|
67403
|
+
description: "Retrieve Agent Analytics Summary\n\nReturns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the previous period (the same number of days before it, or the previous calendar week, month, or quarter for a named `period`)."
|
|
66492
67404
|
},
|
|
66493
67405
|
{
|
|
66494
67406
|
name: "agent-analytics-sources-list",
|
|
@@ -66514,7 +67426,7 @@ Returns a site's visits from coding agents and AI assistants per country in the
|
|
|
66514
67426
|
},
|
|
66515
67427
|
{
|
|
66516
67428
|
name: "evals-create",
|
|
66517
|
-
description: "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values."
|
|
67429
|
+
description: "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.\n\nEvals measure how well agents complete tasks with your product. To track how agents and answer engines answer research questions, including which brands they mention and cite, run prompts with `POST /v2/prompts/runs` instead."
|
|
66518
67430
|
},
|
|
66519
67431
|
{
|
|
66520
67432
|
name: "evals-batch-create",
|
|
@@ -66568,7 +67480,7 @@ Permanently deletes an eval configuration and returns its last saved state.`
|
|
|
66568
67480
|
},
|
|
66569
67481
|
{
|
|
66570
67482
|
name: "evals-run",
|
|
66571
|
-
description: "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.\n- **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.\n\nThe run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate `mode` field is required. If the organization lacks the estimated credits, the request fails with `402` before dispatching work.\n\nA saved or inline environment containing an empty or placeholder credential is rejected with `400` before any evaluation is dispatched."
|
|
67483
|
+
description: "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.\n\nEval runs measure how well agents complete tasks with your product. To compare how coding agents and answer engines answer the same research question, with mentions and citations, use `POST /v2/prompts/runs` with `agent` instead.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.\n- **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.\n\nThe run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate `mode` field is required. If the organization lacks the estimated credits, the request fails with `402` before dispatching work.\n\nA saved or inline environment containing an empty or placeholder credential is rejected with `400` before any evaluation is dispatched."
|
|
66572
67484
|
},
|
|
66573
67485
|
{
|
|
66574
67486
|
name: "evals-cancel",
|
|
@@ -66658,9 +67570,7 @@ Returns recorded attempts for an Agent Preference eval, newest first, each with
|
|
|
66658
67570
|
},
|
|
66659
67571
|
{
|
|
66660
67572
|
name: "agents-list",
|
|
66661
|
-
description:
|
|
66662
|
-
|
|
66663
|
-
Returns the harness-and-model combinations your plan can run, as single agent IDs for use in eval runs.`
|
|
67573
|
+
description: "List Agents\n\nReturns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as `agent` to `POST /v2/prompts/runs` to see how coding agents answer your prompts, with mentions and citations, or to `PUT /v2/prompts/targets` to run them on a schedule; to `POST /v2/agent-preference/evals` to see whether agents recommend your company over one competitor; or to `POST /v2/evals` and `POST /v2/eval-runs` to measure how well agents complete tasks with your product."
|
|
66664
67574
|
},
|
|
66665
67575
|
{
|
|
66666
67576
|
name: "repositories-list",
|
|
@@ -67620,7 +68530,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
67620
68530
|
<h1>Instructions</h1>
|
|
67621
68531
|
<p>One-click installation for Claude Desktop users</p>
|
|
67622
68532
|
<div class="instruction-item">
|
|
67623
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.
|
|
68533
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.19/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
67624
68534
|
\uD83D\uDCE5 Download MCP Bundle
|
|
67625
68535
|
</a>
|
|
67626
68536
|
</div>
|
|
@@ -70520,7 +71430,7 @@ var routes = buildRouteMap({
|
|
|
70520
71430
|
var app = buildApplication(routes, {
|
|
70521
71431
|
name: "mcp",
|
|
70522
71432
|
versionInfo: {
|
|
70523
|
-
currentVersion: "0.4.
|
|
71433
|
+
currentVersion: "0.4.19"
|
|
70524
71434
|
}
|
|
70525
71435
|
});
|
|
70526
71436
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -70528,5 +71438,5 @@ export {
|
|
|
70528
71438
|
app
|
|
70529
71439
|
};
|
|
70530
71440
|
|
|
70531
|
-
//# debugId=
|
|
71441
|
+
//# debugId=DC66C97A4F0231D164756E2164756E21
|
|
70532
71442
|
//# sourceMappingURL=mcp-server.js.map
|