@langwatch/server 3.8.0 → 3.9.0
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 +3 -3
- package/feature-map.json +4 -2
- package/langevals/evaluators/langevals/langevals_langevals/select_best_compare.py +165 -5
- package/langevals/evaluators/langevals/tests/test_select_best_compare.py +471 -9
- package/langevals/ts-integration/evaluators.generated.ts +83 -63
- package/langwatch/.env.example +7 -0
- package/langwatch/biome.jsonc +23 -0
- package/langwatch/dist/client/assets/AddAnnotationQueueDrawer-DKvtbwGG.js +2 -0
- package/langwatch/dist/client/assets/AddDatasetRecordDrawer-D1vOO9OS.js +6 -0
- package/langwatch/dist/client/assets/AddOrEditAnnotationScore-zxFsPi_K.js +2 -0
- package/langwatch/dist/client/assets/AddOrEditAnnotationScoreDrawer-soYSKpT_.js +2 -0
- package/langwatch/dist/client/assets/AddOrEditDatasetDrawer-BHJmgYGv.js +3 -0
- package/langwatch/dist/client/assets/AddParticipants-z6X3xaWh.js +2 -0
- package/langwatch/dist/client/assets/AgentHistoryDrawer-kb5K4X01.js +2 -0
- package/langwatch/dist/client/assets/AgentHttpEditorDrawer-Cf-aA1pn.js +5 -0
- package/langwatch/dist/client/assets/AgentListDrawer-z4OL5IVm.js +2 -0
- package/langwatch/dist/client/assets/AgentTypeSelectorDrawer-Ky7GOYHj.js +2 -0
- package/langwatch/dist/client/assets/AgentWorkflowEditorDrawer-CAszeo8y.js +2 -0
- package/langwatch/dist/client/assets/AgentWorkflowTargetEditorDrawer-DWrxkhIq.js +2 -0
- package/langwatch/dist/client/assets/AiGatewayLayout-BqznP5T2.js +2 -0
- package/langwatch/dist/client/assets/AnnotationsTable-C9n949u_.js +2 -0
- package/langwatch/dist/client/assets/AreaChart-PNFZHqkl.js +2 -0
- package/langwatch/dist/client/assets/AuthCard-D14g-b3Y.js +2 -0
- package/langwatch/dist/client/assets/AutomationDrawer-Cjo9egay.js +112 -0
- package/langwatch/dist/client/assets/BarChart-B23ShI5J.js +4 -0
- package/langwatch/dist/client/assets/BatchEvaluationSummary-CmkigWIn.js +2 -0
- package/langwatch/dist/client/assets/BudgetEditDrawer-nkQpQiY0.js +2 -0
- package/langwatch/dist/client/assets/CartesianChart-Ci1mTvgb.js +54 -0
- package/langwatch/dist/client/assets/CascadeArchiveDialog-BPqLe1Ai.js +2 -0
- package/langwatch/dist/client/assets/ChartTooltip-BMGa2HEK.js +2 -0
- package/langwatch/dist/client/assets/ChatWindow-BBsct-iS.js +5 -0
- package/langwatch/dist/client/assets/CodeEvaluatorEditorDrawer-DOqtlBKU.js +9 -0
- package/langwatch/dist/client/assets/CodexCodingDefaultsAsk--UfSQyVR.js +2 -0
- package/langwatch/dist/client/assets/ColorfulBlockIcons-zwwbjL9F.js +6 -0
- package/langwatch/dist/client/assets/ColumnTypeIcon-CZZ6Esh0.js +2 -0
- package/langwatch/dist/client/assets/ComparisonLeaderboardDrawer-ChH7KNaX.js +4 -0
- package/langwatch/dist/client/assets/ConfirmDialog-CWzCY4sN.js +2 -0
- package/langwatch/dist/client/assets/ContactSalesBlock-B3w2lKdE.js +2 -0
- package/langwatch/dist/client/assets/Conversation-BhvQmXJ-.js +2 -0
- package/langwatch/dist/client/assets/CopyInput-Qeb_2bgP.js +2 -0
- package/langwatch/dist/client/assets/CopyableInputWithPrefix-Bp04WBtM.js +2 -0
- package/langwatch/dist/client/assets/CreateProjectDrawer-Dg_yrbka.js +2 -0
- package/langwatch/dist/client/assets/CreateTeamDrawer-CLJnKmFE.js +2 -0
- package/langwatch/dist/client/assets/CustomGraph-C6j6slUs.js +2 -0
- package/langwatch/dist/client/assets/DashboardLayout-Cn5-9Ye2.js +96 -0
- package/langwatch/dist/client/assets/DashboardNameDrawer-BvGn3rsq.js +2 -0
- package/langwatch/dist/client/assets/DataPrivacyRuleDrawer-Wx7PJ_9S.js +2 -0
- package/langwatch/dist/client/assets/DatasetEditorTable-Ca3bmQrl.js +2 -0
- package/langwatch/dist/client/assets/DatasetPickerList-RZLjPQ2S.js +2 -0
- package/langwatch/dist/client/assets/DatasetPreviewTable-Ck22Wy4h.js +2 -0
- package/langwatch/dist/client/assets/DatasetSelector-BxeSHSDD.js +2 -0
- package/langwatch/dist/client/assets/DefaultModelOverrideDrawer-ncleLyuX.js +2 -0
- package/langwatch/dist/client/assets/DeleteConfirmationDialog-Br5m12kp.js +2 -0
- package/langwatch/dist/client/assets/DocsLinks-D-I122gH.js +2 -0
- package/langwatch/dist/client/assets/DynamicZodForm-BUbQBluG.js +2 -0
- package/langwatch/dist/client/assets/EditAutomationFilterDrawer-Bci7dGy6.js +3 -0
- package/langwatch/dist/client/assets/EditModelProviderDrawer-CdUQa5qQ.js +4 -0
- package/langwatch/dist/client/assets/EditProjectDrawer-DDMa3VNp.js +2 -0
- package/langwatch/dist/client/assets/EmojiPickerModal-BLskXRKS.js +3 -0
- package/langwatch/dist/client/assets/EnterpriseLockedSurface-CGy3NpuC.js +2 -0
- package/langwatch/dist/client/assets/ErrorBarContext-CUuF6tzC.js +2 -0
- package/langwatch/dist/client/assets/EvaluatorApiUsageDialog-Dw6JMkKa.js +107 -0
- package/langwatch/dist/client/assets/EvaluatorCategorySelectorDrawer-F1nHh-cP.js +2 -0
- package/langwatch/dist/client/assets/EvaluatorEditorDrawer-eotRSQPT.js +2 -0
- package/langwatch/dist/client/assets/EvaluatorEditorShared-BLZXXMFD.js +43 -0
- package/langwatch/dist/client/assets/EvaluatorHistoryDrawer-Bx_uZmkb.js +2 -0
- package/langwatch/dist/client/assets/EvaluatorListDrawer--2JYBA1w.js +2 -0
- package/langwatch/dist/client/assets/EvaluatorMappingsSection-DCqvgq8G.js +2 -0
- package/langwatch/dist/client/assets/EvaluatorSelection-BTMe6CCC.js +2 -0
- package/langwatch/dist/client/assets/EvaluatorSelectionBox-CDxYA37_.js +2 -0
- package/langwatch/dist/client/assets/EvaluatorTypeSelectorContent-BDgiQ_Gu.js +2 -0
- package/langwatch/dist/client/assets/EvaluatorTypeSelectorDrawer-D4HFeq77.js +2 -0
- package/langwatch/dist/client/assets/ExecutionState-xp8LG59p.js +2 -0
- package/langwatch/dist/client/assets/FeatureFlagsDrawer-DIplgYQy.js +2 -0
- package/langwatch/dist/client/assets/FieldInfoTooltip-C_hEtQpK.js +2 -0
- package/langwatch/dist/client/assets/FieldsFilters-Ci5mVooQ.js +2 -0
- package/langwatch/dist/client/assets/FilterDisplay-BKjP30tt.js +2 -0
- package/langwatch/dist/client/assets/FilterSidebar-Cgxbpfi7.js +2 -0
- package/langwatch/dist/client/assets/FormatMoney-LZE9c_pf.js +2 -0
- package/langwatch/dist/client/assets/FoundryDrawer-DjVyu6Ww.js +2 -0
- package/langwatch/dist/client/assets/FullLogo-DRBt8v39.js +2 -0
- package/langwatch/dist/client/assets/GovernanceLayout-Baar1Fc8.js +2 -0
- package/langwatch/dist/client/assets/GraphsLayout-RNsRoPhs.js +2 -0
- package/langwatch/dist/client/assets/GroupBindingInputRow-BxvXd1EU.js +2 -0
- package/langwatch/dist/client/assets/GuardrailsDrawer-BtsfIXzD.js +91 -0
- package/langwatch/dist/client/assets/History-B3CO9rUC.js +17 -0
- package/langwatch/dist/client/assets/HorizontalFormControl-CpxShF8O.js +2 -0
- package/langwatch/dist/client/assets/HoverableBigText-BMBnTTnr.js +2 -0
- package/langwatch/dist/client/assets/InstallCliCard-DO5HE9Zk.js +2 -0
- package/langwatch/dist/client/assets/IntegratePaneShell-Bc7i3AU3.js +8 -0
- package/langwatch/dist/client/assets/InviteMemberDrawer-CiQbGDVl.js +2 -0
- package/langwatch/dist/client/assets/IsolatedErrorBoundary-QK1gsCee.js +2 -0
- package/langwatch/dist/client/assets/LLMModelCostDrawer-K4uPc99h.js +2 -0
- package/langwatch/dist/client/assets/LangyContextTarget-Dxr919ue.js +2 -0
- package/langwatch/dist/client/assets/LegacyTracesDeprecationBanner-CnBBcfON.js +2 -0
- package/langwatch/dist/client/assets/Legend-C-o-ebW-.js +6 -0
- package/langwatch/dist/client/assets/Line-CbuF_DU9.js +2 -0
- package/langwatch/dist/client/assets/LineChart-CjG7MhLF.js +2 -0
- package/langwatch/dist/client/assets/ListTable-Dq11zhPy.js +2 -0
- package/langwatch/dist/client/assets/LoadingScreen-BRa1kl7f.js +2 -0
- package/langwatch/dist/client/assets/Markdown-Cip8Rj5C.js +35 -0
- package/langwatch/dist/client/assets/MenuLink-CEEzPpsg.js +2 -0
- package/langwatch/dist/client/assets/MessageCard-Nbu21sIo.js +2 -0
- package/langwatch/dist/client/assets/MetadataTag-CQmOL4su.js +5 -0
- package/langwatch/dist/client/assets/ModelProviderCustomModelInput-s8Z1JIfQ.js +2 -0
- package/langwatch/dist/client/assets/ModelProviderScreen-BkZVsCiO.js +2 -0
- package/langwatch/dist/client/assets/ModelSelector-BjEx9IlF.js +2 -0
- package/langwatch/dist/client/assets/MyLayout-Dr6t6Ogu.js +2 -0
- package/langwatch/dist/client/assets/NavigationFooter-GfOzirbT.js +2 -0
- package/langwatch/dist/client/assets/NewWorkflowForm-uqnhwRpZ.js +2 -0
- package/langwatch/dist/client/assets/NoDataInfoBlock-Busjhz63.js +2 -0
- package/langwatch/dist/client/assets/OnboardingContainer-BGhio01s.js +2 -0
- package/langwatch/dist/client/assets/OnlineEvaluationDrawer-DyCVUUmz.js +2 -0
- package/langwatch/dist/client/assets/OpsPageShell-GqOT9Ezv.js +2 -0
- package/langwatch/dist/client/assets/OttlEditor-BYyg1quG.js +3 -0
- package/langwatch/dist/client/assets/OverflownText-q6WIx911.js +2 -0
- package/langwatch/dist/client/assets/ProjectAvatar-B0tbfKzY.js +43 -0
- package/langwatch/dist/client/assets/ProjectLangyLayout-Du3nxtBV.js +82 -0
- package/langwatch/dist/client/assets/PromptEditorDrawer-DeL8XgdG.js +2 -0
- package/langwatch/dist/client/assets/PromptListDrawer-y4bmNt4t.js +2 -0
- package/langwatch/dist/client/assets/PropertySectionTitle-CK55WvKi.js +37 -0
- package/langwatch/dist/client/assets/ProviderModelSelector-B-0vpQ2t.js +2 -0
- package/langwatch/dist/client/assets/ProviderScopeChips-DN3rtvAE.js +2 -0
- package/langwatch/dist/client/assets/PushToCopiesDialog-Ry_M3FuH.js +2 -0
- package/langwatch/dist/client/assets/ReferenceDot-DrNtDSrg.js +2 -0
- package/langwatch/dist/client/assets/RenderInputOutput-DqsCnspr.js +261 -0
- package/langwatch/dist/client/assets/ScatterChart-jarSkvrF.js +2 -0
- package/langwatch/dist/client/assets/ScenarioFormDrawer-DvJcYmkQ.js +2 -0
- package/langwatch/dist/client/assets/ScenarioInputMappingSection-BewVLFCZ.js +2 -0
- package/langwatch/dist/client/assets/ScenarioRunDetailDrawer-BAPna8ym.js +3 -0
- package/langwatch/dist/client/assets/ScopeChipPicker-pQ061i-c.js +2 -0
- package/langwatch/dist/client/assets/SearchInput-DH_qIhwi.js +2 -0
- package/langwatch/dist/client/assets/SectionNavigationLayout-DwPBnqYj.js +2 -0
- package/langwatch/dist/client/assets/SelectDatasetDrawer-8MPCEZID.js +2 -0
- package/langwatch/dist/client/assets/SelectionActionBar-C2SOsiow.js +2 -0
- package/langwatch/dist/client/assets/SeriesFilterDrawer-d5DYEKTZ.js +2 -0
- package/langwatch/dist/client/assets/SettingsLayout-ZI47ZjuT.js +2 -0
- package/langwatch/dist/client/assets/SetupWithAgentButton-CNTb3Avj.js +4 -0
- package/langwatch/dist/client/assets/ShikiCommandBox-u0WEsz_9.js +5 -0
- package/langwatch/dist/client/assets/SpanDetails-L_YT0nxH.js +3 -0
- package/langwatch/dist/client/assets/SubscriptionPage-CaUbKJjG.js +2 -0
- package/langwatch/dist/client/assets/SuiteFormDrawer-BjUQdKq8.js +2 -0
- package/langwatch/dist/client/assets/Symbols-R6sphPWl.js +2 -0
- package/langwatch/dist/client/assets/TabButton-8Oc9UYh8.js +3 -0
- package/langwatch/dist/client/assets/TableCell-Ci8ylzki.js +2 -0
- package/langwatch/dist/client/assets/TargetTypeSelectorDrawer-DSKFRtdD.js +2 -0
- package/langwatch/dist/client/assets/TeamForm-CL9ycvq0.js +2 -0
- package/langwatch/dist/client/assets/TeamUserRoleField-D0ZTlKiH.js +2 -0
- package/langwatch/dist/client/assets/TraceDetails-JolY6sXJ.js +9 -0
- package/langwatch/dist/client/assets/TraceDetailsDrawer-lgPzHJ3L.js +2 -0
- package/langwatch/dist/client/assets/TraceIdPeek-DDi0ChdF.js +2 -0
- package/langwatch/dist/client/assets/TracesMapping-BPXT_-h4.js +2 -0
- package/langwatch/dist/client/assets/UpgradeModalContent-DmGd0n65.js +2 -0
- package/langwatch/dist/client/assets/UploadCSVDrawer-haYFZH65.js +3 -0
- package/langwatch/dist/client/assets/VariablesSection-DW_-pHw8.js +2 -0
- package/langwatch/dist/client/assets/VersionBadge-BrsZ4NP1.js +2 -0
- package/langwatch/dist/client/assets/ViaClaudeDesktopScreen-B9tl6d9Q.js +1161 -0
- package/langwatch/dist/client/assets/ViewAutomationDrawer-DliGiKaC.js +2 -0
- package/langwatch/dist/client/assets/VirtualKeySecretReveal-B9QMNIxJ.js +54 -0
- package/langwatch/dist/client/assets/WelcomeLayout-DZ1ue0he.js +2 -0
- package/langwatch/dist/client/assets/WithFeatureFlagGuard-CgkIIt3_.js +2 -0
- package/langwatch/dist/client/assets/WithPermissionGuard-Da_hdEdq.js +2 -0
- package/langwatch/dist/client/assets/WorkflowCard-C_ClnTV_.js +2 -0
- package/langwatch/dist/client/assets/WorkflowSelectorForEvaluatorDrawer-DozYRazW.js +2 -0
- package/langwatch/dist/client/assets/_...path_-Da4obdgF.js +2 -0
- package/langwatch/dist/client/assets/_Uint8Array-BKsS4AYJ.js +2 -0
- package/langwatch/dist/client/assets/__...path__-hjRUlcmj.js +22 -0
- package/langwatch/dist/client/assets/_baseAssignValue-B0IP5NGP.js +2 -0
- package/langwatch/dist/client/assets/_baseClone-DWP1OuEe.js +2 -0
- package/langwatch/dist/client/assets/_baseEach-Bv6waMUN.js +2 -0
- package/langwatch/dist/client/assets/_baseFor-K5aTWdeA.js +2 -0
- package/langwatch/dist/client/assets/_experiment_-Cv2h4AYK.js +2 -0
- package/langwatch/dist/client/assets/_id_-BoubOQoS.js +2 -0
- package/langwatch/dist/client/assets/_id_-BuzJEIUf.js +2 -0
- package/langwatch/dist/client/assets/_id_-BzLlrR7z.js +2 -0
- package/langwatch/dist/client/assets/_id_-DAzjJ7AY.js +2 -0
- package/langwatch/dist/client/assets/_id_-Dc2UAWAO.js +2 -0
- package/langwatch/dist/client/assets/_id_-DwutdLKk.js +2 -0
- package/langwatch/dist/client/assets/_id_-H7-5DI5r.js +2 -0
- package/langwatch/dist/client/assets/_project_-DTuunSJZ.js +8 -0
- package/langwatch/dist/client/assets/_runId_-BGhwmwQj.js +7 -0
- package/langwatch/dist/client/assets/_shell-ChQAHWWX.js +2 -0
- package/langwatch/dist/client/assets/_slug_-D6Y2wsW5.js +2 -0
- package/langwatch/dist/client/assets/_slug_-DLKkXVG8.js +2 -0
- package/langwatch/dist/client/assets/_slug_-yLo6E4BE.js +17 -0
- package/langwatch/dist/client/assets/_team_-TUptH6wK.js +2 -0
- package/langwatch/dist/client/assets/_workflow_-B_flNNON.js +3 -0
- package/langwatch/dist/client/assets/_workflow_-DUyBeEF1.js +25 -0
- package/langwatch/dist/client/assets/accept-BtE8pbrP.js +2 -0
- package/langwatch/dist/client/assets/activity-BDNvBEBL.js +1 -0
- package/langwatch/dist/client/assets/agents-CZnWSlhu.js +2 -0
- package/langwatch/dist/client/assets/alerts-BDNvBEBL.js +1 -0
- package/langwatch/dist/client/assets/all-in7z_yGY.js +2 -0
- package/langwatch/dist/client/assets/analytics-C8m2qboV.js +2 -0
- package/langwatch/dist/client/assets/annotation-scores-hmT53w46.js +2 -0
- package/langwatch/dist/client/assets/annotations-DwouO48Z.js +2 -0
- package/langwatch/dist/client/assets/anomaly-rules-DoJdIoCt.js +2 -0
- package/langwatch/dist/client/assets/api-keys-CykxAxvG.js +4 -0
- package/langwatch/dist/client/assets/asaplangy-D3J00Q-Z.js +5 -0
- package/langwatch/dist/client/assets/audit-log-Dy4vcEeJ.js +2 -0
- package/langwatch/dist/client/assets/auth-IqMSC5k1.js +2 -0
- package/langwatch/dist/client/assets/authentication-BqVl7Fh-.js +2 -0
- package/langwatch/dist/client/assets/authorize-BGMc1Gzv.js +2 -0
- package/langwatch/dist/client/assets/authorize-DhHzBVUd.js +2 -0
- package/langwatch/dist/client/assets/automations-BDNvBEBL.js +1 -0
- package/langwatch/dist/client/assets/automations-BhzNESFp.js +2 -0
- package/langwatch/dist/client/assets/billing-plans-D_IT1cHz.js +2 -0
- package/langwatch/dist/client/assets/blank-Ct2wtHyX.js +2 -0
- package/langwatch/dist/client/assets/blobs-Dwi1OImQ.js +2 -0
- package/langwatch/dist/client/assets/blockDiagram-677ZJIJ3-CnAsMlS_.js +133 -0
- package/langwatch/dist/client/assets/budgets-Cn5gXQK_.js +3 -0
- package/langwatch/dist/client/assets/bug-reports-feRha8NA.js +2 -0
- package/langwatch/dist/client/assets/cache-rules-T0g7jfVv.js +2 -0
- package/langwatch/dist/client/assets/choose-D7SJAjkq.js +2 -0
- package/langwatch/dist/client/assets/chunk-EX3LRPZG-DkekrL-i.js +232 -0
- package/langwatch/dist/client/assets/chunk-FWX5IMBZ-2uc49Oqf.js +3 -0
- package/langwatch/dist/client/assets/chunk-PUDLZKDR-CdFvlX4m.js +157 -0
- package/langwatch/dist/client/assets/chunk-RYQCIY6F-BLUBc3em.js +2 -0
- package/langwatch/dist/client/assets/chunk-V7JOEXUC-daLm26hJ.js +207 -0
- package/langwatch/dist/client/assets/classDiagram-OUVF2IWQ-CDA8LHAw.js +2 -0
- package/langwatch/dist/client/assets/classDiagram-v2-EOCWNBFH-CDA8LHAw.js +2 -0
- package/langwatch/dist/client/assets/clsx-CjueKrWZ.js +2 -0
- package/langwatch/dist/client/assets/codeAgentConfig-BGKq9uCt.js +7 -0
- package/langwatch/dist/client/assets/codingDefaultSync-BHSxIX3Y.js +2 -0
- package/langwatch/dist/client/assets/configure-CrBmyV7I.js +4 -0
- package/langwatch/dist/client/assets/constants-CDt5HyiB.js +2 -0
- package/langwatch/dist/client/assets/custom-wRFdLdR4.js +12 -0
- package/langwatch/dist/client/assets/custom_evaluator-C4ikBFuX.js +31 -0
- package/langwatch/dist/client/assets/dagre-VKFMJZFB-BElJnuGp.js +5 -0
- package/langwatch/dist/client/assets/dagre-VMur7wh6.js +2 -0
- package/langwatch/dist/client/assets/data-privacy-DAIYO4AS.js +2 -0
- package/langwatch/dist/client/assets/data-retention-6spK_HnV.js +2 -0
- package/langwatch/dist/client/assets/datasets-_6-oF4ZW.js +2 -0
- package/langwatch/dist/client/assets/debounce-CS9Z04io.js +2 -0
- package/langwatch/dist/client/assets/defaultModelState-B2tL23ua.js +2 -0
- package/langwatch/dist/client/assets/dejaview-Cde-wWV4.js +2 -0
- package/langwatch/dist/client/assets/departments-Cm-0ZxEt.js +2 -0
- package/langwatch/dist/client/assets/devices-DmiWzGY2.js +2 -0
- package/langwatch/dist/client/assets/dist-C4xeXVRv.js +6 -0
- package/langwatch/dist/client/assets/drawerFromUrl-CKr5SifD.js +2 -0
- package/langwatch/dist/client/assets/edit-CLmkWTOM.js +62 -0
- package/langwatch/dist/client/assets/email-suppressions-cqwH0a9N.js +2 -0
- package/langwatch/dist/client/assets/erDiagram-Q63AITRT-Byy32QYy.js +86 -0
- package/langwatch/dist/client/assets/error-D8QCVS4R.js +2 -0
- package/langwatch/dist/client/assets/errors-mlatPkMI.js +2 -0
- package/langwatch/dist/client/assets/evaluations-BBoYdpZy.js +2 -0
- package/langwatch/dist/client/assets/evaluations-DhzXchFj.js +2 -0
- package/langwatch/dist/client/assets/evaluators-BtHslgaT.js +2 -0
- package/langwatch/dist/client/assets/evaluators-_EDCn-tQ.js +148 -0
- package/langwatch/dist/client/assets/experiments-CffarahA.js +1 -0
- package/langwatch/dist/client/assets/feature-flags-mcBTRF0E.js +2 -0
- package/langwatch/dist/client/assets/fetchSSE-CnJPAkno.js +3 -0
- package/langwatch/dist/client/assets/fieldset-kmG3NTVs.js +2 -0
- package/langwatch/dist/client/assets/flowDiagram-23GEKE2U-CY9NG0NN.js +1 -0
- package/langwatch/dist/client/assets/forgot-password-wo5Sna-0.js +2 -0
- package/langwatch/dist/client/assets/formatMoney-ClmqgvaY.js +2 -0
- package/langwatch/dist/client/assets/formatTargetOutput-DXvqMkYJ.js +2 -0
- package/langwatch/dist/client/assets/foundry-CfvGgfP0.js +477 -0
- package/langwatch/dist/client/assets/gateway-Be0EsD57.js +2 -0
- package/langwatch/dist/client/assets/getEvaluator-D2EjIa3G.js +2 -0
- package/langwatch/dist/client/assets/getRadiusAndStrokeWidthFromDot-D2oUP3Tn.js +2 -0
- package/langwatch/dist/client/assets/governance-YZL-Q4Vy.js +2 -0
- package/langwatch/dist/client/assets/graphlib-DsLTzvlk.js +2 -0
- package/langwatch/dist/client/assets/grid-MxZhegzw.js +2 -0
- package/langwatch/dist/client/assets/groups-BmusUt3C.js +2 -0
- package/langwatch/dist/client/assets/guardrails-DAx8mDop.js +2 -0
- package/langwatch/dist/client/assets/handled-error-DbmvFmFF.js +2 -0
- package/langwatch/dist/client/assets/http-C64lOZI7.js +7 -0
- package/langwatch/dist/client/assets/identifierUtils-C2FgAR6z.js +2 -0
- package/langwatch/dist/client/assets/immer-DImI3Uq2.js +14 -0
- package/langwatch/dist/client/assets/index-8SbDirJv.js +68 -0
- package/langwatch/dist/client/assets/ingestion-source-detail-PQbeRniA.js +19 -0
- package/langwatch/dist/client/assets/ingestion-sources-CCyiAKHP.js +12 -0
- package/langwatch/dist/client/assets/integrations-WSl7N8v9.js +2 -0
- package/langwatch/dist/client/assets/isArrayLikeObject-DQ6J5Gh8.js +2 -0
- package/langwatch/dist/client/assets/isSymbol-DQQCRrSw.js +2 -0
- package/langwatch/dist/client/assets/langyHomeSuggestions-czH603Eu.js +2 -0
- package/langwatch/dist/client/assets/license-BXfbZQgG.js +2 -0
- package/langwatch/dist/client/assets/licenseStatusUtils-CeEgqpQ1.js +2 -0
- package/langwatch/dist/client/assets/lu-BSZWBZXU.js +2 -0
- package/langwatch/dist/client/assets/map-DUpZ7PrO.js +2 -0
- package/langwatch/dist/client/assets/mappingValidation-C7knTdfD.js +2 -0
- package/langwatch/dist/client/assets/me-DbCM2fI8.js +7 -0
- package/langwatch/dist/client/assets/me-DgXzEkaD.js +2 -0
- package/langwatch/dist/client/assets/members-CNILhgB4.js +2 -0
- package/langwatch/dist/client/assets/mermaid.core-1LNrQSiZ.js +12 -0
- package/langwatch/dist/client/assets/messages-CIoUj-2S.js +2 -0
- package/langwatch/dist/client/assets/metrics-Ba4ghWyR.js +2 -0
- package/langwatch/dist/client/assets/mindmap-definition-LN4V7U3C-BsK9qdX4.js +97 -0
- package/langwatch/dist/client/assets/model-costs-Cmo-7iNN.js +2 -0
- package/langwatch/dist/client/assets/model-providers-DNeQW-T1.js +2 -0
- package/langwatch/dist/client/assets/modelProviderHelpers-BgYFTBND.js +2 -0
- package/langwatch/dist/client/assets/my-queue-DAyfQ6lp.js +2 -0
- package/langwatch/dist/client/assets/normalizeComparison-QGQpERT7.js +2 -0
- package/langwatch/dist/client/assets/not-found-BFkr8OS7.js +2 -0
- package/langwatch/dist/client/assets/now-BWCCq_PO.js +2 -0
- package/langwatch/dist/client/assets/onboarding-DAAoh3gE.js +2 -0
- package/langwatch/dist/client/assets/online-evaluations-DbC0C3ct.js +2 -0
- package/langwatch/dist/client/assets/ops-BnGgY3gP.js +2 -0
- package/langwatch/dist/client/assets/organizations-D-hWxeYL.js +2 -0
- package/langwatch/dist/client/assets/pages-BthWVZpr.js +2 -0
- package/langwatch/dist/client/assets/persistence-NkzSPIBC.js +2 -0
- package/langwatch/dist/client/assets/personalProject-C9vU_vdl.js +2 -0
- package/langwatch/dist/client/assets/plans-B_rx4bLE.js +2 -0
- package/langwatch/dist/client/assets/preconditionFieldUtils-ryKgG9T1.js +2 -0
- package/langwatch/dist/client/assets/product-BuY5Xwg3.js +2 -0
- package/langwatch/dist/client/assets/project-C2NjfKL8.js +2 -0
- package/langwatch/dist/client/assets/projections-rLpLV9w3.js +2 -0
- package/langwatch/dist/client/assets/projects-BF0LrAID.js +2 -0
- package/langwatch/dist/client/assets/promptHandle-BT-5THDj.js +2 -0
- package/langwatch/dist/client/assets/prompts-BHe5aLJx.js +8 -0
- package/langwatch/dist/client/assets/radio-group-BPt-WSZX.js +2 -0
- package/langwatch/dist/client/assets/registry-olFQKglt.js +2 -0
- package/langwatch/dist/client/assets/reports-BLYN6Q1s.js +2 -0
- package/langwatch/dist/client/assets/request-DFzKYavU.js +2 -0
- package/langwatch/dist/client/assets/requirementDiagram-TGXJPOKE-CRtGWC_J.js +85 -0
- package/langwatch/dist/client/assets/reset-password-DYZspdMQ.js +2 -0
- package/langwatch/dist/client/assets/role-bindings-FmulBsng.js +2 -0
- package/langwatch/dist/client/assets/roles-RLhR-aqL.js +2 -0
- package/langwatch/dist/client/assets/routing-policies-ljceihkc.js +5 -0
- package/langwatch/dist/client/assets/scenarios-BQqYDDZG.js +2 -0
- package/langwatch/dist/client/assets/scheduler-BFnKJjAw.js +2 -0
- package/langwatch/dist/client/assets/schedules-BDNvBEBL.js +1 -0
- package/langwatch/dist/client/assets/scim-Bmka9JwE.js +2 -0
- package/langwatch/dist/client/assets/seatTypeCopy-fhsCX-T3.js +2 -0
- package/langwatch/dist/client/assets/secrets-Cwr6m0Ec.js +2 -0
- package/langwatch/dist/client/assets/segment-group-BktqF-NE.js +2 -0
- package/langwatch/dist/client/assets/segmented-control-Dux7mG6V.js +2 -0
- package/langwatch/dist/client/assets/select-BvA110t-.js +2 -0
- package/langwatch/dist/client/assets/send-KqbwnHm5.js +2 -0
- package/langwatch/dist/client/assets/sequenceView-CXTCS8lF.js +5 -0
- package/langwatch/dist/client/assets/seriesOptions-B04NlY20.js +1015 -0
- package/langwatch/dist/client/assets/settings-U355L_I1.js +2 -0
- package/langwatch/dist/client/assets/setup-BlSoABYV.js +2 -0
- package/langwatch/dist/client/assets/shikiAdapter-Ctbe7cQu.js +3 -0
- package/langwatch/dist/client/assets/showSuiteRunError-D2fez5Ub.js +2 -0
- package/langwatch/dist/client/assets/signin-DyT1qLoq.js +2 -0
- package/langwatch/dist/client/assets/signup-D8m3PZ3b.js +2 -0
- package/langwatch/dist/client/assets/stateDiagram-2N3HPSRC-iaTfadDT.js +2 -0
- package/langwatch/dist/client/assets/stateDiagram-v2-6OUMAXLB-DH-TUWs1.js +2 -0
- package/langwatch/dist/client/assets/subscription-_ypR9RT2.js +3 -0
- package/langwatch/dist/client/assets/subscriptions-BRPlrnsz.js +2 -0
- package/langwatch/dist/client/assets/suggestionUI-BvF9IL3n.js +106 -0
- package/langwatch/dist/client/assets/swimlanes-5IMT3BWC-DT3qutmi.js +3 -0
- package/langwatch/dist/client/assets/swimlanesDiagram-G3AALYLV-Chcqm6v8.js +9 -0
- package/langwatch/dist/client/assets/switch-BZp2DIfW.js +2 -0
- package/langwatch/dist/client/assets/switch-C1DNHB2v.js +2 -0
- package/langwatch/dist/client/assets/tabs-B6CQXTUQ.js +2 -0
- package/langwatch/dist/client/assets/teams-B3Yc0LtS.js +2 -0
- package/langwatch/dist/client/assets/teams-Df3DGQGZ.js +2 -0
- package/langwatch/dist/client/assets/tool-catalog-CpVqJ_Dp.js +7 -0
- package/langwatch/dist/client/assets/toolIcons-CwYXl2Eu.js +2 -0
- package/langwatch/dist/client/assets/tooltip-CM-lMDNU.js +2 -0
- package/langwatch/dist/client/assets/topic-clustering-DEtDEXOU.js +2 -0
- package/langwatch/dist/client/assets/topics-BGSBPvH8.js +2 -0
- package/langwatch/dist/client/assets/traceStore-C-SeEWpA.js +55 -0
- package/langwatch/dist/client/assets/traces-hMC5nfWE.js +289 -0
- package/langwatch/dist/client/assets/tracesMapping-CJhNJ9Ej.js +3 -0
- package/langwatch/dist/client/assets/tracking-in5OR8uP.js +2 -0
- package/langwatch/dist/client/assets/types-DNh2n8ZE.js +2 -0
- package/langwatch/dist/client/assets/types-OZJZgbcd.js +2 -0
- package/langwatch/dist/client/assets/types-nw9Z9F-v.js +2 -0
- package/langwatch/dist/client/assets/undo-2-CYjzz3Fj.js +2 -0
- package/langwatch/dist/client/assets/usage-BMXYHJUH.js +2 -0
- package/langwatch/dist/client/assets/usage-Da6wBDdP.js +2 -0
- package/langwatch/dist/client/assets/use-generic-onboarding-flow-eie3NRF5.js +2 -0
- package/langwatch/dist/client/assets/useActivePlan-Dsa3BYxd.js +2 -0
- package/langwatch/dist/client/assets/useAllPromptsForProject-BS-h_uSZ.js +2 -0
- package/langwatch/dist/client/assets/useAnnotationQueues-BMo2kZ_n.js +2 -0
- package/langwatch/dist/client/assets/useAvailableEvaluators-DkZ2Yt1F.js +2 -0
- package/langwatch/dist/client/assets/useCyclingVerb-BTWaxKR2.js +2 -0
- package/langwatch/dist/client/assets/useDepartmentColumn-xoZ52lPP.js +2 -0
- package/langwatch/dist/client/assets/useEvaluationsV3Store-CjI63SqB.js +2 -0
- package/langwatch/dist/client/assets/useExportTraces-kA2TFkjy.js +2 -0
- package/langwatch/dist/client/assets/useFeatureFlag-BjAcqOFH.js +2 -0
- package/langwatch/dist/client/assets/usePersonalContext-BGjy_Vrg.js +2 -0
- package/langwatch/dist/client/assets/useProjectSpanNames-DV-N8Iqc.js +2 -0
- package/langwatch/dist/client/assets/useProjectsForCopy-C63wLMNr.js +2 -0
- package/langwatch/dist/client/assets/useRunViaApiTabs-DMsq4RV1.js +50 -0
- package/langwatch/dist/client/assets/useShowLangy-C1pPUZqz.js +2 -0
- package/langwatch/dist/client/assets/useSimulationUpdateListener-ufWGuGhO.js +2 -0
- package/langwatch/dist/client/assets/useTargetName-DRCsNovZ.js +2 -0
- package/langwatch/dist/client/assets/useTargetNameMap-2sQCSyzN.js +2 -0
- package/langwatch/dist/client/assets/useTraceDetailsDrawer-CWSKPTh_.js +2 -0
- package/langwatch/dist/client/assets/useTraceUpdateListener-DqLF7KuU.js +2 -0
- package/langwatch/dist/client/assets/useUrlScopeFilter-BmRsU3rU.js +2 -0
- package/langwatch/dist/client/assets/useVariantMetrics-CK9aOmIb.js +2 -0
- package/langwatch/dist/client/assets/useWorkflowStore-CWWkoMW1.js +8 -0
- package/langwatch/dist/client/assets/users-B9jauEWz.js +2 -0
- package/langwatch/dist/client/assets/users-C8IaWy9-.js +2 -0
- package/langwatch/dist/client/assets/users-DIbzKO8Q.js +2 -0
- package/langwatch/dist/client/assets/v3-C9Ud_O3k.js +2 -0
- package/langwatch/dist/client/assets/variables-Dox25KUK.js +396 -0
- package/langwatch/dist/client/assets/viewStore-BCIvcW8n.js +2 -0
- package/langwatch/dist/client/assets/virtual-keys-D-qkAFBv.js +2 -0
- package/langwatch/dist/client/assets/welcome-CnjW7kg3.js +16 -0
- package/langwatch/dist/client/assets/wizard-CUCaNag_.js +2 -0
- package/langwatch/dist/client/assets/workbench-N1DutXtL.js +2 -0
- package/langwatch/dist/client/assets/workflows-D2XRYWpS.js +3 -0
- package/langwatch/dist/client/assets/wrap-D_XqGHIU.js +2 -0
- package/langwatch/dist/client/index.html +4 -4
- package/langwatch/dist/scenario-child-process.js +7 -0
- package/langwatch/e2e/auth-regression/better-auth-sso-smoketest.ts +72 -0
- package/langwatch/ee/LICENSE.md +52 -18
- package/langwatch/ee/README.md +15 -6
- package/langwatch/ee/admin/routes/__tests__/admin.integration.test.ts +1 -1
- package/langwatch/ee/admin/routes/admin.ts +1 -1
- package/langwatch/ee/audit-log/auditLog.ts +51 -0
- package/langwatch/ee/billing/__tests__/planLimits.unit.test.ts +6 -6
- package/langwatch/ee/billing/__tests__/planProvider.unit.test.ts +21 -33
- package/langwatch/ee/billing/__tests__/subscription.service.unit.test.ts +1 -0
- package/langwatch/ee/billing/__tests__/usage-limit.service.unit.test.ts +17 -17
- package/langwatch/ee/billing/planLimits.ts +1 -37
- package/langwatch/ee/billing/planProvider.ts +0 -13
- package/langwatch/ee/governance/reactors/__tests__/gatewayBudgetSync.reactor.unit.test.ts +39 -0
- package/langwatch/ee/governance/reactors/__tests__/governanceKpisSync.reactor.unit.test.ts +33 -0
- package/langwatch/ee/governance/reactors/__tests__/governanceOcsfEventsSync.reactor.unit.test.ts +33 -0
- package/langwatch/ee/governance/reactors/__tests__/governanceReactorsPreEnqueueGate.unit.test.ts +243 -0
- package/langwatch/ee/governance/reactors/gatewayBudgetSync.reactor.ts +391 -185
- package/langwatch/ee/governance/reactors/governanceKpisSync.reactor.ts +14 -7
- package/langwatch/ee/governance/reactors/governanceOcsfEventsSync.reactor.ts +97 -81
- package/langwatch/ee/governance/services/governanceAttributeKeys.ts +17 -0
- package/langwatch/ee/licensing/__tests__/constants.unit.test.ts +4 -6
- package/langwatch/ee/licensing/__tests__/defaults.unit.test.ts +63 -86
- package/langwatch/ee/licensing/__tests__/fixtures/testLicenses.ts +18 -0
- package/langwatch/ee/licensing/__tests__/licenseGenerationService.unit.test.ts +52 -16
- package/langwatch/ee/licensing/__tests__/licenseHandler.integration.test.ts +199 -15
- package/langwatch/ee/licensing/__tests__/mintedPlan.unit.test.ts +110 -0
- package/langwatch/ee/licensing/__tests__/planMapping.unit.test.ts +4 -29
- package/langwatch/ee/licensing/__tests__/planTemplates.unit.test.ts +0 -61
- package/langwatch/ee/licensing/__tests__/validation.unit.test.ts +69 -0
- package/langwatch/ee/licensing/constants.ts +11 -59
- package/langwatch/ee/licensing/defaults.ts +20 -32
- package/langwatch/ee/licensing/licenseGenerationService.ts +6 -19
- package/langwatch/ee/licensing/licenseHandler.ts +109 -92
- package/langwatch/ee/licensing/mintedPlan.ts +57 -0
- package/langwatch/ee/licensing/ossBaselineFloor.ts +45 -0
- package/langwatch/ee/licensing/planInfo.ts +0 -13
- package/langwatch/ee/licensing/planMapping.ts +0 -13
- package/langwatch/ee/licensing/planTemplates.ts +8 -42
- package/langwatch/ee/licensing/types.ts +24 -29
- package/langwatch/ee/licensing/validation.ts +13 -1
- package/langwatch/ee/scim/__tests__/scim-token.service.unit.test.ts +110 -0
- package/langwatch/ee/scim/__tests__/scim.costCenter.integration.test.ts +171 -0
- package/langwatch/ee/scim/__tests__/scim.service.unit.test.ts +415 -0
- package/langwatch/ee/scim/routes.ts +585 -0
- package/langwatch/ee/scim/scim-group.service.ts +465 -0
- package/langwatch/ee/scim/scim-role-resolver.ts +48 -0
- package/langwatch/ee/scim/scim-role-resolver.unit.test.ts +93 -0
- package/langwatch/ee/scim/scim-token.service.ts +71 -0
- package/langwatch/ee/scim/scim.service.ts +554 -0
- package/langwatch/ee/scim/scim.types.ts +149 -0
- package/langwatch/ee/scim/webhooks.ts +170 -0
- package/langwatch/ee/sso/__tests__/fallbackName.test.ts +142 -0
- package/langwatch/ee/sso/__tests__/matching.test.ts +126 -0
- package/langwatch/ee/sso/__tests__/parseIssuerUrl.test.ts +59 -0
- package/langwatch/ee/sso/__tests__/sso-gate.test.ts +459 -0
- package/langwatch/ee/sso/__tests__/sso-license.repository.test.ts +53 -0
- package/langwatch/ee/sso/__tests__/ssoPathGate.test.ts +182 -0
- package/langwatch/ee/sso/__tests__/ssoRouteTableCanary.test.ts +186 -0
- package/langwatch/ee/sso/matching.ts +48 -0
- package/langwatch/ee/sso/providers.ts +271 -0
- package/langwatch/ee/sso/sso-gate.ts +294 -0
- package/langwatch/ee/sso/sso-license.repository.ts +47 -0
- package/langwatch/ee/sso/ssoPathGate.ts +127 -0
- package/langwatch/package.json +1 -1
- package/langwatch/prisma/migrations/20260802120000_organization_user_disabled_at/migration.sql +7 -0
- package/langwatch/prisma/schema.prisma +8 -0
- package/langwatch/scripts/check-feature-parity.ts +0 -4
- package/langwatch/src/__tests__/noBinarySourceFiles.unit.test.ts +56 -0
- package/langwatch/src/app/api/agents/[[...route]]/app.ts +0 -2
- package/langwatch/src/app/api/agents/__tests__/agents-rest-api.integration.test.ts +0 -22
- package/langwatch/src/app/api/dashboards/[[...route]]/app.ts +0 -2
- package/langwatch/src/app/api/dashboards/__tests__/dashboard-rest-api.integration.test.ts +0 -18
- package/langwatch/src/app/api/dataset/[[...route]]/app.ts +0 -33
- package/langwatch/src/app/api/dataset/__tests__/dataset-rest-api.integration.test.ts +0 -24
- package/langwatch/src/app/api/dataset/__tests__/dataset-upload-api.integration.test.ts +0 -25
- package/langwatch/src/app/api/evaluators/[[...route]]/app.v1.ts +0 -2
- package/langwatch/src/app/api/export/scenario-runs/[[...route]]/app.ts +250 -0
- package/langwatch/src/app/api/export/scenario-runs/__tests__/scenario-run-export-route.integration.test.ts +336 -0
- package/langwatch/src/app/api/graphs/[[...route]]/app.ts +0 -2
- package/langwatch/src/app/api/middleware/__tests__/error-handler.unit.test.ts +4 -4
- package/langwatch/src/app/api/middleware/index.ts +0 -1
- package/langwatch/src/app/api/monitors/[[...route]]/app.ts +0 -2
- package/langwatch/src/app/api/projects/[[...route]]/app.ts +28 -8
- package/langwatch/src/app/api/prompts/[[...route]]/app.v1.ts +0 -2
- package/langwatch/src/app/api/scenario-events/[[...route]]/app.ts +0 -5
- package/langwatch/src/app/api/scenarios/[[...route]]/app.v1.ts +0 -2
- package/langwatch/src/app/api/shared/errors.ts +14 -0
- package/langwatch/src/app/api/simulation-runs/__tests__/simulation-run-platform-url.integration.test.ts +6 -3
- package/langwatch/src/app/api/suites/[[...route]]/app.ts +0 -2
- package/langwatch/src/app/api/teams/[[...route]]/app.ts +22 -1
- package/langwatch/src/app/api/teams/__tests__/teams-rest-api.integration.test.ts +146 -0
- package/langwatch/src/app/api/traces/[[...route]]/app.v1.ts +114 -0
- package/langwatch/src/app/api/triggers/[[...route]]/app.ts +0 -2
- package/langwatch/src/components/AddMembersForm.tsx +25 -5
- package/langwatch/src/components/AddOrEditDatasetDrawer.tsx +1 -9
- package/langwatch/src/components/ComparisonLeaderboardDrawer.tsx +496 -0
- package/langwatch/src/components/LicenseStatus.tsx +14 -16
- package/langwatch/src/components/__tests__/ComparisonLeaderboardDrawer.gate.integration.test.tsx +146 -0
- package/langwatch/src/components/__tests__/LicenseStatus.integration.test.tsx +129 -0
- package/langwatch/src/components/__tests__/UpgradeModal.integration.test.tsx +358 -68
- package/langwatch/src/components/agents/AgentCodeEditorDrawer.tsx +7 -14
- package/langwatch/src/components/agents/AgentHttpEditorDrawer.tsx +7 -14
- package/langwatch/src/components/agents/WorkflowSelectorDrawer.tsx +1 -15
- package/langwatch/src/components/analytics/DashboardNameDrawer.tsx +20 -26
- package/langwatch/src/components/auth/AuthCard.tsx +41 -0
- package/langwatch/src/components/batch-evaluation-results/BatchEvaluationResults.tsx +72 -0
- package/langwatch/src/components/batch-evaluation-results/BatchEvaluationResultsTable.tsx +109 -2
- package/langwatch/src/components/batch-evaluation-results/ComparisonCharts.tsx +241 -77
- package/langwatch/src/components/batch-evaluation-results/ComparisonLeaderboardChart.tsx +355 -0
- package/langwatch/src/components/batch-evaluation-results/ComparisonTable.tsx +437 -75
- package/langwatch/src/components/batch-evaluation-results/LeaderboardStep.tsx +105 -0
- package/langwatch/src/components/batch-evaluation-results/LeaderboardTrustPanel.tsx +464 -0
- package/langwatch/src/components/batch-evaluation-results/LeaderboardVerdictPanel.tsx +354 -0
- package/langwatch/src/components/batch-evaluation-results/PairwiseLeaderboard.tsx +553 -0
- package/langwatch/src/components/batch-evaluation-results/ParetoScatterChart.tsx +512 -0
- package/langwatch/src/components/batch-evaluation-results/TradeoffSummaryLine.tsx +58 -0
- package/langwatch/src/components/batch-evaluation-results/WinRateChart.tsx +12 -4
- package/langwatch/src/components/batch-evaluation-results/__tests__/ComparisonCharts.filter-overflow.integration.test.tsx +8 -1
- package/langwatch/src/components/batch-evaluation-results/__tests__/ComparisonCharts.leaderboard-gate.integration.test.tsx +192 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/ComparisonCharts.test.tsx +8 -1
- package/langwatch/src/components/batch-evaluation-results/__tests__/ComparisonTable.group-by-metadata.integration.test.tsx +352 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/bootstrapMeanCI.unit.test.ts +98 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/buildAxisLabels.unit.test.ts +134 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/buildPairwiseComparisons.test.ts +95 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/buildTrustChecks.unit.test.ts +551 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/computeBTLeaderboard.test.ts +428 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/computeBandClipping.unit.test.ts +125 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/computeComparability.unit.test.ts +208 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/computeJudgeBiasChecks.unit.test.ts +186 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/computeLeaderboardVerdict.test.ts +288 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/computeParetoDominance.unit.test.ts +599 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/computeSampleAdequacy.unit.test.ts +212 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/computeScoreBarScale.unit.test.ts +104 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/computeVariantMetrics.test.ts +99 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/detectComparisonColumns.test.ts +133 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/formatLeaderboardHeadline.unit.test.ts +252 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/formatTradeoffSummary.unit.test.ts +219 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/leaderboardCache.unit.test.ts +128 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/panelAgreement.unit.test.ts +165 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/paretoScatterPoints.unit.test.ts +95 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/scoreSeparation.unit.test.ts +314 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/variantMetricsSymmetry.unit.test.ts +129 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/verdictSafety.unit.test.ts +438 -0
- package/langwatch/src/components/batch-evaluation-results/__tests__/winMatrixHasPairwiseDetail.unit.test.ts +126 -0
- package/langwatch/src/components/batch-evaluation-results/bootstrapMeanCI.ts +78 -0
- package/langwatch/src/components/batch-evaluation-results/buildPairwiseComparisons.ts +30 -0
- package/langwatch/src/components/batch-evaluation-results/chartAxisLabels.ts +98 -0
- package/langwatch/src/components/batch-evaluation-results/computeBTLeaderboard.ts +814 -0
- package/langwatch/src/components/batch-evaluation-results/computeComparability.ts +305 -0
- package/langwatch/src/components/batch-evaluation-results/computeJudgeBiasChecks.ts +175 -0
- package/langwatch/src/components/batch-evaluation-results/computeLeaderboardVerdict.ts +277 -0
- package/langwatch/src/components/batch-evaluation-results/computeParetoDominance.ts +283 -0
- package/langwatch/src/components/batch-evaluation-results/computeSampleAdequacy.ts +91 -0
- package/langwatch/src/components/batch-evaluation-results/computeVariantMetrics.ts +236 -0
- package/langwatch/src/components/batch-evaluation-results/computeWinMatrixShape.ts +61 -0
- package/langwatch/src/components/batch-evaluation-results/formatLeaderboardHeadline.ts +139 -0
- package/langwatch/src/components/batch-evaluation-results/formatTradeoffSummary.ts +126 -0
- package/langwatch/src/components/batch-evaluation-results/mulberry32.ts +19 -0
- package/langwatch/src/components/batch-evaluation-results/scoreSeparation.ts +102 -0
- package/langwatch/src/components/batch-evaluation-results/types.ts +82 -9
- package/langwatch/src/components/batch-evaluation-results/useBTLeaderboard.ts +137 -0
- package/langwatch/src/components/batch-evaluation-results/usePairwiseSort.ts +78 -0
- package/langwatch/src/components/batch-evaluation-results/useResultsGrouping.ts +119 -0
- package/langwatch/src/components/batch-evaluation-results/useShowComparisonLeaderboard.ts +43 -0
- package/langwatch/src/components/batch-evaluation-results/useVariantMetrics.ts +106 -0
- package/langwatch/src/components/checks/DynamicZodForm.tsx +9 -0
- package/langwatch/src/components/drawerRegistry.ts +5 -0
- package/langwatch/src/components/evaluations/OnlineEvaluationDrawer.tsx +13 -20
- package/langwatch/src/components/evaluators/EvaluatorEditorShared.tsx +16 -20
- package/langwatch/src/components/evaluators/WorkflowSelectorForEvaluatorDrawer.tsx +1 -15
- package/langwatch/src/components/experiments/CreateExperimentButton.tsx +13 -17
- package/langwatch/src/components/license/LicenseDetailsCard.tsx +72 -23
- package/langwatch/src/components/license/LicenseGeneratorForm.tsx +0 -60
- package/langwatch/src/components/license/LicenseLoadError.tsx +23 -0
- package/langwatch/src/components/license/OverSeatsCallout.tsx +68 -0
- package/langwatch/src/components/license/ResourceLimitsDisplay.tsx +0 -74
- package/langwatch/src/components/license/__tests__/OverSeatsCallout.integration.test.tsx +56 -0
- package/langwatch/src/components/license/__tests__/ResourceLimitsDisplay.unit.test.ts +8 -135
- package/langwatch/src/components/license/__tests__/licenseStatusUtils.unit.test.ts +68 -13
- package/langwatch/src/components/license/__tests__/planFormDefaults.unit.test.ts +11 -11
- package/langwatch/src/components/license/__tests__/useLicenseActions.integration.test.ts +185 -0
- package/langwatch/src/components/license/licenseStatusUtils.ts +21 -17
- package/langwatch/src/components/license/planFormDefaults.ts +3 -18
- package/langwatch/src/components/license/useLicenseActions.ts +26 -3
- package/langwatch/src/components/me/PersonalRecentTracesTable.tsx +4 -0
- package/langwatch/src/components/ops/projections/BulkReplayWizard.tsx +23 -1
- package/langwatch/src/components/plans/PlansComparisonPage.tsx +18 -0
- package/langwatch/src/components/plans/__tests__/PlansComparisonPage.integration.test.tsx +17 -0
- package/langwatch/src/components/plans/__tests__/planCurrentResolver.unit.test.ts +19 -0
- package/langwatch/src/components/plans/planCurrentResolver.ts +13 -0
- package/langwatch/src/components/projects/CreateProjectDrawer.tsx +36 -40
- package/langwatch/src/components/prompts/PromptEditorDrawer.tsx +9 -15
- package/langwatch/src/components/prompts/__tests__/PromptEditorDrawer.test.tsx +0 -1
- package/langwatch/src/components/scenarios/ScenarioCreateModal.tsx +3 -5
- package/langwatch/src/components/scenarios/ScenarioFormDrawer.tsx +2 -32
- package/langwatch/src/components/settings/CreateTeamDrawer.tsx +31 -35
- package/langwatch/src/components/settings/EnterpriseCapabilitiesSection.tsx +236 -0
- package/langwatch/src/components/settings/InfoWithoutSelecting.tsx +25 -0
- package/langwatch/src/components/settings/OrganizationUserRoleField.tsx +21 -2
- package/langwatch/src/components/settings/__tests__/EnterpriseCapabilitiesSection.integration.test.tsx +173 -0
- package/langwatch/src/components/settings/__tests__/seatTypeCopy.unit.test.ts +94 -0
- package/langwatch/src/components/settings/__tests__/seatTypeExplanation.integration.test.tsx +126 -0
- package/langwatch/src/components/settings/seatTypeCopy.ts +29 -0
- package/langwatch/src/components/subscription/SubscriptionPage.tsx +0 -1
- package/langwatch/src/components/subscription/__tests__/subscription-test-setup.ts +0 -13
- package/langwatch/src/components/subscription/billing-plans.ts +3 -12
- package/langwatch/src/components/suites/RunHistoryFilters.tsx +55 -3
- package/langwatch/src/components/suites/RunHistoryPanel.tsx +44 -0
- package/langwatch/src/components/suites/ScenarioRunExportDialog.tsx +92 -0
- package/langwatch/src/components/suites/SuiteFormDrawer.tsx +4 -20
- package/langwatch/src/components/suites/__tests__/AllRunsPanel.integration.test.tsx +3 -0
- package/langwatch/src/components/suites/__tests__/RunHistoryEmptyState.integration.test.tsx +45 -0
- package/langwatch/src/components/suites/__tests__/RunHistoryLiveWindow.integration.test.tsx +135 -0
- package/langwatch/src/components/suites/__tests__/ScenarioRunExportUi.integration.test.tsx +227 -0
- package/langwatch/src/components/suites/__tests__/SuiteDetailPanel.integration.test.tsx +3 -0
- package/langwatch/src/components/suites/run-history-transforms.ts +1 -28
- package/langwatch/src/components/suites/useExportScenarioRuns.ts +333 -0
- package/langwatch/src/components/suites/useRunHistoryPagination.ts +14 -0
- package/langwatch/src/components/upgrade-modal/LimitContent.tsx +3 -154
- package/langwatch/src/env-create.mjs +4 -0
- package/langwatch/src/features/errors/logic/codes.ts +2 -1
- package/langwatch/src/features/errors/logic/presentation.ts +8 -3
- package/langwatch/src/features/langy/__tests__/presentLangyToolError.unit.test.ts +1 -1
- package/langwatch/src/features/langy/logic/langyToolFailure.ts +4 -7
- package/langwatch/src/features/traces-v2/components/TraceDrawer/conversationView/TurnSteps.tsx +1 -1
- package/langwatch/src/features/traces-v2/components/TraceDrawer/drawerHeader/DrawerHeader.tsx +34 -0
- package/langwatch/src/features/traces-v2/components/TraceDrawer/drawerHeader/__tests__/utils.unit.test.ts +74 -0
- package/langwatch/src/features/traces-v2/components/TraceDrawer/terminalView/TerminalView.tsx +57 -3
- package/langwatch/src/features/traces-v2/components/TraceDrawer/terminalView/__tests__/TerminalView.integration.test.tsx +43 -3
- package/langwatch/src/features/traces-v2/components/TraceTable/columns.ts +7 -0
- package/langwatch/src/features/traces-v2/components/TraceTable/registry/cells/trace/ContextSizeCell.tsx +48 -0
- package/langwatch/src/features/traces-v2/components/TraceTable/registry/cells/trace/__tests__/ContextSizeCell.integration.test.tsx +57 -0
- package/langwatch/src/features/traces-v2/components/TraceTable/registry/cells/trace/index.ts +2 -0
- package/langwatch/src/features/traces-v2/components/shared/TokenBreakdownTooltip.tsx +22 -0
- package/langwatch/src/features/traces-v2/lens/capabilities.ts +2 -0
- package/langwatch/src/features/traces-v2/types/trace.ts +2 -0
- package/langwatch/src/hooks/__tests__/useLicenseEnforcement.unit.test.tsx +18 -30
- package/langwatch/src/hooks/__tests__/useOrganizationTeamProject.personal-workspace.integration.test.tsx +30 -0
- package/langwatch/src/hooks/__tests__/usePostHogIdentify.unit.test.ts +3 -3
- package/langwatch/src/hooks/useMemberDisableAction.ts +53 -0
- package/langwatch/src/hooks/useOrganizationTeamProject.ts +8 -7
- package/langwatch/src/optimization_studio/components/Evaluate.tsx +39 -46
- package/langwatch/src/optimization_studio/components/workflow/NewWorkflowForm.tsx +22 -30
- package/langwatch/src/pages/[project]/analytics/custom/index.tsx +1 -6
- package/langwatch/src/pages/api/experiment/__tests__/init.unit.test.ts +2 -87
- package/langwatch/src/pages/api/experiment/init.ts +7 -60
- package/langwatch/src/pages/auth/__tests__/forgot-password.integration.test.tsx +38 -3
- package/langwatch/src/pages/auth/forgot-password.tsx +19 -23
- package/langwatch/src/pages/auth/reset-password.tsx +2 -23
- package/langwatch/src/pages/settings/__tests__/authentication.integration.test.tsx +7 -0
- package/langwatch/src/pages/settings/__tests__/team-settings.refused-save.integration.test.tsx +253 -0
- package/langwatch/src/pages/settings/authentication.tsx +7 -2
- package/langwatch/src/pages/settings/license.tsx +4 -3
- package/langwatch/src/pages/settings/members.tsx +126 -34
- package/langwatch/src/pages/settings/teams/[team].tsx +73 -20
- package/langwatch/src/pages/settings/usage.tsx +7 -8
- package/langwatch/src/prompts/prompt-playground/components/sidebar/AddPromptButton.tsx +3 -8
- package/langwatch/src/server/api/routers/__tests__/annotation.tenant-references.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/apiKey.myBindings.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/apiKey.nameById.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/apiKey.restricted-permissions.unit.test.ts +4 -1
- package/langwatch/src/server/api/routers/__tests__/automations.router.integration.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/bugReports.gating.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/enterprise-guards.integration.test.ts +0 -4
- package/langwatch/src/server/api/routers/__tests__/evaluators.tenant-workflow.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/graphs.tenant-dashboard.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/langy.turnErrors.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/langyGithub.access-order.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/license.integration.test.ts +1 -17
- package/langwatch/src/server/api/routers/__tests__/licenseEnforcement.reportLimitBlocked.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/monitors.copy.integration.test.ts +1 -11
- package/langwatch/src/server/api/routers/__tests__/organization.acceptInvite.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/organization.setMemberDisabled.integration.test.ts +306 -0
- package/langwatch/src/server/api/routers/__tests__/personal-workspace-invariants.integration.test.ts +794 -0
- package/langwatch/src/server/api/routers/__tests__/plan.getActivePlan.integration.test.ts +0 -1
- package/langwatch/src/server/api/routers/__tests__/project.getHasFirstMessage.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/project.regenerateApiKey.unit.test.ts +2 -2
- package/langwatch/src/server/api/routers/__tests__/prompts.copy.integration.test.ts +0 -58
- package/langwatch/src/server/api/routers/__tests__/prompts.duplicate.integration.test.ts +0 -54
- package/langwatch/src/server/api/routers/__tests__/publicEnv.test.ts +60 -0
- package/langwatch/src/server/api/routers/__tests__/secrets.reserved-names.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/team.update.multi-binding.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/traces.4991-full-resolution.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/tracesV2.transcript-read.unit.test.ts +121 -0
- package/langwatch/src/server/api/routers/__tests__/translate.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/user.changePassword.unit.test.ts +105 -0
- package/langwatch/src/server/api/routers/__tests__/user.deactivation.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/__tests__/user.register.unit.test.ts +67 -5
- package/langwatch/src/server/api/routers/__tests__/workflows.generateCommitMessage.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/agents.ts +0 -6
- package/langwatch/src/server/api/routers/analytics/__tests__/dataForFilter.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/apiKey.ts +1 -1
- package/langwatch/src/server/api/routers/automations.ts +0 -4
- package/langwatch/src/server/api/routers/bugReports.ts +1 -1
- package/langwatch/src/server/api/routers/copyEvaluatorToProject.ts +2 -5
- package/langwatch/src/server/api/routers/dashboards.ts +0 -2
- package/langwatch/src/server/api/routers/dataset.ts +0 -9
- package/langwatch/src/server/api/routers/emailSuppression.ts +1 -1
- package/langwatch/src/server/api/routers/evaluators.ts +0 -4
- package/langwatch/src/server/api/routers/experiments.ts +0 -14
- package/langwatch/src/server/api/routers/export.ts +65 -24
- package/langwatch/src/server/api/routers/graphs.ts +0 -2
- package/langwatch/src/server/api/routers/group.ts +6 -0
- package/langwatch/src/server/api/routers/langyEgress.ts +1 -1
- package/langwatch/src/server/api/routers/langyGithub.ts +1 -1
- package/langwatch/src/server/api/routers/license.ts +44 -36
- package/langwatch/src/server/api/routers/licenseEnforcement.ts +0 -21
- package/langwatch/src/server/api/routers/modelProviders.ts +1 -1
- package/langwatch/src/server/api/routers/monitors.ts +0 -6
- package/langwatch/src/server/api/routers/onboarding/__tests__/onboarding.personal-workspace.integration.test.ts +8 -15
- package/langwatch/src/server/api/routers/onboarding/onboarding.router.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/onboarding/setProductInterest.integration.test.ts +1 -1
- package/langwatch/src/server/api/routers/ops.ts +2 -0
- package/langwatch/src/server/api/routers/organization.ts +67 -1
- package/langwatch/src/server/api/routers/project.ts +74 -36
- package/langwatch/src/server/api/routers/prompts/prompts.trpc-router.ts +0 -10
- package/langwatch/src/server/api/routers/publicEnv.ts +7 -3
- package/langwatch/src/server/api/routers/scenarios/__tests__/simulation-runner.router.unit.test.ts +1 -1
- package/langwatch/src/server/api/routers/scenarios/scenario-crud.router.ts +0 -4
- package/langwatch/src/server/api/routers/scimToken.ts +1 -1
- package/langwatch/src/server/api/routers/suites/suite.router.ts +0 -3
- package/langwatch/src/server/api/routers/team.ts +48 -39
- package/langwatch/src/server/api/routers/tracesV2.schemas.ts +2 -0
- package/langwatch/src/server/api/routers/tracesV2.ts +76 -20
- package/langwatch/src/server/api/routers/user.ts +16 -6
- package/langwatch/src/server/api/routers/workflows.ts +0 -7
- package/langwatch/src/server/api/trpc.ts +1 -1
- package/langwatch/src/server/api-key/__tests__/api-key.service.legacy-ceiling.unit.test.ts +379 -0
- package/langwatch/src/server/api-key/__tests__/api-key.service.safety.unit.test.ts +3 -0
- package/langwatch/src/server/api-key/__tests__/api-key.service.unit.test.ts +3 -0
- package/langwatch/src/server/api-key/api-key.service.ts +63 -22
- package/langwatch/src/server/api-router.ts +5 -3
- package/langwatch/src/server/app-layer/__tests__/tracing.unit.test.ts +142 -0
- package/langwatch/src/server/app-layer/clients/clickhouse/__tests__/cold-scan-detector.coverage.unit.test.ts +2 -0
- package/langwatch/src/server/app-layer/clients/clickhouse/windowed-read.ts +15 -0
- package/langwatch/src/server/app-layer/dependencies.ts +8 -0
- package/langwatch/src/server/app-layer/evaluations/repositories/__tests__/evaluation-run.resolver-window.unit.test.ts +103 -0
- package/langwatch/src/server/app-layer/evaluations/repositories/evaluation-run.clickhouse.repository.ts +35 -1
- package/langwatch/src/server/app-layer/groups/group.service.ts +37 -0
- package/langwatch/src/server/app-layer/groups/repositories/group.prisma.repository.ts +9 -0
- package/langwatch/src/server/app-layer/groups/repositories/group.repository.ts +8 -0
- package/langwatch/src/server/app-layer/langy/__tests__/langyConversationMemory.unit.test.ts +1 -1
- package/langwatch/src/server/app-layer/langy/__tests__/langyTurnContext.unit.test.ts +0 -0
- package/langwatch/src/server/app-layer/langy/langyConversationMemory.ts +1 -1
- package/langwatch/src/server/app-layer/logs/repositories/__tests__/canonical-log-record.clickhouse.repository.unit.test.ts +54 -0
- package/langwatch/src/server/app-layer/logs/repositories/canonical-log-record.clickhouse.repository.ts +29 -12
- package/langwatch/src/server/app-layer/ops/__tests__/integration/pending-counter-reconcile.integration.test.ts +240 -0
- package/langwatch/src/server/app-layer/ops/__tests__/integration/replay-full-rebuild.integration.test.ts +390 -0
- package/langwatch/src/server/app-layer/ops/__tests__/replay.service.unit.test.ts +105 -1
- package/langwatch/src/server/app-layer/ops/replay.service.ts +47 -0
- package/langwatch/src/server/app-layer/ops/repositories/__tests__/queue.redis.repository.reconcile-pending.unit.test.ts +752 -0
- package/langwatch/src/server/app-layer/ops/repositories/queue.redis.repository.ts +597 -48
- package/langwatch/src/server/app-layer/organizations/__tests__/organization.service.unit.test.ts +1 -0
- package/langwatch/src/server/app-layer/organizations/organization.service.ts +16 -0
- package/langwatch/src/server/app-layer/organizations/repositories/organization.prisma.repository.ts +63 -2
- package/langwatch/src/server/app-layer/organizations/repositories/organization.repository.ts +15 -0
- package/langwatch/src/server/app-layer/presets.ts +27 -13
- package/langwatch/src/server/app-layer/projects/__tests__/project-service-update.unit.test.ts +100 -0
- package/langwatch/src/server/app-layer/projects/project.service.ts +145 -6
- package/langwatch/src/server/app-layer/projects/repositories/project.prisma.repository.ts +2 -16
- package/langwatch/src/server/app-layer/projects/repositories/project.repository.ts +2 -13
- package/langwatch/src/server/app-layer/simulations/__tests__/scenario-run-export-sweep.integration.test.ts +370 -0
- package/langwatch/src/server/app-layer/simulations/repositories/simulation.clickhouse.repository.ts +302 -7
- package/langwatch/src/server/app-layer/simulations/repositories/simulation.repository.ts +62 -0
- package/langwatch/src/server/app-layer/subscription/__tests__/composite-plan-provider.unit.test.ts +2 -28
- package/langwatch/src/server/app-layer/subscription/__tests__/self-hosted-plan-provider.unit.test.ts +101 -0
- package/langwatch/src/server/app-layer/subscription/self-hosted-plan-provider.ts +34 -0
- package/langwatch/src/server/app-layer/teams/team.service.ts +27 -0
- package/langwatch/src/server/app-layer/traces/__tests__/claude-code-span-enrichment.unit.test.ts +179 -0
- package/langwatch/src/server/app-layer/traces/__tests__/coding-agent-span-filter.unit.test.ts +50 -0
- package/langwatch/src/server/app-layer/traces/__tests__/coding-agent-transcript.derivation.unit.test.ts +331 -0
- package/langwatch/src/server/app-layer/traces/__tests__/trace-io-extraction.service.unit.test.ts +20 -0
- package/langwatch/src/server/app-layer/traces/canonicalisation/__tests__/structuredIO.test.ts +22 -1
- package/langwatch/src/server/app-layer/traces/canonicalisation/extractors/__tests__/claudeCode.unit.test.ts +217 -0
- package/langwatch/src/server/app-layer/traces/canonicalisation/extractors/__tests__/codex.unit.test.ts +133 -0
- package/langwatch/src/server/app-layer/traces/canonicalisation/extractors/__tests__/vercel.unit.test.ts +79 -0
- package/langwatch/src/server/app-layer/traces/canonicalisation/extractors/_constants.ts +9 -0
- package/langwatch/src/server/app-layer/traces/canonicalisation/extractors/claudeCode.ts +429 -6
- package/langwatch/src/server/app-layer/traces/canonicalisation/extractors/codex.ts +158 -70
- package/langwatch/src/server/app-layer/traces/canonicalisation/extractors/vercel.ts +26 -8
- package/langwatch/src/server/app-layer/traces/claude-code-span-enrichment.ts +89 -1
- package/langwatch/src/server/app-layer/traces/coding-agent-span-filter.ts +23 -1
- package/langwatch/src/server/app-layer/traces/coding-agent-transcript.derivation.ts +330 -75
- package/langwatch/src/server/app-layer/traces/repositories/__tests__/span-storage.resolver-window.unit.test.ts +108 -0
- package/langwatch/src/server/app-layer/traces/repositories/__tests__/trace-list.clickhouse.repository.integration.test.ts +31 -2
- package/langwatch/src/server/app-layer/traces/repositories/span-storage.clickhouse.repository.ts +36 -1
- package/langwatch/src/server/app-layer/traces/repositories/trace-list.clickhouse.repository.ts +7 -0
- package/langwatch/src/server/app-layer/traces/trace-io-extraction.service.ts +8 -1
- package/langwatch/src/server/app-layer/traces/trace-list.service.ts +10 -0
- package/langwatch/src/server/app-layer/tracing.ts +47 -0
- package/langwatch/src/server/app-layer/usage/usage.service.ts +0 -80
- package/langwatch/src/server/better-auth/__tests__/hooks.test.ts +72 -0
- package/langwatch/src/server/better-auth/__tests__/index.test.ts +31 -9
- package/langwatch/src/server/better-auth/__tests__/resetRecoversOauthUser.test.ts +128 -0
- package/langwatch/src/server/better-auth/__tests__/ssoGate.hook.test.ts +321 -0
- package/langwatch/src/server/better-auth/hooks.ts +46 -1
- package/langwatch/src/server/better-auth/index.ts +123 -284
- package/langwatch/src/server/clickhouse/__tests__/replicatedEngineGuard.unit.test.ts +301 -0
- package/langwatch/src/server/clickhouse/goose.ts +8 -0
- package/langwatch/src/server/clickhouse/migrations/00064_replicate_gateway_budget_scope_totals.sql +291 -0
- package/langwatch/src/server/clickhouse/migrations/00065_replicate_trace_analytics_rollup.sql +143 -0
- package/langwatch/src/server/clickhouse/migrations/00066_replicate_evaluation_analytics_rollup.sql +115 -0
- package/langwatch/src/server/datasets/__tests__/dataset-chunking.unit.test.ts +0 -0
- package/langwatch/src/server/evaluations/evaluators.generated.ts +83 -63
- package/langwatch/src/server/event-sourcing/pipeline/__tests__/staticBuilder.validations.unit.test.ts +46 -0
- package/langwatch/src/server/event-sourcing/pipeline/processManagerDefinition.ts +14 -0
- package/langwatch/src/server/event-sourcing/pipeline/staticBuilder.ts +8 -0
- package/langwatch/src/server/event-sourcing/pipelines/automations/subscribers/__tests__/graphTriggerActivity.groupKey.unit.test.ts +55 -0
- package/langwatch/src/server/event-sourcing/pipelines/automations/subscribers/graphTriggerActivity.subscriber.ts +23 -0
- package/langwatch/src/server/event-sourcing/pipelines/blob-maintenance/process-manager/blobCleanup.process.ts +6 -4
- package/langwatch/src/server/event-sourcing/pipelines/coding-agent-processing/schemas/constants.ts +6 -4
- package/langwatch/src/server/event-sourcing/pipelines/evaluation-processing/pipeline.ts +9 -1
- package/langwatch/src/server/event-sourcing/pipelines/log-processing/__tests__/logCommandCoalescing.unit.test.ts +174 -0
- package/langwatch/src/server/event-sourcing/pipelines/log-processing/pipeline.ts +7 -0
- package/langwatch/src/server/event-sourcing/pipelines/log-processing/schemas/constants.ts +19 -0
- package/langwatch/src/server/event-sourcing/pipelines/metric-processing/__tests__/metricCommandCoalescing.unit.test.ts +137 -0
- package/langwatch/src/server/event-sourcing/pipelines/metric-processing/pipeline.ts +7 -0
- package/langwatch/src/server/event-sourcing/pipelines/metric-processing/schemas/constants.ts +19 -0
- package/langwatch/src/server/event-sourcing/pipelines/trace-processing/__tests__/aiSdkStructuredOutput.integration.test.ts +199 -0
- package/langwatch/src/server/event-sourcing/pipelines/trace-processing/pipeline.ts +9 -1
- package/langwatch/src/server/event-sourcing/pipelines/trace-processing/projections/__tests__/spanStorageGroupKey.unit.test.ts +98 -0
- package/langwatch/src/server/event-sourcing/pipelines/trace-processing/projections/__tests__/traceSummaryClaudeCodeLift.unit.test.ts +187 -1
- package/langwatch/src/server/event-sourcing/pipelines/trace-processing/projections/spanStorage.mapProjection.ts +10 -1
- package/langwatch/src/server/event-sourcing/pipelines/trace-processing/projections/spanStorageGroupKey.ts +63 -0
- package/langwatch/src/server/event-sourcing/pipelines/trace-processing/projections/traceSummary.foldProjection.ts +85 -18
- package/langwatch/src/server/event-sourcing/pipelines/trace-processing/reactors/__tests__/projectMetadata.groupKey.unit.test.ts +140 -0
- package/langwatch/src/server/event-sourcing/pipelines/trace-processing/reactors/projectMetadata.reactor.ts +23 -0
- package/langwatch/src/server/event-sourcing/projections/__tests__/projectionRouter.mapReactorCollapse.unit.test.ts +260 -0
- package/langwatch/src/server/event-sourcing/projections/foldProjection.types.ts +6 -3
- package/langwatch/src/server/event-sourcing/projections/global/__tests__/billingMeterDispatch.groupKey.unit.test.ts +139 -0
- package/langwatch/src/server/event-sourcing/projections/global/billingMeterDispatch.reactor.ts +27 -1
- package/langwatch/src/server/event-sourcing/projections/projectionRouter.ts +58 -41
- package/langwatch/src/server/event-sourcing/queues/groupQueue/__tests__/blobSweeper.integration.test.ts +149 -0
- package/langwatch/src/server/event-sourcing/queues/groupQueue/__tests__/groupQueue.decodeDrop.integration.test.ts +12 -1
- package/langwatch/src/server/event-sourcing/queues/groupQueue/__tests__/groupQueue.integration.test.ts +45 -0
- package/langwatch/src/server/event-sourcing/queues/groupQueue/blobSweeper.ts +130 -22
- package/langwatch/src/server/event-sourcing/queues/groupQueue/scripts.ts +46 -0
- package/langwatch/src/server/event-sourcing/replay/__tests__/traceAnalyticsRollupReplay.integration.test.ts +356 -0
- package/langwatch/src/server/event-sourcing/replay/replayService.ts +7 -0
- package/langwatch/src/server/event-sourcing/services/queues/__tests__/queueManager.commandGroupKey.test.ts +114 -2
- package/langwatch/src/server/event-sourcing/services/queues/queueManager.ts +13 -9
- package/langwatch/src/server/experiments-v3/execution/__tests__/buildTargetMetadata.unit.test.ts +93 -0
- package/langwatch/src/server/experiments-v3/execution/__tests__/orchestratorStorageDispatch.unit.test.ts +57 -0
- package/langwatch/src/server/experiments-v3/execution/__tests__/resultMapper.test.ts +180 -13
- package/langwatch/src/server/experiments-v3/execution/orchestrator.ts +40 -8
- package/langwatch/src/server/experiments-v3/execution/resultMapper.ts +81 -22
- package/langwatch/src/server/experiments-v3/execution/types.ts +8 -0
- package/langwatch/src/server/export/scenario-runs/__tests__/csv-serializer.unit.test.ts +732 -0
- package/langwatch/src/server/export/scenario-runs/__tests__/scenario-run-export.service.unit.test.ts +303 -0
- package/langwatch/src/server/export/scenario-runs/csv-serializer.ts +383 -0
- package/langwatch/src/server/export/scenario-runs/errors.ts +44 -0
- package/langwatch/src/server/export/scenario-runs/scenario-run-export.service.ts +200 -0
- package/langwatch/src/server/export/scenario-runs/types.ts +64 -0
- package/langwatch/src/server/featureFlag/frontendFeatureFlags.ts +4 -0
- package/langwatch/src/server/featureFlag/registry.ts +7 -0
- package/langwatch/src/server/gateway/virtualKey.service.ts +2 -2
- package/langwatch/src/server/license-enforcement/__tests__/constants.unit.test.ts +2 -10
- package/langwatch/src/server/license-enforcement/__tests__/license-enforcement.repository.integration.test.ts +17 -194
- package/langwatch/src/server/license-enforcement/__tests__/license-enforcement.repository.unit.test.ts +3 -301
- package/langwatch/src/server/license-enforcement/__tests__/license-enforcement.service.unit.test.ts +51 -137
- package/langwatch/src/server/license-enforcement/__tests__/license-limit-guard.unit.test.ts +46 -13
- package/langwatch/src/server/license-enforcement/__tests__/usage-stats.service.unit.test.ts +1 -3
- package/langwatch/src/server/license-enforcement/constants.ts +0 -26
- package/langwatch/src/server/license-enforcement/index.ts +0 -5
- package/langwatch/src/server/license-enforcement/license-enforcement.repository.ts +4 -227
- package/langwatch/src/server/license-enforcement/license-enforcement.service.ts +0 -52
- package/langwatch/src/server/license-enforcement/types.ts +8 -17
- package/langwatch/src/server/license-enforcement/usage-stats.service.ts +0 -32
- package/langwatch/src/server/modelProviders/__tests__/governanceSignup.providerScope.integration.test.ts +1 -1
- package/langwatch/src/server/rbac/__tests__/apiKeyCeilingStaleness.unit.test.ts +5 -0
- package/langwatch/src/server/rbac/__tests__/role-binding-resolver.ceiling.unit.test.ts +108 -3
- package/langwatch/src/server/rbac/role-binding-resolver.ts +147 -1
- package/langwatch/src/server/role/__tests__/role-service-rolebinding.unit.test.ts +2 -0
- package/langwatch/src/server/role/role.service.ts +15 -1
- package/langwatch/src/server/role-bindings/__tests__/role-binding.service.tenant.unit.test.ts +2 -0
- package/langwatch/src/server/role-bindings/personal-team-scope.ts +105 -0
- package/langwatch/src/server/role-bindings/role-binding.service.ts +10 -2
- package/langwatch/src/server/routes/__tests__/github-langy-install.integration.test.ts +1 -1
- package/langwatch/src/server/routes/auth.ts +6 -1
- package/langwatch/src/server/routes/github-langy.ts +1 -1
- package/langwatch/src/server/scenarios/__tests__/scenario-archive.integration.test.ts +11 -15
- package/langwatch/src/server/scenarios/scenario-run-category.ts +48 -0
- package/langwatch/src/server/stored-objects/__tests__/coerce-content-to-array.unit.test.ts +0 -0
- package/langwatch/src/server/stored-objects/__tests__/scenario-events-ingest.integration.test.ts +2 -6
- package/langwatch/src/server/teams/team.service.ts +14 -1
- package/langwatch/src/server/tracer/types.ts +3 -0
- package/langwatch/src/server/traces/__tests__/trace-service-claude-enrichment.unit.test.ts +85 -0
- package/langwatch/src/server/traces/mappers/__tests__/trace-summary.mapper.test.ts +106 -0
- package/langwatch/src/server/traces/mappers/trace-summary.mapper.ts +59 -0
- package/langwatch/src/server/traces/projection/catalog.ts +3 -0
- package/langwatch/src/server/traces/trace.service.ts +21 -1
- package/langwatch/src/server/workers/__tests__/livenessThread.unit.test.ts +133 -0
- package/langwatch/src/server/workers/startWorkers.ts +250 -29
- package/langwatch/src/utils/__tests__/api.unit.test.ts +15 -15
- package/langwatch/src/utils/constants.ts +1 -0
- package/langwatch/src/utils/lambdaFetch.ts +0 -0
- package/langwatch/test-setup.ts +9 -0
- package/mcp-server/dist/chunk-FMQIE5DL.js +2328 -0
- package/mcp-server/dist/create-mcp-server.js +1 -1
- package/mcp-server/dist/discover-evaluator-schema-HYPFWGNN.js +2191 -0
- package/mcp-server/dist/http-server-UBX7YFXE.js +24466 -0
- package/mcp-server/dist/index.js +49 -33
- package/package.json +1 -1
- package/packages/server/dist/cli.cjs +1 -1
- package/langwatch/dist/client/assets/AddAnnotationQueueDrawer-BeOD83jA.js +0 -2
- package/langwatch/dist/client/assets/AddDatasetRecordDrawer-jHTYLVuB.js +0 -6
- package/langwatch/dist/client/assets/AddOrEditAnnotationScore-DW5VXwj8.js +0 -2
- package/langwatch/dist/client/assets/AddOrEditAnnotationScoreDrawer-6ycw-4n0.js +0 -2
- package/langwatch/dist/client/assets/AddOrEditDatasetDrawer-DKQT3n1Q.js +0 -3
- package/langwatch/dist/client/assets/AddParticipants-7HKlJHjI.js +0 -2
- package/langwatch/dist/client/assets/AgentHistoryDrawer-B1kjJyfj.js +0 -2
- package/langwatch/dist/client/assets/AgentHttpEditorDrawer-Dkex2eS8.js +0 -5
- package/langwatch/dist/client/assets/AgentListDrawer-B-ab-fJ_.js +0 -2
- package/langwatch/dist/client/assets/AgentTypeSelectorDrawer-CBUwY7Q0.js +0 -2
- package/langwatch/dist/client/assets/AgentWorkflowEditorDrawer-DZr-iX29.js +0 -2
- package/langwatch/dist/client/assets/AgentWorkflowTargetEditorDrawer-C1AYXbvP.js +0 -2
- package/langwatch/dist/client/assets/AiGatewayLayout-BFUOyL-l.js +0 -2
- package/langwatch/dist/client/assets/AnnotationsTable-CnwGxhJg.js +0 -2
- package/langwatch/dist/client/assets/AreaChart-BZjKjRMD.js +0 -2
- package/langwatch/dist/client/assets/AutomationDrawer-BTtX7UXo.js +0 -112
- package/langwatch/dist/client/assets/BatchEvaluationSummary-CFBL50E9.js +0 -2
- package/langwatch/dist/client/assets/BudgetEditDrawer-DhNs7V2e.js +0 -2
- package/langwatch/dist/client/assets/CartesianChart-CgGSWzzH.js +0 -54
- package/langwatch/dist/client/assets/CascadeArchiveDialog-BOcl2osO.js +0 -2
- package/langwatch/dist/client/assets/ChartTooltip-BKs8as3o.js +0 -4
- package/langwatch/dist/client/assets/ChatWindow-B-UHoZDM.js +0 -5
- package/langwatch/dist/client/assets/CodeEvaluatorEditorDrawer-jdmrD4H5.js +0 -9
- package/langwatch/dist/client/assets/CodexCodingDefaultsAsk-CKLyE8Ty.js +0 -2
- package/langwatch/dist/client/assets/ColorfulBlockIcons-Ctm_Gy50.js +0 -6
- package/langwatch/dist/client/assets/ColumnTypeIcon-Bh1MI0_N.js +0 -2
- package/langwatch/dist/client/assets/ConfirmDialog-CbyD4lof.js +0 -2
- package/langwatch/dist/client/assets/ContactSalesBlock-3LFiXNMY.js +0 -2
- package/langwatch/dist/client/assets/Conversation-C27uRW0p.js +0 -2
- package/langwatch/dist/client/assets/CopyInput-BJ8UDgiW.js +0 -2
- package/langwatch/dist/client/assets/CopyableInputWithPrefix-DhfQEE7R.js +0 -2
- package/langwatch/dist/client/assets/CreateProjectDrawer-f6ESIihF.js +0 -2
- package/langwatch/dist/client/assets/CreateTeamDrawer-CsScDzr3.js +0 -2
- package/langwatch/dist/client/assets/CustomGraph-DOp8hQmM.js +0 -2
- package/langwatch/dist/client/assets/DashboardLayout-BhHe0vIT.js +0 -96
- package/langwatch/dist/client/assets/DashboardNameDrawer-WriiQpWZ.js +0 -2
- package/langwatch/dist/client/assets/DataPrivacyRuleDrawer-BWcEQSs7.js +0 -2
- package/langwatch/dist/client/assets/DatasetEditorTable-BLbB_Sn-.js +0 -2
- package/langwatch/dist/client/assets/DatasetPickerList-CDIBTAQW.js +0 -2
- package/langwatch/dist/client/assets/DatasetPreviewTable-UuBrd6hv.js +0 -2
- package/langwatch/dist/client/assets/DatasetSelector-DJI4ZOko.js +0 -2
- package/langwatch/dist/client/assets/DefaultModelOverrideDrawer-DfGbPivl.js +0 -2
- package/langwatch/dist/client/assets/DeleteConfirmationDialog-w7WZ7lHP.js +0 -2
- package/langwatch/dist/client/assets/DocsLinks-vsvIA7dY.js +0 -2
- package/langwatch/dist/client/assets/DynamicZodForm-lW0sHL84.js +0 -2
- package/langwatch/dist/client/assets/EditAutomationFilterDrawer-UZGlf7Jf.js +0 -3
- package/langwatch/dist/client/assets/EditModelProviderDrawer-FxE8Cjfj.js +0 -4
- package/langwatch/dist/client/assets/EditProjectDrawer-DvGgMwQg.js +0 -2
- package/langwatch/dist/client/assets/EmojiPickerModal-DOTbYgFl.js +0 -3
- package/langwatch/dist/client/assets/EnterpriseLockedSurface-CM8Sj7hf.js +0 -2
- package/langwatch/dist/client/assets/ErrorBarContext-Bpz3-JDH.js +0 -2
- package/langwatch/dist/client/assets/EvaluatorApiUsageDialog-Bnv6z6m_.js +0 -107
- package/langwatch/dist/client/assets/EvaluatorCategorySelectorDrawer-DPt4B9Ey.js +0 -2
- package/langwatch/dist/client/assets/EvaluatorEditorDrawer-C1OQ89no.js +0 -2
- package/langwatch/dist/client/assets/EvaluatorEditorShared-Dlnmyfw9.js +0 -43
- package/langwatch/dist/client/assets/EvaluatorHistoryDrawer-BFqreRNY.js +0 -2
- package/langwatch/dist/client/assets/EvaluatorListDrawer-B5GkvEER.js +0 -2
- package/langwatch/dist/client/assets/EvaluatorMappingsSection-uZ95zEz_.js +0 -2
- package/langwatch/dist/client/assets/EvaluatorSelection-CLClnlPT.js +0 -2
- package/langwatch/dist/client/assets/EvaluatorSelectionBox-VWh5DBap.js +0 -2
- package/langwatch/dist/client/assets/EvaluatorTypeSelectorContent-BTrBItgE.js +0 -2
- package/langwatch/dist/client/assets/EvaluatorTypeSelectorDrawer-0T-zwQQZ.js +0 -2
- package/langwatch/dist/client/assets/ExecutionState-BPNxLkdI.js +0 -2
- package/langwatch/dist/client/assets/FeatureFlagsDrawer-CpSauosT.js +0 -2
- package/langwatch/dist/client/assets/FieldInfoTooltip-BlO6fteF.js +0 -2
- package/langwatch/dist/client/assets/FieldsFilters-B46wbf2n.js +0 -2
- package/langwatch/dist/client/assets/FilterDisplay-BzhnJIar.js +0 -2
- package/langwatch/dist/client/assets/FilterSidebar-CbZF27X2.js +0 -2
- package/langwatch/dist/client/assets/FormatMoney-vCZvmGG1.js +0 -2
- package/langwatch/dist/client/assets/FoundryDrawer-DskBXiS5.js +0 -2
- package/langwatch/dist/client/assets/FullLogo-Db9M_uOO.js +0 -2
- package/langwatch/dist/client/assets/GovernanceLayout-DiDbO74a.js +0 -2
- package/langwatch/dist/client/assets/GraphsLayout-BCvqg3RK.js +0 -2
- package/langwatch/dist/client/assets/GroupBindingInputRow-DQP7aETW.js +0 -2
- package/langwatch/dist/client/assets/GuardrailsDrawer-CHV6LBxp.js +0 -91
- package/langwatch/dist/client/assets/History-hXXVv0A2.js +0 -17
- package/langwatch/dist/client/assets/HorizontalFormControl-lYiaIlzD.js +0 -2
- package/langwatch/dist/client/assets/HoverableBigText-CIhevUVt.js +0 -2
- package/langwatch/dist/client/assets/InstallCliCard-CJKSPLJ_.js +0 -2
- package/langwatch/dist/client/assets/IntegratePaneShell-BpcA5j4P.js +0 -8
- package/langwatch/dist/client/assets/InviteMemberDrawer-DiuPqGoS.js +0 -2
- package/langwatch/dist/client/assets/IsolatedErrorBoundary-CZ4MnYEN.js +0 -2
- package/langwatch/dist/client/assets/LLMModelCostDrawer-D1G0lU1N.js +0 -2
- package/langwatch/dist/client/assets/LangyContextTarget-CIlp_Zew.js +0 -2
- package/langwatch/dist/client/assets/LegacyTracesDeprecationBanner-Cd0jbm0t.js +0 -2
- package/langwatch/dist/client/assets/Legend-DY68SncN.js +0 -6
- package/langwatch/dist/client/assets/Line-B2wakHWw.js +0 -2
- package/langwatch/dist/client/assets/LineChart-Bb84FSVR.js +0 -2
- package/langwatch/dist/client/assets/ListTable-8idtTXBY.js +0 -2
- package/langwatch/dist/client/assets/LoadingScreen-DQ62wqSN.js +0 -2
- package/langwatch/dist/client/assets/Markdown-C9extmbX.js +0 -35
- package/langwatch/dist/client/assets/MenuLink-CVzOs3K8.js +0 -2
- package/langwatch/dist/client/assets/MessageCard--GCYkR2M.js +0 -2
- package/langwatch/dist/client/assets/MetadataTag-CSCPlbDN.js +0 -5
- package/langwatch/dist/client/assets/ModelProviderCustomModelInput-DUwvNeux.js +0 -2
- package/langwatch/dist/client/assets/ModelProviderScreen-BVBKstQm.js +0 -2
- package/langwatch/dist/client/assets/ModelSelector-4R-dc-Ny.js +0 -2
- package/langwatch/dist/client/assets/MyLayout-DCMYTSgX.js +0 -2
- package/langwatch/dist/client/assets/NavigationFooter-1VNOUoV6.js +0 -2
- package/langwatch/dist/client/assets/NewWorkflowForm-CsYSc1Vr.js +0 -2
- package/langwatch/dist/client/assets/NoDataInfoBlock-C8x5bzL0.js +0 -2
- package/langwatch/dist/client/assets/OnboardingContainer-e4kVlnyx.js +0 -2
- package/langwatch/dist/client/assets/OnlineEvaluationDrawer-D2jYsSON.js +0 -2
- package/langwatch/dist/client/assets/OpsPageShell-Ch1rtwuD.js +0 -2
- package/langwatch/dist/client/assets/OttlEditor-baChQv3o.js +0 -3
- package/langwatch/dist/client/assets/OverflownText-CY4Y__oL.js +0 -2
- package/langwatch/dist/client/assets/ProjectAvatar-DtI9dT1f.js +0 -43
- package/langwatch/dist/client/assets/ProjectLangyLayout-Cl7GB9zi.js +0 -82
- package/langwatch/dist/client/assets/PromptEditorDrawer-BLIu4fKV.js +0 -2
- package/langwatch/dist/client/assets/PromptListDrawer-BHC9jUMJ.js +0 -2
- package/langwatch/dist/client/assets/PropertySectionTitle-Da2IdhM3.js +0 -37
- package/langwatch/dist/client/assets/ProviderModelSelector-Cg5Lbc1U.js +0 -2
- package/langwatch/dist/client/assets/ProviderScopeChips-D7HJW6Ht.js +0 -2
- package/langwatch/dist/client/assets/PushToCopiesDialog-B_hvn6aW.js +0 -2
- package/langwatch/dist/client/assets/ReferenceDot-DbjBc6Dh.js +0 -2
- package/langwatch/dist/client/assets/RenderInputOutput-BntIB-Ae.js +0 -261
- package/langwatch/dist/client/assets/ScenarioFormDrawer-BORe6ffA.js +0 -2
- package/langwatch/dist/client/assets/ScenarioInputMappingSection-DVpK_-Qh.js +0 -2
- package/langwatch/dist/client/assets/ScenarioRunDetailDrawer-MJhw77cs.js +0 -3
- package/langwatch/dist/client/assets/ScopeChipPicker-B3xHf0Ii.js +0 -2
- package/langwatch/dist/client/assets/SearchInput-C7YbWRUQ.js +0 -2
- package/langwatch/dist/client/assets/SectionNavigationLayout-CIP_2Nxf.js +0 -2
- package/langwatch/dist/client/assets/SelectDatasetDrawer-D_nCx9JT.js +0 -2
- package/langwatch/dist/client/assets/SelectionActionBar-fxhOYCmO.js +0 -2
- package/langwatch/dist/client/assets/SeriesFilterDrawer-zoWjjTxC.js +0 -2
- package/langwatch/dist/client/assets/SettingsLayout-sixsNIX_.js +0 -2
- package/langwatch/dist/client/assets/SetupWithAgentButton-Bhxb1yOj.js +0 -4
- package/langwatch/dist/client/assets/ShikiCommandBox-CN1W-H2m.js +0 -5
- package/langwatch/dist/client/assets/SpanDetails-DavcMtlr.js +0 -3
- package/langwatch/dist/client/assets/SubscriptionPage-gPKGn08f.js +0 -2
- package/langwatch/dist/client/assets/SuiteFormDrawer-C_5urLUY.js +0 -2
- package/langwatch/dist/client/assets/TabButton-Cp8UA45p.js +0 -3
- package/langwatch/dist/client/assets/TableCell-Cbtwk2YR.js +0 -2
- package/langwatch/dist/client/assets/TargetTypeSelectorDrawer-B0xHR5hC.js +0 -2
- package/langwatch/dist/client/assets/TeamForm-DvN0gccP.js +0 -2
- package/langwatch/dist/client/assets/TeamUserRoleField-DD6lt16j.js +0 -2
- package/langwatch/dist/client/assets/TraceDetails-DZtIKcmo.js +0 -9
- package/langwatch/dist/client/assets/TraceDetailsDrawer-DKgyPTw5.js +0 -2
- package/langwatch/dist/client/assets/TraceIdPeek-7T88rBev.js +0 -2
- package/langwatch/dist/client/assets/TracesMapping-CYIUxk62.js +0 -2
- package/langwatch/dist/client/assets/UpgradeModalContent-eXy8pG4-.js +0 -2
- package/langwatch/dist/client/assets/UploadCSVDrawer-BTttuVHZ.js +0 -3
- package/langwatch/dist/client/assets/VariablesSection-hjZ5pmeK.js +0 -2
- package/langwatch/dist/client/assets/VersionBadge-BPxGh4w7.js +0 -2
- package/langwatch/dist/client/assets/ViaClaudeDesktopScreen-B9EYtw_g.js +0 -1161
- package/langwatch/dist/client/assets/ViewAutomationDrawer-H_lJU8lG.js +0 -2
- package/langwatch/dist/client/assets/VirtualKeySecretReveal-5GeVsP9d.js +0 -54
- package/langwatch/dist/client/assets/WelcomeLayout-CDTLOa4d.js +0 -2
- package/langwatch/dist/client/assets/WithFeatureFlagGuard-OePuXWRG.js +0 -2
- package/langwatch/dist/client/assets/WithPermissionGuard-Cr6Aljmy.js +0 -2
- package/langwatch/dist/client/assets/WorkflowCard-SFB2TN6O.js +0 -2
- package/langwatch/dist/client/assets/WorkflowSelectorForEvaluatorDrawer-C9JwDruB.js +0 -2
- package/langwatch/dist/client/assets/_...path_-Cgdgmf5W.js +0 -2
- package/langwatch/dist/client/assets/_Uint8Array-DZ50H-2q.js +0 -2
- package/langwatch/dist/client/assets/__...path__-CwRP2Csi.js +0 -22
- package/langwatch/dist/client/assets/_baseAssignValue-BqKt0w0a.js +0 -2
- package/langwatch/dist/client/assets/_baseClone-DCKy3Vq2.js +0 -2
- package/langwatch/dist/client/assets/_baseEach-BGeacxUS.js +0 -2
- package/langwatch/dist/client/assets/_baseFor-BQgMStOx.js +0 -2
- package/langwatch/dist/client/assets/_experiment_-UwR3aJGK.js +0 -2
- package/langwatch/dist/client/assets/_id_-7nn1sxUS.js +0 -2
- package/langwatch/dist/client/assets/_id_-BGN_cxTM.js +0 -2
- package/langwatch/dist/client/assets/_id_-C39KWPCF.js +0 -2
- package/langwatch/dist/client/assets/_id_-CLpZ89Xl.js +0 -2
- package/langwatch/dist/client/assets/_id_-CYndCW2V.js +0 -2
- package/langwatch/dist/client/assets/_id_-CfWpUbg4.js +0 -2
- package/langwatch/dist/client/assets/_id_-npXkLrUc.js +0 -2
- package/langwatch/dist/client/assets/_project_-B7G8spwK.js +0 -8
- package/langwatch/dist/client/assets/_runId_-BSik_ZD4.js +0 -7
- package/langwatch/dist/client/assets/_shell-BGaZUKLi.js +0 -2
- package/langwatch/dist/client/assets/_slug_-BN6BJfW8.js +0 -17
- package/langwatch/dist/client/assets/_slug_-C7DGk6aN.js +0 -2
- package/langwatch/dist/client/assets/_slug_-DOlOZ10W.js +0 -2
- package/langwatch/dist/client/assets/_team_-B9rXOt0D.js +0 -2
- package/langwatch/dist/client/assets/_workflow_-BJIdrL-L.js +0 -25
- package/langwatch/dist/client/assets/_workflow_-BKcndaRn.js +0 -3
- package/langwatch/dist/client/assets/accept-CSdmIcux.js +0 -2
- package/langwatch/dist/client/assets/activity-QICCt22J.js +0 -1
- package/langwatch/dist/client/assets/agents--fK5G7M5.js +0 -2
- package/langwatch/dist/client/assets/alerts-QICCt22J.js +0 -1
- package/langwatch/dist/client/assets/all-yOqzcthm.js +0 -2
- package/langwatch/dist/client/assets/analytics-CjMLTwIY.js +0 -2
- package/langwatch/dist/client/assets/annotation-scores-sPTr7fKF.js +0 -2
- package/langwatch/dist/client/assets/annotations-Ye3ttmrc.js +0 -2
- package/langwatch/dist/client/assets/anomaly-rules-DwSc-85q.js +0 -2
- package/langwatch/dist/client/assets/api-keys-CKyHUAXs.js +0 -4
- package/langwatch/dist/client/assets/asaplangy-6A4CIIRR.js +0 -5
- package/langwatch/dist/client/assets/audit-log-DQ9_D13G.js +0 -2
- package/langwatch/dist/client/assets/auth-CHp-bSLm.js +0 -2
- package/langwatch/dist/client/assets/authentication-CktawfTg.js +0 -2
- package/langwatch/dist/client/assets/authorize-BSFPddoX.js +0 -2
- package/langwatch/dist/client/assets/authorize-YWRIgnuS.js +0 -2
- package/langwatch/dist/client/assets/automations-CI-QD_zf.js +0 -2
- package/langwatch/dist/client/assets/automations-QICCt22J.js +0 -1
- package/langwatch/dist/client/assets/billing-plans-DUVLJ_Sk.js +0 -2
- package/langwatch/dist/client/assets/blank-CqHTkVM2.js +0 -2
- package/langwatch/dist/client/assets/blobs-B_lHV3eu.js +0 -2
- package/langwatch/dist/client/assets/blockDiagram-677ZJIJ3-CQSMftlX.js +0 -133
- package/langwatch/dist/client/assets/budgets-D0yk2zkk.js +0 -3
- package/langwatch/dist/client/assets/bug-reports-D48JQaYJ.js +0 -2
- package/langwatch/dist/client/assets/cache-rules-BLbEe56I.js +0 -2
- package/langwatch/dist/client/assets/choose-CR8H5_AF.js +0 -2
- package/langwatch/dist/client/assets/chunk-EX3LRPZG-CULySKMF.js +0 -232
- package/langwatch/dist/client/assets/chunk-FWX5IMBZ-vsHlz4qh.js +0 -3
- package/langwatch/dist/client/assets/chunk-PUDLZKDR-ByJfzd90.js +0 -157
- package/langwatch/dist/client/assets/chunk-RYQCIY6F-DW5yDiZP.js +0 -2
- package/langwatch/dist/client/assets/chunk-V7JOEXUC-rGVlZXkP.js +0 -207
- package/langwatch/dist/client/assets/classDiagram-OUVF2IWQ-DjpCOWYp.js +0 -2
- package/langwatch/dist/client/assets/classDiagram-v2-EOCWNBFH-DjpCOWYp.js +0 -2
- package/langwatch/dist/client/assets/codeAgentConfig-DlJOMg8p.js +0 -7
- package/langwatch/dist/client/assets/codingDefaultSync-C3S2VHmn.js +0 -2
- package/langwatch/dist/client/assets/configure-BPQgl6jf.js +0 -4
- package/langwatch/dist/client/assets/constants-Bb5Vi_Bd.js +0 -2
- package/langwatch/dist/client/assets/custom-D79e_fnJ.js +0 -12
- package/langwatch/dist/client/assets/custom_evaluator-DgcItmbH.js +0 -31
- package/langwatch/dist/client/assets/dagre-BqI7WPId.js +0 -2
- package/langwatch/dist/client/assets/dagre-VKFMJZFB-BJj7ndf9.js +0 -5
- package/langwatch/dist/client/assets/data-privacy-BuolZ3DI.js +0 -2
- package/langwatch/dist/client/assets/data-retention-yWQxxUQF.js +0 -2
- package/langwatch/dist/client/assets/datasets-u_OgZHiv.js +0 -2
- package/langwatch/dist/client/assets/debounce-BJsF8wQY.js +0 -2
- package/langwatch/dist/client/assets/defaultModelState-DY_b79Yj.js +0 -2
- package/langwatch/dist/client/assets/dejaview-DSjI4vi2.js +0 -2
- package/langwatch/dist/client/assets/departments-C3oaBPyA.js +0 -2
- package/langwatch/dist/client/assets/devices-O_ZVZdxA.js +0 -2
- package/langwatch/dist/client/assets/dist-Dd3SzC15.js +0 -6
- package/langwatch/dist/client/assets/drawerFromUrl-DaNSDEzf.js +0 -2
- package/langwatch/dist/client/assets/edit-CswmqyLU.js +0 -62
- package/langwatch/dist/client/assets/email-suppressions-B8AuxWio.js +0 -2
- package/langwatch/dist/client/assets/erDiagram-Q63AITRT-DIiR5G9i.js +0 -86
- package/langwatch/dist/client/assets/error-nKFTkytv.js +0 -2
- package/langwatch/dist/client/assets/errors-e711UMq7.js +0 -2
- package/langwatch/dist/client/assets/evaluations-Cg9PywKJ.js +0 -2
- package/langwatch/dist/client/assets/evaluations-xuA_g6-G.js +0 -2
- package/langwatch/dist/client/assets/evaluators-6oHFfk5m.js +0 -146
- package/langwatch/dist/client/assets/evaluators-CBPI9nP9.js +0 -2
- package/langwatch/dist/client/assets/experiments-DHsdWtPG.js +0 -1
- package/langwatch/dist/client/assets/feature-flags-e-cVnxOK.js +0 -2
- package/langwatch/dist/client/assets/fetchSSE-5rVPow_l.js +0 -3
- package/langwatch/dist/client/assets/fieldset-BNLAUiqD.js +0 -2
- package/langwatch/dist/client/assets/flowDiagram-23GEKE2U-DlrfK-aL.js +0 -1
- package/langwatch/dist/client/assets/forgot-password-B_FXHTn9.js +0 -2
- package/langwatch/dist/client/assets/formatMoney-DRwvOSzZ.js +0 -2
- package/langwatch/dist/client/assets/formatTargetOutput-CkKef3lk.js +0 -2
- package/langwatch/dist/client/assets/foundry-U39hnXil.js +0 -477
- package/langwatch/dist/client/assets/gateway-DZnsUBnP.js +0 -2
- package/langwatch/dist/client/assets/getEvaluator-irVFciCL.js +0 -2
- package/langwatch/dist/client/assets/getRadiusAndStrokeWidthFromDot-BFtcAGI_.js +0 -2
- package/langwatch/dist/client/assets/governance-BBQIXSQ_.js +0 -2
- package/langwatch/dist/client/assets/graphlib-Bg9XziCe.js +0 -2
- package/langwatch/dist/client/assets/grid-DVy6ELOp.js +0 -2
- package/langwatch/dist/client/assets/groups-DYnJ4U2W.js +0 -2
- package/langwatch/dist/client/assets/guardrails-DdKPd-Zs.js +0 -2
- package/langwatch/dist/client/assets/handled-error-CI7XXA3n.js +0 -2
- package/langwatch/dist/client/assets/http-DSF_1QKT.js +0 -7
- package/langwatch/dist/client/assets/identifierUtils-B50FmQLB.js +0 -2
- package/langwatch/dist/client/assets/immer-CFru3D02.js +0 -14
- package/langwatch/dist/client/assets/index-CPtTUYLD.js +0 -68
- package/langwatch/dist/client/assets/ingestion-source-detail-BLfzu5Yv.js +0 -19
- package/langwatch/dist/client/assets/ingestion-sources-BcwE_tRu.js +0 -12
- package/langwatch/dist/client/assets/integrations-D220c59Q.js +0 -2
- package/langwatch/dist/client/assets/isArrayLikeObject-DUy1V36n.js +0 -2
- package/langwatch/dist/client/assets/isSymbol-COuSxi_J.js +0 -2
- package/langwatch/dist/client/assets/langyHomeSuggestions-6NtCcdnH.js +0 -2
- package/langwatch/dist/client/assets/license-Be6bs3wD.js +0 -2
- package/langwatch/dist/client/assets/licenseStatusUtils-YSS0xL-G.js +0 -2
- package/langwatch/dist/client/assets/lu-DlSq9Be4.js +0 -2
- package/langwatch/dist/client/assets/map-7tkBBrDN.js +0 -2
- package/langwatch/dist/client/assets/mappingValidation-C-AT88B0.js +0 -2
- package/langwatch/dist/client/assets/me-BHRwGQAJ.js +0 -7
- package/langwatch/dist/client/assets/me-DyaTjlbw.js +0 -2
- package/langwatch/dist/client/assets/members-Dn5oJBlv.js +0 -2
- package/langwatch/dist/client/assets/mermaid.core-krP_t-L5.js +0 -12
- package/langwatch/dist/client/assets/messages-CN1bd906.js +0 -2
- package/langwatch/dist/client/assets/metrics-Do8QhcIC.js +0 -2
- package/langwatch/dist/client/assets/mindmap-definition-LN4V7U3C-DBef2D4I.js +0 -97
- package/langwatch/dist/client/assets/model-costs-D6eiVgIz.js +0 -2
- package/langwatch/dist/client/assets/model-providers-CiSkvGtd.js +0 -2
- package/langwatch/dist/client/assets/modelProviderHelpers-P2Cogc-H.js +0 -2
- package/langwatch/dist/client/assets/my-queue-D1aRcnMh.js +0 -2
- package/langwatch/dist/client/assets/normalizeComparison-BY-r_dYf.js +0 -2
- package/langwatch/dist/client/assets/not-found-BiyummjJ.js +0 -2
- package/langwatch/dist/client/assets/now-flOUcolU.js +0 -2
- package/langwatch/dist/client/assets/onboarding-D3dMDvS6.js +0 -2
- package/langwatch/dist/client/assets/online-evaluations-Dk2ygUi2.js +0 -2
- package/langwatch/dist/client/assets/ops-Djcw5_lX.js +0 -2
- package/langwatch/dist/client/assets/organizations-F6Q6gYJ3.js +0 -2
- package/langwatch/dist/client/assets/pages-BXwixFEM.js +0 -2
- package/langwatch/dist/client/assets/persistence-DZOtzFnQ.js +0 -2
- package/langwatch/dist/client/assets/personalProject-DMRX2-SI.js +0 -2
- package/langwatch/dist/client/assets/plans-C_VYB2VX.js +0 -2
- package/langwatch/dist/client/assets/preconditionFieldUtils-B7QfymK4.js +0 -2
- package/langwatch/dist/client/assets/product-D0RNZ3Ls.js +0 -2
- package/langwatch/dist/client/assets/project-ZTQzA2gY.js +0 -2
- package/langwatch/dist/client/assets/projections-DocSauqq.js +0 -2
- package/langwatch/dist/client/assets/projects-ClyGKBO9.js +0 -2
- package/langwatch/dist/client/assets/promptHandle-Cen_6YRW.js +0 -2
- package/langwatch/dist/client/assets/prompts-CLb2R5Fd.js +0 -8
- package/langwatch/dist/client/assets/radio-group-CWz2nJi3.js +0 -2
- package/langwatch/dist/client/assets/registry-B64xvGV5.js +0 -2
- package/langwatch/dist/client/assets/reports-C-XbHSdJ.js +0 -2
- package/langwatch/dist/client/assets/request-C3Wgq2B3.js +0 -2
- package/langwatch/dist/client/assets/requirementDiagram-TGXJPOKE-9g84jNsR.js +0 -85
- package/langwatch/dist/client/assets/reset-password-ohopJtIH.js +0 -2
- package/langwatch/dist/client/assets/role-bindings-BQ31P1EO.js +0 -2
- package/langwatch/dist/client/assets/roles-CQDx2TP6.js +0 -2
- package/langwatch/dist/client/assets/routing-policies-uvNo9gfx.js +0 -5
- package/langwatch/dist/client/assets/scenarios-CpA_eExG.js +0 -2
- package/langwatch/dist/client/assets/scheduler-CgzNzJjP.js +0 -2
- package/langwatch/dist/client/assets/schedules-QICCt22J.js +0 -1
- package/langwatch/dist/client/assets/scim-BivWilDe.js +0 -2
- package/langwatch/dist/client/assets/secrets-Dp2ang1r.js +0 -2
- package/langwatch/dist/client/assets/segment-group-DQ4SkpwM.js +0 -2
- package/langwatch/dist/client/assets/segmented-control-BNxU6DEN.js +0 -2
- package/langwatch/dist/client/assets/select-D17PWjH9.js +0 -2
- package/langwatch/dist/client/assets/send-Dd5105kW.js +0 -2
- package/langwatch/dist/client/assets/sequenceView-FFm7w152.js +0 -5
- package/langwatch/dist/client/assets/seriesOptions-CDRg_FIS.js +0 -1015
- package/langwatch/dist/client/assets/settings-aFAaBCpo.js +0 -2
- package/langwatch/dist/client/assets/setup-BqCpBMpq.js +0 -2
- package/langwatch/dist/client/assets/shikiAdapter-CbWAxLvq.js +0 -3
- package/langwatch/dist/client/assets/showSuiteRunError-B2iiQdeh.js +0 -2
- package/langwatch/dist/client/assets/signin-C6AzSXTw.js +0 -2
- package/langwatch/dist/client/assets/signup-Co9SguQP.js +0 -2
- package/langwatch/dist/client/assets/stateDiagram-2N3HPSRC-CDfCuyr-.js +0 -2
- package/langwatch/dist/client/assets/stateDiagram-v2-6OUMAXLB-mNUL4OCz.js +0 -2
- package/langwatch/dist/client/assets/subscription-BYrIJoC0.js +0 -3
- package/langwatch/dist/client/assets/subscriptions-CrupW2oH.js +0 -2
- package/langwatch/dist/client/assets/suggestionUI-0NFK2m-V.js +0 -106
- package/langwatch/dist/client/assets/swimlanes-5IMT3BWC-aY42sUsR.js +0 -3
- package/langwatch/dist/client/assets/swimlanesDiagram-G3AALYLV-BQgl3Mwz.js +0 -9
- package/langwatch/dist/client/assets/switch-DGatWO8v.js +0 -2
- package/langwatch/dist/client/assets/switch-mtnuJtgJ.js +0 -2
- package/langwatch/dist/client/assets/tabs-U8n5D55_.js +0 -2
- package/langwatch/dist/client/assets/teams-CMzKSSEB.js +0 -2
- package/langwatch/dist/client/assets/teams-DBNLpvFi.js +0 -2
- package/langwatch/dist/client/assets/tool-catalog-DgWWHys3.js +0 -7
- package/langwatch/dist/client/assets/toolIcons-DmISNQ_S.js +0 -2
- package/langwatch/dist/client/assets/tooltip-gjZ4s2dt.js +0 -2
- package/langwatch/dist/client/assets/topic-clustering-wc06nKYO.js +0 -2
- package/langwatch/dist/client/assets/topics-DbjuJKH7.js +0 -2
- package/langwatch/dist/client/assets/traceStore-By6b3pBZ.js +0 -55
- package/langwatch/dist/client/assets/traces-DjQaBgiE.js +0 -289
- package/langwatch/dist/client/assets/tracesMapping-DpjIOyAg.js +0 -3
- package/langwatch/dist/client/assets/tracking-D4oUOPlm.js +0 -2
- package/langwatch/dist/client/assets/types-CCALFpCT.js +0 -2
- package/langwatch/dist/client/assets/types-DfJmP3wn.js +0 -2
- package/langwatch/dist/client/assets/types-X7bcC-zw.js +0 -2
- package/langwatch/dist/client/assets/usage-B3fH-bNu.js +0 -2
- package/langwatch/dist/client/assets/usage-YeRzOlEs.js +0 -2
- package/langwatch/dist/client/assets/use-generic-onboarding-flow-DZY28ya2.js +0 -2
- package/langwatch/dist/client/assets/useActivePlan-fRQ_etI2.js +0 -2
- package/langwatch/dist/client/assets/useAllPromptsForProject-DCZJ0_-p.js +0 -2
- package/langwatch/dist/client/assets/useAnnotationQueues-ByLqaEs6.js +0 -2
- package/langwatch/dist/client/assets/useAvailableEvaluators-BKFN_L8t.js +0 -2
- package/langwatch/dist/client/assets/useCompoundLicenseCheck-BqNF-zzC.js +0 -2
- package/langwatch/dist/client/assets/useCyclingVerb-DSHVFfHS.js +0 -2
- package/langwatch/dist/client/assets/useDepartmentColumn-D1DF_PiG.js +0 -2
- package/langwatch/dist/client/assets/useEvaluationsV3Store-Bc6Q5CKo.js +0 -2
- package/langwatch/dist/client/assets/useExportTraces-BqLmfd8N.js +0 -2
- package/langwatch/dist/client/assets/useFeatureFlag-Do1Ecu3l.js +0 -2
- package/langwatch/dist/client/assets/useInviteActions-DwPlKWmS.js +0 -2
- package/langwatch/dist/client/assets/useLicenseEnforcement-DOI0dcqD.js +0 -2
- package/langwatch/dist/client/assets/usePersonalContext-CggG6KVI.js +0 -2
- package/langwatch/dist/client/assets/useProjectSpanNames-jFO9A6Re.js +0 -2
- package/langwatch/dist/client/assets/useProjectsForCopy-B8F_BY79.js +0 -2
- package/langwatch/dist/client/assets/useRunViaApiTabs-Cr0_nbbp.js +0 -50
- package/langwatch/dist/client/assets/useShowLangy-kmjRxLHs.js +0 -2
- package/langwatch/dist/client/assets/useSimulationUpdateListener-BQB61L8b.js +0 -2
- package/langwatch/dist/client/assets/useTargetName-nPyk8kf-.js +0 -2
- package/langwatch/dist/client/assets/useTargetNameMap-C2bPHyhD.js +0 -2
- package/langwatch/dist/client/assets/useTraceDetailsDrawer-CL82mHNA.js +0 -2
- package/langwatch/dist/client/assets/useTraceUpdateListener-r6BQdcuk.js +0 -2
- package/langwatch/dist/client/assets/useUrlScopeFilter-DFlXMn0U.js +0 -2
- package/langwatch/dist/client/assets/useWorkflowStore-DGHQA8ai.js +0 -8
- package/langwatch/dist/client/assets/users-D5W8Qjjj.js +0 -2
- package/langwatch/dist/client/assets/users-DFyHT5UO.js +0 -2
- package/langwatch/dist/client/assets/users-rKylpyh9.js +0 -2
- package/langwatch/dist/client/assets/v3-NB4P-Pc3.js +0 -2
- package/langwatch/dist/client/assets/variables-DF2_abiB.js +0 -396
- package/langwatch/dist/client/assets/viewStore-DtvCfAUF.js +0 -2
- package/langwatch/dist/client/assets/virtual-keys-DW1kPrjW.js +0 -2
- package/langwatch/dist/client/assets/welcome-DJsfSWej.js +0 -16
- package/langwatch/dist/client/assets/wizard-D2X_QMNx.js +0 -2
- package/langwatch/dist/client/assets/workbench-fZ1KK4fN.js +0 -2
- package/langwatch/dist/client/assets/workflows-CY65pvqY.js +0 -3
- package/langwatch/dist/client/assets/wrap-DlWOPhPw.js +0 -2
- package/langwatch/src/app/api/middleware/__tests__/resource-limit-enforcement.integration.test.ts +0 -278
- package/langwatch/src/app/api/middleware/__tests__/resource-limit.unit.test.ts +0 -299
- package/langwatch/src/app/api/middleware/resource-limit.ts +0 -147
- package/langwatch/src/app/api/scenario-events/[[...route]]/scenario-set-limit.ts +0 -54
- package/langwatch/src/app/api/scenario-events/__tests__/scenario-set-limit.unit.test.ts +0 -195
- package/langwatch/src/app/api/scenario-events/scenario-set-limit.stress.test.ts +0 -216
- package/langwatch/src/components/__tests__/UpgradeModal.unit.test.tsx +0 -103
- package/langwatch/src/hooks/useCompoundLicenseCheck.ts +0 -41
- package/langwatch/src/pages/api/experiment/init.stress.test.ts +0 -130
- package/langwatch/src/server/api/routers/__tests__/project.create.planLimit.integration.test.ts +0 -370
- package/langwatch/src/server/api/routers/__tests__/team.createTeamWithMembers.planLimit.integration.test.ts +0 -251
- package/langwatch/src/server/app-layer/usage/__tests__/usage-service-checkScenarioSetLimit.unit.test.ts +0 -322
- package/langwatch/src/server/app-layer/usage/errors.ts +0 -24
- package/langwatch/src/server/auditLog.ts +0 -49
- package/langwatch/src/server/better-auth/__tests__/fallbackName.test.ts +0 -141
- package/langwatch/src/server/better-auth/__tests__/parseIssuerUrl.test.ts +0 -58
- package/langwatch/src/server/better-auth/__tests__/sso.test.ts +0 -125
- package/langwatch/src/server/better-auth/sso.ts +0 -47
- package/langwatch/src/server/event-sourcing/pipelines/trace-processing/projections/__tests__/traceSummary.coalesce.unit.test.ts +0 -33
- package/langwatch/src/server/license-enforcement/__tests__/limit-breakdown.unit.test.ts +0 -101
- package/langwatch/src/server/license-enforcement/__tests__/personal-workspaces-excluded.integration.test.ts +0 -391
- package/langwatch/src/server/license-enforcement/enforcement.middleware.ts +0 -103
- package/langwatch/src/server/license-enforcement/limit-breakdown.ts +0 -96
- package/langwatch/src/server/routes/scim.ts +0 -583
- package/langwatch/src/server/routes/webhooks.ts +0 -168
- package/langwatch/src/server/scim/__tests__/scim-token.service.unit.test.ts +0 -109
- package/langwatch/src/server/scim/__tests__/scim.costCenter.integration.test.ts +0 -170
- package/langwatch/src/server/scim/__tests__/scim.service.unit.test.ts +0 -414
- package/langwatch/src/server/scim/scim-group.service.ts +0 -464
- package/langwatch/src/server/scim/scim-role-resolver.ts +0 -47
- package/langwatch/src/server/scim/scim-role-resolver.unit.test.ts +0 -92
- package/langwatch/src/server/scim/scim-token.service.ts +0 -70
- package/langwatch/src/server/scim/scim.service.ts +0 -553
- package/langwatch/src/server/scim/scim.types.ts +0 -148
- package/mcp-server/dist/chunk-DSB77X63.js +0 -2328
- package/mcp-server/dist/discover-evaluator-schema-OFEADIJY.js +0 -2175
- package/mcp-server/dist/http-server-YVM4PRTC.js +0 -24466
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{a as n,dn as r,i,n as a}from"./portal-Sdfvrza9.js";import{t as o}from"./jsx-runtime-CFwixLRt.js";import{t as s}from"./skeleton-0JSrjbwm.js";import{t as c}from"./heading-C0sACr0w.js";import{n as l,t as u}from"./v-stack-hkuSkmCA.js";import{C as d,S as f,b as p,x as m,y as h}from"./shikiAdapter-CbWAxLvq.js";import{Sn as g,a as _,c as v,ln as ee,mn as te,s as y}from"./ProjectAvatar-DtI9dT1f.js";import{t as b}from"./tooltip-gjZ4s2dt.js";import{n as x}from"./toaster-BsYkODqs.js";import{$ as ne,L as S,O as C,Q as w,X as T,Y as re,Z as E,et as D,o as O,r as k}from"./Markdown-C9extmbX.js";import{a as ie,n as ae,r as A}from"./field-BadoNaN5.js";import{t as j}from"./DashboardLayout-BhHe0vIT.js";import{i as oe,r as se,t as ce}from"./alert-CPsXih3K.js";import{n as le,r as M,t as N}from"./card-By_Mbslh.js";import{t as ue}from"./container-Cxi_AjD-.js";import{n as P,r as F,t as I}from"./native-select-DL2k8x0o.js";import{t as de}from"./spacer-C38e7o6r.js";import{i as fe,o as L,r as R,t as z}from"./tabs-U8n5D55_.js";import{i as B,r as V}from"./tag-BN5IoWjW.js";import{n as H}from"./api-l6Cnm0vQ.js";import{f as U}from"./trpcError-CFsR-0nB.js";import{r as pe}from"./next-router-CWLrMXvP.js";import{c as me,n as he,o as ge,s as _e,t as ve}from"./index.esm-Cpy5fWo1.js";import{An as ye,En as be,Ft as xe,In as W,Mr as G,Tn as Se,Vt as K,W as Ce,t as we,yn as Te,zn as Ee}from"./index-CPtTUYLD.js";import{t as De}from"./prop-types-DeUPn3oD.js";import{r as Oe}from"./EvaluationStatus-CV8eYyuh.js";import{t as ke}from"./edit-2-B0IA_tY5.js";import{t as Ae}from"./help-circle-DKxNhAgT.js";import{t as je}from"./info-DRDUmL_M.js";import{t as Me}from"./more-vertical-CnKfgTmQ.js";import{t as Ne}from"./play-DcPx4Q13.js";import{t as Pe}from"./refresh-cw-C7FbMWoi.js";import{t as Fe}from"./search-dG0R10px.js";import{t as Ie}from"./x-ePIIvo_k.js";import{t as Le}from"./zod-BDLLToBM.js";import{t as Re}from"./slugify-BfBxP6u_.js";import{t as q}from"./HorizontalFormControl-lYiaIlzD.js";import{d as ze,f as Be}from"./tracesMapping-DpjIOyAg.js";import{t as Ve}from"./TracesMapping-CYIUxk62.js";import{t as He}from"./input-group-D7qfFB6C.js";import{t as Ue}from"./SmallLabel-Dh74EKHT.js";import{n as We}from"./HoverableBigText-CIhevUVt.js";import{n as J,r as Ge}from"./evaluators-6oHFfk5m.js";import{n as Y,t as Ke}from"./getEvaluator-irVFciCL.js";import{a as qe,c as Je,i as Ye,l as Xe,n as Ze,o as Qe,r as $e,u as et}from"./preconditionFieldUtils-B7QfymK4.js";import{t as tt}from"./DynamicZodForm-lW0sHL84.js";import{n as nt,t as rt}from"./EvaluatorSelection-CLClnlPT.js";import{t as it}from"./langwatchEndpointEnv-nAxLDTZN.js";import{t as at}from"./safe-regex2-BFdZ9Qk3.js";import{t as ot}from"./formatMoney-DRwvOSzZ.js";import{r as st,t as ct}from"./FilterSidebar-CbZF27X2.js";import{t as lt}from"./useAvailableEvaluators-BKFN_L8t.js";import{t as ut}from"./types-DfJmP3wn.js";var X=e(t()),Z=e(De());function dt(){return dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dt.apply(this,arguments)}function ft(e,t){if(e==null)return{};var n=pt(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mt=(0,X.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ft(e,[`color`,`size`]);return X.createElement(`svg`,dt({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),X.createElement(`rect`,{x:`6`,y:`4`,width:`4`,height:`16`}),X.createElement(`rect`,{x:`14`,y:`4`,width:`4`,height:`16`}))});mt.propTypes={color:Z.default.string,size:Z.default.oneOfType([Z.default.string,Z.default.number])},mt.displayName=`Pause`;var Q=Ee(),ht={mapping:{spans:{source:`spans`},input:{source:`input`},output:{source:`output`},contexts:{source:`contexts`},expected_output:{source:`metadata`,key:`expected_output`}},expansions:[]},gt=e=>{if(e.mapping)return e;let t={spans:{source:`spans`},"trace.input":{source:`input`},"trace.output":{source:`output`},"trace.first_rag_context":{source:`contexts`},"metadata.expected_output":{source:`metadata`,key:`expected_output`},"metadata.expected_contexts":{source:`metadata`,key:`expected_contexts`}};return{mapping:Object.fromEntries(Object.entries(e).map(([e,n])=>[e,t[n]])),expansions:[]}},$=o();function _t(e){let{filterParams:t,queryOpts:n}=_(),r=H.traces.getSampleTracesDataset.useQuery(t,n);return e.traceMapping&&!e.traceMapping?.mapping?null:(0,$.jsx)(Ve,{...e,traces:r.data??[]})}function vt({slug:e,evaluatorDefinition:t,form:n,checkType:i,name:o,executionMode:s,settings:d,storeSettingsOnCode:f}){let p=s===Q.EvaluationExecutionMode.AS_GUARDRAIL,m=f?i:e,{project:h}=K(),g=t.requiredFields.includes(`output`),_=H.project.getProjectAPIKey.useQuery({projectId:h?.id??``},{enabled:!!h}),v=({async:e})=>{let n=`\n name="${o}",`,i=[];t.requiredFields.includes(`input`)?i.push(`"input": user_input`):t.optionalFields.includes(`input`)&&i.push(`"input": user_input # optional`),t.requiredFields.includes(`output`)?i.push(`"output": generated_response`):t.optionalFields.includes(`output`)&&i.push(`"output": generated_response # optional`),t.requiredFields.includes(`contexts`)?i.push(`"contexts": ["retrieved snippet 1", "retrieved snippet 2"]`):t.optionalFields.includes(`contexts`)&&i.push(`"contexts": ["retrieved snippet 1", "retrieved snippet 2"] # optional`),t.requiredFields.includes(`expected_output`)?i.push(`"expected_output": gold_answer`):t.optionalFields.includes(`expected_output`)&&i.push(`"expected_output": gold_answer # optional`),t.requiredFields.includes(`conversation`)?i.push(`"conversation": conversation_history`):t.optionalFields.includes(`conversation`)&&i.push(`"conversation": conversation_history # optional`);let a=i.length>0?`\n data={\n ${i.join(`,
|
|
2
|
-
`)}\n },`:`
|
|
3
|
-
data={},`,s=f?`\n settings=${JSON.stringify(d??{},null,2).replace(/true/g,`True`).replace(/false/g,`False`).split(`
|
|
4
|
-
`).map((e,t)=>t===0?e:` `+e).join(`
|
|
5
|
-
`)},`:``;return(0,$.jsxs)(u,{align:`start`,width:`full`,gap:3,children:[(0,$.jsx)(l,{fontSize:`14px`,children:`Add this import at the top of the file where the LLM call happens:`}),(0,$.jsx)(r,{className:`markdown`,width:`full`,children:(0,$.jsx)(O,{code:`import langwatch`,language:`python`})}),(!g||!p)&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(l,{fontSize:`14px`,children:p?g?`Then, after calling your LLM, check for the guardrail:`:`Then, either before or after calling your LLM, check for the guardrail:`:`Then, pass in the message data to get the result of the evaluator:`}),(0,$.jsx)(r,{className:`markdown`,width:`full`,children:(0,$.jsx)(O,{code:`def llm_step():
|
|
6
|
-
... # your existing code
|
|
7
|
-
|
|
8
|
-
${p?`guardrail`:`result`} = ${e?`await langwatch.evaluation.async_evaluate`:`langwatch.evaluation.evaluate`}(
|
|
9
|
-
"${m}",${a}${n}${s}${p?`
|
|
10
|
-
as_guardrail=True,`:``}
|
|
11
|
-
)
|
|
12
|
-
${p?`
|
|
13
|
-
if not guardrail.passed:
|
|
14
|
-
# handle the guardrail here
|
|
15
|
-
return "I'm sorry, I can't do that."`:`
|
|
16
|
-
print(result)`}`,language:`python`})})]})]})},ee=()=>{let e=`\n name: "${o}",`,n=[];t.requiredFields.includes(`input`)?n.push(`input: message`):t.optionalFields.includes(`input`)&&n.push(`input: message /* optional */`),t.requiredFields.includes(`output`)?n.push(`output: generatedResponse`):t.optionalFields.includes(`output`)&&n.push(`output: generatedResponse /* optional */`),t.requiredFields.includes(`contexts`)?n.push(`contexts: ["retrieved snippet 1", "retrieved snippet 2"]`):t.optionalFields.includes(`contexts`)&&n.push(`contexts: ["retrieved snippet 1", "retrieved snippet 2"] /* optional */`),t.requiredFields.includes(`expected_output`)?n.push(`expectedOutput: goldAnswer`):t.optionalFields.includes(`expected_output`)&&n.push(`expectedOutput: goldAnswer /* optional */`),t.requiredFields.includes(`conversation`)?n.push(`conversation: conversationHistory`):t.optionalFields.includes(`conversation`)&&n.push(`conversation: conversationHistory /* optional */`);let i=n.length>0?`\n data: {\n ${n.join(`,
|
|
17
|
-
`)}\n },`:`
|
|
18
|
-
data: {},`,a=f?`\n settings: ${JSON.stringify(d??{},null,2).replace(/"(\w+)"\s*:/g,`$1:`).split(`
|
|
19
|
-
`).map((e,t)=>t===0?e:` `+e).join(`
|
|
20
|
-
`)},`:``;return(0,$.jsxs)(u,{align:`start`,width:`full`,gap:3,children:[(0,$.jsxs)(l,{fontSize:`14px`,children:[`First, set up your traces and spans capturing as explained in the`,` `,(0,$.jsx)(we,{href:`https://docs.langwatch.ai/integration/typescript/guide`,isExternal:!0,children:`documentation`}),`.`]}),(!g||!p)&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(l,{fontSize:`14px`,children:p?g?`Then, after calling your LLM, check for the guardrail:`:`Then, either before or after calling your LLM, check for the guardrail:`:`Then, pass in the message data to get the result of the evaluator:`}),(0,$.jsx)(r,{className:`markdown`,width:`full`,children:(0,$.jsx)(O,{code:`import { LangWatch } from "langwatch";
|
|
21
|
-
|
|
22
|
-
const langwatch = new LangWatch();
|
|
23
|
-
|
|
24
|
-
async function llmStep({ message }: { message: string }): Promise<string> {
|
|
25
|
-
${p?``:`// ... your existing code
|
|
26
|
-
|
|
27
|
-
`}// call the ${p?`guardrail`:`evaluator`}
|
|
28
|
-
const ${p?`guardrail`:`result`} = await langwatch.evaluations.evaluate(
|
|
29
|
-
"${m}",
|
|
30
|
-
{${i}${e}${a}${p?`
|
|
31
|
-
asGuardrail: true,`:``}
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
${p?`
|
|
35
|
-
if (!guardrail.passed) {
|
|
36
|
-
// handle the guardrail here
|
|
37
|
-
return "I'm sorry, I can't do that.";
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// ... your existing code`:`
|
|
41
|
-
console.log(result);`}
|
|
42
|
-
}`,language:`typescript`})})]})]})},te=f?`,\n "settings": ${JSON.stringify(d??{},null,2).split(`
|
|
43
|
-
`).map((e,t)=>t===0?e:` `+e).join(`
|
|
44
|
-
`)}`:``;return(0,$.jsxs)(u,{gap:4,align:`start`,width:`full`,children:[(0,$.jsx)(c,{as:`h4`,fontSize:`16px`,fontWeight:500,paddingTop:4,children:s===Q.EvaluationExecutionMode.MANUALLY?`Manual Integration`:`Guardrail Integration`}),(0,$.jsxs)(a,{children:[(0,$.jsxs)(l,{fontSize:`14px`,children:[`This`,` `,s===Q.EvaluationExecutionMode.MANUALLY?`evaluator`:`guardrail`,` `,`uses:`]}),t.requiredFields.map(e=>(0,$.jsx)(B,{colorPalette:`blue`,children:(0,$.jsxs)(V,{children:[e,` (required)`]})},e)).concat(t.optionalFields.map(e=>(0,$.jsx)(B,{children:(0,$.jsxs)(V,{children:[e,` (optional)`]})},e)))]}),(0,$.jsxs)(l,{fontSize:`14px`,children:[`Follow the code example below to integrate this`,` `,p?`guardrail`:`evaluator`,` in your LLM pipeline, save changes first for the `,p?`guardrail`:`evaluator`,` to work.`]}),n&&(0,$.jsxs)(a,{children:[(0,$.jsx)(C,{...n.register(`storeSettingsOnCode`),children:`Store settings on code`}),(0,$.jsx)(b,{content:`Store the settings on the code to keep it versioned on your side instead of on LangWatch dashboard.`,positioning:{placement:`top`},children:(0,$.jsx)(r,{children:(0,$.jsx)(je,{size:16})})})]}),(0,$.jsxs)(fe,{defaultValue:`python`,width:`full`,colorPalette:`orange`,children:[(0,$.jsxs)(R,{marginBottom:4,children:[(0,$.jsx)(L,{value:`python`,children:`Python`}),(0,$.jsx)(L,{value:`python-async`,children:`Python (Async)`}),(0,$.jsx)(L,{value:`typescript`,children:`TypeScript`}),(0,$.jsx)(L,{value:`curl`,children:`Curl`})]}),(0,$.jsx)(z,{value:`python`,padding:0,children:(0,$.jsx)(v,{async:!1})}),(0,$.jsx)(z,{value:`python-async`,padding:0,children:(0,$.jsx)(v,{async:!0})}),(0,$.jsx)(z,{value:`typescript`,padding:0,children:(0,$.jsx)(ee,{})}),(0,$.jsx)(z,{value:`curl`,padding:0,children:(0,$.jsxs)(u,{align:`start`,width:`full`,gap:3,children:[(0,$.jsx)(r,{className:`markdown`,width:`full`,children:(0,$.jsx)(O,{code:`# Set your API key and endpoint URL
|
|
45
|
-
API_KEY="${_.data?.apiKey??`your_langwatch_api_key`}"
|
|
46
|
-
|
|
47
|
-
# Use curl to send the POST request, e.g.:
|
|
48
|
-
curl -X POST "${it()}/api/evaluations/${m}/evaluate" \\
|
|
49
|
-
-H "X-Auth-Token: $API_KEY" \\
|
|
50
|
-
-H "Content-Type: application/json" \\
|
|
51
|
-
-d @- <<EOF
|
|
52
|
-
{
|
|
53
|
-
"trace_id": "trace-123",
|
|
54
|
-
"name": "${o}",
|
|
55
|
-
"data": {
|
|
56
|
-
${t.requiredFields.map(e=>`"${e}": "${e} content"`).concat(t.optionalFields.map(e=>`"${e}": "${e} content (optional)"`)).join(`,
|
|
57
|
-
`)}
|
|
58
|
-
}${p?`,
|
|
59
|
-
"as_guardrail": true`:``}${te}
|
|
60
|
-
}
|
|
61
|
-
EOF`,language:`bash`})}),(0,$.jsx)(l,{children:`Response:`}),(0,$.jsx)(r,{className:`markdown`,width:`full`,children:(0,$.jsx)(O,{code:JSON.stringify({status:`processed`,passed:!0,score:1,details:`possible explanation`},null,2),language:`json`})})]})})]})]})}var yt=({runOn:e,append:t,remove:n,fields:o,label:s=`Preconditions`,helper:c=`Conditions that must be met for this check to run`})=>{let{control:d,watch:f,setValue:p,formState:m}=me(),h=f(`preconditions`),g=Y(f(`checkType`)),_=qe(),v=(e,t)=>{let n=t,r=h[e]?.rule;if(r&&!Je(n,r)){let t=Ye(n);t.length>0&&p(`preconditions.${e}.rule`,t[0])}Qe(n)===`boolean`&&p(`preconditions.${e}.value`,`true`),p(`preconditions.${e}.key`,void 0),p(`preconditions.${e}.subkey`,void 0)};return(0,$.jsx)(q,{label:s,helper:c,children:(0,$.jsxs)(u,{align:`start`,gap:4,children:[g?.requiredFields.includes(`contexts`)&&(0,$.jsx)(r,{borderLeft:`4px solid`,borderLeftColor:`blue.400`,width:`full`,children:(0,$.jsxs)(u,{borderLeftColor:`reset`,padding:3,width:`full`,align:`start`,position:`relative`,children:[(0,$.jsx)(l,{children:`Requires RAG Contexts`}),(0,$.jsx)(l,{color:`fg.muted`,fontStyle:`italic`,children:`This evaluator will only run if the RAG contexts are provided`})]})}),g?.requiredFields.includes(`expected_output`)&&(0,$.jsx)(r,{borderLeft:`4px solid`,borderLeftColor:`blue.400`,width:`full`,children:(0,$.jsxs)(u,{borderLeftColor:`reset`,padding:3,width:`full`,align:`start`,position:`relative`,children:[(0,$.jsx)(l,{children:`Requires an Expected Output`}),(0,$.jsx)(l,{color:`fg.muted`,fontStyle:`italic`,children:`This evaluator will only run if the expected output is provided`})]})}),g?.requiredFields.includes(`expected_contexts`)&&(0,$.jsx)(r,{borderLeft:`4px solid`,borderLeftColor:`blue.400`,width:`full`,children:(0,$.jsxs)(u,{borderLeftColor:`reset`,padding:3,width:`full`,align:`start`,position:`relative`,children:[(0,$.jsx)(l,{children:`Requires Expected Contexts`}),(0,$.jsx)(l,{color:`fg.muted`,fontStyle:`italic`,children:`This evaluator will only run if the expected contexts are provided`})]})}),o.map((e,t)=>{let o=h[t]?.field,s=Ye(o),c=Qe(o),f=$e(o);return(0,$.jsxs)(r,{borderLeft:`4px solid`,borderLeftColor:`blue.400`,width:`full`,children:[(0,$.jsxs)(u,{borderLeftColor:`reset`,padding:3,width:`full`,align:`start`,position:`relative`,children:[(0,$.jsx)(i,{position:`absolute`,right:0,top:0,padding:0,size:`sm`,variant:`ghost`,onClick:()=>n(t),color:`fg.subtle`,children:(0,$.jsx)(Ie,{})}),(0,$.jsx)(Ue,{children:t==0?`When`:`and`}),(0,$.jsxs)(a,{gap:2,flexWrap:`wrap`,children:[(0,$.jsxs)(F,{minWidth:`fit-content`,children:[(0,$.jsx)(I,{...d.register(`preconditions.${t}.field`,{onChange:e=>{v(t,e.target.value)}}),children:_.map(e=>(0,$.jsx)(`optgroup`,{label:e.category,children:e.fields.map(e=>(0,$.jsx)(`option`,{value:e.value,children:e.label},e.value))},e.category))}),(0,$.jsx)(P,{})]}),f&&(0,$.jsx)(G,{...d.register(`preconditions.${t}.key`),placeholder:f.label,minWidth:`120px`,maxWidth:`200px`}),(0,$.jsxs)(F,{minWidth:`fit-content`,children:[(0,$.jsx)(I,{...d.register(`preconditions.${t}.rule`),children:s.map(e=>(0,$.jsx)(`option`,{value:e,children:Ze[e]},e))}),(0,$.jsx)(P,{})]})]}),(0,$.jsx)(a,{width:`full`,children:c===`boolean`?(0,$.jsxs)(F,{minWidth:`fit-content`,children:[(0,$.jsxs)(I,{...d.register(`preconditions.${t}.value`),children:[(0,$.jsx)(`option`,{value:`true`,children:`true`}),(0,$.jsx)(`option`,{value:`false`,children:`false`})]}),(0,$.jsx)(P,{})]}):(0,$.jsxs)($.Fragment,{children:[h[t]?.rule.includes(`regex`)&&(0,$.jsx)(l,{fontSize:`16px`,children:`/`}),(0,$.jsx)(G,{...d.register(`preconditions.${t}.value`),placeholder:h[t]?.rule.includes(`regex`)?`regex`:`text`}),h[t]?.rule.includes(`regex`)&&(0,$.jsx)(l,{fontSize:`16px`,children:`/gi`})]})})]}),m.errors.preconditions?.[t]?.value&&(0,$.jsx)(l,{color:`red.500`,fontSize:`12px`,paddingLeft:4,children:m.errors.preconditions?.[t]?.value.message})]},e.id)}),e,(0,$.jsx)(i,{onClick:()=>t({field:`output`,rule:`contains`,value:``}),children:`Add Precondition`})]})})},bt=e(g()),xt=e(at()),St=U(`langwatch:evaluations:preconditions`);function Ct({field:e,data:t,key:n,subkey:r,value:i}){let a=Xe[e];return a==null?null:a(t,i,n,r)}function wt({rule:e,fieldValue:t,conditionValue:n}){switch(e){case`is`:return Tt({fieldValue:t,conditionValue:n});case`contains`:return Et({fieldValue:t,conditionValue:n});case`not_contains`:return Dt({fieldValue:t,conditionValue:n});case`matches_regex`:return Ot({fieldValue:t,conditionValue:n});default:return!1}}function Tt({fieldValue:e,conditionValue:t}){return e==null?!1:Array.isArray(e)?e.some(e=>e.toLowerCase()===t.toLowerCase()):e.toLowerCase()===t.toLowerCase()}function Et({fieldValue:e,conditionValue:t}){return e==null?!1:Array.isArray(e)?e.some(e=>e.toLowerCase().includes(t.toLowerCase())):e.toLowerCase().includes(t.toLowerCase())}function Dt({fieldValue:e,conditionValue:t}){return e==null?!0:Array.isArray(e)?!e.some(e=>e.toLowerCase().includes(t.toLowerCase())):!e.toLowerCase().includes(t.toLowerCase())}function Ot({fieldValue:e,conditionValue:t}){if(e==null)return!1;try{if(!(0,xt.default)(t))throw Error(`Invalid regex`);let n=Array.isArray(e)?JSON.stringify(e):e;return new RegExp(t,`gi`).test(n)}catch(e){return St.error({error:e,precondition:t},`Invalid regex in preconditions`),!1}}function kt({evaluatorType:e,spans:t,expectedOutput:n}){let r=Y(e);return!(r?.requiredFields.includes(`contexts`)&&!t.some(e=>e.type===`rag`&&Be(e.contexts).length>0)||r?.requiredFields.includes(`expected_output`)&&!n)}function At({traceData:e,preconditions:t}){let n=et(e);for(let e of t){let t=Ct({field:e.field,data:n,key:e.key,subkey:e.subkey,value:e.value});if(!wt({rule:e.rule,fieldValue:t,conditionValue:e.value}))return!1}return!0}function jt({trace:e,spans:t,events:n}){let r={};if(e.metadata?.custom)for(let[t,n]of Object.entries(e.metadata.custom))r[t]=n==null?null:String(n);return{input:e.input?.value??null,output:e.output?.value??null,origin:e.origin??null,hasError:!!e.error,userId:e.metadata?.user_id??null,threadId:e.metadata?.thread_id??null,customerId:e.metadata?.customer_id??null,labels:e.metadata?.labels??null,promptIds:e.metadata?.prompt_ids??null,topicId:e.metadata?.topic_id??null,subTopicId:e.metadata?.subtopic_id??null,spanTypes:t.map(e=>e.type),spanModels:t.map(e=>e.model).filter(e=>typeof e==`string`&&e!==``),customMetadata:Object.keys(r).length>0?r:null,annotationIds:[],events:n?.map(e=>({event_type:e.event_type,metrics:e.metrics??[],event_details:e.event_details??[]}))??null}}function Mt({form:e}){let{project:t}=K(),{watch:r}=e,o=xe(`gray.400`),d=r(`checkType`),f=r(`preconditions`),p=r(`settings`),m=r(`mappings`),h=d&&Y(d),[g,te]=W(``,300),{period:{startDate:S,endDate:C},mode:O,setPeriod:k,setRelativePeriod:ie}=v(),{filterParams:ae}=_(),{openDrawer:A}=Ce(),[j,ue]=(0,X.useState)(Math.random()*1e3),[P,F]=(0,X.useState)(void 0),I=H.traces.getSampleTraces.useQuery({...ae,...P,query:g,expectedResults:10,sortBy:`random.${j}`},{enabled:!!ae.projectId&&!!P,refetchOnMount:!1,refetchOnWindowFocus:!1});(0,X.useEffect)(()=>{F({preconditions:f,evaluatorType:d})},[]);let fe=I.data?.every(e=>e.passesPreconditions)??!1,L=I.data?.map(e=>(()=>{if(!d)return!1;let t=e.spans??[];return kt({evaluatorType:d,spans:t,expectedOutput:e.expected_output})?At({traceData:jt({trace:e,spans:t}),preconditions:f}):!1})())??[],R=L.findIndex(e=>e),[z,B]=(0,X.useState)({}),[V,U]=(0,X.useState)({state:`idle`}),pe=H.evaluations.runEvaluation.useMutation();(0,X.useEffect)(()=>{B({}),U({state:`idle`})},[I.data]),(0,X.useEffect)(()=>{if(!t||!d||V.state!==`running`)return;B(e=>({...e,[V.nextTraceId]:{status:`loading`}}));let e=()=>{let e=[...Object.keys(z),V.nextTraceId],t=L.findIndex((t,n)=>t&&!e.includes(I.data?.[n]?.trace_id??``)),n=I.data?.[t]?.trace_id;if(!n){U({state:`idle`});return}U(e=>({...e,nextTraceId:n}))},n;try{n=J.shape[d].shape.settings.parse(p)}catch(e){if(Object.keys(h?.settings??{}).length===0)n={};else{x.create({title:`Invalid evaluator settings`,description:`Please check your settings and try again.`,type:`error`,meta:{closable:!0}}),console.error(e);return}}pe.mutate({projectId:t.id,evaluatorType:d,traceId:V.nextTraceId,settings:n,mappings:m},{onSuccess:t=>{B(e=>({...e,[V.nextTraceId]:t})),e()},onError:t=>{B(e=>({...e,[V.nextTraceId]:{status:`error`,error_type:typeof t,details:t.message,traceback:[]}})),e()}})},[V.state,V.nextTraceId]);let me=Object.values(z).reduce((e,t)=>e+(t.status===`processed`?t.cost?.amount??0:0),0),he=h?.result.label;return(0,$.jsxs)(u,{width:`full`,gap:6,marginTop:6,children:[(0,$.jsxs)(a,{width:`full`,align:`end`,children:[(0,$.jsx)(c,{as:`h2`,size:`lg`,textAlign:`center`,paddingTop:4,children:`Try it out`}),(0,$.jsx)(de,{}),(0,$.jsx)(He,{maxWidth:`350px`,borderColor:`border.emphasized`,startElement:(0,$.jsx)(Fe,{color:o,width:16}),children:(0,$.jsx)(G,{name:`query`,type:`search`,placeholder:`Search`,_placeholder:{color:`gray.800`},fontSize:`14px`,paddingY:1.5,height:`auto`,onChange:e=>te(e.target.value)})}),(0,$.jsx)(y,{period:{startDate:S,endDate:C},mode:O,setPeriod:k,setRelativePeriod:ie}),(0,$.jsx)(st,{})]}),d===`presidio/pii_detection`&&(0,$.jsxs)(oe,{children:[(0,$.jsx)(se,{}),(0,$.jsx)(ce,{children:(0,$.jsxs)(l,{children:[`Heads up! Since LangWatch already redacts PII, you won`,`'`,`t see any bad examples here. You can still try it though.`]})})]}),(0,$.jsxs)(a,{width:`full`,align:`start`,gap:6,paddingBottom:6,children:[(0,$.jsxs)(M,{width:`full`,minHeight:`400px`,children:[(0,$.jsx)(le,{children:(0,$.jsxs)(a,{gap:4,children:[(0,$.jsx)(l,{fontWeight:`500`,children:I.isLoading?`Fetching samples...`:`Fetched ${(I.data??[]).length} random sample messages${f.length>0&&fe?` passing preconditions`:``}`}),(0,$.jsx)(de,{}),(0,$.jsxs)(i,{onClick:()=>{F({preconditions:f,evaluatorType:d}),ue(Math.random()*1e3)},size:`sm`,children:[(0,$.jsx)(Pe,{size:16,className:I.isLoading?`refresh-icon animation-spinning`:`refresh-icon`}),`Shuffle`]}),(0,$.jsxs)(i,{colorPalette:`orange`,size:`sm`,disabled:R===-1,onClick:()=>{if(V.state===`idle`){let e=I.data?.[R]?.trace_id;if(!e)return;B({}),U({state:`running`,nextTraceId:e})}else V.state===`paused`?U({state:`running`,nextTraceId:V.nextTraceId}):U({state:`paused`,nextTraceId:``})},children:[V.state===`running`?(0,$.jsx)(n,{size:`sm`}):V.state===`paused`?(0,$.jsx)(mt,{size:16}):(0,$.jsx)(Ne,{size:16}),V.state===`running`?`Running...`:V.state===`paused`?`Paused`:`Run on samples`]})]})}),(0,$.jsx)(N,{paddingX:2,paddingTop:0,children:(0,$.jsx)(u,{width:`full`,align:`start`,gap:6,children:(0,$.jsxs)(ne,{variant:`line`,children:[(0,$.jsx)(w,{children:(0,$.jsxs)(D,{children:[(0,$.jsx)(E,{width:`180px`,children:`Timestamp`}),(0,$.jsx)(E,{width:`225px`,children:`Input`}),(0,$.jsx)(E,{width:`225px`,children:`Output`}),h?.isGuardrail?(0,$.jsx)(E,{width:`120px`,children:`Passed`}):h?.result.score?(0,$.jsx)(E,{width:`120px`,children:`Score`}):null,d?.startsWith(`custom/`)?(0,$.jsx)(E,{width:`120px`,children:`Passed`}):null,d?.startsWith(`custom/`)?(0,$.jsx)(E,{width:`120px`,children:`Score`}):null,he&&(0,$.jsx)(E,{width:`120px`,children:`Label`}),(0,$.jsx)(E,{width:`250px`,children:`Details`}),(0,$.jsx)(E,{width:`120px`,children:`Cost`})]})}),(0,$.jsxs)(re,{children:[I.data?.map((e,t)=>{let r=L[t],i=z[e.trace_id],a=i&&i.status!==`loading`?Oe(i):void 0,o=i&&`details`in i?i.details:``;return(0,$.jsx)(b,{showArrow:!0,positioning:{placement:`top`},content:r?void 0:`Entry does not match the pre-conditions`,children:(0,$.jsxs)(D,{role:`button`,cursor:`pointer`,background:r?void 0:`gray.100`,color:r?void 0:`gray.400`,children:[(0,$.jsx)(T,{maxWidth:`180px`,onClick:()=>A(`traceDetails`,{traceId:e.trace_id}),children:new Date(e.timestamps.started_at).toLocaleDateString(void 0,{month:`numeric`,day:`numeric`})+`, `+new Date(e.timestamps.started_at).toLocaleTimeString(void 0,{hour:`numeric`,minute:`numeric`})}),(0,$.jsx)(T,{maxWidth:`225px`,onClick:()=>A(`traceDetails`,{traceId:e.trace_id}),children:(0,$.jsx)(b,{content:r?e.input?.value??``:void 0,children:(0,$.jsx)(ee,{field:`input`,children:(0,$.jsx)(l,{lineClamp:1,wordBreak:`break-all`,display:`block`,children:e.input?.value??`<empty>`})})})}),e.error?(0,$.jsx)(T,{maxWidth:`225px`,onClick:()=>A(`traceDetails`,{traceId:e.trace_id}),children:(0,$.jsxs)(l,{lineClamp:1,maxWidth:`250px`,display:`block`,color:`red.400`,children:[`Error`,e.error.message?`: `:``,e.error.message]})}):(0,$.jsx)(T,{maxWidth:`225px`,onClick:()=>A(`traceDetails`,{traceId:e.trace_id}),children:(0,$.jsx)(b,{content:r?e.output?.value:void 0,children:(0,$.jsx)(ee,{field:`output`,children:(0,$.jsx)(l,{lineClamp:1,display:`block`,maxWidth:`250px`,children:(e.output?.value??``).trim()===``?`<empty>`:e.output?.value})})})}),i?(0,$.jsxs)($.Fragment,{children:[i.status===`loading`?(0,$.jsx)(T,{maxWidth:`120`,children:(0,$.jsx)(n,{size:`sm`})}):i.status===`skipped`?(0,$.jsx)(T,{maxWidth:`120`,color:a,children:`Skipped`}):i.status===`error`?(0,$.jsx)(T,{maxWidth:`120`,color:a,children:`Error`}):d?.startsWith(`custom/`)?(0,$.jsx)(T,{maxWidth:`120`,color:a,children:`passed`in i?i.passed?`Pass`:`Fail`:`-`}):h?.isGuardrail?(0,$.jsx)(T,{maxWidth:`120`,color:a,children:i.passed?`Pass`:`Fail`}):h?.result.score?(0,$.jsx)(T,{maxWidth:`120`,color:a,children:(0,bt.default)(i.score).format(`0.[00]`)}):null,d?.startsWith(`custom/`)?(0,$.jsx)(T,{maxWidth:`120`,color:a,children:`score`in i?(0,bt.default)(i.score).format(`0.[00]`):`-`}):null,he&&(h?.isGuardrail||!!h?.result.score||i.status===`processed`)&&(0,$.jsx)(T,{maxWidth:`120`,color:a,children:`label`in i?i.label:`-`}),d?.startsWith(`custom/`)?(0,$.jsx)(T,{maxWidth:`120`,color:a,children:`score`in i?(0,bt.default)(i.score).format(`0.[00]`):`-`}):null]}):t==R?(0,$.jsx)(T,{maxWidth:`120`,children:`Waiting to run`}):(0,$.jsx)(T,{maxWidth:`120`}),(0,$.jsx)(T,{color:a,maxWidth:`250px`,children:i&&(o?(0,$.jsx)(We,{lineClamp:3,children:o}):i.status===`loading`?``:`-`)}),(0,$.jsx)(T,{maxWidth:`120px`,children:i&&(i.status===`processed`?ot(i.cost??{amount:0,currency:`USD`}):i.status===`loading`?``:`-`)})]})},e.trace_id)}),I.isLoading&&Array.from({length:10}).map((e,t)=>(0,$.jsx)(D,{children:Array.from({length:6}).map((e,t)=>(0,$.jsx)(T,{children:(0,$.jsx)(s,{height:`20px`})},t))},t)),I.isFetched&&I.data?.length===0&&(0,$.jsx)(D,{children:(0,$.jsx)(T,{colSpan:5,children:`No messages found, try selecting different filters and dates`})}),(0,$.jsxs)(D,{children:[(0,$.jsx)(T,{colSpan:5,textAlign:`right`,fontWeight:500,children:`Total Cost:`}),(0,$.jsx)(T,{children:Object.values(z).filter(e=>e.status!==`loading`).length>0?ot({amount:me,currency:Object.values(z).filter(e=>e.status===`processed`&&e.cost)[0]?.cost.currency??`USD`}):`-`})]})]})]})})})]}),(0,$.jsx)(ct,{})]})]})}function Nt({checkId:e,defaultValues:t,onSubmit:n,loading:r}){let{project:o}=K(),s=H.monitors.isNameAvailable.useMutation(),[c,g]=(0,X.useState)(!1),_=H.modelProvider.getResolvedDefault.useQuery({projectId:o?.id??``,featureKey:`prompt.create_default`},{enabled:!!o?.id}),v=H.modelProvider.getResolvedDefault.useQuery({projectId:o?.id??``,featureKey:`analytics.topic_clustering_embeddings`},{enabled:!!o?.id}),ee=async t=>{let n=await s.mutateAsync({projectId:o?.id??``,name:t,checkId:e});return g(!n.available),n.available},y=_e({defaultValues:t,resolver:(e,t,n)=>Le(be({name:ye().min(1).max(255).refine(ee),checkType:Ge,sample:Se().min(.01).max(1),preconditions:ut,settings:e.checkType?.startsWith(`custom/`)?be({}).optional():J.shape[e.checkType??`langevals/basic`].shape.settings,executionMode:Te([Q.EvaluationExecutionMode.ON_MESSAGE,Q.EvaluationExecutionMode.AS_GUARDRAIL,Q.EvaluationExecutionMode.MANUALLY]).optional(),mappings:ze}))({...e,settings:e.settings||{}},t,n)}),{register:x,handleSubmit:ne,watch:S,control:C,formState:{errors:w}}=y,T=S(`checkType`),re=S(`preconditions`),E=S(`name`),D=S(`sample`),O=S(`executionMode`),k=S(`storeSettingsOnCode`),j=S(`mappings`)??ht,le=S(`settings`);(0,X.useEffect)(()=>{j&&!j.mapping&&y.setValue(`mappings`,gt(j))},[y,j]);let{fields:ue,append:fe,remove:L}=ge({control:C,name:`preconditions`}),R=Re(E||``,{lower:!0,strict:!0}),z=pe(),B=z.pathname.endsWith(`/choose`),V=lt();(0,X.useEffect)(()=>{!T&&!B&&z.replace({pathname:z.pathname+`/choose`,query:z.query})},[T,B,z]),(0,X.useEffect)(()=>{if(!V||t?.settings&&t.checkType===T||!T)return;let e=Y(T)?.name;e=nt[e??``]??e;let n=Object.values(V).map(e=>nt[e.name]??e.name);(!E||n.includes(E))&&y.setValue(`name`,T.includes(`custom`)?``:e??``);let r=(e,t)=>{e&&Object.entries(e).forEach(([e,n])=>{typeof n==`object`&&!Array.isArray(n)&&n!==null?r(n,`${t}.${e}`):y.setValue(`${t}.${e}`,n)})};r(Ke(V[T],{defaultModel:_.data?.model??null,embeddingsModel:v.data?.model??null}),`settings`)},[T,t?.checkType,t?.settings,_.data?.model,v.data?.model]);let[U,me]=(0,X.useState)((T?.startsWith(`custom/`),[])),xe=(0,$.jsxs)(l,{color:`fg.muted`,fontStyle:`italic`,children:[`This check will run on`,` `,D>=1?`every message`:`${+(D*100).toFixed(2)}% of messages`,re?.length>0&&` matching the preconditions`]}),W=(0,X.useMemo)(()=>T&&V?.[T],[T,V]),Ce=(0,X.useMemo)(()=>[...W?.requiredFields??[],...W?.optionalFields??[]],[W]);return(0,$.jsx)(he,{...y,children:(0,$.jsx)(`form`,{onSubmit:ne(e=>n(e)),style:{width:`100%`},children:!T||B||!V?(0,$.jsx)(rt,{form:y}):(0,$.jsxs)(u,{gap:6,align:`start`,width:`full`,children:[(0,$.jsx)(M,{width:`full`,children:(0,$.jsx)(N,{children:(0,$.jsxs)(u,{gap:0,children:[(0,$.jsx)(q,{label:`Evaluation Type`,helper:`Select the evaluation to run`,invalid:!!w.checkType,children:(0,$.jsxs)(u,{align:`start`,width:`full`,children:[(0,$.jsxs)(a,{gap:0,width:`full`,children:[(0,$.jsx)(l,{children:nt[V[T].name]??V[T].name}),(0,$.jsx)(i,{variant:`ghost`,size:`xs`,onClick:()=>{z.push({pathname:z.pathname+`/choose`,query:z.query})},marginLeft:4,fontWeight:`normal`,color:`fg.muted`,children:(0,$.jsx)(ke,{size:14})})]}),(0,$.jsx)(l,{fontSize:`12px`,color:`fg.muted`,children:V[T].description}),T.startsWith(`legacy/`)&&(0,$.jsxs)(oe,{status:`warning`,children:[(0,$.jsx)(se,{}),(0,$.jsx)(ce,{children:(0,$.jsxs)(l,{fontSize:`13px`,children:[`You are using a legacy evaluator version, please click the `,(0,$.jsx)(`b`,{children:`change`}),` button above to select a newer version or a replacement for this evaluator.`]})})]})]})}),(0,$.jsx)(q,{label:`Name`,helper:`Used to identify the check and call it from the API`,invalid:!!w.name,align:`start`,children:(0,$.jsxs)(u,{gap:2,align:`start`,children:[(0,$.jsx)(G,{id:`name`,...x(`name`,{required:!0})}),c&&(0,$.jsx)(l,{color:`red.500`,fontSize:`13px`,children:`An evaluation with the same name already exists, please choose a different name to have a different slug identifier as well`}),(0,$.jsxs)(l,{fontSize:`12px`,paddingLeft:4,children:[E&&`slug: `,R]})]})}),T&&J.shape[T]&&(0,$.jsx)(tt,{schema:J.shape[T].shape.settings,evaluatorType:T,prefix:`settings`,errors:w.settings,skipFields:[`max_tokens`]})]})})}),(0,$.jsx)(M,{width:`full`,padding:0,children:(0,$.jsxs)(N,{padding:0,children:[(0,$.jsxs)(u,{paddingX:4,gap:0,children:[(0,$.jsx)(q,{label:`Execution Mode`,helper:`Configure when this evaluation is executed`,invalid:!!w.executionMode,align:`start`,_last:{borderBottomWidth:`1px`},children:(0,$.jsxs)(F,{children:[(0,$.jsxs)(I,{...x(`executionMode`),children:[(0,$.jsx)(`option`,{value:Q.EvaluationExecutionMode.ON_MESSAGE,children:`When message arrives`}),W?.isGuardrail&&(0,$.jsx)(`option`,{value:Q.EvaluationExecutionMode.AS_GUARDRAIL,children:`As a Guardrail`}),(0,$.jsx)(`option`,{value:Q.EvaluationExecutionMode.MANUALLY,children:`Manually`})]}),(0,$.jsx)(P,{})]})}),O!==Q.EvaluationExecutionMode.ON_MESSAGE&&(0,$.jsx)(vt,{slug:R,evaluatorDefinition:V[T],form:y,checkType:T,name:E,executionMode:O,settings:le,storeSettingsOnCode:k})]}),O===Q.EvaluationExecutionMode.ON_MESSAGE&&(0,$.jsx)(d,{value:U,onValueChange:({value:e})=>{me(e)},multiple:!0,children:(0,$.jsxs)(h,{value:`0`,children:[(0,$.jsxs)(f,{padding:4,paddingBottom:6,children:[(0,$.jsx)(ie,{children:(0,$.jsxs)(u,{align:`start`,gap:1,children:[(0,$.jsx)(A,{margin:0,children:`Execution Settings`}),(0,$.jsx)(ae,{margin:0,fontSize:`13px`,children:`Configure how and when this evaluation is executed when a new message arrives`})]})}),(0,$.jsx)(m,{children:(0,$.jsx)(te,{})})]}),(0,$.jsxs)(p,{paddingX:4,children:[(0,$.jsx)(q,{label:`Mappings`,helper:`Map which fields from the trace will be used to run the evaluation`,children:(0,$.jsx)(_t,{targetFields:Ce,traceMapping:j,setTraceMapping:e=>{y.setValue(`mappings`,e)}})}),(0,$.jsx)(yt,{runOn:re?.length===0&&!W?.requiredFields.includes(`contexts`)?D==1?xe:(0,$.jsx)(l,{color:`fg.muted`,fontStyle:`italic`,children:`No preconditions defined`}):null,append:fe,remove:L,fields:ue}),T&&J.shape[T]&&(0,$.jsx)(tt,{schema:J.shape[T].shape.settings,evaluatorType:T,prefix:`settings`,errors:w.settings,onlyFields:[`max_tokens`]}),(0,$.jsx)(q,{label:`Sampling`,helper:`Run this check only on a sample of messages (min 0.01, max 1.0)`,invalid:!!w.sample,align:`start`,children:(0,$.jsx)(ve,{control:C,name:`sample`,render:({field:e})=>(0,$.jsxs)(u,{align:`start`,children:[(0,$.jsxs)(a,{children:[(0,$.jsx)(G,{width:`110px`,type:`number`,min:`0`,max:`1`,step:`0.1`,placeholder:`0.0`,...e,onChange:t=>e.onChange(+t.target.value)}),(0,$.jsx)(b,{content:`You can use this to save costs on expensive checks if you have too many messages incomming. From 0.01 to run on 1% of the messages to 1.0 to run on 100% of the messages`,children:(0,$.jsx)(Ae,{width:`14px`})})]}),xe]})})})]})]})})]})}),(0,$.jsxs)(a,{width:`full`,children:[(0,$.jsx)(de,{}),(0,$.jsx)(b,{content:k?`You checked the "Store the settings on code" option, so the evaluation is configured directly on your codebase, saving is disabled`:void 0,children:(0,$.jsx)(i,{colorPalette:`orange`,type:`submit`,minWidth:`92px`,loading:r,disabled:k,children:`Save`})})]}),(0,$.jsx)(Mt,{form:y})]})})})}function Pt(){let{project:e}=K(),t=pe(),n=typeof t.query.id==`string`?t.query.id:``,r=H.monitors.getById.useQuery({id:n,projectId:e?.id??``},{enabled:!!e}),o=H.monitors.update.useMutation(),l=H.monitors.delete.useMutation(),[d,f]=(0,X.useState)(!1),p=async i=>{if(!(!e||!i.checkType))try{await o.mutateAsync({...i,checkType:i.checkType,id:n,projectId:e.id}),x.create({title:`Check updated successfully`,type:`success`,meta:{closable:!0}}),t.push(`/${e.slug}/online-evaluations`),r.remove()}catch{x.create({title:`Failed to update check`,description:`Please try again`,type:`error`,meta:{closable:!0}})}},m=()=>{e&&f(!0)},h=r.data?{...r.data,checkType:r.data.checkType,preconditions:r.data.preconditions,settings:r.data.parameters,mappings:r.data.mappings}:void 0;return(0,$.jsxs)(j,{children:[(0,$.jsx)(k,{open:d,onOpenChange:f,title:`Delete check`,message:`Are you sure you want to delete this check?`,confirmLabel:`Delete`,tone:`danger`,loading:l.isLoading,onConfirm:()=>{e&&l.mutate({id:n,projectId:e.id},{onSuccess:()=>{x.create({title:`Check deleted successfully`,type:`success`,meta:{closable:!0}}),t.push(`/${e.slug}/online-evaluations`)},onError:()=>{x.create({title:`Failed to delete check`,description:`Please try again`,type:`error`,meta:{closable:!0}})},onSettled:()=>f(!1)})}}),(0,$.jsx)(ue,{maxWidth:`1200`,padding:6,children:(0,$.jsxs)(u,{align:`start`,gap:4,children:[(0,$.jsxs)(a,{align:`end`,width:`full`,children:[(0,$.jsx)(c,{as:`h1`,size:`xl`,textAlign:`center`,paddingTop:4,children:`Editing Evaluation`}),(0,$.jsx)(de,{}),(0,$.jsxs)(S.Root,{children:[(0,$.jsx)(S.Trigger,{asChild:!0,children:(0,$.jsx)(i,{children:(0,$.jsx)(Me,{})})}),(0,$.jsx)(S.Content,{children:(0,$.jsx)(S.Item,{value:`delete`,color:`red.fg`,onClick:m,children:`Delete Check`})})]})]}),r.isLoading?(0,$.jsx)(M,{width:`full`,children:(0,$.jsx)(N,{children:(0,$.jsxs)(u,{gap:4,width:`full`,children:[(0,$.jsx)(s,{width:`full`,height:`20px`}),(0,$.jsx)(s,{width:`full`,height:`20px`}),(0,$.jsx)(s,{width:`full`,height:`20px`})]})})}):r.isError?(0,$.jsxs)(oe,{status:`error`,children:[(0,$.jsx)(se,{}),(0,$.jsx)(ce,{children:`An error has occurred trying to load the check configs`})]}):(0,$.jsx)(Nt,{checkId:n,defaultValues:h,onSubmit:p,loading:o.isLoading})]})})]})}export{Pt as default};
|
|
62
|
-
//# sourceMappingURL=edit-CswmqyLU.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n}from"./portal-Sdfvrza9.js";import{t as r}from"./jsx-runtime-CFwixLRt.js";import{t as i}from"./heading-C0sACr0w.js";import{n as a,t as o}from"./v-stack-hkuSkmCA.js";import{t as s}from"./badge-Cpc3eA-C.js";import{d as c,n as l}from"./toaster-BsYkODqs.js";import{$ as u,K as d,Q as f,X as p,Y as m,Z as h,et as g}from"./Markdown-C9extmbX.js";import{r as _,t as v}from"./card-By_Mbslh.js";import{a as y,i as b,n as x,r as S,t as C}from"./empty-state-T8EYr5NF.js";import{n as w}from"./api-l6Cnm0vQ.js";import{Vt as T}from"./index-CPtTUYLD.js";import{t as E}from"./WithPermissionGuard-Cr6Aljmy.js";import{t as D}from"./SettingsLayout-sixsNIX_.js";var O=c(`mail-x`,[[`path`,{d:`M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h9`,key:`1j9vog`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`m17 17 4 4`,key:`1b3523`}],[`path`,{d:`m21 17-4 4`,key:`uinynz`}]]),k=r();function A(){let{project:e,hasPermission:t}=T();return e?(0,k.jsx)(M,{projectId:e.id,canManage:t(`triggers:manage`)}):null}var j=E(`triggers:view`,{layoutComponent:D})(A);function M({projectId:r,canManage:c}){let T=w.useUtils(),E=w.emailSuppression.getAll.useQuery({projectId:r}),D=w.emailSuppression.remove.useMutation({onSuccess:async()=>{await T.emailSuppression.getAll.invalidate({projectId:r}),l.create({title:`Suppression removed`,type:`success`})},onError:()=>{l.create({title:`Could not remove suppression`,type:`error`})}});return(0,k.jsxs)(o,{align:`stretch`,gap:6,width:`full`,maxW:`container.lg`,padding:6,children:[(0,k.jsxs)(o,{align:`start`,gap:1,children:[(0,k.jsx)(i,{size:`lg`,children:`Email Suppressions`}),(0,k.jsx)(a,{color:`fg.muted`,children:`Recipients who unsubscribed from this project's trigger notifications. Removing an entry resumes delivery to that address.`})]}),(0,k.jsx)(_,{children:(0,k.jsx)(v,{children:E.isLoading?(0,k.jsx)(n,{justify:`center`,padding:8,children:(0,k.jsx)(e,{})}):E.isError?(0,k.jsxs)(o,{align:`center`,gap:3,padding:8,children:[(0,k.jsx)(a,{color:`fg.error`,children:`Could not load suppressions. Please try again.`}),(0,k.jsx)(t,{size:`sm`,variant:`outline`,onClick:()=>void E.refetch(),loading:E.isRefetching,children:`Retry`})]}):!E.data||E.data.length===0?(0,k.jsx)(b,{children:(0,k.jsxs)(C,{children:[(0,k.jsx)(S,{children:(0,k.jsx)(O,{})}),(0,k.jsx)(y,{children:`No suppressions yet`}),(0,k.jsx)(x,{children:`When a recipient unsubscribes from a notification, they appear here.`})]})}):(0,k.jsxs)(u,{size:`sm`,children:[(0,k.jsx)(f,{children:(0,k.jsxs)(g,{children:[(0,k.jsx)(h,{children:`Email`}),(0,k.jsx)(h,{children:`Scope`}),(0,k.jsx)(h,{children:`Date`}),(0,k.jsx)(h,{})]})}),(0,k.jsx)(m,{children:E.data.map(e=>(0,k.jsxs)(g,{children:[(0,k.jsx)(p,{children:e.email}),(0,k.jsx)(p,{children:e.triggerId==null?(0,k.jsx)(s,{colorPalette:`red`,children:`All notifications`}):(0,k.jsx)(s,{colorPalette:`gray`,children:e.triggerName??`Notification`})}),(0,k.jsx)(p,{children:new Date(e.createdAt).toLocaleDateString()}),(0,k.jsx)(p,{textAlign:`end`,children:c&&(0,k.jsx)(t,{size:`xs`,variant:`ghost`,loading:D.isPending&&D.variables?.id===e.id,onClick:()=>D.mutate({projectId:r,id:e.id}),"aria-label":`Remove suppression`,children:(0,k.jsx)(d,{size:14})})})]},e.id))})]})})})]})}export{j as default};
|
|
2
|
-
//# sourceMappingURL=email-suppressions-B8AuxWio.js.map
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as n}from"./src-7ugfKe9P.js";import{H as r,K as i,U as a,a as o,it as s,v as c,w as l,x as u,y as d}from"./chunk-WYO6CB5R-DrXopwXN.js";import{t as f}from"./channel-D3H3pkY4.js";import{f as p}from"./src-BC8fyS2p.js";import{c as m,g as h}from"./chunk-ICXQ74PX-CBGBbB0s.js";import"./chunk-HOUHSVGY-KCI5VyfN.js";import"./chunk-Q4XR5HBZ-Ckl7D0pA.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-OGEWGWER-tXhe91qF.js";import{t as g}from"./chunk-XXDRQBXY-B-zyTdG8.js";import{t as _}from"./chunk-VR4S4FIN-kgt10gXB.js";import"./chunk-C7G6YPKG-Cczu3qbd.js";import"./chunk-ZGVPDNZ5-_vNOpeVi.js";import"./chunk-52WLFC77-CyjMpySG.js";import{r as v,t as y}from"./chunk-FWX5IMBZ-vsHlz4qh.js";var b=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,23],c=[1,24],l=[1,25],u=[1,26],d=[1,27],f=[1,19],p=[1,28],m=[1,29],h=[1,20],g=[1,18],_=[1,21],v=[1,22],y=[1,36],b=[1,37],x=[1,38],S=[1,39],C=[1,40],w=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],T=[1,45],E=[1,46],D=[1,55],O=[40,48,50,51,52,71,72],k=[1,66],A=[1,64],j=[1,61],M=[1,65],N=[1,67],P=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],F=[66,67,68,69,70],I=[1,85],L=[1,84],R=[1,82],z=[1,83],B=[6,10,42,47],V=[6,10,13,41,42,47,48,49],H=[1,93],U=[1,92],W=[1,91],G=[19,58],K=[1,102],q=[1,101],J=[19,58,61,63],Y={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,13:`COLON`,15:`STYLE_SEPARATOR`,17:`BLOCK_START`,19:`BLOCK_STOP`,20:`SQS`,21:`SQE`,22:`title`,23:`title_value`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`direction_tb`,34:`direction_bt`,35:`direction_rl`,36:`direction_lr`,37:`CLASSDEF`,40:`UNICODE_TEXT`,41:`STYLE_TEXT`,42:`COMMA`,43:`CLASS`,44:`STYLE`,47:`SEMI`,48:`NUM`,49:`BRKT`,50:`ENTITY_NAME`,51:`DECIMAL_NUM`,52:`ENTITY_ONE`,58:`ATTRIBUTE_WORD`,59:`?`,61:`,`,62:`ATTRIBUTE_KEY`,63:`COMMENT`,66:`ZERO_OR_ONE`,67:`ZERO_OR_MORE`,68:`ONE_OR_MORE`,69:`ONLY_ONE`,70:`MD_PARENT`,71:`NON_IDENTIFYING`,72:`IDENTIFYING`,73:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]);break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]);break;case 11:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]);break;case 12:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 13:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]);break;case 16:r.addEntity(a[s]);break;case 17:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]);break;case 18:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]);break;case 19:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]);break;case 20:r.addEntity(a[s-5],a[s-3]);break;case 21:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]);break;case 22:r.addEntity(a[s-3],a[s-1]);break;case 23:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 24:case 25:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection(`TB`);break;case 33:r.setDirection(`BT`);break;case 34:r.setDirection(`RL`);break;case 35:r.setDirection(`LR`);break;case 36:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 37:case 38:case 59:case 68:this.$=[a[s]];break;case 39:case 40:this.$=a[s-2].concat([a[s]]);break;case 41:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 42:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 43:this.$=[a[s]];break;case 44:a[s-2].push(a[s]),this.$=a[s-2];break;case 46:this.$=a[s-1]+a[s];break;case 54:case 80:case 81:this.$=a[s].replace(/"/g,``);break;case 55:case 56:case 57:case 58:case 82:this.$=a[s];break;case 60:a[s].push(a[s-1]),this.$=a[s];break;case 61:this.$={type:a[s-1],name:a[s]};break;case 62:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 63:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 64:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 65:case 67:case 70:this.$=a[s];break;case 66:this.$=a[s-1]+a[s];break;case 69:a[s-2].push(a[s]),this.$=a[s-2];break;case 71:this.$=a[s].replace(/"/g,``);break;case 72:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:i,26:a,28:o,29:14,30:15,31:16,32:17,33:s,34:c,35:l,36:u,37:d,40:f,43:p,44:m,48:h,50:g,51:_,52:v},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:30,11:9,22:r,24:i,26:a,28:o,29:14,30:15,31:16,32:17,33:s,34:c,35:l,36:u,37:d,40:f,43:p,44:m,48:h,50:g,51:_,52:v},t(n,[2,5]),t(n,[2,6]),t(n,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:y,67:b,68:x,69:S,70:C}),{23:[1,41]},{25:[1,42]},{27:[1,43]},t(n,[2,27]),t(n,[2,28]),t(n,[2,29]),t(n,[2,30]),t(n,[2,31]),t(w,[2,54]),t(w,[2,55]),t(w,[2,56]),t(w,[2,57]),t(w,[2,58]),t(n,[2,32]),t(n,[2,33]),t(n,[2,34]),t(n,[2,35]),{16:44,40:T,41:E},{16:47,40:T,41:E},{16:48,40:T,41:E},t(n,[2,4]),{11:49,40:f,48:h,50:g,51:_,52:v},{16:50,40:T,41:E},{18:51,19:[1,52],53:53,54:54,58:D},{11:56,40:f,48:h,50:g,51:_,52:v},{65:57,71:[1,58],72:[1,59]},t(O,[2,73]),t(O,[2,74]),t(O,[2,75]),t(O,[2,76]),t(O,[2,77]),t(n,[2,24]),t(n,[2,25]),t(n,[2,26]),{13:k,38:60,41:A,42:j,45:62,46:63,48:M,49:N},t(P,[2,37]),t(P,[2,38]),{16:68,40:T,41:E,42:j},{13:k,38:69,41:A,42:j,45:62,46:63,48:M,49:N},{13:[1,70],15:[1,71]},t(n,[2,17],{64:35,12:72,17:[1,73],42:j,66:y,67:b,68:x,69:S,70:C}),{19:[1,74]},t(n,[2,14]),{18:75,19:[2,59],53:53,54:54,58:D},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:y,67:b,68:x,69:S,70:C},t(F,[2,78]),t(F,[2,79]),{6:I,10:L,39:81,42:R,47:z},{40:[1,86],41:[1,87]},t(B,[2,43],{46:88,13:k,41:A,48:M,49:N}),t(V,[2,45]),t(V,[2,50]),t(V,[2,51]),t(V,[2,52]),t(V,[2,53]),t(n,[2,41],{42:j}),{6:I,10:L,39:89,42:R,47:z},{14:90,40:H,50:U,73:W},{16:94,40:T,41:E},{11:95,40:f,48:h,50:g,51:_,52:v},{18:96,19:[1,97],53:53,54:54,58:D},t(n,[2,12]),{19:[2,60]},t(G,[2,61],{56:98,57:99,60:100,62:K,63:q}),t([19,58,62,63],[2,67]),{58:[2,66]},t(n,[2,22],{15:[1,104],17:[1,103]}),t([40,48,50,51,52],[2,72]),t(n,[2,36]),{13:k,41:A,45:105,46:63,48:M,49:N},t(n,[2,47]),t(n,[2,48]),t(n,[2,49]),t(P,[2,39]),t(P,[2,40]),t(V,[2,46]),t(n,[2,42]),t(n,[2,8]),t(n,[2,80]),t(n,[2,81]),t(n,[2,82]),{13:[1,106],42:j},{13:[1,108],15:[1,107]},{19:[1,109]},t(n,[2,15]),t(G,[2,62],{57:110,61:[1,111],63:q}),t(G,[2,63]),t(J,[2,68]),t(G,[2,71]),t(J,[2,70]),{18:112,19:[1,113],53:53,54:54,58:D},{16:114,40:T,41:E},t(B,[2,44],{46:88,13:k,41:A,48:M,49:N}),{14:115,40:H,50:U,73:W},{16:116,40:T,41:E},{14:117,40:H,50:U,73:W},t(n,[2,13]),t(G,[2,64]),{60:118,62:K},{19:[1,119]},t(n,[2,20]),t(n,[2,23],{17:[1,120],42:j}),t(n,[2,11]),{13:[1,121],42:j},t(n,[2,10]),t(J,[2,69]),t(n,[2,18]),{18:122,19:[1,123],53:53,54:54,58:D},{14:124,40:H,50:U,73:W},{19:[1,125]},t(n,[2,21]),t(n,[2,9]),t(n,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
-
`+h.showPosition()+`
|
|
3
|
-
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};Y.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
-
`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),24;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),26;case 3:return this.popState(),`acc_descr_value`;case 4:this.begin(`acc_descr_multiline`);break;case 5:this.popState();break;case 6:return`acc_descr_multiline_value`;case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 73;case 16:return 4;case 17:return this.begin(`block`),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 62;case 25:return 58;case 26:return 58;case 27:this.begin(`block_bq`);break;case 28:return 58;case 29:this.popState();break;case 30:return 63;case 31:break;case 32:return this.popState(),19;case 33:return t.yytext[0];case 34:return 20;case 35:return 21;case 36:return this.begin(`style`),44;case 37:return this.popState(),10;case 38:break;case 39:return 13;case 40:return 42;case 41:return 49;case 42:return this.begin(`style`),37;case 43:return 43;case 44:return 66;case 45:return 68;case 46:return 68;case 47:return 68;case 48:return 66;case 49:return 66;case 50:return 67;case 51:return 67;case 52:return 67;case 53:return 67;case 54:return 67;case 55:return 68;case 56:return 67;case 57:return 68;case 58:return 69;case 59:return 69;case 60:return 51;case 61:return 69;case 62:return 69;case 63:return 69;case 64:return 52;case 65:return 48;case 66:return 69;case 67:return 66;case 68:return 67;case 69:return 68;case 70:return 70;case 71:return 71;case 72:return 72;case 73:return 72;case 74:return 71;case 75:return 71;case 76:return 71;case 77:return 41;case 78:return 47;case 79:return 40;case 80:return t.yytext[0];case 81:return 6}},`anonymous`),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[37,38,39,40,41,77,78],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[28,29],inclusive:!1},block:{rules:[23,24,25,26,27,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,34,35,36,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,79,80,81],inclusive:!0}}}})();function X(){this.yy={}}return e(X,`Parser`),X.prototype=Y,Y.Parser=X,new X})();b.parser=b;var x=b,S=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction=`TB`,this.Cardinality={ZERO_OR_ONE:`ZERO_OR_ONE`,ZERO_OR_MORE:`ZERO_OR_MORE`,ONE_OR_MORE:`ONE_OR_MORE`,ONLY_ONE:`ONLY_ONE`,MD_PARENT:`MD_PARENT`},this.Identification={NON_IDENTIFYING:`NON_IDENTIFYING`,IDENTIFYING:`IDENTIFYING`},this.setAccTitle=a,this.getAccTitle=d,this.setAccDescription=r,this.getAccDescription=c,this.setDiagramTitle=i,this.getDiagramTitle=l,this.getConfig=e(()=>u().er,`getConfig`),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{e(this,`ErDB`)}addEntity(e,t=``){return this.entities.has(e)?!this.entities.get(e)?.alias&&t&&(this.entities.get(e).alias=t,n.info(`Add alias '${t}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:t,shape:`erBox`,look:u().look??`default`,cssClasses:`default`,cssStyles:[],labelType:`markdown`}),n.info(`Added new entity :`,e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,t){let r=this.addEntity(e),i;for(i=t.length-1;i>=0;i--)t[i].keys||(t[i].keys=[]),t[i].comment||(t[i].comment=``),r.attributes.push(t[i]),n.debug(`Added attribute `,t[i].name)}addRelationship(e,t,r,i){let a=this.entities.get(e),o=this.entities.get(r);if(!a||!o)return;let s={entityA:a.id,roleA:t,entityB:o.id,relSpec:i};this.relationships.push(s),n.debug(`Added new relationship :`,s)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}addCssStyles(e,t){for(let n of e){let e=this.entities.get(n);if(!t||!e)return;for(let n of t)e.cssStyles.push(n)}}addClass(e,t){e.forEach(e=>{let n=this.classes.get(e);n===void 0&&(n={id:e,styles:[],textStyles:[]},this.classes.set(e,n)),t&&t.forEach(function(e){if(/color/.exec(e)){let t=e.replace(`fill`,`bgFill`);n.textStyles.push(t)}n.styles.push(e)})})}setClass(e,t){for(let n of e){let e=this.entities.get(n);if(e)for(let n of t)e.cssClasses+=` `+n}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],o()}getData(){let e=[],t=[],n=u(),r=0;for(let t of this.entities.keys()){let n=this.entities.get(t);n&&(n.cssCompiledStyles=this.getCompiledStyles(n.cssClasses.split(` `)),n.colorIndex=r++,e.push(n))}let i=0;for(let e of this.relationships){let r={id:m(e.entityA,e.entityB,{prefix:`id`,counter:i++}),type:`normal`,curve:`basis`,start:e.entityA,end:e.entityB,label:e.roleA,labelpos:`c`,thickness:`normal`,classes:`relationshipLine`,arrowTypeStart:e.relSpec.cardB.toLowerCase(),arrowTypeEnd:e.relSpec.cardA.toLowerCase(),pattern:e.relSpec.relType==`IDENTIFYING`?`solid`:`dashed`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:`TB`}}},C={};t(C,{draw:()=>w});var w=e(async function(e,t,r,i){n.info(`REF0:`),n.info(`Drawing er diagram (unified)`,t);let{securityLevel:a,er:o,layout:s}=u(),c=i.db.getData(),l=g(t,a);c.type=i.type,c.layoutAlgorithm=y(s),c.config.flowchart.nodeSpacing=o?.nodeSpacing||140,c.config.flowchart.rankSpacing=o?.rankSpacing||80,c.direction=i.db.getDirection();let{config:d}=c,{look:f}=d;f===`neo`?c.markers=[`only_one_neo`,`zero_or_one_neo`,`one_or_more_neo`,`zero_or_more_neo`]:c.markers=[`only_one`,`zero_or_one`,`one_or_more`,`zero_or_more`],c.diagramId=t,await v(c,l),c.layoutAlgorithm===`elk`&&l.select(`.edges`).lower();let m=l.selectAll(`[id*="-background"]`);Array.from(m).length>0&&m.each(function(){let e=p(this),t=e.attr(`id`).replace(`-background`,``),n=l.select(`#${CSS.escape(t)}`);if(!n.empty()){let t=n.attr(`transform`);e.attr(`transform`,t)}}),h.insertTitle(l,`erDiagramTitleText`,o?.titleTopMargin??25,i.db.getDiagramTitle()),_(l,8,`erDiagram`,o?.useMaxWidth??!0)},`draw`),T=e((e,t)=>{let n=f;return s(n(e,`r`),n(e,`g`),n(e,`b`),t)},`fade`),E=new Set([`redux-color`,`redux-dark-color`]),D=e(e=>{let{theme:t,look:n,bkgColorArray:r,borderColorArray:i}=e;if(!E.has(t))return``;let a=r?.length>0,o=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)o+=`
|
|
7
|
-
|
|
8
|
-
[data-look="${n}"][data-color-id="color-${t}"].node path {
|
|
9
|
-
stroke: ${i[t]};
|
|
10
|
-
${a?`fill: ${r[t]};`:``}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
[data-look="${n}"][data-color-id="color-${t}"].node rect {
|
|
14
|
-
stroke: ${i[t]};
|
|
15
|
-
${a?`fill: ${r[t]};`:``}
|
|
16
|
-
}
|
|
17
|
-
`;return o},`genColor`),O={parser:x,get db(){return new S},renderer:C,styles:e(e=>{let{look:t,theme:n,erEdgeLabelBackground:r,strokeWidth:i}=e;return`
|
|
18
|
-
${D(e)}
|
|
19
|
-
.entityBox {
|
|
20
|
-
fill: ${e.mainBkg};
|
|
21
|
-
stroke: ${e.nodeBorder};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.relationshipLabelBox {
|
|
25
|
-
fill: ${e.tertiaryColor};
|
|
26
|
-
opacity: 0.7;
|
|
27
|
-
background-color: ${e.tertiaryColor};
|
|
28
|
-
rect {
|
|
29
|
-
opacity: 0.5;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.labelBkg {
|
|
34
|
-
background-color: ${E.has(n)&&r?r:T(e.tertiaryColor,.5)};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.edgeLabel {
|
|
38
|
-
background-color: ${E.has(n)&&r?r:e.edgeLabelBackground};
|
|
39
|
-
}
|
|
40
|
-
.edgeLabel .label rect {
|
|
41
|
-
fill: ${E.has(n)&&r?r:e.edgeLabelBackground};
|
|
42
|
-
}
|
|
43
|
-
.edgeLabel .label text {
|
|
44
|
-
fill: ${e.textColor};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.edgeLabel .label {
|
|
48
|
-
fill: ${e.nodeBorder};
|
|
49
|
-
font-size: 14px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.label {
|
|
53
|
-
font-family: ${e.fontFamily};
|
|
54
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.edge-pattern-dashed {
|
|
58
|
-
stroke-dasharray: 8,8;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.node rect,
|
|
62
|
-
.node circle,
|
|
63
|
-
.node ellipse,
|
|
64
|
-
.node polygon
|
|
65
|
-
{
|
|
66
|
-
fill: ${e.mainBkg};
|
|
67
|
-
stroke: ${e.nodeBorder};
|
|
68
|
-
stroke-width: ${t===`neo`?i:`1px`};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.relationshipLine {
|
|
72
|
-
stroke: ${e.lineColor};
|
|
73
|
-
stroke-width: ${t===`neo`?i:`1px`};
|
|
74
|
-
fill: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.marker {
|
|
78
|
-
fill: none !important;
|
|
79
|
-
stroke: ${e.lineColor} !important;
|
|
80
|
-
stroke-width: 1;
|
|
81
|
-
}
|
|
82
|
-
[data-look=neo].labelBkg {
|
|
83
|
-
background-color: ${T(e.tertiaryColor,.5)};
|
|
84
|
-
}
|
|
85
|
-
`},`getStyles`)};export{O as diagram};
|
|
86
|
-
//# sourceMappingURL=erDiagram-Q63AITRT-DIiR5G9i.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{i as n,n as r}from"./portal-Sdfvrza9.js";import{t as i}from"./jsx-runtime-CFwixLRt.js";import{t as a}from"./heading-C0sACr0w.js";import{n as o,t as s}from"./v-stack-hkuSkmCA.js";import{a as c,i as l,n as u,r as d,t as f}from"./alert-CPsXih3K.js";import{n as p,r as m,t as h}from"./card-By_Mbslh.js";import{t as g}from"./container-Cxi_AjD-.js";import{t as _}from"./usePublicEnv-ue4-Igop.js";import{c as v,r as y}from"./auth-client-MjRW2PVA.js";import{_ as b,n as x}from"./index-CPtTUYLD.js";import{t as S}from"./LogoIcon-CyQDrYa_.js";var C=e(t()),w=i(),T=e=>e?e===`email_doesn't_match`||e===`LINKING_DIFFERENT_EMAILS_NOT_ALLOWED`?`DIFFERENT_EMAIL_NOT_ALLOWED`:e===`account_already_linked_to_different_user`||e===`account_not_linked`||e===`OAuthAccountNotLinked`?`OAuthAccountNotLinked`:e:null,E=[`OAuthAccountNotLinked`,`DIFFERENT_EMAIL_NOT_ALLOWED`,`SSO_PROVIDER_NOT_ALLOWED`],D=e=>!!e&&E.includes(e),O=`/api/auth/logout`,k=e=>{switch(e){case`OAuthAccountNotLinked`:return`Account already exists`;case`DIFFERENT_EMAIL_NOT_ALLOWED`:return`Can't link this account`;case`SSO_PROVIDER_NOT_ALLOWED`:return`Use your organization's sign-in`;default:return e}};function A(){let{data:e}=v(),t=T(b()?.get(`error`)),n=_(),r=n.data?.NEXTAUTH_PROVIDER===`auth0`,i=n.data?.NEXTAUTH_PROVIDER===`azure-ad`;return(0,C.useEffect)(()=>{if(!n.data||D(t))return;let e=setTimeout(()=>{if(typeof window<`u`&&typeof document<`u`)if(r){let e=document.referrer;e&&y(e)?window.location.href=e:window.location.href=`/`}else window.location.href=`/auth/signin`},5e3);return()=>clearTimeout(e)},[n.data,r,i,e,t]),t?(0,w.jsx)(j,{error:t}):(0,w.jsxs)(`div`,{style:{padding:`12px`},children:[`Auth Error: Redirecting back to Sign in... Click `,(0,w.jsx)(`a`,{href:`/`,children:`here`}),` if you are not redirected within 5 seconds.`]})}function j({error:e}){let t=b()?.get(`callbackUrl`)??void 0,i=T(e)??e;return(0,w.jsx)(g,{maxW:`container.md`,paddingTop:`calc(40vh - 164px)`,children:(0,w.jsxs)(m,{children:[(0,w.jsx)(p,{children:(0,w.jsxs)(r,{gap:4,children:[(0,w.jsx)(S,{width:30.69,height:42}),(0,w.jsx)(a,{size:`lg`,as:`h1`,children:`Sign in Error`})]})}),(0,w.jsx)(h,{children:(0,w.jsxs)(l,{status:i===`OAuthAccountNotLinked`?`warning`:`error`,children:[(0,w.jsx)(d,{}),(0,w.jsxs)(f,{gap:4,children:[(0,w.jsx)(c,{fontWeight:`bold`,children:k(i)}),i===`OAuthAccountNotLinked`?(0,w.jsx)(u,{children:(0,w.jsxs)(s,{gap:1,align:`start`,children:[(0,w.jsxs)(o,{children:[`This email is already registered with a different sign-in method. To get back in, sign out completely and sign in again using the method you used originally.`,(0,w.jsx)(`br`,{}),(0,w.jsx)(`br`,{}),`If your organization uses single sign-on, enter your work email and choose your company login.`]}),(0,w.jsx)(n,{asChild:!0,marginTop:4,color:`white`,children:(0,w.jsx)(`a`,{href:O,children:`Sign out & try again`})})]})}):i===`DIFFERENT_EMAIL_NOT_ALLOWED`?(0,w.jsx)(u,{children:(0,w.jsxs)(s,{gap:1,align:`start`,children:[(0,w.jsx)(o,{children:`You cannot link an account with a different email address. Please use the same email address as your current account.`}),(0,w.jsx)(n,{asChild:!0,marginTop:4,color:`white`,children:(0,w.jsx)(x,{href:`/settings/authentication`,children:`Back to Settings`})})]})}):i===`SSO_PROVIDER_NOT_ALLOWED`?(0,w.jsx)(u,{children:(0,w.jsxs)(s,{gap:1,align:`start`,children:[(0,w.jsx)(o,{children:`Your organization requires single sign-on. Sign out and sign in again by entering your company email address, then choose your organization's login.`}),(0,w.jsx)(n,{asChild:!0,marginTop:4,color:`white`,children:(0,w.jsx)(`a`,{href:O,children:`Sign out & try again`})})]})}):(0,w.jsxs)(u,{children:[`Redirecting back to sign in, please try again...`,(0,w.jsx)(`br`,{}),(0,w.jsx)(n,{asChild:!0,marginTop:4,color:`white`,children:(0,w.jsx)(x,{href:`/auth/signin${t?`?callbackUrl=${encodeURIComponent(t)}`:``}`,children:`Try Sign In Again`})})]})]})]})})]})})}export{O as FEDERATED_LOGOUT_PATH,E as STABLE_AUTH_ERRORS,j as SignInError,A as default,D as isStableAuthError,T as normalizeErrorCode};
|
|
2
|
-
//# sourceMappingURL=error-nKFTkytv.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e,dn as t,n,r}from"./portal-Sdfvrza9.js";import{t as i}from"./jsx-runtime-CFwixLRt.js";import{t as a}from"./heading-C0sACr0w.js";import{n as o,t as s}from"./v-stack-hkuSkmCA.js";import{n as c,r as l,u}from"./toaster-BsYkODqs.js";import{i as d,n as f,r as p,t as ee}from"./alert-CPsXih3K.js";import{o as m}from"./trpcError-CFsR-0nB.js";import{l as te}from"./index.esm-Cpy5fWo1.js";var{withProvider:ne,withContext:h,useStyles:re,PropsProvider:ie}=e({key:`list`}),g=ne(`ul`,`root`,{defaultProps:{role:`list`}}),_=h(`li`,`item`),ae=h(`span`,`indicator`),oe={agent_error:{service:`langyagent`},auth_upstream_unavailable:{service:`aigateway`,httpStatus:503},bad_request:{service:`nlpgo`,httpStatus:400},budget_exceeded:{service:`aigateway`,httpStatus:402},chain_exhausted:{service:`aigateway`,httpStatus:502},child_unavailable:{service:`nlpgo`,httpStatus:503},circuit_open:{service:`aigateway`,httpStatus:503},code_block_timeout:{service:`nlpgo`,httpStatus:504},codex_session_expired:{service:`aigateway`},config_invalid:{service:`config`},conversation_busy:{service:`langyagent`,httpStatus:409},credentials_required:{service:`langyagent`,httpStatus:428},gateway_unavailable:{service:`nlpgo`,httpStatus:502},guardrail_blocked:{service:`aigateway`,httpStatus:403},guardrail_upstream_unavailable:{service:`aigateway`,httpStatus:503},idle_timeout:{service:`nlpgo`,httpStatus:504},internal_error:{service:`langyagent`,httpStatus:500},invalid_api_key:{service:`aigateway`,httpStatus:401},invalid_conversation_id:{service:`langyagent`,httpStatus:422},invalid_dataset:{service:`nlpgo`,httpStatus:400},invalid_workflow:{service:`nlpgo`,httpStatus:400},jsonpath_no_match:{service:`nlpgo`,httpStatus:422},llm_upstream_error:{service:`langyagent`},max_workers_reached:{service:`langyagent`,httpStatus:503},model_not_allowed:{service:`aigateway`,httpStatus:400},no_free_worker_uid:{service:`langyagent`,httpStatus:503},no_provider_configured:{service:`aigateway`,httpStatus:400},not_found:{service:`nlpgo`,httpStatus:404},opencode_auth_not_enforced:{service:`langyagent`,httpStatus:500},opencode_session_not_found:{service:`langyagent`,httpStatus:404},payload_too_large:{service:`rpc`,httpStatus:413},policy_violation:{service:`aigateway`,httpStatus:403},provider_error:{service:`aigateway`,httpStatus:502},provider_timeout:{service:`aigateway`,httpStatus:504},rate_limited:{service:`aigateway`,httpStatus:429},ssrf_blocked:{service:`nlpgo`,httpStatus:400},unauthorized:{service:`langyagent`,httpStatus:401},unprocessable_entity:{service:`rpc`,httpStatus:422},unsupported_node_kind:{service:`nlpgo`,httpStatus:501},unsupported_parameter:{service:`aigateway`,httpStatus:400},upstream_http_error:{service:`nlpgo`,httpStatus:502},virtual_key_revoked:{service:`aigateway`},worker_not_ready:{service:`langyagent`,httpStatus:500},worker_spawn_failed:{service:`langyagent`,httpStatus:500}},se={agent_missing_type:{service:`nlpgo`},agent_missing_workflow_id:{service:`nlpgo`},agent_unauthorized:{service:`nlpgo`},agent_unconfigured:{service:`nlpgo`},agent_unknown_type:{service:`nlpgo`},agent_workflow_error:{service:`nlpgo`},agent_workflow_executor_unavailable:{service:`nlpgo`},attachment_fetch_error:{service:`nlpgo`},code_runner_error:{service:`nlpgo`},code_runner_unavailable:{service:`nlpgo`},context_canceled:{service:`nlpgo`},custom_missing_workflow_id:{service:`nlpgo`},custom_unauthorized:{service:`nlpgo`},custom_unconfigured:{service:`nlpgo`},custom_workflow_error:{service:`nlpgo`},custom_workflow_executor_unavailable:{service:`nlpgo`},engine_error:{service:`nlpgo`},evaluator_error:{service:`nlpgo`},evaluator_executor_unavailable:{service:`nlpgo`},evaluator_missing_slug:{service:`nlpgo`},evaluator_unauthorized:{service:`nlpgo`},evaluator_unconfigured:{service:`nlpgo`},http_error:{service:`nlpgo`},http_executor_unavailable:{service:`nlpgo`},invalid_condition:{service:`nlpgo`},llm_error:{service:`nlpgo`},llm_executor_unavailable:{service:`nlpgo`},llm_model_not_set:{service:`nlpgo`}},v=`https://docs.langwatch.ai`,y=`http://localhost:3000`,b=new Set([`localhost`,`127.0.0.1`,`0.0.0.0`]);function x({hostname:e,isDev:t}={}){let n=e??(typeof window<`u`?window.location.hostname:void 0);return(t??!1)&&n&&b.has(n)?y:v}function ce(e){return`${x()}${e}`}var le=`agent_report_rate_limited.ai_call_failed.ai_query_provider_error.already_organization_member.anomaly_rule_not_found.api_key_already_revoked.api_key_not_found.api_key_not_owned.api_key_permission_denied.api_key_reserved_name.api_key_scope_violation.avatar_image_processing_failed.avatar_image_too_large.avatar_image_type_unsupported.avatar_image_unreadable.avatar_rate_limited.billing_currency_unsupported.billing_customer_deleted.billing_customer_email_required.billing_plan_price_missing.billing_provider_unavailable.broadcaster_not_active.cache_rule_not_found.cannot_impersonate_admin.cannot_impersonate_deactivated_user.clickhouse_unavailable.codex_auth_failed.custom_role_not_found.dataset_column_type_change_unsupported.dataset_name_taken.dataset_not_ready.dataset_stale_columns.dspy_step_not_found.evaluation_not_found.evaluator_config_error.evaluator_execution_error.evaluator_input_too_large.evaluator_missing_field.evaluator_not_found.experiment_not_found.export_failed.filter_field_unknown.filter_parse_error.gateway_budget_not_found.gateway_group_budget_unsupported.gateway_guardrail_project_mismatch.gateway_scope_org_mismatch.gateway_spend_unavailable.guardrail_attach_forbidden.ingestion_source_cap_reached.ingestion_source_not_found.internal_error.invalid_action_params.invalid_email_recipient.invalid_experiment_configuration.langy_agent_at_capacity.langy_agent_errored.langy_agent_session_lost.langy_agent_unavailable.langy_codex_plan_limit.langy_conversation_not_found.langy_conversation_not_owned.langy_credential_resolution.langy_dispatch_rejected.langy_egress_misconfigured.langy_empty_message.langy_github_not_connected.langy_github_repo_not_accessible.langy_idempotency_mismatch.langy_insufficient_scope.langy_model_not_allowed.langy_model_not_configured.langy_not_enabled.langy_rate_limited.langy_turn_in_progress.langy_turn_not_stoppable.langy_turn_timeout.langy_worker_restarting.langy_worker_spawn_failed.langy_worker_stopped.license_expired.license_key_invalid.license_signing_failed.license_signing_key_encrypted.license_signing_key_not_pem.lite_member_restricted.malformed_custom_role_permissions.malformed_request.missing_annotator.missing_provider.missing_slack_bot_token.missing_slack_webhook.model_not_configured.model_provider_anchor_required.model_provider_disabled.model_provider_not_found.model_provider_scope_forbidden.model_provider_scopes_required.no_admin_configured.not_found.notification_delivery_error.organization_not_found.organization_not_found_for_team.project_not_found.project_permission_denied.prompt_not_found.provider_key_invalid.provider_key_missing.provider_key_restricted.provider_refused.provider_service_disabled.provider_unreachable.published_workflow_version_not_found.query_memory_exceeded.query_timeout.resource_limit_exceeded.rum_ingest_disabled.rum_payload_invalid.rum_payload_too_large.rum_rate_limited.run_not_found.scenario_set_limit_exceeded.schema_failure.seat_billing_unavailable.share_link_exhausted.share_link_expired.share_link_forbidden.share_link_not_found.share_read_rate_limited.span_not_found.spend_source_unavailable.subscription_service_unavailable.subscription_sync_failed.suite_all_scenarios_archived.suite_all_targets_archived.suite_invalid_scenario_references.suite_invalid_target_references.suite_name_taken.suite_not_found.system_prompt_conflict.system_prompt_required.team_membership_not_found.team_not_found.template_immutable.template_not_found.template_validation_error.test_fire_unavailable.time_range_too_wide.trace_not_evaluatable.trace_not_found.trace_sharing_disabled.unauthorized.usage_report_failed.user_to_impersonate_not_found.validation_error.virtual_key_not_found.workflow_execution_failed.workflow_not_found`.split(`.`),ue=new Set([`customer`,`platform`,`provider`]);function S(e){return de(e)??fe(e)}function de(e){let t=e?.data?.error;if(!O(t))return null;let n=typeof t.code==`string`?t.code:typeof t.kind==`string`?t.kind:null;return n===null||typeof t.httpStatus!=`number`?null:{code:n,httpStatus:t.httpStatus,meta:O(t.meta)?t.meta:{},fault:C(t.fault),tips:w(t.tips),docsUrl:A(t.docsUrl),traceId:typeof t.traceId==`string`?t.traceId:void 0,reasons:T(t.reasons)}}function fe(e){if(!O(e))return null;let t=e.error;if(typeof t!=`string`||!M.has(t)&&!N.test(t))return null;let n=O(e.trace)?e.trace:void 0;return{code:t,httpStatus:typeof e.httpStatus==`number`?e.httpStatus:typeof e.status==`number`?e.status:0,meta:me(e),fault:C(e.fault),tips:w(e.tips),docsUrl:A(e.docsUrl),traceId:typeof n?.traceId==`string`?n.traceId:void 0,reasons:T(e.reasons)}}var pe=new Set([`error`,`code`,`message`,`tips`,`docsUrl`,`fault`,`reasons`,`trace`,`httpStatus`,`status`]);function me(e){let t={};for(let[n,r]of Object.entries(e))pe.has(n)||(t[n]=r);return typeof e.message==`string`&&(t.message=e.message),t}function he(e){let t=e?.data?.traceId;if(typeof t==`string`)return t;let n=e?.trace,r=O(n)?n.traceId:void 0;return typeof r==`string`?r:void 0}function C(e){return typeof e==`string`&&ue.has(e)?e:`customer`}function w(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`).slice(0,ge).map(E).filter(e=>e.length>0):[]}var ge=4;function T(e){return Array.isArray(e)?e.filter(O):[]}function E(e){let t=e.replace(/\s+/g,` `).trim();return t.length===0?``:t.length<=D?t:`${[...t].slice(0,D-1).join(``).trimEnd()}…`}var D=200;function O(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function k(){return new Set([x({hostname:`app.langwatch.ai`,isDev:!1}),x()].map(e=>new URL(e).origin))}function A(e){if(!(typeof e!=`string`||e.length===0))try{return k().has(new URL(e).origin)?e:void 0}catch{return}}function j(e){return{code:e.code,meta:O(e.meta)?e.meta:{},httpStatus:e.httpStatus,fault:C(e.fault),tips:w(e.tips),docsUrl:A(e.docsUrl),traceId:e.traceId,reasons:T(e.reasons)}}var M=new Set([...le,...Object.keys(oe),...Object.keys(se)]),N=/^[a-z0-9]+(_[a-z0-9]+)*$/;function P(e){let t=e?.data;if(t?.authored!==!0)return;let n=t.httpStatus;if(typeof n!=`number`||n>=500)return;let r=e?.message;if(!(typeof r!=`string`||r.length===0)&&!(M.has(r)||N.test(r))&&!I.test(r)&&!(r.length>F)&&!L.test(r))return r}var F=200,I=/^[A-Z][A-Z0-9_]*$/,L=new RegExp([`\\bprisma\\.`,`\\bPrismaClient`,`\\b(?:SELECT|INSERT INTO|UPDATE|DELETE FROM)\\b.*\\b(?:FROM|WHERE|VALUES|SET)\\b`,`\\b(?:ECONNREFUSED|ECONNRESET|ETIMEDOUT|ENOTFOUND|EPIPE|EAI_AGAIN)\\b`,`(?:^|\\n)\\s*at\\s+\\S+\\s+\\(`,`\\b[A-Z]\\w*Error:\\s`,`\\bnode_modules\\b`,`\\b\\d{1,3}(?:\\.\\d{1,3}){3}:\\d+`,`\\b(?:invocation|constraint failed|deadlock detected)\\b`].join(`|`)),R=`serverError`,_e=`root.${R}`;function ve({error:e,form:t,hasFormErrorSlot:n=!1}){let r=S(e);if(r?.code!==`validation_error`)return!1;let i=xe(r.meta.fieldErrors),a=z(r.meta.formErrors),o=Object.entries(i).filter(([,e])=>e.length>0),s=o.filter(e=>be({form:t,field:e[0]})),c=n?a.slice(0,ye):[],l=s.length===o.length&&c.length===a.length;return s.length===0&&c.length===0?!1:(s.forEach(([e,n],r)=>{t.setError(e,{type:`server`,message:E(n[0]??``)},{shouldFocus:l&&r===0})}),c.length>0&&t.setError(_e,{type:`server`,message:E(c.join(` `))}),l)}var ye=4;function be({form:e,field:t}){let n=e.control._fields;for(let e of t.split(`.`)){if(!n||typeof n!=`object`)return!1;n=n[e]}return!!n?._f?.ref}function xe(e){if(!e||typeof e!=`object`||Array.isArray(e))return{};let t={};for(let[n,r]of Object.entries(e)){let e=z(r);e.length>0&&(t[n]=e)}return t}function z(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}var B=i();function Se({form:e}){let{errors:t}=te({control:e.control}),n=t.root?.[R]?.message;return n?(0,B.jsxs)(d,{role:`alert`,status:`error`,size:`sm`,children:[(0,B.jsx)(p,{}),(0,B.jsx)(ee,{children:(0,B.jsx)(f,{children:n})})]}):null}var V=(e,t,n)=>{let r=e.meta[t];return typeof r==`string`&&r.length>0?r:n},H=(e,t)=>e.some(e=>t.has(e.code)||t.has(e.kind)||H(e.reasons??[],t)),Ce=new Set([`usage_limit_reached`,`codex_plan_limit`,`insufficient_quota`,`billing_hard_limit_reached`]),U=(e,t)=>{if(!Object.hasOwn(e,t))return;let n=e[t];return typeof n==`string`?n:void 0},W={trace_not_found:{title:`Trace not found`,describe:()=>`It may have been deleted, or it may still be arriving. Traces take a few seconds to appear.`},span_not_found:{title:`Span not found`,describe:()=>`It may have been deleted along with its trace.`},trace_not_evaluatable:{title:`This trace can't be evaluated`,describe:()=>`It doesn't have the input and output an evaluator needs.`},query_timeout:{title:`This search took too long`,describe:()=>`Narrow the time range or add a filter, then try again.`},query_memory_exceeded:{title:`This search was too large`,describe:()=>`Narrow the time range, add a filter, or select fewer fields.`},time_range_too_wide:{title:`Time range is too wide`,describe:()=>`Pick a shorter range and try again.`},filter_parse_error:{title:`This filter isn't valid`,describe:()=>`Check the syntax and try again.`},filter_field_unknown:{title:`Unknown filter field`,describe:e=>{let t=V(e,`field`,``);return t?`There's no field called "${t}".`:``}},clickhouse_unavailable:{title:`Search is temporarily unavailable`,describe:()=>`We're on it. Try again in a moment.`},broadcaster_not_active:{title:`Live updates disconnected`,describe:()=>`Refresh the page to reconnect.`},workflow_not_found:{title:`Workflow not found`,describe:()=>`It may have been deleted. Reload to see the current list.`},published_workflow_version_not_found:{title:`That published version is missing`,describe:()=>`Publish the workflow again, then run it.`},workflow_execution_failed:{title:`The workflow couldn't run`,describe:()=>`We've been notified. Try running it again in a moment.`},agent_report_rate_limited:{title:`Too many reports just now`,describe:()=>`This one wasn't sent. Wait a few minutes, then report it again.`},evaluation_not_found:{title:`Evaluation not found`},evaluator_not_found:{title:`Evaluator not found`},evaluator_config_error:{title:`This evaluator isn't configured correctly`,describe:()=>`Check its settings and try again.`},evaluator_execution_error:{title:`The evaluator failed to run`,describe:e=>{let t=e.meta.httpStatus;return V(e,`reason`,``)===`auth_failed`||t===401||t===403?`Check the API key for this evaluator's model provider.`:`Try running it again.`}},evaluator_missing_field:{title:`The evaluator needs another field`,describe:e=>{let t=U(we,V(e,`field`,``));return t?`Map a value to ${t} before running this evaluator.`:`Map all of its required fields before running it.`}},evaluator_input_too_large:{title:`That's too much text for this evaluator`,describe:()=>`Shorten the input and try again.`},experiment_not_found:{title:`Experiment not found`,describe:()=>`It may have been deleted. Reload to see the current list.`},invalid_experiment_configuration:{title:`This experiment can't be read`,describe:()=>`Its saved setup couldn't be loaded. Open it in the workbench and save it again, or contact support.`},run_not_found:{title:`Run not found`,describe:()=>`It may have been archived, or it finished long enough ago that its status is no longer cached. Results stay available from its experiment.`},dspy_step_not_found:{title:`Optimization step not found`,describe:()=>`It may have been removed along with its run. Reload to see the current steps.`},prompt_not_found:{title:`Prompt not found`,describe:()=>`It may have been deleted. Reload to see the current list.`},system_prompt_required:{title:`A system prompt is required`,describe:()=>`Add one before running this.`},system_prompt_conflict:{title:`Set one prompt, not both`,describe:()=>`This prompt has both a system prompt and a prompt. Remove one.`},api_key_not_found:{title:`API key not found`},api_key_not_owned:{title:`You don't have access to this API key`},api_key_already_revoked:{title:`This API key is already revoked`},api_key_permission_denied:{title:`You don't have permission to manage API keys`,describe:()=>`Ask an admin on your team for access.`},api_key_reserved_name:{title:`That name is reserved`,describe:()=>`Pick a different name for this key.`},api_key_scope_violation:{title:`This API key can't do that`,describe:()=>`It doesn't include the required scope.`},avatar_image_unreadable:{title:`That file isn't a usable image`,describe:()=>`Pick a different photo and try again.`},avatar_image_too_large:{title:`That photo is too large`,describe:e=>{let t=e.meta.maxBytes;return typeof t==`number`?`Pick one under ${Math.round(t/1024/1024)} MB.`:`Pick a smaller one.`}},avatar_image_type_unsupported:{title:`That image type isn't supported`,describe:e=>{let t=e.meta.allowed,n=Array.isArray(t)?t.filter(e=>typeof e==`string`).map(e=>e.replace(/^image\//,``).toUpperCase()):[];return n.length>0?`Use ${K(n)}.`:`Use a PNG, JPEG, WebP or GIF.`}},avatar_rate_limited:{title:`Too many photo changes just now`,describe:()=>`Wait a few minutes, then upload a new one.`},avatar_image_processing_failed:{title:`Your browser couldn't prepare that photo`,describe:()=>`Try another browser, or a different image.`},codex_auth_failed:{title:`OpenAI sign-in didn't go through`,describe:()=>`Codex couldn't reach or verify your OpenAI account. Connect it again to continue.`},model_provider_anchor_required:{title:`Choose where this applies`,describe:e=>V(e,`requires`,``)===`project`?`Removing a provider by name needs a project. Pick one and try again.`:`Choose a project or an organization, then try again.`},model_provider_scopes_required:{title:`Choose where this provider applies`,describe:()=>`A provider added outside a project needs at least one scope, so pick the teams or projects it covers.`},missing_provider:{title:`This model's provider can't be used here`,describe:()=>`Pick a different default model in your project's model settings, then try again.`},model_not_configured:{title:`Choose a model first`,describe:()=>`Nothing has a model set yet. Pick one in your project's model settings, then try again.`},model_provider_disabled:{title:`This model provider is turned off`,describe:()=>`Turn it back on in your project's model settings, or pick a different provider.`},model_provider_scope_forbidden:{title:`You can't change this provider here`,describe:()=>`It's managed outside this project. Ask an admin on your team to change it.`},model_provider_not_found:{title:`Model provider not found`,describe:()=>`It may have been removed, or it isn't available here. Reload to see the current list.`},provider_key_invalid:{title:`That API key was refused`,describe:()=>`The provider didn't recognise it. Check you copied the whole key, and that it belongs to the right account.`},provider_key_missing:{title:`No API key to check`,describe:()=>`Nothing is stored for this provider yet. Enter a key, then try again.`},provider_key_restricted:{title:`This key's restrictions block the request`,describe:e=>e.meta.reason===`API_KEY_SERVICE_BLOCKED`?`Its API restrictions exclude the Generative Language API. Allow that API in the Google Cloud console, or set up a Vertex AI provider instead.`:`Its application restrictions don't allow a call from our servers. Adjust them in the Google Cloud console, then try again.`},provider_refused:{title:`The provider refused the check`,describe:()=>`It answered, but wouldn't confirm the key. This is usually temporary — try again in a moment.`},provider_service_disabled:{title:`That API isn't enabled for this key`,describe:()=>`The key works, but its Google Cloud project doesn't have the Generative Language API turned on. Enable it in the console, or set up a Vertex AI provider, which uses service-account credentials.`},provider_unreachable:{title:`Couldn't reach the provider`,describe:e=>e.meta.hasConfigurableEndpoint===!0?`Nothing answered, so this API key was not checked. Check your network connection, and check the base URL is correct and reachable.`:`Nothing answered, so this API key was not checked. Check your network connection, then try again.`},project_not_found:{title:`Project not found`,describe:()=>`It may have been deleted, or it isn't shared with you. Reload to see the projects you can open.`},organization_not_found_for_team:{title:`Organization not found`,describe:()=>`This team isn't attached to an organization you can see. Reload to see the current list.`},organization_not_found:{title:`Organization not found`,describe:()=>`It may have been deleted, or it isn't shared with you. Reload to see the ones you can open.`},no_admin_configured:{title:`No administrator is set up`,describe:()=>`Ask whoever set up LangWatch here to add one, then try again.`},license_key_invalid:{title:`That license key isn't valid`,describe:()=>`Check the key you pasted, or ask your account team for a new one.`},license_expired:{title:`Your license has expired`,describe:()=>`Renew it to carry on, or talk to your account team.`},license_signing_key_not_pem:{title:`That doesn't look like a private key`,describe:()=>`Paste the whole key, including its BEGIN and END lines.`},license_signing_key_encrypted:{title:`That private key is passphrase-protected`,describe:()=>`Use an unencrypted private key to sign licenses.`},license_signing_failed:{title:`That private key couldn't sign the license`,describe:()=>`Check it is the license signing key and was copied in full.`},malformed_custom_role_permissions:{title:`This role's permissions are invalid`,describe:()=>`Edit the role and save it again.`},custom_role_not_found:{title:`Custom role not found`,describe:()=>`It may have been deleted. Reload to see the current list.`},team_not_found:{title:`Team not found`,describe:()=>`It may have been deleted. Reload to see the current list.`},team_membership_not_found:{title:`That person isn't on this team`,describe:()=>`They may have been removed since this page loaded. Reload to see who's on it.`},lite_member_restricted:{title:`Your account doesn't include this`,describe:()=>`Ask an admin on your team to upgrade your access.`},already_organization_member:{title:`They're already on your team`,describe:e=>{let t=V(e,`email`,``);return t?`${t} is already a member. Change their role from the members list instead.`:`Change their role from the members list instead.`}},project_permission_denied:{title:`You don't have access to this`,describe:e=>{let t=V(e,`permission`,``);return t?`Ask an organization admin to grant you "${t}" on this project.`:`Ask an organization admin to grant you access to this project.`}},cannot_impersonate_admin:{title:`Admins can't be impersonated`,describe:()=>`This is only available for accounts that aren't admins.`},cannot_impersonate_deactivated_user:{title:`This account is deactivated`,describe:()=>`Its sessions were revoked on purpose. Reactivate the account first.`},user_to_impersonate_not_found:{title:`User not found`,describe:()=>`They may have been removed since this page loaded.`},resource_limit_exceeded:{title:`You've hit a plan limit`,describe:()=>`Upgrade your plan to raise it.`},rum_ingest_disabled:{title:`Browser telemetry isn't enabled`,describe:()=>`Turn on browser monitoring for this project to collect it.`},rum_payload_invalid:{title:`That telemetry report couldn't be read`,describe:()=>`Update the LangWatch browser SDK to the latest version, then try again.`},rum_payload_too_large:{title:`That telemetry report is too big`,describe:()=>`Send smaller batches of browser spans.`},rum_rate_limited:{title:`Too many telemetry reports`,describe:()=>`Browser monitoring is sending faster than we accept. It will resume on its own.`},scenario_set_limit_exceeded:{title:`You've hit the simulation set limit`,describe:()=>`Delete an existing set, or upgrade your plan.`},billing_customer_email_required:{title:`Add a billing email first`,describe:()=>`Billing needs an email address on the account before this can go through.`},billing_plan_price_missing:{title:`This plan isn't ready to buy yet`,describe:()=>`We've been notified. Contact support if you need it sooner.`},billing_currency_unsupported:{title:`This plan isn't available in your billing currency`,describe:()=>`Contact support and we'll get you onto the right plan.`},billing_customer_deleted:{title:`This account's billing profile isn't active`,describe:()=>`We've been notified. Contact support to get set back up.`},billing_provider_unavailable:{title:`Billing is busy right now`,describe:()=>`Nothing was charged. Try again in a moment.`},seat_billing_unavailable:{title:`Seat billing is unavailable right now`,describe:()=>`Nothing was charged. Try again in a moment.`},subscription_sync_failed:{title:`Your plan details are out of date`,describe:()=>`We've been notified, and this usually catches up on its own. Reload in a few minutes.`},usage_report_failed:{title:`Couldn't build that usage report`,describe:()=>`We've been notified. Try again in a moment.`},subscription_service_unavailable:{title:`Billing isn't available here`,describe:()=>`This is a self-hosted deployment, so plans are managed outside the app.`},anomaly_rule_not_found:{title:`Anomaly rule not found`,describe:()=>`It may have been deleted. Reload to see the current list.`},ingestion_source_not_found:{title:`Ingestion source not found`,describe:()=>`It may have been archived. Reload to see the current list.`},ingestion_source_cap_reached:{title:`You've hit the limit for ingestion sources`,describe:()=>`Archive one you no longer use, or upgrade your plan to raise the limit.`},dataset_name_taken:{title:`That name is taken`,describe:()=>`Pick a different name for this dataset.`},dataset_column_type_change_unsupported:{title:`That column's type can't be changed`,describe:()=>`Add a new column with the type you need, then move the values across.`},dataset_not_ready:{title:`This dataset isn't ready yet`,describe:()=>`It's still being prepared. Wait a moment, then try again.`},dataset_stale_columns:{title:`This dataset's columns have changed`,describe:()=>`Reload to pick up the current columns, then make your change again.`},export_failed:{title:`That export didn't finish`,describe:()=>`Nothing was changed. Try again, or export a smaller slice.`},share_link_not_found:{title:`This shared link isn't available`,describe:()=>`It may have been removed, or sharing has been turned off. Ask whoever shared it for a new link.`},share_link_forbidden:{title:`You need access to view this`,describe:()=>`This link is limited to certain people. Sign in with an account that can see it.`},share_link_expired:{title:`This shared link has expired`,describe:()=>`Ask whoever shared it for a new link.`},share_link_exhausted:{title:`This shared link has already been viewed`,describe:()=>`It was set to open a limited number of times. Ask whoever shared it for a new link.`},share_read_rate_limited:{title:`This shared trace is busy right now`,describe:()=>`It's being opened a lot at the moment. Wait a few seconds, then refresh.`},trace_sharing_disabled:{title:`Sharing is turned off for this project`,describe:()=>`Ask a project admin to turn on trace sharing before creating a link.`},suite_not_found:{title:`Run plan not found`,describe:()=>`It may have been deleted. Reload to see the current list.`},suite_name_taken:{title:`That name is already taken`,describe:()=>`Pick a different name for this run plan.`},suite_all_scenarios_archived:{title:`Every scenario in this run plan is archived`,describe:()=>`Edit the plan to include active scenarios.`},suite_all_targets_archived:{title:`Every target in this run plan is archived`,describe:()=>`Edit the plan to include active targets.`},suite_invalid_scenario_references:{title:`This run plan points at scenarios that no longer exist`,describe:()=>`Edit the plan to remove them.`},suite_invalid_target_references:{title:`This run plan points at targets that no longer exist`,describe:()=>`Edit the plan to remove them.`},template_not_found:{title:`Template not found`,describe:()=>`It may have been deleted. Reload to see the current list.`},template_immutable:{title:`This template can't be edited`,describe:()=>`It's one of the built-in ones. Duplicate it, then edit your copy.`},template_validation_error:{title:`This template isn't valid`,describe:e=>E(V(e,`syntaxError`,``))||`Check the template and try again.`},invalid_email_recipient:{title:`That email address isn't valid`,describe:e=>{let t=V(e,`recipient`,``);return t?`We can't send to "${t}".`:``}},invalid_action_params:{title:`This action isn't configured correctly`,describe:()=>`Check its settings and try again.`},missing_slack_webhook:{title:`Slack webhook missing`,describe:()=>`Paste a Slack incoming webhook URL to continue.`},missing_slack_bot_token:{title:`Slack isn't connected`,describe:()=>`Connect Slack before sending to a channel.`},missing_annotator:{title:`No annotator assigned`,describe:()=>`Add at least one annotator to the queue.`},notification_delivery_error:{title:`We couldn't deliver that notification`,describe:e=>E(V(e,`message`,``))||`Check the destination and try again.`},test_fire_unavailable:{title:`Nothing to test yet`,describe:e=>{let t=E(V(e,`reason`,``));if(t)return t;let n=V(e,`channel`,``);return n?`Configure the ${n} destination first.`:`Configure the destination first.`}},langy_conversation_not_found:{title:`Conversation not found`,describe:()=>`This conversation is no longer available. Start a new chat to keep going.`},langy_conversation_not_owned:{title:`This conversation belongs to someone else`,describe:()=>`You can view shared conversations but only the owner can continue them.`},langy_empty_message:{title:`Nothing to send`,describe:()=>`Type a message first.`},langy_idempotency_mismatch:{title:`That message was already sent`,describe:()=>`Refresh to see the conversation as it stands.`},langy_dispatch_rejected:{title:`That request couldn't be understood`,describe:()=>`Rephrase and try again.`},langy_rate_limited:{title:`Too many messages just now`,describe:()=>`That one wasn't sent. Wait a few seconds, then send it again.`},langy_turn_in_progress:{title:`Langy is still replying`,describe:()=>`There's already a response in progress for this conversation. Wait for it to finish before sending another message.`},langy_turn_not_stoppable:{title:`That reply already finished`,describe:()=>`Refresh to see the conversation as it stands.`},langy_turn_timeout:{title:`That took too long`,describe:()=>`Langy didn't finish in time. Try again, or ask for a narrower slice: a shorter time range, or a single trace.`},langy_agent_at_capacity:{title:`Langy is busy right now`,describe:()=>`Too many conversations are running at once. Give it a few seconds and try again.`},langy_agent_unavailable:{title:`Langy is unavailable`,describe:()=>`Langy can't be reached right now. Your message is safe, so send it again in a moment.`},langy_agent_errored:{title:`Langy's reply failed`,describe:()=>`Langy hit an error while writing this reply. Your message is safe — try again.`},langy_agent_session_lost:{title:`Langy lost its place`,describe:()=>`Langy dropped this conversation before the reply finished. Send your message again to pick it back up.`},langy_worker_restarting:{title:`Langy restarted`,describe:()=>`An update interrupted this reply. Nothing was lost, so send your message again.`},langy_worker_stopped:{title:`Langy stopped mid-reply`,describe:()=>`Langy stopped before it could finish. Nothing you did is wrong and your message is safe, so try again.`},langy_worker_spawn_failed:{title:`Langy couldn't start up`,describe:()=>`Langy failed to get going for this reply. Nothing was lost, so try again in a moment.`},langy_credential_resolution:{title:`Your sign-in needs refreshing`,describe:()=>`Sign out and back in, then try again.`},langy_model_not_configured:{title:`Choose a model for Langy`,describe:()=>`Langy needs a model to run. Pick one in your project's model settings, then try again.`},langy_codex_plan_limit:{title:`You've reached your OpenAI plan's limit`,describe:()=>`Codex runs on your OpenAI account, and it has no allowance left for now. Wait for it to reset, or raise the limit with OpenAI.`},langy_model_not_allowed:{title:`That model isn't available here`,describe:()=>`The model you picked isn't enabled for this project. Choose one of the configured models and send again.`},langy_not_enabled:{title:`Langy isn't available on this account`,describe:()=>`Contact support if you'd like access.`},langy_insufficient_scope:{title:`Langy doesn't have access here`,describe:()=>`Langy doesn't have the permissions it needs in this project. Ask a workspace admin to grant them.`},langy_github_not_connected:{title:`Install the GitHub App to continue`,describe:()=>`Langy needs the LangWatch GitHub App installed to open pull requests.`},langy_github_repo_not_accessible:{title:`That repository isn't available to Langy`,describe:()=>`The LangWatch GitHub App doesn't have access to that repository. Grant it access from Settings → Integrations → Configure, then try again.`},langy_egress_misconfigured:{title:`Langy is blocked by a network policy`,describe:()=>`Langy's outbound network policy for this project is misconfigured, so it can't run safely. Ask a workspace admin to review it.`},ai_call_failed:{title:`That model call didn't go through`,describe:()=>`Try again in a moment, or pick a different model.`},ai_query_provider_error:{title:`Couldn't turn that into a search`,describe:()=>`The model didn't return something we could use. Rephrase it, or pick a different model.`},validation_error:{title:`Check your input`,describe:e=>{let t=e.meta.fieldErrors;if(t&&typeof t==`object`){let e=Object.keys(t).map(e=>U(G,e)).filter(e=>!!e);if(e.length>0)return`There's a problem with ${K(e)}.`}let n=e.meta.formErrors;if(Array.isArray(n)){let e=n.find(e=>typeof e==`string`);if(e)return E(e)}return`Some of the values aren't valid.`}},schema_failure:{title:`Check your input`,describe:e=>{let t=U(G,V(e,`field`,``));return t?`There's a problem with ${t}.`:`Some of the values aren't valid.`}},malformed_request:{title:`That request couldn't be read`,describe:()=>`Check the format of what was sent, then try again.`},invalid_api_key:{title:`That API key isn't valid`,describe:()=>`Check the key, or generate a new one in settings.`},virtual_key_revoked:{title:`This API key has been revoked`,describe:()=>`Generate a new one in settings.`},codex_session_expired:{title:`Your OpenAI session expired`,describe:()=>`Codex runs on your OpenAI account, and its sign-in has expired. Sign in again to keep using it.`},budget_exceeded:{title:`You've reached your spending limit`,describe:()=>`Raise the limit in settings to keep going.`},rate_limited:{title:`Too many requests`,describe:()=>`Slow down for a moment, then try again.`},model_not_allowed:{title:`That model isn't allowed`,describe:()=>`Pick a different model, or ask an admin to allow it.`},no_provider_configured:{title:`No model provider configured`,describe:()=>`Add a provider in settings to continue.`},guardrail_blocked:{title:`Blocked by a guardrail`,describe:()=>`This request didn't pass one of your configured policies.`},guardrail_upstream_unavailable:{title:`Guardrails are temporarily unavailable`,describe:()=>`This request wasn't checked. Try again in a moment.`},policy_violation:{title:`Blocked by a policy`,describe:()=>`This request isn't allowed by your organization's rules.`},provider_error:{title:`The model provider returned an error`,describe:()=>`Try again, or switch to a different provider.`},provider_timeout:{title:`The model provider timed out`,describe:()=>`Try again in a moment.`},chain_exhausted:{title:`Every provider failed`,describe:()=>`Check your provider settings, then try again.`},circuit_open:{title:`Paused after repeated failures`,describe:()=>`We'll retry automatically. Try again shortly.`},auth_upstream_unavailable:{title:`Access checks are temporarily unavailable`,describe:()=>`Nothing changed on your account. Try again in a moment.`},invalid_workflow:{title:`This workflow isn't valid`,describe:()=>`Check the steps and try again.`},invalid_dataset:{title:`This dataset isn't valid`,describe:()=>`Check its columns and try again.`},unsupported_node_kind:{title:`This step isn't supported`,describe:()=>`Remove or replace it to run the workflow.`},jsonpath_no_match:{title:`A field didn't match anything`,describe:()=>`Check the field path against your data.`},code_block_timeout:{title:`A code step took too long`,describe:()=>`Simplify it, or reduce how much data it processes.`},idle_timeout:{title:`This run timed out`,describe:()=>`Try running it again.`},child_unavailable:{title:`Temporarily unavailable`,describe:()=>`Try again in a moment.`},gateway_unavailable:{title:`Temporarily unavailable`,describe:()=>`Try again in a moment.`},upstream_http_error:{title:`A connected service returned an error`,describe:e=>q({error:e,whenAbsent:`Try again in a moment.`,whenOther:`Check its configuration, then try again.`})},guardrail_attach_forbidden:{title:`You don't have permission to attach guardrails`,describe:()=>`Ask an admin on your team for access to this project.`},virtual_key_not_found:{title:`Virtual key not found`,describe:()=>`It may have been deleted, or it isn't shared with you. Reload to see the keys you can open.`},gateway_budget_not_found:{title:`Budget not found`,describe:()=>`It may have been deleted. Reload to see the current list.`},gateway_scope_org_mismatch:{title:`That scope isn't in this organization`,describe:e=>{let t=V(e,`scopeKind`,``);return t?`Pick a ${t} that belongs to this organization.`:`Pick a scope that belongs to this organization.`}},gateway_guardrail_project_mismatch:{title:`That guardrail is in a different project`,describe:()=>`A key can only use guardrails from its own project. Pick one from this project instead.`},gateway_spend_unavailable:{title:`Spend isn't available for this key`,describe:()=>`This deployment doesn't record spend per key, so there's no figure to show.`},spend_source_unavailable:{title:`Spend isn't available for this key`,describe:()=>`This deployment doesn't record spend per key, so there's no figure to show.`},cache_rule_not_found:{title:`Cache rule not found`,describe:()=>`It may have been archived by someone else.`},gateway_group_budget_unsupported:{title:`Per-member budgets aren't available here`,describe:()=>`This deployment can only cap a group's combined spend, not each member's. Set the budget on a team or project instead.`},ssrf_blocked:{title:`That address isn't allowed`,describe:()=>`Use a public URL that isn't on an internal network.`},config_invalid:{title:`A service isn't set up correctly`,describe:()=>`We've been notified. Try again in a moment.`},llm_upstream_error:{title:`The model provider rejected that`,describe:e=>H(e.reasons,Ce)?`Your account with this model provider has no allowance left. Check its billing or usage limits, or pick a model from a different provider.`:`Try again, or pick a different model.`},agent_error:{title:`Something went wrong mid-answer`,describe:()=>`Try asking again.`},conversation_busy:{title:`Still answering`,describe:()=>`Wait for the current reply to finish.`},credentials_required:{title:`Langy wasn't quite ready`,describe:()=>`Send that again. This usually resolves itself.`},invalid_conversation_id:{title:`Conversation not found`,describe:()=>`This conversation link isn't one we can open. Start a new chat to keep going.`},opencode_session_not_found:{title:`The session was lost`,describe:()=>`Start a new message to continue.`},opencode_auth_not_enforced:{title:`Temporarily unavailable`,describe:()=>`We're on it. Try again shortly.`},max_workers_reached:{title:`Busy right now`,describe:()=>`Try again in a moment.`},no_free_worker_uid:{title:`Busy right now`,describe:()=>`Try again in a moment.`},worker_not_ready:{title:`Still starting up`,describe:()=>`Try again in a moment.`},worker_spawn_failed:{title:`Couldn't start a session`,describe:()=>`Try again in a moment.`},bad_request:{title:`Check your input`,describe:()=>`Some of the values sent weren't valid.`},unprocessable_entity:{title:`Check your input`,describe:()=>`The request was understood, but some values aren't valid.`},payload_too_large:{title:`That's too large to send`,describe:()=>`Try again with less data.`},not_found:{title:`Not found`,describe:()=>`It may have been deleted. Reload to see the current list.`},unauthorized:{title:`You're not signed in`,describe:()=>`Sign in again to continue.`},internal_error:{title:`Something went wrong on our end`,describe:()=>`We've been notified. Try again in a moment.`},http_error:{title:`Couldn't reach the agent`,describe:()=>`Check the URL is correct and the service is reachable, then run again.`},http_executor_unavailable:{title:`HTTP requests are temporarily unavailable`,describe:()=>`Try again in a moment.`},llm_error:{title:`The model call failed`,describe:e=>q({error:e,whenAbsent:`Try again, or check the node's model configuration.`,whenOther:`Check the node's model configuration, then run again.`,whenRejected:`Check the API key for this model provider, then run again.`})},llm_executor_unavailable:{title:`The model runner is temporarily unavailable`,describe:()=>`Try again in a moment.`},llm_model_not_set:{title:`This step has no model selected`,describe:()=>`Open the node and choose a model.`},code_runner_error:{title:`The code step failed`,describe:()=>`Check the node's code and its inputs, then run again.`},code_runner_unavailable:{title:`The code runner is temporarily unavailable`,describe:()=>`Try again in a moment.`},evaluator_error:{title:`The evaluator failed to run`,describe:e=>q({error:e,whenAbsent:`Check its configuration, then run again.`,whenOther:`Check its configuration, then run again.`,whenRejected:`Check the API key for this evaluator's model provider, then run again.`})},evaluator_executor_unavailable:{title:`The evaluator runner is temporarily unavailable`,describe:()=>`Try again in a moment.`},evaluator_missing_slug:{title:`This evaluator isn't fully configured`,describe:()=>`Pick an evaluator type for the node.`},evaluator_unauthorized:{title:`Not allowed to run this evaluator`,describe:()=>`Check your access, or ask an admin on your team.`},evaluator_unconfigured:{title:`This evaluator isn't configured`,describe:()=>`Finish setting it up before running.`},agent_workflow_error:{title:`The agent step failed`,describe:e=>q({error:e,whenAbsent:`Check the agent's configuration, then run again.`,whenOther:`Check the agent's configuration, then run again.`})},agent_workflow_executor_unavailable:{title:`The agent runner is temporarily unavailable`,describe:()=>`Try again in a moment.`},agent_unconfigured:{title:`This agent isn't configured`,describe:()=>`Finish setting it up before running.`},agent_unauthorized:{title:`Not allowed to run this agent`,describe:()=>`Check your access, or ask an admin on your team.`},agent_missing_type:{title:`This agent step is incomplete`,describe:()=>`Choose what the agent should do.`},agent_unknown_type:{title:`This agent type isn't supported`,describe:()=>`Pick a supported agent type for the node.`},agent_missing_workflow_id:{title:`This agent isn't linked to a workflow`,describe:()=>`Select the workflow it should run.`},custom_workflow_error:{title:`The referenced workflow failed`,describe:e=>q({error:e,whenAbsent:`Open it to see what went wrong, then run again.`,whenOther:`Open it to see what went wrong, then run again.`})},custom_workflow_executor_unavailable:{title:`The workflow runner is temporarily unavailable`,describe:()=>`Try again in a moment.`},custom_unconfigured:{title:`This workflow step isn't configured`,describe:()=>`Finish setting it up before running.`},custom_unauthorized:{title:`Not allowed to run that workflow`,describe:()=>`Check your access, or ask an admin on your team.`},custom_missing_workflow_id:{title:`This step isn't linked to a workflow`,describe:()=>`Select the workflow it should run.`},invalid_condition:{title:`A condition in this workflow isn't valid`,describe:()=>`Check the branch condition and try again.`},attachment_fetch_error:{title:`Couldn't load an attachment`,describe:()=>`Check the file is still available, then run again.`},context_canceled:{title:`The run was cancelled`,describe:()=>`Start it again when you're ready.`},engine_error:{title:`The run couldn't be set up`,describe:()=>`Check the workflow and its dataset, then try again.`},unsupported_parameter:{title:`That provider can't honor one of your parameters`,describe:()=>`Remove the parameter named in the message, or pick a model that supports it.`}},we={candidate_a_id:`Variant A`,candidate_b_id:`Variant B`,input:`the input`,output:`the output`,expected_output:`the expected output`,contexts:`the contexts`},G={name:`the name`,slug:`the URL slug`,email:`the email address`,description:`the description`,url:`the URL`,prompt:`the prompt`,model:`the model`,value:`the value`,label:`the label`,title:`the title`,currentPassword:`your current password`,newPassword:`the new password`,confirmPassword:`the confirmation`,teamId:`the team`,limitUsd:`the spending limit`,imageDataUrl:`the photo`,userIdToImpersonate:`the account to impersonate`,reason:`the reason`,resource:`the resource`};function K(e){if(e.length===1)return e[0];let t=[...e],n=t.pop();return`${t.join(`, `)} and ${n}`}function q({error:e,whenAbsent:t,whenOther:n,whenRejected:r=`Check the credentials for that service, then try again.`}){let i=e.meta.upstreamStatus;return typeof i==`number`?i===401||i===403?r:i===429?`It's rate limiting us. Try again shortly.`:i>=500?`It's having trouble. Try again in a moment.`:n:t}var Te={customer:`Check your input`,platform:`Something went wrong on our end`,provider:`A connected service didn't respond`};function Ee(e){let t=E(e.replace(/_/g,` `));return t.charAt(0).toUpperCase()+t.slice(1)}function J(e){let t=Object.hasOwn(W,e.code)?W[e.code]:void 0;return t?{title:t.title,description:t.describe?.(e)??``,isRegistered:!0}:{title:Ee(e.code)||Te[e.fault]||X.title,description:``,isRegistered:!1}}function De(e){return J(j(e))}function Oe(e){let t=S(e);return t?J(t):Y(e)}function Y(e){let t=P(e);return t?{...X,description:t}:X}var X={title:`Something went wrong`,description:`We've been notified. Try again in a moment.`,isRegistered:!1};function Z({error:e,title:t,fallbackTitle:n}){let r=S(e),i=r?J(r):Y(e);return{title:t??(i.isRegistered?i.title:n??i.title),description:i.description,tips:ke({tips:r?.tips??[],description:i.description}),docsUrl:r?.docsUrl,traceId:r?.traceId||he(e)}}function Q({error:e,fallbackTitle:t}){let{title:n,description:r}=Z({error:e,fallbackTitle:t});return r?`${n}. ${r}`:n}function ke({tips:e,description:t}){if(!t)return e;let n=$(t);return n?e.filter(e=>{let t=$(e);return t?!n.includes(t)&&!t.includes(n):!1}):e}function $(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,` `).trim()}var Ae=`color-mix(in srgb, var(--chakra-colors-red-solid) 26%, var(--chakra-colors-border-muted))`;function je({error:e,title:i,fallbackTitle:a,showAllTips:s=!0}){if(!e||m(e))return null;let c=Z({error:e,title:i,fallbackTitle:a}),{tips:d}=c;return(0,B.jsx)(t,{role:`alert`,borderWidth:`1px`,borderColor:Ae,borderRadius:`12px`,bg:`bg.surface`,_dark:{bg:`bg.panel`},paddingX:`14px`,paddingY:`12px`,children:(0,B.jsxs)(n,{gap:`2.5`,alignItems:`flex-start`,children:[(0,B.jsx)(t,{color:`red.fg`,display:`flex`,flexShrink:0,marginTop:`1px`,children:(0,B.jsx)(u,{size:15,"aria-hidden":`true`})}),(0,B.jsxs)(r,{gap:`0.5`,flex:`1`,minWidth:0,children:[(0,B.jsx)(o,{fontSize:`13.5px`,fontWeight:`640`,lineHeight:`1.35`,letterSpacing:`-0.005em`,children:c.title}),c.description&&(0,B.jsx)(o,{fontSize:`13px`,lineHeight:`1.5`,color:`fg.muted`,children:c.description}),s&&d.length>0&&(0,B.jsx)(g,{gap:.5,marginTop:1.5,fontSize:`12.5px`,color:`fg.muted`,paddingLeft:4,children:d.map((e,t)=>(0,B.jsx)(_,{children:e},t))}),!s&&d[0]&&(0,B.jsx)(o,{fontSize:`12.5px`,marginTop:1,color:`fg.muted`,children:d[0]}),(0,B.jsx)(l,{docsUrl:c.docsUrl,traceId:c.traceId})]})]})})}function Me({error:e,title:n,fallbackTitle:i,icon:c,children:d,fullHeight:f=!0}){let p=Z({error:e,title:n,fallbackTitle:i});return(0,B.jsx)(t,{display:`flex`,alignItems:`center`,justifyContent:`center`,width:`full`,padding:8,...f?{minHeight:`100vh`}:{paddingY:16},children:(0,B.jsxs)(s,{gap:4,maxWidth:`560px`,textAlign:`center`,children:[(0,B.jsx)(t,{color:`fg.muted`,"aria-hidden":`true`,children:c??(0,B.jsx)(u,{size:44,strokeWidth:1.5})}),(0,B.jsxs)(r,{gap:2,role:`alert`,children:[(0,B.jsx)(a,{size:`lg`,letterSpacing:`-0.01em`,children:p.title}),p.description&&(0,B.jsx)(o,{color:`fg.muted`,fontSize:`15px`,lineHeight:`1.6`,children:p.description})]}),p.tips.length>0&&(0,B.jsx)(g,{gap:1,fontSize:`13.5px`,color:`fg.muted`,textAlign:`left`,paddingLeft:4,children:p.tips.map((e,t)=>(0,B.jsx)(_,{children:e},t))}),d&&(0,B.jsx)(s,{gap:3,paddingTop:2,width:`full`,align:`center`,children:d}),(0,B.jsx)(l,{docsUrl:p.docsUrl,traceId:p.traceId})]})})}function Ne({error:e,...t}){if(m(e))return;let n=Z({error:e,title:t.title,fallbackTitle:t.fallbackTitle});c.create({...t.id?{id:t.id}:{},duration:12e3,title:n.title,description:Pe(n),type:`error`,meta:{closable:!0,docsUrl:n.docsUrl,traceId:n.traceId}})}function Pe({description:e,tips:t}){let n=t[0];return e?n?/[.!?]$/.test(e)?`${e} ${n}`:`${e}. ${n}`:e:n??``}export{X as a,De as c,S as d,E as f,g,_ as h,Q as i,Se as l,ae as m,Me as n,Oe as o,ce as p,je as r,J as s,Ne as t,ve as u};
|
|
2
|
-
//# sourceMappingURL=errors-e711UMq7.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{dn as n,n as r}from"./portal-Sdfvrza9.js";import{t as i}from"./jsx-runtime-CFwixLRt.js";import{t as a}from"./heading-C0sACr0w.js";import{n as o}from"./v-stack-hkuSkmCA.js";import{Nn as s}from"./ProjectAvatar-DtI9dT1f.js";import{a as c,i as l,n as u,r as d,t as f}from"./alert-CPsXih3K.js";import{n as p,r as m,t as h}from"./card-By_Mbslh.js";import{t as g}from"./grid-item-CKAuKzga.js";import{n as _}from"./api-l6Cnm0vQ.js";import{t as v}from"./chart-no-axes-column-DyIZPb-w.js";import{r as y}from"./next-router-CWLrMXvP.js";import{Vt as b,t as x}from"./index-CPtTUYLD.js";import{t as S}from"./WithPermissionGuard-Cr6Aljmy.js";import{n as C}from"./getEvaluator-irVFciCL.js";import{t as w}from"./CustomGraph-DOp8hQmM.js";import{t as T}from"./FilterSidebar-CbZF27X2.js";import{t as E}from"./GraphsLayout-BCvqg3RK.js";var D=e(t()),O=i(),k=1440,A={graphId:`evaluationsHealthSummary`,graphType:`summary`,series:[{name:`Total evaluation runs`,metric:`evaluations.evaluation_runs`,aggregation:`cardinality`,key:``,colorSet:`tealTones`}],includePrevious:!0,timeScale:k,height:200},j={graphId:`evaluationsPassFailTrend`,graphType:`stacked_bar`,series:[{name:`Online evaluations`,metric:`evaluations.evaluation_runs`,aggregation:`cardinality`,key:``,colorSet:`positiveNegativeNeutral`}],groupBy:`evaluations.evaluation_passed`,includePrevious:!1,timeScale:k,height:200},M=(e,t)=>e.map(e=>{let n={},i={},s=null,c=C(e.checkType),l=e.checkType===`langevals/llm_category`;return c?.isGuardrail?(i={graphId:`evalSummary_${e.id}`,graphType:`donnut`,series:[{name:`Checks count`,colorSet:`positiveNegativeNeutral`,metric:`evaluations.evaluation_runs`,aggregation:`cardinality`,key:e.id,filters:{"evaluations.state":{[e.id]:[`processed`]}}}],groupBy:`evaluations.evaluation_passed`,groupByKey:e.id,includePrevious:!1,timeScale:k,height:300},n={graphId:`evalTimeline_${e.id}`,graphType:`stacked_bar`,series:[{name:``,colorSet:`positiveNegativeNeutral`,metric:`evaluations.evaluation_runs`,aggregation:`cardinality`,pipeline:{field:`trace_id`,aggregation:`sum`},key:e.id,filters:{"evaluations.state":{[e.id]:[`processed`]}}}],groupBy:`evaluations.evaluation_passed`,groupByKey:e.id,includePrevious:!1,timeScale:k,height:300},s={graphId:`evalPassRate_${e.id}`,graphType:`line`,series:[{name:`Pass rate`,colorSet:`tealTones`,metric:`evaluations.evaluation_pass_rate`,aggregation:`avg`,key:e.id,filters:{"evaluations.state":{[e.id]:[`processed`]}}}],includePrevious:!1,timeScale:k,height:200}):l?(i={graphId:`evalSummary_${e.id}`,graphType:`donnut`,series:[{name:`Traces count`,colorSet:`colors`,metric:`metadata.trace_id`,aggregation:`cardinality`,filters:{"evaluations.state":{[e.id]:[`processed`]}}}],groupBy:`evaluations.evaluation_label`,groupByKey:e.id,includePrevious:!1,timeScale:k,height:400},n={graphId:`evalTimeline_${e.id}`,graphType:`horizontal_bar`,series:[{name:``,colorSet:`colors`,metric:`metadata.trace_id`,aggregation:`cardinality`,filters:{"evaluations.state":{[e.id]:[`processed`]}}}],groupBy:`evaluations.evaluation_label`,groupByKey:e.id,includePrevious:!1,timeScale:`full`,height:400}):(i={graphId:`evalSummary_${e.id}`,graphType:`summary`,series:[{name:`Evaluation score average`,colorSet:`tealTones`,metric:`evaluations.evaluation_score`,aggregation:`avg`,key:e.id,filters:{"evaluations.state":{[e.id]:[`processed`]}}}],includePrevious:!1,timeScale:k,height:200},n={graphId:`evalTimeline_${e.id}`,graphType:`line`,series:[{name:`Average score`,colorSet:`colors`,metric:`evaluations.evaluation_score`,aggregation:`avg`,key:e.id,filters:{"evaluations.state":{[e.id]:[`processed`]}}}],includePrevious:!1,timeScale:k,height:200}),(0,O.jsxs)(D.Fragment,{children:[(0,O.jsx)(g,{colSpan:1,display:`inline-grid`,children:(0,O.jsxs)(m,{children:[(0,O.jsxs)(p,{children:[(0,O.jsxs)(r,{gap:2,children:[(0,O.jsx)(v,{color:`orange`}),(0,O.jsx)(a,{size:`sm`,children:e.name})]}),!e.enabled&&(0,O.jsx)(o,{color:`gray`,fontSize:`sm`,children:`(disabled)`})]}),(0,O.jsx)(h,{children:(0,O.jsx)(w,{input:i,onDataPointClick:n=>{t({evaluatorId:e.id,groupKey:n.groupKey,checkType:e.checkType,isGuardrail:c?.isGuardrail??!1})}})})]})}),(0,O.jsx)(g,{colSpan:3,display:`inline-grid`,children:(0,O.jsxs)(m,{children:[(0,O.jsxs)(p,{children:[(0,O.jsxs)(r,{gap:2,children:[(0,O.jsx)(v,{color:`orange`}),(0,O.jsx)(a,{size:`sm`,children:e.name}),c&&(0,O.jsxs)(o,{fontWeight:300,children:[`- `,c.name]})]}),!e.enabled&&(0,O.jsx)(o,{color:`gray`,fontSize:`sm`,children:`(disabled)`})]}),(0,O.jsx)(h,{children:(0,O.jsx)(w,{input:n,onDataPointClick:n=>{t({evaluatorId:e.id,groupKey:n.groupKey,date:n.date,startDate:n.startDate,endDate:n.endDate,checkType:e.checkType,isGuardrail:c?.isGuardrail??!1})}})})]})}),s&&(0,O.jsx)(g,{colSpan:4,display:`inline-grid`,children:(0,O.jsxs)(m,{children:[(0,O.jsx)(p,{children:(0,O.jsxs)(r,{gap:2,children:[(0,O.jsx)(v,{color:`orange`}),(0,O.jsxs)(a,{size:`sm`,children:[e.name,` - Pass Rate Trend`]})]})}),(0,O.jsx)(h,{children:(0,O.jsx)(w,{input:s})})]})})]},e.id)});function N(){let{project:e}=b(),t=y(),i=_.monitors.getAllForProject.useQuery({projectId:e?.id??``},{enabled:!!e}),v=typeof t.query.evaluationId==`string`?t.query.evaluationId:void 0,S=i.data?.find(e=>e.id===v),C=S?[S]:i.data??[],k=(0,D.useCallback)(n=>{if(!e||!n.evaluatorId)return;let r=n.checkType===`langevals/llm_category`,i={[`evaluation_run.${n.evaluatorId}`]:[`processed`]};if(n.isGuardrail&&n.groupKey){let e=n.groupKey===`passed`||n.groupKey===`true`||n.groupKey===`positive`||n.groupKey===`1`,t=n.groupKey===`failed`||n.groupKey===`false`||n.groupKey===`negative`||n.groupKey===`0`;e?i[`evaluation_passed.${n.evaluatorId}`]=`1`:t&&(i[`evaluation_passed.${n.evaluatorId}`]=`0`)}else r&&n.groupKey&&(i[`evaluation_label.${n.evaluatorId}`]=n.groupKey);n.startDate&&n.endDate&&(i.startDate=n.startDate,i.endDate=n.endDate),t.push({pathname:`/${e.slug}/messages`,query:i},void 0,{shallow:!1})},[e,t]);return(0,O.jsxs)(E,{title:`Online Evaluations`,children:[i.data&&i.data?.length===0&&(0,O.jsxs)(l,{colorPalette:`warning`,borderStartWidth:`4px`,borderStartColor:`colorPalette.solid`,marginBottom:6,children:[(0,O.jsx)(d,{}),(0,O.jsxs)(f,{children:[(0,O.jsx)(c,{children:`No online evaluations yet`}),(0,O.jsxs)(u,{children:[(0,O.jsxs)(o,{as:`span`,children:[`Online evaluation results will be displayed here.`,` `]}),(0,O.jsx)(x,{href:`/${e?.slug}/online-evaluations`,children:`Set up an online evaluation`}),(0,O.jsx)(o,{as:`span`,children:` to see results for your project.`})]})]})]}),S&&(0,O.jsxs)(l,{colorPalette:`blue`,marginBottom:6,children:[(0,O.jsx)(d,{}),(0,O.jsxs)(f,{children:[(0,O.jsx)(c,{children:S.name}),(0,O.jsxs)(u,{children:[`Showing analytics for this online evaluation.`,` `,(0,O.jsx)(x,{href:`/${e?.slug}/analytics/evaluations`,children:`View all online evaluations`})]})]})]}),(0,O.jsxs)(r,{alignItems:`start`,gap:4,children:[(0,O.jsxs)(s,{templateColumns:`repeat(4, 1fr)`,gap:5,width:`100%`,children:[C.length>0&&!S&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(g,{colSpan:1,display:`inline-grid`,children:(0,O.jsxs)(m,{children:[(0,O.jsx)(p,{children:(0,O.jsx)(a,{size:`sm`,children:`Overall Health`})}),(0,O.jsx)(h,{children:(0,O.jsx)(w,{input:A})})]})}),(0,O.jsx)(g,{colSpan:3,display:`inline-grid`,children:(0,O.jsxs)(m,{children:[(0,O.jsx)(p,{children:(0,O.jsx)(a,{size:`sm`,children:`Pass / Fail Trend`})}),(0,O.jsx)(h,{children:(0,O.jsx)(w,{input:j})})]})})]}),C.length>0?M([...C].sort((e,t)=>e.enabled===t.enabled?0:e.enabled?-1:1),k):null]}),(0,O.jsx)(n,{padding:3,children:(0,O.jsx)(T,{hideTopics:!0})})]})]})}var P=S(`analytics:view`)(N);export{P as default};
|
|
2
|
-
//# sourceMappingURL=evaluations-Cg9PywKJ.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{a as n,dn as r,i,n as a}from"./portal-Sdfvrza9.js";import{t as o}from"./jsx-runtime-CFwixLRt.js";import{t as s}from"./skeleton-0JSrjbwm.js";import{n as c,t as l}from"./v-stack-hkuSkmCA.js";import{p as u,t as d}from"./select-D17PWjH9.js";import{t as f}from"./badge-Cpc3eA-C.js";import{a as p,f as m,n as h}from"./toaster-BsYkODqs.js";import{L as g,O as _,Q as v,X as y,Y as b,Z as x,et as S,r as C}from"./Markdown-C9extmbX.js";import{a as w,r as T}from"./field-BadoNaN5.js";import{L as E,t as D}from"./DashboardLayout-BhHe0vIT.js";import{t as O}from"./errors-e711UMq7.js";import{t as ee}from"./spacer-C38e7o6r.js";import{F as k,et as A}from"./immer-CFru3D02.js";import{n as j}from"./api-l6Cnm0vQ.js";import{o as M}from"./trpcError-CFsR-0nB.js";import{r as N}from"./next-router-CWLrMXvP.js";import{A as P,F,Wt as I,X as te,gn as ne,un as re}from"./lu-DlSq9Be4.js";import{Jt as L,Qn as ie,St as R,Ut as z,Vt as B,qt as V,t as H}from"./index-CPtTUYLD.js";import{t as U}from"./copy-DPUyWClX.js";import{t as W}from"./more-vertical-CnKfgTmQ.js";import{t as G}from"./WithPermissionGuard-Cr6Aljmy.js";import{t as K}from"./useLicenseEnforcement-DOI0dcqD.js";import{t as q}from"./OverflownText-CY4Y__oL.js";import{i as J}from"./types-CCALFpCT.js";import{t as ae}from"./LangyContextTarget-CIlp_Zew.js";import{n as oe,t as se}from"./NavigationFooter-1VNOUoV6.js";import{t as ce}from"./NoDataInfoBlock-C8x5bzL0.js";import{n as le}from"./SetupWithAgentButton-Bhxb1yOj.js";import{t as ue}from"./ListTable-8idtTXBY.js";import{t as Y}from"./persistence-DZOtzFnQ.js";import{t as de}from"./humanReadableId-ClEZjP0Y.js";import{t as fe}from"./FullWidthListPageContent-Dy5CMMfE.js";import{t as pe}from"./BatchEvaluationSummary-CFBL50E9.js";var X=e(t()),Z=o(),Q=()=>{let{project:e,hasPermission:t}=B(),i=N(),[o,s]=(0,X.useState)(!1),l=j.useContext(),{checkAndProceed:u}=K(`experiments`),d=j.experiments.saveEvaluationsV3.useMutation({onSuccess:t=>{l.experiments.getAllForEvaluationsList.invalidate(),i.push(`/${e?.slug}/experiments/workbench/${t.slug}`),s(!1)},onError:e=>{s(!1),O({error:e,fallbackTitle:`Couldn't create the experiment`})}});return!e||!t(`workflows:create`)?null:(0,Z.jsxs)(g.Root,{children:[(0,Z.jsx)(g.Trigger,{asChild:!0,children:(0,Z.jsxs)(E.HeaderButton,{background:`bg`,children:[(0,Z.jsx)(ie,{size:16}),`New Experiment`,(0,Z.jsx)(A,{size:14})]})}),(0,Z.jsxs)(g.Content,{minWidth:`320px`,children:[(0,Z.jsx)(g.Item,{value:`experiment-ui`,onClick:()=>{u(()=>{if(o)return;s(!0);let t=de(),n=J();n.name=t;let r=Y(n);d.mutate({projectId:e.id,experimentId:void 0,state:{...r,experimentSlug:t}})})},disabled:o,children:(0,Z.jsxs)(r,{width:`100%`,children:[(0,Z.jsxs)(c,{fontWeight:`medium`,children:[o&&(0,Z.jsx)(n,{size:`xs`,marginRight:2}),`Create Experiment`]}),(0,Z.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`Compare prompts and agents performance side by side`})]})}),(0,Z.jsx)(g.Item,{value:`experiment-sdk`,asChild:!0,children:(0,Z.jsx)(m,{href:`https://langwatch.ai/docs/evaluations/experiments/sdk`,target:`_blank`,children:(0,Z.jsxs)(r,{width:`100%`,children:[(0,Z.jsxs)(a,{gap:1,children:[(0,Z.jsx)(c,{fontWeight:`medium`,children:`New Experiment via SDK`}),(0,Z.jsx)(p,{size:14})]}),(0,Z.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`Run experiments programmatically from notebooks or scripts`})]})})})]})]})},me=({open:e,onClose:t,experimentId:n,experimentName:r})=>{let{organizations:a,project:o}=B(),s=z(),f=j.useContext(),p=j.experiments.copy.useMutation(),[m,g]=(0,X.useState)([]),[v,y]=(0,X.useState)(!1),b=s.data?.user?.id,x=a?.flatMap(e=>e.teams.flatMap(t=>{let n=t.members.find(e=>e.userId===b);if(!n)return[];let r=!1;if(n.assignedRole){let e=n.assignedRole.permissions??[];r=e.length>0?V(e,`evaluations:manage`):L(n.role,`evaluations:manage`)}else r=L(n.role,`evaluations:manage`);return t.projects.map(n=>({label:`${e.name} / ${t.name} / ${n.name}`,value:n.id,hasManagePermission:r}))}))??[],S=u({items:x}),C=async()=>{let e=m[0];if(!e||!o)return;let i=x.find(t=>t.value===e)?.label??`selected project`;try{await p.mutateAsync({experimentId:n,projectId:e,sourceProjectId:o.id,copyDatasets:v}),await f.experiments.getAllForEvaluationsList.invalidate(),h.create({title:`Experiment replicated`,description:`Experiment "${r}" replicated successfully to ${i}.`,type:`success`}),t()}catch(e){O({error:e,fallbackTitle:`Couldn't replicate the experiment`})}};return(0,Z.jsx)(R.Root,{open:e,onOpenChange:e=>!e.open&&t(),children:(0,Z.jsxs)(R.Content,{bg:`bg`,onClick:e=>e.stopPropagation(),children:[(0,Z.jsx)(R.Header,{children:(0,Z.jsx)(R.Title,{children:`Replicate Experiment`})}),(0,Z.jsx)(R.Body,{children:(0,Z.jsxs)(l,{gap:4,align:`start`,children:[(0,Z.jsxs)(w,{children:[(0,Z.jsx)(T,{children:`Target Project`}),(0,Z.jsxs)(d.Root,{collection:S,value:m,onValueChange:e=>{x.find(t=>t.value===e.value[0])?.hasManagePermission&&g(e.value)},children:[(0,Z.jsx)(d.Trigger,{children:(0,Z.jsx)(d.ValueText,{placeholder:`Select project`})}),(0,Z.jsx)(d.Content,{children:S.items.map(e=>{let t=e.hasManagePermission;return(0,Z.jsxs)(d.Item,{item:e,opacity:t?1:.5,cursor:t?`pointer`:`not-allowed`,children:[e.label,!t&&(0,Z.jsx)(c,{display:`inline-block`,fontSize:`sm`,color:`fg.subtle`,ml:2,children:`(no permission)`})]},e.value)})})]})]}),(0,Z.jsx)(_,{checked:v,onCheckedChange:e=>y(!!e.checked),children:`Replicate associated dataset`})]})}),(0,Z.jsxs)(R.Footer,{children:[(0,Z.jsx)(i,{variant:`ghost`,onClick:t,children:`Cancel`}),(0,Z.jsx)(i,{colorPalette:`blue`,onClick:()=>{C()},loading:p.isLoading,disabled:!m.length||!x.find(e=>e.value===m[0])?.hasManagePermission,children:`Replicate`})]})]})})};function $(){let{project:e,hasPermission:t}=B(),i=N(),[o,u]=(0,X.useState)(null),[d,p]=(0,X.useState)(null),m=oe(),_=j.experiments.getAllForEvaluationsList.useQuery({projectId:e?.id??``,pageOffset:m.pageOffset,pageSize:m.pageSize},{enabled:!!e&&i.isReady,keepPreviousData:!0,refetchOnMount:!1,refetchOnWindowFocus:!1});m.useUpdateTotalHits(_);let w=j.experiments.deleteExperiment.useMutation({onSuccess:()=>{_.refetch(),h.create({title:`Experiment deleted`,type:`success`,meta:{closable:!0}})},onError:e=>{M(e)||h.create({title:`Error deleting experiment`,description:`Please try again. If the problem persists, contact support.`,type:`error`,meta:{closable:!0}})}}),T=(e,t)=>{p({id:e,name:t})};if(!e)return null;let O={real_time:`Legacy live workflow`,llm_app:`LLM App Experiment`,prompt_creation:`Prompt Experiment`,custom_evaluator:`Evaluator Experiment`,scan:`Vulnerability Scan`},A={BATCH_EVALUATION_V2:`Experiment (SDK)`,BATCH_EVALUATION:`Batch Experiment`,DSPY:`DSPy Optimization`,EVALUATIONS_V3:`Experiment (UI)`};return(0,Z.jsxs)(D,{children:[(0,Z.jsxs)(E.Header,{children:[(0,Z.jsx)(E.Heading,{children:`Experiments`}),(0,Z.jsx)(ee,{}),(0,Z.jsx)(a,{gap:2,children:(0,Z.jsx)(Q,{})})]}),_.isLoading?(0,Z.jsx)(r,{display:`flex`,justifyContent:`center`,py:8,children:(0,Z.jsx)(n,{})}):_.isError?(0,Z.jsx)(r,{padding:6,children:(0,Z.jsx)(c,{color:`red.500`,children:`Error loading experiments`})}):_.data?.experiments.length===0?(0,Z.jsx)(E.Container,{children:(0,Z.jsx)(E.Content,{children:(0,Z.jsx)(ce,{title:`No experiments yet`,description:`Test prompts, models, and agents against a dataset before shipping changes.`,icon:(0,Z.jsx)(re,{size:24}),color:`green.500`,docsInfo:(0,Z.jsxs)(c,{children:[`To learn more about experiments, visit the`,` `,(0,Z.jsx)(H,{color:`inherit`,textDecoration:`underline`,href:`https://langwatch.ai/docs/evaluations/experiments/overview`,isExternal:!0,children:`experiments documentation`}),`.`]}),children:(0,Z.jsxs)(a,{marginTop:4,gap:2,children:[(0,Z.jsx)(Q,{}),(0,Z.jsx)(le,{surface:`experiments`})]})})})}):(0,Z.jsx)(fe,{children:(0,Z.jsxs)(l,{width:`full`,gap:4,align:`stretch`,children:[(0,Z.jsx)(c,{color:`fg.muted`,children:`Compare configurations and analyze batch test results`}),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(ue,{width:`full`,children:[(0,Z.jsx)(v,{children:(0,Z.jsxs)(S,{children:[(0,Z.jsx)(x,{width:`20%`,children:`Experiment`}),(0,Z.jsx)(x,{width:`15%`,children:`Type`}),(0,Z.jsx)(x,{width:`10%`,children:`Dataset`}),(0,Z.jsx)(x,{width:`20%`,children:`Primary Metric`}),(0,Z.jsx)(x,{width:`10%`,children:`Runs`}),(0,Z.jsx)(x,{width:`10%`,children:`Status`}),(0,Z.jsx)(x,{width:`10%`,children:`Last Updated`}),(0,Z.jsx)(x,{width:`5%`})]})}),(0,Z.jsx)(b,{children:_.isLoading||_.isFetching?Array.from({length:3}).map((e,t)=>(0,Z.jsxs)(S,{children:[(0,Z.jsx)(y,{children:(0,Z.jsx)(s,{height:`20px`})}),(0,Z.jsx)(y,{children:(0,Z.jsx)(s,{height:`20px`})}),(0,Z.jsx)(y,{children:(0,Z.jsx)(s,{height:`20px`})}),(0,Z.jsx)(y,{children:(0,Z.jsx)(s,{height:`20px`})}),(0,Z.jsx)(y,{children:(0,Z.jsx)(s,{height:`20px`})}),(0,Z.jsx)(y,{children:(0,Z.jsx)(s,{height:`20px`})}),(0,Z.jsx)(y,{children:(0,Z.jsx)(s,{height:`20px`})}),(0,Z.jsx)(y,{children:(0,Z.jsx)(s,{height:`20px`})})]},t)):_.data?_.data.experiments.map(o=>(0,Z.jsx)(ae,{target:k({slug:o.slug,name:o.name}),children:(0,Z.jsxs)(S,{cursor:`pointer`,onClick:()=>{o.type===`EVALUATIONS_V3`||o.workbenchState?i.push({pathname:`/${e?.slug}/experiments/workbench/${o.slug}`}):i.push({pathname:`/${e?.slug}/experiments/${o.slug}`})},children:[(0,Z.jsx)(y,{children:(0,Z.jsx)(q,{lineClamp:1,wordBreak:`break-word`,children:o.name??o.slug})}),(0,Z.jsx)(y,{whiteSpace:`nowrap`,children:(0,Z.jsx)(f,{colorPalette:`gray`,variant:`outline`,children:o.workbenchState?.task?O[o.workbenchState.task]:A[o.type]})}),(0,Z.jsx)(y,{children:(0,Z.jsx)(q,{lineClamp:1,wordBreak:`break-word`,children:o.dataset?.name??`-`})}),(0,Z.jsx)(y,{children:o.runsSummary.primaryMetric?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(c,{as:`span`,fontSize:`xs`,color:`fg.muted`,children:[o.runsSummary.primaryMetric.name,`: \xA0`]}),(0,Z.jsx)(c,{as:`span`,fontWeight:`semibold`,children:pe(o.runsSummary.primaryMetric,!0)})]}):`-`}),(0,Z.jsx)(y,{children:o.runsSummary.count??`-`}),(0,Z.jsx)(y,{children:(0,Z.jsx)(a,{gap:1,children:o.runsSummary.latestRun?.timestamps?.finishedAt?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(P,{size:14,color:`var(--chakra-colors-green-500)`}),(0,Z.jsx)(c,{fontSize:`sm`,children:`Completed`})]}):o.runsSummary.latestRun?.timestamps?.stoppedAt?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(F,{size:14,color:`var(--chakra-colors-red-500)`}),(0,Z.jsx)(c,{fontSize:`sm`,children:`Stopped`})]}):o.runsSummary.latestRun?.timestamps?.updatedAt&&Date.now()-o.runsSummary.latestRun.timestamps.updatedAt<300*1e3?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(n,{size:`xs`}),(0,Z.jsx)(c,{fontSize:`sm`,children:`Running`})]}):o.runsSummary.count>0?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(P,{size:14,color:`var(--chakra-colors-green-500)`}),(0,Z.jsx)(c,{fontSize:`sm`,children:`Completed`})]}):(0,Z.jsx)(c,{fontSize:`sm`,color:`fg.muted`,children:`-`})})}),(0,Z.jsx)(y,{whiteSpace:`nowrap`,children:new Date(o.updatedAt).toLocaleString()}),(0,Z.jsx)(y,{children:(0,Z.jsx)(r,{width:`full`,height:`full`,display:`flex`,justifyContent:`end`,children:(0,Z.jsxs)(g.Root,{children:[(0,Z.jsx)(g.Trigger,{"aria-label":`Actions for ${o.name??o.slug}`,onClick:e=>{e.stopPropagation()},children:(0,Z.jsx)(W,{size:16})}),(0,Z.jsxs)(g.Content,{children:[t(`workflows:create`)&&o.type===`EVALUATIONS_V3`&&(0,Z.jsxs)(g.Item,{value:`edit`,onClick:t=>{t.stopPropagation(),i.push(`/${e?.slug}/experiments/workbench/${o.slug}`)},children:[(0,Z.jsx)(I,{size:16}),`Edit`]}),t(`workflows:create`)&&o.type!==`EVALUATIONS_V3`&&o.type!==`BATCH_EVALUATION_V2`&&o.workbenchState&&(0,Z.jsxs)(g.Item,{value:`edit`,onClick:t=>{t.stopPropagation(),i.push(`/${e?.slug}/experiments/workbench/${o.slug}`)},children:[(0,Z.jsx)(I,{size:16}),`Edit`]}),(0,Z.jsxs)(g.Item,{value:`view-results`,onClick:t=>{t.stopPropagation(),i.push(`/${e?.slug}/experiments/${o.slug}`)},children:[(0,Z.jsx)(te,{size:16}),`View Results`]}),t(`evaluations:manage`)&&(0,Z.jsxs)(g.Item,{value:`replicate`,onClick:e=>{e.stopPropagation(),u({open:!0,experimentId:o.id,experimentName:o.name??o.slug})},children:[(0,Z.jsx)(U,{size:16}),`Replicate to another project`]}),t(`workflows:delete`)&&(0,Z.jsxs)(g.Item,{value:`delete`,color:`red.500`,onClick:e=>{e.stopPropagation(),T(o.id,o.name??o.slug)},children:[(0,Z.jsx)(ne,{size:16}),`Delete`]})]})]})})})]})},o.id)):null})]}),_.data&&_.data.experiments.length>0&&(0,Z.jsx)(se,{...m})]})]})}),o&&(0,Z.jsx)(me,{open:o.open,onClose:()=>u(null),experimentId:o.experimentId,experimentName:o.experimentName}),(0,Z.jsx)(C,{open:!!d,onOpenChange:e=>{e||p(null)},title:`Delete experiment`,message:`Are you sure you want to delete the experiment "${d?.name??``}"? This will also delete the workflow, monitor, and prompts associated with it. Datasets will be kept.`,confirmLabel:`Delete`,tone:`danger`,loading:w.isLoading,onConfirm:()=>{d&&w.mutate({projectId:e?.id??``,experimentId:d.id},{onSettled:()=>p(null)})}})]})}var he=G(`experiments:view`,{layoutComponent:D})($);function ge(){let e=N(),t=e.query.project;return(0,X.useEffect)(()=>{!e.isReady||typeof t!=`string`||e.replace(`/${t}/experiments`)},[t,e,e.isReady]),null}export{$ as ExperimentsPage,he as GuardedExperimentsPage,ge as default};
|
|
2
|
-
//# sourceMappingURL=evaluations-xuA_g6-G.js.map
|