@lightsage/mcp 0.4.27 → 0.4.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/mcp-server.js +2206 -185
- package/bin/mcp-server.js.map +70 -11
- package/esm/funcs/evalsRun.d.ts +1 -1
- package/esm/funcs/evalsRun.js +1 -1
- package/esm/funcs/libraryList.d.ts +16 -0
- package/esm/funcs/libraryList.d.ts.map +1 -0
- package/esm/funcs/libraryList.js +88 -0
- package/esm/funcs/libraryList.js.map +1 -0
- package/esm/funcs/libraryPagesCreate.d.ts +16 -0
- package/esm/funcs/libraryPagesCreate.d.ts.map +1 -0
- package/esm/funcs/libraryPagesCreate.js +83 -0
- package/esm/funcs/libraryPagesCreate.js.map +1 -0
- package/esm/funcs/libraryPagesGet.d.ts +16 -0
- package/esm/funcs/libraryPagesGet.d.ts.map +1 -0
- package/esm/funcs/libraryPagesGet.js +88 -0
- package/esm/funcs/libraryPagesGet.js.map +1 -0
- package/esm/funcs/libraryPagesInsights.d.ts +16 -0
- package/esm/funcs/libraryPagesInsights.d.ts.map +1 -0
- package/esm/funcs/libraryPagesInsights.js +92 -0
- package/esm/funcs/libraryPagesInsights.js.map +1 -0
- package/esm/funcs/libraryPagesList.d.ts +16 -0
- package/esm/funcs/libraryPagesList.d.ts.map +1 -0
- package/esm/funcs/libraryPagesList.js +88 -0
- package/esm/funcs/libraryPagesList.js.map +1 -0
- package/esm/funcs/libraryPagesUpdate.d.ts +16 -0
- package/esm/funcs/libraryPagesUpdate.d.ts.map +1 -0
- package/esm/funcs/libraryPagesUpdate.js +89 -0
- package/esm/funcs/libraryPagesUpdate.js.map +1 -0
- package/esm/funcs/libraryRedirectsCheck.d.ts +16 -0
- package/esm/funcs/libraryRedirectsCheck.d.ts.map +1 -0
- package/esm/funcs/libraryRedirectsCheck.js +87 -0
- package/esm/funcs/libraryRedirectsCheck.js.map +1 -0
- package/esm/funcs/libraryRedirectsCreate.d.ts +16 -0
- package/esm/funcs/libraryRedirectsCreate.d.ts.map +1 -0
- package/esm/funcs/libraryRedirectsCreate.js +83 -0
- package/esm/funcs/libraryRedirectsCreate.js.map +1 -0
- package/esm/funcs/libraryRedirectsGet.d.ts +16 -0
- package/esm/funcs/libraryRedirectsGet.d.ts.map +1 -0
- package/esm/funcs/libraryRedirectsGet.js +88 -0
- package/esm/funcs/libraryRedirectsGet.js.map +1 -0
- package/esm/funcs/libraryRedirectsInsights.d.ts +16 -0
- package/esm/funcs/libraryRedirectsInsights.d.ts.map +1 -0
- package/esm/funcs/libraryRedirectsInsights.js +88 -0
- package/esm/funcs/libraryRedirectsInsights.js.map +1 -0
- package/esm/funcs/libraryRedirectsList.d.ts +16 -0
- package/esm/funcs/libraryRedirectsList.d.ts.map +1 -0
- package/esm/funcs/libraryRedirectsList.js +87 -0
- package/esm/funcs/libraryRedirectsList.js.map +1 -0
- package/esm/funcs/libraryRedirectsUpdate.d.ts +16 -0
- package/esm/funcs/libraryRedirectsUpdate.d.ts.map +1 -0
- package/esm/funcs/libraryRedirectsUpdate.js +89 -0
- package/esm/funcs/libraryRedirectsUpdate.js.map +1 -0
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +25 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/evalsRun.js +1 -1
- package/esm/mcp-server/tools/libraryList.d.ts +7 -0
- package/esm/mcp-server/tools/libraryList.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryList.js +35 -0
- package/esm/mcp-server/tools/libraryList.js.map +1 -0
- package/esm/mcp-server/tools/libraryPagesCreate.d.ts +7 -0
- package/esm/mcp-server/tools/libraryPagesCreate.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryPagesCreate.js +35 -0
- package/esm/mcp-server/tools/libraryPagesCreate.js.map +1 -0
- package/esm/mcp-server/tools/libraryPagesGet.d.ts +7 -0
- package/esm/mcp-server/tools/libraryPagesGet.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryPagesGet.js +35 -0
- package/esm/mcp-server/tools/libraryPagesGet.js.map +1 -0
- package/esm/mcp-server/tools/libraryPagesInsights.d.ts +7 -0
- package/esm/mcp-server/tools/libraryPagesInsights.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryPagesInsights.js +35 -0
- package/esm/mcp-server/tools/libraryPagesInsights.js.map +1 -0
- package/esm/mcp-server/tools/libraryPagesList.d.ts +7 -0
- package/esm/mcp-server/tools/libraryPagesList.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryPagesList.js +35 -0
- package/esm/mcp-server/tools/libraryPagesList.js.map +1 -0
- package/esm/mcp-server/tools/libraryPagesUpdate.d.ts +7 -0
- package/esm/mcp-server/tools/libraryPagesUpdate.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryPagesUpdate.js +35 -0
- package/esm/mcp-server/tools/libraryPagesUpdate.js.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsCheck.d.ts +7 -0
- package/esm/mcp-server/tools/libraryRedirectsCheck.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsCheck.js +35 -0
- package/esm/mcp-server/tools/libraryRedirectsCheck.js.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsCreate.d.ts +7 -0
- package/esm/mcp-server/tools/libraryRedirectsCreate.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsCreate.js +35 -0
- package/esm/mcp-server/tools/libraryRedirectsCreate.js.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsGet.d.ts +7 -0
- package/esm/mcp-server/tools/libraryRedirectsGet.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsGet.js +35 -0
- package/esm/mcp-server/tools/libraryRedirectsGet.js.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsInsights.d.ts +7 -0
- package/esm/mcp-server/tools/libraryRedirectsInsights.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsInsights.js +35 -0
- package/esm/mcp-server/tools/libraryRedirectsInsights.js.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsList.d.ts +7 -0
- package/esm/mcp-server/tools/libraryRedirectsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsList.js +35 -0
- package/esm/mcp-server/tools/libraryRedirectsList.js.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsUpdate.d.ts +7 -0
- package/esm/mcp-server/tools/libraryRedirectsUpdate.d.ts.map +1 -0
- package/esm/mcp-server/tools/libraryRedirectsUpdate.js +35 -0
- package/esm/mcp-server/tools/libraryRedirectsUpdate.js.map +1 -0
- package/esm/models/createlibrarypagerequest.d.ts +9 -0
- package/esm/models/createlibrarypagerequest.d.ts.map +1 -0
- package/esm/models/createlibrarypagerequest.js +12 -0
- package/esm/models/createlibrarypagerequest.js.map +1 -0
- package/esm/models/createlibraryredirectrequest.d.ts +10 -0
- package/esm/models/createlibraryredirectrequest.d.ts.map +1 -0
- package/esm/models/createlibraryredirectrequest.js +13 -0
- package/esm/models/createlibraryredirectrequest.js.map +1 -0
- package/esm/models/createtaskrequest.d.ts +1 -1
- package/esm/models/createv2evalrunrequest.js +1 -1
- package/esm/models/createv2evalrunrequest.js.map +1 -1
- package/esm/models/libraryday.d.ts +10 -0
- package/esm/models/libraryday.d.ts.map +1 -0
- package/esm/models/libraryday.js +13 -0
- package/esm/models/libraryday.js.map +1 -0
- package/esm/models/libraryitem.d.ts +28 -0
- package/esm/models/libraryitem.d.ts.map +1 -0
- package/esm/models/libraryitem.js +26 -0
- package/esm/models/libraryitem.js.map +1 -0
- package/esm/models/libraryitemsresponse.d.ts +10 -0
- package/esm/models/libraryitemsresponse.d.ts.map +1 -0
- package/esm/models/libraryitemsresponse.js +14 -0
- package/esm/models/libraryitemsresponse.js.map +1 -0
- package/esm/models/librarymilestones.d.ts +12 -0
- package/esm/models/librarymilestones.d.ts.map +1 -0
- package/esm/models/librarymilestones.js +16 -0
- package/esm/models/librarymilestones.js.map +1 -0
- package/esm/models/librarypage.d.ts +29 -0
- package/esm/models/librarypage.d.ts.map +1 -0
- package/esm/models/librarypage.js +30 -0
- package/esm/models/librarypage.js.map +1 -0
- package/esm/models/librarypageinsights.d.ts +40 -0
- package/esm/models/librarypageinsights.d.ts.map +1 -0
- package/esm/models/librarypageinsights.js +42 -0
- package/esm/models/librarypageinsights.js.map +1 -0
- package/esm/models/librarypagesresponse.d.ts +10 -0
- package/esm/models/librarypagesresponse.d.ts.map +1 -0
- package/esm/models/librarypagesresponse.js +14 -0
- package/esm/models/librarypagesresponse.js.map +1 -0
- package/esm/models/libraryperiodtotals.d.ts +11 -0
- package/esm/models/libraryperiodtotals.d.ts.map +1 -0
- package/esm/models/libraryperiodtotals.js +15 -0
- package/esm/models/libraryperiodtotals.js.map +1 -0
- package/esm/models/libraryplatformcitations.d.ts +8 -0
- package/esm/models/libraryplatformcitations.d.ts.map +1 -0
- package/esm/models/libraryplatformcitations.js +11 -0
- package/esm/models/libraryplatformcitations.js.map +1 -0
- package/esm/models/libraryredirect.d.ts +13 -0
- package/esm/models/libraryredirect.d.ts.map +1 -0
- package/esm/models/libraryredirect.js +16 -0
- package/esm/models/libraryredirect.js.map +1 -0
- package/esm/models/libraryredirectcheck.d.ts +15 -0
- package/esm/models/libraryredirectcheck.d.ts.map +1 -0
- package/esm/models/libraryredirectcheck.js +16 -0
- package/esm/models/libraryredirectcheck.js.map +1 -0
- package/esm/models/libraryredirectcheckeval.d.ts +11 -0
- package/esm/models/libraryredirectcheckeval.d.ts.map +1 -0
- package/esm/models/libraryredirectcheckeval.js +11 -0
- package/esm/models/libraryredirectcheckeval.js.map +1 -0
- package/esm/models/libraryredirectcitations.d.ts +12 -0
- package/esm/models/libraryredirectcitations.d.ts.map +1 -0
- package/esm/models/libraryredirectcitations.js +12 -0
- package/esm/models/libraryredirectcitations.js.map +1 -0
- package/esm/models/libraryredirectday.d.ts +9 -0
- package/esm/models/libraryredirectday.d.ts.map +1 -0
- package/esm/models/libraryredirectday.js +13 -0
- package/esm/models/libraryredirectday.js.map +1 -0
- package/esm/models/libraryredirecteval.d.ts +22 -0
- package/esm/models/libraryredirecteval.d.ts.map +1 -0
- package/esm/models/libraryredirecteval.js +23 -0
- package/esm/models/libraryredirecteval.js.map +1 -0
- package/esm/models/libraryredirectinsights.d.ts +52 -0
- package/esm/models/libraryredirectinsights.d.ts.map +1 -0
- package/esm/models/libraryredirectinsights.js +50 -0
- package/esm/models/libraryredirectinsights.js.map +1 -0
- package/esm/models/libraryredirectnumbers.d.ts +12 -0
- package/esm/models/libraryredirectnumbers.d.ts.map +1 -0
- package/esm/models/libraryredirectnumbers.js +15 -0
- package/esm/models/libraryredirectnumbers.js.map +1 -0
- package/esm/models/libraryredirectrequest.d.ts +9 -0
- package/esm/models/libraryredirectrequest.d.ts.map +1 -0
- package/esm/models/libraryredirectrequest.js +12 -0
- package/esm/models/libraryredirectrequest.js.map +1 -0
- package/esm/models/libraryredirectsresponse.d.ts +10 -0
- package/esm/models/libraryredirectsresponse.d.ts.map +1 -0
- package/esm/models/libraryredirectsresponse.js +13 -0
- package/esm/models/libraryredirectsresponse.js.map +1 -0
- package/esm/models/libraryredirectsummary.d.ts +40 -0
- package/esm/models/libraryredirectsummary.d.ts.map +1 -0
- package/esm/models/libraryredirectsummary.js +35 -0
- package/esm/models/libraryredirectsummary.js.map +1 -0
- package/esm/models/librarytracking.d.ts +14 -0
- package/esm/models/librarytracking.d.ts.map +1 -0
- package/esm/models/librarytracking.js +14 -0
- package/esm/models/librarytracking.js.map +1 -0
- package/esm/models/updatelibrarypagerequest.d.ts +7 -0
- package/esm/models/updatelibrarypagerequest.d.ts.map +1 -0
- package/esm/models/updatelibrarypagerequest.js +10 -0
- package/esm/models/updatelibrarypagerequest.js.map +1 -0
- package/esm/models/updatelibraryredirectrequest.d.ts +7 -0
- package/esm/models/updatelibraryredirectrequest.d.ts.map +1 -0
- package/esm/models/updatelibraryredirectrequest.js +10 -0
- package/esm/models/updatelibraryredirectrequest.js.map +1 -0
- package/esm/models/v2librarylistop.d.ts +28 -0
- package/esm/models/v2librarylistop.d.ts.map +1 -0
- package/esm/models/v2librarylistop.js +29 -0
- package/esm/models/v2librarylistop.js.map +1 -0
- package/esm/models/v2librarypagescreateop.d.ts +6 -0
- package/esm/models/v2librarypagescreateop.d.ts.map +1 -0
- package/esm/models/v2librarypagescreateop.js +12 -0
- package/esm/models/v2librarypagescreateop.js.map +1 -0
- package/esm/models/v2librarypagesinsightsop.d.ts +11 -0
- package/esm/models/v2librarypagesinsightsop.d.ts.map +1 -0
- package/esm/models/v2librarypagesinsightsop.js +16 -0
- package/esm/models/v2librarypagesinsightsop.js.map +1 -0
- package/esm/models/v2librarypageslistop.d.ts +12 -0
- package/esm/models/v2librarypageslistop.d.ts.map +1 -0
- package/esm/models/v2librarypageslistop.js +18 -0
- package/esm/models/v2librarypageslistop.js.map +1 -0
- package/esm/models/v2librarypagesretrieveop.d.ts +10 -0
- package/esm/models/v2librarypagesretrieveop.d.ts.map +1 -0
- package/esm/models/v2librarypagesretrieveop.js +15 -0
- package/esm/models/v2librarypagesretrieveop.js.map +1 -0
- package/esm/models/v2librarypagesupdateop.d.ts +12 -0
- package/esm/models/v2librarypagesupdateop.d.ts.map +1 -0
- package/esm/models/v2librarypagesupdateop.js +17 -0
- package/esm/models/v2librarypagesupdateop.js.map +1 -0
- package/esm/models/v2libraryredirectscheckop.d.ts +11 -0
- package/esm/models/v2libraryredirectscheckop.d.ts.map +1 -0
- package/esm/models/v2libraryredirectscheckop.js +16 -0
- package/esm/models/v2libraryredirectscheckop.js.map +1 -0
- package/esm/models/v2libraryredirectscreateop.d.ts +6 -0
- package/esm/models/v2libraryredirectscreateop.d.ts.map +1 -0
- package/esm/models/v2libraryredirectscreateop.js +12 -0
- package/esm/models/v2libraryredirectscreateop.js.map +1 -0
- package/esm/models/v2libraryredirectsinsightsop.d.ts +10 -0
- package/esm/models/v2libraryredirectsinsightsop.d.ts.map +1 -0
- package/esm/models/v2libraryredirectsinsightsop.js +15 -0
- package/esm/models/v2libraryredirectsinsightsop.js.map +1 -0
- package/esm/models/v2libraryredirectslistop.d.ts +11 -0
- package/esm/models/v2libraryredirectslistop.d.ts.map +1 -0
- package/esm/models/v2libraryredirectslistop.js +16 -0
- package/esm/models/v2libraryredirectslistop.js.map +1 -0
- package/esm/models/v2libraryredirectsretrieveop.d.ts +10 -0
- package/esm/models/v2libraryredirectsretrieveop.d.ts.map +1 -0
- package/esm/models/v2libraryredirectsretrieveop.js +15 -0
- package/esm/models/v2libraryredirectsretrieveop.js.map +1 -0
- package/esm/models/v2libraryredirectsupdateop.d.ts +12 -0
- package/esm/models/v2libraryredirectsupdateop.d.ts.map +1 -0
- package/esm/models/v2libraryredirectsupdateop.js +17 -0
- package/esm/models/v2libraryredirectsupdateop.js.map +1 -0
- package/esm/models/v2listtasksresponse.d.ts +1 -1
- package/esm/models/v2opportunitieslistop.d.ts +1 -1
- package/esm/models/v2taskslistop.d.ts +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +49 -1
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/evalsRun.ts +1 -1
- package/src/funcs/libraryList.ts +150 -0
- package/src/funcs/libraryPagesCreate.ts +145 -0
- package/src/funcs/libraryPagesGet.ts +153 -0
- package/src/funcs/libraryPagesInsights.ts +157 -0
- package/src/funcs/libraryPagesList.ts +150 -0
- package/src/funcs/libraryPagesUpdate.ts +154 -0
- package/src/funcs/libraryRedirectsCheck.ts +149 -0
- package/src/funcs/libraryRedirectsCreate.ts +145 -0
- package/src/funcs/libraryRedirectsGet.ts +153 -0
- package/src/funcs/libraryRedirectsInsights.ts +153 -0
- package/src/funcs/libraryRedirectsList.ts +150 -0
- package/src/funcs/libraryRedirectsUpdate.ts +154 -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 +25 -1
- package/src/mcp-server/tools/evalsRun.ts +1 -1
- package/src/mcp-server/tools/libraryList.ts +43 -0
- package/src/mcp-server/tools/libraryPagesCreate.ts +43 -0
- package/src/mcp-server/tools/libraryPagesGet.ts +43 -0
- package/src/mcp-server/tools/libraryPagesInsights.ts +43 -0
- package/src/mcp-server/tools/libraryPagesList.ts +43 -0
- package/src/mcp-server/tools/libraryPagesUpdate.ts +43 -0
- package/src/mcp-server/tools/libraryRedirectsCheck.ts +43 -0
- package/src/mcp-server/tools/libraryRedirectsCreate.ts +43 -0
- package/src/mcp-server/tools/libraryRedirectsGet.ts +43 -0
- package/src/mcp-server/tools/libraryRedirectsInsights.ts +43 -0
- package/src/mcp-server/tools/libraryRedirectsList.ts +43 -0
- package/src/mcp-server/tools/libraryRedirectsUpdate.ts +43 -0
- package/src/models/createlibrarypagerequest.ts +30 -0
- package/src/models/createlibraryredirectrequest.ts +32 -0
- package/src/models/createv2evalrunrequest.ts +1 -1
- package/src/models/libraryday.ts +28 -0
- package/src/models/libraryitem.ts +55 -0
- package/src/models/libraryitemsresponse.ts +22 -0
- package/src/models/librarymilestones.ts +33 -0
- package/src/models/librarypage.ts +64 -0
- package/src/models/librarypageinsights.ts +74 -0
- package/src/models/librarypagesresponse.ts +22 -0
- package/src/models/libraryperiodtotals.ts +27 -0
- package/src/models/libraryplatformcitations.ts +20 -0
- package/src/models/libraryredirect.ts +32 -0
- package/src/models/libraryredirectcheck.ts +38 -0
- package/src/models/libraryredirectcheckeval.ts +25 -0
- package/src/models/libraryredirectcitations.ts +29 -0
- package/src/models/libraryredirectday.ts +23 -0
- package/src/models/libraryredirecteval.ts +46 -0
- package/src/models/libraryredirectinsights.ts +122 -0
- package/src/models/libraryredirectnumbers.ts +36 -0
- package/src/models/libraryredirectrequest.ts +22 -0
- package/src/models/libraryredirectsresponse.ts +26 -0
- package/src/models/libraryredirectsummary.ts +77 -0
- package/src/models/librarytracking.ts +39 -0
- package/src/models/updatelibrarypagerequest.ts +18 -0
- package/src/models/updatelibraryredirectrequest.ts +18 -0
- package/src/models/v2librarylistop.ts +55 -0
- package/src/models/v2librarypagescreateop.ts +20 -0
- package/src/models/v2librarypagesinsightsop.ts +37 -0
- package/src/models/v2librarypageslistop.ts +40 -0
- package/src/models/v2librarypagesretrieveop.ts +28 -0
- package/src/models/v2librarypagesupdateop.ts +36 -0
- package/src/models/v2libraryredirectscheckop.ts +39 -0
- package/src/models/v2libraryredirectscreateop.ts +25 -0
- package/src/models/v2libraryredirectsinsightsop.ts +33 -0
- package/src/models/v2libraryredirectslistop.ts +37 -0
- package/src/models/v2libraryredirectsretrieveop.ts +33 -0
- package/src/models/v2libraryredirectsupdateop.ts +41 -0
- package/src/tool-names.ts +49 -1
package/bin/mcp-server.js
CHANGED
|
@@ -54771,9 +54771,9 @@ var init_config = __esm(() => {
|
|
|
54771
54771
|
SDK_METADATA = {
|
|
54772
54772
|
language: "typescript",
|
|
54773
54773
|
openapiDocVersion: "1.0.0",
|
|
54774
|
-
sdkVersion: "0.4.
|
|
54774
|
+
sdkVersion: "0.4.28",
|
|
54775
54775
|
genVersion: "2.948.4",
|
|
54776
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
54776
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.28 2.948.4 1.0.0 @lightsage/mcp"
|
|
54777
54777
|
};
|
|
54778
54778
|
});
|
|
54779
54779
|
|
|
@@ -60816,7 +60816,7 @@ var init_createv2evalrunrequest = __esm(() => {
|
|
|
60816
60816
|
name: string2().optional().describe("Direct create-and-run form only. Display name for the durable eval. Defaults to the first prompt."),
|
|
60817
60817
|
persona: string2().optional().describe("Optional perspective for every attempt in this launch. It does not modify prompts or add a fan-out dimension."),
|
|
60818
60818
|
prompts: array(string2()).nullable().optional().describe("Task prompts. Required in direct mode; in saved mode, replaces saved prompts for this launch. CLI clients expose repeatable `--prompt`."),
|
|
60819
|
-
repository: string2().optional().describe("
|
|
60819
|
+
repository: string2().optional().describe("Repository the run starts from: a saved repository ID, built-in alias such as `nextjs-starter`, or a public GitHub HTTPS URL. With `eval_id` it applies to this run only, over the configuration's repository; the eval keeps its saved repository."),
|
|
60820
60820
|
runs: int().optional().describe("Independent attempts for every prompt-agent pair. Defaults to the saved eval value or 1 for a direct run."),
|
|
60821
60821
|
search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Web-retrieval policy for this launch. Overrides the selected configuration or saved eval when provided; direct runs default to `default`."),
|
|
60822
60822
|
setup_commands: array(string2()).nullable().optional().describe("Shell commands run sequentially in the prepared repository before the agent starts. In saved mode, an explicit empty array disables saved setup commands for this launch. CLI clients expose repeatable `--setup-command`."),
|
|
@@ -60918,7 +60918,7 @@ Eval runs measure how well agents complete tasks with your product. To compare h
|
|
|
60918
60918
|
|
|
60919
60919
|
Send one of these flat request forms:
|
|
60920
60920
|
|
|
60921
|
-
- **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.
|
|
60921
|
+
- **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, starting \`repository\`, or runs for this launch only; the saved eval is not changed. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
|
|
60922
60922
|
- **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.
|
|
60923
60923
|
|
|
60924
60924
|
The 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.
|
|
@@ -62111,11 +62111,1940 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
|
|
|
62111
62111
|
};
|
|
62112
62112
|
});
|
|
62113
62113
|
|
|
62114
|
+
// src/models/libraryitem.ts
|
|
62115
|
+
var LibraryItemType$zodSchema, LibraryItem$zodSchema;
|
|
62116
|
+
var init_libraryitem = __esm(() => {
|
|
62117
|
+
init_zod();
|
|
62118
|
+
LibraryItemType$zodSchema = _enum([
|
|
62119
|
+
"page",
|
|
62120
|
+
"redirect"
|
|
62121
|
+
]);
|
|
62122
|
+
LibraryItem$zodSchema = object({
|
|
62123
|
+
added_at: string2().nullable().optional(),
|
|
62124
|
+
href: string2().describe("The item's own resource, for its detail and insights."),
|
|
62125
|
+
id: string2(),
|
|
62126
|
+
status: string2().describe("A page's `published` or `in_review`, or a redirect's `working`, `not_working`, `checking` or `cant_check`."),
|
|
62127
|
+
summary: string2().describe("One line on how it is doing."),
|
|
62128
|
+
title: string2(),
|
|
62129
|
+
to_url: string2().nullable().optional().describe("Where a redirect sends its old address. Null for a page."),
|
|
62130
|
+
type: LibraryItemType$zodSchema,
|
|
62131
|
+
updated_at: string2().nullable().optional(),
|
|
62132
|
+
url: string2().nullable().optional().describe("The page's address, or a redirect's old address.")
|
|
62133
|
+
}).describe("A page or a redirect, as the combined Library list shows it.");
|
|
62134
|
+
});
|
|
62135
|
+
|
|
62136
|
+
// src/models/libraryitemsresponse.ts
|
|
62137
|
+
var LibraryItemsResponse$zodSchema;
|
|
62138
|
+
var init_libraryitemsresponse = __esm(() => {
|
|
62139
|
+
init_zod();
|
|
62140
|
+
init_libraryitem();
|
|
62141
|
+
LibraryItemsResponse$zodSchema = object({
|
|
62142
|
+
data: array(LibraryItem$zodSchema),
|
|
62143
|
+
limit: int(),
|
|
62144
|
+
offset: int(),
|
|
62145
|
+
total: int()
|
|
62146
|
+
});
|
|
62147
|
+
});
|
|
62148
|
+
|
|
62149
|
+
// src/models/v2librarylistop.ts
|
|
62150
|
+
var V2LibraryListType$zodSchema, V2LibraryListRequest$zodSchema, V2LibraryListResponse$zodSchema;
|
|
62151
|
+
var init_v2librarylistop = __esm(() => {
|
|
62152
|
+
init_zod();
|
|
62153
|
+
init_httpvalidationerror();
|
|
62154
|
+
init_libraryitemsresponse();
|
|
62155
|
+
V2LibraryListType$zodSchema = _enum([
|
|
62156
|
+
"page",
|
|
62157
|
+
"redirect"
|
|
62158
|
+
]).describe("Only `page` or only `redirect` items.");
|
|
62159
|
+
V2LibraryListRequest$zodSchema = object({
|
|
62160
|
+
limit: int().default(20),
|
|
62161
|
+
offset: int().default(0),
|
|
62162
|
+
type: V2LibraryListType$zodSchema.optional().describe("Only `page` or only `redirect` items.")
|
|
62163
|
+
});
|
|
62164
|
+
V2LibraryListResponse$zodSchema = union([
|
|
62165
|
+
LibraryItemsResponse$zodSchema,
|
|
62166
|
+
HTTPValidationError$zodSchema
|
|
62167
|
+
]);
|
|
62168
|
+
});
|
|
62169
|
+
|
|
62170
|
+
// src/funcs/libraryList.ts
|
|
62171
|
+
function libraryList(client$, request, options) {
|
|
62172
|
+
return new APIPromise($do39(client$, request, options));
|
|
62173
|
+
}
|
|
62174
|
+
async function $do39(client$, request, options) {
|
|
62175
|
+
const parsed$ = safeParse4(request, (value$) => V2LibraryListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62176
|
+
if (!parsed$.ok) {
|
|
62177
|
+
return [parsed$, { status: "invalid" }];
|
|
62178
|
+
}
|
|
62179
|
+
const payload$ = parsed$.value;
|
|
62180
|
+
const body$ = null;
|
|
62181
|
+
const path$ = pathToFunc("/v2/library")();
|
|
62182
|
+
const query$ = encodeFormQuery({
|
|
62183
|
+
limit: payload$?.limit,
|
|
62184
|
+
offset: payload$?.offset,
|
|
62185
|
+
type: payload$?.type
|
|
62186
|
+
});
|
|
62187
|
+
const headers$ = new Headers(compactMap({
|
|
62188
|
+
Accept: "application/json"
|
|
62189
|
+
}));
|
|
62190
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
62191
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
62192
|
+
const context = {
|
|
62193
|
+
options: client$._options,
|
|
62194
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
62195
|
+
operationID: "v2_library_list",
|
|
62196
|
+
oAuth2Scopes: null,
|
|
62197
|
+
resolvedSecurity: requestSecurity,
|
|
62198
|
+
securitySource: client$._options.security,
|
|
62199
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
62200
|
+
retryCodes: options?.retryCodes || [
|
|
62201
|
+
"429",
|
|
62202
|
+
"500",
|
|
62203
|
+
"502",
|
|
62204
|
+
"503",
|
|
62205
|
+
"504"
|
|
62206
|
+
]
|
|
62207
|
+
};
|
|
62208
|
+
const requestRes = client$._createRequest(context, {
|
|
62209
|
+
security: requestSecurity,
|
|
62210
|
+
method: "GET",
|
|
62211
|
+
baseURL: options?.serverURL,
|
|
62212
|
+
path: path$,
|
|
62213
|
+
headers: headers$,
|
|
62214
|
+
query: query$,
|
|
62215
|
+
body: body$,
|
|
62216
|
+
userAgent: client$._options.userAgent,
|
|
62217
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
62218
|
+
}, options);
|
|
62219
|
+
if (!requestRes.ok) {
|
|
62220
|
+
return [requestRes, { status: "invalid" }];
|
|
62221
|
+
}
|
|
62222
|
+
const req$ = requestRes.value;
|
|
62223
|
+
const doResult = await client$._do(req$, {
|
|
62224
|
+
context,
|
|
62225
|
+
errorCodes: [],
|
|
62226
|
+
retryConfig: context.retryConfig,
|
|
62227
|
+
retryCodes: context.retryCodes
|
|
62228
|
+
});
|
|
62229
|
+
if (!doResult.ok) {
|
|
62230
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
62231
|
+
}
|
|
62232
|
+
return [doResult, {
|
|
62233
|
+
status: "complete",
|
|
62234
|
+
request: req$,
|
|
62235
|
+
response: doResult.value
|
|
62236
|
+
}];
|
|
62237
|
+
}
|
|
62238
|
+
var init_libraryList = __esm(() => {
|
|
62239
|
+
init_encodings();
|
|
62240
|
+
init_primitives();
|
|
62241
|
+
init_schemas4();
|
|
62242
|
+
init_security();
|
|
62243
|
+
init_url();
|
|
62244
|
+
init_v2librarylistop();
|
|
62245
|
+
init_async();
|
|
62246
|
+
});
|
|
62247
|
+
|
|
62248
|
+
// src/mcp-server/tools/libraryList.ts
|
|
62249
|
+
var args31, tool$libraryList;
|
|
62250
|
+
var init_libraryList2 = __esm(() => {
|
|
62251
|
+
init_libraryList();
|
|
62252
|
+
init_v2librarylistop();
|
|
62253
|
+
init_tools();
|
|
62254
|
+
args31 = {
|
|
62255
|
+
request: V2LibraryListRequest$zodSchema.optional()
|
|
62256
|
+
};
|
|
62257
|
+
tool$libraryList = {
|
|
62258
|
+
name: "library-list",
|
|
62259
|
+
description: `List Library
|
|
62260
|
+
|
|
62261
|
+
Returns the Library's pages and redirects together, most recently updated first, each with a one-line summary and \`href\`, the path of its own resource. Read only: add, change and read the detail of pages under \`/v2/library/pages\` and redirects under \`/v2/library/redirects\`. This combined list reaches the 1,000 most recently updated items (\`offset\` up to 900, \`limit\` up to 100); \`total\` counts all of them. Page past that with \`/v2/library/pages\` and \`/v2/library/redirects\`, which have no ceiling.`,
|
|
62262
|
+
annotations: {
|
|
62263
|
+
title: "",
|
|
62264
|
+
destructiveHint: false,
|
|
62265
|
+
idempotentHint: false,
|
|
62266
|
+
openWorldHint: false,
|
|
62267
|
+
readOnlyHint: true
|
|
62268
|
+
},
|
|
62269
|
+
args: args31,
|
|
62270
|
+
tool: async (client, args, ctx) => {
|
|
62271
|
+
const [result] = await libraryList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62272
|
+
if (!result.ok) {
|
|
62273
|
+
return {
|
|
62274
|
+
content: [{ type: "text", text: result.error.message }],
|
|
62275
|
+
isError: true
|
|
62276
|
+
};
|
|
62277
|
+
}
|
|
62278
|
+
return formatResult(result.value);
|
|
62279
|
+
}
|
|
62280
|
+
};
|
|
62281
|
+
});
|
|
62282
|
+
|
|
62283
|
+
// src/models/createlibrarypagerequest.ts
|
|
62284
|
+
var CreateLibraryPageRequest$zodSchema;
|
|
62285
|
+
var init_createlibrarypagerequest = __esm(() => {
|
|
62286
|
+
init_zod();
|
|
62287
|
+
CreateLibraryPageRequest$zodSchema = object({
|
|
62288
|
+
published_on: string2().date().optional().describe("Day it went live. Defaults to today."),
|
|
62289
|
+
task_id: string2().optional().describe("Task this page completes, from `GET /v2/tasks`."),
|
|
62290
|
+
title: string2().optional().describe("Defaults to a title read from the address."),
|
|
62291
|
+
url: string2().describe("Full `https://` address. The page must already be live.")
|
|
62292
|
+
});
|
|
62293
|
+
});
|
|
62294
|
+
|
|
62295
|
+
// src/funcs/libraryPagesCreate.ts
|
|
62296
|
+
function libraryPagesCreate(client$, request, options) {
|
|
62297
|
+
return new APIPromise($do40(client$, request, options));
|
|
62298
|
+
}
|
|
62299
|
+
async function $do40(client$, request, options) {
|
|
62300
|
+
const parsed$ = safeParse4(request, (value$) => CreateLibraryPageRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62301
|
+
if (!parsed$.ok) {
|
|
62302
|
+
return [parsed$, { status: "invalid" }];
|
|
62303
|
+
}
|
|
62304
|
+
const payload$ = parsed$.value;
|
|
62305
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
62306
|
+
const path$ = pathToFunc("/v2/library/pages")();
|
|
62307
|
+
const headers$ = new Headers(compactMap({
|
|
62308
|
+
"Content-Type": "application/json",
|
|
62309
|
+
Accept: "application/json"
|
|
62310
|
+
}));
|
|
62311
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
62312
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
62313
|
+
const context = {
|
|
62314
|
+
options: client$._options,
|
|
62315
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
62316
|
+
operationID: "v2_library_pages_create",
|
|
62317
|
+
oAuth2Scopes: null,
|
|
62318
|
+
resolvedSecurity: requestSecurity,
|
|
62319
|
+
securitySource: client$._options.security,
|
|
62320
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
62321
|
+
retryCodes: options?.retryCodes || [
|
|
62322
|
+
"429",
|
|
62323
|
+
"500",
|
|
62324
|
+
"502",
|
|
62325
|
+
"503",
|
|
62326
|
+
"504"
|
|
62327
|
+
]
|
|
62328
|
+
};
|
|
62329
|
+
const requestRes = client$._createRequest(context, {
|
|
62330
|
+
security: requestSecurity,
|
|
62331
|
+
method: "POST",
|
|
62332
|
+
baseURL: options?.serverURL,
|
|
62333
|
+
path: path$,
|
|
62334
|
+
headers: headers$,
|
|
62335
|
+
body: body$,
|
|
62336
|
+
userAgent: client$._options.userAgent,
|
|
62337
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
62338
|
+
}, options);
|
|
62339
|
+
if (!requestRes.ok) {
|
|
62340
|
+
return [requestRes, { status: "invalid" }];
|
|
62341
|
+
}
|
|
62342
|
+
const req$ = requestRes.value;
|
|
62343
|
+
const doResult = await client$._do(req$, {
|
|
62344
|
+
context,
|
|
62345
|
+
errorCodes: [],
|
|
62346
|
+
retryConfig: context.retryConfig,
|
|
62347
|
+
retryCodes: context.retryCodes
|
|
62348
|
+
});
|
|
62349
|
+
if (!doResult.ok) {
|
|
62350
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
62351
|
+
}
|
|
62352
|
+
return [doResult, {
|
|
62353
|
+
status: "complete",
|
|
62354
|
+
request: req$,
|
|
62355
|
+
response: doResult.value
|
|
62356
|
+
}];
|
|
62357
|
+
}
|
|
62358
|
+
var init_libraryPagesCreate = __esm(() => {
|
|
62359
|
+
init_encodings();
|
|
62360
|
+
init_primitives();
|
|
62361
|
+
init_schemas4();
|
|
62362
|
+
init_security();
|
|
62363
|
+
init_url();
|
|
62364
|
+
init_createlibrarypagerequest();
|
|
62365
|
+
init_async();
|
|
62366
|
+
});
|
|
62367
|
+
|
|
62368
|
+
// src/mcp-server/tools/libraryPagesCreate.ts
|
|
62369
|
+
var args32, tool$libraryPagesCreate;
|
|
62370
|
+
var init_libraryPagesCreate2 = __esm(() => {
|
|
62371
|
+
init_libraryPagesCreate();
|
|
62372
|
+
init_createlibrarypagerequest();
|
|
62373
|
+
init_tools();
|
|
62374
|
+
args32 = {
|
|
62375
|
+
request: CreateLibraryPageRequest$zodSchema
|
|
62376
|
+
};
|
|
62377
|
+
tool$libraryPagesCreate = {
|
|
62378
|
+
name: "library-pages-create",
|
|
62379
|
+
description: `Create Page
|
|
62380
|
+
|
|
62381
|
+
Adds a live page to the Library to track its citations and agent visits. Tracking fills in within a few minutes.`,
|
|
62382
|
+
annotations: {
|
|
62383
|
+
title: "",
|
|
62384
|
+
destructiveHint: false,
|
|
62385
|
+
idempotentHint: false,
|
|
62386
|
+
openWorldHint: false,
|
|
62387
|
+
readOnlyHint: false
|
|
62388
|
+
},
|
|
62389
|
+
args: args32,
|
|
62390
|
+
tool: async (client, args, ctx) => {
|
|
62391
|
+
const [result] = await libraryPagesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62392
|
+
if (!result.ok) {
|
|
62393
|
+
return {
|
|
62394
|
+
content: [{ type: "text", text: result.error.message }],
|
|
62395
|
+
isError: true
|
|
62396
|
+
};
|
|
62397
|
+
}
|
|
62398
|
+
return formatResult(result.value);
|
|
62399
|
+
}
|
|
62400
|
+
};
|
|
62401
|
+
});
|
|
62402
|
+
|
|
62403
|
+
// src/models/librarymilestones.ts
|
|
62404
|
+
var LibraryMilestones$zodSchema;
|
|
62405
|
+
var init_librarymilestones = __esm(() => {
|
|
62406
|
+
init_zod();
|
|
62407
|
+
LibraryMilestones$zodSchema = object({
|
|
62408
|
+
days_to_citation: int().nullable().optional().describe("Days from publishing to the first citation, when it came on or after the publish day."),
|
|
62409
|
+
first_agent_visit_on: string2().date().nullable().optional(),
|
|
62410
|
+
first_citation_is_baseline: boolean2().default(false).describe("True when the first citing prompt had not run before that day, so the page may have been cited earlier."),
|
|
62411
|
+
first_cited_on: string2().date().nullable().optional().describe("First day an AI answer was seen citing the page."),
|
|
62412
|
+
first_cited_platform: string2().nullable().optional(),
|
|
62413
|
+
first_cited_prompt: string2().nullable().optional(),
|
|
62414
|
+
published_on: string2().date().nullable().optional()
|
|
62415
|
+
});
|
|
62416
|
+
});
|
|
62417
|
+
|
|
62418
|
+
// src/models/librarytracking.ts
|
|
62419
|
+
var LibraryTracking$zodSchema;
|
|
62420
|
+
var init_librarytracking = __esm(() => {
|
|
62421
|
+
init_zod();
|
|
62422
|
+
LibraryTracking$zodSchema = object({
|
|
62423
|
+
agent_visits_30d: int().nullable().optional().describe("AI agent visits in the last 30 days. Null for a page outside your tracked sites."),
|
|
62424
|
+
citations_30d: int().describe("AI answer citations of the address in the last 30 days."),
|
|
62425
|
+
citations_change_30d: int().nullable().optional().describe("Change against the 30 days before. Null when there is nothing to compare."),
|
|
62426
|
+
cited_prompts_30d: int().describe("Tracked prompts whose answers cited the address in the last 30 days."),
|
|
62427
|
+
is_cited: boolean2(),
|
|
62428
|
+
platforms: array(string2()).optional().describe("AI platforms that cited the address.")
|
|
62429
|
+
}).describe("Citations and agent visits over the last 30 days, against the 30 days before.");
|
|
62430
|
+
});
|
|
62431
|
+
|
|
62432
|
+
// src/models/librarypage.ts
|
|
62433
|
+
var LibraryPageStatus$zodSchema, LibraryPage$zodSchema;
|
|
62434
|
+
var init_librarypage = __esm(() => {
|
|
62435
|
+
init_zod();
|
|
62436
|
+
init_librarymilestones();
|
|
62437
|
+
init_librarytracking();
|
|
62438
|
+
LibraryPageStatus$zodSchema = _enum([
|
|
62439
|
+
"published",
|
|
62440
|
+
"in_review"
|
|
62441
|
+
]);
|
|
62442
|
+
LibraryPage$zodSchema = object({
|
|
62443
|
+
added_at: string2().nullable().optional(),
|
|
62444
|
+
channel: string2().describe("Where it was posted: `website`, `linkedin`, `medium`, `reddit` and so on."),
|
|
62445
|
+
id: string2().describe("Library page ID."),
|
|
62446
|
+
milestones: LibraryMilestones$zodSchema.nullable().optional(),
|
|
62447
|
+
provider: string2().nullable().optional().describe("How it was delivered: `manual`, `github`, `sanity`, `wordpress` and so on."),
|
|
62448
|
+
published_at: string2().nullable().optional(),
|
|
62449
|
+
status: LibraryPageStatus$zodSchema,
|
|
62450
|
+
task_id: string2().nullable().optional(),
|
|
62451
|
+
title: string2(),
|
|
62452
|
+
tracking: LibraryTracking$zodSchema.nullable().optional().describe("Null until the page is live at a public address."),
|
|
62453
|
+
updated_at: string2().nullable().optional(),
|
|
62454
|
+
url: string2().nullable().optional().describe("Where the page is live, or where it is expected to go live while in review.")
|
|
62455
|
+
});
|
|
62456
|
+
});
|
|
62457
|
+
|
|
62458
|
+
// src/models/v2librarypagesretrieveop.ts
|
|
62459
|
+
var V2LibraryPagesRetrieveRequest$zodSchema, V2LibraryPagesRetrieveResponse$zodSchema;
|
|
62460
|
+
var init_v2librarypagesretrieveop = __esm(() => {
|
|
62461
|
+
init_zod();
|
|
62462
|
+
init_httpvalidationerror();
|
|
62463
|
+
init_librarypage();
|
|
62464
|
+
V2LibraryPagesRetrieveRequest$zodSchema = object({
|
|
62465
|
+
page_id: string2()
|
|
62466
|
+
});
|
|
62467
|
+
V2LibraryPagesRetrieveResponse$zodSchema = union([
|
|
62468
|
+
LibraryPage$zodSchema,
|
|
62469
|
+
HTTPValidationError$zodSchema
|
|
62470
|
+
]);
|
|
62471
|
+
});
|
|
62472
|
+
|
|
62473
|
+
// src/funcs/libraryPagesGet.ts
|
|
62474
|
+
function libraryPagesGet(client$, request, options) {
|
|
62475
|
+
return new APIPromise($do41(client$, request, options));
|
|
62476
|
+
}
|
|
62477
|
+
async function $do41(client$, request, options) {
|
|
62478
|
+
const parsed$ = safeParse4(request, (value$) => V2LibraryPagesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62479
|
+
if (!parsed$.ok) {
|
|
62480
|
+
return [parsed$, { status: "invalid" }];
|
|
62481
|
+
}
|
|
62482
|
+
const payload$ = parsed$.value;
|
|
62483
|
+
const body$ = null;
|
|
62484
|
+
const pathParams$ = {
|
|
62485
|
+
page_id: encodeSimple("page_id", payload$.page_id, {
|
|
62486
|
+
explode: false,
|
|
62487
|
+
charEncoding: "percent"
|
|
62488
|
+
})
|
|
62489
|
+
};
|
|
62490
|
+
const path$ = pathToFunc("/v2/library/pages/{page_id}")(pathParams$);
|
|
62491
|
+
const headers$ = new Headers(compactMap({
|
|
62492
|
+
Accept: "application/json"
|
|
62493
|
+
}));
|
|
62494
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
62495
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
62496
|
+
const context = {
|
|
62497
|
+
options: client$._options,
|
|
62498
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
62499
|
+
operationID: "v2_library_pages_retrieve",
|
|
62500
|
+
oAuth2Scopes: null,
|
|
62501
|
+
resolvedSecurity: requestSecurity,
|
|
62502
|
+
securitySource: client$._options.security,
|
|
62503
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
62504
|
+
retryCodes: options?.retryCodes || [
|
|
62505
|
+
"429",
|
|
62506
|
+
"500",
|
|
62507
|
+
"502",
|
|
62508
|
+
"503",
|
|
62509
|
+
"504"
|
|
62510
|
+
]
|
|
62511
|
+
};
|
|
62512
|
+
const requestRes = client$._createRequest(context, {
|
|
62513
|
+
security: requestSecurity,
|
|
62514
|
+
method: "GET",
|
|
62515
|
+
baseURL: options?.serverURL,
|
|
62516
|
+
path: path$,
|
|
62517
|
+
headers: headers$,
|
|
62518
|
+
body: body$,
|
|
62519
|
+
userAgent: client$._options.userAgent,
|
|
62520
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
62521
|
+
}, options);
|
|
62522
|
+
if (!requestRes.ok) {
|
|
62523
|
+
return [requestRes, { status: "invalid" }];
|
|
62524
|
+
}
|
|
62525
|
+
const req$ = requestRes.value;
|
|
62526
|
+
const doResult = await client$._do(req$, {
|
|
62527
|
+
context,
|
|
62528
|
+
errorCodes: [],
|
|
62529
|
+
retryConfig: context.retryConfig,
|
|
62530
|
+
retryCodes: context.retryCodes
|
|
62531
|
+
});
|
|
62532
|
+
if (!doResult.ok) {
|
|
62533
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
62534
|
+
}
|
|
62535
|
+
return [doResult, {
|
|
62536
|
+
status: "complete",
|
|
62537
|
+
request: req$,
|
|
62538
|
+
response: doResult.value
|
|
62539
|
+
}];
|
|
62540
|
+
}
|
|
62541
|
+
var init_libraryPagesGet = __esm(() => {
|
|
62542
|
+
init_encodings();
|
|
62543
|
+
init_primitives();
|
|
62544
|
+
init_schemas4();
|
|
62545
|
+
init_security();
|
|
62546
|
+
init_url();
|
|
62547
|
+
init_v2librarypagesretrieveop();
|
|
62548
|
+
init_async();
|
|
62549
|
+
});
|
|
62550
|
+
|
|
62551
|
+
// src/mcp-server/tools/libraryPagesGet.ts
|
|
62552
|
+
var args33, tool$libraryPagesGet;
|
|
62553
|
+
var init_libraryPagesGet2 = __esm(() => {
|
|
62554
|
+
init_libraryPagesGet();
|
|
62555
|
+
init_v2librarypagesretrieveop();
|
|
62556
|
+
init_tools();
|
|
62557
|
+
args33 = {
|
|
62558
|
+
request: V2LibraryPagesRetrieveRequest$zodSchema
|
|
62559
|
+
};
|
|
62560
|
+
tool$libraryPagesGet = {
|
|
62561
|
+
name: "library-pages-get",
|
|
62562
|
+
description: `Retrieve Page
|
|
62563
|
+
|
|
62564
|
+
Returns one Library page with its tracking and first-citation milestones.`,
|
|
62565
|
+
annotations: {
|
|
62566
|
+
title: "",
|
|
62567
|
+
destructiveHint: false,
|
|
62568
|
+
idempotentHint: false,
|
|
62569
|
+
openWorldHint: false,
|
|
62570
|
+
readOnlyHint: true
|
|
62571
|
+
},
|
|
62572
|
+
args: args33,
|
|
62573
|
+
tool: async (client, args, ctx) => {
|
|
62574
|
+
const [result] = await libraryPagesGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62575
|
+
if (!result.ok) {
|
|
62576
|
+
return {
|
|
62577
|
+
content: [{ type: "text", text: result.error.message }],
|
|
62578
|
+
isError: true
|
|
62579
|
+
};
|
|
62580
|
+
}
|
|
62581
|
+
return formatResult(result.value);
|
|
62582
|
+
}
|
|
62583
|
+
};
|
|
62584
|
+
});
|
|
62585
|
+
|
|
62586
|
+
// src/models/libraryday.ts
|
|
62587
|
+
var LibraryDay$zodSchema;
|
|
62588
|
+
var init_libraryday = __esm(() => {
|
|
62589
|
+
init_zod();
|
|
62590
|
+
LibraryDay$zodSchema = object({
|
|
62591
|
+
agent_visits: int().nullable().optional().describe("Null where agent visits are not tracked for the address."),
|
|
62592
|
+
citations: int().nullable().describe("Null on a day whose citations are not counted yet (it has agent visits only)."),
|
|
62593
|
+
cited_prompts: int().nullable().describe("Tracked prompts whose answers cited the address that day. Null when not counted yet."),
|
|
62594
|
+
coding_agent_visits: int().nullable().optional(),
|
|
62595
|
+
date: string2().date()
|
|
62596
|
+
});
|
|
62597
|
+
});
|
|
62598
|
+
|
|
62599
|
+
// src/models/libraryperiodtotals.ts
|
|
62600
|
+
var LibraryPeriodTotals$zodSchema;
|
|
62601
|
+
var init_libraryperiodtotals = __esm(() => {
|
|
62602
|
+
init_zod();
|
|
62603
|
+
LibraryPeriodTotals$zodSchema = object({
|
|
62604
|
+
agent_visits: int().nullable().optional(),
|
|
62605
|
+
citations: int(),
|
|
62606
|
+
days_cited: int(),
|
|
62607
|
+
days_counted: int().describe("Days in the period with citation data ready."),
|
|
62608
|
+
end: string2().date(),
|
|
62609
|
+
start: string2().date()
|
|
62610
|
+
});
|
|
62611
|
+
});
|
|
62612
|
+
|
|
62613
|
+
// src/models/libraryplatformcitations.ts
|
|
62614
|
+
var LibraryPlatformCitations$zodSchema;
|
|
62615
|
+
var init_libraryplatformcitations = __esm(() => {
|
|
62616
|
+
init_zod();
|
|
62617
|
+
LibraryPlatformCitations$zodSchema = object({
|
|
62618
|
+
citations: int(),
|
|
62619
|
+
platform: string2().nullable(),
|
|
62620
|
+
previous_citations: int()
|
|
62621
|
+
});
|
|
62622
|
+
});
|
|
62623
|
+
|
|
62624
|
+
// src/models/librarypageinsights.ts
|
|
62625
|
+
var Trend$zodSchema, LibraryPageInsights$zodSchema;
|
|
62626
|
+
var init_librarypageinsights = __esm(() => {
|
|
62627
|
+
init_zod();
|
|
62628
|
+
init_libraryday();
|
|
62629
|
+
init_librarymilestones();
|
|
62630
|
+
init_libraryperiodtotals();
|
|
62631
|
+
init_libraryplatformcitations();
|
|
62632
|
+
Trend$zodSchema = _enum([
|
|
62633
|
+
"rising",
|
|
62634
|
+
"falling",
|
|
62635
|
+
"steady",
|
|
62636
|
+
"new",
|
|
62637
|
+
"no_citations",
|
|
62638
|
+
"not_comparable"
|
|
62639
|
+
]);
|
|
62640
|
+
LibraryPageInsights$zodSchema = object({
|
|
62641
|
+
agent_visits_note: string2().nullable().optional(),
|
|
62642
|
+
citations_change_percent: number2().nullable().optional(),
|
|
62643
|
+
current: LibraryPeriodTotals$zodSchema,
|
|
62644
|
+
daily: array(LibraryDay$zodSchema),
|
|
62645
|
+
data_through: string2().date().nullable().optional().describe("Last day citations are counted for. Today's answers are counted from tomorrow."),
|
|
62646
|
+
days: int(),
|
|
62647
|
+
id: string2(),
|
|
62648
|
+
milestones: LibraryMilestones$zodSchema.nullable().optional(),
|
|
62649
|
+
platforms: array(LibraryPlatformCitations$zodSchema),
|
|
62650
|
+
previous: LibraryPeriodTotals$zodSchema,
|
|
62651
|
+
summary: string2().describe("One-sentence reading of the trend."),
|
|
62652
|
+
trend: Trend$zodSchema,
|
|
62653
|
+
url: string2().nullable()
|
|
62654
|
+
});
|
|
62655
|
+
});
|
|
62656
|
+
|
|
62657
|
+
// src/models/v2librarypagesinsightsop.ts
|
|
62658
|
+
var V2LibraryPagesInsightsRequest$zodSchema, V2LibraryPagesInsightsResponse$zodSchema;
|
|
62659
|
+
var init_v2librarypagesinsightsop = __esm(() => {
|
|
62660
|
+
init_zod();
|
|
62661
|
+
init_httpvalidationerror();
|
|
62662
|
+
init_librarypageinsights();
|
|
62663
|
+
V2LibraryPagesInsightsRequest$zodSchema = object({
|
|
62664
|
+
days: int().default(30).describe("Days in each compared period."),
|
|
62665
|
+
page_id: string2()
|
|
62666
|
+
});
|
|
62667
|
+
V2LibraryPagesInsightsResponse$zodSchema = union([
|
|
62668
|
+
LibraryPageInsights$zodSchema,
|
|
62669
|
+
HTTPValidationError$zodSchema
|
|
62670
|
+
]);
|
|
62671
|
+
});
|
|
62672
|
+
|
|
62673
|
+
// src/funcs/libraryPagesInsights.ts
|
|
62674
|
+
function libraryPagesInsights(client$, request, options) {
|
|
62675
|
+
return new APIPromise($do42(client$, request, options));
|
|
62676
|
+
}
|
|
62677
|
+
async function $do42(client$, request, options) {
|
|
62678
|
+
const parsed$ = safeParse4(request, (value$) => V2LibraryPagesInsightsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62679
|
+
if (!parsed$.ok) {
|
|
62680
|
+
return [parsed$, { status: "invalid" }];
|
|
62681
|
+
}
|
|
62682
|
+
const payload$ = parsed$.value;
|
|
62683
|
+
const body$ = null;
|
|
62684
|
+
const pathParams$ = {
|
|
62685
|
+
page_id: encodeSimple("page_id", payload$.page_id, {
|
|
62686
|
+
explode: false,
|
|
62687
|
+
charEncoding: "percent"
|
|
62688
|
+
})
|
|
62689
|
+
};
|
|
62690
|
+
const path$ = pathToFunc("/v2/library/pages/{page_id}/insights")(pathParams$);
|
|
62691
|
+
const query$ = encodeFormQuery({
|
|
62692
|
+
days: payload$.days
|
|
62693
|
+
});
|
|
62694
|
+
const headers$ = new Headers(compactMap({
|
|
62695
|
+
Accept: "application/json"
|
|
62696
|
+
}));
|
|
62697
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
62698
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
62699
|
+
const context = {
|
|
62700
|
+
options: client$._options,
|
|
62701
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
62702
|
+
operationID: "v2_library_pages_insights",
|
|
62703
|
+
oAuth2Scopes: null,
|
|
62704
|
+
resolvedSecurity: requestSecurity,
|
|
62705
|
+
securitySource: client$._options.security,
|
|
62706
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
62707
|
+
retryCodes: options?.retryCodes || [
|
|
62708
|
+
"429",
|
|
62709
|
+
"500",
|
|
62710
|
+
"502",
|
|
62711
|
+
"503",
|
|
62712
|
+
"504"
|
|
62713
|
+
]
|
|
62714
|
+
};
|
|
62715
|
+
const requestRes = client$._createRequest(context, {
|
|
62716
|
+
security: requestSecurity,
|
|
62717
|
+
method: "GET",
|
|
62718
|
+
baseURL: options?.serverURL,
|
|
62719
|
+
path: path$,
|
|
62720
|
+
headers: headers$,
|
|
62721
|
+
query: query$,
|
|
62722
|
+
body: body$,
|
|
62723
|
+
userAgent: client$._options.userAgent,
|
|
62724
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
62725
|
+
}, options);
|
|
62726
|
+
if (!requestRes.ok) {
|
|
62727
|
+
return [requestRes, { status: "invalid" }];
|
|
62728
|
+
}
|
|
62729
|
+
const req$ = requestRes.value;
|
|
62730
|
+
const doResult = await client$._do(req$, {
|
|
62731
|
+
context,
|
|
62732
|
+
errorCodes: [],
|
|
62733
|
+
retryConfig: context.retryConfig,
|
|
62734
|
+
retryCodes: context.retryCodes
|
|
62735
|
+
});
|
|
62736
|
+
if (!doResult.ok) {
|
|
62737
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
62738
|
+
}
|
|
62739
|
+
return [doResult, {
|
|
62740
|
+
status: "complete",
|
|
62741
|
+
request: req$,
|
|
62742
|
+
response: doResult.value
|
|
62743
|
+
}];
|
|
62744
|
+
}
|
|
62745
|
+
var init_libraryPagesInsights = __esm(() => {
|
|
62746
|
+
init_encodings();
|
|
62747
|
+
init_primitives();
|
|
62748
|
+
init_schemas4();
|
|
62749
|
+
init_security();
|
|
62750
|
+
init_url();
|
|
62751
|
+
init_v2librarypagesinsightsop();
|
|
62752
|
+
init_async();
|
|
62753
|
+
});
|
|
62754
|
+
|
|
62755
|
+
// src/mcp-server/tools/libraryPagesInsights.ts
|
|
62756
|
+
var args34, tool$libraryPagesInsights;
|
|
62757
|
+
var init_libraryPagesInsights2 = __esm(() => {
|
|
62758
|
+
init_libraryPagesInsights();
|
|
62759
|
+
init_v2librarypagesinsightsop();
|
|
62760
|
+
init_tools();
|
|
62761
|
+
args34 = {
|
|
62762
|
+
request: V2LibraryPagesInsightsRequest$zodSchema
|
|
62763
|
+
};
|
|
62764
|
+
tool$libraryPagesInsights = {
|
|
62765
|
+
name: "library-pages-insights",
|
|
62766
|
+
description: `Page Insights
|
|
62767
|
+
|
|
62768
|
+
Returns a page's citations and agent visits per day, the last period against the one before, citations by AI platform and its trend. Counts run through yesterday.`,
|
|
62769
|
+
annotations: {
|
|
62770
|
+
title: "",
|
|
62771
|
+
destructiveHint: false,
|
|
62772
|
+
idempotentHint: false,
|
|
62773
|
+
openWorldHint: false,
|
|
62774
|
+
readOnlyHint: true
|
|
62775
|
+
},
|
|
62776
|
+
args: args34,
|
|
62777
|
+
tool: async (client, args, ctx) => {
|
|
62778
|
+
const [result] = await libraryPagesInsights(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62779
|
+
if (!result.ok) {
|
|
62780
|
+
return {
|
|
62781
|
+
content: [{ type: "text", text: result.error.message }],
|
|
62782
|
+
isError: true
|
|
62783
|
+
};
|
|
62784
|
+
}
|
|
62785
|
+
return formatResult(result.value);
|
|
62786
|
+
}
|
|
62787
|
+
};
|
|
62788
|
+
});
|
|
62789
|
+
|
|
62790
|
+
// src/models/librarypagesresponse.ts
|
|
62791
|
+
var LibraryPagesResponse$zodSchema;
|
|
62792
|
+
var init_librarypagesresponse = __esm(() => {
|
|
62793
|
+
init_zod();
|
|
62794
|
+
init_librarypage();
|
|
62795
|
+
LibraryPagesResponse$zodSchema = object({
|
|
62796
|
+
data: array(LibraryPage$zodSchema),
|
|
62797
|
+
limit: int(),
|
|
62798
|
+
offset: int(),
|
|
62799
|
+
total: int()
|
|
62800
|
+
});
|
|
62801
|
+
});
|
|
62802
|
+
|
|
62803
|
+
// src/models/v2librarypageslistop.ts
|
|
62804
|
+
var V2LibraryPagesListRequest$zodSchema, V2LibraryPagesListResponse$zodSchema;
|
|
62805
|
+
var init_v2librarypageslistop = __esm(() => {
|
|
62806
|
+
init_zod();
|
|
62807
|
+
init_httpvalidationerror();
|
|
62808
|
+
init_librarypagesresponse();
|
|
62809
|
+
V2LibraryPagesListRequest$zodSchema = object({
|
|
62810
|
+
limit: int().default(20),
|
|
62811
|
+
offset: int().default(0),
|
|
62812
|
+
search: string2().describe("Matches title, address or destination.").optional()
|
|
62813
|
+
});
|
|
62814
|
+
V2LibraryPagesListResponse$zodSchema = union([
|
|
62815
|
+
LibraryPagesResponse$zodSchema,
|
|
62816
|
+
HTTPValidationError$zodSchema
|
|
62817
|
+
]);
|
|
62818
|
+
});
|
|
62819
|
+
|
|
62820
|
+
// src/funcs/libraryPagesList.ts
|
|
62821
|
+
function libraryPagesList(client$, request, options) {
|
|
62822
|
+
return new APIPromise($do43(client$, request, options));
|
|
62823
|
+
}
|
|
62824
|
+
async function $do43(client$, request, options) {
|
|
62825
|
+
const parsed$ = safeParse4(request, (value$) => V2LibraryPagesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62826
|
+
if (!parsed$.ok) {
|
|
62827
|
+
return [parsed$, { status: "invalid" }];
|
|
62828
|
+
}
|
|
62829
|
+
const payload$ = parsed$.value;
|
|
62830
|
+
const body$ = null;
|
|
62831
|
+
const path$ = pathToFunc("/v2/library/pages")();
|
|
62832
|
+
const query$ = encodeFormQuery({
|
|
62833
|
+
limit: payload$?.limit,
|
|
62834
|
+
offset: payload$?.offset,
|
|
62835
|
+
search: payload$?.search
|
|
62836
|
+
});
|
|
62837
|
+
const headers$ = new Headers(compactMap({
|
|
62838
|
+
Accept: "application/json"
|
|
62839
|
+
}));
|
|
62840
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
62841
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
62842
|
+
const context = {
|
|
62843
|
+
options: client$._options,
|
|
62844
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
62845
|
+
operationID: "v2_library_pages_list",
|
|
62846
|
+
oAuth2Scopes: null,
|
|
62847
|
+
resolvedSecurity: requestSecurity,
|
|
62848
|
+
securitySource: client$._options.security,
|
|
62849
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
62850
|
+
retryCodes: options?.retryCodes || [
|
|
62851
|
+
"429",
|
|
62852
|
+
"500",
|
|
62853
|
+
"502",
|
|
62854
|
+
"503",
|
|
62855
|
+
"504"
|
|
62856
|
+
]
|
|
62857
|
+
};
|
|
62858
|
+
const requestRes = client$._createRequest(context, {
|
|
62859
|
+
security: requestSecurity,
|
|
62860
|
+
method: "GET",
|
|
62861
|
+
baseURL: options?.serverURL,
|
|
62862
|
+
path: path$,
|
|
62863
|
+
headers: headers$,
|
|
62864
|
+
query: query$,
|
|
62865
|
+
body: body$,
|
|
62866
|
+
userAgent: client$._options.userAgent,
|
|
62867
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
62868
|
+
}, options);
|
|
62869
|
+
if (!requestRes.ok) {
|
|
62870
|
+
return [requestRes, { status: "invalid" }];
|
|
62871
|
+
}
|
|
62872
|
+
const req$ = requestRes.value;
|
|
62873
|
+
const doResult = await client$._do(req$, {
|
|
62874
|
+
context,
|
|
62875
|
+
errorCodes: [],
|
|
62876
|
+
retryConfig: context.retryConfig,
|
|
62877
|
+
retryCodes: context.retryCodes
|
|
62878
|
+
});
|
|
62879
|
+
if (!doResult.ok) {
|
|
62880
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
62881
|
+
}
|
|
62882
|
+
return [doResult, {
|
|
62883
|
+
status: "complete",
|
|
62884
|
+
request: req$,
|
|
62885
|
+
response: doResult.value
|
|
62886
|
+
}];
|
|
62887
|
+
}
|
|
62888
|
+
var init_libraryPagesList = __esm(() => {
|
|
62889
|
+
init_encodings();
|
|
62890
|
+
init_primitives();
|
|
62891
|
+
init_schemas4();
|
|
62892
|
+
init_security();
|
|
62893
|
+
init_url();
|
|
62894
|
+
init_v2librarypageslistop();
|
|
62895
|
+
init_async();
|
|
62896
|
+
});
|
|
62897
|
+
|
|
62898
|
+
// src/mcp-server/tools/libraryPagesList.ts
|
|
62899
|
+
var args35, tool$libraryPagesList;
|
|
62900
|
+
var init_libraryPagesList2 = __esm(() => {
|
|
62901
|
+
init_libraryPagesList();
|
|
62902
|
+
init_v2librarypageslistop();
|
|
62903
|
+
init_tools();
|
|
62904
|
+
args35 = {
|
|
62905
|
+
request: V2LibraryPagesListRequest$zodSchema.optional()
|
|
62906
|
+
};
|
|
62907
|
+
tool$libraryPagesList = {
|
|
62908
|
+
name: "library-pages-list",
|
|
62909
|
+
description: `List Pages
|
|
62910
|
+
|
|
62911
|
+
Returns live pages in the Library, most recently updated first, with their citations and agent visits over the last 30 days. Content waiting to go live is pending publication on Tasks.`,
|
|
62912
|
+
annotations: {
|
|
62913
|
+
title: "",
|
|
62914
|
+
destructiveHint: false,
|
|
62915
|
+
idempotentHint: false,
|
|
62916
|
+
openWorldHint: false,
|
|
62917
|
+
readOnlyHint: true
|
|
62918
|
+
},
|
|
62919
|
+
args: args35,
|
|
62920
|
+
tool: async (client, args, ctx) => {
|
|
62921
|
+
const [result] = await libraryPagesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62922
|
+
if (!result.ok) {
|
|
62923
|
+
return {
|
|
62924
|
+
content: [{ type: "text", text: result.error.message }],
|
|
62925
|
+
isError: true
|
|
62926
|
+
};
|
|
62927
|
+
}
|
|
62928
|
+
return formatResult(result.value);
|
|
62929
|
+
}
|
|
62930
|
+
};
|
|
62931
|
+
});
|
|
62932
|
+
|
|
62933
|
+
// src/models/updatelibrarypagerequest.ts
|
|
62934
|
+
var UpdateLibraryPageRequest$zodSchema;
|
|
62935
|
+
var init_updatelibrarypagerequest = __esm(() => {
|
|
62936
|
+
init_zod();
|
|
62937
|
+
UpdateLibraryPageRequest$zodSchema = object({
|
|
62938
|
+
published_on: string2().date().optional().describe("Day it went live."),
|
|
62939
|
+
title: string2().optional()
|
|
62940
|
+
});
|
|
62941
|
+
});
|
|
62942
|
+
|
|
62943
|
+
// src/models/v2librarypagesupdateop.ts
|
|
62944
|
+
var V2LibraryPagesUpdateRequest$zodSchema, V2LibraryPagesUpdateResponse$zodSchema;
|
|
62945
|
+
var init_v2librarypagesupdateop = __esm(() => {
|
|
62946
|
+
init_zod();
|
|
62947
|
+
init_httpvalidationerror();
|
|
62948
|
+
init_librarypage();
|
|
62949
|
+
init_updatelibrarypagerequest();
|
|
62950
|
+
V2LibraryPagesUpdateRequest$zodSchema = object({
|
|
62951
|
+
body: UpdateLibraryPageRequest$zodSchema,
|
|
62952
|
+
page_id: string2()
|
|
62953
|
+
});
|
|
62954
|
+
V2LibraryPagesUpdateResponse$zodSchema = union([
|
|
62955
|
+
LibraryPage$zodSchema,
|
|
62956
|
+
HTTPValidationError$zodSchema
|
|
62957
|
+
]);
|
|
62958
|
+
});
|
|
62959
|
+
|
|
62960
|
+
// src/funcs/libraryPagesUpdate.ts
|
|
62961
|
+
function libraryPagesUpdate(client$, request, options) {
|
|
62962
|
+
return new APIPromise($do44(client$, request, options));
|
|
62963
|
+
}
|
|
62964
|
+
async function $do44(client$, request, options) {
|
|
62965
|
+
const parsed$ = safeParse4(request, (value$) => V2LibraryPagesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62966
|
+
if (!parsed$.ok) {
|
|
62967
|
+
return [parsed$, { status: "invalid" }];
|
|
62968
|
+
}
|
|
62969
|
+
const payload$ = parsed$.value;
|
|
62970
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
62971
|
+
const pathParams$ = {
|
|
62972
|
+
page_id: encodeSimple("page_id", payload$.page_id, {
|
|
62973
|
+
explode: false,
|
|
62974
|
+
charEncoding: "percent"
|
|
62975
|
+
})
|
|
62976
|
+
};
|
|
62977
|
+
const path$ = pathToFunc("/v2/library/pages/{page_id}")(pathParams$);
|
|
62978
|
+
const headers$ = new Headers(compactMap({
|
|
62979
|
+
"Content-Type": "application/json",
|
|
62980
|
+
Accept: "application/json"
|
|
62981
|
+
}));
|
|
62982
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
62983
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
62984
|
+
const context = {
|
|
62985
|
+
options: client$._options,
|
|
62986
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
62987
|
+
operationID: "v2_library_pages_update",
|
|
62988
|
+
oAuth2Scopes: null,
|
|
62989
|
+
resolvedSecurity: requestSecurity,
|
|
62990
|
+
securitySource: client$._options.security,
|
|
62991
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
62992
|
+
retryCodes: options?.retryCodes || [
|
|
62993
|
+
"429",
|
|
62994
|
+
"500",
|
|
62995
|
+
"502",
|
|
62996
|
+
"503",
|
|
62997
|
+
"504"
|
|
62998
|
+
]
|
|
62999
|
+
};
|
|
63000
|
+
const requestRes = client$._createRequest(context, {
|
|
63001
|
+
security: requestSecurity,
|
|
63002
|
+
method: "PATCH",
|
|
63003
|
+
baseURL: options?.serverURL,
|
|
63004
|
+
path: path$,
|
|
63005
|
+
headers: headers$,
|
|
63006
|
+
body: body$,
|
|
63007
|
+
userAgent: client$._options.userAgent,
|
|
63008
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63009
|
+
}, options);
|
|
63010
|
+
if (!requestRes.ok) {
|
|
63011
|
+
return [requestRes, { status: "invalid" }];
|
|
63012
|
+
}
|
|
63013
|
+
const req$ = requestRes.value;
|
|
63014
|
+
const doResult = await client$._do(req$, {
|
|
63015
|
+
context,
|
|
63016
|
+
errorCodes: [],
|
|
63017
|
+
retryConfig: context.retryConfig,
|
|
63018
|
+
retryCodes: context.retryCodes
|
|
63019
|
+
});
|
|
63020
|
+
if (!doResult.ok) {
|
|
63021
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63022
|
+
}
|
|
63023
|
+
return [doResult, {
|
|
63024
|
+
status: "complete",
|
|
63025
|
+
request: req$,
|
|
63026
|
+
response: doResult.value
|
|
63027
|
+
}];
|
|
63028
|
+
}
|
|
63029
|
+
var init_libraryPagesUpdate = __esm(() => {
|
|
63030
|
+
init_encodings();
|
|
63031
|
+
init_primitives();
|
|
63032
|
+
init_schemas4();
|
|
63033
|
+
init_security();
|
|
63034
|
+
init_url();
|
|
63035
|
+
init_v2librarypagesupdateop();
|
|
63036
|
+
init_async();
|
|
63037
|
+
});
|
|
63038
|
+
|
|
63039
|
+
// src/mcp-server/tools/libraryPagesUpdate.ts
|
|
63040
|
+
var args36, tool$libraryPagesUpdate;
|
|
63041
|
+
var init_libraryPagesUpdate2 = __esm(() => {
|
|
63042
|
+
init_libraryPagesUpdate();
|
|
63043
|
+
init_v2librarypagesupdateop();
|
|
63044
|
+
init_tools();
|
|
63045
|
+
args36 = {
|
|
63046
|
+
request: V2LibraryPagesUpdateRequest$zodSchema
|
|
63047
|
+
};
|
|
63048
|
+
tool$libraryPagesUpdate = {
|
|
63049
|
+
name: "library-pages-update",
|
|
63050
|
+
description: `Update Page
|
|
63051
|
+
|
|
63052
|
+
Renames a Library page or changes the day it went live; omitted fields remain unchanged.`,
|
|
63053
|
+
annotations: {
|
|
63054
|
+
title: "",
|
|
63055
|
+
destructiveHint: false,
|
|
63056
|
+
idempotentHint: false,
|
|
63057
|
+
openWorldHint: false,
|
|
63058
|
+
readOnlyHint: false
|
|
63059
|
+
},
|
|
63060
|
+
args: args36,
|
|
63061
|
+
tool: async (client, args, ctx) => {
|
|
63062
|
+
const [result] = await libraryPagesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63063
|
+
if (!result.ok) {
|
|
63064
|
+
return {
|
|
63065
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63066
|
+
isError: true
|
|
63067
|
+
};
|
|
63068
|
+
}
|
|
63069
|
+
return formatResult(result.value);
|
|
63070
|
+
}
|
|
63071
|
+
};
|
|
63072
|
+
});
|
|
63073
|
+
|
|
63074
|
+
// src/models/libraryredirectcheckeval.ts
|
|
63075
|
+
var LibraryRedirectCheckEval$zodSchema;
|
|
63076
|
+
var init_libraryredirectcheckeval = __esm(() => {
|
|
63077
|
+
init_zod();
|
|
63078
|
+
LibraryRedirectCheckEval$zodSchema = object({
|
|
63079
|
+
endpoint_id: string2(),
|
|
63080
|
+
matches_destination: boolean2().describe("False when no `to_url` was given, so it matched on the old address alone."),
|
|
63081
|
+
name: string2()
|
|
63082
|
+
}).describe("The eval fix a redirect being added matches.");
|
|
63083
|
+
});
|
|
63084
|
+
|
|
63085
|
+
// src/models/libraryredirectcheck.ts
|
|
63086
|
+
var LibraryRedirectCheck$zodSchema;
|
|
63087
|
+
var init_libraryredirectcheck = __esm(() => {
|
|
63088
|
+
init_zod();
|
|
63089
|
+
init_libraryredirectcheckeval();
|
|
63090
|
+
LibraryRedirectCheck$zodSchema = object({
|
|
63091
|
+
days: int(),
|
|
63092
|
+
eval: LibraryRedirectCheckEval$zodSchema.nullable().optional().describe("The matching eval fix, if any."),
|
|
63093
|
+
host: string2(),
|
|
63094
|
+
recent_errors: int(),
|
|
63095
|
+
recent_requests: int().describe("Agent requests to the address in the last `days` calendar days, today (UTC) included."),
|
|
63096
|
+
tracked: boolean2()
|
|
63097
|
+
}).describe("Before a redirect is added: whether it can be checked, and the eval fix it matches.");
|
|
63098
|
+
});
|
|
63099
|
+
|
|
63100
|
+
// src/models/v2libraryredirectscheckop.ts
|
|
63101
|
+
var V2LibraryRedirectsCheckRequest$zodSchema, V2LibraryRedirectsCheckResponse$zodSchema;
|
|
63102
|
+
var init_v2libraryredirectscheckop = __esm(() => {
|
|
63103
|
+
init_zod();
|
|
63104
|
+
init_httpvalidationerror();
|
|
63105
|
+
init_libraryredirectcheck();
|
|
63106
|
+
V2LibraryRedirectsCheckRequest$zodSchema = object({
|
|
63107
|
+
from_url: string2(),
|
|
63108
|
+
to_url: string2().describe("Where it will redirect. Given, an eval fix must redirect to the same address to match.").optional()
|
|
63109
|
+
});
|
|
63110
|
+
V2LibraryRedirectsCheckResponse$zodSchema = union([
|
|
63111
|
+
LibraryRedirectCheck$zodSchema,
|
|
63112
|
+
HTTPValidationError$zodSchema
|
|
63113
|
+
]);
|
|
63114
|
+
});
|
|
63115
|
+
|
|
63116
|
+
// src/funcs/libraryRedirectsCheck.ts
|
|
63117
|
+
function libraryRedirectsCheck(client$, request, options) {
|
|
63118
|
+
return new APIPromise($do45(client$, request, options));
|
|
63119
|
+
}
|
|
63120
|
+
async function $do45(client$, request, options) {
|
|
63121
|
+
const parsed$ = safeParse4(request, (value$) => V2LibraryRedirectsCheckRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63122
|
+
if (!parsed$.ok) {
|
|
63123
|
+
return [parsed$, { status: "invalid" }];
|
|
63124
|
+
}
|
|
63125
|
+
const payload$ = parsed$.value;
|
|
63126
|
+
const body$ = null;
|
|
63127
|
+
const path$ = pathToFunc("/v2/library/redirects/check")();
|
|
63128
|
+
const query$ = encodeFormQuery({
|
|
63129
|
+
from_url: payload$.from_url,
|
|
63130
|
+
to_url: payload$.to_url
|
|
63131
|
+
});
|
|
63132
|
+
const headers$ = new Headers(compactMap({
|
|
63133
|
+
Accept: "application/json"
|
|
63134
|
+
}));
|
|
63135
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63136
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63137
|
+
const context = {
|
|
63138
|
+
options: client$._options,
|
|
63139
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63140
|
+
operationID: "v2_library_redirects_check",
|
|
63141
|
+
oAuth2Scopes: null,
|
|
63142
|
+
resolvedSecurity: requestSecurity,
|
|
63143
|
+
securitySource: client$._options.security,
|
|
63144
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63145
|
+
retryCodes: options?.retryCodes || [
|
|
63146
|
+
"429",
|
|
63147
|
+
"500",
|
|
63148
|
+
"502",
|
|
63149
|
+
"503",
|
|
63150
|
+
"504"
|
|
63151
|
+
]
|
|
63152
|
+
};
|
|
63153
|
+
const requestRes = client$._createRequest(context, {
|
|
63154
|
+
security: requestSecurity,
|
|
63155
|
+
method: "GET",
|
|
63156
|
+
baseURL: options?.serverURL,
|
|
63157
|
+
path: path$,
|
|
63158
|
+
headers: headers$,
|
|
63159
|
+
query: query$,
|
|
63160
|
+
body: body$,
|
|
63161
|
+
userAgent: client$._options.userAgent,
|
|
63162
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63163
|
+
}, options);
|
|
63164
|
+
if (!requestRes.ok) {
|
|
63165
|
+
return [requestRes, { status: "invalid" }];
|
|
63166
|
+
}
|
|
63167
|
+
const req$ = requestRes.value;
|
|
63168
|
+
const doResult = await client$._do(req$, {
|
|
63169
|
+
context,
|
|
63170
|
+
errorCodes: [],
|
|
63171
|
+
retryConfig: context.retryConfig,
|
|
63172
|
+
retryCodes: context.retryCodes
|
|
63173
|
+
});
|
|
63174
|
+
if (!doResult.ok) {
|
|
63175
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63176
|
+
}
|
|
63177
|
+
return [doResult, {
|
|
63178
|
+
status: "complete",
|
|
63179
|
+
request: req$,
|
|
63180
|
+
response: doResult.value
|
|
63181
|
+
}];
|
|
63182
|
+
}
|
|
63183
|
+
var init_libraryRedirectsCheck = __esm(() => {
|
|
63184
|
+
init_encodings();
|
|
63185
|
+
init_primitives();
|
|
63186
|
+
init_schemas4();
|
|
63187
|
+
init_security();
|
|
63188
|
+
init_url();
|
|
63189
|
+
init_v2libraryredirectscheckop();
|
|
63190
|
+
init_async();
|
|
63191
|
+
});
|
|
63192
|
+
|
|
63193
|
+
// src/mcp-server/tools/libraryRedirectsCheck.ts
|
|
63194
|
+
var args37, tool$libraryRedirectsCheck;
|
|
63195
|
+
var init_libraryRedirectsCheck2 = __esm(() => {
|
|
63196
|
+
init_libraryRedirectsCheck();
|
|
63197
|
+
init_v2libraryredirectscheckop();
|
|
63198
|
+
init_tools();
|
|
63199
|
+
args37 = {
|
|
63200
|
+
request: V2LibraryRedirectsCheckRequest$zodSchema
|
|
63201
|
+
};
|
|
63202
|
+
tool$libraryRedirectsCheck = {
|
|
63203
|
+
name: "library-redirects-check",
|
|
63204
|
+
description: `Check Redirect
|
|
63205
|
+
|
|
63206
|
+
Before recording a redirect: whether its old address is on a site Agent Analytics tracks (so it can be checked), what agents got there recently, and the eval fix that redirects the same address.`,
|
|
63207
|
+
annotations: {
|
|
63208
|
+
title: "",
|
|
63209
|
+
destructiveHint: false,
|
|
63210
|
+
idempotentHint: false,
|
|
63211
|
+
openWorldHint: false,
|
|
63212
|
+
readOnlyHint: true
|
|
63213
|
+
},
|
|
63214
|
+
args: args37,
|
|
63215
|
+
tool: async (client, args, ctx) => {
|
|
63216
|
+
const [result] = await libraryRedirectsCheck(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63217
|
+
if (!result.ok) {
|
|
63218
|
+
return {
|
|
63219
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63220
|
+
isError: true
|
|
63221
|
+
};
|
|
63222
|
+
}
|
|
63223
|
+
return formatResult(result.value);
|
|
63224
|
+
}
|
|
63225
|
+
};
|
|
63226
|
+
});
|
|
63227
|
+
|
|
63228
|
+
// src/models/createlibraryredirectrequest.ts
|
|
63229
|
+
var CreateLibraryRedirectRequest$zodSchema;
|
|
63230
|
+
var init_createlibraryredirectrequest = __esm(() => {
|
|
63231
|
+
init_zod();
|
|
63232
|
+
CreateLibraryRedirectRequest$zodSchema = object({
|
|
63233
|
+
from_url: string2().describe("Full `https://` address. The old address, on your own site."),
|
|
63234
|
+
live_on: string2().date().optional().describe("Day the redirect went live. Defaults to today."),
|
|
63235
|
+
task_id: string2().optional().describe("Task this redirect completes, from `GET /v2/tasks`."),
|
|
63236
|
+
title: string2().optional().describe("Defaults to `from_url → to_url`."),
|
|
63237
|
+
to_url: string2().describe("Full `https://` address. Where it now redirects.")
|
|
63238
|
+
});
|
|
63239
|
+
});
|
|
63240
|
+
|
|
63241
|
+
// src/funcs/libraryRedirectsCreate.ts
|
|
63242
|
+
function libraryRedirectsCreate(client$, request, options) {
|
|
63243
|
+
return new APIPromise($do46(client$, request, options));
|
|
63244
|
+
}
|
|
63245
|
+
async function $do46(client$, request, options) {
|
|
63246
|
+
const parsed$ = safeParse4(request, (value$) => CreateLibraryRedirectRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63247
|
+
if (!parsed$.ok) {
|
|
63248
|
+
return [parsed$, { status: "invalid" }];
|
|
63249
|
+
}
|
|
63250
|
+
const payload$ = parsed$.value;
|
|
63251
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
63252
|
+
const path$ = pathToFunc("/v2/library/redirects")();
|
|
63253
|
+
const headers$ = new Headers(compactMap({
|
|
63254
|
+
"Content-Type": "application/json",
|
|
63255
|
+
Accept: "application/json"
|
|
63256
|
+
}));
|
|
63257
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63258
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63259
|
+
const context = {
|
|
63260
|
+
options: client$._options,
|
|
63261
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63262
|
+
operationID: "v2_library_redirects_create",
|
|
63263
|
+
oAuth2Scopes: null,
|
|
63264
|
+
resolvedSecurity: requestSecurity,
|
|
63265
|
+
securitySource: client$._options.security,
|
|
63266
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63267
|
+
retryCodes: options?.retryCodes || [
|
|
63268
|
+
"429",
|
|
63269
|
+
"500",
|
|
63270
|
+
"502",
|
|
63271
|
+
"503",
|
|
63272
|
+
"504"
|
|
63273
|
+
]
|
|
63274
|
+
};
|
|
63275
|
+
const requestRes = client$._createRequest(context, {
|
|
63276
|
+
security: requestSecurity,
|
|
63277
|
+
method: "POST",
|
|
63278
|
+
baseURL: options?.serverURL,
|
|
63279
|
+
path: path$,
|
|
63280
|
+
headers: headers$,
|
|
63281
|
+
body: body$,
|
|
63282
|
+
userAgent: client$._options.userAgent,
|
|
63283
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63284
|
+
}, options);
|
|
63285
|
+
if (!requestRes.ok) {
|
|
63286
|
+
return [requestRes, { status: "invalid" }];
|
|
63287
|
+
}
|
|
63288
|
+
const req$ = requestRes.value;
|
|
63289
|
+
const doResult = await client$._do(req$, {
|
|
63290
|
+
context,
|
|
63291
|
+
errorCodes: [],
|
|
63292
|
+
retryConfig: context.retryConfig,
|
|
63293
|
+
retryCodes: context.retryCodes
|
|
63294
|
+
});
|
|
63295
|
+
if (!doResult.ok) {
|
|
63296
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63297
|
+
}
|
|
63298
|
+
return [doResult, {
|
|
63299
|
+
status: "complete",
|
|
63300
|
+
request: req$,
|
|
63301
|
+
response: doResult.value
|
|
63302
|
+
}];
|
|
63303
|
+
}
|
|
63304
|
+
var init_libraryRedirectsCreate = __esm(() => {
|
|
63305
|
+
init_encodings();
|
|
63306
|
+
init_primitives();
|
|
63307
|
+
init_schemas4();
|
|
63308
|
+
init_security();
|
|
63309
|
+
init_url();
|
|
63310
|
+
init_createlibraryredirectrequest();
|
|
63311
|
+
init_async();
|
|
63312
|
+
});
|
|
63313
|
+
|
|
63314
|
+
// src/mcp-server/tools/libraryRedirectsCreate.ts
|
|
63315
|
+
var args38, tool$libraryRedirectsCreate;
|
|
63316
|
+
var init_libraryRedirectsCreate2 = __esm(() => {
|
|
63317
|
+
init_libraryRedirectsCreate();
|
|
63318
|
+
init_createlibraryredirectrequest();
|
|
63319
|
+
init_tools();
|
|
63320
|
+
args38 = {
|
|
63321
|
+
request: CreateLibraryRedirectRequest$zodSchema
|
|
63322
|
+
};
|
|
63323
|
+
tool$libraryRedirectsCreate = {
|
|
63324
|
+
name: "library-redirects-create",
|
|
63325
|
+
description: `Create Redirect
|
|
63326
|
+
|
|
63327
|
+
Records a redirect that is live on your site, so the Library can show whether it helps. The old address must be on your own site. This does not change your site. Sending the same request again returns the redirect it already made, so a retry is safe; a different \`to_url\` for an old address that already has a redirect is a 409.`,
|
|
63328
|
+
annotations: {
|
|
63329
|
+
title: "",
|
|
63330
|
+
destructiveHint: false,
|
|
63331
|
+
idempotentHint: false,
|
|
63332
|
+
openWorldHint: false,
|
|
63333
|
+
readOnlyHint: false
|
|
63334
|
+
},
|
|
63335
|
+
args: args38,
|
|
63336
|
+
tool: async (client, args, ctx) => {
|
|
63337
|
+
const [result] = await libraryRedirectsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63338
|
+
if (!result.ok) {
|
|
63339
|
+
return {
|
|
63340
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63341
|
+
isError: true
|
|
63342
|
+
};
|
|
63343
|
+
}
|
|
63344
|
+
return formatResult(result.value);
|
|
63345
|
+
}
|
|
63346
|
+
};
|
|
63347
|
+
});
|
|
63348
|
+
|
|
63349
|
+
// src/models/libraryredirect.ts
|
|
63350
|
+
var LibraryRedirect$zodSchema;
|
|
63351
|
+
var init_libraryredirect = __esm(() => {
|
|
63352
|
+
init_zod();
|
|
63353
|
+
LibraryRedirect$zodSchema = object({
|
|
63354
|
+
added_at: string2().nullable().optional(),
|
|
63355
|
+
from_url: string2().describe("The old address, which now redirects."),
|
|
63356
|
+
id: string2().describe("Library redirect ID."),
|
|
63357
|
+
live_on: string2().date().nullable().optional().describe("Day the redirect went live."),
|
|
63358
|
+
task_id: string2().nullable().optional(),
|
|
63359
|
+
title: string2(),
|
|
63360
|
+
to_url: string2().describe("Where the old address now sends visitors and agents."),
|
|
63361
|
+
updated_at: string2().nullable().optional()
|
|
63362
|
+
});
|
|
63363
|
+
});
|
|
63364
|
+
|
|
63365
|
+
// src/models/v2libraryredirectsretrieveop.ts
|
|
63366
|
+
var V2LibraryRedirectsRetrieveRequest$zodSchema, V2LibraryRedirectsRetrieveResponse$zodSchema;
|
|
63367
|
+
var init_v2libraryredirectsretrieveop = __esm(() => {
|
|
63368
|
+
init_zod();
|
|
63369
|
+
init_httpvalidationerror();
|
|
63370
|
+
init_libraryredirect();
|
|
63371
|
+
V2LibraryRedirectsRetrieveRequest$zodSchema = object({
|
|
63372
|
+
redirect_id: string2()
|
|
63373
|
+
});
|
|
63374
|
+
V2LibraryRedirectsRetrieveResponse$zodSchema = union([
|
|
63375
|
+
LibraryRedirect$zodSchema,
|
|
63376
|
+
HTTPValidationError$zodSchema
|
|
63377
|
+
]);
|
|
63378
|
+
});
|
|
63379
|
+
|
|
63380
|
+
// src/funcs/libraryRedirectsGet.ts
|
|
63381
|
+
function libraryRedirectsGet(client$, request, options) {
|
|
63382
|
+
return new APIPromise($do47(client$, request, options));
|
|
63383
|
+
}
|
|
63384
|
+
async function $do47(client$, request, options) {
|
|
63385
|
+
const parsed$ = safeParse4(request, (value$) => V2LibraryRedirectsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63386
|
+
if (!parsed$.ok) {
|
|
63387
|
+
return [parsed$, { status: "invalid" }];
|
|
63388
|
+
}
|
|
63389
|
+
const payload$ = parsed$.value;
|
|
63390
|
+
const body$ = null;
|
|
63391
|
+
const pathParams$ = {
|
|
63392
|
+
redirect_id: encodeSimple("redirect_id", payload$.redirect_id, {
|
|
63393
|
+
explode: false,
|
|
63394
|
+
charEncoding: "percent"
|
|
63395
|
+
})
|
|
63396
|
+
};
|
|
63397
|
+
const path$ = pathToFunc("/v2/library/redirects/{redirect_id}")(pathParams$);
|
|
63398
|
+
const headers$ = new Headers(compactMap({
|
|
63399
|
+
Accept: "application/json"
|
|
63400
|
+
}));
|
|
63401
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63402
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63403
|
+
const context = {
|
|
63404
|
+
options: client$._options,
|
|
63405
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63406
|
+
operationID: "v2_library_redirects_retrieve",
|
|
63407
|
+
oAuth2Scopes: null,
|
|
63408
|
+
resolvedSecurity: requestSecurity,
|
|
63409
|
+
securitySource: client$._options.security,
|
|
63410
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63411
|
+
retryCodes: options?.retryCodes || [
|
|
63412
|
+
"429",
|
|
63413
|
+
"500",
|
|
63414
|
+
"502",
|
|
63415
|
+
"503",
|
|
63416
|
+
"504"
|
|
63417
|
+
]
|
|
63418
|
+
};
|
|
63419
|
+
const requestRes = client$._createRequest(context, {
|
|
63420
|
+
security: requestSecurity,
|
|
63421
|
+
method: "GET",
|
|
63422
|
+
baseURL: options?.serverURL,
|
|
63423
|
+
path: path$,
|
|
63424
|
+
headers: headers$,
|
|
63425
|
+
body: body$,
|
|
63426
|
+
userAgent: client$._options.userAgent,
|
|
63427
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63428
|
+
}, options);
|
|
63429
|
+
if (!requestRes.ok) {
|
|
63430
|
+
return [requestRes, { status: "invalid" }];
|
|
63431
|
+
}
|
|
63432
|
+
const req$ = requestRes.value;
|
|
63433
|
+
const doResult = await client$._do(req$, {
|
|
63434
|
+
context,
|
|
63435
|
+
errorCodes: [],
|
|
63436
|
+
retryConfig: context.retryConfig,
|
|
63437
|
+
retryCodes: context.retryCodes
|
|
63438
|
+
});
|
|
63439
|
+
if (!doResult.ok) {
|
|
63440
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63441
|
+
}
|
|
63442
|
+
return [doResult, {
|
|
63443
|
+
status: "complete",
|
|
63444
|
+
request: req$,
|
|
63445
|
+
response: doResult.value
|
|
63446
|
+
}];
|
|
63447
|
+
}
|
|
63448
|
+
var init_libraryRedirectsGet = __esm(() => {
|
|
63449
|
+
init_encodings();
|
|
63450
|
+
init_primitives();
|
|
63451
|
+
init_schemas4();
|
|
63452
|
+
init_security();
|
|
63453
|
+
init_url();
|
|
63454
|
+
init_v2libraryredirectsretrieveop();
|
|
63455
|
+
init_async();
|
|
63456
|
+
});
|
|
63457
|
+
|
|
63458
|
+
// src/mcp-server/tools/libraryRedirectsGet.ts
|
|
63459
|
+
var args39, tool$libraryRedirectsGet;
|
|
63460
|
+
var init_libraryRedirectsGet2 = __esm(() => {
|
|
63461
|
+
init_libraryRedirectsGet();
|
|
63462
|
+
init_v2libraryredirectsretrieveop();
|
|
63463
|
+
init_tools();
|
|
63464
|
+
args39 = {
|
|
63465
|
+
request: V2LibraryRedirectsRetrieveRequest$zodSchema
|
|
63466
|
+
};
|
|
63467
|
+
tool$libraryRedirectsGet = {
|
|
63468
|
+
name: "library-redirects-get",
|
|
63469
|
+
description: `Retrieve Redirect
|
|
63470
|
+
|
|
63471
|
+
Returns one Library redirect.`,
|
|
63472
|
+
annotations: {
|
|
63473
|
+
title: "",
|
|
63474
|
+
destructiveHint: false,
|
|
63475
|
+
idempotentHint: false,
|
|
63476
|
+
openWorldHint: false,
|
|
63477
|
+
readOnlyHint: true
|
|
63478
|
+
},
|
|
63479
|
+
args: args39,
|
|
63480
|
+
tool: async (client, args, ctx) => {
|
|
63481
|
+
const [result] = await libraryRedirectsGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63482
|
+
if (!result.ok) {
|
|
63483
|
+
return {
|
|
63484
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63485
|
+
isError: true
|
|
63486
|
+
};
|
|
63487
|
+
}
|
|
63488
|
+
return formatResult(result.value);
|
|
63489
|
+
}
|
|
63490
|
+
};
|
|
63491
|
+
});
|
|
63492
|
+
|
|
63493
|
+
// src/models/libraryredirectcitations.ts
|
|
63494
|
+
var LibraryRedirectCitations$zodSchema;
|
|
63495
|
+
var init_libraryredirectcitations = __esm(() => {
|
|
63496
|
+
init_zod();
|
|
63497
|
+
LibraryRedirectCitations$zodSchema = object({
|
|
63498
|
+
new_after: int(),
|
|
63499
|
+
new_before: int(),
|
|
63500
|
+
old_after: int().describe("Answers still citing the old address; the redirect is what catches them."),
|
|
63501
|
+
old_before: int()
|
|
63502
|
+
}).describe("AI answer citations in the 14 days before it went live and since, for both addresses.");
|
|
63503
|
+
});
|
|
63504
|
+
|
|
63505
|
+
// src/models/libraryredirectday.ts
|
|
63506
|
+
var LibraryRedirectDay$zodSchema;
|
|
63507
|
+
var init_libraryredirectday = __esm(() => {
|
|
63508
|
+
init_zod();
|
|
63509
|
+
LibraryRedirectDay$zodSchema = object({
|
|
63510
|
+
date: string2().date(),
|
|
63511
|
+
errored: int(),
|
|
63512
|
+
redirected: int(),
|
|
63513
|
+
served: int().describe("Requests that still got the old page: a 2xx, or a 304 telling the agent to reuse its copy.")
|
|
63514
|
+
});
|
|
63515
|
+
});
|
|
63516
|
+
|
|
63517
|
+
// src/models/libraryredirecteval.ts
|
|
63518
|
+
var LibraryRedirectEval$zodSchema;
|
|
63519
|
+
var init_libraryredirecteval = __esm(() => {
|
|
63520
|
+
init_zod();
|
|
63521
|
+
LibraryRedirectEval$zodSchema = object({
|
|
63522
|
+
endpoint_id: string2(),
|
|
63523
|
+
lineage_id: string2().describe("The fix it matched."),
|
|
63524
|
+
matches_destination: boolean2().default(true),
|
|
63525
|
+
name: string2(),
|
|
63526
|
+
passed_after: int().nullable().optional(),
|
|
63527
|
+
passed_before: int().nullable().optional(),
|
|
63528
|
+
runs_after: int().nullable().optional(),
|
|
63529
|
+
runs_before: int().nullable().optional(),
|
|
63530
|
+
task_id: string2().nullable().optional(),
|
|
63531
|
+
tested: boolean2(),
|
|
63532
|
+
time_ms_after: number2().nullable().optional(),
|
|
63533
|
+
time_ms_before: number2().nullable().optional(),
|
|
63534
|
+
tool_calls_after: number2().nullable().optional(),
|
|
63535
|
+
tool_calls_before: number2().nullable().optional()
|
|
63536
|
+
}).describe("The eval fix that redirects the same old address to the same new one, and its latest finished test.");
|
|
63537
|
+
});
|
|
63538
|
+
|
|
63539
|
+
// src/models/libraryredirectnumbers.ts
|
|
63540
|
+
var LibraryRedirectNumbers$zodSchema;
|
|
63541
|
+
var init_libraryredirectnumbers = __esm(() => {
|
|
63542
|
+
init_zod();
|
|
63543
|
+
LibraryRedirectNumbers$zodSchema = object({
|
|
63544
|
+
errors_before: int().describe("Of those, how many got an error."),
|
|
63545
|
+
failing_after: int().describe("Of those, how many still got an error or the old page."),
|
|
63546
|
+
redirected_after: int().describe("Of those, how many were redirected."),
|
|
63547
|
+
requests_after: int().describe("Agent requests to the old address since it went live."),
|
|
63548
|
+
requests_before: int().describe("Agent requests to the old address in the 14 days before it went live."),
|
|
63549
|
+
visits_per_day_after: number2().nullable().optional(),
|
|
63550
|
+
visits_per_day_before: number2().nullable().optional().describe("Agent visits a day to the new address before. Null where its site is not tracked.")
|
|
63551
|
+
});
|
|
63552
|
+
});
|
|
63553
|
+
|
|
63554
|
+
// src/models/libraryredirectrequest.ts
|
|
63555
|
+
var LibraryRedirectRequest$zodSchema;
|
|
63556
|
+
var init_libraryredirectrequest = __esm(() => {
|
|
63557
|
+
init_zod();
|
|
63558
|
+
LibraryRedirectRequest$zodSchema = object({
|
|
63559
|
+
agent: string2().nullable().optional(),
|
|
63560
|
+
path: string2().describe("The exact path asked for, with its query string."),
|
|
63561
|
+
requested_at: string2(),
|
|
63562
|
+
status_code: int()
|
|
63563
|
+
});
|
|
63564
|
+
});
|
|
63565
|
+
|
|
63566
|
+
// src/models/libraryredirectinsights.ts
|
|
63567
|
+
var LibraryRedirectInsightsStatus$zodSchema, LibraryRedirectInsights$zodSchema;
|
|
63568
|
+
var init_libraryredirectinsights = __esm(() => {
|
|
63569
|
+
init_zod();
|
|
63570
|
+
init_libraryredirectcitations();
|
|
63571
|
+
init_libraryredirectday();
|
|
63572
|
+
init_libraryredirecteval();
|
|
63573
|
+
init_libraryredirectnumbers();
|
|
63574
|
+
init_libraryredirectrequest();
|
|
63575
|
+
LibraryRedirectInsightsStatus$zodSchema = _enum([
|
|
63576
|
+
"working",
|
|
63577
|
+
"not_working",
|
|
63578
|
+
"checking",
|
|
63579
|
+
"cant_check"
|
|
63580
|
+
]).describe("Whether agents that ask for the old address are now redirected, from what Agent Analytics recorded at the old address since the redirect went live. `not_working` when requests that still got an error or the old page are at least as many as requests that were redirected (this can show before 7 days). Otherwise `checking` until it has been live 7 days and at least one agent has asked for the old address, then `working` (redirected requests outnumber the rest; `answer` says so when some still fail). `cant_check` when the old address is on a site Agent Analytics does not track. Only 301, 302, 303, 307 and 308 count as redirected. Agent Analytics does not record where a redirect points, so `working` means agents are sent on, not that they reach `to_url`.");
|
|
63581
|
+
LibraryRedirectInsights$zodSchema = object({
|
|
63582
|
+
added_at: string2().nullable().optional(),
|
|
63583
|
+
answer: string2().describe("The status as a sentence, for the top of the redirect's page."),
|
|
63584
|
+
citations: LibraryRedirectCitations$zodSchema.describe("AI answer citations in the 14 days before it went live and since, for both addresses."),
|
|
63585
|
+
daily: array(LibraryRedirectDay$zodSchema).optional().describe("Agent requests to the old address per day, 14 days before it went live through today."),
|
|
63586
|
+
days_live: int(),
|
|
63587
|
+
eval: LibraryRedirectEval$zodSchema.nullable().optional(),
|
|
63588
|
+
from_url: string2().describe("The old address, which now redirects."),
|
|
63589
|
+
headline: string2().describe("The one number behind the status, such as `41 agent errors stopped`."),
|
|
63590
|
+
host: string2(),
|
|
63591
|
+
id: string2().describe("Library redirect ID."),
|
|
63592
|
+
label: string2().describe("The status as shown: Working, Not working, Checking or Can't check."),
|
|
63593
|
+
latest_requests: array(LibraryRedirectRequest$zodSchema).optional(),
|
|
63594
|
+
lede: string2().describe("The numbers behind it, in a sentence or two."),
|
|
63595
|
+
live_on: string2().date().nullable().optional().describe("Day the redirect went live."),
|
|
63596
|
+
numbers: LibraryRedirectNumbers$zodSchema,
|
|
63597
|
+
reason: string2().describe("One sentence on what it means or what to do."),
|
|
63598
|
+
status: LibraryRedirectInsightsStatus$zodSchema.describe("Whether agents that ask for the old address are now redirected, from what Agent Analytics recorded at the old address since the redirect went live. `not_working` when requests that still got an error or the old page are at least as many as requests that were redirected (this can show before 7 days). Otherwise `checking` until it has been live 7 days and at least one agent has asked for the old address, then `working` (redirected requests outnumber the rest; `answer` says so when some still fail). `cant_check` when the old address is on a site Agent Analytics does not track. Only 301, 302, 303, 307 and 308 count as redirected. Agent Analytics does not record where a redirect points, so `working` means agents are sent on, not that they reach `to_url`."),
|
|
63599
|
+
task_id: string2().nullable().optional(),
|
|
63600
|
+
title: string2(),
|
|
63601
|
+
to_url: string2().describe("Where the old address now sends visitors and agents."),
|
|
63602
|
+
tracked: boolean2().describe("Whether the old address is on a site Agent Analytics tracks."),
|
|
63603
|
+
updated_at: string2().nullable().optional()
|
|
63604
|
+
});
|
|
63605
|
+
});
|
|
63606
|
+
|
|
63607
|
+
// src/models/v2libraryredirectsinsightsop.ts
|
|
63608
|
+
var V2LibraryRedirectsInsightsRequest$zodSchema, V2LibraryRedirectsInsightsResponse$zodSchema;
|
|
63609
|
+
var init_v2libraryredirectsinsightsop = __esm(() => {
|
|
63610
|
+
init_zod();
|
|
63611
|
+
init_httpvalidationerror();
|
|
63612
|
+
init_libraryredirectinsights();
|
|
63613
|
+
V2LibraryRedirectsInsightsRequest$zodSchema = object({
|
|
63614
|
+
redirect_id: string2()
|
|
63615
|
+
});
|
|
63616
|
+
V2LibraryRedirectsInsightsResponse$zodSchema = union([
|
|
63617
|
+
LibraryRedirectInsights$zodSchema,
|
|
63618
|
+
HTTPValidationError$zodSchema
|
|
63619
|
+
]);
|
|
63620
|
+
});
|
|
63621
|
+
|
|
63622
|
+
// src/funcs/libraryRedirectsInsights.ts
|
|
63623
|
+
function libraryRedirectsInsights(client$, request, options) {
|
|
63624
|
+
return new APIPromise($do48(client$, request, options));
|
|
63625
|
+
}
|
|
63626
|
+
async function $do48(client$, request, options) {
|
|
63627
|
+
const parsed$ = safeParse4(request, (value$) => V2LibraryRedirectsInsightsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63628
|
+
if (!parsed$.ok) {
|
|
63629
|
+
return [parsed$, { status: "invalid" }];
|
|
63630
|
+
}
|
|
63631
|
+
const payload$ = parsed$.value;
|
|
63632
|
+
const body$ = null;
|
|
63633
|
+
const pathParams$ = {
|
|
63634
|
+
redirect_id: encodeSimple("redirect_id", payload$.redirect_id, {
|
|
63635
|
+
explode: false,
|
|
63636
|
+
charEncoding: "percent"
|
|
63637
|
+
})
|
|
63638
|
+
};
|
|
63639
|
+
const path$ = pathToFunc("/v2/library/redirects/{redirect_id}/insights")(pathParams$);
|
|
63640
|
+
const headers$ = new Headers(compactMap({
|
|
63641
|
+
Accept: "application/json"
|
|
63642
|
+
}));
|
|
63643
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63644
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63645
|
+
const context = {
|
|
63646
|
+
options: client$._options,
|
|
63647
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63648
|
+
operationID: "v2_library_redirects_insights",
|
|
63649
|
+
oAuth2Scopes: null,
|
|
63650
|
+
resolvedSecurity: requestSecurity,
|
|
63651
|
+
securitySource: client$._options.security,
|
|
63652
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63653
|
+
retryCodes: options?.retryCodes || [
|
|
63654
|
+
"429",
|
|
63655
|
+
"500",
|
|
63656
|
+
"502",
|
|
63657
|
+
"503",
|
|
63658
|
+
"504"
|
|
63659
|
+
]
|
|
63660
|
+
};
|
|
63661
|
+
const requestRes = client$._createRequest(context, {
|
|
63662
|
+
security: requestSecurity,
|
|
63663
|
+
method: "GET",
|
|
63664
|
+
baseURL: options?.serverURL,
|
|
63665
|
+
path: path$,
|
|
63666
|
+
headers: headers$,
|
|
63667
|
+
body: body$,
|
|
63668
|
+
userAgent: client$._options.userAgent,
|
|
63669
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63670
|
+
}, options);
|
|
63671
|
+
if (!requestRes.ok) {
|
|
63672
|
+
return [requestRes, { status: "invalid" }];
|
|
63673
|
+
}
|
|
63674
|
+
const req$ = requestRes.value;
|
|
63675
|
+
const doResult = await client$._do(req$, {
|
|
63676
|
+
context,
|
|
63677
|
+
errorCodes: [],
|
|
63678
|
+
retryConfig: context.retryConfig,
|
|
63679
|
+
retryCodes: context.retryCodes
|
|
63680
|
+
});
|
|
63681
|
+
if (!doResult.ok) {
|
|
63682
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63683
|
+
}
|
|
63684
|
+
return [doResult, {
|
|
63685
|
+
status: "complete",
|
|
63686
|
+
request: req$,
|
|
63687
|
+
response: doResult.value
|
|
63688
|
+
}];
|
|
63689
|
+
}
|
|
63690
|
+
var init_libraryRedirectsInsights = __esm(() => {
|
|
63691
|
+
init_encodings();
|
|
63692
|
+
init_primitives();
|
|
63693
|
+
init_schemas4();
|
|
63694
|
+
init_security();
|
|
63695
|
+
init_url();
|
|
63696
|
+
init_v2libraryredirectsinsightsop();
|
|
63697
|
+
init_async();
|
|
63698
|
+
});
|
|
63699
|
+
|
|
63700
|
+
// src/mcp-server/tools/libraryRedirectsInsights.ts
|
|
63701
|
+
var args40, tool$libraryRedirectsInsights;
|
|
63702
|
+
var init_libraryRedirectsInsights2 = __esm(() => {
|
|
63703
|
+
init_libraryRedirectsInsights();
|
|
63704
|
+
init_v2libraryredirectsinsightsop();
|
|
63705
|
+
init_tools();
|
|
63706
|
+
args40 = {
|
|
63707
|
+
request: V2LibraryRedirectsInsightsRequest$zodSchema
|
|
63708
|
+
};
|
|
63709
|
+
tool$libraryRedirectsInsights = {
|
|
63710
|
+
name: "library-redirects-insights",
|
|
63711
|
+
description: `Redirect Insights
|
|
63712
|
+
|
|
63713
|
+
Whether agents that ask for the old address are now redirected: what Agent Analytics recorded at the old address in the 14 days before the redirect went live and since, agent visits to the new page, the eval fix that redirects the same address, and AI citations of both addresses.`,
|
|
63714
|
+
annotations: {
|
|
63715
|
+
title: "",
|
|
63716
|
+
destructiveHint: false,
|
|
63717
|
+
idempotentHint: false,
|
|
63718
|
+
openWorldHint: false,
|
|
63719
|
+
readOnlyHint: true
|
|
63720
|
+
},
|
|
63721
|
+
args: args40,
|
|
63722
|
+
tool: async (client, args, ctx) => {
|
|
63723
|
+
const [result] = await libraryRedirectsInsights(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63724
|
+
if (!result.ok) {
|
|
63725
|
+
return {
|
|
63726
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63727
|
+
isError: true
|
|
63728
|
+
};
|
|
63729
|
+
}
|
|
63730
|
+
return formatResult(result.value);
|
|
63731
|
+
}
|
|
63732
|
+
};
|
|
63733
|
+
});
|
|
63734
|
+
|
|
63735
|
+
// src/models/libraryredirectsummary.ts
|
|
63736
|
+
var LibraryRedirectSummaryStatus$zodSchema, LibraryRedirectSummary$zodSchema;
|
|
63737
|
+
var init_libraryredirectsummary = __esm(() => {
|
|
63738
|
+
init_zod();
|
|
63739
|
+
LibraryRedirectSummaryStatus$zodSchema = _enum([
|
|
63740
|
+
"working",
|
|
63741
|
+
"not_working",
|
|
63742
|
+
"checking",
|
|
63743
|
+
"cant_check"
|
|
63744
|
+
]).describe("Whether agents that ask for the old address are now redirected, from what Agent Analytics recorded at the old address since the redirect went live. `not_working` when requests that still got an error or the old page are at least as many as requests that were redirected (this can show before 7 days). Otherwise `checking` until it has been live 7 days and at least one agent has asked for the old address, then `working` (redirected requests outnumber the rest; `answer` says so when some still fail). `cant_check` when the old address is on a site Agent Analytics does not track. Only 301, 302, 303, 307 and 308 count as redirected. Agent Analytics does not record where a redirect points, so `working` means agents are sent on, not that they reach `to_url`.");
|
|
63745
|
+
LibraryRedirectSummary$zodSchema = object({
|
|
63746
|
+
added_at: string2().nullable().optional(),
|
|
63747
|
+
from_url: string2().describe("The old address, which now redirects."),
|
|
63748
|
+
headline: string2().describe("The one number behind the status, such as `41 agent errors stopped`."),
|
|
63749
|
+
id: string2().describe("Library redirect ID."),
|
|
63750
|
+
label: string2().describe("The status as shown: Working, Not working, Checking or Can't check."),
|
|
63751
|
+
live_on: string2().date().nullable().optional().describe("Day the redirect went live."),
|
|
63752
|
+
reason: string2().describe("One sentence on what it means or what to do."),
|
|
63753
|
+
status: LibraryRedirectSummaryStatus$zodSchema.describe("Whether agents that ask for the old address are now redirected, from what Agent Analytics recorded at the old address since the redirect went live. `not_working` when requests that still got an error or the old page are at least as many as requests that were redirected (this can show before 7 days). Otherwise `checking` until it has been live 7 days and at least one agent has asked for the old address, then `working` (redirected requests outnumber the rest; `answer` says so when some still fail). `cant_check` when the old address is on a site Agent Analytics does not track. Only 301, 302, 303, 307 and 308 count as redirected. Agent Analytics does not record where a redirect points, so `working` means agents are sent on, not that they reach `to_url`."),
|
|
63754
|
+
task_id: string2().nullable().optional(),
|
|
63755
|
+
title: string2(),
|
|
63756
|
+
to_url: string2().describe("Where the old address now sends visitors and agents."),
|
|
63757
|
+
updated_at: string2().nullable().optional()
|
|
63758
|
+
}).describe("A listed redirect with whether it works, in a sentence.");
|
|
63759
|
+
});
|
|
63760
|
+
|
|
63761
|
+
// src/models/libraryredirectsresponse.ts
|
|
63762
|
+
var LibraryRedirectsResponse$zodSchema;
|
|
63763
|
+
var init_libraryredirectsresponse = __esm(() => {
|
|
63764
|
+
init_zod();
|
|
63765
|
+
init_libraryredirectsummary();
|
|
63766
|
+
LibraryRedirectsResponse$zodSchema = object({
|
|
63767
|
+
data: array(LibraryRedirectSummary$zodSchema),
|
|
63768
|
+
limit: int(),
|
|
63769
|
+
offset: int(),
|
|
63770
|
+
total: int()
|
|
63771
|
+
});
|
|
63772
|
+
});
|
|
63773
|
+
|
|
63774
|
+
// src/models/v2libraryredirectslistop.ts
|
|
63775
|
+
var V2LibraryRedirectsListRequest$zodSchema, V2LibraryRedirectsListResponse$zodSchema;
|
|
63776
|
+
var init_v2libraryredirectslistop = __esm(() => {
|
|
63777
|
+
init_zod();
|
|
63778
|
+
init_httpvalidationerror();
|
|
63779
|
+
init_libraryredirectsresponse();
|
|
63780
|
+
V2LibraryRedirectsListRequest$zodSchema = object({
|
|
63781
|
+
limit: int().default(20),
|
|
63782
|
+
offset: int().default(0)
|
|
63783
|
+
});
|
|
63784
|
+
V2LibraryRedirectsListResponse$zodSchema = union([
|
|
63785
|
+
LibraryRedirectsResponse$zodSchema,
|
|
63786
|
+
HTTPValidationError$zodSchema
|
|
63787
|
+
]);
|
|
63788
|
+
});
|
|
63789
|
+
|
|
63790
|
+
// src/funcs/libraryRedirectsList.ts
|
|
63791
|
+
function libraryRedirectsList(client$, request, options) {
|
|
63792
|
+
return new APIPromise($do49(client$, request, options));
|
|
63793
|
+
}
|
|
63794
|
+
async function $do49(client$, request, options) {
|
|
63795
|
+
const parsed$ = safeParse4(request, (value$) => V2LibraryRedirectsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63796
|
+
if (!parsed$.ok) {
|
|
63797
|
+
return [parsed$, { status: "invalid" }];
|
|
63798
|
+
}
|
|
63799
|
+
const payload$ = parsed$.value;
|
|
63800
|
+
const body$ = null;
|
|
63801
|
+
const path$ = pathToFunc("/v2/library/redirects")();
|
|
63802
|
+
const query$ = encodeFormQuery({
|
|
63803
|
+
limit: payload$?.limit,
|
|
63804
|
+
offset: payload$?.offset
|
|
63805
|
+
});
|
|
63806
|
+
const headers$ = new Headers(compactMap({
|
|
63807
|
+
Accept: "application/json"
|
|
63808
|
+
}));
|
|
63809
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63810
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63811
|
+
const context = {
|
|
63812
|
+
options: client$._options,
|
|
63813
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63814
|
+
operationID: "v2_library_redirects_list",
|
|
63815
|
+
oAuth2Scopes: null,
|
|
63816
|
+
resolvedSecurity: requestSecurity,
|
|
63817
|
+
securitySource: client$._options.security,
|
|
63818
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63819
|
+
retryCodes: options?.retryCodes || [
|
|
63820
|
+
"429",
|
|
63821
|
+
"500",
|
|
63822
|
+
"502",
|
|
63823
|
+
"503",
|
|
63824
|
+
"504"
|
|
63825
|
+
]
|
|
63826
|
+
};
|
|
63827
|
+
const requestRes = client$._createRequest(context, {
|
|
63828
|
+
security: requestSecurity,
|
|
63829
|
+
method: "GET",
|
|
63830
|
+
baseURL: options?.serverURL,
|
|
63831
|
+
path: path$,
|
|
63832
|
+
headers: headers$,
|
|
63833
|
+
query: query$,
|
|
63834
|
+
body: body$,
|
|
63835
|
+
userAgent: client$._options.userAgent,
|
|
63836
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63837
|
+
}, options);
|
|
63838
|
+
if (!requestRes.ok) {
|
|
63839
|
+
return [requestRes, { status: "invalid" }];
|
|
63840
|
+
}
|
|
63841
|
+
const req$ = requestRes.value;
|
|
63842
|
+
const doResult = await client$._do(req$, {
|
|
63843
|
+
context,
|
|
63844
|
+
errorCodes: [],
|
|
63845
|
+
retryConfig: context.retryConfig,
|
|
63846
|
+
retryCodes: context.retryCodes
|
|
63847
|
+
});
|
|
63848
|
+
if (!doResult.ok) {
|
|
63849
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63850
|
+
}
|
|
63851
|
+
return [doResult, {
|
|
63852
|
+
status: "complete",
|
|
63853
|
+
request: req$,
|
|
63854
|
+
response: doResult.value
|
|
63855
|
+
}];
|
|
63856
|
+
}
|
|
63857
|
+
var init_libraryRedirectsList = __esm(() => {
|
|
63858
|
+
init_encodings();
|
|
63859
|
+
init_primitives();
|
|
63860
|
+
init_schemas4();
|
|
63861
|
+
init_security();
|
|
63862
|
+
init_url();
|
|
63863
|
+
init_v2libraryredirectslistop();
|
|
63864
|
+
init_async();
|
|
63865
|
+
});
|
|
63866
|
+
|
|
63867
|
+
// src/mcp-server/tools/libraryRedirectsList.ts
|
|
63868
|
+
var args41, tool$libraryRedirectsList;
|
|
63869
|
+
var init_libraryRedirectsList2 = __esm(() => {
|
|
63870
|
+
init_libraryRedirectsList();
|
|
63871
|
+
init_v2libraryredirectslistop();
|
|
63872
|
+
init_tools();
|
|
63873
|
+
args41 = {
|
|
63874
|
+
request: V2LibraryRedirectsListRequest$zodSchema.optional()
|
|
63875
|
+
};
|
|
63876
|
+
tool$libraryRedirectsList = {
|
|
63877
|
+
name: "library-redirects-list",
|
|
63878
|
+
description: `List Redirects
|
|
63879
|
+
|
|
63880
|
+
Returns redirects recorded in the Library, newest first, each with whether agents that ask for the old address are now redirected.`,
|
|
63881
|
+
annotations: {
|
|
63882
|
+
title: "",
|
|
63883
|
+
destructiveHint: false,
|
|
63884
|
+
idempotentHint: false,
|
|
63885
|
+
openWorldHint: false,
|
|
63886
|
+
readOnlyHint: true
|
|
63887
|
+
},
|
|
63888
|
+
args: args41,
|
|
63889
|
+
tool: async (client, args, ctx) => {
|
|
63890
|
+
const [result] = await libraryRedirectsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63891
|
+
if (!result.ok) {
|
|
63892
|
+
return {
|
|
63893
|
+
content: [{ type: "text", text: result.error.message }],
|
|
63894
|
+
isError: true
|
|
63895
|
+
};
|
|
63896
|
+
}
|
|
63897
|
+
return formatResult(result.value);
|
|
63898
|
+
}
|
|
63899
|
+
};
|
|
63900
|
+
});
|
|
63901
|
+
|
|
63902
|
+
// src/models/updatelibraryredirectrequest.ts
|
|
63903
|
+
var UpdateLibraryRedirectRequest$zodSchema;
|
|
63904
|
+
var init_updatelibraryredirectrequest = __esm(() => {
|
|
63905
|
+
init_zod();
|
|
63906
|
+
UpdateLibraryRedirectRequest$zodSchema = object({
|
|
63907
|
+
live_on: string2().date().optional().describe("Day the redirect went live."),
|
|
63908
|
+
title: string2().optional()
|
|
63909
|
+
});
|
|
63910
|
+
});
|
|
63911
|
+
|
|
63912
|
+
// src/models/v2libraryredirectsupdateop.ts
|
|
63913
|
+
var V2LibraryRedirectsUpdateRequest$zodSchema, V2LibraryRedirectsUpdateResponse$zodSchema;
|
|
63914
|
+
var init_v2libraryredirectsupdateop = __esm(() => {
|
|
63915
|
+
init_zod();
|
|
63916
|
+
init_httpvalidationerror();
|
|
63917
|
+
init_libraryredirect();
|
|
63918
|
+
init_updatelibraryredirectrequest();
|
|
63919
|
+
V2LibraryRedirectsUpdateRequest$zodSchema = object({
|
|
63920
|
+
body: UpdateLibraryRedirectRequest$zodSchema,
|
|
63921
|
+
redirect_id: string2()
|
|
63922
|
+
});
|
|
63923
|
+
V2LibraryRedirectsUpdateResponse$zodSchema = union([
|
|
63924
|
+
LibraryRedirect$zodSchema,
|
|
63925
|
+
HTTPValidationError$zodSchema
|
|
63926
|
+
]);
|
|
63927
|
+
});
|
|
63928
|
+
|
|
63929
|
+
// src/funcs/libraryRedirectsUpdate.ts
|
|
63930
|
+
function libraryRedirectsUpdate(client$, request, options) {
|
|
63931
|
+
return new APIPromise($do50(client$, request, options));
|
|
63932
|
+
}
|
|
63933
|
+
async function $do50(client$, request, options) {
|
|
63934
|
+
const parsed$ = safeParse4(request, (value$) => V2LibraryRedirectsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63935
|
+
if (!parsed$.ok) {
|
|
63936
|
+
return [parsed$, { status: "invalid" }];
|
|
63937
|
+
}
|
|
63938
|
+
const payload$ = parsed$.value;
|
|
63939
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
63940
|
+
const pathParams$ = {
|
|
63941
|
+
redirect_id: encodeSimple("redirect_id", payload$.redirect_id, {
|
|
63942
|
+
explode: false,
|
|
63943
|
+
charEncoding: "percent"
|
|
63944
|
+
})
|
|
63945
|
+
};
|
|
63946
|
+
const path$ = pathToFunc("/v2/library/redirects/{redirect_id}")(pathParams$);
|
|
63947
|
+
const headers$ = new Headers(compactMap({
|
|
63948
|
+
"Content-Type": "application/json",
|
|
63949
|
+
Accept: "application/json"
|
|
63950
|
+
}));
|
|
63951
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
63952
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63953
|
+
const context = {
|
|
63954
|
+
options: client$._options,
|
|
63955
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63956
|
+
operationID: "v2_library_redirects_update",
|
|
63957
|
+
oAuth2Scopes: null,
|
|
63958
|
+
resolvedSecurity: requestSecurity,
|
|
63959
|
+
securitySource: client$._options.security,
|
|
63960
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63961
|
+
retryCodes: options?.retryCodes || [
|
|
63962
|
+
"429",
|
|
63963
|
+
"500",
|
|
63964
|
+
"502",
|
|
63965
|
+
"503",
|
|
63966
|
+
"504"
|
|
63967
|
+
]
|
|
63968
|
+
};
|
|
63969
|
+
const requestRes = client$._createRequest(context, {
|
|
63970
|
+
security: requestSecurity,
|
|
63971
|
+
method: "PATCH",
|
|
63972
|
+
baseURL: options?.serverURL,
|
|
63973
|
+
path: path$,
|
|
63974
|
+
headers: headers$,
|
|
63975
|
+
body: body$,
|
|
63976
|
+
userAgent: client$._options.userAgent,
|
|
63977
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63978
|
+
}, options);
|
|
63979
|
+
if (!requestRes.ok) {
|
|
63980
|
+
return [requestRes, { status: "invalid" }];
|
|
63981
|
+
}
|
|
63982
|
+
const req$ = requestRes.value;
|
|
63983
|
+
const doResult = await client$._do(req$, {
|
|
63984
|
+
context,
|
|
63985
|
+
errorCodes: [],
|
|
63986
|
+
retryConfig: context.retryConfig,
|
|
63987
|
+
retryCodes: context.retryCodes
|
|
63988
|
+
});
|
|
63989
|
+
if (!doResult.ok) {
|
|
63990
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
63991
|
+
}
|
|
63992
|
+
return [doResult, {
|
|
63993
|
+
status: "complete",
|
|
63994
|
+
request: req$,
|
|
63995
|
+
response: doResult.value
|
|
63996
|
+
}];
|
|
63997
|
+
}
|
|
63998
|
+
var init_libraryRedirectsUpdate = __esm(() => {
|
|
63999
|
+
init_encodings();
|
|
64000
|
+
init_primitives();
|
|
64001
|
+
init_schemas4();
|
|
64002
|
+
init_security();
|
|
64003
|
+
init_url();
|
|
64004
|
+
init_v2libraryredirectsupdateop();
|
|
64005
|
+
init_async();
|
|
64006
|
+
});
|
|
64007
|
+
|
|
64008
|
+
// src/mcp-server/tools/libraryRedirectsUpdate.ts
|
|
64009
|
+
var args42, tool$libraryRedirectsUpdate;
|
|
64010
|
+
var init_libraryRedirectsUpdate2 = __esm(() => {
|
|
64011
|
+
init_libraryRedirectsUpdate();
|
|
64012
|
+
init_v2libraryredirectsupdateop();
|
|
64013
|
+
init_tools();
|
|
64014
|
+
args42 = {
|
|
64015
|
+
request: V2LibraryRedirectsUpdateRequest$zodSchema
|
|
64016
|
+
};
|
|
64017
|
+
tool$libraryRedirectsUpdate = {
|
|
64018
|
+
name: "library-redirects-update",
|
|
64019
|
+
description: `Update Redirect
|
|
64020
|
+
|
|
64021
|
+
Renames a Library redirect or changes the day it went live; omitted fields remain unchanged.`,
|
|
64022
|
+
annotations: {
|
|
64023
|
+
title: "",
|
|
64024
|
+
destructiveHint: false,
|
|
64025
|
+
idempotentHint: false,
|
|
64026
|
+
openWorldHint: false,
|
|
64027
|
+
readOnlyHint: false
|
|
64028
|
+
},
|
|
64029
|
+
args: args42,
|
|
64030
|
+
tool: async (client, args, ctx) => {
|
|
64031
|
+
const [result] = await libraryRedirectsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64032
|
+
if (!result.ok) {
|
|
64033
|
+
return {
|
|
64034
|
+
content: [{ type: "text", text: result.error.message }],
|
|
64035
|
+
isError: true
|
|
64036
|
+
};
|
|
64037
|
+
}
|
|
64038
|
+
return formatResult(result.value);
|
|
64039
|
+
}
|
|
64040
|
+
};
|
|
64041
|
+
});
|
|
64042
|
+
|
|
62114
64043
|
// src/funcs/mcpServersList.ts
|
|
62115
64044
|
function mcpServersList(client$, options) {
|
|
62116
|
-
return new APIPromise($
|
|
64045
|
+
return new APIPromise($do51(client$, options));
|
|
62117
64046
|
}
|
|
62118
|
-
async function $
|
|
64047
|
+
async function $do51(client$, options) {
|
|
62119
64048
|
const path$ = pathToFunc("/v2/mcp-servers")();
|
|
62120
64049
|
const headers$ = new Headers(compactMap({
|
|
62121
64050
|
Accept: "application/json"
|
|
@@ -62297,9 +64226,9 @@ var init_v2opportunitieslistop = __esm(() => {
|
|
|
62297
64226
|
|
|
62298
64227
|
// src/funcs/opportunitiesList.ts
|
|
62299
64228
|
function opportunitiesList(client$, request, options) {
|
|
62300
|
-
return new APIPromise($
|
|
64229
|
+
return new APIPromise($do52(client$, request, options));
|
|
62301
64230
|
}
|
|
62302
|
-
async function $
|
|
64231
|
+
async function $do52(client$, request, options) {
|
|
62303
64232
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62304
64233
|
if (!parsed$.ok) {
|
|
62305
64234
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62377,12 +64306,12 @@ var init_opportunitiesList = __esm(() => {
|
|
|
62377
64306
|
});
|
|
62378
64307
|
|
|
62379
64308
|
// src/mcp-server/tools/opportunitiesList.ts
|
|
62380
|
-
var
|
|
64309
|
+
var args43, tool$opportunitiesList;
|
|
62381
64310
|
var init_opportunitiesList2 = __esm(() => {
|
|
62382
64311
|
init_opportunitiesList();
|
|
62383
64312
|
init_v2opportunitieslistop();
|
|
62384
64313
|
init_tools();
|
|
62385
|
-
|
|
64314
|
+
args43 = {
|
|
62386
64315
|
request: V2OpportunitiesListRequest$zodSchema.optional()
|
|
62387
64316
|
};
|
|
62388
64317
|
tool$opportunitiesList = {
|
|
@@ -62397,7 +64326,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
|
|
|
62397
64326
|
openWorldHint: false,
|
|
62398
64327
|
readOnlyHint: true
|
|
62399
64328
|
},
|
|
62400
|
-
args:
|
|
64329
|
+
args: args43,
|
|
62401
64330
|
tool: async (client, args, ctx) => {
|
|
62402
64331
|
const [result] = await opportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62403
64332
|
if (!result.ok) {
|
|
@@ -62469,9 +64398,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
|
|
|
62469
64398
|
|
|
62470
64399
|
// src/funcs/opportunitiesRetrieve.ts
|
|
62471
64400
|
function opportunitiesRetrieve(client$, request, options) {
|
|
62472
|
-
return new APIPromise($
|
|
64401
|
+
return new APIPromise($do53(client$, request, options));
|
|
62473
64402
|
}
|
|
62474
|
-
async function $
|
|
64403
|
+
async function $do53(client$, request, options) {
|
|
62475
64404
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62476
64405
|
if (!parsed$.ok) {
|
|
62477
64406
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62552,12 +64481,12 @@ var init_opportunitiesRetrieve = __esm(() => {
|
|
|
62552
64481
|
});
|
|
62553
64482
|
|
|
62554
64483
|
// src/mcp-server/tools/opportunitiesRetrieve.ts
|
|
62555
|
-
var
|
|
64484
|
+
var args44, tool$opportunitiesRetrieve;
|
|
62556
64485
|
var init_opportunitiesRetrieve2 = __esm(() => {
|
|
62557
64486
|
init_opportunitiesRetrieve();
|
|
62558
64487
|
init_v2opportunitiesretrieveop();
|
|
62559
64488
|
init_tools();
|
|
62560
|
-
|
|
64489
|
+
args44 = {
|
|
62561
64490
|
request: V2OpportunitiesRetrieveRequest$zodSchema
|
|
62562
64491
|
};
|
|
62563
64492
|
tool$opportunitiesRetrieve = {
|
|
@@ -62572,7 +64501,7 @@ Returns one computed opportunity and its execution context for the selected date
|
|
|
62572
64501
|
openWorldHint: false,
|
|
62573
64502
|
readOnlyHint: true
|
|
62574
64503
|
},
|
|
62575
|
-
args:
|
|
64504
|
+
args: args44,
|
|
62576
64505
|
tool: async (client, args, ctx) => {
|
|
62577
64506
|
const [result] = await opportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62578
64507
|
if (!result.ok) {
|
|
@@ -62629,9 +64558,9 @@ var init_v2pluginevalsresultslistop = __esm(() => {
|
|
|
62629
64558
|
|
|
62630
64559
|
// src/funcs/pluginEvalsResultsList.ts
|
|
62631
64560
|
function pluginEvalsResultsList(client$, request, options) {
|
|
62632
|
-
return new APIPromise($
|
|
64561
|
+
return new APIPromise($do54(client$, request, options));
|
|
62633
64562
|
}
|
|
62634
|
-
async function $
|
|
64563
|
+
async function $do54(client$, request, options) {
|
|
62635
64564
|
const parsed$ = safeParse4(request, (value$) => V2PluginEvalsResultsListRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62636
64565
|
if (!parsed$.ok) {
|
|
62637
64566
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62704,12 +64633,12 @@ var init_pluginEvalsResultsList = __esm(() => {
|
|
|
62704
64633
|
});
|
|
62705
64634
|
|
|
62706
64635
|
// src/mcp-server/tools/pluginEvalsResultsList.ts
|
|
62707
|
-
var
|
|
64636
|
+
var args45, tool$pluginEvalsResultsList;
|
|
62708
64637
|
var init_pluginEvalsResultsList2 = __esm(() => {
|
|
62709
64638
|
init_pluginEvalsResultsList();
|
|
62710
64639
|
init_v2pluginevalsresultslistop();
|
|
62711
64640
|
init_tools();
|
|
62712
|
-
|
|
64641
|
+
args45 = {
|
|
62713
64642
|
request: V2PluginEvalsResultsListRequest$zodSchema
|
|
62714
64643
|
};
|
|
62715
64644
|
tool$pluginEvalsResultsList = {
|
|
@@ -62724,7 +64653,7 @@ Returns a day's plugin eval results, one per plugin with results that day. Each
|
|
|
62724
64653
|
openWorldHint: false,
|
|
62725
64654
|
readOnlyHint: true
|
|
62726
64655
|
},
|
|
62727
|
-
args:
|
|
64656
|
+
args: args45,
|
|
62728
64657
|
tool: async (client, args, ctx) => {
|
|
62729
64658
|
const [result] = await pluginEvalsResultsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62730
64659
|
if (!result.ok) {
|
|
@@ -62780,9 +64709,9 @@ var init_createv2promptsrequest = __esm(() => {
|
|
|
62780
64709
|
|
|
62781
64710
|
// src/funcs/promptsCreate.ts
|
|
62782
64711
|
function promptsCreate(client$, request, options) {
|
|
62783
|
-
return new APIPromise($
|
|
64712
|
+
return new APIPromise($do55(client$, request, options));
|
|
62784
64713
|
}
|
|
62785
|
-
async function $
|
|
64714
|
+
async function $do55(client$, request, options) {
|
|
62786
64715
|
const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62787
64716
|
if (!parsed$.ok) {
|
|
62788
64717
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62852,12 +64781,12 @@ var init_promptsCreate = __esm(() => {
|
|
|
62852
64781
|
});
|
|
62853
64782
|
|
|
62854
64783
|
// src/mcp-server/tools/promptsCreate.ts
|
|
62855
|
-
var
|
|
64784
|
+
var args46, tool$promptsCreate;
|
|
62856
64785
|
var init_promptsCreate2 = __esm(() => {
|
|
62857
64786
|
init_promptsCreate();
|
|
62858
64787
|
init_createv2promptsrequest();
|
|
62859
64788
|
init_tools();
|
|
62860
|
-
|
|
64789
|
+
args46 = {
|
|
62861
64790
|
request: CreateV2PromptsRequest$zodSchema
|
|
62862
64791
|
};
|
|
62863
64792
|
tool$promptsCreate = {
|
|
@@ -62872,7 +64801,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
|
|
|
62872
64801
|
openWorldHint: false,
|
|
62873
64802
|
readOnlyHint: false
|
|
62874
64803
|
},
|
|
62875
|
-
args:
|
|
64804
|
+
args: args46,
|
|
62876
64805
|
tool: async (client, args, ctx) => {
|
|
62877
64806
|
const [result] = await promptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62878
64807
|
if (!result.ok) {
|
|
@@ -62912,9 +64841,9 @@ var init_v2promptsdeleteop = __esm(() => {
|
|
|
62912
64841
|
|
|
62913
64842
|
// src/funcs/promptsDelete.ts
|
|
62914
64843
|
function promptsDelete(client$, request, options) {
|
|
62915
|
-
return new APIPromise($
|
|
64844
|
+
return new APIPromise($do56(client$, request, options));
|
|
62916
64845
|
}
|
|
62917
|
-
async function $
|
|
64846
|
+
async function $do56(client$, request, options) {
|
|
62918
64847
|
const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62919
64848
|
if (!parsed$.ok) {
|
|
62920
64849
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62989,12 +64918,12 @@ var init_promptsDelete = __esm(() => {
|
|
|
62989
64918
|
});
|
|
62990
64919
|
|
|
62991
64920
|
// src/mcp-server/tools/promptsDelete.ts
|
|
62992
|
-
var
|
|
64921
|
+
var args47, tool$promptsDelete;
|
|
62993
64922
|
var init_promptsDelete2 = __esm(() => {
|
|
62994
64923
|
init_promptsDelete();
|
|
62995
64924
|
init_v2promptsdeleteop();
|
|
62996
64925
|
init_tools();
|
|
62997
|
-
|
|
64926
|
+
args47 = {
|
|
62998
64927
|
request: V2PromptsDeleteRequest$zodSchema
|
|
62999
64928
|
};
|
|
63000
64929
|
tool$promptsDelete = {
|
|
@@ -63009,7 +64938,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
|
|
|
63009
64938
|
openWorldHint: false,
|
|
63010
64939
|
readOnlyHint: false
|
|
63011
64940
|
},
|
|
63012
|
-
args:
|
|
64941
|
+
args: args47,
|
|
63013
64942
|
tool: async (client, args, ctx) => {
|
|
63014
64943
|
const [result] = await promptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63015
64944
|
if (!result.ok) {
|
|
@@ -63142,9 +65071,9 @@ var init_v2promptslistop = __esm(() => {
|
|
|
63142
65071
|
|
|
63143
65072
|
// src/funcs/promptsList.ts
|
|
63144
65073
|
function promptsList(client$, request, options) {
|
|
63145
|
-
return new APIPromise($
|
|
65074
|
+
return new APIPromise($do57(client$, request, options));
|
|
63146
65075
|
}
|
|
63147
|
-
async function $
|
|
65076
|
+
async function $do57(client$, request, options) {
|
|
63148
65077
|
const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63149
65078
|
if (!parsed$.ok) {
|
|
63150
65079
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63221,12 +65150,12 @@ var init_promptsList = __esm(() => {
|
|
|
63221
65150
|
});
|
|
63222
65151
|
|
|
63223
65152
|
// src/mcp-server/tools/promptsList.ts
|
|
63224
|
-
var
|
|
65153
|
+
var args48, tool$promptsList;
|
|
63225
65154
|
var init_promptsList2 = __esm(() => {
|
|
63226
65155
|
init_promptsList();
|
|
63227
65156
|
init_v2promptslistop();
|
|
63228
65157
|
init_tools();
|
|
63229
|
-
|
|
65158
|
+
args48 = {
|
|
63230
65159
|
request: V2PromptsListRequest$zodSchema.optional()
|
|
63231
65160
|
};
|
|
63232
65161
|
tool$promptsList = {
|
|
@@ -63241,7 +65170,7 @@ Returns active and inactive prompts by default, newest first. Set \`include_arch
|
|
|
63241
65170
|
openWorldHint: false,
|
|
63242
65171
|
readOnlyHint: true
|
|
63243
65172
|
},
|
|
63244
|
-
args:
|
|
65173
|
+
args: args48,
|
|
63245
65174
|
tool: async (client, args, ctx) => {
|
|
63246
65175
|
const [result] = await promptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63247
65176
|
if (!result.ok) {
|
|
@@ -63272,9 +65201,9 @@ var init_v2promptsretrieveop = __esm(() => {
|
|
|
63272
65201
|
|
|
63273
65202
|
// src/funcs/promptsRetrieve.ts
|
|
63274
65203
|
function promptsRetrieve(client$, request, options) {
|
|
63275
|
-
return new APIPromise($
|
|
65204
|
+
return new APIPromise($do58(client$, request, options));
|
|
63276
65205
|
}
|
|
63277
|
-
async function $
|
|
65206
|
+
async function $do58(client$, request, options) {
|
|
63278
65207
|
const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63279
65208
|
if (!parsed$.ok) {
|
|
63280
65209
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63349,12 +65278,12 @@ var init_promptsRetrieve = __esm(() => {
|
|
|
63349
65278
|
});
|
|
63350
65279
|
|
|
63351
65280
|
// src/mcp-server/tools/promptsRetrieve.ts
|
|
63352
|
-
var
|
|
65281
|
+
var args49, tool$promptsRetrieve;
|
|
63353
65282
|
var init_promptsRetrieve2 = __esm(() => {
|
|
63354
65283
|
init_promptsRetrieve();
|
|
63355
65284
|
init_v2promptsretrieveop();
|
|
63356
65285
|
init_tools();
|
|
63357
|
-
|
|
65286
|
+
args49 = {
|
|
63358
65287
|
request: V2PromptsRetrieveRequest$zodSchema
|
|
63359
65288
|
};
|
|
63360
65289
|
tool$promptsRetrieve = {
|
|
@@ -63369,7 +65298,7 @@ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-a
|
|
|
63369
65298
|
openWorldHint: false,
|
|
63370
65299
|
readOnlyHint: true
|
|
63371
65300
|
},
|
|
63372
|
-
args:
|
|
65301
|
+
args: args49,
|
|
63373
65302
|
tool: async (client, args, ctx) => {
|
|
63374
65303
|
const [result] = await promptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63375
65304
|
if (!result.ok) {
|
|
@@ -63396,9 +65325,9 @@ var init_createv2promptrunrequest = __esm(() => {
|
|
|
63396
65325
|
|
|
63397
65326
|
// src/funcs/promptsRun.ts
|
|
63398
65327
|
function promptsRun(client$, request, options) {
|
|
63399
|
-
return new APIPromise($
|
|
65328
|
+
return new APIPromise($do59(client$, request, options));
|
|
63400
65329
|
}
|
|
63401
|
-
async function $
|
|
65330
|
+
async function $do59(client$, request, options) {
|
|
63402
65331
|
const parsed$ = safeParse4(request, (value$) => CreateV2PromptRunRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63403
65332
|
if (!parsed$.ok) {
|
|
63404
65333
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63468,12 +65397,12 @@ var init_promptsRun = __esm(() => {
|
|
|
63468
65397
|
});
|
|
63469
65398
|
|
|
63470
65399
|
// src/mcp-server/tools/promptsRun.ts
|
|
63471
|
-
var
|
|
65400
|
+
var args50, tool$promptsRun;
|
|
63472
65401
|
var init_promptsRun2 = __esm(() => {
|
|
63473
65402
|
init_promptsRun();
|
|
63474
65403
|
init_createv2promptrunrequest();
|
|
63475
65404
|
init_tools();
|
|
63476
|
-
|
|
65405
|
+
args50 = {
|
|
63477
65406
|
request: CreateV2PromptRunRequest$zodSchema
|
|
63478
65407
|
};
|
|
63479
65408
|
tool$promptsRun = {
|
|
@@ -63498,7 +65427,7 @@ coding-agent targets. The response returns a run ID to poll with
|
|
|
63498
65427
|
openWorldHint: false,
|
|
63499
65428
|
readOnlyHint: false
|
|
63500
65429
|
},
|
|
63501
|
-
args:
|
|
65430
|
+
args: args50,
|
|
63502
65431
|
tool: async (client, args, ctx) => {
|
|
63503
65432
|
const [result] = await promptsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63504
65433
|
if (!result.ok) {
|
|
@@ -63585,9 +65514,9 @@ var init_v2promptrunscancelop = __esm(() => {
|
|
|
63585
65514
|
|
|
63586
65515
|
// src/funcs/promptsRunCancel.ts
|
|
63587
65516
|
function promptsRunCancel(client$, request, options) {
|
|
63588
|
-
return new APIPromise($
|
|
65517
|
+
return new APIPromise($do60(client$, request, options));
|
|
63589
65518
|
}
|
|
63590
|
-
async function $
|
|
65519
|
+
async function $do60(client$, request, options) {
|
|
63591
65520
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63592
65521
|
if (!parsed$.ok) {
|
|
63593
65522
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63662,12 +65591,12 @@ var init_promptsRunCancel = __esm(() => {
|
|
|
63662
65591
|
});
|
|
63663
65592
|
|
|
63664
65593
|
// src/mcp-server/tools/promptsRunCancel.ts
|
|
63665
|
-
var
|
|
65594
|
+
var args51, tool$promptsRunCancel;
|
|
63666
65595
|
var init_promptsRunCancel2 = __esm(() => {
|
|
63667
65596
|
init_promptsRunCancel();
|
|
63668
65597
|
init_v2promptrunscancelop();
|
|
63669
65598
|
init_tools();
|
|
63670
|
-
|
|
65599
|
+
args51 = {
|
|
63671
65600
|
request: V2PromptRunsCancelRequest$zodSchema
|
|
63672
65601
|
};
|
|
63673
65602
|
tool$promptsRunCancel = {
|
|
@@ -63682,7 +65611,7 @@ Marks an active prompt run as cancelled and prevents queued prompts from startin
|
|
|
63682
65611
|
openWorldHint: false,
|
|
63683
65612
|
readOnlyHint: false
|
|
63684
65613
|
},
|
|
63685
|
-
args:
|
|
65614
|
+
args: args51,
|
|
63686
65615
|
tool: async (client, args, ctx) => {
|
|
63687
65616
|
const [result] = await promptsRunCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63688
65617
|
if (!result.ok) {
|
|
@@ -63797,9 +65726,9 @@ var init_v2promptrunslistop = __esm(() => {
|
|
|
63797
65726
|
|
|
63798
65727
|
// src/funcs/promptsRunsList.ts
|
|
63799
65728
|
function promptsRunsList(client$, request, options) {
|
|
63800
|
-
return new APIPromise($
|
|
65729
|
+
return new APIPromise($do61(client$, request, options));
|
|
63801
65730
|
}
|
|
63802
|
-
async function $
|
|
65731
|
+
async function $do61(client$, request, options) {
|
|
63803
65732
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63804
65733
|
if (!parsed$.ok) {
|
|
63805
65734
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63877,12 +65806,12 @@ var init_promptsRunsList = __esm(() => {
|
|
|
63877
65806
|
});
|
|
63878
65807
|
|
|
63879
65808
|
// src/mcp-server/tools/promptsRunsList.ts
|
|
63880
|
-
var
|
|
65809
|
+
var args52, tool$promptsRunsList;
|
|
63881
65810
|
var init_promptsRunsList2 = __esm(() => {
|
|
63882
65811
|
init_promptsRunsList();
|
|
63883
65812
|
init_v2promptrunslistop();
|
|
63884
65813
|
init_tools();
|
|
63885
|
-
|
|
65814
|
+
args52 = {
|
|
63886
65815
|
request: V2PromptRunsListRequest$zodSchema.optional()
|
|
63887
65816
|
};
|
|
63888
65817
|
tool$promptsRunsList = {
|
|
@@ -63897,7 +65826,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
|
|
|
63897
65826
|
openWorldHint: false,
|
|
63898
65827
|
readOnlyHint: true
|
|
63899
65828
|
},
|
|
63900
|
-
args:
|
|
65829
|
+
args: args52,
|
|
63901
65830
|
tool: async (client, args, ctx) => {
|
|
63902
65831
|
const [result] = await promptsRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63903
65832
|
if (!result.ok) {
|
|
@@ -64011,9 +65940,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
|
|
|
64011
65940
|
|
|
64012
65941
|
// src/funcs/promptsRunsRetrieve.ts
|
|
64013
65942
|
function promptsRunsRetrieve(client$, request, options) {
|
|
64014
|
-
return new APIPromise($
|
|
65943
|
+
return new APIPromise($do62(client$, request, options));
|
|
64015
65944
|
}
|
|
64016
|
-
async function $
|
|
65945
|
+
async function $do62(client$, request, options) {
|
|
64017
65946
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64018
65947
|
if (!parsed$.ok) {
|
|
64019
65948
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64088,12 +66017,12 @@ var init_promptsRunsRetrieve = __esm(() => {
|
|
|
64088
66017
|
});
|
|
64089
66018
|
|
|
64090
66019
|
// src/mcp-server/tools/promptsRunsRetrieve.ts
|
|
64091
|
-
var
|
|
66020
|
+
var args53, tool$promptsRunsRetrieve;
|
|
64092
66021
|
var init_promptsRunsRetrieve2 = __esm(() => {
|
|
64093
66022
|
init_promptsRunsRetrieve();
|
|
64094
66023
|
init_v2promptrunsretrieveop();
|
|
64095
66024
|
init_tools();
|
|
64096
|
-
|
|
66025
|
+
args53 = {
|
|
64097
66026
|
request: V2PromptRunsRetrieveRequest$zodSchema
|
|
64098
66027
|
};
|
|
64099
66028
|
tool$promptsRunsRetrieve = {
|
|
@@ -64108,7 +66037,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
|
|
|
64108
66037
|
openWorldHint: false,
|
|
64109
66038
|
readOnlyHint: true
|
|
64110
66039
|
},
|
|
64111
|
-
args:
|
|
66040
|
+
args: args53,
|
|
64112
66041
|
tool: async (client, args, ctx) => {
|
|
64113
66042
|
const [result] = await promptsRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64114
66043
|
if (!result.ok) {
|
|
@@ -64147,9 +66076,9 @@ var init_v2promptrunstatusretrieveop = __esm(() => {
|
|
|
64147
66076
|
|
|
64148
66077
|
// src/funcs/promptsRunStatus.ts
|
|
64149
66078
|
function promptsRunStatus(client$, request, options) {
|
|
64150
|
-
return new APIPromise($
|
|
66079
|
+
return new APIPromise($do63(client$, request, options));
|
|
64151
66080
|
}
|
|
64152
|
-
async function $
|
|
66081
|
+
async function $do63(client$, request, options) {
|
|
64153
66082
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64154
66083
|
if (!parsed$.ok) {
|
|
64155
66084
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64224,12 +66153,12 @@ var init_promptsRunStatus = __esm(() => {
|
|
|
64224
66153
|
});
|
|
64225
66154
|
|
|
64226
66155
|
// src/mcp-server/tools/promptsRunStatus.ts
|
|
64227
|
-
var
|
|
66156
|
+
var args54, tool$promptsRunStatus;
|
|
64228
66157
|
var init_promptsRunStatus2 = __esm(() => {
|
|
64229
66158
|
init_promptsRunStatus();
|
|
64230
66159
|
init_v2promptrunstatusretrieveop();
|
|
64231
66160
|
init_tools();
|
|
64232
|
-
|
|
66161
|
+
args54 = {
|
|
64233
66162
|
request: V2PromptRunStatusRetrieveRequest$zodSchema
|
|
64234
66163
|
};
|
|
64235
66164
|
tool$promptsRunStatus = {
|
|
@@ -64247,7 +66176,7 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
|
|
|
64247
66176
|
openWorldHint: false,
|
|
64248
66177
|
readOnlyHint: true
|
|
64249
66178
|
},
|
|
64250
|
-
args:
|
|
66179
|
+
args: args54,
|
|
64251
66180
|
tool: async (client, args, ctx) => {
|
|
64252
66181
|
const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64253
66182
|
if (!result.ok) {
|
|
@@ -64263,9 +66192,9 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
|
|
|
64263
66192
|
|
|
64264
66193
|
// src/funcs/promptsTagsList.ts
|
|
64265
66194
|
function promptsTagsList(client$, options) {
|
|
64266
|
-
return new APIPromise($
|
|
66195
|
+
return new APIPromise($do64(client$, options));
|
|
64267
66196
|
}
|
|
64268
|
-
async function $
|
|
66197
|
+
async function $do64(client$, options) {
|
|
64269
66198
|
const path$ = pathToFunc("/v2/prompts/tags")();
|
|
64270
66199
|
const headers$ = new Headers(compactMap({
|
|
64271
66200
|
Accept: "application/json"
|
|
@@ -64409,9 +66338,9 @@ var init_v2prompttargetslistop = __esm(() => {
|
|
|
64409
66338
|
|
|
64410
66339
|
// src/funcs/promptsTargetsList.ts
|
|
64411
66340
|
function promptsTargetsList(client$, request, options) {
|
|
64412
|
-
return new APIPromise($
|
|
66341
|
+
return new APIPromise($do65(client$, request, options));
|
|
64413
66342
|
}
|
|
64414
|
-
async function $
|
|
66343
|
+
async function $do65(client$, request, options) {
|
|
64415
66344
|
const parsed$ = safeParse4(request, (value$) => V2PromptTargetsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
64416
66345
|
if (!parsed$.ok) {
|
|
64417
66346
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64484,12 +66413,12 @@ var init_promptsTargetsList = __esm(() => {
|
|
|
64484
66413
|
});
|
|
64485
66414
|
|
|
64486
66415
|
// src/mcp-server/tools/promptsTargetsList.ts
|
|
64487
|
-
var
|
|
66416
|
+
var args55, tool$promptsTargetsList;
|
|
64488
66417
|
var init_promptsTargetsList2 = __esm(() => {
|
|
64489
66418
|
init_promptsTargetsList();
|
|
64490
66419
|
init_v2prompttargetslistop();
|
|
64491
66420
|
init_tools();
|
|
64492
|
-
|
|
66421
|
+
args55 = {
|
|
64493
66422
|
request: V2PromptTargetsListRequest$zodSchema.optional()
|
|
64494
66423
|
};
|
|
64495
66424
|
tool$promptsTargetsList = {
|
|
@@ -64504,7 +66433,7 @@ Returns the answer engines and coding agents that run the organization's prompts
|
|
|
64504
66433
|
openWorldHint: false,
|
|
64505
66434
|
readOnlyHint: true
|
|
64506
66435
|
},
|
|
64507
|
-
args:
|
|
66436
|
+
args: args55,
|
|
64508
66437
|
tool: async (client, args, ctx) => {
|
|
64509
66438
|
const [result] = await promptsTargetsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64510
66439
|
if (!result.ok) {
|
|
@@ -64557,9 +66486,9 @@ var init_setv2prompttargetsrequest = __esm(() => {
|
|
|
64557
66486
|
|
|
64558
66487
|
// src/funcs/promptsTargetsSet.ts
|
|
64559
66488
|
function promptsTargetsSet(client$, request, options) {
|
|
64560
|
-
return new APIPromise($
|
|
66489
|
+
return new APIPromise($do66(client$, request, options));
|
|
64561
66490
|
}
|
|
64562
|
-
async function $
|
|
66491
|
+
async function $do66(client$, request, options) {
|
|
64563
66492
|
const parsed$ = safeParse4(request, (value$) => SetV2PromptTargetsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64564
66493
|
if (!parsed$.ok) {
|
|
64565
66494
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64629,12 +66558,12 @@ var init_promptsTargetsSet = __esm(() => {
|
|
|
64629
66558
|
});
|
|
64630
66559
|
|
|
64631
66560
|
// src/mcp-server/tools/promptsTargetsSet.ts
|
|
64632
|
-
var
|
|
66561
|
+
var args56, tool$promptsTargetsSet;
|
|
64633
66562
|
var init_promptsTargetsSet2 = __esm(() => {
|
|
64634
66563
|
init_promptsTargetsSet();
|
|
64635
66564
|
init_setv2prompttargetsrequest();
|
|
64636
66565
|
init_tools();
|
|
64637
|
-
|
|
66566
|
+
args56 = {
|
|
64638
66567
|
request: SetV2PromptTargetsRequest$zodSchema
|
|
64639
66568
|
};
|
|
64640
66569
|
tool$promptsTargetsSet = {
|
|
@@ -64649,7 +66578,7 @@ Sets which answer engines and coding agents run a topic's prompts on schedule, t
|
|
|
64649
66578
|
openWorldHint: false,
|
|
64650
66579
|
readOnlyHint: false
|
|
64651
66580
|
},
|
|
64652
|
-
args:
|
|
66581
|
+
args: args56,
|
|
64653
66582
|
tool: async (client, args, ctx) => {
|
|
64654
66583
|
const [result] = await promptsTargetsSet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64655
66584
|
if (!result.ok) {
|
|
@@ -64674,9 +66603,9 @@ var init_createprompttopicrequest = __esm(() => {
|
|
|
64674
66603
|
|
|
64675
66604
|
// src/funcs/promptsTopicsCreate.ts
|
|
64676
66605
|
function promptsTopicsCreate(client$, request, options) {
|
|
64677
|
-
return new APIPromise($
|
|
66606
|
+
return new APIPromise($do67(client$, request, options));
|
|
64678
66607
|
}
|
|
64679
|
-
async function $
|
|
66608
|
+
async function $do67(client$, request, options) {
|
|
64680
66609
|
const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64681
66610
|
if (!parsed$.ok) {
|
|
64682
66611
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64746,12 +66675,12 @@ var init_promptsTopicsCreate = __esm(() => {
|
|
|
64746
66675
|
});
|
|
64747
66676
|
|
|
64748
66677
|
// src/mcp-server/tools/promptsTopicsCreate.ts
|
|
64749
|
-
var
|
|
66678
|
+
var args57, tool$promptsTopicsCreate;
|
|
64750
66679
|
var init_promptsTopicsCreate2 = __esm(() => {
|
|
64751
66680
|
init_promptsTopicsCreate();
|
|
64752
66681
|
init_createprompttopicrequest();
|
|
64753
66682
|
init_tools();
|
|
64754
|
-
|
|
66683
|
+
args57 = {
|
|
64755
66684
|
request: CreatePromptTopicRequest$zodSchema
|
|
64756
66685
|
};
|
|
64757
66686
|
tool$promptsTopicsCreate = {
|
|
@@ -64766,7 +66695,7 @@ Creates a prompt topic and returns the saved topic.`,
|
|
|
64766
66695
|
openWorldHint: false,
|
|
64767
66696
|
readOnlyHint: false
|
|
64768
66697
|
},
|
|
64769
|
-
args:
|
|
66698
|
+
args: args57,
|
|
64770
66699
|
tool: async (client, args, ctx) => {
|
|
64771
66700
|
const [result] = await promptsTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64772
66701
|
if (!result.ok) {
|
|
@@ -64798,9 +66727,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
|
|
|
64798
66727
|
|
|
64799
66728
|
// src/funcs/promptsTopicsDelete.ts
|
|
64800
66729
|
function promptsTopicsDelete(client$, request, options) {
|
|
64801
|
-
return new APIPromise($
|
|
66730
|
+
return new APIPromise($do68(client$, request, options));
|
|
64802
66731
|
}
|
|
64803
|
-
async function $
|
|
66732
|
+
async function $do68(client$, request, options) {
|
|
64804
66733
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64805
66734
|
if (!parsed$.ok) {
|
|
64806
66735
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64879,12 +66808,12 @@ var init_promptsTopicsDelete = __esm(() => {
|
|
|
64879
66808
|
});
|
|
64880
66809
|
|
|
64881
66810
|
// src/mcp-server/tools/promptsTopicsDelete.ts
|
|
64882
|
-
var
|
|
66811
|
+
var args58, tool$promptsTopicsDelete;
|
|
64883
66812
|
var init_promptsTopicsDelete2 = __esm(() => {
|
|
64884
66813
|
init_promptsTopicsDelete();
|
|
64885
66814
|
init_v2prompttopicsdeleteop();
|
|
64886
66815
|
init_tools();
|
|
64887
|
-
|
|
66816
|
+
args58 = {
|
|
64888
66817
|
request: V2PromptTopicsDeleteRequest$zodSchema
|
|
64889
66818
|
};
|
|
64890
66819
|
tool$promptsTopicsDelete = {
|
|
@@ -64899,7 +66828,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
64899
66828
|
openWorldHint: false,
|
|
64900
66829
|
readOnlyHint: false
|
|
64901
66830
|
},
|
|
64902
|
-
args:
|
|
66831
|
+
args: args58,
|
|
64903
66832
|
tool: async (client, args, ctx) => {
|
|
64904
66833
|
const [result] = await promptsTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64905
66834
|
if (!result.ok) {
|
|
@@ -64915,9 +66844,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
64915
66844
|
|
|
64916
66845
|
// src/funcs/promptsTopicsList.ts
|
|
64917
66846
|
function promptsTopicsList(client$, options) {
|
|
64918
|
-
return new APIPromise($
|
|
66847
|
+
return new APIPromise($do69(client$, options));
|
|
64919
66848
|
}
|
|
64920
|
-
async function $
|
|
66849
|
+
async function $do69(client$, options) {
|
|
64921
66850
|
const path$ = pathToFunc("/v2/prompts/topics")();
|
|
64922
66851
|
const headers$ = new Headers(compactMap({
|
|
64923
66852
|
Accept: "application/json"
|
|
@@ -65033,9 +66962,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
|
|
|
65033
66962
|
|
|
65034
66963
|
// src/funcs/promptsTopicsUpdate.ts
|
|
65035
66964
|
function promptsTopicsUpdate(client$, request, options) {
|
|
65036
|
-
return new APIPromise($
|
|
66965
|
+
return new APIPromise($do70(client$, request, options));
|
|
65037
66966
|
}
|
|
65038
|
-
async function $
|
|
66967
|
+
async function $do70(client$, request, options) {
|
|
65039
66968
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65040
66969
|
if (!parsed$.ok) {
|
|
65041
66970
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65111,12 +67040,12 @@ var init_promptsTopicsUpdate = __esm(() => {
|
|
|
65111
67040
|
});
|
|
65112
67041
|
|
|
65113
67042
|
// src/mcp-server/tools/promptsTopicsUpdate.ts
|
|
65114
|
-
var
|
|
67043
|
+
var args59, tool$promptsTopicsUpdate;
|
|
65115
67044
|
var init_promptsTopicsUpdate2 = __esm(() => {
|
|
65116
67045
|
init_promptsTopicsUpdate();
|
|
65117
67046
|
init_v2prompttopicsupdateop();
|
|
65118
67047
|
init_tools();
|
|
65119
|
-
|
|
67048
|
+
args59 = {
|
|
65120
67049
|
request: V2PromptTopicsUpdateRequest$zodSchema
|
|
65121
67050
|
};
|
|
65122
67051
|
tool$promptsTopicsUpdate = {
|
|
@@ -65131,7 +67060,7 @@ Renames a prompt topic and returns the updated topic.`,
|
|
|
65131
67060
|
openWorldHint: false,
|
|
65132
67061
|
readOnlyHint: false
|
|
65133
67062
|
},
|
|
65134
|
-
args:
|
|
67063
|
+
args: args59,
|
|
65135
67064
|
tool: async (client, args, ctx) => {
|
|
65136
67065
|
const [result] = await promptsTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65137
67066
|
if (!result.ok) {
|
|
@@ -65184,9 +67113,9 @@ var init_v2promptsupdateop = __esm(() => {
|
|
|
65184
67113
|
|
|
65185
67114
|
// src/funcs/promptsUpdate.ts
|
|
65186
67115
|
function promptsUpdate(client$, request, options) {
|
|
65187
|
-
return new APIPromise($
|
|
67116
|
+
return new APIPromise($do71(client$, request, options));
|
|
65188
67117
|
}
|
|
65189
|
-
async function $
|
|
67118
|
+
async function $do71(client$, request, options) {
|
|
65190
67119
|
const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65191
67120
|
if (!parsed$.ok) {
|
|
65192
67121
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65262,12 +67191,12 @@ var init_promptsUpdate = __esm(() => {
|
|
|
65262
67191
|
});
|
|
65263
67192
|
|
|
65264
67193
|
// src/mcp-server/tools/promptsUpdate.ts
|
|
65265
|
-
var
|
|
67194
|
+
var args60, tool$promptsUpdate;
|
|
65266
67195
|
var init_promptsUpdate2 = __esm(() => {
|
|
65267
67196
|
init_promptsUpdate();
|
|
65268
67197
|
init_v2promptsupdateop();
|
|
65269
67198
|
init_tools();
|
|
65270
|
-
|
|
67199
|
+
args60 = {
|
|
65271
67200
|
request: V2PromptsUpdateRequest$zodSchema
|
|
65272
67201
|
};
|
|
65273
67202
|
tool$promptsUpdate = {
|
|
@@ -65282,7 +67211,7 @@ Updates a prompt's text, topic, platforms, tags, lifecycle status, or coding-age
|
|
|
65282
67211
|
openWorldHint: false,
|
|
65283
67212
|
readOnlyHint: false
|
|
65284
67213
|
},
|
|
65285
|
-
args:
|
|
67214
|
+
args: args60,
|
|
65286
67215
|
tool: async (client, args, ctx) => {
|
|
65287
67216
|
const [result] = await promptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65288
67217
|
if (!result.ok) {
|
|
@@ -65325,9 +67254,9 @@ var init_createv2repositoryrequest = __esm(() => {
|
|
|
65325
67254
|
|
|
65326
67255
|
// src/funcs/repositoriesCreate.ts
|
|
65327
67256
|
function repositoriesCreate(client$, request, options) {
|
|
65328
|
-
return new APIPromise($
|
|
67257
|
+
return new APIPromise($do72(client$, request, options));
|
|
65329
67258
|
}
|
|
65330
|
-
async function $
|
|
67259
|
+
async function $do72(client$, request, options) {
|
|
65331
67260
|
const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65332
67261
|
if (!parsed$.ok) {
|
|
65333
67262
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65397,12 +67326,12 @@ var init_repositoriesCreate = __esm(() => {
|
|
|
65397
67326
|
});
|
|
65398
67327
|
|
|
65399
67328
|
// src/mcp-server/tools/repositoriesCreate.ts
|
|
65400
|
-
var
|
|
67329
|
+
var args61, tool$repositoriesCreate;
|
|
65401
67330
|
var init_repositoriesCreate2 = __esm(() => {
|
|
65402
67331
|
init_repositoriesCreate();
|
|
65403
67332
|
init_createv2repositoryrequest();
|
|
65404
67333
|
init_tools();
|
|
65405
|
-
|
|
67334
|
+
args61 = {
|
|
65406
67335
|
request: CreateV2RepositoryRequest$zodSchema
|
|
65407
67336
|
};
|
|
65408
67337
|
tool$repositoriesCreate = {
|
|
@@ -65417,7 +67346,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
|
|
|
65417
67346
|
openWorldHint: false,
|
|
65418
67347
|
readOnlyHint: false
|
|
65419
67348
|
},
|
|
65420
|
-
args:
|
|
67349
|
+
args: args61,
|
|
65421
67350
|
tool: async (client, args, ctx) => {
|
|
65422
67351
|
const [result] = await repositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65423
67352
|
if (!result.ok) {
|
|
@@ -65490,9 +67419,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
|
|
|
65490
67419
|
|
|
65491
67420
|
// src/funcs/repositoriesDelete.ts
|
|
65492
67421
|
function repositoriesDelete(client$, request, options) {
|
|
65493
|
-
return new APIPromise($
|
|
67422
|
+
return new APIPromise($do73(client$, request, options));
|
|
65494
67423
|
}
|
|
65495
|
-
async function $
|
|
67424
|
+
async function $do73(client$, request, options) {
|
|
65496
67425
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65497
67426
|
if (!parsed$.ok) {
|
|
65498
67427
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65567,12 +67496,12 @@ var init_repositoriesDelete = __esm(() => {
|
|
|
65567
67496
|
});
|
|
65568
67497
|
|
|
65569
67498
|
// src/mcp-server/tools/repositoriesDelete.ts
|
|
65570
|
-
var
|
|
67499
|
+
var args62, tool$repositoriesDelete;
|
|
65571
67500
|
var init_repositoriesDelete2 = __esm(() => {
|
|
65572
67501
|
init_repositoriesDelete();
|
|
65573
67502
|
init_v2repositoriesdeleteop();
|
|
65574
67503
|
init_tools();
|
|
65575
|
-
|
|
67504
|
+
args62 = {
|
|
65576
67505
|
request: V2RepositoriesDeleteRequest$zodSchema
|
|
65577
67506
|
};
|
|
65578
67507
|
tool$repositoriesDelete = {
|
|
@@ -65587,7 +67516,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
65587
67516
|
openWorldHint: false,
|
|
65588
67517
|
readOnlyHint: false
|
|
65589
67518
|
},
|
|
65590
|
-
args:
|
|
67519
|
+
args: args62,
|
|
65591
67520
|
tool: async (client, args, ctx) => {
|
|
65592
67521
|
const [result] = await repositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65593
67522
|
if (!result.ok) {
|
|
@@ -65603,9 +67532,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
65603
67532
|
|
|
65604
67533
|
// src/funcs/repositoriesList.ts
|
|
65605
67534
|
function repositoriesList(client$, options) {
|
|
65606
|
-
return new APIPromise($
|
|
67535
|
+
return new APIPromise($do74(client$, options));
|
|
65607
67536
|
}
|
|
65608
|
-
async function $
|
|
67537
|
+
async function $do74(client$, options) {
|
|
65609
67538
|
const path$ = pathToFunc("/v2/repositories")();
|
|
65610
67539
|
const headers$ = new Headers(compactMap({
|
|
65611
67540
|
Accept: "application/json"
|
|
@@ -65710,9 +67639,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
|
|
|
65710
67639
|
|
|
65711
67640
|
// src/funcs/repositoriesRetrieve.ts
|
|
65712
67641
|
function repositoriesRetrieve(client$, request, options) {
|
|
65713
|
-
return new APIPromise($
|
|
67642
|
+
return new APIPromise($do75(client$, request, options));
|
|
65714
67643
|
}
|
|
65715
|
-
async function $
|
|
67644
|
+
async function $do75(client$, request, options) {
|
|
65716
67645
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65717
67646
|
if (!parsed$.ok) {
|
|
65718
67647
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65787,12 +67716,12 @@ var init_repositoriesRetrieve = __esm(() => {
|
|
|
65787
67716
|
});
|
|
65788
67717
|
|
|
65789
67718
|
// src/mcp-server/tools/repositoriesRetrieve.ts
|
|
65790
|
-
var
|
|
67719
|
+
var args63, tool$repositoriesRetrieve;
|
|
65791
67720
|
var init_repositoriesRetrieve2 = __esm(() => {
|
|
65792
67721
|
init_repositoriesRetrieve();
|
|
65793
67722
|
init_v2repositoriesretrieveop();
|
|
65794
67723
|
init_tools();
|
|
65795
|
-
|
|
67724
|
+
args63 = {
|
|
65796
67725
|
request: V2RepositoriesRetrieveRequest$zodSchema
|
|
65797
67726
|
};
|
|
65798
67727
|
tool$repositoriesRetrieve = {
|
|
@@ -65807,7 +67736,7 @@ Returns one reusable repository workspace.`,
|
|
|
65807
67736
|
openWorldHint: false,
|
|
65808
67737
|
readOnlyHint: true
|
|
65809
67738
|
},
|
|
65810
|
-
args:
|
|
67739
|
+
args: args63,
|
|
65811
67740
|
tool: async (client, args, ctx) => {
|
|
65812
67741
|
const [result] = await repositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65813
67742
|
if (!result.ok) {
|
|
@@ -65867,9 +67796,9 @@ var init_v2repositoriesupdateop = __esm(() => {
|
|
|
65867
67796
|
|
|
65868
67797
|
// src/funcs/repositoriesUpdate.ts
|
|
65869
67798
|
function repositoriesUpdate(client$, request, options) {
|
|
65870
|
-
return new APIPromise($
|
|
67799
|
+
return new APIPromise($do76(client$, request, options));
|
|
65871
67800
|
}
|
|
65872
|
-
async function $
|
|
67801
|
+
async function $do76(client$, request, options) {
|
|
65873
67802
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65874
67803
|
if (!parsed$.ok) {
|
|
65875
67804
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65945,12 +67874,12 @@ var init_repositoriesUpdate = __esm(() => {
|
|
|
65945
67874
|
});
|
|
65946
67875
|
|
|
65947
67876
|
// src/mcp-server/tools/repositoriesUpdate.ts
|
|
65948
|
-
var
|
|
67877
|
+
var args64, tool$repositoriesUpdate;
|
|
65949
67878
|
var init_repositoriesUpdate2 = __esm(() => {
|
|
65950
67879
|
init_repositoriesUpdate();
|
|
65951
67880
|
init_v2repositoriesupdateop();
|
|
65952
67881
|
init_tools();
|
|
65953
|
-
|
|
67882
|
+
args64 = {
|
|
65954
67883
|
request: V2RepositoriesUpdateRequest$zodSchema
|
|
65955
67884
|
};
|
|
65956
67885
|
tool$repositoriesUpdate = {
|
|
@@ -65965,7 +67894,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
65965
67894
|
openWorldHint: false,
|
|
65966
67895
|
readOnlyHint: false
|
|
65967
67896
|
},
|
|
65968
|
-
args:
|
|
67897
|
+
args: args64,
|
|
65969
67898
|
tool: async (client, args, ctx) => {
|
|
65970
67899
|
const [result] = await repositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65971
67900
|
if (!result.ok) {
|
|
@@ -65981,9 +67910,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
65981
67910
|
|
|
65982
67911
|
// src/funcs/siteAuditsList.ts
|
|
65983
67912
|
function siteAuditsList(client$, options) {
|
|
65984
|
-
return new APIPromise($
|
|
67913
|
+
return new APIPromise($do77(client$, options));
|
|
65985
67914
|
}
|
|
65986
|
-
async function $
|
|
67915
|
+
async function $do77(client$, options) {
|
|
65987
67916
|
const path$ = pathToFunc("/v2/site-audits")();
|
|
65988
67917
|
const headers$ = new Headers(compactMap({
|
|
65989
67918
|
Accept: "application/json"
|
|
@@ -66124,9 +68053,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
|
|
|
66124
68053
|
|
|
66125
68054
|
// src/funcs/siteAuditsRetrieve.ts
|
|
66126
68055
|
function siteAuditsRetrieve(client$, request, options) {
|
|
66127
|
-
return new APIPromise($
|
|
68056
|
+
return new APIPromise($do78(client$, request, options));
|
|
66128
68057
|
}
|
|
66129
|
-
async function $
|
|
68058
|
+
async function $do78(client$, request, options) {
|
|
66130
68059
|
const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
66131
68060
|
if (!parsed$.ok) {
|
|
66132
68061
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66201,12 +68130,12 @@ var init_siteAuditsRetrieve = __esm(() => {
|
|
|
66201
68130
|
});
|
|
66202
68131
|
|
|
66203
68132
|
// src/mcp-server/tools/siteAuditsRetrieve.ts
|
|
66204
|
-
var
|
|
68133
|
+
var args65, tool$siteAuditsRetrieve;
|
|
66205
68134
|
var init_siteAuditsRetrieve2 = __esm(() => {
|
|
66206
68135
|
init_siteAuditsRetrieve();
|
|
66207
68136
|
init_v2siteauditsretrieveop();
|
|
66208
68137
|
init_tools();
|
|
66209
|
-
|
|
68138
|
+
args65 = {
|
|
66210
68139
|
request: V2SiteAuditsRetrieveRequest$zodSchema
|
|
66211
68140
|
};
|
|
66212
68141
|
tool$siteAuditsRetrieve = {
|
|
@@ -66221,7 +68150,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
66221
68150
|
openWorldHint: false,
|
|
66222
68151
|
readOnlyHint: true
|
|
66223
68152
|
},
|
|
66224
|
-
args:
|
|
68153
|
+
args: args65,
|
|
66225
68154
|
tool: async (client, args, ctx) => {
|
|
66226
68155
|
const [result] = await siteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66227
68156
|
if (!result.ok) {
|
|
@@ -66237,9 +68166,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
66237
68166
|
|
|
66238
68167
|
// src/funcs/skillsList.ts
|
|
66239
68168
|
function skillsList(client$, options) {
|
|
66240
|
-
return new APIPromise($
|
|
68169
|
+
return new APIPromise($do79(client$, options));
|
|
66241
68170
|
}
|
|
66242
|
-
async function $
|
|
68171
|
+
async function $do79(client$, options) {
|
|
66243
68172
|
const path$ = pathToFunc("/v2/skills")();
|
|
66244
68173
|
const headers$ = new Headers(compactMap({
|
|
66245
68174
|
Accept: "application/json"
|
|
@@ -66329,9 +68258,9 @@ Returns reusable skills available to workflows and eval configurations.`,
|
|
|
66329
68258
|
|
|
66330
68259
|
// src/funcs/statusAuthStatusGet.ts
|
|
66331
68260
|
function statusAuthStatusGet(client$, options) {
|
|
66332
|
-
return new APIPromise($
|
|
68261
|
+
return new APIPromise($do80(client$, options));
|
|
66333
68262
|
}
|
|
66334
|
-
async function $
|
|
68263
|
+
async function $do80(client$, options) {
|
|
66335
68264
|
const path$ = pathToFunc("/v2/auth/status")();
|
|
66336
68265
|
const headers$ = new Headers(compactMap({
|
|
66337
68266
|
Accept: "application/json"
|
|
@@ -66421,9 +68350,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
|
|
|
66421
68350
|
|
|
66422
68351
|
// src/funcs/statusGet.ts
|
|
66423
68352
|
function statusGet(client$, options) {
|
|
66424
|
-
return new APIPromise($
|
|
68353
|
+
return new APIPromise($do81(client$, options));
|
|
66425
68354
|
}
|
|
66426
|
-
async function $
|
|
68355
|
+
async function $do81(client$, options) {
|
|
66427
68356
|
const path$ = pathToFunc("/v2/status")();
|
|
66428
68357
|
const headers$ = new Headers(compactMap({
|
|
66429
68358
|
Accept: "application/json"
|
|
@@ -66552,9 +68481,9 @@ var init_createtaskrequest = __esm(() => {
|
|
|
66552
68481
|
|
|
66553
68482
|
// src/funcs/tasksCreate.ts
|
|
66554
68483
|
function tasksCreate(client$, request, options) {
|
|
66555
|
-
return new APIPromise($
|
|
68484
|
+
return new APIPromise($do82(client$, request, options));
|
|
66556
68485
|
}
|
|
66557
|
-
async function $
|
|
68486
|
+
async function $do82(client$, request, options) {
|
|
66558
68487
|
const parsed$ = safeParse4(request, (value$) => CreateTaskRequest$zodSchema.parse(value$), "Input validation failed");
|
|
66559
68488
|
if (!parsed$.ok) {
|
|
66560
68489
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66624,12 +68553,12 @@ var init_tasksCreate = __esm(() => {
|
|
|
66624
68553
|
});
|
|
66625
68554
|
|
|
66626
68555
|
// src/mcp-server/tools/tasksCreate.ts
|
|
66627
|
-
var
|
|
68556
|
+
var args66, tool$tasksCreate;
|
|
66628
68557
|
var init_tasksCreate2 = __esm(() => {
|
|
66629
68558
|
init_tasksCreate();
|
|
66630
68559
|
init_createtaskrequest();
|
|
66631
68560
|
init_tools();
|
|
66632
|
-
|
|
68561
|
+
args66 = {
|
|
66633
68562
|
request: CreateTaskRequest$zodSchema
|
|
66634
68563
|
};
|
|
66635
68564
|
tool$tasksCreate = {
|
|
@@ -66644,7 +68573,7 @@ Adds a task to today's queue and returns it with its execution prompt. New tasks
|
|
|
66644
68573
|
openWorldHint: false,
|
|
66645
68574
|
readOnlyHint: false
|
|
66646
68575
|
},
|
|
66647
|
-
args:
|
|
68576
|
+
args: args66,
|
|
66648
68577
|
tool: async (client, args, ctx) => {
|
|
66649
68578
|
const [result] = await tasksCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66650
68579
|
if (!result.ok) {
|
|
@@ -66804,9 +68733,9 @@ var init_v2taskslistop = __esm(() => {
|
|
|
66804
68733
|
|
|
66805
68734
|
// src/funcs/tasksList.ts
|
|
66806
68735
|
function tasksList(client$, request, options) {
|
|
66807
|
-
return new APIPromise($
|
|
68736
|
+
return new APIPromise($do83(client$, request, options));
|
|
66808
68737
|
}
|
|
66809
|
-
async function $
|
|
68738
|
+
async function $do83(client$, request, options) {
|
|
66810
68739
|
const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
66811
68740
|
if (!parsed$.ok) {
|
|
66812
68741
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66880,12 +68809,12 @@ var init_tasksList = __esm(() => {
|
|
|
66880
68809
|
});
|
|
66881
68810
|
|
|
66882
68811
|
// src/mcp-server/tools/tasksList.ts
|
|
66883
|
-
var
|
|
68812
|
+
var args67, tool$tasksList;
|
|
66884
68813
|
var init_tasksList2 = __esm(() => {
|
|
66885
68814
|
init_tasksList();
|
|
66886
68815
|
init_v2taskslistop();
|
|
66887
68816
|
init_tools();
|
|
66888
|
-
|
|
68817
|
+
args67 = {
|
|
66889
68818
|
request: V2TasksListRequest$zodSchema.optional()
|
|
66890
68819
|
};
|
|
66891
68820
|
tool$tasksList = {
|
|
@@ -66900,7 +68829,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
|
|
|
66900
68829
|
openWorldHint: false,
|
|
66901
68830
|
readOnlyHint: true
|
|
66902
68831
|
},
|
|
66903
|
-
args:
|
|
68832
|
+
args: args67,
|
|
66904
68833
|
tool: async (client, args, ctx) => {
|
|
66905
68834
|
const [result] = await tasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66906
68835
|
if (!result.ok) {
|
|
@@ -66931,9 +68860,9 @@ var init_v2tasksretrieveop = __esm(() => {
|
|
|
66931
68860
|
|
|
66932
68861
|
// src/funcs/tasksRetrieve.ts
|
|
66933
68862
|
function tasksRetrieve(client$, request, options) {
|
|
66934
|
-
return new APIPromise($
|
|
68863
|
+
return new APIPromise($do84(client$, request, options));
|
|
66935
68864
|
}
|
|
66936
|
-
async function $
|
|
68865
|
+
async function $do84(client$, request, options) {
|
|
66937
68866
|
const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
66938
68867
|
if (!parsed$.ok) {
|
|
66939
68868
|
return [parsed$, { status: "invalid" }];
|
|
@@ -67008,12 +68937,12 @@ var init_tasksRetrieve = __esm(() => {
|
|
|
67008
68937
|
});
|
|
67009
68938
|
|
|
67010
68939
|
// src/mcp-server/tools/tasksRetrieve.ts
|
|
67011
|
-
var
|
|
68940
|
+
var args68, tool$tasksRetrieve;
|
|
67012
68941
|
var init_tasksRetrieve2 = __esm(() => {
|
|
67013
68942
|
init_tasksRetrieve();
|
|
67014
68943
|
init_v2tasksretrieveop();
|
|
67015
68944
|
init_tools();
|
|
67016
|
-
|
|
68945
|
+
args68 = {
|
|
67017
68946
|
request: V2TasksRetrieveRequest$zodSchema
|
|
67018
68947
|
};
|
|
67019
68948
|
tool$tasksRetrieve = {
|
|
@@ -67028,7 +68957,7 @@ Returns one persisted task and its execution prompt.`,
|
|
|
67028
68957
|
openWorldHint: false,
|
|
67029
68958
|
readOnlyHint: true
|
|
67030
68959
|
},
|
|
67031
|
-
args:
|
|
68960
|
+
args: args68,
|
|
67032
68961
|
tool: async (client, args, ctx) => {
|
|
67033
68962
|
const [result] = await tasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67034
68963
|
if (!result.ok) {
|
|
@@ -67091,9 +69020,9 @@ var init_v2tasksupdateop = __esm(() => {
|
|
|
67091
69020
|
|
|
67092
69021
|
// src/funcs/tasksUpdate.ts
|
|
67093
69022
|
function tasksUpdate(client$, request, options) {
|
|
67094
|
-
return new APIPromise($
|
|
69023
|
+
return new APIPromise($do85(client$, request, options));
|
|
67095
69024
|
}
|
|
67096
|
-
async function $
|
|
69025
|
+
async function $do85(client$, request, options) {
|
|
67097
69026
|
const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
67098
69027
|
if (!parsed$.ok) {
|
|
67099
69028
|
return [parsed$, { status: "invalid" }];
|
|
@@ -67169,12 +69098,12 @@ var init_tasksUpdate = __esm(() => {
|
|
|
67169
69098
|
});
|
|
67170
69099
|
|
|
67171
69100
|
// src/mcp-server/tools/tasksUpdate.ts
|
|
67172
|
-
var
|
|
69101
|
+
var args69, tool$tasksUpdate;
|
|
67173
69102
|
var init_tasksUpdate2 = __esm(() => {
|
|
67174
69103
|
init_tasksUpdate();
|
|
67175
69104
|
init_v2tasksupdateop();
|
|
67176
69105
|
init_tools();
|
|
67177
|
-
|
|
69106
|
+
args69 = {
|
|
67178
69107
|
request: V2TasksUpdateRequest$zodSchema
|
|
67179
69108
|
};
|
|
67180
69109
|
tool$tasksUpdate = {
|
|
@@ -67189,7 +69118,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
|
|
|
67189
69118
|
openWorldHint: false,
|
|
67190
69119
|
readOnlyHint: false
|
|
67191
69120
|
},
|
|
67192
|
-
args:
|
|
69121
|
+
args: args69,
|
|
67193
69122
|
tool: async (client, args, ctx) => {
|
|
67194
69123
|
const [result] = await tasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67195
69124
|
if (!result.ok) {
|
|
@@ -67381,9 +69310,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
|
|
|
67381
69310
|
|
|
67382
69311
|
// src/funcs/visibilityCitationsList.ts
|
|
67383
69312
|
function visibilityCitationsList(client$, request, options) {
|
|
67384
|
-
return new APIPromise($
|
|
69313
|
+
return new APIPromise($do86(client$, request, options));
|
|
67385
69314
|
}
|
|
67386
|
-
async function $
|
|
69315
|
+
async function $do86(client$, request, options) {
|
|
67387
69316
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
67388
69317
|
if (!parsed$.ok) {
|
|
67389
69318
|
return [parsed$, { status: "invalid" }];
|
|
@@ -67461,12 +69390,12 @@ var init_visibilityCitationsList = __esm(() => {
|
|
|
67461
69390
|
});
|
|
67462
69391
|
|
|
67463
69392
|
// src/mcp-server/tools/visibilityCitationsList.ts
|
|
67464
|
-
var
|
|
69393
|
+
var args70, tool$visibilityCitationsList;
|
|
67465
69394
|
var init_visibilityCitationsList2 = __esm(() => {
|
|
67466
69395
|
init_visibilityCitationsList();
|
|
67467
69396
|
init_v2visibilitycitationslistop();
|
|
67468
69397
|
init_tools();
|
|
67469
|
-
|
|
69398
|
+
args70 = {
|
|
67470
69399
|
request: V2VisibilityCitationsListRequest$zodSchema.optional()
|
|
67471
69400
|
};
|
|
67472
69401
|
tool$visibilityCitationsList = {
|
|
@@ -67481,7 +69410,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
67481
69410
|
openWorldHint: false,
|
|
67482
69411
|
readOnlyHint: true
|
|
67483
69412
|
},
|
|
67484
|
-
args:
|
|
69413
|
+
args: args70,
|
|
67485
69414
|
tool: async (client, args, ctx) => {
|
|
67486
69415
|
const [result] = await visibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67487
69416
|
if (!result.ok) {
|
|
@@ -67606,9 +69535,9 @@ var init_v2visibilitycitationssummaryretrieveop = __esm(() => {
|
|
|
67606
69535
|
|
|
67607
69536
|
// src/funcs/visibilityCitationsSummaryRetrieve.ts
|
|
67608
69537
|
function visibilityCitationsSummaryRetrieve(client$, request, options) {
|
|
67609
|
-
return new APIPromise($
|
|
69538
|
+
return new APIPromise($do87(client$, request, options));
|
|
67610
69539
|
}
|
|
67611
|
-
async function $
|
|
69540
|
+
async function $do87(client$, request, options) {
|
|
67612
69541
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
67613
69542
|
if (!parsed$.ok) {
|
|
67614
69543
|
return [parsed$, { status: "invalid" }];
|
|
@@ -67688,12 +69617,12 @@ var init_visibilityCitationsSummaryRetrieve = __esm(() => {
|
|
|
67688
69617
|
});
|
|
67689
69618
|
|
|
67690
69619
|
// src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts
|
|
67691
|
-
var
|
|
69620
|
+
var args71, tool$visibilityCitationsSummaryRetrieve;
|
|
67692
69621
|
var init_visibilityCitationsSummaryRetrieve2 = __esm(() => {
|
|
67693
69622
|
init_visibilityCitationsSummaryRetrieve();
|
|
67694
69623
|
init_v2visibilitycitationssummaryretrieveop();
|
|
67695
69624
|
init_tools();
|
|
67696
|
-
|
|
69625
|
+
args71 = {
|
|
67697
69626
|
request: V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional()
|
|
67698
69627
|
};
|
|
67699
69628
|
tool$visibilityCitationsSummaryRetrieve = {
|
|
@@ -67708,7 +69637,7 @@ Returns citation totals grouped by URL prefix (domain and first path segment, su
|
|
|
67708
69637
|
openWorldHint: false,
|
|
67709
69638
|
readOnlyHint: true
|
|
67710
69639
|
},
|
|
67711
|
-
args:
|
|
69640
|
+
args: args71,
|
|
67712
69641
|
tool: async (client, args, ctx) => {
|
|
67713
69642
|
const [result] = await visibilityCitationsSummaryRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67714
69643
|
if (!result.ok) {
|
|
@@ -67797,9 +69726,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
67797
69726
|
|
|
67798
69727
|
// src/funcs/visibilityCurrentRetrieve.ts
|
|
67799
69728
|
function visibilityCurrentRetrieve(client$, request, options) {
|
|
67800
|
-
return new APIPromise($
|
|
69729
|
+
return new APIPromise($do88(client$, request, options));
|
|
67801
69730
|
}
|
|
67802
|
-
async function $
|
|
69731
|
+
async function $do88(client$, request, options) {
|
|
67803
69732
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
67804
69733
|
if (!parsed$.ok) {
|
|
67805
69734
|
return [parsed$, { status: "invalid" }];
|
|
@@ -67874,12 +69803,12 @@ var init_visibilityCurrentRetrieve = __esm(() => {
|
|
|
67874
69803
|
});
|
|
67875
69804
|
|
|
67876
69805
|
// src/mcp-server/tools/visibilityCurrentRetrieve.ts
|
|
67877
|
-
var
|
|
69806
|
+
var args72, tool$visibilityCurrentRetrieve;
|
|
67878
69807
|
var init_visibilityCurrentRetrieve2 = __esm(() => {
|
|
67879
69808
|
init_visibilityCurrentRetrieve();
|
|
67880
69809
|
init_v2visibilitycurrentretrieveop();
|
|
67881
69810
|
init_tools();
|
|
67882
|
-
|
|
69811
|
+
args72 = {
|
|
67883
69812
|
request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
|
|
67884
69813
|
};
|
|
67885
69814
|
tool$visibilityCurrentRetrieve = {
|
|
@@ -67894,7 +69823,7 @@ Returns recommendation score, visibility score, ranks, and date-range metadata f
|
|
|
67894
69823
|
openWorldHint: false,
|
|
67895
69824
|
readOnlyHint: true
|
|
67896
69825
|
},
|
|
67897
|
-
args:
|
|
69826
|
+
args: args72,
|
|
67898
69827
|
tool: async (client, args, ctx) => {
|
|
67899
69828
|
const [result] = await visibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67900
69829
|
if (!result.ok) {
|
|
@@ -68050,9 +69979,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
68050
69979
|
|
|
68051
69980
|
// src/funcs/visibilityOverviewRetrieve.ts
|
|
68052
69981
|
function visibilityOverviewRetrieve(client$, request, options) {
|
|
68053
|
-
return new APIPromise($
|
|
69982
|
+
return new APIPromise($do89(client$, request, options));
|
|
68054
69983
|
}
|
|
68055
|
-
async function $
|
|
69984
|
+
async function $do89(client$, request, options) {
|
|
68056
69985
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
68057
69986
|
if (!parsed$.ok) {
|
|
68058
69987
|
return [parsed$, { status: "invalid" }];
|
|
@@ -68127,12 +70056,12 @@ var init_visibilityOverviewRetrieve = __esm(() => {
|
|
|
68127
70056
|
});
|
|
68128
70057
|
|
|
68129
70058
|
// src/mcp-server/tools/visibilityOverviewRetrieve.ts
|
|
68130
|
-
var
|
|
70059
|
+
var args73, tool$visibilityOverviewRetrieve;
|
|
68131
70060
|
var init_visibilityOverviewRetrieve2 = __esm(() => {
|
|
68132
70061
|
init_visibilityOverviewRetrieve();
|
|
68133
70062
|
init_v2visibilityoverviewretrieveop();
|
|
68134
70063
|
init_tools();
|
|
68135
|
-
|
|
70064
|
+
args73 = {
|
|
68136
70065
|
request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
|
|
68137
70066
|
};
|
|
68138
70067
|
tool$visibilityOverviewRetrieve = {
|
|
@@ -68147,7 +70076,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
|
|
|
68147
70076
|
openWorldHint: false,
|
|
68148
70077
|
readOnlyHint: true
|
|
68149
70078
|
},
|
|
68150
|
-
args:
|
|
70079
|
+
args: args73,
|
|
68151
70080
|
tool: async (client, args, ctx) => {
|
|
68152
70081
|
const [result] = await visibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68153
70082
|
if (!result.ok) {
|
|
@@ -68269,9 +70198,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
68269
70198
|
|
|
68270
70199
|
// src/funcs/visibilityPromptsRetrieve.ts
|
|
68271
70200
|
function visibilityPromptsRetrieve(client$, request, options) {
|
|
68272
|
-
return new APIPromise($
|
|
70201
|
+
return new APIPromise($do90(client$, request, options));
|
|
68273
70202
|
}
|
|
68274
|
-
async function $
|
|
70203
|
+
async function $do90(client$, request, options) {
|
|
68275
70204
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
68276
70205
|
if (!parsed$.ok) {
|
|
68277
70206
|
return [parsed$, { status: "invalid" }];
|
|
@@ -68346,12 +70275,12 @@ var init_visibilityPromptsRetrieve = __esm(() => {
|
|
|
68346
70275
|
});
|
|
68347
70276
|
|
|
68348
70277
|
// src/mcp-server/tools/visibilityPromptsRetrieve.ts
|
|
68349
|
-
var
|
|
70278
|
+
var args74, tool$visibilityPromptsRetrieve;
|
|
68350
70279
|
var init_visibilityPromptsRetrieve2 = __esm(() => {
|
|
68351
70280
|
init_visibilityPromptsRetrieve();
|
|
68352
70281
|
init_v2visibilitypromptsretrieveop();
|
|
68353
70282
|
init_tools();
|
|
68354
|
-
|
|
70283
|
+
args74 = {
|
|
68355
70284
|
request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
|
|
68356
70285
|
};
|
|
68357
70286
|
tool$visibilityPromptsRetrieve = {
|
|
@@ -68366,7 +70295,7 @@ Returns per-topic and per-prompt visibility metrics including recommendation sco
|
|
|
68366
70295
|
openWorldHint: false,
|
|
68367
70296
|
readOnlyHint: true
|
|
68368
70297
|
},
|
|
68369
|
-
args:
|
|
70298
|
+
args: args74,
|
|
68370
70299
|
tool: async (client, args, ctx) => {
|
|
68371
70300
|
const [result] = await visibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68372
70301
|
if (!result.ok) {
|
|
@@ -68390,7 +70319,7 @@ function createMCPServer(deps) {
|
|
|
68390
70319
|
sizes: ["any"]
|
|
68391
70320
|
}],
|
|
68392
70321
|
name: "LightsageMcp",
|
|
68393
|
-
version: "0.4.
|
|
70322
|
+
version: "0.4.28"
|
|
68394
70323
|
});
|
|
68395
70324
|
const getClient = deps.getSDK || (() => new LightsageMcpCore({
|
|
68396
70325
|
security: deps.security,
|
|
@@ -68439,6 +70368,18 @@ function createMCPServer(deps) {
|
|
|
68439
70368
|
tool(tool$tasksCreate);
|
|
68440
70369
|
tool(tool$tasksRetrieve);
|
|
68441
70370
|
tool(tool$tasksUpdate);
|
|
70371
|
+
tool(tool$libraryList);
|
|
70372
|
+
tool(tool$libraryRedirectsList);
|
|
70373
|
+
tool(tool$libraryRedirectsCreate);
|
|
70374
|
+
tool(tool$libraryRedirectsCheck);
|
|
70375
|
+
tool(tool$libraryRedirectsGet);
|
|
70376
|
+
tool(tool$libraryRedirectsUpdate);
|
|
70377
|
+
tool(tool$libraryRedirectsInsights);
|
|
70378
|
+
tool(tool$libraryPagesList);
|
|
70379
|
+
tool(tool$libraryPagesCreate);
|
|
70380
|
+
tool(tool$libraryPagesGet);
|
|
70381
|
+
tool(tool$libraryPagesUpdate);
|
|
70382
|
+
tool(tool$libraryPagesInsights);
|
|
68442
70383
|
tool(tool$siteAuditsList);
|
|
68443
70384
|
tool(tool$siteAuditsRetrieve);
|
|
68444
70385
|
tool(tool$agentAnalyticsSitesList);
|
|
@@ -68535,6 +70476,18 @@ var init_server3 = __esm(() => {
|
|
|
68535
70476
|
init_evalTemplatesList2();
|
|
68536
70477
|
init_evalTemplatesRetrieve2();
|
|
68537
70478
|
init_evalTemplatesUpdate2();
|
|
70479
|
+
init_libraryList2();
|
|
70480
|
+
init_libraryPagesCreate2();
|
|
70481
|
+
init_libraryPagesGet2();
|
|
70482
|
+
init_libraryPagesInsights2();
|
|
70483
|
+
init_libraryPagesList2();
|
|
70484
|
+
init_libraryPagesUpdate2();
|
|
70485
|
+
init_libraryRedirectsCheck2();
|
|
70486
|
+
init_libraryRedirectsCreate2();
|
|
70487
|
+
init_libraryRedirectsGet2();
|
|
70488
|
+
init_libraryRedirectsInsights2();
|
|
70489
|
+
init_libraryRedirectsList2();
|
|
70490
|
+
init_libraryRedirectsUpdate2();
|
|
68538
70491
|
init_mcpServersList2();
|
|
68539
70492
|
init_opportunitiesList2();
|
|
68540
70493
|
init_opportunitiesRetrieve2();
|
|
@@ -68742,6 +70695,74 @@ Returns one persisted task and its execution prompt.`
|
|
|
68742
70695
|
description: `Update Task
|
|
68743
70696
|
|
|
68744
70697
|
Updates a task's status, priority, assignee, or action type. Only sent fields are changed; omitted fields remain unchanged.`
|
|
70698
|
+
},
|
|
70699
|
+
{
|
|
70700
|
+
name: "library-list",
|
|
70701
|
+
description: "List Library\n\nReturns the Library's pages and redirects together, most recently updated first, each with a one-line summary and `href`, the path of its own resource. Read only: add, change and read the detail of pages under `/v2/library/pages` and redirects under `/v2/library/redirects`. This combined list reaches the 1,000 most recently updated items (`offset` up to 900, `limit` up to 100); `total` counts all of them. Page past that with `/v2/library/pages` and `/v2/library/redirects`, which have no ceiling."
|
|
70702
|
+
},
|
|
70703
|
+
{
|
|
70704
|
+
name: "library-redirects-list",
|
|
70705
|
+
description: `List Redirects
|
|
70706
|
+
|
|
70707
|
+
Returns redirects recorded in the Library, newest first, each with whether agents that ask for the old address are now redirected.`
|
|
70708
|
+
},
|
|
70709
|
+
{
|
|
70710
|
+
name: "library-redirects-create",
|
|
70711
|
+
description: "Create Redirect\n\nRecords a redirect that is live on your site, so the Library can show whether it helps. The old address must be on your own site. This does not change your site. Sending the same request again returns the redirect it already made, so a retry is safe; a different `to_url` for an old address that already has a redirect is a 409."
|
|
70712
|
+
},
|
|
70713
|
+
{
|
|
70714
|
+
name: "library-redirects-check",
|
|
70715
|
+
description: `Check Redirect
|
|
70716
|
+
|
|
70717
|
+
Before recording a redirect: whether its old address is on a site Agent Analytics tracks (so it can be checked), what agents got there recently, and the eval fix that redirects the same address.`
|
|
70718
|
+
},
|
|
70719
|
+
{
|
|
70720
|
+
name: "library-redirects-get",
|
|
70721
|
+
description: `Retrieve Redirect
|
|
70722
|
+
|
|
70723
|
+
Returns one Library redirect.`
|
|
70724
|
+
},
|
|
70725
|
+
{
|
|
70726
|
+
name: "library-redirects-update",
|
|
70727
|
+
description: `Update Redirect
|
|
70728
|
+
|
|
70729
|
+
Renames a Library redirect or changes the day it went live; omitted fields remain unchanged.`
|
|
70730
|
+
},
|
|
70731
|
+
{
|
|
70732
|
+
name: "library-redirects-insights",
|
|
70733
|
+
description: `Redirect Insights
|
|
70734
|
+
|
|
70735
|
+
Whether agents that ask for the old address are now redirected: what Agent Analytics recorded at the old address in the 14 days before the redirect went live and since, agent visits to the new page, the eval fix that redirects the same address, and AI citations of both addresses.`
|
|
70736
|
+
},
|
|
70737
|
+
{
|
|
70738
|
+
name: "library-pages-list",
|
|
70739
|
+
description: `List Pages
|
|
70740
|
+
|
|
70741
|
+
Returns live pages in the Library, most recently updated first, with their citations and agent visits over the last 30 days. Content waiting to go live is pending publication on Tasks.`
|
|
70742
|
+
},
|
|
70743
|
+
{
|
|
70744
|
+
name: "library-pages-create",
|
|
70745
|
+
description: `Create Page
|
|
70746
|
+
|
|
70747
|
+
Adds a live page to the Library to track its citations and agent visits. Tracking fills in within a few minutes.`
|
|
70748
|
+
},
|
|
70749
|
+
{
|
|
70750
|
+
name: "library-pages-get",
|
|
70751
|
+
description: `Retrieve Page
|
|
70752
|
+
|
|
70753
|
+
Returns one Library page with its tracking and first-citation milestones.`
|
|
70754
|
+
},
|
|
70755
|
+
{
|
|
70756
|
+
name: "library-pages-update",
|
|
70757
|
+
description: `Update Page
|
|
70758
|
+
|
|
70759
|
+
Renames a Library page or changes the day it went live; omitted fields remain unchanged.`
|
|
70760
|
+
},
|
|
70761
|
+
{
|
|
70762
|
+
name: "library-pages-insights",
|
|
70763
|
+
description: `Page Insights
|
|
70764
|
+
|
|
70765
|
+
Returns a page's citations and agent visits per day, the last period against the one before, citations by AI platform and its trend. Counts run through yesterday.`
|
|
68745
70766
|
},
|
|
68746
70767
|
{
|
|
68747
70768
|
name: "site-audits-list",
|
|
@@ -68841,7 +70862,7 @@ Permanently deletes an eval configuration and returns its last saved state.`
|
|
|
68841
70862
|
},
|
|
68842
70863
|
{
|
|
68843
70864
|
name: "evals-run",
|
|
68844
|
-
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."
|
|
70865
|
+
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, starting `repository`, or runs for this launch only; the saved eval is not changed. 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."
|
|
68845
70866
|
},
|
|
68846
70867
|
{
|
|
68847
70868
|
name: "evals-cancel",
|
|
@@ -69895,7 +71916,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
69895
71916
|
<h1>Instructions</h1>
|
|
69896
71917
|
<p>One-click installation for Claude Desktop users</p>
|
|
69897
71918
|
<div class="instruction-item">
|
|
69898
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.
|
|
71919
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.28/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
69899
71920
|
\uD83D\uDCE5 Download MCP Bundle
|
|
69900
71921
|
</a>
|
|
69901
71922
|
</div>
|
|
@@ -72795,7 +74816,7 @@ var routes = buildRouteMap({
|
|
|
72795
74816
|
var app = buildApplication(routes, {
|
|
72796
74817
|
name: "mcp",
|
|
72797
74818
|
versionInfo: {
|
|
72798
|
-
currentVersion: "0.4.
|
|
74819
|
+
currentVersion: "0.4.28"
|
|
72799
74820
|
}
|
|
72800
74821
|
});
|
|
72801
74822
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -72803,5 +74824,5 @@ export {
|
|
|
72803
74824
|
app
|
|
72804
74825
|
};
|
|
72805
74826
|
|
|
72806
|
-
//# debugId=
|
|
74827
|
+
//# debugId=09850C28C6AD78BF64756E2164756E21
|
|
72807
74828
|
//# sourceMappingURL=mcp-server.js.map
|