@lightsage/mcp 0.4.26 → 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 +2772 -375
- package/bin/mcp-server.js.map +85 -21
- 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/funcs/promptsCreate.d.ts +1 -1
- package/esm/funcs/promptsCreate.js +1 -1
- package/esm/funcs/promptsTagsList.d.ts +15 -0
- package/esm/funcs/promptsTagsList.d.ts.map +1 -0
- package/esm/funcs/promptsTagsList.js +72 -0
- package/esm/funcs/promptsTagsList.js.map +1 -0
- package/esm/funcs/promptsUpdate.d.ts +1 -1
- package/esm/funcs/promptsUpdate.js +1 -1
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +27 -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/mcp-server/tools/promptsCreate.js +1 -1
- package/esm/mcp-server/tools/promptsCreate.js.map +1 -1
- package/esm/mcp-server/tools/promptsTagsList.d.ts +3 -0
- package/esm/mcp-server/tools/promptsTagsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsTagsList.js +30 -0
- package/esm/mcp-server/tools/promptsTagsList.js.map +1 -0
- package/esm/mcp-server/tools/promptsUpdate.js +1 -1
- package/esm/mcp-server/tools/promptsUpdate.js.map +1 -1
- 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/createv2promptrequest.d.ts +1 -0
- package/esm/models/createv2promptrequest.d.ts.map +1 -1
- package/esm/models/createv2promptrequest.js +1 -0
- package/esm/models/createv2promptrequest.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/updatev2promptrequest.d.ts +1 -0
- package/esm/models/updatev2promptrequest.d.ts.map +1 -1
- package/esm/models/updatev2promptrequest.js +1 -0
- package/esm/models/updatev2promptrequest.js.map +1 -1
- 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/v2prompttagsresponse.d.ts +8 -0
- package/esm/models/v2prompttagsresponse.d.ts.map +1 -0
- package/esm/models/v2prompttagsresponse.js +12 -0
- package/esm/models/v2prompttagsresponse.js.map +1 -0
- package/esm/models/v2taskslistop.d.ts +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +55 -3
- 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/funcs/promptsCreate.ts +1 -1
- package/src/funcs/promptsTagsList.ts +124 -0
- package/src/funcs/promptsUpdate.ts +1 -1
- 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 +27 -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/mcp-server/tools/promptsCreate.ts +1 -1
- package/src/mcp-server/tools/promptsTagsList.ts +36 -0
- package/src/mcp-server/tools/promptsUpdate.ts +1 -1
- package/src/models/createlibrarypagerequest.ts +30 -0
- package/src/models/createlibraryredirectrequest.ts +32 -0
- package/src/models/createv2evalrunrequest.ts +1 -1
- package/src/models/createv2promptrequest.ts +4 -0
- 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/updatev2promptrequest.ts +4 -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/models/v2prompttagsresponse.ts +21 -0
- package/src/tool-names.ts +55 -3
package/bin/mcp-server.js
CHANGED
|
@@ -6659,8 +6659,8 @@ var RequestError, nonJoinedHeaders, validHeaderName, isHttpWhitespace = (code) =
|
|
|
6659
6659
|
result = newBodyUnusableError();
|
|
6660
6660
|
else {
|
|
6661
6661
|
const bodyChunks = chunks ?? [];
|
|
6662
|
-
|
|
6663
|
-
|
|
6662
|
+
let chunk;
|
|
6663
|
+
while ((chunk = incoming.read()) !== null)
|
|
6664
6664
|
bodyChunks.push(toBufferChunk(chunk, incoming.readableEncoding));
|
|
6665
6665
|
const buffer = bodyChunks.length === 1 ? bodyChunks[0] : Buffer.concat(bodyChunks);
|
|
6666
6666
|
result = buffer;
|
|
@@ -7409,7 +7409,12 @@ var init_dist = __esm(() => {
|
|
|
7409
7409
|
reDotSegment = /\/\.\.?(?:[/?#]|$)/;
|
|
7410
7410
|
reValidHost = /^[a-z0-9._-]+(?::(?:[1-5]\d{3,4}|[6-9]\d{3}))?$/;
|
|
7411
7411
|
GlobalRequest = global.Request;
|
|
7412
|
-
Request$1 = class extends GlobalRequest {
|
|
7412
|
+
Request$1 = class Request$1 extends GlobalRequest {
|
|
7413
|
+
static [Symbol.hasInstance](instance) {
|
|
7414
|
+
if (this === Request$1)
|
|
7415
|
+
return instance instanceof GlobalRequest || Function.prototype[Symbol.hasInstance].call(this, instance);
|
|
7416
|
+
return Function.prototype[Symbol.hasInstance].call(this, instance);
|
|
7417
|
+
}
|
|
7413
7418
|
constructor(input, options) {
|
|
7414
7419
|
if (typeof input === "object" && getRequestCache in input) {
|
|
7415
7420
|
const hasReplacementBody = options !== undefined && "body" in options && options.body != null;
|
|
@@ -7556,6 +7561,9 @@ var init_dist = __esm(() => {
|
|
|
7556
7561
|
return new Response(buf, init).blob();
|
|
7557
7562
|
});
|
|
7558
7563
|
} });
|
|
7564
|
+
Object.defineProperty(requestPrototype, "bytes", { value: function() {
|
|
7565
|
+
return this.arrayBuffer().then((buf) => new Uint8Array(buf));
|
|
7566
|
+
} });
|
|
7559
7567
|
Object.defineProperty(requestPrototype, "json", { value: function() {
|
|
7560
7568
|
if (this[bodyConsumedDirectlyKey])
|
|
7561
7569
|
return rejectBodyUnusable();
|
|
@@ -7580,6 +7588,11 @@ var init_dist = __esm(() => {
|
|
|
7580
7588
|
Response$1 = class Response$1 {
|
|
7581
7589
|
#body;
|
|
7582
7590
|
#init;
|
|
7591
|
+
static [Symbol.hasInstance](instance) {
|
|
7592
|
+
if (this === Response$1)
|
|
7593
|
+
return instance instanceof GlobalResponse || Function.prototype[Symbol.hasInstance].call(this, instance);
|
|
7594
|
+
return Function.prototype[Symbol.hasInstance].call(this, instance);
|
|
7595
|
+
}
|
|
7583
7596
|
[getResponseCache]() {
|
|
7584
7597
|
const cache = this[cacheKey];
|
|
7585
7598
|
const liveHeaders = cache && cache[2] instanceof Headers ? cache[2] : undefined;
|
|
@@ -7600,7 +7613,7 @@ var init_dist = __esm(() => {
|
|
|
7600
7613
|
this[getResponseCache]();
|
|
7601
7614
|
return;
|
|
7602
7615
|
}
|
|
7603
|
-
this.#init = init
|
|
7616
|
+
this.#init = #init in init ? init.#init : init;
|
|
7604
7617
|
headers = new Headers(init.headers);
|
|
7605
7618
|
} else
|
|
7606
7619
|
this.#init = init;
|
|
@@ -7644,6 +7657,7 @@ var init_dist = __esm(() => {
|
|
|
7644
7657
|
[
|
|
7645
7658
|
"arrayBuffer",
|
|
7646
7659
|
"blob",
|
|
7660
|
+
"bytes",
|
|
7647
7661
|
"clone",
|
|
7648
7662
|
"formData",
|
|
7649
7663
|
"json",
|
|
@@ -29790,6 +29804,42 @@ var require_is_promise = __commonJS(function(exports, module) {
|
|
|
29790
29804
|
}
|
|
29791
29805
|
});
|
|
29792
29806
|
|
|
29807
|
+
// node_modules/router/lib/param.js
|
|
29808
|
+
var require_param = __commonJS(function(exports, module) {
|
|
29809
|
+
/*!
|
|
29810
|
+
* router
|
|
29811
|
+
* MIT Licensed
|
|
29812
|
+
*/
|
|
29813
|
+
var isPromise = require_is_promise();
|
|
29814
|
+
var deprecate = require_depd()("router");
|
|
29815
|
+
module.exports = callParam;
|
|
29816
|
+
function callParam(fn, req, res, next, value, name, onSettle) {
|
|
29817
|
+
try {
|
|
29818
|
+
const ret = fn(req, res, next, value, name);
|
|
29819
|
+
if (isPromise(ret)) {
|
|
29820
|
+
if (!(ret instanceof Promise)) {
|
|
29821
|
+
deprecate("parameters that are Promise-like are deprecated, use a native Promise instead");
|
|
29822
|
+
}
|
|
29823
|
+
try {
|
|
29824
|
+
ret.then(onSettle || noop, function(err) {
|
|
29825
|
+
rejected(err || new Error("Rejected promise"));
|
|
29826
|
+
});
|
|
29827
|
+
} catch (err) {
|
|
29828
|
+
rejected(err);
|
|
29829
|
+
}
|
|
29830
|
+
}
|
|
29831
|
+
} catch (err) {
|
|
29832
|
+
next(err);
|
|
29833
|
+
}
|
|
29834
|
+
function rejected(err) {
|
|
29835
|
+
next(err);
|
|
29836
|
+
if (onSettle)
|
|
29837
|
+
onSettle(err, true);
|
|
29838
|
+
}
|
|
29839
|
+
}
|
|
29840
|
+
function noop() {}
|
|
29841
|
+
});
|
|
29842
|
+
|
|
29793
29843
|
// node_modules/path-to-regexp/dist/index.js
|
|
29794
29844
|
var require_dist4 = __commonJS(function(exports) {
|
|
29795
29845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -30158,6 +30208,140 @@ var require_dist4 = __commonJS(function(exports) {
|
|
|
30158
30208
|
}
|
|
30159
30209
|
});
|
|
30160
30210
|
|
|
30211
|
+
// node_modules/router/lib/symbols.js
|
|
30212
|
+
var require_symbols = __commonJS(function(exports) {
|
|
30213
|
+
exports.matchedRoute = Symbol("router.tracing.matchedRoute");
|
|
30214
|
+
});
|
|
30215
|
+
|
|
30216
|
+
// node_modules/router/lib/tracing.js
|
|
30217
|
+
var require_tracing = __commonJS(function(exports) {
|
|
30218
|
+
/*!
|
|
30219
|
+
* router
|
|
30220
|
+
* MIT Licensed
|
|
30221
|
+
*/
|
|
30222
|
+
var dc = __require("node:diagnostics_channel");
|
|
30223
|
+
var isPromise = require_is_promise();
|
|
30224
|
+
var callParam = require_param();
|
|
30225
|
+
var requestChannel = dc.tracingChannel && dc.tracingChannel("express.router.request");
|
|
30226
|
+
var seenErrors = Symbol.for("router.tracing.publishedErrors");
|
|
30227
|
+
exports.publishEnd = publishEnd;
|
|
30228
|
+
exports.recordError = recordError;
|
|
30229
|
+
exports.recordThrown = recordThrown;
|
|
30230
|
+
exports.requestChannel = requestChannel;
|
|
30231
|
+
exports.shouldTrace = shouldTrace;
|
|
30232
|
+
exports.traceAsyncEnd = traceAsyncEnd;
|
|
30233
|
+
exports.traceParam = traceParam;
|
|
30234
|
+
exports.wrapNext = wrapNext;
|
|
30235
|
+
function shouldTrace(ch) {
|
|
30236
|
+
return Boolean(ch) && (ch.start.hasSubscribers || ch.end.hasSubscribers || ch.asyncStart.hasSubscribers || ch.asyncEnd.hasSubscribers || ch.error.hasSubscribers);
|
|
30237
|
+
}
|
|
30238
|
+
function recordError(req, err) {
|
|
30239
|
+
if (!err || isRoutingSignal(err))
|
|
30240
|
+
return false;
|
|
30241
|
+
let seen = req[seenErrors];
|
|
30242
|
+
if (!seen) {
|
|
30243
|
+
seen = req[seenErrors] = new Set;
|
|
30244
|
+
} else if (seen.has(err)) {
|
|
30245
|
+
return false;
|
|
30246
|
+
}
|
|
30247
|
+
seen.add(err);
|
|
30248
|
+
return true;
|
|
30249
|
+
}
|
|
30250
|
+
function isRoutingSignal(err) {
|
|
30251
|
+
return err === "route" || err === "router";
|
|
30252
|
+
}
|
|
30253
|
+
function recordThrown(ctx, err, sync) {
|
|
30254
|
+
if (isRoutingSignal(err)) {
|
|
30255
|
+
if (sync)
|
|
30256
|
+
ctx.result = undefined;
|
|
30257
|
+
return;
|
|
30258
|
+
}
|
|
30259
|
+
if (!("error" in ctx))
|
|
30260
|
+
ctx.error = err;
|
|
30261
|
+
}
|
|
30262
|
+
function forgetError(req, err) {
|
|
30263
|
+
const seen = req[seenErrors];
|
|
30264
|
+
if (seen)
|
|
30265
|
+
seen.delete(err);
|
|
30266
|
+
}
|
|
30267
|
+
function wrapNext(ctx, next) {
|
|
30268
|
+
if (ctx.errorHandler)
|
|
30269
|
+
recordError(ctx.req, ctx.incomingError);
|
|
30270
|
+
return function wrappedNext(err) {
|
|
30271
|
+
if (ctx.errorHandler && err !== ctx.incomingError)
|
|
30272
|
+
forgetError(ctx.req, ctx.incomingError);
|
|
30273
|
+
if (err && recordError(ctx.req, err)) {
|
|
30274
|
+
ctx.error = err;
|
|
30275
|
+
requestChannel.error.publish(ctx);
|
|
30276
|
+
}
|
|
30277
|
+
next(err);
|
|
30278
|
+
};
|
|
30279
|
+
}
|
|
30280
|
+
function publishEnd(ctx, async) {
|
|
30281
|
+
if (!async || !("error" in ctx))
|
|
30282
|
+
return requestChannel.end.publish(ctx);
|
|
30283
|
+
const error = ctx.error;
|
|
30284
|
+
delete ctx.error;
|
|
30285
|
+
requestChannel.end.publish(ctx);
|
|
30286
|
+
ctx.error = error;
|
|
30287
|
+
}
|
|
30288
|
+
function traceAsyncEnd(ctx) {
|
|
30289
|
+
requestChannel.asyncStart.runStores(ctx, publishAsyncEnd, null, ctx);
|
|
30290
|
+
}
|
|
30291
|
+
function publishAsyncEnd(ctx) {
|
|
30292
|
+
requestChannel.asyncEnd.publish(ctx);
|
|
30293
|
+
}
|
|
30294
|
+
function traceParam(fn, ctx, next, value, name) {
|
|
30295
|
+
const wrappedNext = wrapNext(ctx, next);
|
|
30296
|
+
let async = false;
|
|
30297
|
+
let ended = false;
|
|
30298
|
+
let settled = false;
|
|
30299
|
+
let early;
|
|
30300
|
+
requestChannel.start.runStores(ctx, function() {
|
|
30301
|
+
try {
|
|
30302
|
+
callParam(invoke, ctx.req, ctx.res, wrappedNext, value, name, settle);
|
|
30303
|
+
} finally {
|
|
30304
|
+
publishEnd(ctx, async);
|
|
30305
|
+
ended = true;
|
|
30306
|
+
if (early)
|
|
30307
|
+
early();
|
|
30308
|
+
}
|
|
30309
|
+
});
|
|
30310
|
+
function invoke(req, res, next, value, name) {
|
|
30311
|
+
let ret;
|
|
30312
|
+
try {
|
|
30313
|
+
ret = fn(req, res, next, value, name);
|
|
30314
|
+
} catch (err) {
|
|
30315
|
+
recordThrown(ctx, err, true);
|
|
30316
|
+
throw err;
|
|
30317
|
+
}
|
|
30318
|
+
async = isPromise(ret);
|
|
30319
|
+
if (!async)
|
|
30320
|
+
ctx.result = ret;
|
|
30321
|
+
return ret;
|
|
30322
|
+
}
|
|
30323
|
+
function settle(value, rejected) {
|
|
30324
|
+
if (settled)
|
|
30325
|
+
return;
|
|
30326
|
+
settled = true;
|
|
30327
|
+
if (!ended) {
|
|
30328
|
+
early = function() {
|
|
30329
|
+
finish(value, rejected);
|
|
30330
|
+
};
|
|
30331
|
+
return;
|
|
30332
|
+
}
|
|
30333
|
+
finish(value, rejected);
|
|
30334
|
+
}
|
|
30335
|
+
function finish(value, rejected) {
|
|
30336
|
+
if (!rejected)
|
|
30337
|
+
ctx.result = value;
|
|
30338
|
+
else
|
|
30339
|
+
recordThrown(ctx, value, false);
|
|
30340
|
+
traceAsyncEnd(ctx);
|
|
30341
|
+
}
|
|
30342
|
+
}
|
|
30343
|
+
});
|
|
30344
|
+
|
|
30161
30345
|
// node_modules/router/lib/layer.js
|
|
30162
30346
|
var require_layer = __commonJS(function(exports, module) {
|
|
30163
30347
|
/*!
|
|
@@ -30170,6 +30354,8 @@ var require_layer = __commonJS(function(exports, module) {
|
|
|
30170
30354
|
var pathRegexp = require_dist4();
|
|
30171
30355
|
var debug = require_src()("router:layer");
|
|
30172
30356
|
var deprecate = require_depd()("router");
|
|
30357
|
+
var { matchedRoute } = require_symbols();
|
|
30358
|
+
var { publishEnd, recordThrown, requestChannel, shouldTrace, traceAsyncEnd, wrapNext } = require_tracing();
|
|
30173
30359
|
var TRAILING_SLASH_REGEXP = /\/+$/;
|
|
30174
30360
|
var MATCHING_GROUP_REGEXP = /\((?:\?<(.*?)>)?(?!\?)/g;
|
|
30175
30361
|
module.exports = Layer;
|
|
@@ -30180,10 +30366,8 @@ var require_layer = __commonJS(function(exports, module) {
|
|
|
30180
30366
|
debug("new %o", path);
|
|
30181
30367
|
const opts = options || {};
|
|
30182
30368
|
this.handle = fn;
|
|
30183
|
-
this.keys = [];
|
|
30184
30369
|
this.name = fn.name || "<anonymous>";
|
|
30185
|
-
this.
|
|
30186
|
-
this.path = undefined;
|
|
30370
|
+
this.rawPath = Array.isArray(path) ? path.flat(Infinity) : path;
|
|
30187
30371
|
this.slash = path === "/" && opts.end === false;
|
|
30188
30372
|
function matcher(_path) {
|
|
30189
30373
|
if (_path instanceof RegExp) {
|
|
@@ -30223,72 +30407,141 @@ var require_layer = __commonJS(function(exports, module) {
|
|
|
30223
30407
|
decode: decodeParam
|
|
30224
30408
|
});
|
|
30225
30409
|
}
|
|
30226
|
-
this.matchers = Array.isArray(
|
|
30410
|
+
this.matchers = Array.isArray(this.rawPath) ? this.rawPath.map(matcher) : [matcher(path)];
|
|
30227
30411
|
}
|
|
30228
30412
|
Layer.prototype.handleError = function handleError(error, req, res, next) {
|
|
30229
30413
|
const fn = this.handle;
|
|
30230
30414
|
if (fn.length !== 4) {
|
|
30231
30415
|
return next(error);
|
|
30232
30416
|
}
|
|
30233
|
-
|
|
30234
|
-
|
|
30235
|
-
|
|
30236
|
-
if (
|
|
30237
|
-
|
|
30417
|
+
if (!shouldTrace(requestChannel)) {
|
|
30418
|
+
try {
|
|
30419
|
+
const ret = handlePromise(fn(error, req, res, next));
|
|
30420
|
+
if (ret) {
|
|
30421
|
+
ret.then(noop, function(error) {
|
|
30422
|
+
next(error || new Error("Rejected promise"));
|
|
30423
|
+
});
|
|
30238
30424
|
}
|
|
30239
|
-
|
|
30240
|
-
|
|
30241
|
-
});
|
|
30425
|
+
} catch (err) {
|
|
30426
|
+
next(err);
|
|
30242
30427
|
}
|
|
30243
|
-
|
|
30244
|
-
next(err);
|
|
30428
|
+
return;
|
|
30245
30429
|
}
|
|
30430
|
+
invokeWithTrace(function(wrappedNext) {
|
|
30431
|
+
return fn(error, req, res, wrappedNext);
|
|
30432
|
+
}, {
|
|
30433
|
+
req,
|
|
30434
|
+
res,
|
|
30435
|
+
incomingError: error,
|
|
30436
|
+
layer: this,
|
|
30437
|
+
handler: fn,
|
|
30438
|
+
route: req[matchedRoute],
|
|
30439
|
+
errorHandler: true
|
|
30440
|
+
}, next);
|
|
30246
30441
|
};
|
|
30247
30442
|
Layer.prototype.handleRequest = function handleRequest(req, res, next) {
|
|
30248
30443
|
const fn = this.handle;
|
|
30249
30444
|
if (fn.length > 3) {
|
|
30250
30445
|
return next();
|
|
30251
30446
|
}
|
|
30252
|
-
|
|
30253
|
-
|
|
30254
|
-
|
|
30255
|
-
if (
|
|
30256
|
-
|
|
30447
|
+
if (this.route || !shouldTrace(requestChannel)) {
|
|
30448
|
+
try {
|
|
30449
|
+
const ret = handlePromise(fn(req, res, next));
|
|
30450
|
+
if (ret) {
|
|
30451
|
+
ret.then(noop, function(error) {
|
|
30452
|
+
next(error || new Error("Rejected promise"));
|
|
30453
|
+
});
|
|
30257
30454
|
}
|
|
30258
|
-
|
|
30259
|
-
|
|
30455
|
+
} catch (err) {
|
|
30456
|
+
next(err);
|
|
30457
|
+
}
|
|
30458
|
+
return;
|
|
30459
|
+
}
|
|
30460
|
+
invokeWithTrace(function(wrappedNext) {
|
|
30461
|
+
return fn(req, res, wrappedNext);
|
|
30462
|
+
}, {
|
|
30463
|
+
req,
|
|
30464
|
+
res,
|
|
30465
|
+
layer: this,
|
|
30466
|
+
handler: fn,
|
|
30467
|
+
route: req[matchedRoute]
|
|
30468
|
+
}, next);
|
|
30469
|
+
};
|
|
30470
|
+
function invokeWithTrace(exec, ctx, next) {
|
|
30471
|
+
const wrappedNext = wrapNext(ctx, next);
|
|
30472
|
+
let settled = false;
|
|
30473
|
+
requestChannel.start.runStores(ctx, function() {
|
|
30474
|
+
let out;
|
|
30475
|
+
try {
|
|
30476
|
+
const ret = exec(wrappedNext);
|
|
30477
|
+
out = handlePromise(ret);
|
|
30478
|
+
if (!out)
|
|
30479
|
+
ctx.result = ret;
|
|
30480
|
+
} catch (err) {
|
|
30481
|
+
wrappedNext(err);
|
|
30482
|
+
recordThrown(ctx, err, true);
|
|
30483
|
+
publishEnd(ctx, false);
|
|
30484
|
+
return;
|
|
30485
|
+
}
|
|
30486
|
+
publishEnd(ctx, Boolean(out));
|
|
30487
|
+
if (!out)
|
|
30488
|
+
return;
|
|
30489
|
+
try {
|
|
30490
|
+
out.then(function(value) {
|
|
30491
|
+
if (settled)
|
|
30492
|
+
return;
|
|
30493
|
+
settled = true;
|
|
30494
|
+
ctx.result = value;
|
|
30495
|
+
traceAsyncEnd(ctx);
|
|
30496
|
+
}, function(err) {
|
|
30497
|
+
rejected(err || new Error("Rejected promise"));
|
|
30260
30498
|
});
|
|
30499
|
+
} catch (err) {
|
|
30500
|
+
rejected(err);
|
|
30261
30501
|
}
|
|
30262
|
-
}
|
|
30263
|
-
|
|
30502
|
+
});
|
|
30503
|
+
function rejected(err) {
|
|
30504
|
+
wrappedNext(err);
|
|
30505
|
+
if (settled)
|
|
30506
|
+
return;
|
|
30507
|
+
settled = true;
|
|
30508
|
+
recordThrown(ctx, err, false);
|
|
30509
|
+
traceAsyncEnd(ctx);
|
|
30264
30510
|
}
|
|
30265
|
-
}
|
|
30511
|
+
}
|
|
30512
|
+
function noop() {}
|
|
30513
|
+
function handlePromise(ret) {
|
|
30514
|
+
if (isPromise(ret)) {
|
|
30515
|
+
if (!(ret instanceof Promise)) {
|
|
30516
|
+
deprecate("handlers that are Promise-like are deprecated, use a native Promise instead");
|
|
30517
|
+
}
|
|
30518
|
+
return ret;
|
|
30519
|
+
}
|
|
30520
|
+
}
|
|
30266
30521
|
Layer.prototype.match = function match(path) {
|
|
30267
30522
|
let match;
|
|
30523
|
+
let i = 0;
|
|
30268
30524
|
if (path != null) {
|
|
30269
30525
|
if (this.slash) {
|
|
30270
|
-
|
|
30271
|
-
this.path = "";
|
|
30272
|
-
return true;
|
|
30526
|
+
return { params: {}, path: "", keys: [], pattern: this.rawPath };
|
|
30273
30527
|
}
|
|
30274
|
-
let i = 0;
|
|
30275
30528
|
while (!match && i < this.matchers.length) {
|
|
30276
30529
|
match = this.matchers[i](path);
|
|
30277
30530
|
i++;
|
|
30278
30531
|
}
|
|
30279
30532
|
}
|
|
30280
30533
|
if (!match) {
|
|
30281
|
-
this.params = undefined;
|
|
30282
|
-
this.path = undefined;
|
|
30283
30534
|
return false;
|
|
30284
30535
|
}
|
|
30285
|
-
|
|
30286
|
-
|
|
30287
|
-
|
|
30288
|
-
|
|
30536
|
+
return {
|
|
30537
|
+
params: match.params,
|
|
30538
|
+
path: match.path,
|
|
30539
|
+
keys: Object.keys(match.params),
|
|
30540
|
+
pattern: Array.isArray(this.rawPath) ? this.rawPath[i - 1] : this.rawPath
|
|
30541
|
+
};
|
|
30289
30542
|
};
|
|
30290
30543
|
function decodeParam(val) {
|
|
30291
|
-
if (typeof val !== "string" || val.length === 0) {
|
|
30544
|
+
if (typeof val !== "string" || val.length === 0 || val.indexOf("%") === -1) {
|
|
30292
30545
|
return val;
|
|
30293
30546
|
}
|
|
30294
30547
|
try {
|
|
@@ -30296,7 +30549,7 @@ var require_layer = __commonJS(function(exports, module) {
|
|
|
30296
30549
|
} catch (err) {
|
|
30297
30550
|
if (err instanceof URIError) {
|
|
30298
30551
|
err.message = "Failed to decode param '" + val + "'";
|
|
30299
|
-
err.status = 400;
|
|
30552
|
+
err.status = err.statusCode = 400;
|
|
30300
30553
|
}
|
|
30301
30554
|
throw err;
|
|
30302
30555
|
}
|
|
@@ -30342,13 +30595,19 @@ var require_route = __commonJS(function(exports, module) {
|
|
|
30342
30595
|
}
|
|
30343
30596
|
return Boolean(this.methods[name]);
|
|
30344
30597
|
};
|
|
30345
|
-
Route.prototype._methods = function _methods() {
|
|
30346
|
-
const methods =
|
|
30347
|
-
|
|
30348
|
-
|
|
30598
|
+
Route.prototype._methods = function _methods(includeAll) {
|
|
30599
|
+
const methods = [];
|
|
30600
|
+
for (const method of Object.keys(this.methods)) {
|
|
30601
|
+
if (method === "_all") {
|
|
30602
|
+
if (includeAll) {
|
|
30603
|
+
methods.push("*");
|
|
30604
|
+
}
|
|
30605
|
+
} else {
|
|
30606
|
+
methods.push(method.toUpperCase());
|
|
30607
|
+
}
|
|
30349
30608
|
}
|
|
30350
|
-
|
|
30351
|
-
methods
|
|
30609
|
+
if (this.methods.get && !this.methods.head) {
|
|
30610
|
+
methods.push("HEAD");
|
|
30352
30611
|
}
|
|
30353
30612
|
return methods;
|
|
30354
30613
|
};
|
|
@@ -30442,13 +30701,14 @@ var require_router = __commonJS(function(exports, module) {
|
|
|
30442
30701
|
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
30443
30702
|
* MIT Licensed
|
|
30444
30703
|
*/
|
|
30445
|
-
var
|
|
30704
|
+
var callParam = require_param();
|
|
30446
30705
|
var Layer = require_layer();
|
|
30706
|
+
var { matchedRoute } = require_symbols();
|
|
30707
|
+
var { recordError, requestChannel, shouldTrace, traceParam } = require_tracing();
|
|
30447
30708
|
var { METHODS } = __require("node:http");
|
|
30448
30709
|
var parseUrl = require_parseurl();
|
|
30449
30710
|
var Route = require_route();
|
|
30450
30711
|
var debug = require_src()("router");
|
|
30451
|
-
var deprecate = require_depd()("router");
|
|
30452
30712
|
var slice = Array.prototype.slice;
|
|
30453
30713
|
var flatten = Array.prototype.flat;
|
|
30454
30714
|
var methods = METHODS.map((method) => method.toLowerCase());
|
|
@@ -30507,7 +30767,7 @@ var require_router = __commonJS(function(exports, module) {
|
|
|
30507
30767
|
const stack = this.stack;
|
|
30508
30768
|
const parentParams = req.params;
|
|
30509
30769
|
const parentUrl = req.baseUrl || "";
|
|
30510
|
-
let done = restore(callback, req, "baseUrl", "next", "params");
|
|
30770
|
+
let done = restore(callback, req, "baseUrl", "next", "params", matchedRoute);
|
|
30511
30771
|
req.next = next;
|
|
30512
30772
|
if (req.method === "OPTIONS") {
|
|
30513
30773
|
methods = [];
|
|
@@ -30517,9 +30777,14 @@ var require_router = __commonJS(function(exports, module) {
|
|
|
30517
30777
|
req.originalUrl = req.originalUrl || req.url;
|
|
30518
30778
|
next();
|
|
30519
30779
|
function next(err) {
|
|
30780
|
+
if (err)
|
|
30781
|
+
recordError(req, err);
|
|
30520
30782
|
let layerError = err === "route" ? null : err;
|
|
30521
30783
|
if (slashAdded) {
|
|
30522
|
-
req.url
|
|
30784
|
+
const pathIsRoot = req.url === "/" || req.url.startsWith("/?");
|
|
30785
|
+
if (pathIsRoot || removed.endsWith("/") && req.url[0] === "/") {
|
|
30786
|
+
req.url = req.url.slice(1);
|
|
30787
|
+
}
|
|
30523
30788
|
slashAdded = false;
|
|
30524
30789
|
}
|
|
30525
30790
|
if (removed.length !== 0) {
|
|
@@ -30545,14 +30810,17 @@ var require_router = __commonJS(function(exports, module) {
|
|
|
30545
30810
|
let layer;
|
|
30546
30811
|
let match;
|
|
30547
30812
|
let route;
|
|
30548
|
-
while (match
|
|
30813
|
+
while (!match && idx < stack.length) {
|
|
30549
30814
|
layer = stack[idx++];
|
|
30550
|
-
match = matchLayer(layer, path);
|
|
30551
30815
|
route = layer.route;
|
|
30552
|
-
|
|
30553
|
-
|
|
30816
|
+
try {
|
|
30817
|
+
match = layer.match(path);
|
|
30818
|
+
} catch (err) {
|
|
30819
|
+
recordError(req, err);
|
|
30820
|
+
layerError = layerError || err;
|
|
30821
|
+
match = false;
|
|
30554
30822
|
}
|
|
30555
|
-
if (match
|
|
30823
|
+
if (!match) {
|
|
30556
30824
|
continue;
|
|
30557
30825
|
}
|
|
30558
30826
|
if (!route) {
|
|
@@ -30571,21 +30839,21 @@ var require_router = __commonJS(function(exports, module) {
|
|
|
30571
30839
|
match = false;
|
|
30572
30840
|
}
|
|
30573
30841
|
}
|
|
30574
|
-
if (match
|
|
30842
|
+
if (!match) {
|
|
30575
30843
|
return done(layerError);
|
|
30576
30844
|
}
|
|
30577
30845
|
if (route) {
|
|
30578
30846
|
req.route = route;
|
|
30579
30847
|
}
|
|
30580
|
-
req
|
|
30581
|
-
|
|
30582
|
-
processParams(self.params, layer, paramcalled, req, res, function(err) {
|
|
30848
|
+
req[matchedRoute] = match.pattern;
|
|
30849
|
+
req.params = self.mergeParams ? mergeParams(match.params, parentParams) : match.params;
|
|
30850
|
+
processParams(self.params, layer, match.keys, paramcalled, req, res, function(err) {
|
|
30583
30851
|
if (err) {
|
|
30584
30852
|
next(layerError || err);
|
|
30585
30853
|
} else if (route) {
|
|
30586
30854
|
layer.handleRequest(req, res, next);
|
|
30587
30855
|
} else {
|
|
30588
|
-
trimPrefix(layer, layerError,
|
|
30856
|
+
trimPrefix(layer, layerError, match.path, path);
|
|
30589
30857
|
}
|
|
30590
30858
|
sync = 0;
|
|
30591
30859
|
});
|
|
@@ -30665,6 +30933,25 @@ var require_router = __commonJS(function(exports, module) {
|
|
|
30665
30933
|
this.stack.push(layer);
|
|
30666
30934
|
return route;
|
|
30667
30935
|
};
|
|
30936
|
+
Router.prototype.listRoutes = function listRoutes() {
|
|
30937
|
+
const routes = [];
|
|
30938
|
+
for (const layer of this.stack) {
|
|
30939
|
+
const route = layer.route;
|
|
30940
|
+
const router = !route && Array.isArray(layer.handle.stack) ? layer.handle : undefined;
|
|
30941
|
+
if (!route && !router) {
|
|
30942
|
+
continue;
|
|
30943
|
+
}
|
|
30944
|
+
const methods = route ? route._methods(true) : undefined;
|
|
30945
|
+
if (Array.isArray(layer.rawPath)) {
|
|
30946
|
+
for (const path of layer.rawPath) {
|
|
30947
|
+
routes.push({ path, methods: methods && methods.slice(), router });
|
|
30948
|
+
}
|
|
30949
|
+
} else {
|
|
30950
|
+
routes.push({ path: layer.rawPath, methods, router });
|
|
30951
|
+
}
|
|
30952
|
+
}
|
|
30953
|
+
return routes;
|
|
30954
|
+
};
|
|
30668
30955
|
methods.concat("all").forEach(function(method) {
|
|
30669
30956
|
Router.prototype[method] = function(path) {
|
|
30670
30957
|
const route = this.route(path);
|
|
@@ -30696,13 +30983,6 @@ var require_router = __commonJS(function(exports, module) {
|
|
|
30696
30983
|
const fqdnIndex = url.substring(0, pathLength).indexOf("://");
|
|
30697
30984
|
return fqdnIndex !== -1 ? url.substring(0, url.indexOf("/", 3 + fqdnIndex)) : undefined;
|
|
30698
30985
|
}
|
|
30699
|
-
function matchLayer(layer, path) {
|
|
30700
|
-
try {
|
|
30701
|
-
return layer.match(path);
|
|
30702
|
-
} catch (err) {
|
|
30703
|
-
return err;
|
|
30704
|
-
}
|
|
30705
|
-
}
|
|
30706
30986
|
function mergeParams(params, parent) {
|
|
30707
30987
|
if (typeof parent !== "object" || !parent) {
|
|
30708
30988
|
return params;
|
|
@@ -30727,8 +31007,7 @@ var require_router = __commonJS(function(exports, module) {
|
|
|
30727
31007
|
}
|
|
30728
31008
|
return Object.assign(obj, params);
|
|
30729
31009
|
}
|
|
30730
|
-
function processParams(params, layer, called, req, res, done) {
|
|
30731
|
-
const keys = layer.keys;
|
|
31010
|
+
function processParams(params, layer, keys, called, req, res, done) {
|
|
30732
31011
|
if (!keys || keys.length === 0) {
|
|
30733
31012
|
return done();
|
|
30734
31013
|
}
|
|
@@ -30774,19 +31053,18 @@ var require_router = __commonJS(function(exports, module) {
|
|
|
30774
31053
|
}
|
|
30775
31054
|
if (!fn)
|
|
30776
31055
|
return param();
|
|
30777
|
-
|
|
30778
|
-
|
|
30779
|
-
|
|
30780
|
-
|
|
30781
|
-
|
|
30782
|
-
|
|
30783
|
-
|
|
30784
|
-
|
|
30785
|
-
|
|
30786
|
-
|
|
30787
|
-
} catch (e) {
|
|
30788
|
-
paramCallback(e);
|
|
31056
|
+
if (shouldTrace(requestChannel)) {
|
|
31057
|
+
traceParam(fn, {
|
|
31058
|
+
req,
|
|
31059
|
+
res,
|
|
31060
|
+
layer,
|
|
31061
|
+
handler: fn,
|
|
31062
|
+
route: req[matchedRoute],
|
|
31063
|
+
param: key
|
|
31064
|
+
}, paramCallback, paramVal, key);
|
|
31065
|
+
return;
|
|
30789
31066
|
}
|
|
31067
|
+
callParam(fn, req, res, paramCallback, paramVal, key);
|
|
30790
31068
|
}
|
|
30791
31069
|
param();
|
|
30792
31070
|
}
|
|
@@ -54493,9 +54771,9 @@ var init_config = __esm(() => {
|
|
|
54493
54771
|
SDK_METADATA = {
|
|
54494
54772
|
language: "typescript",
|
|
54495
54773
|
openapiDocVersion: "1.0.0",
|
|
54496
|
-
sdkVersion: "0.4.
|
|
54774
|
+
sdkVersion: "0.4.28",
|
|
54497
54775
|
genVersion: "2.948.4",
|
|
54498
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
54776
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.28 2.948.4 1.0.0 @lightsage/mcp"
|
|
54499
54777
|
};
|
|
54500
54778
|
});
|
|
54501
54779
|
|
|
@@ -60538,7 +60816,7 @@ var init_createv2evalrunrequest = __esm(() => {
|
|
|
60538
60816
|
name: string2().optional().describe("Direct create-and-run form only. Display name for the durable eval. Defaults to the first prompt."),
|
|
60539
60817
|
persona: string2().optional().describe("Optional perspective for every attempt in this launch. It does not modify prompts or add a fan-out dimension."),
|
|
60540
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`."),
|
|
60541
|
-
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."),
|
|
60542
60820
|
runs: int().optional().describe("Independent attempts for every prompt-agent pair. Defaults to the saved eval value or 1 for a direct run."),
|
|
60543
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`."),
|
|
60544
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`."),
|
|
@@ -60640,7 +60918,7 @@ Eval runs measure how well agents complete tasks with your product. To compare h
|
|
|
60640
60918
|
|
|
60641
60919
|
Send one of these flat request forms:
|
|
60642
60920
|
|
|
60643
|
-
- **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.
|
|
60644
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.
|
|
60645
60923
|
|
|
60646
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.
|
|
@@ -61596,30 +61874,1843 @@ async function $do37(client$, request, options) {
|
|
|
61596
61874
|
response: doResult.value
|
|
61597
61875
|
}];
|
|
61598
61876
|
}
|
|
61599
|
-
var init_evalTemplatesRetrieve = __esm(() => {
|
|
61877
|
+
var init_evalTemplatesRetrieve = __esm(() => {
|
|
61878
|
+
init_encodings();
|
|
61879
|
+
init_primitives();
|
|
61880
|
+
init_schemas4();
|
|
61881
|
+
init_security();
|
|
61882
|
+
init_url();
|
|
61883
|
+
init_v2evaltemplatesretrieveop();
|
|
61884
|
+
init_async();
|
|
61885
|
+
});
|
|
61886
|
+
|
|
61887
|
+
// src/mcp-server/tools/evalTemplatesRetrieve.ts
|
|
61888
|
+
var args29, tool$evalTemplatesRetrieve;
|
|
61889
|
+
var init_evalTemplatesRetrieve2 = __esm(() => {
|
|
61890
|
+
init_evalTemplatesRetrieve();
|
|
61891
|
+
init_v2evaltemplatesretrieveop();
|
|
61892
|
+
init_tools();
|
|
61893
|
+
args29 = {
|
|
61894
|
+
request: V2EvalTemplatesRetrieveRequest$zodSchema
|
|
61895
|
+
};
|
|
61896
|
+
tool$evalTemplatesRetrieve = {
|
|
61897
|
+
name: "eval-templates-retrieve",
|
|
61898
|
+
description: `Retrieve an Eval template
|
|
61899
|
+
|
|
61900
|
+
Returns one active reusable Eval template.`,
|
|
61901
|
+
annotations: {
|
|
61902
|
+
title: "",
|
|
61903
|
+
destructiveHint: false,
|
|
61904
|
+
idempotentHint: false,
|
|
61905
|
+
openWorldHint: false,
|
|
61906
|
+
readOnlyHint: true
|
|
61907
|
+
},
|
|
61908
|
+
args: args29,
|
|
61909
|
+
tool: async (client, args, ctx) => {
|
|
61910
|
+
const [result] = await evalTemplatesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61911
|
+
if (!result.ok) {
|
|
61912
|
+
return {
|
|
61913
|
+
content: [{ type: "text", text: result.error.message }],
|
|
61914
|
+
isError: true
|
|
61915
|
+
};
|
|
61916
|
+
}
|
|
61917
|
+
return formatResult(result.value);
|
|
61918
|
+
}
|
|
61919
|
+
};
|
|
61920
|
+
});
|
|
61921
|
+
|
|
61922
|
+
// src/models/updateevaltemplaterequest.ts
|
|
61923
|
+
var UpdateEvalTemplateRequestEvalType$zodSchema, UpdateEvalTemplateRequestIncludedComponent$zodSchema, UpdateEvalTemplateRequest$zodSchema;
|
|
61924
|
+
var init_updateevaltemplaterequest = __esm(() => {
|
|
61925
|
+
init_zod();
|
|
61926
|
+
init_evaltemplateruntime();
|
|
61927
|
+
init_evaltemplateschedule();
|
|
61928
|
+
init_graderdefinition();
|
|
61929
|
+
UpdateEvalTemplateRequestEvalType$zodSchema = _enum([
|
|
61930
|
+
"custom_eval",
|
|
61931
|
+
"agent_preference"
|
|
61932
|
+
]);
|
|
61933
|
+
UpdateEvalTemplateRequestIncludedComponent$zodSchema = _enum([
|
|
61934
|
+
"judges",
|
|
61935
|
+
"targets",
|
|
61936
|
+
"persona",
|
|
61937
|
+
"competitors",
|
|
61938
|
+
"tag",
|
|
61939
|
+
"category",
|
|
61940
|
+
"runs",
|
|
61941
|
+
"schedule",
|
|
61942
|
+
"repository",
|
|
61943
|
+
"environment",
|
|
61944
|
+
"search_grounding",
|
|
61945
|
+
"skills",
|
|
61946
|
+
"mcp_servers",
|
|
61947
|
+
"clis",
|
|
61948
|
+
"brand_docs",
|
|
61949
|
+
"github_pr",
|
|
61950
|
+
"runtime_commands"
|
|
61951
|
+
]);
|
|
61952
|
+
UpdateEvalTemplateRequest$zodSchema = object({
|
|
61953
|
+
agent: array(string2()).nullable().optional().describe("Replacement agents from `GET /v2/agents`. Omit to leave the saved agents unchanged."),
|
|
61954
|
+
category_name: string2().optional(),
|
|
61955
|
+
competitor_ids: array(string2()).nullable().optional(),
|
|
61956
|
+
description: string2().optional(),
|
|
61957
|
+
eval_type: UpdateEvalTemplateRequestEvalType$zodSchema.optional(),
|
|
61958
|
+
expected_template_version: int().optional(),
|
|
61959
|
+
included_components: array(UpdateEvalTemplateRequestIncludedComponent$zodSchema).nullable().optional(),
|
|
61960
|
+
judges: array(GraderDefinition$zodSchema).nullable().optional(),
|
|
61961
|
+
name: string2().optional(),
|
|
61962
|
+
persona: string2().optional(),
|
|
61963
|
+
prompt: string2().optional(),
|
|
61964
|
+
runs_per_execution: int().optional(),
|
|
61965
|
+
runtime: EvalTemplateRuntime$zodSchema.nullable().optional(),
|
|
61966
|
+
schedule: EvalTemplateSchedule$zodSchema.nullable().optional(),
|
|
61967
|
+
tag: string2().optional()
|
|
61968
|
+
});
|
|
61969
|
+
});
|
|
61970
|
+
|
|
61971
|
+
// src/models/v2evaltemplatesupdateop.ts
|
|
61972
|
+
var V2EvalTemplatesUpdateRequest$zodSchema, V2EvalTemplatesUpdateConflictResponseBody$zodSchema, V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema, V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema, V2EvalTemplatesUpdateResponse$zodSchema;
|
|
61973
|
+
var init_v2evaltemplatesupdateop = __esm(() => {
|
|
61974
|
+
init_zod();
|
|
61975
|
+
init_evaltemplate();
|
|
61976
|
+
init_httpvalidationerror();
|
|
61977
|
+
init_updateevaltemplaterequest();
|
|
61978
|
+
V2EvalTemplatesUpdateRequest$zodSchema = object({
|
|
61979
|
+
body: UpdateEvalTemplateRequest$zodSchema,
|
|
61980
|
+
template_id: string2()
|
|
61981
|
+
});
|
|
61982
|
+
V2EvalTemplatesUpdateConflictResponseBody$zodSchema = object({
|
|
61983
|
+
detail: string2()
|
|
61984
|
+
}).describe("The supplied template version is stale.");
|
|
61985
|
+
V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema = object({
|
|
61986
|
+
detail: string2()
|
|
61987
|
+
}).describe("The Eval template does not exist in the organization.");
|
|
61988
|
+
V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema = object({
|
|
61989
|
+
detail: string2()
|
|
61990
|
+
}).describe("The template contains invalid judges, targets, scheduling, metadata, or organization resources.");
|
|
61991
|
+
V2EvalTemplatesUpdateResponse$zodSchema = union([
|
|
61992
|
+
EvalTemplate$zodSchema,
|
|
61993
|
+
lazy(() => V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema),
|
|
61994
|
+
lazy(() => V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema),
|
|
61995
|
+
lazy(() => V2EvalTemplatesUpdateConflictResponseBody$zodSchema),
|
|
61996
|
+
HTTPValidationError$zodSchema
|
|
61997
|
+
]);
|
|
61998
|
+
});
|
|
61999
|
+
|
|
62000
|
+
// src/funcs/evalTemplatesUpdate.ts
|
|
62001
|
+
function evalTemplatesUpdate(client$, request, options) {
|
|
62002
|
+
return new APIPromise($do38(client$, request, options));
|
|
62003
|
+
}
|
|
62004
|
+
async function $do38(client$, request, options) {
|
|
62005
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62006
|
+
if (!parsed$.ok) {
|
|
62007
|
+
return [parsed$, { status: "invalid" }];
|
|
62008
|
+
}
|
|
62009
|
+
const payload$ = parsed$.value;
|
|
62010
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
62011
|
+
const pathParams$ = {
|
|
62012
|
+
template_id: encodeSimple("template_id", payload$.template_id, {
|
|
62013
|
+
explode: false,
|
|
62014
|
+
charEncoding: "percent"
|
|
62015
|
+
})
|
|
62016
|
+
};
|
|
62017
|
+
const path$ = pathToFunc("/v2/eval-templates/{template_id}")(pathParams$);
|
|
62018
|
+
const headers$ = new Headers(compactMap({
|
|
62019
|
+
"Content-Type": "application/json",
|
|
62020
|
+
Accept: "application/json"
|
|
62021
|
+
}));
|
|
62022
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
62023
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
62024
|
+
const context = {
|
|
62025
|
+
options: client$._options,
|
|
62026
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
62027
|
+
operationID: "v2_eval_templates_update",
|
|
62028
|
+
oAuth2Scopes: null,
|
|
62029
|
+
resolvedSecurity: requestSecurity,
|
|
62030
|
+
securitySource: client$._options.security,
|
|
62031
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
62032
|
+
retryCodes: options?.retryCodes || [
|
|
62033
|
+
"429",
|
|
62034
|
+
"500",
|
|
62035
|
+
"502",
|
|
62036
|
+
"503",
|
|
62037
|
+
"504"
|
|
62038
|
+
]
|
|
62039
|
+
};
|
|
62040
|
+
const requestRes = client$._createRequest(context, {
|
|
62041
|
+
security: requestSecurity,
|
|
62042
|
+
method: "PATCH",
|
|
62043
|
+
baseURL: options?.serverURL,
|
|
62044
|
+
path: path$,
|
|
62045
|
+
headers: headers$,
|
|
62046
|
+
body: body$,
|
|
62047
|
+
userAgent: client$._options.userAgent,
|
|
62048
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
62049
|
+
}, options);
|
|
62050
|
+
if (!requestRes.ok) {
|
|
62051
|
+
return [requestRes, { status: "invalid" }];
|
|
62052
|
+
}
|
|
62053
|
+
const req$ = requestRes.value;
|
|
62054
|
+
const doResult = await client$._do(req$, {
|
|
62055
|
+
context,
|
|
62056
|
+
errorCodes: [],
|
|
62057
|
+
retryConfig: context.retryConfig,
|
|
62058
|
+
retryCodes: context.retryCodes
|
|
62059
|
+
});
|
|
62060
|
+
if (!doResult.ok) {
|
|
62061
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
62062
|
+
}
|
|
62063
|
+
return [doResult, {
|
|
62064
|
+
status: "complete",
|
|
62065
|
+
request: req$,
|
|
62066
|
+
response: doResult.value
|
|
62067
|
+
}];
|
|
62068
|
+
}
|
|
62069
|
+
var init_evalTemplatesUpdate = __esm(() => {
|
|
62070
|
+
init_encodings();
|
|
62071
|
+
init_primitives();
|
|
62072
|
+
init_schemas4();
|
|
62073
|
+
init_security();
|
|
62074
|
+
init_url();
|
|
62075
|
+
init_v2evaltemplatesupdateop();
|
|
62076
|
+
init_async();
|
|
62077
|
+
});
|
|
62078
|
+
|
|
62079
|
+
// src/mcp-server/tools/evalTemplatesUpdate.ts
|
|
62080
|
+
var args30, tool$evalTemplatesUpdate;
|
|
62081
|
+
var init_evalTemplatesUpdate2 = __esm(() => {
|
|
62082
|
+
init_evalTemplatesUpdate();
|
|
62083
|
+
init_v2evaltemplatesupdateop();
|
|
62084
|
+
init_tools();
|
|
62085
|
+
args30 = {
|
|
62086
|
+
request: V2EvalTemplatesUpdateRequest$zodSchema
|
|
62087
|
+
};
|
|
62088
|
+
tool$evalTemplatesUpdate = {
|
|
62089
|
+
name: "eval-templates-update",
|
|
62090
|
+
description: `Update an Eval template
|
|
62091
|
+
|
|
62092
|
+
Updates an Eval template. Supply \`expected_template_version\` to reject an edit based on stale data. Existing evals are never changed.`,
|
|
62093
|
+
annotations: {
|
|
62094
|
+
title: "",
|
|
62095
|
+
destructiveHint: false,
|
|
62096
|
+
idempotentHint: false,
|
|
62097
|
+
openWorldHint: false,
|
|
62098
|
+
readOnlyHint: false
|
|
62099
|
+
},
|
|
62100
|
+
args: args30,
|
|
62101
|
+
tool: async (client, args, ctx) => {
|
|
62102
|
+
const [result] = await evalTemplatesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62103
|
+
if (!result.ok) {
|
|
62104
|
+
return {
|
|
62105
|
+
content: [{ type: "text", text: result.error.message }],
|
|
62106
|
+
isError: true
|
|
62107
|
+
};
|
|
62108
|
+
}
|
|
62109
|
+
return formatResult(result.value);
|
|
62110
|
+
}
|
|
62111
|
+
};
|
|
62112
|
+
});
|
|
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(() => {
|
|
61600
63691
|
init_encodings();
|
|
61601
63692
|
init_primitives();
|
|
61602
63693
|
init_schemas4();
|
|
61603
63694
|
init_security();
|
|
61604
63695
|
init_url();
|
|
61605
|
-
|
|
63696
|
+
init_v2libraryredirectsinsightsop();
|
|
61606
63697
|
init_async();
|
|
61607
63698
|
});
|
|
61608
63699
|
|
|
61609
|
-
// src/mcp-server/tools/
|
|
61610
|
-
var
|
|
61611
|
-
var
|
|
61612
|
-
|
|
61613
|
-
|
|
63700
|
+
// src/mcp-server/tools/libraryRedirectsInsights.ts
|
|
63701
|
+
var args40, tool$libraryRedirectsInsights;
|
|
63702
|
+
var init_libraryRedirectsInsights2 = __esm(() => {
|
|
63703
|
+
init_libraryRedirectsInsights();
|
|
63704
|
+
init_v2libraryredirectsinsightsop();
|
|
61614
63705
|
init_tools();
|
|
61615
|
-
|
|
61616
|
-
request:
|
|
63706
|
+
args40 = {
|
|
63707
|
+
request: V2LibraryRedirectsInsightsRequest$zodSchema
|
|
61617
63708
|
};
|
|
61618
|
-
tool$
|
|
61619
|
-
name: "
|
|
61620
|
-
description: `
|
|
63709
|
+
tool$libraryRedirectsInsights = {
|
|
63710
|
+
name: "library-redirects-insights",
|
|
63711
|
+
description: `Redirect Insights
|
|
61621
63712
|
|
|
61622
|
-
|
|
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.`,
|
|
61623
63714
|
annotations: {
|
|
61624
63715
|
title: "",
|
|
61625
63716
|
destructiveHint: false,
|
|
@@ -61627,9 +63718,9 @@ Returns one active reusable Eval template.`,
|
|
|
61627
63718
|
openWorldHint: false,
|
|
61628
63719
|
readOnlyHint: true
|
|
61629
63720
|
},
|
|
61630
|
-
args:
|
|
63721
|
+
args: args40,
|
|
61631
63722
|
tool: async (client, args, ctx) => {
|
|
61632
|
-
const [result] = await
|
|
63723
|
+
const [result] = await libraryRedirectsInsights(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61633
63724
|
if (!result.ok) {
|
|
61634
63725
|
return {
|
|
61635
63726
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61641,102 +63732,218 @@ Returns one active reusable Eval template.`,
|
|
|
61641
63732
|
};
|
|
61642
63733
|
});
|
|
61643
63734
|
|
|
61644
|
-
// src/models/
|
|
61645
|
-
var
|
|
61646
|
-
var
|
|
63735
|
+
// src/models/libraryredirectsummary.ts
|
|
63736
|
+
var LibraryRedirectSummaryStatus$zodSchema, LibraryRedirectSummary$zodSchema;
|
|
63737
|
+
var init_libraryredirectsummary = __esm(() => {
|
|
61647
63738
|
init_zod();
|
|
61648
|
-
|
|
61649
|
-
|
|
61650
|
-
|
|
61651
|
-
|
|
61652
|
-
"
|
|
61653
|
-
|
|
61654
|
-
|
|
61655
|
-
|
|
61656
|
-
"
|
|
61657
|
-
"
|
|
61658
|
-
"
|
|
61659
|
-
"
|
|
61660
|
-
"
|
|
61661
|
-
"
|
|
61662
|
-
"
|
|
61663
|
-
|
|
61664
|
-
|
|
61665
|
-
"
|
|
61666
|
-
|
|
61667
|
-
|
|
61668
|
-
|
|
61669
|
-
|
|
61670
|
-
|
|
61671
|
-
|
|
61672
|
-
|
|
61673
|
-
|
|
61674
|
-
|
|
61675
|
-
|
|
61676
|
-
|
|
61677
|
-
|
|
61678
|
-
|
|
61679
|
-
|
|
61680
|
-
expected_template_version: int().optional(),
|
|
61681
|
-
included_components: array(UpdateEvalTemplateRequestIncludedComponent$zodSchema).nullable().optional(),
|
|
61682
|
-
judges: array(GraderDefinition$zodSchema).nullable().optional(),
|
|
61683
|
-
name: string2().optional(),
|
|
61684
|
-
persona: string2().optional(),
|
|
61685
|
-
prompt: string2().optional(),
|
|
61686
|
-
runs_per_execution: int().optional(),
|
|
61687
|
-
runtime: EvalTemplateRuntime$zodSchema.nullable().optional(),
|
|
61688
|
-
schedule: EvalTemplateSchedule$zodSchema.nullable().optional(),
|
|
61689
|
-
tag: string2().optional()
|
|
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()
|
|
61690
63771
|
});
|
|
61691
63772
|
});
|
|
61692
63773
|
|
|
61693
|
-
// src/models/
|
|
61694
|
-
var
|
|
61695
|
-
var
|
|
63774
|
+
// src/models/v2libraryredirectslistop.ts
|
|
63775
|
+
var V2LibraryRedirectsListRequest$zodSchema, V2LibraryRedirectsListResponse$zodSchema;
|
|
63776
|
+
var init_v2libraryredirectslistop = __esm(() => {
|
|
61696
63777
|
init_zod();
|
|
61697
|
-
init_evaltemplate();
|
|
61698
63778
|
init_httpvalidationerror();
|
|
61699
|
-
|
|
61700
|
-
|
|
61701
|
-
|
|
61702
|
-
|
|
63779
|
+
init_libraryredirectsresponse();
|
|
63780
|
+
V2LibraryRedirectsListRequest$zodSchema = object({
|
|
63781
|
+
limit: int().default(20),
|
|
63782
|
+
offset: int().default(0)
|
|
61703
63783
|
});
|
|
61704
|
-
|
|
61705
|
-
|
|
61706
|
-
}).describe("The supplied template version is stale.");
|
|
61707
|
-
V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema = object({
|
|
61708
|
-
detail: string2()
|
|
61709
|
-
}).describe("The Eval template does not exist in the organization.");
|
|
61710
|
-
V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema = object({
|
|
61711
|
-
detail: string2()
|
|
61712
|
-
}).describe("The template contains invalid judges, targets, scheduling, metadata, or organization resources.");
|
|
61713
|
-
V2EvalTemplatesUpdateResponse$zodSchema = union([
|
|
61714
|
-
EvalTemplate$zodSchema,
|
|
61715
|
-
lazy(() => V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema),
|
|
61716
|
-
lazy(() => V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema),
|
|
61717
|
-
lazy(() => V2EvalTemplatesUpdateConflictResponseBody$zodSchema),
|
|
63784
|
+
V2LibraryRedirectsListResponse$zodSchema = union([
|
|
63785
|
+
LibraryRedirectsResponse$zodSchema,
|
|
61718
63786
|
HTTPValidationError$zodSchema
|
|
61719
63787
|
]);
|
|
61720
63788
|
});
|
|
61721
63789
|
|
|
61722
|
-
// src/funcs/
|
|
61723
|
-
function
|
|
61724
|
-
return new APIPromise($
|
|
63790
|
+
// src/funcs/libraryRedirectsList.ts
|
|
63791
|
+
function libraryRedirectsList(client$, request, options) {
|
|
63792
|
+
return new APIPromise($do49(client$, request, options));
|
|
61725
63793
|
}
|
|
61726
|
-
async function $
|
|
61727
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
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");
|
|
61728
63935
|
if (!parsed$.ok) {
|
|
61729
63936
|
return [parsed$, { status: "invalid" }];
|
|
61730
63937
|
}
|
|
61731
63938
|
const payload$ = parsed$.value;
|
|
61732
63939
|
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
61733
63940
|
const pathParams$ = {
|
|
61734
|
-
|
|
63941
|
+
redirect_id: encodeSimple("redirect_id", payload$.redirect_id, {
|
|
61735
63942
|
explode: false,
|
|
61736
63943
|
charEncoding: "percent"
|
|
61737
63944
|
})
|
|
61738
63945
|
};
|
|
61739
|
-
const path$ = pathToFunc("/v2/
|
|
63946
|
+
const path$ = pathToFunc("/v2/library/redirects/{redirect_id}")(pathParams$);
|
|
61740
63947
|
const headers$ = new Headers(compactMap({
|
|
61741
63948
|
"Content-Type": "application/json",
|
|
61742
63949
|
Accept: "application/json"
|
|
@@ -61746,7 +63953,7 @@ async function $do38(client$, request, options) {
|
|
|
61746
63953
|
const context = {
|
|
61747
63954
|
options: client$._options,
|
|
61748
63955
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
61749
|
-
operationID: "
|
|
63956
|
+
operationID: "v2_library_redirects_update",
|
|
61750
63957
|
oAuth2Scopes: null,
|
|
61751
63958
|
resolvedSecurity: requestSecurity,
|
|
61752
63959
|
securitySource: client$._options.security,
|
|
@@ -61788,30 +63995,30 @@ async function $do38(client$, request, options) {
|
|
|
61788
63995
|
response: doResult.value
|
|
61789
63996
|
}];
|
|
61790
63997
|
}
|
|
61791
|
-
var
|
|
63998
|
+
var init_libraryRedirectsUpdate = __esm(() => {
|
|
61792
63999
|
init_encodings();
|
|
61793
64000
|
init_primitives();
|
|
61794
64001
|
init_schemas4();
|
|
61795
64002
|
init_security();
|
|
61796
64003
|
init_url();
|
|
61797
|
-
|
|
64004
|
+
init_v2libraryredirectsupdateop();
|
|
61798
64005
|
init_async();
|
|
61799
64006
|
});
|
|
61800
64007
|
|
|
61801
|
-
// src/mcp-server/tools/
|
|
61802
|
-
var
|
|
61803
|
-
var
|
|
61804
|
-
|
|
61805
|
-
|
|
64008
|
+
// src/mcp-server/tools/libraryRedirectsUpdate.ts
|
|
64009
|
+
var args42, tool$libraryRedirectsUpdate;
|
|
64010
|
+
var init_libraryRedirectsUpdate2 = __esm(() => {
|
|
64011
|
+
init_libraryRedirectsUpdate();
|
|
64012
|
+
init_v2libraryredirectsupdateop();
|
|
61806
64013
|
init_tools();
|
|
61807
|
-
|
|
61808
|
-
request:
|
|
64014
|
+
args42 = {
|
|
64015
|
+
request: V2LibraryRedirectsUpdateRequest$zodSchema
|
|
61809
64016
|
};
|
|
61810
|
-
tool$
|
|
61811
|
-
name: "
|
|
61812
|
-
description: `Update
|
|
64017
|
+
tool$libraryRedirectsUpdate = {
|
|
64018
|
+
name: "library-redirects-update",
|
|
64019
|
+
description: `Update Redirect
|
|
61813
64020
|
|
|
61814
|
-
|
|
64021
|
+
Renames a Library redirect or changes the day it went live; omitted fields remain unchanged.`,
|
|
61815
64022
|
annotations: {
|
|
61816
64023
|
title: "",
|
|
61817
64024
|
destructiveHint: false,
|
|
@@ -61819,9 +64026,9 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
|
|
|
61819
64026
|
openWorldHint: false,
|
|
61820
64027
|
readOnlyHint: false
|
|
61821
64028
|
},
|
|
61822
|
-
args:
|
|
64029
|
+
args: args42,
|
|
61823
64030
|
tool: async (client, args, ctx) => {
|
|
61824
|
-
const [result] = await
|
|
64031
|
+
const [result] = await libraryRedirectsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61825
64032
|
if (!result.ok) {
|
|
61826
64033
|
return {
|
|
61827
64034
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61835,9 +64042,9 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
|
|
|
61835
64042
|
|
|
61836
64043
|
// src/funcs/mcpServersList.ts
|
|
61837
64044
|
function mcpServersList(client$, options) {
|
|
61838
|
-
return new APIPromise($
|
|
64045
|
+
return new APIPromise($do51(client$, options));
|
|
61839
64046
|
}
|
|
61840
|
-
async function $
|
|
64047
|
+
async function $do51(client$, options) {
|
|
61841
64048
|
const path$ = pathToFunc("/v2/mcp-servers")();
|
|
61842
64049
|
const headers$ = new Headers(compactMap({
|
|
61843
64050
|
Accept: "application/json"
|
|
@@ -62019,9 +64226,9 @@ var init_v2opportunitieslistop = __esm(() => {
|
|
|
62019
64226
|
|
|
62020
64227
|
// src/funcs/opportunitiesList.ts
|
|
62021
64228
|
function opportunitiesList(client$, request, options) {
|
|
62022
|
-
return new APIPromise($
|
|
64229
|
+
return new APIPromise($do52(client$, request, options));
|
|
62023
64230
|
}
|
|
62024
|
-
async function $
|
|
64231
|
+
async function $do52(client$, request, options) {
|
|
62025
64232
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62026
64233
|
if (!parsed$.ok) {
|
|
62027
64234
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62099,12 +64306,12 @@ var init_opportunitiesList = __esm(() => {
|
|
|
62099
64306
|
});
|
|
62100
64307
|
|
|
62101
64308
|
// src/mcp-server/tools/opportunitiesList.ts
|
|
62102
|
-
var
|
|
64309
|
+
var args43, tool$opportunitiesList;
|
|
62103
64310
|
var init_opportunitiesList2 = __esm(() => {
|
|
62104
64311
|
init_opportunitiesList();
|
|
62105
64312
|
init_v2opportunitieslistop();
|
|
62106
64313
|
init_tools();
|
|
62107
|
-
|
|
64314
|
+
args43 = {
|
|
62108
64315
|
request: V2OpportunitiesListRequest$zodSchema.optional()
|
|
62109
64316
|
};
|
|
62110
64317
|
tool$opportunitiesList = {
|
|
@@ -62119,7 +64326,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
|
|
|
62119
64326
|
openWorldHint: false,
|
|
62120
64327
|
readOnlyHint: true
|
|
62121
64328
|
},
|
|
62122
|
-
args:
|
|
64329
|
+
args: args43,
|
|
62123
64330
|
tool: async (client, args, ctx) => {
|
|
62124
64331
|
const [result] = await opportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62125
64332
|
if (!result.ok) {
|
|
@@ -62191,9 +64398,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
|
|
|
62191
64398
|
|
|
62192
64399
|
// src/funcs/opportunitiesRetrieve.ts
|
|
62193
64400
|
function opportunitiesRetrieve(client$, request, options) {
|
|
62194
|
-
return new APIPromise($
|
|
64401
|
+
return new APIPromise($do53(client$, request, options));
|
|
62195
64402
|
}
|
|
62196
|
-
async function $
|
|
64403
|
+
async function $do53(client$, request, options) {
|
|
62197
64404
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62198
64405
|
if (!parsed$.ok) {
|
|
62199
64406
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62274,12 +64481,12 @@ var init_opportunitiesRetrieve = __esm(() => {
|
|
|
62274
64481
|
});
|
|
62275
64482
|
|
|
62276
64483
|
// src/mcp-server/tools/opportunitiesRetrieve.ts
|
|
62277
|
-
var
|
|
64484
|
+
var args44, tool$opportunitiesRetrieve;
|
|
62278
64485
|
var init_opportunitiesRetrieve2 = __esm(() => {
|
|
62279
64486
|
init_opportunitiesRetrieve();
|
|
62280
64487
|
init_v2opportunitiesretrieveop();
|
|
62281
64488
|
init_tools();
|
|
62282
|
-
|
|
64489
|
+
args44 = {
|
|
62283
64490
|
request: V2OpportunitiesRetrieveRequest$zodSchema
|
|
62284
64491
|
};
|
|
62285
64492
|
tool$opportunitiesRetrieve = {
|
|
@@ -62294,7 +64501,7 @@ Returns one computed opportunity and its execution context for the selected date
|
|
|
62294
64501
|
openWorldHint: false,
|
|
62295
64502
|
readOnlyHint: true
|
|
62296
64503
|
},
|
|
62297
|
-
args:
|
|
64504
|
+
args: args44,
|
|
62298
64505
|
tool: async (client, args, ctx) => {
|
|
62299
64506
|
const [result] = await opportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62300
64507
|
if (!result.ok) {
|
|
@@ -62351,9 +64558,9 @@ var init_v2pluginevalsresultslistop = __esm(() => {
|
|
|
62351
64558
|
|
|
62352
64559
|
// src/funcs/pluginEvalsResultsList.ts
|
|
62353
64560
|
function pluginEvalsResultsList(client$, request, options) {
|
|
62354
|
-
return new APIPromise($
|
|
64561
|
+
return new APIPromise($do54(client$, request, options));
|
|
62355
64562
|
}
|
|
62356
|
-
async function $
|
|
64563
|
+
async function $do54(client$, request, options) {
|
|
62357
64564
|
const parsed$ = safeParse4(request, (value$) => V2PluginEvalsResultsListRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62358
64565
|
if (!parsed$.ok) {
|
|
62359
64566
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62426,12 +64633,12 @@ var init_pluginEvalsResultsList = __esm(() => {
|
|
|
62426
64633
|
});
|
|
62427
64634
|
|
|
62428
64635
|
// src/mcp-server/tools/pluginEvalsResultsList.ts
|
|
62429
|
-
var
|
|
64636
|
+
var args45, tool$pluginEvalsResultsList;
|
|
62430
64637
|
var init_pluginEvalsResultsList2 = __esm(() => {
|
|
62431
64638
|
init_pluginEvalsResultsList();
|
|
62432
64639
|
init_v2pluginevalsresultslistop();
|
|
62433
64640
|
init_tools();
|
|
62434
|
-
|
|
64641
|
+
args45 = {
|
|
62435
64642
|
request: V2PluginEvalsResultsListRequest$zodSchema
|
|
62436
64643
|
};
|
|
62437
64644
|
tool$pluginEvalsResultsList = {
|
|
@@ -62446,7 +64653,7 @@ Returns a day's plugin eval results, one per plugin with results that day. Each
|
|
|
62446
64653
|
openWorldHint: false,
|
|
62447
64654
|
readOnlyHint: true
|
|
62448
64655
|
},
|
|
62449
|
-
args:
|
|
64656
|
+
args: args45,
|
|
62450
64657
|
tool: async (client, args, ctx) => {
|
|
62451
64658
|
const [result] = await pluginEvalsResultsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62452
64659
|
if (!result.ok) {
|
|
@@ -62484,6 +64691,7 @@ var init_createv2promptrequest = __esm(() => {
|
|
|
62484
64691
|
CreateV2PromptRequest$zodSchema = object({
|
|
62485
64692
|
platform_ids: array(string2()).optional().describe("Platform IDs, as returned in `platforms` on `GET /v2/prompts`. Omit to attach none. To choose which coding-agent models a run uses, pass `agent` to `POST /v2/prompts/runs`."),
|
|
62486
64693
|
run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional().describe("Run settings that apply to coding-agent runs of this prompt. Omitted fields keep their current or default values."),
|
|
64694
|
+
tags: array(string2()).optional().describe("Tag names. A name matches an existing prompt tag of the organization regardless of case; a name with no match creates a new tag. CLI clients may expose this string array as a repeatable `--tag` flag. Omit to create the prompt untagged."),
|
|
62487
64695
|
text: string2(),
|
|
62488
64696
|
topic_id: string2().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
|
|
62489
64697
|
});
|
|
@@ -62501,9 +64709,9 @@ var init_createv2promptsrequest = __esm(() => {
|
|
|
62501
64709
|
|
|
62502
64710
|
// src/funcs/promptsCreate.ts
|
|
62503
64711
|
function promptsCreate(client$, request, options) {
|
|
62504
|
-
return new APIPromise($
|
|
64712
|
+
return new APIPromise($do55(client$, request, options));
|
|
62505
64713
|
}
|
|
62506
|
-
async function $
|
|
64714
|
+
async function $do55(client$, request, options) {
|
|
62507
64715
|
const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62508
64716
|
if (!parsed$.ok) {
|
|
62509
64717
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62573,19 +64781,19 @@ var init_promptsCreate = __esm(() => {
|
|
|
62573
64781
|
});
|
|
62574
64782
|
|
|
62575
64783
|
// src/mcp-server/tools/promptsCreate.ts
|
|
62576
|
-
var
|
|
64784
|
+
var args46, tool$promptsCreate;
|
|
62577
64785
|
var init_promptsCreate2 = __esm(() => {
|
|
62578
64786
|
init_promptsCreate();
|
|
62579
64787
|
init_createv2promptsrequest();
|
|
62580
64788
|
init_tools();
|
|
62581
|
-
|
|
64789
|
+
args46 = {
|
|
62582
64790
|
request: CreateV2PromptsRequest$zodSchema
|
|
62583
64791
|
};
|
|
62584
64792
|
tool$promptsCreate = {
|
|
62585
64793
|
name: "prompts-create",
|
|
62586
64794
|
description: `Create Prompts
|
|
62587
64795
|
|
|
62588
|
-
Creates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors.`,
|
|
64796
|
+
Creates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors. Tag names that match no existing prompt tag create new tags.`,
|
|
62589
64797
|
annotations: {
|
|
62590
64798
|
title: "",
|
|
62591
64799
|
destructiveHint: false,
|
|
@@ -62593,7 +64801,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
|
|
|
62593
64801
|
openWorldHint: false,
|
|
62594
64802
|
readOnlyHint: false
|
|
62595
64803
|
},
|
|
62596
|
-
args:
|
|
64804
|
+
args: args46,
|
|
62597
64805
|
tool: async (client, args, ctx) => {
|
|
62598
64806
|
const [result] = await promptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62599
64807
|
if (!result.ok) {
|
|
@@ -62633,9 +64841,9 @@ var init_v2promptsdeleteop = __esm(() => {
|
|
|
62633
64841
|
|
|
62634
64842
|
// src/funcs/promptsDelete.ts
|
|
62635
64843
|
function promptsDelete(client$, request, options) {
|
|
62636
|
-
return new APIPromise($
|
|
64844
|
+
return new APIPromise($do56(client$, request, options));
|
|
62637
64845
|
}
|
|
62638
|
-
async function $
|
|
64846
|
+
async function $do56(client$, request, options) {
|
|
62639
64847
|
const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62640
64848
|
if (!parsed$.ok) {
|
|
62641
64849
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62710,12 +64918,12 @@ var init_promptsDelete = __esm(() => {
|
|
|
62710
64918
|
});
|
|
62711
64919
|
|
|
62712
64920
|
// src/mcp-server/tools/promptsDelete.ts
|
|
62713
|
-
var
|
|
64921
|
+
var args47, tool$promptsDelete;
|
|
62714
64922
|
var init_promptsDelete2 = __esm(() => {
|
|
62715
64923
|
init_promptsDelete();
|
|
62716
64924
|
init_v2promptsdeleteop();
|
|
62717
64925
|
init_tools();
|
|
62718
|
-
|
|
64926
|
+
args47 = {
|
|
62719
64927
|
request: V2PromptsDeleteRequest$zodSchema
|
|
62720
64928
|
};
|
|
62721
64929
|
tool$promptsDelete = {
|
|
@@ -62730,7 +64938,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
|
|
|
62730
64938
|
openWorldHint: false,
|
|
62731
64939
|
readOnlyHint: false
|
|
62732
64940
|
},
|
|
62733
|
-
args:
|
|
64941
|
+
args: args47,
|
|
62734
64942
|
tool: async (client, args, ctx) => {
|
|
62735
64943
|
const [result] = await promptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62736
64944
|
if (!result.ok) {
|
|
@@ -62863,9 +65071,9 @@ var init_v2promptslistop = __esm(() => {
|
|
|
62863
65071
|
|
|
62864
65072
|
// src/funcs/promptsList.ts
|
|
62865
65073
|
function promptsList(client$, request, options) {
|
|
62866
|
-
return new APIPromise($
|
|
65074
|
+
return new APIPromise($do57(client$, request, options));
|
|
62867
65075
|
}
|
|
62868
|
-
async function $
|
|
65076
|
+
async function $do57(client$, request, options) {
|
|
62869
65077
|
const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62870
65078
|
if (!parsed$.ok) {
|
|
62871
65079
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62942,12 +65150,12 @@ var init_promptsList = __esm(() => {
|
|
|
62942
65150
|
});
|
|
62943
65151
|
|
|
62944
65152
|
// src/mcp-server/tools/promptsList.ts
|
|
62945
|
-
var
|
|
65153
|
+
var args48, tool$promptsList;
|
|
62946
65154
|
var init_promptsList2 = __esm(() => {
|
|
62947
65155
|
init_promptsList();
|
|
62948
65156
|
init_v2promptslistop();
|
|
62949
65157
|
init_tools();
|
|
62950
|
-
|
|
65158
|
+
args48 = {
|
|
62951
65159
|
request: V2PromptsListRequest$zodSchema.optional()
|
|
62952
65160
|
};
|
|
62953
65161
|
tool$promptsList = {
|
|
@@ -62962,7 +65170,7 @@ Returns active and inactive prompts by default, newest first. Set \`include_arch
|
|
|
62962
65170
|
openWorldHint: false,
|
|
62963
65171
|
readOnlyHint: true
|
|
62964
65172
|
},
|
|
62965
|
-
args:
|
|
65173
|
+
args: args48,
|
|
62966
65174
|
tool: async (client, args, ctx) => {
|
|
62967
65175
|
const [result] = await promptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62968
65176
|
if (!result.ok) {
|
|
@@ -62993,9 +65201,9 @@ var init_v2promptsretrieveop = __esm(() => {
|
|
|
62993
65201
|
|
|
62994
65202
|
// src/funcs/promptsRetrieve.ts
|
|
62995
65203
|
function promptsRetrieve(client$, request, options) {
|
|
62996
|
-
return new APIPromise($
|
|
65204
|
+
return new APIPromise($do58(client$, request, options));
|
|
62997
65205
|
}
|
|
62998
|
-
async function $
|
|
65206
|
+
async function $do58(client$, request, options) {
|
|
62999
65207
|
const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63000
65208
|
if (!parsed$.ok) {
|
|
63001
65209
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63070,12 +65278,12 @@ var init_promptsRetrieve = __esm(() => {
|
|
|
63070
65278
|
});
|
|
63071
65279
|
|
|
63072
65280
|
// src/mcp-server/tools/promptsRetrieve.ts
|
|
63073
|
-
var
|
|
65281
|
+
var args49, tool$promptsRetrieve;
|
|
63074
65282
|
var init_promptsRetrieve2 = __esm(() => {
|
|
63075
65283
|
init_promptsRetrieve();
|
|
63076
65284
|
init_v2promptsretrieveop();
|
|
63077
65285
|
init_tools();
|
|
63078
|
-
|
|
65286
|
+
args49 = {
|
|
63079
65287
|
request: V2PromptsRetrieveRequest$zodSchema
|
|
63080
65288
|
};
|
|
63081
65289
|
tool$promptsRetrieve = {
|
|
@@ -63090,7 +65298,7 @@ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-a
|
|
|
63090
65298
|
openWorldHint: false,
|
|
63091
65299
|
readOnlyHint: true
|
|
63092
65300
|
},
|
|
63093
|
-
args:
|
|
65301
|
+
args: args49,
|
|
63094
65302
|
tool: async (client, args, ctx) => {
|
|
63095
65303
|
const [result] = await promptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63096
65304
|
if (!result.ok) {
|
|
@@ -63117,9 +65325,9 @@ var init_createv2promptrunrequest = __esm(() => {
|
|
|
63117
65325
|
|
|
63118
65326
|
// src/funcs/promptsRun.ts
|
|
63119
65327
|
function promptsRun(client$, request, options) {
|
|
63120
|
-
return new APIPromise($
|
|
65328
|
+
return new APIPromise($do59(client$, request, options));
|
|
63121
65329
|
}
|
|
63122
|
-
async function $
|
|
65330
|
+
async function $do59(client$, request, options) {
|
|
63123
65331
|
const parsed$ = safeParse4(request, (value$) => CreateV2PromptRunRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63124
65332
|
if (!parsed$.ok) {
|
|
63125
65333
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63189,12 +65397,12 @@ var init_promptsRun = __esm(() => {
|
|
|
63189
65397
|
});
|
|
63190
65398
|
|
|
63191
65399
|
// src/mcp-server/tools/promptsRun.ts
|
|
63192
|
-
var
|
|
65400
|
+
var args50, tool$promptsRun;
|
|
63193
65401
|
var init_promptsRun2 = __esm(() => {
|
|
63194
65402
|
init_promptsRun();
|
|
63195
65403
|
init_createv2promptrunrequest();
|
|
63196
65404
|
init_tools();
|
|
63197
|
-
|
|
65405
|
+
args50 = {
|
|
63198
65406
|
request: CreateV2PromptRunRequest$zodSchema
|
|
63199
65407
|
};
|
|
63200
65408
|
tool$promptsRun = {
|
|
@@ -63219,7 +65427,7 @@ coding-agent targets. The response returns a run ID to poll with
|
|
|
63219
65427
|
openWorldHint: false,
|
|
63220
65428
|
readOnlyHint: false
|
|
63221
65429
|
},
|
|
63222
|
-
args:
|
|
65430
|
+
args: args50,
|
|
63223
65431
|
tool: async (client, args, ctx) => {
|
|
63224
65432
|
const [result] = await promptsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63225
65433
|
if (!result.ok) {
|
|
@@ -63306,9 +65514,9 @@ var init_v2promptrunscancelop = __esm(() => {
|
|
|
63306
65514
|
|
|
63307
65515
|
// src/funcs/promptsRunCancel.ts
|
|
63308
65516
|
function promptsRunCancel(client$, request, options) {
|
|
63309
|
-
return new APIPromise($
|
|
65517
|
+
return new APIPromise($do60(client$, request, options));
|
|
63310
65518
|
}
|
|
63311
|
-
async function $
|
|
65519
|
+
async function $do60(client$, request, options) {
|
|
63312
65520
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63313
65521
|
if (!parsed$.ok) {
|
|
63314
65522
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63383,12 +65591,12 @@ var init_promptsRunCancel = __esm(() => {
|
|
|
63383
65591
|
});
|
|
63384
65592
|
|
|
63385
65593
|
// src/mcp-server/tools/promptsRunCancel.ts
|
|
63386
|
-
var
|
|
65594
|
+
var args51, tool$promptsRunCancel;
|
|
63387
65595
|
var init_promptsRunCancel2 = __esm(() => {
|
|
63388
65596
|
init_promptsRunCancel();
|
|
63389
65597
|
init_v2promptrunscancelop();
|
|
63390
65598
|
init_tools();
|
|
63391
|
-
|
|
65599
|
+
args51 = {
|
|
63392
65600
|
request: V2PromptRunsCancelRequest$zodSchema
|
|
63393
65601
|
};
|
|
63394
65602
|
tool$promptsRunCancel = {
|
|
@@ -63403,7 +65611,7 @@ Marks an active prompt run as cancelled and prevents queued prompts from startin
|
|
|
63403
65611
|
openWorldHint: false,
|
|
63404
65612
|
readOnlyHint: false
|
|
63405
65613
|
},
|
|
63406
|
-
args:
|
|
65614
|
+
args: args51,
|
|
63407
65615
|
tool: async (client, args, ctx) => {
|
|
63408
65616
|
const [result] = await promptsRunCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63409
65617
|
if (!result.ok) {
|
|
@@ -63518,9 +65726,9 @@ var init_v2promptrunslistop = __esm(() => {
|
|
|
63518
65726
|
|
|
63519
65727
|
// src/funcs/promptsRunsList.ts
|
|
63520
65728
|
function promptsRunsList(client$, request, options) {
|
|
63521
|
-
return new APIPromise($
|
|
65729
|
+
return new APIPromise($do61(client$, request, options));
|
|
63522
65730
|
}
|
|
63523
|
-
async function $
|
|
65731
|
+
async function $do61(client$, request, options) {
|
|
63524
65732
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63525
65733
|
if (!parsed$.ok) {
|
|
63526
65734
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63598,12 +65806,12 @@ var init_promptsRunsList = __esm(() => {
|
|
|
63598
65806
|
});
|
|
63599
65807
|
|
|
63600
65808
|
// src/mcp-server/tools/promptsRunsList.ts
|
|
63601
|
-
var
|
|
65809
|
+
var args52, tool$promptsRunsList;
|
|
63602
65810
|
var init_promptsRunsList2 = __esm(() => {
|
|
63603
65811
|
init_promptsRunsList();
|
|
63604
65812
|
init_v2promptrunslistop();
|
|
63605
65813
|
init_tools();
|
|
63606
|
-
|
|
65814
|
+
args52 = {
|
|
63607
65815
|
request: V2PromptRunsListRequest$zodSchema.optional()
|
|
63608
65816
|
};
|
|
63609
65817
|
tool$promptsRunsList = {
|
|
@@ -63618,7 +65826,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
|
|
|
63618
65826
|
openWorldHint: false,
|
|
63619
65827
|
readOnlyHint: true
|
|
63620
65828
|
},
|
|
63621
|
-
args:
|
|
65829
|
+
args: args52,
|
|
63622
65830
|
tool: async (client, args, ctx) => {
|
|
63623
65831
|
const [result] = await promptsRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63624
65832
|
if (!result.ok) {
|
|
@@ -63732,9 +65940,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
|
|
|
63732
65940
|
|
|
63733
65941
|
// src/funcs/promptsRunsRetrieve.ts
|
|
63734
65942
|
function promptsRunsRetrieve(client$, request, options) {
|
|
63735
|
-
return new APIPromise($
|
|
65943
|
+
return new APIPromise($do62(client$, request, options));
|
|
63736
65944
|
}
|
|
63737
|
-
async function $
|
|
65945
|
+
async function $do62(client$, request, options) {
|
|
63738
65946
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63739
65947
|
if (!parsed$.ok) {
|
|
63740
65948
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63809,12 +66017,12 @@ var init_promptsRunsRetrieve = __esm(() => {
|
|
|
63809
66017
|
});
|
|
63810
66018
|
|
|
63811
66019
|
// src/mcp-server/tools/promptsRunsRetrieve.ts
|
|
63812
|
-
var
|
|
66020
|
+
var args53, tool$promptsRunsRetrieve;
|
|
63813
66021
|
var init_promptsRunsRetrieve2 = __esm(() => {
|
|
63814
66022
|
init_promptsRunsRetrieve();
|
|
63815
66023
|
init_v2promptrunsretrieveop();
|
|
63816
66024
|
init_tools();
|
|
63817
|
-
|
|
66025
|
+
args53 = {
|
|
63818
66026
|
request: V2PromptRunsRetrieveRequest$zodSchema
|
|
63819
66027
|
};
|
|
63820
66028
|
tool$promptsRunsRetrieve = {
|
|
@@ -63829,7 +66037,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
|
|
|
63829
66037
|
openWorldHint: false,
|
|
63830
66038
|
readOnlyHint: true
|
|
63831
66039
|
},
|
|
63832
|
-
args:
|
|
66040
|
+
args: args53,
|
|
63833
66041
|
tool: async (client, args, ctx) => {
|
|
63834
66042
|
const [result] = await promptsRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63835
66043
|
if (!result.ok) {
|
|
@@ -63868,9 +66076,9 @@ var init_v2promptrunstatusretrieveop = __esm(() => {
|
|
|
63868
66076
|
|
|
63869
66077
|
// src/funcs/promptsRunStatus.ts
|
|
63870
66078
|
function promptsRunStatus(client$, request, options) {
|
|
63871
|
-
return new APIPromise($
|
|
66079
|
+
return new APIPromise($do63(client$, request, options));
|
|
63872
66080
|
}
|
|
63873
|
-
async function $
|
|
66081
|
+
async function $do63(client$, request, options) {
|
|
63874
66082
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63875
66083
|
if (!parsed$.ok) {
|
|
63876
66084
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63945,12 +66153,12 @@ var init_promptsRunStatus = __esm(() => {
|
|
|
63945
66153
|
});
|
|
63946
66154
|
|
|
63947
66155
|
// src/mcp-server/tools/promptsRunStatus.ts
|
|
63948
|
-
var
|
|
66156
|
+
var args54, tool$promptsRunStatus;
|
|
63949
66157
|
var init_promptsRunStatus2 = __esm(() => {
|
|
63950
66158
|
init_promptsRunStatus();
|
|
63951
66159
|
init_v2promptrunstatusretrieveop();
|
|
63952
66160
|
init_tools();
|
|
63953
|
-
|
|
66161
|
+
args54 = {
|
|
63954
66162
|
request: V2PromptRunStatusRetrieveRequest$zodSchema
|
|
63955
66163
|
};
|
|
63956
66164
|
tool$promptsRunStatus = {
|
|
@@ -63968,7 +66176,7 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
|
|
|
63968
66176
|
openWorldHint: false,
|
|
63969
66177
|
readOnlyHint: true
|
|
63970
66178
|
},
|
|
63971
|
-
args:
|
|
66179
|
+
args: args54,
|
|
63972
66180
|
tool: async (client, args, ctx) => {
|
|
63973
66181
|
const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63974
66182
|
if (!result.ok) {
|
|
@@ -63982,6 +66190,98 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
|
|
|
63982
66190
|
};
|
|
63983
66191
|
});
|
|
63984
66192
|
|
|
66193
|
+
// src/funcs/promptsTagsList.ts
|
|
66194
|
+
function promptsTagsList(client$, options) {
|
|
66195
|
+
return new APIPromise($do64(client$, options));
|
|
66196
|
+
}
|
|
66197
|
+
async function $do64(client$, options) {
|
|
66198
|
+
const path$ = pathToFunc("/v2/prompts/tags")();
|
|
66199
|
+
const headers$ = new Headers(compactMap({
|
|
66200
|
+
Accept: "application/json"
|
|
66201
|
+
}));
|
|
66202
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
66203
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
66204
|
+
const context = {
|
|
66205
|
+
options: client$._options,
|
|
66206
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
66207
|
+
operationID: "v2_prompt_tags_list",
|
|
66208
|
+
oAuth2Scopes: null,
|
|
66209
|
+
resolvedSecurity: requestSecurity,
|
|
66210
|
+
securitySource: client$._options.security,
|
|
66211
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
66212
|
+
retryCodes: options?.retryCodes || [
|
|
66213
|
+
"429",
|
|
66214
|
+
"500",
|
|
66215
|
+
"502",
|
|
66216
|
+
"503",
|
|
66217
|
+
"504"
|
|
66218
|
+
]
|
|
66219
|
+
};
|
|
66220
|
+
const requestRes = client$._createRequest(context, {
|
|
66221
|
+
security: requestSecurity,
|
|
66222
|
+
method: "GET",
|
|
66223
|
+
baseURL: options?.serverURL,
|
|
66224
|
+
path: path$,
|
|
66225
|
+
headers: headers$,
|
|
66226
|
+
userAgent: client$._options.userAgent,
|
|
66227
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
66228
|
+
}, options);
|
|
66229
|
+
if (!requestRes.ok) {
|
|
66230
|
+
return [requestRes, { status: "invalid" }];
|
|
66231
|
+
}
|
|
66232
|
+
const req$ = requestRes.value;
|
|
66233
|
+
const doResult = await client$._do(req$, {
|
|
66234
|
+
context,
|
|
66235
|
+
errorCodes: [],
|
|
66236
|
+
retryConfig: context.retryConfig,
|
|
66237
|
+
retryCodes: context.retryCodes
|
|
66238
|
+
});
|
|
66239
|
+
if (!doResult.ok) {
|
|
66240
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
66241
|
+
}
|
|
66242
|
+
return [doResult, {
|
|
66243
|
+
status: "complete",
|
|
66244
|
+
request: req$,
|
|
66245
|
+
response: doResult.value
|
|
66246
|
+
}];
|
|
66247
|
+
}
|
|
66248
|
+
var init_promptsTagsList = __esm(() => {
|
|
66249
|
+
init_primitives();
|
|
66250
|
+
init_security();
|
|
66251
|
+
init_url();
|
|
66252
|
+
init_async();
|
|
66253
|
+
});
|
|
66254
|
+
|
|
66255
|
+
// src/mcp-server/tools/promptsTagsList.ts
|
|
66256
|
+
var tool$promptsTagsList;
|
|
66257
|
+
var init_promptsTagsList2 = __esm(() => {
|
|
66258
|
+
init_promptsTagsList();
|
|
66259
|
+
init_tools();
|
|
66260
|
+
tool$promptsTagsList = {
|
|
66261
|
+
name: "prompts-tags-list",
|
|
66262
|
+
description: `List Tags
|
|
66263
|
+
|
|
66264
|
+
Returns the organization's prompt tags. Set tags on a prompt by name with \`tags\` on \`POST /v2/prompts\` or \`PATCH /v2/prompts/{prompt_id}\`; a name with no match creates the tag.`,
|
|
66265
|
+
annotations: {
|
|
66266
|
+
title: "",
|
|
66267
|
+
destructiveHint: false,
|
|
66268
|
+
idempotentHint: false,
|
|
66269
|
+
openWorldHint: false,
|
|
66270
|
+
readOnlyHint: true
|
|
66271
|
+
},
|
|
66272
|
+
tool: async (client, ctx) => {
|
|
66273
|
+
const [result] = await promptsTagsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66274
|
+
if (!result.ok) {
|
|
66275
|
+
return {
|
|
66276
|
+
content: [{ type: "text", text: result.error.message }],
|
|
66277
|
+
isError: true
|
|
66278
|
+
};
|
|
66279
|
+
}
|
|
66280
|
+
return formatResult(result.value);
|
|
66281
|
+
}
|
|
66282
|
+
};
|
|
66283
|
+
});
|
|
66284
|
+
|
|
63985
66285
|
// src/models/v2prompttarget.ts
|
|
63986
66286
|
var V2PromptTargetKind$zodSchema, V2PromptTargetFrequency$zodSchema, V2PromptTarget$zodSchema;
|
|
63987
66287
|
var init_v2prompttarget = __esm(() => {
|
|
@@ -64038,9 +66338,9 @@ var init_v2prompttargetslistop = __esm(() => {
|
|
|
64038
66338
|
|
|
64039
66339
|
// src/funcs/promptsTargetsList.ts
|
|
64040
66340
|
function promptsTargetsList(client$, request, options) {
|
|
64041
|
-
return new APIPromise($
|
|
66341
|
+
return new APIPromise($do65(client$, request, options));
|
|
64042
66342
|
}
|
|
64043
|
-
async function $
|
|
66343
|
+
async function $do65(client$, request, options) {
|
|
64044
66344
|
const parsed$ = safeParse4(request, (value$) => V2PromptTargetsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
64045
66345
|
if (!parsed$.ok) {
|
|
64046
66346
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64113,12 +66413,12 @@ var init_promptsTargetsList = __esm(() => {
|
|
|
64113
66413
|
});
|
|
64114
66414
|
|
|
64115
66415
|
// src/mcp-server/tools/promptsTargetsList.ts
|
|
64116
|
-
var
|
|
66416
|
+
var args55, tool$promptsTargetsList;
|
|
64117
66417
|
var init_promptsTargetsList2 = __esm(() => {
|
|
64118
66418
|
init_promptsTargetsList();
|
|
64119
66419
|
init_v2prompttargetslistop();
|
|
64120
66420
|
init_tools();
|
|
64121
|
-
|
|
66421
|
+
args55 = {
|
|
64122
66422
|
request: V2PromptTargetsListRequest$zodSchema.optional()
|
|
64123
66423
|
};
|
|
64124
66424
|
tool$promptsTargetsList = {
|
|
@@ -64133,7 +66433,7 @@ Returns the answer engines and coding agents that run the organization's prompts
|
|
|
64133
66433
|
openWorldHint: false,
|
|
64134
66434
|
readOnlyHint: true
|
|
64135
66435
|
},
|
|
64136
|
-
args:
|
|
66436
|
+
args: args55,
|
|
64137
66437
|
tool: async (client, args, ctx) => {
|
|
64138
66438
|
const [result] = await promptsTargetsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64139
66439
|
if (!result.ok) {
|
|
@@ -64186,9 +66486,9 @@ var init_setv2prompttargetsrequest = __esm(() => {
|
|
|
64186
66486
|
|
|
64187
66487
|
// src/funcs/promptsTargetsSet.ts
|
|
64188
66488
|
function promptsTargetsSet(client$, request, options) {
|
|
64189
|
-
return new APIPromise($
|
|
66489
|
+
return new APIPromise($do66(client$, request, options));
|
|
64190
66490
|
}
|
|
64191
|
-
async function $
|
|
66491
|
+
async function $do66(client$, request, options) {
|
|
64192
66492
|
const parsed$ = safeParse4(request, (value$) => SetV2PromptTargetsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64193
66493
|
if (!parsed$.ok) {
|
|
64194
66494
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64258,12 +66558,12 @@ var init_promptsTargetsSet = __esm(() => {
|
|
|
64258
66558
|
});
|
|
64259
66559
|
|
|
64260
66560
|
// src/mcp-server/tools/promptsTargetsSet.ts
|
|
64261
|
-
var
|
|
66561
|
+
var args56, tool$promptsTargetsSet;
|
|
64262
66562
|
var init_promptsTargetsSet2 = __esm(() => {
|
|
64263
66563
|
init_promptsTargetsSet();
|
|
64264
66564
|
init_setv2prompttargetsrequest();
|
|
64265
66565
|
init_tools();
|
|
64266
|
-
|
|
66566
|
+
args56 = {
|
|
64267
66567
|
request: SetV2PromptTargetsRequest$zodSchema
|
|
64268
66568
|
};
|
|
64269
66569
|
tool$promptsTargetsSet = {
|
|
@@ -64278,7 +66578,7 @@ Sets which answer engines and coding agents run a topic's prompts on schedule, t
|
|
|
64278
66578
|
openWorldHint: false,
|
|
64279
66579
|
readOnlyHint: false
|
|
64280
66580
|
},
|
|
64281
|
-
args:
|
|
66581
|
+
args: args56,
|
|
64282
66582
|
tool: async (client, args, ctx) => {
|
|
64283
66583
|
const [result] = await promptsTargetsSet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64284
66584
|
if (!result.ok) {
|
|
@@ -64303,9 +66603,9 @@ var init_createprompttopicrequest = __esm(() => {
|
|
|
64303
66603
|
|
|
64304
66604
|
// src/funcs/promptsTopicsCreate.ts
|
|
64305
66605
|
function promptsTopicsCreate(client$, request, options) {
|
|
64306
|
-
return new APIPromise($
|
|
66606
|
+
return new APIPromise($do67(client$, request, options));
|
|
64307
66607
|
}
|
|
64308
|
-
async function $
|
|
66608
|
+
async function $do67(client$, request, options) {
|
|
64309
66609
|
const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64310
66610
|
if (!parsed$.ok) {
|
|
64311
66611
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64375,12 +66675,12 @@ var init_promptsTopicsCreate = __esm(() => {
|
|
|
64375
66675
|
});
|
|
64376
66676
|
|
|
64377
66677
|
// src/mcp-server/tools/promptsTopicsCreate.ts
|
|
64378
|
-
var
|
|
66678
|
+
var args57, tool$promptsTopicsCreate;
|
|
64379
66679
|
var init_promptsTopicsCreate2 = __esm(() => {
|
|
64380
66680
|
init_promptsTopicsCreate();
|
|
64381
66681
|
init_createprompttopicrequest();
|
|
64382
66682
|
init_tools();
|
|
64383
|
-
|
|
66683
|
+
args57 = {
|
|
64384
66684
|
request: CreatePromptTopicRequest$zodSchema
|
|
64385
66685
|
};
|
|
64386
66686
|
tool$promptsTopicsCreate = {
|
|
@@ -64395,7 +66695,7 @@ Creates a prompt topic and returns the saved topic.`,
|
|
|
64395
66695
|
openWorldHint: false,
|
|
64396
66696
|
readOnlyHint: false
|
|
64397
66697
|
},
|
|
64398
|
-
args:
|
|
66698
|
+
args: args57,
|
|
64399
66699
|
tool: async (client, args, ctx) => {
|
|
64400
66700
|
const [result] = await promptsTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64401
66701
|
if (!result.ok) {
|
|
@@ -64427,9 +66727,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
|
|
|
64427
66727
|
|
|
64428
66728
|
// src/funcs/promptsTopicsDelete.ts
|
|
64429
66729
|
function promptsTopicsDelete(client$, request, options) {
|
|
64430
|
-
return new APIPromise($
|
|
66730
|
+
return new APIPromise($do68(client$, request, options));
|
|
64431
66731
|
}
|
|
64432
|
-
async function $
|
|
66732
|
+
async function $do68(client$, request, options) {
|
|
64433
66733
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64434
66734
|
if (!parsed$.ok) {
|
|
64435
66735
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64508,12 +66808,12 @@ var init_promptsTopicsDelete = __esm(() => {
|
|
|
64508
66808
|
});
|
|
64509
66809
|
|
|
64510
66810
|
// src/mcp-server/tools/promptsTopicsDelete.ts
|
|
64511
|
-
var
|
|
66811
|
+
var args58, tool$promptsTopicsDelete;
|
|
64512
66812
|
var init_promptsTopicsDelete2 = __esm(() => {
|
|
64513
66813
|
init_promptsTopicsDelete();
|
|
64514
66814
|
init_v2prompttopicsdeleteop();
|
|
64515
66815
|
init_tools();
|
|
64516
|
-
|
|
66816
|
+
args58 = {
|
|
64517
66817
|
request: V2PromptTopicsDeleteRequest$zodSchema
|
|
64518
66818
|
};
|
|
64519
66819
|
tool$promptsTopicsDelete = {
|
|
@@ -64528,7 +66828,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
64528
66828
|
openWorldHint: false,
|
|
64529
66829
|
readOnlyHint: false
|
|
64530
66830
|
},
|
|
64531
|
-
args:
|
|
66831
|
+
args: args58,
|
|
64532
66832
|
tool: async (client, args, ctx) => {
|
|
64533
66833
|
const [result] = await promptsTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64534
66834
|
if (!result.ok) {
|
|
@@ -64544,9 +66844,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
64544
66844
|
|
|
64545
66845
|
// src/funcs/promptsTopicsList.ts
|
|
64546
66846
|
function promptsTopicsList(client$, options) {
|
|
64547
|
-
return new APIPromise($
|
|
66847
|
+
return new APIPromise($do69(client$, options));
|
|
64548
66848
|
}
|
|
64549
|
-
async function $
|
|
66849
|
+
async function $do69(client$, options) {
|
|
64550
66850
|
const path$ = pathToFunc("/v2/prompts/topics")();
|
|
64551
66851
|
const headers$ = new Headers(compactMap({
|
|
64552
66852
|
Accept: "application/json"
|
|
@@ -64662,9 +66962,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
|
|
|
64662
66962
|
|
|
64663
66963
|
// src/funcs/promptsTopicsUpdate.ts
|
|
64664
66964
|
function promptsTopicsUpdate(client$, request, options) {
|
|
64665
|
-
return new APIPromise($
|
|
66965
|
+
return new APIPromise($do70(client$, request, options));
|
|
64666
66966
|
}
|
|
64667
|
-
async function $
|
|
66967
|
+
async function $do70(client$, request, options) {
|
|
64668
66968
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64669
66969
|
if (!parsed$.ok) {
|
|
64670
66970
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64740,12 +67040,12 @@ var init_promptsTopicsUpdate = __esm(() => {
|
|
|
64740
67040
|
});
|
|
64741
67041
|
|
|
64742
67042
|
// src/mcp-server/tools/promptsTopicsUpdate.ts
|
|
64743
|
-
var
|
|
67043
|
+
var args59, tool$promptsTopicsUpdate;
|
|
64744
67044
|
var init_promptsTopicsUpdate2 = __esm(() => {
|
|
64745
67045
|
init_promptsTopicsUpdate();
|
|
64746
67046
|
init_v2prompttopicsupdateop();
|
|
64747
67047
|
init_tools();
|
|
64748
|
-
|
|
67048
|
+
args59 = {
|
|
64749
67049
|
request: V2PromptTopicsUpdateRequest$zodSchema
|
|
64750
67050
|
};
|
|
64751
67051
|
tool$promptsTopicsUpdate = {
|
|
@@ -64760,7 +67060,7 @@ Renames a prompt topic and returns the updated topic.`,
|
|
|
64760
67060
|
openWorldHint: false,
|
|
64761
67061
|
readOnlyHint: false
|
|
64762
67062
|
},
|
|
64763
|
-
args:
|
|
67063
|
+
args: args59,
|
|
64764
67064
|
tool: async (client, args, ctx) => {
|
|
64765
67065
|
const [result] = await promptsTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64766
67066
|
if (!result.ok) {
|
|
@@ -64788,6 +67088,7 @@ var init_updatev2promptrequest = __esm(() => {
|
|
|
64788
67088
|
platform_ids: array(string2()).nullable().optional().describe("Replacement list of platform IDs, as returned in `platforms` on `GET /v2/prompts`."),
|
|
64789
67089
|
run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional().describe("Run settings that apply to coding-agent runs of this prompt. Omitted fields keep their current or default values."),
|
|
64790
67090
|
status: UpdateV2PromptRequestStatus$zodSchema.optional(),
|
|
67091
|
+
tags: array(string2()).nullable().optional().describe("Tag names. A name matches an existing prompt tag of the organization regardless of case; a name with no match creates a new tag. CLI clients may expose this string array as a repeatable `--tag` flag. Replaces the prompt's tags. Pass an empty array to clear them; omit to keep the current tags."),
|
|
64791
67092
|
text: string2().optional(),
|
|
64792
67093
|
topic_id: string2().optional().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
|
|
64793
67094
|
});
|
|
@@ -64812,9 +67113,9 @@ var init_v2promptsupdateop = __esm(() => {
|
|
|
64812
67113
|
|
|
64813
67114
|
// src/funcs/promptsUpdate.ts
|
|
64814
67115
|
function promptsUpdate(client$, request, options) {
|
|
64815
|
-
return new APIPromise($
|
|
67116
|
+
return new APIPromise($do71(client$, request, options));
|
|
64816
67117
|
}
|
|
64817
|
-
async function $
|
|
67118
|
+
async function $do71(client$, request, options) {
|
|
64818
67119
|
const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64819
67120
|
if (!parsed$.ok) {
|
|
64820
67121
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64890,19 +67191,19 @@ var init_promptsUpdate = __esm(() => {
|
|
|
64890
67191
|
});
|
|
64891
67192
|
|
|
64892
67193
|
// src/mcp-server/tools/promptsUpdate.ts
|
|
64893
|
-
var
|
|
67194
|
+
var args60, tool$promptsUpdate;
|
|
64894
67195
|
var init_promptsUpdate2 = __esm(() => {
|
|
64895
67196
|
init_promptsUpdate();
|
|
64896
67197
|
init_v2promptsupdateop();
|
|
64897
67198
|
init_tools();
|
|
64898
|
-
|
|
67199
|
+
args60 = {
|
|
64899
67200
|
request: V2PromptsUpdateRequest$zodSchema
|
|
64900
67201
|
};
|
|
64901
67202
|
tool$promptsUpdate = {
|
|
64902
67203
|
name: "prompts-update",
|
|
64903
67204
|
description: `Update Prompt
|
|
64904
67205
|
|
|
64905
|
-
Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged.`,
|
|
67206
|
+
Updates a prompt's text, topic, platforms, tags, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged; \`tags\` replaces the prompt's tags.`,
|
|
64906
67207
|
annotations: {
|
|
64907
67208
|
title: "",
|
|
64908
67209
|
destructiveHint: false,
|
|
@@ -64910,7 +67211,7 @@ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run
|
|
|
64910
67211
|
openWorldHint: false,
|
|
64911
67212
|
readOnlyHint: false
|
|
64912
67213
|
},
|
|
64913
|
-
args:
|
|
67214
|
+
args: args60,
|
|
64914
67215
|
tool: async (client, args, ctx) => {
|
|
64915
67216
|
const [result] = await promptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64916
67217
|
if (!result.ok) {
|
|
@@ -64953,9 +67254,9 @@ var init_createv2repositoryrequest = __esm(() => {
|
|
|
64953
67254
|
|
|
64954
67255
|
// src/funcs/repositoriesCreate.ts
|
|
64955
67256
|
function repositoriesCreate(client$, request, options) {
|
|
64956
|
-
return new APIPromise($
|
|
67257
|
+
return new APIPromise($do72(client$, request, options));
|
|
64957
67258
|
}
|
|
64958
|
-
async function $
|
|
67259
|
+
async function $do72(client$, request, options) {
|
|
64959
67260
|
const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64960
67261
|
if (!parsed$.ok) {
|
|
64961
67262
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65025,12 +67326,12 @@ var init_repositoriesCreate = __esm(() => {
|
|
|
65025
67326
|
});
|
|
65026
67327
|
|
|
65027
67328
|
// src/mcp-server/tools/repositoriesCreate.ts
|
|
65028
|
-
var
|
|
67329
|
+
var args61, tool$repositoriesCreate;
|
|
65029
67330
|
var init_repositoriesCreate2 = __esm(() => {
|
|
65030
67331
|
init_repositoriesCreate();
|
|
65031
67332
|
init_createv2repositoryrequest();
|
|
65032
67333
|
init_tools();
|
|
65033
|
-
|
|
67334
|
+
args61 = {
|
|
65034
67335
|
request: CreateV2RepositoryRequest$zodSchema
|
|
65035
67336
|
};
|
|
65036
67337
|
tool$repositoriesCreate = {
|
|
@@ -65045,7 +67346,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
|
|
|
65045
67346
|
openWorldHint: false,
|
|
65046
67347
|
readOnlyHint: false
|
|
65047
67348
|
},
|
|
65048
|
-
args:
|
|
67349
|
+
args: args61,
|
|
65049
67350
|
tool: async (client, args, ctx) => {
|
|
65050
67351
|
const [result] = await repositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65051
67352
|
if (!result.ok) {
|
|
@@ -65118,9 +67419,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
|
|
|
65118
67419
|
|
|
65119
67420
|
// src/funcs/repositoriesDelete.ts
|
|
65120
67421
|
function repositoriesDelete(client$, request, options) {
|
|
65121
|
-
return new APIPromise($
|
|
67422
|
+
return new APIPromise($do73(client$, request, options));
|
|
65122
67423
|
}
|
|
65123
|
-
async function $
|
|
67424
|
+
async function $do73(client$, request, options) {
|
|
65124
67425
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65125
67426
|
if (!parsed$.ok) {
|
|
65126
67427
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65195,12 +67496,12 @@ var init_repositoriesDelete = __esm(() => {
|
|
|
65195
67496
|
});
|
|
65196
67497
|
|
|
65197
67498
|
// src/mcp-server/tools/repositoriesDelete.ts
|
|
65198
|
-
var
|
|
67499
|
+
var args62, tool$repositoriesDelete;
|
|
65199
67500
|
var init_repositoriesDelete2 = __esm(() => {
|
|
65200
67501
|
init_repositoriesDelete();
|
|
65201
67502
|
init_v2repositoriesdeleteop();
|
|
65202
67503
|
init_tools();
|
|
65203
|
-
|
|
67504
|
+
args62 = {
|
|
65204
67505
|
request: V2RepositoriesDeleteRequest$zodSchema
|
|
65205
67506
|
};
|
|
65206
67507
|
tool$repositoriesDelete = {
|
|
@@ -65215,7 +67516,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
65215
67516
|
openWorldHint: false,
|
|
65216
67517
|
readOnlyHint: false
|
|
65217
67518
|
},
|
|
65218
|
-
args:
|
|
67519
|
+
args: args62,
|
|
65219
67520
|
tool: async (client, args, ctx) => {
|
|
65220
67521
|
const [result] = await repositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65221
67522
|
if (!result.ok) {
|
|
@@ -65231,9 +67532,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
65231
67532
|
|
|
65232
67533
|
// src/funcs/repositoriesList.ts
|
|
65233
67534
|
function repositoriesList(client$, options) {
|
|
65234
|
-
return new APIPromise($
|
|
67535
|
+
return new APIPromise($do74(client$, options));
|
|
65235
67536
|
}
|
|
65236
|
-
async function $
|
|
67537
|
+
async function $do74(client$, options) {
|
|
65237
67538
|
const path$ = pathToFunc("/v2/repositories")();
|
|
65238
67539
|
const headers$ = new Headers(compactMap({
|
|
65239
67540
|
Accept: "application/json"
|
|
@@ -65338,9 +67639,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
|
|
|
65338
67639
|
|
|
65339
67640
|
// src/funcs/repositoriesRetrieve.ts
|
|
65340
67641
|
function repositoriesRetrieve(client$, request, options) {
|
|
65341
|
-
return new APIPromise($
|
|
67642
|
+
return new APIPromise($do75(client$, request, options));
|
|
65342
67643
|
}
|
|
65343
|
-
async function $
|
|
67644
|
+
async function $do75(client$, request, options) {
|
|
65344
67645
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65345
67646
|
if (!parsed$.ok) {
|
|
65346
67647
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65415,12 +67716,12 @@ var init_repositoriesRetrieve = __esm(() => {
|
|
|
65415
67716
|
});
|
|
65416
67717
|
|
|
65417
67718
|
// src/mcp-server/tools/repositoriesRetrieve.ts
|
|
65418
|
-
var
|
|
67719
|
+
var args63, tool$repositoriesRetrieve;
|
|
65419
67720
|
var init_repositoriesRetrieve2 = __esm(() => {
|
|
65420
67721
|
init_repositoriesRetrieve();
|
|
65421
67722
|
init_v2repositoriesretrieveop();
|
|
65422
67723
|
init_tools();
|
|
65423
|
-
|
|
67724
|
+
args63 = {
|
|
65424
67725
|
request: V2RepositoriesRetrieveRequest$zodSchema
|
|
65425
67726
|
};
|
|
65426
67727
|
tool$repositoriesRetrieve = {
|
|
@@ -65435,7 +67736,7 @@ Returns one reusable repository workspace.`,
|
|
|
65435
67736
|
openWorldHint: false,
|
|
65436
67737
|
readOnlyHint: true
|
|
65437
67738
|
},
|
|
65438
|
-
args:
|
|
67739
|
+
args: args63,
|
|
65439
67740
|
tool: async (client, args, ctx) => {
|
|
65440
67741
|
const [result] = await repositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65441
67742
|
if (!result.ok) {
|
|
@@ -65495,9 +67796,9 @@ var init_v2repositoriesupdateop = __esm(() => {
|
|
|
65495
67796
|
|
|
65496
67797
|
// src/funcs/repositoriesUpdate.ts
|
|
65497
67798
|
function repositoriesUpdate(client$, request, options) {
|
|
65498
|
-
return new APIPromise($
|
|
67799
|
+
return new APIPromise($do76(client$, request, options));
|
|
65499
67800
|
}
|
|
65500
|
-
async function $
|
|
67801
|
+
async function $do76(client$, request, options) {
|
|
65501
67802
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65502
67803
|
if (!parsed$.ok) {
|
|
65503
67804
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65573,12 +67874,12 @@ var init_repositoriesUpdate = __esm(() => {
|
|
|
65573
67874
|
});
|
|
65574
67875
|
|
|
65575
67876
|
// src/mcp-server/tools/repositoriesUpdate.ts
|
|
65576
|
-
var
|
|
67877
|
+
var args64, tool$repositoriesUpdate;
|
|
65577
67878
|
var init_repositoriesUpdate2 = __esm(() => {
|
|
65578
67879
|
init_repositoriesUpdate();
|
|
65579
67880
|
init_v2repositoriesupdateop();
|
|
65580
67881
|
init_tools();
|
|
65581
|
-
|
|
67882
|
+
args64 = {
|
|
65582
67883
|
request: V2RepositoriesUpdateRequest$zodSchema
|
|
65583
67884
|
};
|
|
65584
67885
|
tool$repositoriesUpdate = {
|
|
@@ -65593,7 +67894,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
65593
67894
|
openWorldHint: false,
|
|
65594
67895
|
readOnlyHint: false
|
|
65595
67896
|
},
|
|
65596
|
-
args:
|
|
67897
|
+
args: args64,
|
|
65597
67898
|
tool: async (client, args, ctx) => {
|
|
65598
67899
|
const [result] = await repositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65599
67900
|
if (!result.ok) {
|
|
@@ -65609,9 +67910,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
65609
67910
|
|
|
65610
67911
|
// src/funcs/siteAuditsList.ts
|
|
65611
67912
|
function siteAuditsList(client$, options) {
|
|
65612
|
-
return new APIPromise($
|
|
67913
|
+
return new APIPromise($do77(client$, options));
|
|
65613
67914
|
}
|
|
65614
|
-
async function $
|
|
67915
|
+
async function $do77(client$, options) {
|
|
65615
67916
|
const path$ = pathToFunc("/v2/site-audits")();
|
|
65616
67917
|
const headers$ = new Headers(compactMap({
|
|
65617
67918
|
Accept: "application/json"
|
|
@@ -65752,9 +68053,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
|
|
|
65752
68053
|
|
|
65753
68054
|
// src/funcs/siteAuditsRetrieve.ts
|
|
65754
68055
|
function siteAuditsRetrieve(client$, request, options) {
|
|
65755
|
-
return new APIPromise($
|
|
68056
|
+
return new APIPromise($do78(client$, request, options));
|
|
65756
68057
|
}
|
|
65757
|
-
async function $
|
|
68058
|
+
async function $do78(client$, request, options) {
|
|
65758
68059
|
const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65759
68060
|
if (!parsed$.ok) {
|
|
65760
68061
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65829,12 +68130,12 @@ var init_siteAuditsRetrieve = __esm(() => {
|
|
|
65829
68130
|
});
|
|
65830
68131
|
|
|
65831
68132
|
// src/mcp-server/tools/siteAuditsRetrieve.ts
|
|
65832
|
-
var
|
|
68133
|
+
var args65, tool$siteAuditsRetrieve;
|
|
65833
68134
|
var init_siteAuditsRetrieve2 = __esm(() => {
|
|
65834
68135
|
init_siteAuditsRetrieve();
|
|
65835
68136
|
init_v2siteauditsretrieveop();
|
|
65836
68137
|
init_tools();
|
|
65837
|
-
|
|
68138
|
+
args65 = {
|
|
65838
68139
|
request: V2SiteAuditsRetrieveRequest$zodSchema
|
|
65839
68140
|
};
|
|
65840
68141
|
tool$siteAuditsRetrieve = {
|
|
@@ -65849,7 +68150,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
65849
68150
|
openWorldHint: false,
|
|
65850
68151
|
readOnlyHint: true
|
|
65851
68152
|
},
|
|
65852
|
-
args:
|
|
68153
|
+
args: args65,
|
|
65853
68154
|
tool: async (client, args, ctx) => {
|
|
65854
68155
|
const [result] = await siteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65855
68156
|
if (!result.ok) {
|
|
@@ -65865,9 +68166,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
65865
68166
|
|
|
65866
68167
|
// src/funcs/skillsList.ts
|
|
65867
68168
|
function skillsList(client$, options) {
|
|
65868
|
-
return new APIPromise($
|
|
68169
|
+
return new APIPromise($do79(client$, options));
|
|
65869
68170
|
}
|
|
65870
|
-
async function $
|
|
68171
|
+
async function $do79(client$, options) {
|
|
65871
68172
|
const path$ = pathToFunc("/v2/skills")();
|
|
65872
68173
|
const headers$ = new Headers(compactMap({
|
|
65873
68174
|
Accept: "application/json"
|
|
@@ -65957,9 +68258,9 @@ Returns reusable skills available to workflows and eval configurations.`,
|
|
|
65957
68258
|
|
|
65958
68259
|
// src/funcs/statusAuthStatusGet.ts
|
|
65959
68260
|
function statusAuthStatusGet(client$, options) {
|
|
65960
|
-
return new APIPromise($
|
|
68261
|
+
return new APIPromise($do80(client$, options));
|
|
65961
68262
|
}
|
|
65962
|
-
async function $
|
|
68263
|
+
async function $do80(client$, options) {
|
|
65963
68264
|
const path$ = pathToFunc("/v2/auth/status")();
|
|
65964
68265
|
const headers$ = new Headers(compactMap({
|
|
65965
68266
|
Accept: "application/json"
|
|
@@ -66049,9 +68350,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
|
|
|
66049
68350
|
|
|
66050
68351
|
// src/funcs/statusGet.ts
|
|
66051
68352
|
function statusGet(client$, options) {
|
|
66052
|
-
return new APIPromise($
|
|
68353
|
+
return new APIPromise($do81(client$, options));
|
|
66053
68354
|
}
|
|
66054
|
-
async function $
|
|
68355
|
+
async function $do81(client$, options) {
|
|
66055
68356
|
const path$ = pathToFunc("/v2/status")();
|
|
66056
68357
|
const headers$ = new Headers(compactMap({
|
|
66057
68358
|
Accept: "application/json"
|
|
@@ -66180,9 +68481,9 @@ var init_createtaskrequest = __esm(() => {
|
|
|
66180
68481
|
|
|
66181
68482
|
// src/funcs/tasksCreate.ts
|
|
66182
68483
|
function tasksCreate(client$, request, options) {
|
|
66183
|
-
return new APIPromise($
|
|
68484
|
+
return new APIPromise($do82(client$, request, options));
|
|
66184
68485
|
}
|
|
66185
|
-
async function $
|
|
68486
|
+
async function $do82(client$, request, options) {
|
|
66186
68487
|
const parsed$ = safeParse4(request, (value$) => CreateTaskRequest$zodSchema.parse(value$), "Input validation failed");
|
|
66187
68488
|
if (!parsed$.ok) {
|
|
66188
68489
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66252,12 +68553,12 @@ var init_tasksCreate = __esm(() => {
|
|
|
66252
68553
|
});
|
|
66253
68554
|
|
|
66254
68555
|
// src/mcp-server/tools/tasksCreate.ts
|
|
66255
|
-
var
|
|
68556
|
+
var args66, tool$tasksCreate;
|
|
66256
68557
|
var init_tasksCreate2 = __esm(() => {
|
|
66257
68558
|
init_tasksCreate();
|
|
66258
68559
|
init_createtaskrequest();
|
|
66259
68560
|
init_tools();
|
|
66260
|
-
|
|
68561
|
+
args66 = {
|
|
66261
68562
|
request: CreateTaskRequest$zodSchema
|
|
66262
68563
|
};
|
|
66263
68564
|
tool$tasksCreate = {
|
|
@@ -66272,7 +68573,7 @@ Adds a task to today's queue and returns it with its execution prompt. New tasks
|
|
|
66272
68573
|
openWorldHint: false,
|
|
66273
68574
|
readOnlyHint: false
|
|
66274
68575
|
},
|
|
66275
|
-
args:
|
|
68576
|
+
args: args66,
|
|
66276
68577
|
tool: async (client, args, ctx) => {
|
|
66277
68578
|
const [result] = await tasksCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66278
68579
|
if (!result.ok) {
|
|
@@ -66432,9 +68733,9 @@ var init_v2taskslistop = __esm(() => {
|
|
|
66432
68733
|
|
|
66433
68734
|
// src/funcs/tasksList.ts
|
|
66434
68735
|
function tasksList(client$, request, options) {
|
|
66435
|
-
return new APIPromise($
|
|
68736
|
+
return new APIPromise($do83(client$, request, options));
|
|
66436
68737
|
}
|
|
66437
|
-
async function $
|
|
68738
|
+
async function $do83(client$, request, options) {
|
|
66438
68739
|
const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
66439
68740
|
if (!parsed$.ok) {
|
|
66440
68741
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66508,12 +68809,12 @@ var init_tasksList = __esm(() => {
|
|
|
66508
68809
|
});
|
|
66509
68810
|
|
|
66510
68811
|
// src/mcp-server/tools/tasksList.ts
|
|
66511
|
-
var
|
|
68812
|
+
var args67, tool$tasksList;
|
|
66512
68813
|
var init_tasksList2 = __esm(() => {
|
|
66513
68814
|
init_tasksList();
|
|
66514
68815
|
init_v2taskslistop();
|
|
66515
68816
|
init_tools();
|
|
66516
|
-
|
|
68817
|
+
args67 = {
|
|
66517
68818
|
request: V2TasksListRequest$zodSchema.optional()
|
|
66518
68819
|
};
|
|
66519
68820
|
tool$tasksList = {
|
|
@@ -66528,7 +68829,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
|
|
|
66528
68829
|
openWorldHint: false,
|
|
66529
68830
|
readOnlyHint: true
|
|
66530
68831
|
},
|
|
66531
|
-
args:
|
|
68832
|
+
args: args67,
|
|
66532
68833
|
tool: async (client, args, ctx) => {
|
|
66533
68834
|
const [result] = await tasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66534
68835
|
if (!result.ok) {
|
|
@@ -66559,9 +68860,9 @@ var init_v2tasksretrieveop = __esm(() => {
|
|
|
66559
68860
|
|
|
66560
68861
|
// src/funcs/tasksRetrieve.ts
|
|
66561
68862
|
function tasksRetrieve(client$, request, options) {
|
|
66562
|
-
return new APIPromise($
|
|
68863
|
+
return new APIPromise($do84(client$, request, options));
|
|
66563
68864
|
}
|
|
66564
|
-
async function $
|
|
68865
|
+
async function $do84(client$, request, options) {
|
|
66565
68866
|
const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
66566
68867
|
if (!parsed$.ok) {
|
|
66567
68868
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66636,12 +68937,12 @@ var init_tasksRetrieve = __esm(() => {
|
|
|
66636
68937
|
});
|
|
66637
68938
|
|
|
66638
68939
|
// src/mcp-server/tools/tasksRetrieve.ts
|
|
66639
|
-
var
|
|
68940
|
+
var args68, tool$tasksRetrieve;
|
|
66640
68941
|
var init_tasksRetrieve2 = __esm(() => {
|
|
66641
68942
|
init_tasksRetrieve();
|
|
66642
68943
|
init_v2tasksretrieveop();
|
|
66643
68944
|
init_tools();
|
|
66644
|
-
|
|
68945
|
+
args68 = {
|
|
66645
68946
|
request: V2TasksRetrieveRequest$zodSchema
|
|
66646
68947
|
};
|
|
66647
68948
|
tool$tasksRetrieve = {
|
|
@@ -66656,7 +68957,7 @@ Returns one persisted task and its execution prompt.`,
|
|
|
66656
68957
|
openWorldHint: false,
|
|
66657
68958
|
readOnlyHint: true
|
|
66658
68959
|
},
|
|
66659
|
-
args:
|
|
68960
|
+
args: args68,
|
|
66660
68961
|
tool: async (client, args, ctx) => {
|
|
66661
68962
|
const [result] = await tasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66662
68963
|
if (!result.ok) {
|
|
@@ -66719,9 +69020,9 @@ var init_v2tasksupdateop = __esm(() => {
|
|
|
66719
69020
|
|
|
66720
69021
|
// src/funcs/tasksUpdate.ts
|
|
66721
69022
|
function tasksUpdate(client$, request, options) {
|
|
66722
|
-
return new APIPromise($
|
|
69023
|
+
return new APIPromise($do85(client$, request, options));
|
|
66723
69024
|
}
|
|
66724
|
-
async function $
|
|
69025
|
+
async function $do85(client$, request, options) {
|
|
66725
69026
|
const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
66726
69027
|
if (!parsed$.ok) {
|
|
66727
69028
|
return [parsed$, { status: "invalid" }];
|
|
@@ -66797,12 +69098,12 @@ var init_tasksUpdate = __esm(() => {
|
|
|
66797
69098
|
});
|
|
66798
69099
|
|
|
66799
69100
|
// src/mcp-server/tools/tasksUpdate.ts
|
|
66800
|
-
var
|
|
69101
|
+
var args69, tool$tasksUpdate;
|
|
66801
69102
|
var init_tasksUpdate2 = __esm(() => {
|
|
66802
69103
|
init_tasksUpdate();
|
|
66803
69104
|
init_v2tasksupdateop();
|
|
66804
69105
|
init_tools();
|
|
66805
|
-
|
|
69106
|
+
args69 = {
|
|
66806
69107
|
request: V2TasksUpdateRequest$zodSchema
|
|
66807
69108
|
};
|
|
66808
69109
|
tool$tasksUpdate = {
|
|
@@ -66817,7 +69118,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
|
|
|
66817
69118
|
openWorldHint: false,
|
|
66818
69119
|
readOnlyHint: false
|
|
66819
69120
|
},
|
|
66820
|
-
args:
|
|
69121
|
+
args: args69,
|
|
66821
69122
|
tool: async (client, args, ctx) => {
|
|
66822
69123
|
const [result] = await tasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66823
69124
|
if (!result.ok) {
|
|
@@ -67009,9 +69310,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
|
|
|
67009
69310
|
|
|
67010
69311
|
// src/funcs/visibilityCitationsList.ts
|
|
67011
69312
|
function visibilityCitationsList(client$, request, options) {
|
|
67012
|
-
return new APIPromise($
|
|
69313
|
+
return new APIPromise($do86(client$, request, options));
|
|
67013
69314
|
}
|
|
67014
|
-
async function $
|
|
69315
|
+
async function $do86(client$, request, options) {
|
|
67015
69316
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
67016
69317
|
if (!parsed$.ok) {
|
|
67017
69318
|
return [parsed$, { status: "invalid" }];
|
|
@@ -67089,12 +69390,12 @@ var init_visibilityCitationsList = __esm(() => {
|
|
|
67089
69390
|
});
|
|
67090
69391
|
|
|
67091
69392
|
// src/mcp-server/tools/visibilityCitationsList.ts
|
|
67092
|
-
var
|
|
69393
|
+
var args70, tool$visibilityCitationsList;
|
|
67093
69394
|
var init_visibilityCitationsList2 = __esm(() => {
|
|
67094
69395
|
init_visibilityCitationsList();
|
|
67095
69396
|
init_v2visibilitycitationslistop();
|
|
67096
69397
|
init_tools();
|
|
67097
|
-
|
|
69398
|
+
args70 = {
|
|
67098
69399
|
request: V2VisibilityCitationsListRequest$zodSchema.optional()
|
|
67099
69400
|
};
|
|
67100
69401
|
tool$visibilityCitationsList = {
|
|
@@ -67109,7 +69410,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
67109
69410
|
openWorldHint: false,
|
|
67110
69411
|
readOnlyHint: true
|
|
67111
69412
|
},
|
|
67112
|
-
args:
|
|
69413
|
+
args: args70,
|
|
67113
69414
|
tool: async (client, args, ctx) => {
|
|
67114
69415
|
const [result] = await visibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67115
69416
|
if (!result.ok) {
|
|
@@ -67234,9 +69535,9 @@ var init_v2visibilitycitationssummaryretrieveop = __esm(() => {
|
|
|
67234
69535
|
|
|
67235
69536
|
// src/funcs/visibilityCitationsSummaryRetrieve.ts
|
|
67236
69537
|
function visibilityCitationsSummaryRetrieve(client$, request, options) {
|
|
67237
|
-
return new APIPromise($
|
|
69538
|
+
return new APIPromise($do87(client$, request, options));
|
|
67238
69539
|
}
|
|
67239
|
-
async function $
|
|
69540
|
+
async function $do87(client$, request, options) {
|
|
67240
69541
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
67241
69542
|
if (!parsed$.ok) {
|
|
67242
69543
|
return [parsed$, { status: "invalid" }];
|
|
@@ -67316,12 +69617,12 @@ var init_visibilityCitationsSummaryRetrieve = __esm(() => {
|
|
|
67316
69617
|
});
|
|
67317
69618
|
|
|
67318
69619
|
// src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts
|
|
67319
|
-
var
|
|
69620
|
+
var args71, tool$visibilityCitationsSummaryRetrieve;
|
|
67320
69621
|
var init_visibilityCitationsSummaryRetrieve2 = __esm(() => {
|
|
67321
69622
|
init_visibilityCitationsSummaryRetrieve();
|
|
67322
69623
|
init_v2visibilitycitationssummaryretrieveop();
|
|
67323
69624
|
init_tools();
|
|
67324
|
-
|
|
69625
|
+
args71 = {
|
|
67325
69626
|
request: V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional()
|
|
67326
69627
|
};
|
|
67327
69628
|
tool$visibilityCitationsSummaryRetrieve = {
|
|
@@ -67336,7 +69637,7 @@ Returns citation totals grouped by URL prefix (domain and first path segment, su
|
|
|
67336
69637
|
openWorldHint: false,
|
|
67337
69638
|
readOnlyHint: true
|
|
67338
69639
|
},
|
|
67339
|
-
args:
|
|
69640
|
+
args: args71,
|
|
67340
69641
|
tool: async (client, args, ctx) => {
|
|
67341
69642
|
const [result] = await visibilityCitationsSummaryRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67342
69643
|
if (!result.ok) {
|
|
@@ -67425,9 +69726,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
67425
69726
|
|
|
67426
69727
|
// src/funcs/visibilityCurrentRetrieve.ts
|
|
67427
69728
|
function visibilityCurrentRetrieve(client$, request, options) {
|
|
67428
|
-
return new APIPromise($
|
|
69729
|
+
return new APIPromise($do88(client$, request, options));
|
|
67429
69730
|
}
|
|
67430
|
-
async function $
|
|
69731
|
+
async function $do88(client$, request, options) {
|
|
67431
69732
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
67432
69733
|
if (!parsed$.ok) {
|
|
67433
69734
|
return [parsed$, { status: "invalid" }];
|
|
@@ -67502,12 +69803,12 @@ var init_visibilityCurrentRetrieve = __esm(() => {
|
|
|
67502
69803
|
});
|
|
67503
69804
|
|
|
67504
69805
|
// src/mcp-server/tools/visibilityCurrentRetrieve.ts
|
|
67505
|
-
var
|
|
69806
|
+
var args72, tool$visibilityCurrentRetrieve;
|
|
67506
69807
|
var init_visibilityCurrentRetrieve2 = __esm(() => {
|
|
67507
69808
|
init_visibilityCurrentRetrieve();
|
|
67508
69809
|
init_v2visibilitycurrentretrieveop();
|
|
67509
69810
|
init_tools();
|
|
67510
|
-
|
|
69811
|
+
args72 = {
|
|
67511
69812
|
request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
|
|
67512
69813
|
};
|
|
67513
69814
|
tool$visibilityCurrentRetrieve = {
|
|
@@ -67522,7 +69823,7 @@ Returns recommendation score, visibility score, ranks, and date-range metadata f
|
|
|
67522
69823
|
openWorldHint: false,
|
|
67523
69824
|
readOnlyHint: true
|
|
67524
69825
|
},
|
|
67525
|
-
args:
|
|
69826
|
+
args: args72,
|
|
67526
69827
|
tool: async (client, args, ctx) => {
|
|
67527
69828
|
const [result] = await visibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67528
69829
|
if (!result.ok) {
|
|
@@ -67678,9 +69979,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
67678
69979
|
|
|
67679
69980
|
// src/funcs/visibilityOverviewRetrieve.ts
|
|
67680
69981
|
function visibilityOverviewRetrieve(client$, request, options) {
|
|
67681
|
-
return new APIPromise($
|
|
69982
|
+
return new APIPromise($do89(client$, request, options));
|
|
67682
69983
|
}
|
|
67683
|
-
async function $
|
|
69984
|
+
async function $do89(client$, request, options) {
|
|
67684
69985
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
67685
69986
|
if (!parsed$.ok) {
|
|
67686
69987
|
return [parsed$, { status: "invalid" }];
|
|
@@ -67755,12 +70056,12 @@ var init_visibilityOverviewRetrieve = __esm(() => {
|
|
|
67755
70056
|
});
|
|
67756
70057
|
|
|
67757
70058
|
// src/mcp-server/tools/visibilityOverviewRetrieve.ts
|
|
67758
|
-
var
|
|
70059
|
+
var args73, tool$visibilityOverviewRetrieve;
|
|
67759
70060
|
var init_visibilityOverviewRetrieve2 = __esm(() => {
|
|
67760
70061
|
init_visibilityOverviewRetrieve();
|
|
67761
70062
|
init_v2visibilityoverviewretrieveop();
|
|
67762
70063
|
init_tools();
|
|
67763
|
-
|
|
70064
|
+
args73 = {
|
|
67764
70065
|
request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
|
|
67765
70066
|
};
|
|
67766
70067
|
tool$visibilityOverviewRetrieve = {
|
|
@@ -67775,7 +70076,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
|
|
|
67775
70076
|
openWorldHint: false,
|
|
67776
70077
|
readOnlyHint: true
|
|
67777
70078
|
},
|
|
67778
|
-
args:
|
|
70079
|
+
args: args73,
|
|
67779
70080
|
tool: async (client, args, ctx) => {
|
|
67780
70081
|
const [result] = await visibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67781
70082
|
if (!result.ok) {
|
|
@@ -67897,9 +70198,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
67897
70198
|
|
|
67898
70199
|
// src/funcs/visibilityPromptsRetrieve.ts
|
|
67899
70200
|
function visibilityPromptsRetrieve(client$, request, options) {
|
|
67900
|
-
return new APIPromise($
|
|
70201
|
+
return new APIPromise($do90(client$, request, options));
|
|
67901
70202
|
}
|
|
67902
|
-
async function $
|
|
70203
|
+
async function $do90(client$, request, options) {
|
|
67903
70204
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
67904
70205
|
if (!parsed$.ok) {
|
|
67905
70206
|
return [parsed$, { status: "invalid" }];
|
|
@@ -67974,12 +70275,12 @@ var init_visibilityPromptsRetrieve = __esm(() => {
|
|
|
67974
70275
|
});
|
|
67975
70276
|
|
|
67976
70277
|
// src/mcp-server/tools/visibilityPromptsRetrieve.ts
|
|
67977
|
-
var
|
|
70278
|
+
var args74, tool$visibilityPromptsRetrieve;
|
|
67978
70279
|
var init_visibilityPromptsRetrieve2 = __esm(() => {
|
|
67979
70280
|
init_visibilityPromptsRetrieve();
|
|
67980
70281
|
init_v2visibilitypromptsretrieveop();
|
|
67981
70282
|
init_tools();
|
|
67982
|
-
|
|
70283
|
+
args74 = {
|
|
67983
70284
|
request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
|
|
67984
70285
|
};
|
|
67985
70286
|
tool$visibilityPromptsRetrieve = {
|
|
@@ -67994,7 +70295,7 @@ Returns per-topic and per-prompt visibility metrics including recommendation sco
|
|
|
67994
70295
|
openWorldHint: false,
|
|
67995
70296
|
readOnlyHint: true
|
|
67996
70297
|
},
|
|
67997
|
-
args:
|
|
70298
|
+
args: args74,
|
|
67998
70299
|
tool: async (client, args, ctx) => {
|
|
67999
70300
|
const [result] = await visibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68000
70301
|
if (!result.ok) {
|
|
@@ -68018,7 +70319,7 @@ function createMCPServer(deps) {
|
|
|
68018
70319
|
sizes: ["any"]
|
|
68019
70320
|
}],
|
|
68020
70321
|
name: "LightsageMcp",
|
|
68021
|
-
version: "0.4.
|
|
70322
|
+
version: "0.4.28"
|
|
68022
70323
|
});
|
|
68023
70324
|
const getClient = deps.getSDK || (() => new LightsageMcpCore({
|
|
68024
70325
|
security: deps.security,
|
|
@@ -68046,6 +70347,7 @@ function createMCPServer(deps) {
|
|
|
68046
70347
|
tool(tool$visibilityCitationsSummaryRetrieve);
|
|
68047
70348
|
tool(tool$promptsList);
|
|
68048
70349
|
tool(tool$promptsCreate);
|
|
70350
|
+
tool(tool$promptsTagsList);
|
|
68049
70351
|
tool(tool$promptsTopicsList);
|
|
68050
70352
|
tool(tool$promptsTopicsCreate);
|
|
68051
70353
|
tool(tool$promptsTopicsUpdate);
|
|
@@ -68066,6 +70368,18 @@ function createMCPServer(deps) {
|
|
|
68066
70368
|
tool(tool$tasksCreate);
|
|
68067
70369
|
tool(tool$tasksRetrieve);
|
|
68068
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);
|
|
68069
70383
|
tool(tool$siteAuditsList);
|
|
68070
70384
|
tool(tool$siteAuditsRetrieve);
|
|
68071
70385
|
tool(tool$agentAnalyticsSitesList);
|
|
@@ -68162,6 +70476,18 @@ var init_server3 = __esm(() => {
|
|
|
68162
70476
|
init_evalTemplatesList2();
|
|
68163
70477
|
init_evalTemplatesRetrieve2();
|
|
68164
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();
|
|
68165
70491
|
init_mcpServersList2();
|
|
68166
70492
|
init_opportunitiesList2();
|
|
68167
70493
|
init_opportunitiesRetrieve2();
|
|
@@ -68175,6 +70501,7 @@ var init_server3 = __esm(() => {
|
|
|
68175
70501
|
init_promptsRunsList2();
|
|
68176
70502
|
init_promptsRunsRetrieve2();
|
|
68177
70503
|
init_promptsRunStatus2();
|
|
70504
|
+
init_promptsTagsList2();
|
|
68178
70505
|
init_promptsTargetsList2();
|
|
68179
70506
|
init_promptsTargetsSet2();
|
|
68180
70507
|
init_promptsTopicsCreate2();
|
|
@@ -68251,7 +70578,11 @@ Returns per-topic and per-prompt visibility metrics including recommendation sco
|
|
|
68251
70578
|
name: "prompts-create",
|
|
68252
70579
|
description: `Create Prompts
|
|
68253
70580
|
|
|
68254
|
-
Creates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors.`
|
|
70581
|
+
Creates prompts in a batch. Each item is validated independently, so the response can contain both created prompts and individual errors. Tag names that match no existing prompt tag create new tags.`
|
|
70582
|
+
},
|
|
70583
|
+
{
|
|
70584
|
+
name: "prompts-tags-list",
|
|
70585
|
+
description: "List Tags\n\nReturns the organization's prompt tags. Set tags on a prompt by name with `tags` on `POST /v2/prompts` or `PATCH /v2/prompts/{prompt_id}`; a name with no match creates the tag."
|
|
68255
70586
|
},
|
|
68256
70587
|
{
|
|
68257
70588
|
name: "prompts-topics-list",
|
|
@@ -68303,9 +70634,7 @@ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-a
|
|
|
68303
70634
|
},
|
|
68304
70635
|
{
|
|
68305
70636
|
name: "prompts-update",
|
|
68306
|
-
description:
|
|
68307
|
-
|
|
68308
|
-
Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged.`
|
|
70637
|
+
description: "Update Prompt\n\nUpdates a prompt's text, topic, platforms, tags, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged; `tags` replaces the prompt's tags."
|
|
68309
70638
|
},
|
|
68310
70639
|
{
|
|
68311
70640
|
name: "prompts-delete",
|
|
@@ -68366,6 +70695,74 @@ Returns one persisted task and its execution prompt.`
|
|
|
68366
70695
|
description: `Update Task
|
|
68367
70696
|
|
|
68368
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.`
|
|
68369
70766
|
},
|
|
68370
70767
|
{
|
|
68371
70768
|
name: "site-audits-list",
|
|
@@ -68465,7 +70862,7 @@ Permanently deletes an eval configuration and returns its last saved state.`
|
|
|
68465
70862
|
},
|
|
68466
70863
|
{
|
|
68467
70864
|
name: "evals-run",
|
|
68468
|
-
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."
|
|
68469
70866
|
},
|
|
68470
70867
|
{
|
|
68471
70868
|
name: "evals-cancel",
|
|
@@ -69519,7 +71916,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
69519
71916
|
<h1>Instructions</h1>
|
|
69520
71917
|
<p>One-click installation for Claude Desktop users</p>
|
|
69521
71918
|
<div class="instruction-item">
|
|
69522
|
-
<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;">
|
|
69523
71920
|
\uD83D\uDCE5 Download MCP Bundle
|
|
69524
71921
|
</a>
|
|
69525
71922
|
</div>
|
|
@@ -72419,7 +74816,7 @@ var routes = buildRouteMap({
|
|
|
72419
74816
|
var app = buildApplication(routes, {
|
|
72420
74817
|
name: "mcp",
|
|
72421
74818
|
versionInfo: {
|
|
72422
|
-
currentVersion: "0.4.
|
|
74819
|
+
currentVersion: "0.4.28"
|
|
72423
74820
|
}
|
|
72424
74821
|
});
|
|
72425
74822
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -72427,5 +74824,5 @@ export {
|
|
|
72427
74824
|
app
|
|
72428
74825
|
};
|
|
72429
74826
|
|
|
72430
|
-
//# debugId=
|
|
74827
|
+
//# debugId=09850C28C6AD78BF64756E2164756E21
|
|
72431
74828
|
//# sourceMappingURL=mcp-server.js.map
|