@langwatch/server 3.1.0-beta.4 → 3.1.0-beta.6
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/langwatch/ee/admin/ImpersonationBanner.tsx +61 -0
- package/langwatch/ee/admin/ImpersonationSwitchBackMenuItem.tsx +30 -0
- package/langwatch/ee/admin/__tests__/ImpersonationBanner.integration.test.tsx +82 -0
- package/langwatch/ee/admin/__tests__/impersonation.service.unit.test.ts +231 -0
- package/langwatch/ee/admin/backoffice/BackofficeTable.tsx +200 -0
- package/langwatch/ee/admin/backoffice/__tests__/adminClient.unit.test.ts +147 -0
- package/langwatch/ee/admin/backoffice/__tests__/dateInputToISO.unit.test.ts +42 -0
- package/langwatch/ee/admin/backoffice/__tests__/userVisibility.unit.test.ts +174 -0
- package/langwatch/ee/admin/backoffice/adminClient.ts +114 -0
- package/langwatch/ee/admin/backoffice/resources/OrganizationFeaturesView.tsx +373 -0
- package/langwatch/ee/admin/backoffice/resources/OrganizationsView.tsx +677 -0
- package/langwatch/ee/admin/backoffice/resources/ProjectsView.tsx +647 -0
- package/langwatch/ee/admin/backoffice/resources/SubscriptionsView.tsx +628 -0
- package/langwatch/ee/admin/backoffice/resources/UsersView.tsx +556 -0
- package/langwatch/ee/admin/backoffice/useAdminResource.ts +104 -0
- package/langwatch/ee/admin/backoffice/userVisibility.ts +105 -0
- package/langwatch/ee/admin/impersonation.service.ts +170 -0
- package/langwatch/ee/admin/isAdmin.ts +9 -0
- package/langwatch/ee/admin/routes/admin.ts +531 -0
- package/langwatch/ee/admin/safeSelects.ts +64 -0
- package/langwatch/ee/billing/__tests__/customerService.unit.test.ts +183 -0
- package/langwatch/ee/billing/__tests__/growthSeatEvent.unit.test.ts +213 -0
- package/langwatch/ee/billing/__tests__/licensePurchaseHandler.unit.test.ts +250 -0
- package/langwatch/ee/billing/__tests__/notification.service.unit.test.ts +768 -0
- package/langwatch/ee/billing/__tests__/planLimits.unit.test.ts +19 -0
- package/langwatch/ee/billing/__tests__/planProvider.unit.test.ts +440 -0
- package/langwatch/ee/billing/__tests__/planTypes.unit.test.ts +32 -0
- package/langwatch/ee/billing/__tests__/pricing.unit.test.ts +54 -0
- package/langwatch/ee/billing/__tests__/seatEventSubscription.unit.test.ts +717 -0
- package/langwatch/ee/billing/__tests__/stripe.integration.test.ts +344 -0
- package/langwatch/ee/billing/__tests__/stripePrices.types.unit.test.ts +27 -0
- package/langwatch/ee/billing/__tests__/stripePricesLoader.unit.test.ts +72 -0
- package/langwatch/ee/billing/__tests__/subscription.service.unit.test.ts +730 -0
- package/langwatch/ee/billing/__tests__/subscriptionItemCalculator.unit.test.ts +176 -0
- package/langwatch/ee/billing/__tests__/usage-limit.service.unit.test.ts +706 -0
- package/langwatch/ee/billing/__tests__/usageReportingService.integration.test.ts +421 -0
- package/langwatch/ee/billing/__tests__/usageReportingService.unit.test.ts +515 -0
- package/langwatch/ee/billing/__tests__/webhookService.unit.test.ts +958 -0
- package/langwatch/ee/billing/currencyRouter.ts +18 -0
- package/langwatch/ee/billing/errors.ts +129 -0
- package/langwatch/ee/billing/index.ts +67 -0
- package/langwatch/ee/billing/middleware.ts +17 -0
- package/langwatch/ee/billing/notifications/notification.service.ts +651 -0
- package/langwatch/ee/billing/notifications/repositories/notification.repository.ts +51 -0
- package/langwatch/ee/billing/notifications/types.ts +9 -0
- package/langwatch/ee/billing/notifications/usage-limit.service.ts +622 -0
- package/langwatch/ee/billing/nurturing/hooks/activityTracking.ts +90 -0
- package/langwatch/ee/billing/nurturing/hooks/activityTracking.unit.test.ts +237 -0
- package/langwatch/ee/billing/nurturing/hooks/featureAdoption.ts +120 -0
- package/langwatch/ee/billing/nurturing/hooks/featureAdoption.unit.test.ts +324 -0
- package/langwatch/ee/billing/nurturing/hooks/index.ts +17 -0
- package/langwatch/ee/billing/nurturing/hooks/productInterest.ts +68 -0
- package/langwatch/ee/billing/nurturing/hooks/productInterest.unit.test.ts +138 -0
- package/langwatch/ee/billing/nurturing/hooks/promptCreation.integration.test.ts +288 -0
- package/langwatch/ee/billing/nurturing/hooks/promptCreation.ts +131 -0
- package/langwatch/ee/billing/nurturing/hooks/promptCreation.unit.test.ts +134 -0
- package/langwatch/ee/billing/nurturing/hooks/signupIdentification.ts +101 -0
- package/langwatch/ee/billing/nurturing/hooks/signupIdentification.unit.test.ts +317 -0
- package/langwatch/ee/billing/nurturing/hooks/subscriptionSync.ts +49 -0
- package/langwatch/ee/billing/nurturing/hooks/subscriptionSync.unit.test.ts +170 -0
- package/langwatch/ee/billing/nurturing/hooks/userSync.ts +143 -0
- package/langwatch/ee/billing/nurturing/hooks/userSync.unit.test.ts +307 -0
- package/langwatch/ee/billing/nurturing/nurturing.service.ts +179 -0
- package/langwatch/ee/billing/nurturing/nurturing.service.unit.test.ts +266 -0
- package/langwatch/ee/billing/nurturing/nurturing.service.wiring.unit.test.ts +109 -0
- package/langwatch/ee/billing/nurturing/types.ts +125 -0
- package/langwatch/ee/billing/planLimits.ts +190 -0
- package/langwatch/ee/billing/planProvider.ts +119 -0
- package/langwatch/ee/billing/planTypes.ts +53 -0
- package/langwatch/ee/billing/pricing.ts +57 -0
- package/langwatch/ee/billing/services/billableEventsQuery.ts +248 -0
- package/langwatch/ee/billing/services/customerService.ts +90 -0
- package/langwatch/ee/billing/services/licensePurchaseHandler.ts +73 -0
- package/langwatch/ee/billing/services/seatEventSubscription.ts +351 -0
- package/langwatch/ee/billing/services/seatSyncService.ts +34 -0
- package/langwatch/ee/billing/services/subscription.repository.ts +203 -0
- package/langwatch/ee/billing/services/subscription.service.ts +549 -0
- package/langwatch/ee/billing/services/subscriptionItemCalculator.ts +249 -0
- package/langwatch/ee/billing/services/usageReportingService.ts +301 -0
- package/langwatch/ee/billing/services/webhookService.ts +858 -0
- package/langwatch/ee/billing/stripe/stripeCatalog.json +1781 -0
- package/langwatch/ee/billing/stripe/stripeClient.ts +13 -0
- package/langwatch/ee/billing/stripe/stripePriceCatalog.ts +70 -0
- package/langwatch/ee/billing/stripe/stripePrices.types.ts +118 -0
- package/langwatch/ee/billing/subscriptionRouter.ts +202 -0
- package/langwatch/ee/billing/types.ts +102 -0
- package/langwatch/ee/billing/utils/currency.ts +99 -0
- package/langwatch/ee/billing/utils/growthSeatEvent.ts +137 -0
- package/langwatch/ee/licensing/__tests__/constants.unit.test.ts +56 -0
- package/langwatch/ee/licensing/__tests__/defaults.unit.test.ts +192 -0
- package/langwatch/ee/licensing/__tests__/fixtures/testKeys.ts +86 -0
- package/langwatch/ee/licensing/__tests__/fixtures/testLicenses.ts +92 -0
- package/langwatch/ee/licensing/__tests__/licenseGenerationService.unit.test.ts +232 -0
- package/langwatch/ee/licensing/__tests__/licenseHandler.integration.test.ts +419 -0
- package/langwatch/ee/licensing/__tests__/planMapping.unit.test.ts +195 -0
- package/langwatch/ee/licensing/__tests__/planTemplates.unit.test.ts +193 -0
- package/langwatch/ee/licensing/__tests__/signing.unit.test.ts +164 -0
- package/langwatch/ee/licensing/__tests__/validation.unit.test.ts +281 -0
- package/langwatch/ee/licensing/client.ts +29 -0
- package/langwatch/ee/licensing/constants.ts +195 -0
- package/langwatch/ee/licensing/defaults.ts +55 -0
- package/langwatch/ee/licensing/errors.ts +11 -0
- package/langwatch/ee/licensing/index.ts +52 -0
- package/langwatch/ee/licensing/licenseGenerationService.ts +87 -0
- package/langwatch/ee/licensing/licenseHandler.ts +308 -0
- package/langwatch/ee/licensing/planInfo.ts +46 -0
- package/langwatch/ee/licensing/planMapping.ts +37 -0
- package/langwatch/ee/licensing/planTemplates.ts +109 -0
- package/langwatch/ee/licensing/server.ts +43 -0
- package/langwatch/ee/licensing/signing.ts +43 -0
- package/langwatch/ee/licensing/types.ts +156 -0
- package/langwatch/ee/licensing/validation.ts +107 -0
- package/langwatch/ee/managed-providers/ManagedModelProviderAlert.tsx +29 -0
- package/langwatch/ee/managed-providers/managedBedrockConfig.ts +226 -0
- package/langwatch/ee/saas/ExtraFooterComponents.tsx +169 -0
- package/langwatch/package.json +1 -1
- package/langwatch/pnpm-workspace.yaml +0 -1
- package/mcp-server/.env.example +2 -0
- package/mcp-server/.eslintrc.cjs +36 -0
- package/mcp-server/CHANGELOG.md +165 -0
- package/mcp-server/CONTRIBUTING.md +96 -0
- package/mcp-server/README.md +172 -0
- package/mcp-server/dist/archive-scenario-WJ2A7ETN.js +19 -0
- package/mcp-server/dist/archive-suite-4JOM4SSL.js +15 -0
- package/mcp-server/dist/assign-prompt-tag-GL7EAAF3.js +19 -0
- package/mcp-server/dist/chunk-2GT7IFWK.js +40 -0
- package/mcp-server/dist/chunk-2WPLXEKF.js +127 -0
- package/mcp-server/dist/chunk-4AUB2BIA.js +71 -0
- package/mcp-server/dist/chunk-BWWY5KEF.js +71 -0
- package/mcp-server/dist/chunk-CCWCIJJ3.js +22 -0
- package/mcp-server/dist/chunk-EGH5RPXM.js +25 -0
- package/mcp-server/dist/chunk-EUQDVOSU.js +39 -0
- package/mcp-server/dist/chunk-HYMIWO3U.js +44 -0
- package/mcp-server/dist/chunk-IE4M5OGE.js +42 -0
- package/mcp-server/dist/chunk-LUMEZEHL.js +48 -0
- package/mcp-server/dist/chunk-NUFPTHKU.js +9 -0
- package/mcp-server/dist/chunk-UDHJYT6P.js +1567 -0
- package/mcp-server/dist/chunk-WQG2DFHX.js +86 -0
- package/mcp-server/dist/chunk-WVI5CJ6S.js +21 -0
- package/mcp-server/dist/chunk-ZVS4UKN2.js +35 -0
- package/mcp-server/dist/chunk-ZXKLPC2E.js +27 -0
- package/mcp-server/dist/config.d.ts +17 -0
- package/mcp-server/dist/config.js +13 -0
- package/mcp-server/dist/create-agent-MBOOT3XK.js +23 -0
- package/mcp-server/dist/create-annotation-XMV6A7ED.js +24 -0
- package/mcp-server/dist/create-dashboard-VRKLFVZJ.js +18 -0
- package/mcp-server/dist/create-dataset-7HQPZCRE.js +22 -0
- package/mcp-server/dist/create-dataset-records-2NIVFYTV.js +22 -0
- package/mcp-server/dist/create-evaluator-WYFRFLRC.js +27 -0
- package/mcp-server/dist/create-mcp-server.d.ts +8 -0
- package/mcp-server/dist/create-mcp-server.js +8 -0
- package/mcp-server/dist/create-prompt-IEN7O6JT.js +39 -0
- package/mcp-server/dist/create-prompt-tag-CAEZ45VO.js +17 -0
- package/mcp-server/dist/create-scenario-6YHSMGLP.js +26 -0
- package/mcp-server/dist/create-suite-H5XOFDE5.js +38 -0
- package/mcp-server/dist/delete-agent-JKTNBWAA.js +18 -0
- package/mcp-server/dist/delete-annotation-ACMDV6QO.js +17 -0
- package/mcp-server/dist/delete-dashboard-VJSR7CRU.js +18 -0
- package/mcp-server/dist/delete-dataset-RTTTWP4D.js +20 -0
- package/mcp-server/dist/delete-dataset-records-KNQTIPQK.js +21 -0
- package/mcp-server/dist/delete-evaluator-7FVC5WM4.js +15 -0
- package/mcp-server/dist/delete-prompt-tag-ZMZUAGFW.js +17 -0
- package/mcp-server/dist/delete-workflow-EYQ3T4RQ.js +17 -0
- package/mcp-server/dist/discover-evaluator-schema-H23XCLNE.js +1402 -0
- package/mcp-server/dist/discover-scenario-schema-MEEEVND7.js +65 -0
- package/mcp-server/dist/discover-schema-3T52ORPB.js +446 -0
- package/mcp-server/dist/get-agent-E3QSTVKG.js +28 -0
- package/mcp-server/dist/get-analytics-2OHV763I.js +72 -0
- package/mcp-server/dist/get-dashboard-PC7JDHH6.js +29 -0
- package/mcp-server/dist/get-dataset-H5IK5FVU.js +48 -0
- package/mcp-server/dist/get-evaluator-UWVUPYTM.js +47 -0
- package/mcp-server/dist/get-prompt-WZUOLLQC.js +45 -0
- package/mcp-server/dist/get-scenario-Q6LCNUYN.js +33 -0
- package/mcp-server/dist/get-simulation-run-Z2XKO256.js +56 -0
- package/mcp-server/dist/get-suite-BXK5TN7P.js +44 -0
- package/mcp-server/dist/get-trace-4EJAYVBG.js +50 -0
- package/mcp-server/dist/get-workflow-O34QJLHD.js +25 -0
- package/mcp-server/dist/http-server-RSTXN4CN.js +224 -0
- package/mcp-server/dist/index.d.ts +2 -0
- package/mcp-server/dist/index.js +67774 -0
- package/mcp-server/dist/langwatch-api-annotations-ERBG27RF.js +17 -0
- package/mcp-server/dist/langwatch-api-dashboards-G6TR7VVO.js +17 -0
- package/mcp-server/dist/langwatch-api-monitors-WSXZLS2B.js +52 -0
- package/mcp-server/dist/langwatch-api-secrets-RR5DKG2X.js +40 -0
- package/mcp-server/dist/langwatch-api-triggers-2RTNSWQY.js +30 -0
- package/mcp-server/dist/langwatch-api-workflows-VJRIIDZ7.js +15 -0
- package/mcp-server/dist/list-agents-AW3P6FJV.js +32 -0
- package/mcp-server/dist/list-annotations-QNCGWPQ3.js +33 -0
- package/mcp-server/dist/list-dashboards-R7RK2IXL.js +32 -0
- package/mcp-server/dist/list-dataset-records-WVCSQP7P.js +39 -0
- package/mcp-server/dist/list-datasets-KEXRLDEU.js +60 -0
- package/mcp-server/dist/list-evaluators-7R2LB4JH.js +34 -0
- package/mcp-server/dist/list-model-providers-OBYJCKBX.js +35 -0
- package/mcp-server/dist/list-prompt-tags-6LY3ZPYI.js +23 -0
- package/mcp-server/dist/list-prompts-VWEZ4CDE.js +32 -0
- package/mcp-server/dist/list-scenarios-TXD4W2ZJ.js +40 -0
- package/mcp-server/dist/list-simulation-runs-RHPOLMFI.js +43 -0
- package/mcp-server/dist/list-suites-FSGBX27Z.js +42 -0
- package/mcp-server/dist/list-workflows-VRGEZ3EN.js +35 -0
- package/mcp-server/dist/rename-prompt-tag-VOJJLX4M.js +18 -0
- package/mcp-server/dist/run-agent-KTCC7TB7.js +36 -0
- package/mcp-server/dist/run-evaluation-2X3V3Q6L.js +64 -0
- package/mcp-server/dist/run-suite-BTMHGI2D.js +29 -0
- package/mcp-server/dist/run-workflow-IGAYGKJL.js +36 -0
- package/mcp-server/dist/search-traces-VYFUIMXH.js +72 -0
- package/mcp-server/dist/set-model-provider-W5IUI326.js +33 -0
- package/mcp-server/dist/update-agent-4BB7EYLR.js +20 -0
- package/mcp-server/dist/update-dataset-CXBKZ4W3.js +22 -0
- package/mcp-server/dist/update-dataset-record-HOHAMHXG.js +19 -0
- package/mcp-server/dist/update-evaluator-IVOR6FTR.js +24 -0
- package/mcp-server/dist/update-prompt-OWQAKE7K.js +24 -0
- package/mcp-server/dist/update-scenario-GDFVILPN.js +27 -0
- package/mcp-server/dist/update-suite-BXYUYSPT.js +39 -0
- package/mcp-server/package.json +79 -0
- package/mcp-server/pnpm-lock.yaml +6103 -0
- package/mcp-server/pnpm-workspace.yaml +2 -0
- package/mcp-server/pyproject.toml +17 -0
- package/mcp-server/src/__tests__/all-tools.integration.test.ts +1681 -0
- package/mcp-server/src/__tests__/config.unit.test.ts +169 -0
- package/mcp-server/src/__tests__/datasets.integration.test.ts +603 -0
- package/mcp-server/src/__tests__/datasets.unit.test.ts +240 -0
- package/mcp-server/src/__tests__/date-parsing.unit.test.ts +78 -0
- package/mcp-server/src/__tests__/discover-evaluator-schema.unit.test.ts +89 -0
- package/mcp-server/src/__tests__/discover-schema.unit.test.ts +118 -0
- package/mcp-server/src/__tests__/docker.integration.test.ts +234 -0
- package/mcp-server/src/__tests__/evaluator-tools.unit.test.ts +262 -0
- package/mcp-server/src/__tests__/http-transport.integration.test.ts +397 -0
- package/mcp-server/src/__tests__/integration.integration.test.ts +288 -0
- package/mcp-server/src/__tests__/langwatch-api.unit.test.ts +455 -0
- package/mcp-server/src/__tests__/model-provider-tools.unit.test.ts +190 -0
- package/mcp-server/src/__tests__/scenario-tools.integration.test.ts +286 -0
- package/mcp-server/src/__tests__/scenario-tools.unit.test.ts +185 -0
- package/mcp-server/src/__tests__/schemas.unit.test.ts +85 -0
- package/mcp-server/src/__tests__/tools.unit.test.ts +900 -0
- package/mcp-server/src/config.d.ts +15 -0
- package/mcp-server/src/config.ts +107 -0
- package/mcp-server/src/create-mcp-server.d.ts +6 -0
- package/mcp-server/src/create-mcp-server.ts +1799 -0
- package/mcp-server/src/http-server.ts +329 -0
- package/mcp-server/src/index.ts +46 -0
- package/mcp-server/src/langwatch-api-agents.ts +108 -0
- package/mcp-server/src/langwatch-api-annotations.ts +49 -0
- package/mcp-server/src/langwatch-api-dashboards.ts +48 -0
- package/mcp-server/src/langwatch-api-datasets.ts +191 -0
- package/mcp-server/src/langwatch-api-evaluators.ts +80 -0
- package/mcp-server/src/langwatch-api-model-providers.ts +41 -0
- package/mcp-server/src/langwatch-api-monitors.ts +82 -0
- package/mcp-server/src/langwatch-api-scenarios.ts +67 -0
- package/mcp-server/src/langwatch-api-secrets.ts +48 -0
- package/mcp-server/src/langwatch-api-simulation-runs.ts +51 -0
- package/mcp-server/src/langwatch-api-suites.ts +118 -0
- package/mcp-server/src/langwatch-api-triggers.ts +48 -0
- package/mcp-server/src/langwatch-api-workflows.ts +41 -0
- package/mcp-server/src/langwatch-api.ts +299 -0
- package/mcp-server/src/schemas/analytics-groups.ts +78 -0
- package/mcp-server/src/schemas/analytics-metrics.ts +179 -0
- package/mcp-server/src/schemas/create-dataset.ts +48 -0
- package/mcp-server/src/schemas/filter-fields.ts +119 -0
- package/mcp-server/src/schemas/index.ts +4 -0
- package/mcp-server/src/tools/archive-scenario.ts +19 -0
- package/mcp-server/src/tools/archive-suite.ts +12 -0
- package/mcp-server/src/tools/assign-prompt-tag.ts +16 -0
- package/mcp-server/src/tools/create-agent.ts +15 -0
- package/mcp-server/src/tools/create-annotation.ts +18 -0
- package/mcp-server/src/tools/create-dashboard.ts +7 -0
- package/mcp-server/src/tools/create-dataset-records.ts +23 -0
- package/mcp-server/src/tools/create-dataset.ts +22 -0
- package/mcp-server/src/tools/create-evaluator.ts +33 -0
- package/mcp-server/src/tools/create-prompt-tag.ts +12 -0
- package/mcp-server/src/tools/create-prompt.ts +58 -0
- package/mcp-server/src/tools/create-scenario.ts +30 -0
- package/mcp-server/src/tools/create-suite.ts +42 -0
- package/mcp-server/src/tools/delete-agent.ts +7 -0
- package/mcp-server/src/tools/delete-annotation.ts +7 -0
- package/mcp-server/src/tools/delete-dashboard.ts +7 -0
- package/mcp-server/src/tools/delete-dataset-records.ts +22 -0
- package/mcp-server/src/tools/delete-dataset.ts +20 -0
- package/mcp-server/src/tools/delete-evaluator.ts +12 -0
- package/mcp-server/src/tools/delete-prompt-tag.ts +12 -0
- package/mcp-server/src/tools/delete-workflow.ts +7 -0
- package/mcp-server/src/tools/discover-evaluator-schema.ts +143 -0
- package/mcp-server/src/tools/discover-scenario-schema.ts +71 -0
- package/mcp-server/src/tools/discover-schema.ts +106 -0
- package/mcp-server/src/tools/format-dataset-mutation.ts +25 -0
- package/mcp-server/src/tools/get-agent.ts +21 -0
- package/mcp-server/src/tools/get-analytics.ts +98 -0
- package/mcp-server/src/tools/get-dashboard.ts +22 -0
- package/mcp-server/src/tools/get-dataset.ts +63 -0
- package/mcp-server/src/tools/get-evaluator.ts +53 -0
- package/mcp-server/src/tools/get-prompt.ts +54 -0
- package/mcp-server/src/tools/get-scenario.ts +36 -0
- package/mcp-server/src/tools/get-simulation-run.ts +60 -0
- package/mcp-server/src/tools/get-suite.ts +47 -0
- package/mcp-server/src/tools/get-trace.ts +61 -0
- package/mcp-server/src/tools/get-workflow.ts +17 -0
- package/mcp-server/src/tools/list-agents.ts +27 -0
- package/mcp-server/src/tools/list-annotations.ts +33 -0
- package/mcp-server/src/tools/list-dashboards.ts +27 -0
- package/mcp-server/src/tools/list-dataset-records.ts +46 -0
- package/mcp-server/src/tools/list-datasets.ts +80 -0
- package/mcp-server/src/tools/list-evaluators.ts +37 -0
- package/mcp-server/src/tools/list-model-providers.ts +40 -0
- package/mcp-server/src/tools/list-prompt-tags.ts +21 -0
- package/mcp-server/src/tools/list-prompts.ts +34 -0
- package/mcp-server/src/tools/list-scenarios.ts +47 -0
- package/mcp-server/src/tools/list-simulation-runs.ts +49 -0
- package/mcp-server/src/tools/list-suites.ts +43 -0
- package/mcp-server/src/tools/list-workflows.ts +31 -0
- package/mcp-server/src/tools/rename-prompt-tag.ts +14 -0
- package/mcp-server/src/tools/run-agent.ts +36 -0
- package/mcp-server/src/tools/run-evaluation.ts +87 -0
- package/mcp-server/src/tools/run-suite.ts +28 -0
- package/mcp-server/src/tools/run-workflow.ts +36 -0
- package/mcp-server/src/tools/search-traces.ts +91 -0
- package/mcp-server/src/tools/set-model-provider.ts +46 -0
- package/mcp-server/src/tools/update-agent.ts +13 -0
- package/mcp-server/src/tools/update-dataset-record.ts +21 -0
- package/mcp-server/src/tools/update-dataset.ts +23 -0
- package/mcp-server/src/tools/update-evaluator.ts +30 -0
- package/mcp-server/src/tools/update-prompt.ts +31 -0
- package/mcp-server/src/tools/update-scenario.ts +32 -0
- package/mcp-server/src/tools/update-suite.ts +44 -0
- package/mcp-server/src/utils/date-parsing.ts +31 -0
- package/mcp-server/src/utils/escape-markdown.ts +12 -0
- package/mcp-server/tsconfig.json +27 -0
- package/mcp-server/uv.lock +2731 -0
- package/package.json +2 -1
- package/packages/server/dist/cli.cjs +1 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getConfig,
|
|
3
|
+
requireApiKey
|
|
4
|
+
} from "./chunk-BWWY5KEF.js";
|
|
5
|
+
|
|
6
|
+
// src/langwatch-api.ts
|
|
7
|
+
async function makeRequest(method, path, body) {
|
|
8
|
+
const url = getConfig().endpoint + path;
|
|
9
|
+
const headers = {
|
|
10
|
+
"X-Auth-Token": requireApiKey()
|
|
11
|
+
};
|
|
12
|
+
if (body !== void 0) {
|
|
13
|
+
headers["Content-Type"] = "application/json";
|
|
14
|
+
}
|
|
15
|
+
const response = await fetch(url, {
|
|
16
|
+
method,
|
|
17
|
+
headers,
|
|
18
|
+
...body !== void 0 ? { body: JSON.stringify(body) } : {}
|
|
19
|
+
});
|
|
20
|
+
if (!response.ok) {
|
|
21
|
+
const responseBody = await response.text();
|
|
22
|
+
throw new Error(
|
|
23
|
+
`LangWatch API error ${response.status}: ${responseBody}`
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
if (response.status === 204 || response.headers?.get("content-length") === "0") {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return response.json();
|
|
30
|
+
}
|
|
31
|
+
async function searchTraces(params) {
|
|
32
|
+
const { format = "digest", ...rest } = params;
|
|
33
|
+
return makeRequest("POST", "/api/traces/search", {
|
|
34
|
+
...rest,
|
|
35
|
+
format
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
async function getTraceById(traceId, format = "digest") {
|
|
39
|
+
return makeRequest(
|
|
40
|
+
"GET",
|
|
41
|
+
`/api/traces/${encodeURIComponent(traceId)}?format=${format}`
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
async function getAnalyticsTimeseries(params) {
|
|
45
|
+
return makeRequest(
|
|
46
|
+
"POST",
|
|
47
|
+
"/api/analytics/timeseries",
|
|
48
|
+
params
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
async function listPrompts() {
|
|
52
|
+
return makeRequest("GET", "/api/prompts");
|
|
53
|
+
}
|
|
54
|
+
async function getPrompt(idOrHandle, options) {
|
|
55
|
+
const params = new URLSearchParams();
|
|
56
|
+
if (options?.version != null) params.set("version", String(options.version));
|
|
57
|
+
if (options?.tag) params.set("tag", options.tag);
|
|
58
|
+
const query = params.toString() ? `?${params}` : "";
|
|
59
|
+
return makeRequest(
|
|
60
|
+
"GET",
|
|
61
|
+
`/api/prompts/${encodeURIComponent(idOrHandle)}${query}`
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
async function createPrompt(data) {
|
|
65
|
+
return makeRequest(
|
|
66
|
+
"POST",
|
|
67
|
+
"/api/prompts",
|
|
68
|
+
data
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
async function updatePrompt(idOrHandle, data) {
|
|
72
|
+
return makeRequest(
|
|
73
|
+
"PUT",
|
|
74
|
+
`/api/prompts/${encodeURIComponent(idOrHandle)}`,
|
|
75
|
+
data
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
async function assignPromptTag({
|
|
79
|
+
idOrHandle,
|
|
80
|
+
tag,
|
|
81
|
+
versionId
|
|
82
|
+
}) {
|
|
83
|
+
return makeRequest(
|
|
84
|
+
"PUT",
|
|
85
|
+
`/api/prompts/${encodeURIComponent(idOrHandle)}/tags/${encodeURIComponent(tag)}`,
|
|
86
|
+
{ versionId }
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
async function listPromptTags() {
|
|
90
|
+
return makeRequest("GET", "/api/prompts/tags");
|
|
91
|
+
}
|
|
92
|
+
async function createPromptTag(name) {
|
|
93
|
+
return makeRequest("POST", "/api/prompts/tags", { name });
|
|
94
|
+
}
|
|
95
|
+
async function renamePromptTag({
|
|
96
|
+
tag,
|
|
97
|
+
name
|
|
98
|
+
}) {
|
|
99
|
+
return makeRequest(
|
|
100
|
+
"PUT",
|
|
101
|
+
`/api/prompts/tags/${encodeURIComponent(tag)}`,
|
|
102
|
+
{ name }
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
async function deletePromptTag(tag) {
|
|
106
|
+
return makeRequest(
|
|
107
|
+
"DELETE",
|
|
108
|
+
`/api/prompts/tags/${encodeURIComponent(tag)}`
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export {
|
|
113
|
+
makeRequest,
|
|
114
|
+
searchTraces,
|
|
115
|
+
getTraceById,
|
|
116
|
+
getAnalyticsTimeseries,
|
|
117
|
+
listPrompts,
|
|
118
|
+
getPrompt,
|
|
119
|
+
createPrompt,
|
|
120
|
+
updatePrompt,
|
|
121
|
+
assignPromptTag,
|
|
122
|
+
listPromptTags,
|
|
123
|
+
createPromptTag,
|
|
124
|
+
renamePromptTag,
|
|
125
|
+
deletePromptTag
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=chunk-2WPLXEKF.js.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeRequest
|
|
3
|
+
} from "./chunk-2WPLXEKF.js";
|
|
4
|
+
|
|
5
|
+
// src/langwatch-api-agents.ts
|
|
6
|
+
async function listAgents(params) {
|
|
7
|
+
const query = new URLSearchParams();
|
|
8
|
+
if (params?.page) query.set("page", String(params.page));
|
|
9
|
+
if (params?.limit) query.set("limit", String(params.limit));
|
|
10
|
+
const qs = query.toString() ? `?${query}` : "";
|
|
11
|
+
return makeRequest("GET", `/api/agents${qs}`);
|
|
12
|
+
}
|
|
13
|
+
async function getAgent(id) {
|
|
14
|
+
return makeRequest(
|
|
15
|
+
"GET",
|
|
16
|
+
`/api/agents/${encodeURIComponent(id)}`
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
async function createAgent(data) {
|
|
20
|
+
return makeRequest("POST", "/api/agents", data);
|
|
21
|
+
}
|
|
22
|
+
async function updateAgent(params) {
|
|
23
|
+
const { id, ...data } = params;
|
|
24
|
+
return makeRequest(
|
|
25
|
+
"PATCH",
|
|
26
|
+
`/api/agents/${encodeURIComponent(id)}`,
|
|
27
|
+
data
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
async function runAgent(id, input) {
|
|
31
|
+
const agent = await getAgent(id);
|
|
32
|
+
const config = agent.config ?? {};
|
|
33
|
+
if (agent.type === "http") {
|
|
34
|
+
const url = config.url;
|
|
35
|
+
if (!url) {
|
|
36
|
+
throw new Error("HTTP agent has no URL configured");
|
|
37
|
+
}
|
|
38
|
+
const response = await fetch(url, {
|
|
39
|
+
method: "POST",
|
|
40
|
+
headers: { "Content-Type": "application/json" },
|
|
41
|
+
body: JSON.stringify(input ?? {})
|
|
42
|
+
});
|
|
43
|
+
const result2 = await response.json();
|
|
44
|
+
return { agentType: "http", result: result2 };
|
|
45
|
+
}
|
|
46
|
+
const workflowId = config.workflowId;
|
|
47
|
+
if (!workflowId) {
|
|
48
|
+
throw new Error(
|
|
49
|
+
`Agent "${agent.name}" (type: ${agent.type}) cannot be executed directly. Only HTTP agents and workflow-linked agents can be run.`
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
const { runWorkflow } = await import("./langwatch-api-workflows-VJRIIDZ7.js");
|
|
53
|
+
const result = await runWorkflow(workflowId, input);
|
|
54
|
+
return { agentType: agent.type, result };
|
|
55
|
+
}
|
|
56
|
+
async function deleteAgent(id) {
|
|
57
|
+
return makeRequest(
|
|
58
|
+
"DELETE",
|
|
59
|
+
`/api/agents/${encodeURIComponent(id)}`
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
listAgents,
|
|
65
|
+
getAgent,
|
|
66
|
+
createAgent,
|
|
67
|
+
updateAgent,
|
|
68
|
+
runAgent,
|
|
69
|
+
deleteAgent
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=chunk-4AUB2BIA.js.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
import { AsyncLocalStorage } from "async_hooks";
|
|
3
|
+
var GLOBAL_KEY = "__langwatch_mcp_config";
|
|
4
|
+
var STORAGE_KEY = "__langwatch_mcp_config_storage";
|
|
5
|
+
function getGlobalState() {
|
|
6
|
+
const g = globalThis;
|
|
7
|
+
if (!g[GLOBAL_KEY]) {
|
|
8
|
+
g[GLOBAL_KEY] = void 0;
|
|
9
|
+
}
|
|
10
|
+
if (!g[STORAGE_KEY]) {
|
|
11
|
+
g[STORAGE_KEY] = new AsyncLocalStorage();
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
get globalConfig() {
|
|
15
|
+
return g[GLOBAL_KEY];
|
|
16
|
+
},
|
|
17
|
+
set globalConfig(val) {
|
|
18
|
+
g[GLOBAL_KEY] = val;
|
|
19
|
+
},
|
|
20
|
+
get configStorage() {
|
|
21
|
+
return g[STORAGE_KEY];
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function initConfig(args) {
|
|
26
|
+
const state = getGlobalState();
|
|
27
|
+
state.globalConfig = {
|
|
28
|
+
apiKey: args.apiKey || process.env.LANGWATCH_API_KEY,
|
|
29
|
+
endpoint: args.endpoint || process.env.LANGWATCH_ENDPOINT || "https://app.langwatch.ai"
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function getConfig() {
|
|
33
|
+
const state = getGlobalState();
|
|
34
|
+
const scoped = state.configStorage.getStore();
|
|
35
|
+
if (scoped) return scoped;
|
|
36
|
+
if (!state.globalConfig) {
|
|
37
|
+
console.error(
|
|
38
|
+
"[MCP config] getConfig() failed: globalConfig is null, no scoped config active. Was initConfig() called? Stack:",
|
|
39
|
+
new Error().stack
|
|
40
|
+
);
|
|
41
|
+
throw new Error("Config not initialized");
|
|
42
|
+
}
|
|
43
|
+
return state.globalConfig;
|
|
44
|
+
}
|
|
45
|
+
function requireApiKey() {
|
|
46
|
+
const config = getConfig();
|
|
47
|
+
if (!config.apiKey) {
|
|
48
|
+
const state = getGlobalState();
|
|
49
|
+
const hasScoped = !!state.configStorage.getStore();
|
|
50
|
+
console.error(
|
|
51
|
+
`[MCP config] requireApiKey() failed: apiKey is undefined. scopedConfig=${hasScoped}, endpoint=${config.endpoint}. In HTTP mode, the API key should be set per-session via runWithConfig(). Stack:`,
|
|
52
|
+
new Error().stack
|
|
53
|
+
);
|
|
54
|
+
throw new Error(
|
|
55
|
+
"LANGWATCH_API_KEY is required. Set it via --apiKey flag or LANGWATCH_API_KEY environment variable."
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
return config.apiKey;
|
|
59
|
+
}
|
|
60
|
+
function runWithConfig(config, fn) {
|
|
61
|
+
const state = getGlobalState();
|
|
62
|
+
return state.configStorage.run(config, fn);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export {
|
|
66
|
+
initConfig,
|
|
67
|
+
getConfig,
|
|
68
|
+
requireApiKey,
|
|
69
|
+
runWithConfig
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=chunk-BWWY5KEF.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeRequest
|
|
3
|
+
} from "./chunk-2WPLXEKF.js";
|
|
4
|
+
|
|
5
|
+
// src/langwatch-api-model-providers.ts
|
|
6
|
+
async function listModelProviders() {
|
|
7
|
+
return makeRequest("GET", "/api/model-providers");
|
|
8
|
+
}
|
|
9
|
+
async function setModelProvider(params) {
|
|
10
|
+
const { provider, ...data } = params;
|
|
11
|
+
return makeRequest(
|
|
12
|
+
"PUT",
|
|
13
|
+
`/api/model-providers/${encodeURIComponent(provider)}`,
|
|
14
|
+
data
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
listModelProviders,
|
|
20
|
+
setModelProvider
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=chunk-CCWCIJJ3.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeRequest
|
|
3
|
+
} from "./chunk-2WPLXEKF.js";
|
|
4
|
+
|
|
5
|
+
// src/langwatch-api-simulation-runs.ts
|
|
6
|
+
async function listSimulationRuns(params) {
|
|
7
|
+
const query = new URLSearchParams();
|
|
8
|
+
if (params?.scenarioSetId) query.set("scenarioSetId", params.scenarioSetId);
|
|
9
|
+
if (params?.batchRunId) query.set("batchRunId", params.batchRunId);
|
|
10
|
+
if (params?.limit) query.set("limit", String(params.limit));
|
|
11
|
+
const qs = query.toString() ? `?${query}` : "";
|
|
12
|
+
return makeRequest("GET", `/api/simulation-runs${qs}`);
|
|
13
|
+
}
|
|
14
|
+
async function getSimulationRun(scenarioRunId) {
|
|
15
|
+
return makeRequest(
|
|
16
|
+
"GET",
|
|
17
|
+
`/api/simulation-runs/${encodeURIComponent(scenarioRunId)}`
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
listSimulationRuns,
|
|
23
|
+
getSimulationRun
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk-EGH5RPXM.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeRequest
|
|
3
|
+
} from "./chunk-2WPLXEKF.js";
|
|
4
|
+
|
|
5
|
+
// src/langwatch-api-dashboards.ts
|
|
6
|
+
async function listDashboards() {
|
|
7
|
+
return makeRequest("GET", "/api/dashboards");
|
|
8
|
+
}
|
|
9
|
+
async function getDashboard(id) {
|
|
10
|
+
return makeRequest(
|
|
11
|
+
"GET",
|
|
12
|
+
`/api/dashboards/${encodeURIComponent(id)}`
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
async function createDashboard(data) {
|
|
16
|
+
return makeRequest("POST", "/api/dashboards", data);
|
|
17
|
+
}
|
|
18
|
+
async function renameDashboard(id, data) {
|
|
19
|
+
return makeRequest(
|
|
20
|
+
"PATCH",
|
|
21
|
+
`/api/dashboards/${encodeURIComponent(id)}`,
|
|
22
|
+
data
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
async function deleteDashboard(id) {
|
|
26
|
+
return makeRequest(
|
|
27
|
+
"DELETE",
|
|
28
|
+
`/api/dashboards/${encodeURIComponent(id)}`
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
listDashboards,
|
|
34
|
+
getDashboard,
|
|
35
|
+
createDashboard,
|
|
36
|
+
renameDashboard,
|
|
37
|
+
deleteDashboard
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=chunk-EUQDVOSU.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeRequest
|
|
3
|
+
} from "./chunk-2WPLXEKF.js";
|
|
4
|
+
|
|
5
|
+
// src/langwatch-api-evaluators.ts
|
|
6
|
+
function getEvaluatorType(evaluator) {
|
|
7
|
+
return evaluator.config?.evaluatorType;
|
|
8
|
+
}
|
|
9
|
+
async function listEvaluators() {
|
|
10
|
+
return makeRequest("GET", "/api/evaluators");
|
|
11
|
+
}
|
|
12
|
+
async function getEvaluator(idOrSlug) {
|
|
13
|
+
return makeRequest(
|
|
14
|
+
"GET",
|
|
15
|
+
`/api/evaluators/${encodeURIComponent(idOrSlug)}`
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
async function createEvaluator(data) {
|
|
19
|
+
return makeRequest("POST", "/api/evaluators", data);
|
|
20
|
+
}
|
|
21
|
+
async function updateEvaluator(params) {
|
|
22
|
+
const { id, ...data } = params;
|
|
23
|
+
return makeRequest(
|
|
24
|
+
"PUT",
|
|
25
|
+
`/api/evaluators/${encodeURIComponent(id)}`,
|
|
26
|
+
data
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
async function deleteEvaluator(idOrSlug) {
|
|
30
|
+
return makeRequest(
|
|
31
|
+
"DELETE",
|
|
32
|
+
`/api/evaluators/${encodeURIComponent(idOrSlug)}`
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
getEvaluatorType,
|
|
38
|
+
listEvaluators,
|
|
39
|
+
getEvaluator,
|
|
40
|
+
createEvaluator,
|
|
41
|
+
updateEvaluator,
|
|
42
|
+
deleteEvaluator
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=chunk-HYMIWO3U.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeRequest
|
|
3
|
+
} from "./chunk-2WPLXEKF.js";
|
|
4
|
+
|
|
5
|
+
// src/langwatch-api-annotations.ts
|
|
6
|
+
async function listAnnotations() {
|
|
7
|
+
return makeRequest("GET", "/api/annotations");
|
|
8
|
+
}
|
|
9
|
+
async function getAnnotation(id) {
|
|
10
|
+
return makeRequest(
|
|
11
|
+
"GET",
|
|
12
|
+
`/api/annotations/${encodeURIComponent(id)}`
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
async function getAnnotationsByTrace(traceId) {
|
|
16
|
+
return makeRequest(
|
|
17
|
+
"GET",
|
|
18
|
+
`/api/annotations/trace/${encodeURIComponent(traceId)}`
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
async function createAnnotation(traceId, data) {
|
|
22
|
+
return makeRequest(
|
|
23
|
+
"POST",
|
|
24
|
+
`/api/annotations/trace/${encodeURIComponent(traceId)}`,
|
|
25
|
+
data
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
async function deleteAnnotation(id) {
|
|
29
|
+
return makeRequest(
|
|
30
|
+
"DELETE",
|
|
31
|
+
`/api/annotations/${encodeURIComponent(id)}`
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
listAnnotations,
|
|
37
|
+
getAnnotation,
|
|
38
|
+
getAnnotationsByTrace,
|
|
39
|
+
createAnnotation,
|
|
40
|
+
deleteAnnotation
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=chunk-IE4M5OGE.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeRequest
|
|
3
|
+
} from "./chunk-2WPLXEKF.js";
|
|
4
|
+
|
|
5
|
+
// src/langwatch-api-suites.ts
|
|
6
|
+
async function listSuites() {
|
|
7
|
+
return makeRequest("GET", "/api/suites");
|
|
8
|
+
}
|
|
9
|
+
async function getSuite(id) {
|
|
10
|
+
return makeRequest(
|
|
11
|
+
"GET",
|
|
12
|
+
`/api/suites/${encodeURIComponent(id)}`
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
async function createSuite(data) {
|
|
16
|
+
return makeRequest("POST", "/api/suites", data);
|
|
17
|
+
}
|
|
18
|
+
async function updateSuite(params) {
|
|
19
|
+
const { id, ...data } = params;
|
|
20
|
+
return makeRequest(
|
|
21
|
+
"PATCH",
|
|
22
|
+
`/api/suites/${encodeURIComponent(id)}`,
|
|
23
|
+
data
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
async function runSuite(id, idempotencyKey) {
|
|
27
|
+
return makeRequest(
|
|
28
|
+
"POST",
|
|
29
|
+
`/api/suites/${encodeURIComponent(id)}/run`,
|
|
30
|
+
{ idempotencyKey: idempotencyKey ?? `mcp-${Date.now()}-${Math.random().toString(36).slice(2)}` }
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
async function archiveSuite(id) {
|
|
34
|
+
return makeRequest(
|
|
35
|
+
"DELETE",
|
|
36
|
+
`/api/suites/${encodeURIComponent(id)}`
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
listSuites,
|
|
42
|
+
getSuite,
|
|
43
|
+
createSuite,
|
|
44
|
+
updateSuite,
|
|
45
|
+
runSuite,
|
|
46
|
+
archiveSuite
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=chunk-LUMEZEHL.js.map
|