@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,19 +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"./heading-C0sACr0w.js";import{n as c,t as l}from"./v-stack-hkuSkmCA.js";import{Nn as u,Sn as d,Yn as f,jn as p}from"./ProjectAvatar-DtI9dT1f.js";import{t as m}from"./badge-Cpc3eA-C.js";import{l as h,n as g,o as _}from"./toaster-BsYkODqs.js";import{K as v}from"./Markdown-C9extmbX.js";import{Vt as y}from"./DashboardLayout-BhHe0vIT.js";import{d as b,r as x,t as S}from"./errors-e711UMq7.js";import{t as ee}from"./spacer-C38e7o6r.js";import{Y as C}from"./immer-CFru3D02.js";import{n as w}from"./api-l6Cnm0vQ.js";import{t as T}from"./GovernanceLayout-DiDbO74a.js";import{n as E}from"./log-out-CUZz1cYc.js";import{t as D}from"./circle-dashed-DWC9qFep.js";import{r as O}from"./next-router-CWLrMXvP.js";import{At as k,Dt as A,Et as j,Ot as M,Tt as N,Vt as P,Zn as F,kt as I,t as L,wt as R}from"./index-CPtTUYLD.js";import{t as z}from"./EnterpriseLockedSurface-CM8Sj7hf.js";import{t as B}from"./WithFeatureFlagGuard-OePuXWRG.js";import{t as V}from"./WithPermissionGuard-Cr6Aljmy.js";var H=e(d()),U=e(t()),W=o(),G={active:{icon:h,label:`Active`,color:`green.500`},awaiting_first_event:{icon:D,label:`Awaiting first event`,color:`amber.500`},disabled:{icon:p,label:`Disabled`,color:`fg.muted`}};function K(e){return b(e)?.httpStatus===404}var q=e=>e===0?`$0.00`:(0,H.default)(e).format(`$0,0.0000`),J=e=>{if(!e)return`-`;let t=Date.now()-new Date(e).getTime(),n=Math.floor(t/1e3);if(n<60)return`${n}s ago`;let r=Math.floor(n/60);if(r<60)return`${r}m ago`;let i=Math.floor(r/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`};function Y(){let e=O(),t=e.query.id,{organization:o}=P({redirectToOnboarding:!1}),d=o?.id??``,f=w.ingestionSources.get.useQuery({organizationId:d,id:t??``},{enabled:!!d&&!!t,refetchOnWindowFocus:!1}),p=w.activityMonitor.sourceHealthMetrics.useQuery({organizationId:d,sourceId:t??``},{enabled:!!d&&!!t,refetchOnWindowFocus:!1}),h=w.activityMonitor.eventsForSource.useQuery({organizationId:d,sourceId:t??``,limit:50},{enabled:!!d&&!!t,refetchOnWindowFocus:!1}),_=w.useUtils(),[b,C]=(0,U.useState)(null),D=w.ingestionSources.rotateSecret.useMutation({onSuccess:e=>{_.ingestionSources.get.invalidate({organizationId:d,id:t}),C({secret:e.ingestSecret,sourceName:e.source.name})},onError:e=>S({error:e,fallbackTitle:`Couldn't rotate the secret`})}),k=w.ingestionSources.archive.useMutation({onSuccess:()=>{g.create({title:`Source archived`,type:`success`}),e.push(`/settings/governance/ingestion-sources`)},onError:e=>S({error:e,fallbackTitle:`Couldn't archive the source`})});if(!t)return(0,W.jsx)(y,{});let A=f.data,j=p.data,M=h.data??[],N=A?.name?`${A.name} · Ingestion Source · LangWatch`:`Ingestion Source · LangWatch`;if(K(f.error))return(0,W.jsx)(y,{});if(f.error)return(0,W.jsx)(T,{pageTitle:N,children:(0,W.jsx)(z,{featureName:`Ingestion Source detail`,description:`Source-level health metrics and event drill-downs are part of the Enterprise plan.`,children:(0,W.jsx)(x,{error:f.error,fallbackTitle:`Couldn't load this ingestion source`})})});if(!A)return(0,W.jsx)(T,{pageTitle:N,children:(0,W.jsx)(z,{featureName:`Ingestion Source detail`,description:`Source-level health metrics and event drill-downs are part of the Enterprise plan.`,children:(0,W.jsx)(n,{size:`sm`})})});let I=G[A.status]??G.awaiting_first_event,R=I.icon;return(0,W.jsx)(T,{pageTitle:N,children:(0,W.jsxs)(z,{featureName:`Ingestion Source detail`,description:`Source-level health metrics and event drill-downs are part of the Enterprise plan.`,children:[(0,W.jsxs)(l,{align:`stretch`,gap:6,width:`full`,maxW:`container.xl`,children:[(0,W.jsxs)(a,{alignItems:`end`,children:[(0,W.jsxs)(l,{align:`start`,gap:1,children:[(0,W.jsx)(a,{gap:2,children:(0,W.jsx)(L,{href:`/settings/governance/ingestion-sources`,color:`blue.600`,fontSize:`xs`,children:(0,W.jsxs)(a,{gap:1,children:[(0,W.jsx)(E,{size:12}),(0,W.jsx)(c,{children:`All sources`})]})})}),(0,W.jsxs)(a,{gap:2,children:[(0,W.jsx)(s,{size:`md`,children:A.name}),(0,W.jsx)(m,{size:`sm`,variant:`surface`,children:A.sourceType}),(0,W.jsxs)(a,{gap:1,children:[(0,W.jsx)(r,{color:I.color,display:`flex`,children:(0,W.jsx)(R,{size:14})}),(0,W.jsx)(c,{fontSize:`sm`,color:`fg.muted`,children:I.label})]})]}),A.description&&(0,W.jsx)(c,{fontSize:`sm`,color:`fg.muted`,children:A.description})]}),(0,W.jsx)(ee,{}),(0,W.jsxs)(i,{size:`sm`,variant:`outline`,onClick:()=>D.mutate({organizationId:d,id:A.id}),loading:D.isPending,title:`Mint a new ingestSecret (24h grace on the old one)`,children:[(0,W.jsx)(F,{size:14}),` Rotate secret`]}),(0,W.jsxs)(i,{size:`sm`,variant:`ghost`,colorPalette:`red`,onClick:()=>{confirm(`Archive "${A.name}"? Historical events stay readable.`)&&k.mutate({organizationId:d,id:A.id})},loading:k.isPending,children:[(0,W.jsx)(v,{size:14}),` Archive`]})]}),p.error?(0,W.jsx)(x,{error:p.error,fallbackTitle:`Couldn't load health metrics for this source`}):(0,W.jsxs)(u,{columns:{base:2,md:4},gap:4,children:[(0,W.jsx)(Q,{title:`Events 24h`,value:(0,H.default)(j?.events24h??0).format(`0,0`),isLoading:p.isLoading}),(0,W.jsx)(Q,{title:`Events 7d`,value:(0,H.default)(j?.events7d??0).format(`0,0`),isLoading:p.isLoading}),(0,W.jsx)(Q,{title:`Events 30d`,value:(0,H.default)(j?.events30d??0).format(`0,0`),isLoading:p.isLoading}),(0,W.jsx)(Q,{title:`Last event`,value:J(j?.lastSuccessIso??null),isLoading:p.isLoading})]}),(0,W.jsx)(X,{health:j??null,eventsCount:M.length}),(0,W.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:5,children:[(0,W.jsxs)(l,{align:`start`,gap:1,marginBottom:3,children:[(0,W.jsx)(s,{as:`h3`,size:`sm`,children:`Recent events`}),!h.error&&(0,W.jsxs)(c,{fontSize:`sm`,color:`fg.muted`,children:[`Last `,M.length,` OCSF-normalised events from this source. Raw payload + normalised fields shown side-by-side. Newest first.`]})]}),h.isLoading&&(0,W.jsx)(n,{size:`sm`}),(0,W.jsx)(x,{error:h.error,fallbackTitle:`Couldn't load recent events`}),!h.isLoading&&!h.error&&M.length===0&&(0,W.jsx)(Z,{source:A}),M.length>0&&(0,W.jsx)(l,{align:`stretch`,gap:2,children:M.map(e=>(0,W.jsx)($,{event:e},e.eventId))})]})]}),(0,W.jsx)(re,{details:b,sourceId:A.id,sourceType:A.sourceType,onClose:()=>C(null)})]})})}function X({health:e,eventsCount:t}){return!e||!((e.events24h??0)===0&&(e.events7d??0)===0&&(e.events30d??0)===0)||t===0?null:(0,W.jsx)(r,{borderWidth:`1px`,borderColor:`amber.300`,backgroundColor:`amber.50`,padding:3,borderRadius:`md`,children:(0,W.jsxs)(c,{fontSize:`sm`,color:`amber.900`,children:[(0,W.jsx)(`strong`,{children:`Heads up:`}),` the events list shows `,t,` event`,t===1?``:`s`,`, but the rolling 24h\xA0/\xA07d\xA0/\xA030d health windows are all zero. Your events likely have a stale `,(0,W.jsx)(f,{fontSize:`xs`,children:`startTimeUnixNano`}),` `,`(timestamps before today). When firing test events, set`,` `,(0,W.jsx)(f,{fontSize:`xs`,children:`startTimeUnixNano`}),` to`,` `,(0,W.jsx)(f,{fontSize:`xs`,children:`String(Date.now() * 1_000_000)`}),` so the event lands inside the rolling window. The secret-reveal modal's "Test it now" curl already does this for you.`]})})}function Z({source:e}){let t=typeof window<`u`?window.location.origin:`https://langwatch.invalid`,n=e.sourceType===`otel_generic`||e.sourceType===`claude_cowork`,i=e.sourceType===`workato`;return(0,W.jsxs)(l,{align:`stretch`,gap:3,children:[(0,W.jsxs)(c,{fontSize:`sm`,color:`fg.muted`,children:[`No traces from this source yet. Push an OTLP body to`,` `,(0,W.jsx)(f,{fontSize:`xs`,children:`${t}/api/ingest/${n?`otel`:i?`webhook`:`<mode>`}/${e.id}`}),` with the source's bearer secret to start populating.`]}),(0,W.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[`Spans land in the LangWatch trace store with this source's origin tag, viewable in the trace viewer. If you are sending agent traces from your own LangWatch SDK, use`,` `,(0,W.jsx)(f,{fontSize:`xs`,children:`/api/otel/v1/traces`}),` with your project API key - different auth, same trace store. See`,` `,(0,W.jsx)(L,{href:`https://docs.langwatch.ai/observability/trace-vs-activity-ingestion`,color:`blue.600`,children:`Choosing the right OTel endpoint`}),`.`]}),(0,W.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[`Lost the secret? Click `,(0,W.jsx)(`strong`,{children:`Rotate secret`}),` above - the new bearer is shown once with a copy-paste curl example, and the prior secret stays valid for 24h while you roll the new value through every upstream client.`]}),n&&(0,W.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:3,children:[(0,W.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,mb:2,children:`Minimum viable OTLP body shape (camelCase keys):`}),(0,W.jsx)(f,{display:`block`,fontSize:`xs`,whiteSpace:`pre`,overflowX:`auto`,padding:2,children:`{
|
|
2
|
-
"resource_spans": [{
|
|
3
|
-
"scope_spans": [{
|
|
4
|
-
"spans": [{
|
|
5
|
-
"name": "chat.completion",
|
|
6
|
-
"startTimeUnixNano": "<NOW_NS>",
|
|
7
|
-
"attributes": [
|
|
8
|
-
{ "key": "gen_ai.request.model", "value": { "stringValue": "claude-sonnet-4" } },
|
|
9
|
-
{ "key": "gen_ai.usage.input_tokens", "value": { "intValue": 120 } },
|
|
10
|
-
{ "key": "gen_ai.usage.output_tokens", "value": { "intValue": 480 } },
|
|
11
|
-
{ "key": "gen_ai.usage.cost_usd", "value": { "doubleValue": 0.025 } },
|
|
12
|
-
{ "key": "user.email", "value": { "stringValue": "you@your.org" } }
|
|
13
|
-
]
|
|
14
|
-
}]
|
|
15
|
-
}]
|
|
16
|
-
}]
|
|
17
|
-
}`}),(0,W.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,mt:2,children:[`Returns HTTP 202 with `,(0,W.jsx)(f,{fontSize:`xs`,children:`events: 1`}),` on success. If you get `,(0,W.jsx)(f,{fontSize:`xs`,children:`events: 0`}),` with a hint, the body shape didn't parse. See the`,` `,(0,W.jsx)(L,{href:`https://docs.langwatch.ai/ai-gateway/governance/ingestion-sources/otel-generic`,color:`blue.600`,children:`otel-generic docs`}),` `,`for the full attribute reference.`]})]})]})}function Q({title:e,value:t,isLoading:i}){return(0,W.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:4,children:[(0,W.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,textTransform:`uppercase`,letterSpacing:`wider`,children:e}),i?(0,W.jsx)(n,{size:`xs`,marginTop:2}):(0,W.jsx)(s,{as:`span`,size:`md`,marginTop:1,display:`block`,children:t})]})}function $({event:e}){let[t,n]=(0,U.useState)(!1);return(0,W.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`sm`,padding:3,children:[(0,W.jsxs)(a,{gap:3,cursor:`pointer`,onClick:()=>n(e=>!e),children:[(0,W.jsxs)(l,{align:`start`,gap:0,flex:1,minWidth:0,children:[(0,W.jsxs)(a,{gap:2,wrap:`wrap`,children:[(0,W.jsx)(m,{size:`sm`,variant:`surface`,children:e.eventType}),(0,W.jsx)(c,{fontSize:`sm`,fontWeight:`medium`,children:e.actor}),(0,W.jsxs)(c,{fontSize:`sm`,color:`fg.muted`,children:[`· `,e.action]}),(0,W.jsx)(c,{fontSize:`sm`,color:`fg.muted`,children:e.target?`→ ${e.target}`:``})]}),(0,W.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[J(e.eventTimestampIso),` · cost`,` `,q(e.costUsd),(e.tokensInput>0||e.tokensOutput>0)&&(0,W.jsxs)(W.Fragment,{children:[` · `,(0,H.default)(e.tokensInput).format(`0,0`),` →`,` `,(0,H.default)(e.tokensOutput).format(`0,0`),` tokens`]})]})]}),(0,W.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:t?`▲`:`▼`})]}),t&&(0,W.jsxs)(u,{columns:{base:1,lg:2},gap:3,marginTop:3,children:[(0,W.jsx)(te,{event:e}),(0,W.jsx)(ne,{event:e})]})]})}function te({event:e}){return(0,W.jsxs)(r,{children:[(0,W.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,marginBottom:1,children:`Normalised (OCSF)`}),(0,W.jsx)(f,{display:`block`,padding:3,fontSize:`xs`,whiteSpace:`pre-wrap`,wordBreak:`break-all`,backgroundColor:`bg.subtle`,children:JSON.stringify({eventId:e.eventId,eventType:e.eventType,actor:e.actor,action:e.action,target:e.target,costUsd:e.costUsd,tokensInput:e.tokensInput,tokensOutput:e.tokensOutput,eventTimestamp:e.eventTimestampIso,ingestedAt:e.ingestedAtIso},null,2)})]})}function ne({event:e}){let t=null;try{t=JSON.parse(e.rawPayload)}catch{}return(0,W.jsxs)(r,{children:[(0,W.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,marginBottom:1,children:`Raw payload (as ingested)`}),(0,W.jsx)(f,{display:`block`,padding:3,fontSize:`xs`,whiteSpace:`pre-wrap`,wordBreak:`break-all`,backgroundColor:`bg.subtle`,children:t==null?e.rawPayload:JSON.stringify(t,null,2)})]})}function re({details:e,sourceId:t,sourceType:n,onClose:r}){let[o,s]=(0,U.useState)(!1);if(!e)return null;let u=typeof window<`u`?window.location.origin:`https://langwatch.invalid`,d=`${u}/api/ingest/otel/${t}`,p=`${u}/api/ingest/webhook/${t}`,m=n===`otel_generic`||n===`claude_cowork`||n===`claude_code`,h=n===`workato`,g=n===`claude_code`,v=g?[`export CLAUDE_CODE_ENABLE_TELEMETRY=1`,`export OTEL_TRACES_EXPORTER=otlp`,`export OTEL_LOGS_EXPORTER=otlp`,`export OTEL_METRICS_EXPORTER=otlp`,`export OTEL_EXPORTER_OTLP_PROTOCOL=http/json`,`export OTEL_LOG_USER_PROMPTS=1`,`export OTEL_LOG_TOOL_DETAILS=1`,`export OTEL_LOG_TOOL_CONTENT=1`,`export OTEL_LOG_RAW_API_BODIES=1`,`export OTEL_EXPORTER_OTLP_ENDPOINT="${d}"`,`export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer ${e.secret}"`].join(`
|
|
18
|
-
`):``,y=e=>{navigator.clipboard?.writeText(e),s(!0),setTimeout(()=>s(!1),2e3)};return(0,W.jsx)(I,{open:!0,onOpenChange:e=>!e.open&&r(),closeOnInteractOutside:!1,children:(0,W.jsxs)(j,{maxWidth:`2xl`,children:[(0,W.jsx)(M,{children:(0,W.jsx)(k,{children:(0,W.jsxs)(a,{gap:2,children:[(0,W.jsx)(C,{size:16}),(0,W.jsx)(c,{children:`New secret minted - old valid for 24h`})]})})}),(0,W.jsx)(N,{}),(0,W.jsx)(R,{children:(0,W.jsxs)(l,{align:`stretch`,gap:4,children:[(0,W.jsx)(c,{fontSize:`sm`,color:`fg.muted`,children:`This is the only time we'll show this secret. Save it somewhere safe and paste it into the upstream platform's admin console. The previous secret keeps working for 24h so you have time to roll the new value through every upstream client.`}),(0,W.jsxs)(l,{align:`stretch`,gap:1,children:[(0,W.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Ingest secret (bearer token)`}),(0,W.jsxs)(a,{gap:2,children:[(0,W.jsx)(f,{flex:1,padding:2,fontSize:`xs`,whiteSpace:`pre-wrap`,wordBreak:`break-all`,children:e.secret}),(0,W.jsxs)(i,{size:`sm`,variant:`outline`,onClick:()=>y(e.secret),children:[(0,W.jsx)(_,{size:14}),` `,o?`Copied`:`Copy`]})]})]}),m&&(0,W.jsxs)(l,{align:`stretch`,gap:1,children:[(0,W.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`OTLP endpoint URL`}),(0,W.jsx)(f,{padding:2,fontSize:`xs`,children:d}),g&&(0,W.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[`Paste this URL into Claude Code's`,` `,(0,W.jsx)(f,{fontSize:`xs`,backgroundColor:`transparent`,children:`OTEL_EXPORTER_OTLP_ENDPOINT`}),` `,`- Claude Code's SDK appends`,` `,(0,W.jsx)(f,{fontSize:`xs`,backgroundColor:`transparent`,children:`/v1/logs`}),` `,`and`,` `,(0,W.jsx)(f,{fontSize:`xs`,backgroundColor:`transparent`,children:`/v1/metrics`}),` `,`itself.`]})]}),g&&(0,W.jsxs)(l,{align:`stretch`,gap:1,children:[(0,W.jsxs)(a,{justify:`space-between`,alignItems:`center`,children:[(0,W.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Claude Code shell env block`}),(0,W.jsxs)(i,{size:`xs`,variant:`outline`,onClick:()=>y(v),children:[(0,W.jsx)(_,{size:12}),` Copy block`]})]}),(0,W.jsx)(f,{padding:3,fontSize:`xs`,whiteSpace:`pre`,display:`block`,overflowX:`auto`,children:v}),(0,W.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[`Paste in your Claude Code shell, then run`,` `,(0,W.jsx)(f,{fontSize:`xs`,backgroundColor:`transparent`,children:`claude`}),`. To attribute spend to a specific team, also export`,` `,(0,W.jsx)(f,{fontSize:`xs`,backgroundColor:`transparent`,children:`OTEL_RESOURCE_ATTRIBUTES=team.id=…`}),` `,`- it lands as a resource attribute and slots into /governance's spendByTeam without further config. Department attribution is resolved from the project's assignment at read time, not from an OTEL attribute.`]})]}),h&&(0,W.jsxs)(l,{align:`stretch`,gap:1,children:[(0,W.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Webhook URL`}),(0,W.jsx)(f,{padding:2,fontSize:`xs`,children:p})]})]})}),(0,W.jsx)(A,{children:(0,W.jsx)(i,{colorPalette:`blue`,onClick:r,children:`I've saved it`})})]})})}var ie=B(`release_ui_ai_governance_enabled`,{bypassOnboardingRedirect:!0})(V(`organization:manage`,{bypassOnboardingRedirect:!0})(Y));export{ie as default};
|
|
19
|
-
//# sourceMappingURL=ingestion-source-detail-BLfzu5Yv.js.map
|
|
@@ -1,12 +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"./heading-C0sACr0w.js";import{n as c,t as l}from"./v-stack-hkuSkmCA.js";import{Yn as u,jn as d}from"./ProjectAvatar-DtI9dT1f.js";import{t as f}from"./badge-Cpc3eA-C.js";import{l as p,n as m,o as h}from"./toaster-BsYkODqs.js";import{K as g}from"./Markdown-C9extmbX.js";import{n as _}from"./personalProject-DMRX2-SI.js";import{r as v,t as y}from"./errors-e711UMq7.js";import{t as b}from"./spacer-C38e7o6r.js";import{Y as x,tt as S}from"./immer-CFru3D02.js";import{n as C}from"./api-l6Cnm0vQ.js";import{t as w}from"./GovernanceLayout-DiDbO74a.js";import{t as T}from"./circle-dashed-DWC9qFep.js";import{At as E,Dt as D,Et as O,Mr as k,Ot as A,Qn as j,Tt as M,Vt as N,Zn as P,kt as F,nr as I,t as L,wt as R}from"./index-CPtTUYLD.js";import{t as z}from"./useActivePlan-fRQ_etI2.js";import{t as B}from"./WithFeatureFlagGuard-OePuXWRG.js";import{t as V}from"./WithPermissionGuard-Cr6Aljmy.js";import{t as H}from"./OttlEditor-baChQv3o.js";var U=[`otel_generic`];function W(e){return U.includes(e)}var G=e(t()),K=o(),q=[{value:`otel_generic`,label:`Generic OTel`,mode:`push`,blurb:`Anything that speaks OTLP/HTTP. Simplest setup - paste an OTLP URL + bearer token into the upstream agent's exporter config.`},{value:`claude_code`,label:`Claude Code (Anthropic OAuth)`,mode:`push`,blurb:`Native OTLP from Anthropic's Claude Code (the standalone CLI authed against an OAuth seat - distinct from the Cowork workspace path). Cost lands as a first-class signal via the claude_code.cost.usage metric + per-request claude_code.api_request events; no token-catalog lookup needed. Admins paste the bare endpoint into Claude Code's OTEL_EXPORTER_OTLP_ENDPOINT and the SDK suffixes /v1/logs and /v1/metrics itself.`},{value:`claude_cowork`,label:`Anthropic Claude (Cowork)`,mode:`push`,blurb:`Claude Cowork pushes telemetry via OTLP. Configure under Anthropic Admin Console → Cowork → Telemetry.`},{value:`workato`,label:`Workato`,mode:`push`,blurb:`Workato pushes job-completed webhooks. Generate an HMAC shared secret, paste into Workato → Connection Profile → Webhook destination.`},{value:`copilot_studio`,label:`Microsoft Copilot Studio (Purview)`,mode:`pull`,blurb:"Polls Microsoft Purview Audit API for Copilot Studio activity. Needs an Azure AD app registration with `AuditLog.Read.All` permission."},{value:`openai_compliance`,label:`OpenAI Enterprise Compliance`,mode:`s3`,blurb:`Pulls compliance JSONL drops from an S3 bucket OpenAI writes to (Enterprise Compliance API).`},{value:`claude_compliance`,label:`Anthropic Claude Enterprise Compliance`,mode:`pull`,blurb:`Polls Anthropic's compliance API with a workspace API key.`},{value:`s3_custom`,label:`Custom S3 audit log`,mode:`s3`,blurb:`For homegrown agent systems writing audit logs to S3. Provide a parser DSL describing how each line maps to OCSF ActivityEvent fields.`},{value:`http_custom`,label:`Custom HTTP audit-log API`,mode:`pull`,blurb:`Bring-your-own paginated REST audit-log API. Declare URL + auth + cursor + JSON-path field mappings; the universal HTTP-polling adapter handles paging + retries + OCSF fold.`}],J=Object.fromEntries(q.map(e=>[e.value,e.label])),Y={active:{icon:p,label:`Active`,color:`green.500`},awaiting_first_event:{icon:T,label:`Awaiting first event`,color:`amber.500`},disabled:{icon:d,label:`Disabled`,color:`fg.muted`}},X={copilot_studio:`copilot_studio`,openai_compliance:`openai_compliance`,claude_compliance:`claude_compliance`,http_custom:`http_polling`},Z={copilot_studio:`*/15 * * * *`,openai_compliance:`*/15 * * * *`,claude_compliance:`*/15 * * * *`,http_polling:`*/15 * * * *`},Q=()=>({sourceType:`otel_generic`,name:``,description:``,parserConfig:{},ottlStatements:[],pullSchedule:``});function $(e){if(!e)return`-`;let t=typeof e==`string`?new Date(e):e,n=Date.now()-t.getTime(),r=Math.floor(n/1e3);if(r<60)return`${r}s ago`;let i=Math.floor(r/60);if(i<60)return`${i}m ago`;let a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function ee(){let{organization:e}=N({redirectToOnboarding:!1}),t=e?.id??``,{isEnterprise:o}=z(),u=C.ingestionSources.list.useQuery({organizationId:t},{enabled:!!t,refetchOnWindowFocus:!1}),d=C.useUtils(),p=()=>d.ingestionSources.list.invalidate({organizationId:t}),[h,g]=(0,G.useState)(!1),[_,x]=(0,G.useState)(Q()),[S,T]=(0,G.useState)(null),[E,D]=(0,G.useState)(null),O=C.ingestionSources.create.useMutation({onSuccess:e=>{p(),g(!1),x(Q()),D({title:`Source created - paste this secret upstream`,secret:e.ingestSecret,sourceId:e.source.id,sourceName:e.source.name,sourceType:e.source.sourceType})},onError:e=>y({error:e,fallbackTitle:`Couldn't create the source`})}),k=C.ingestionSources.rotateSecret.useMutation({onSuccess:e=>{p(),D({title:`New secret minted - old one valid for 24h`,secret:e.ingestSecret,sourceId:e.source.id,sourceName:e.source.name,sourceType:e.source.sourceType})},onError:e=>y({error:e,fallbackTitle:`Couldn't rotate the secret`})}),A=C.ingestionSources.update.useMutation({onSuccess:()=>{p(),T(null),m.create({title:`Source updated`,type:`success`})},onError:e=>y({error:e,fallbackTitle:`Couldn't update the source`})}),M=C.ingestionSources.archive.useMutation({onSuccess:()=>{p(),m.create({title:`Source archived`,type:`success`})},onError:e=>y({error:e,fallbackTitle:`Couldn't archive the source`})}),P=()=>{if(!_.name.trim())return;let e=X[_.sourceType],n=_.sourceType===`http_custom`?ae(_):e?{adapter:e}:null;if(_.sourceType===`http_custom`&&!n){m.create({title:`Missing required HTTP source fields`,description:`URL, auth header value, token, events JSONPath, cursor JSONPath, and event mapping are all required.`,type:`error`});return}O.mutate({organizationId:t,sourceType:_.sourceType,name:_.name.trim(),description:_.description.trim()||null,parserConfig:ce(_),pullConfig:n,pullSchedule:e&&(_.pullSchedule.trim()||Z[e])||null})},F=(0,G.useMemo)(()=>{let e={push:[],pull:[],s3:[]};for(let t of u.data??[])e[q.find(e=>e.value===t.sourceType)?.mode??`push`].push(t);return e},[u.data]);return(0,K.jsxs)(w,{pageTitle:`Ingestion Sources · Governance · LangWatch`,children:[(0,K.jsxs)(l,{align:`stretch`,gap:6,width:`full`,maxW:`container.xl`,children:[(0,K.jsxs)(a,{alignItems:`end`,children:[(0,K.jsxs)(l,{align:`start`,gap:0,children:[(0,K.jsxs)(a,{gap:2,children:[(0,K.jsx)(s,{size:`md`,children:`Ingestion Sources`}),(0,K.jsx)(f,{colorPalette:`purple`,size:`sm`,variant:`surface`,children:`Preview`})]}),(0,K.jsxs)(c,{color:`fg.muted`,fontSize:`sm`,maxW:`3xl`,children:[`Configure cross-platform feeds for the activity monitor. Each source maps an external AI platform into the normalised activity stream via OTel push, webhook, or S3 audit drops.`,` `,(0,K.jsx)(L,{href:`/governance`,color:`blue.600`,children:`Back to governance`}),`.`]})]}),(0,K.jsx)(b,{}),(0,K.jsxs)(l,{align:`end`,gap:1,children:[(0,K.jsxs)(i,{size:`sm`,colorPalette:`blue`,disabled:!o&&(u.data?.length??0)>=3,onClick:()=>{x(Q()),g(!0)},children:[(0,K.jsx)(j,{size:14}),` Add source`]}),!o&&(0,K.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[u.data?.length??0,` /`,` `,3,` sources used. Upgrade to Enterprise for unlimited.`]})]})]}),(0,K.jsx)(ne,{isOpen:h,organizationId:t,composer:_,setComposer:x,isPending:O.isPending,onSubmit:P,onClose:()=>{g(!1),x(Q())}}),u.isLoading&&(0,K.jsx)(n,{size:`sm`}),(0,K.jsx)(v,{error:u.error,fallbackTitle:`Couldn't load ingestion sources`}),[`push`,`pull`,`s3`].map(e=>(0,K.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:4,children:[(0,K.jsxs)(a,{alignItems:`start`,marginBottom:3,children:[(0,K.jsxs)(l,{align:`start`,gap:0,children:[(0,K.jsx)(c,{fontSize:`sm`,fontWeight:`semibold`,children:e===`push`?`Push (OTLP / webhooks)`:e===`pull`?`Pull (admin API polling)`:`S3 audit drops`}),(0,K.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:e===`push`?`Upstream pushes events to LangWatch in near-real-time.`:e===`pull`?`LangWatch polls upstream's admin API on a cadence.`:`LangWatch reads JSONL drops from an S3 bucket.`})]}),(0,K.jsx)(b,{})]}),(0,K.jsxs)(l,{align:`stretch`,gap:2,children:[F[e].length===0&&!u.error&&(0,K.jsxs)(c,{fontSize:`sm`,color:`fg.muted`,children:[`No `,e,`-mode sources configured.`]}),F[e].map(e=>(0,K.jsx)(te,{source:e,isPendingRotate:k.isPending&&k.variables?.id===e.id,isPendingArchive:M.isPending&&M.variables?.id===e.id,onEdit:()=>T(e.id),onRotate:()=>k.mutate({organizationId:t,id:e.id}),onArchive:()=>M.mutate({organizationId:t,id:e.id})},e.id))]})]},e))]}),(0,K.jsx)(le,{details:E,onClose:()=>D(null)}),(0,K.jsx)(re,{organizationId:t,source:S?u.data?.find(e=>e.id===S)??null:null,onClose:()=>T(null),onSubmit:e=>A.mutate(e),isPending:A.isPending})]})}function te({source:e,isPendingRotate:t,isPendingArchive:n,onEdit:o,onRotate:s,onArchive:u}){let d=Y[e.status]??Y.awaiting_first_event,p=d.icon,m=J[e.sourceType]??e.sourceType;return(0,K.jsxs)(a,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`sm`,padding:3,gap:3,children:[(0,K.jsxs)(l,{align:`start`,gap:0,flex:1,minWidth:0,children:[(0,K.jsxs)(a,{gap:2,children:[(0,K.jsx)(L,{href:`/settings/governance/ingestion-sources/${e.id}`,color:`fg`,_hover:{color:`orange.600`},children:(0,K.jsx)(c,{fontSize:`sm`,fontWeight:`medium`,children:e.name})}),(0,K.jsx)(f,{size:`sm`,variant:`surface`,children:m})]}),e.description&&(0,K.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:e.description}),(0,K.jsxs)(a,{gap:2,marginTop:1,children:[(0,K.jsxs)(a,{gap:1,children:[(0,K.jsx)(r,{color:d.color,display:`flex`,children:(0,K.jsx)(p,{size:12})}),(0,K.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:d.label})]}),(0,K.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[`· last event `,$(e.lastEventAt??null)]})]})]}),(0,K.jsxs)(i,{size:`sm`,variant:`ghost`,onClick:o,title:`Edit source - name, description, OTTL statements`,children:[(0,K.jsx)(I,{size:14}),` Edit`]}),(0,K.jsxs)(i,{size:`sm`,variant:`ghost`,onClick:s,loading:t,title:`Mint a new ingestSecret (24h grace on the old one)`,children:[(0,K.jsx)(P,{size:14}),` Rotate secret`]}),(0,K.jsx)(i,{size:`sm`,variant:`ghost`,colorPalette:`red`,onClick:u,loading:n,title:`Archive (preserves history)`,children:(0,K.jsx)(g,{size:14})})]})}function ne({isOpen:e,organizationId:t,composer:n,setComposer:r,isPending:o,onSubmit:u,onClose:d}){let f=q.find(e=>e.value===n.sourceType),{isEnterprise:p}=z(),m=p?q:q.filter(e=>e.value===`otel_generic`);return(0,K.jsx)(_.Root,{open:e,placement:`end`,size:`md`,onOpenChange:({open:e})=>{e||d()},children:(0,K.jsxs)(_.Content,{children:[(0,K.jsxs)(_.Header,{children:[(0,K.jsx)(_.CloseTrigger,{}),(0,K.jsx)(s,{as:`h2`,size:`md`,children:`Add ingestion source`})]}),(0,K.jsx)(_.Body,{children:(0,K.jsxs)(l,{align:`stretch`,gap:3,children:[(0,K.jsxs)(a,{gap:3,children:[(0,K.jsxs)(l,{align:`stretch`,gap:1,flex:1,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Source type`}),(0,K.jsx)(`select`,{value:n.sourceType,onChange:e=>r({...n,sourceType:e.target.value,parserConfig:{},ottlStatements:[]}),style:{padding:`8px`,border:`1px solid var(--chakra-colors-border-muted)`,borderRadius:`var(--chakra-radii-sm)`,background:`white`,fontSize:`14px`},children:m.map(e=>(0,K.jsxs)(`option`,{value:e.value,children:[e.label,` · `,e.mode]},e.value))}),!p&&(0,K.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`Other source types are available on Enterprise plans.`})]}),(0,K.jsxs)(l,{align:`stretch`,gap:1,flex:2,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Display name`}),(0,K.jsx)(k,{size:`sm`,backgroundColor:`white`,value:n.name,onChange:e=>r({...n,name:e.target.value}),placeholder:`Display name for this source`})]})]}),f&&(0,K.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:f.blurb}),(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Description (optional)`}),(0,K.jsx)(S,{size:`sm`,backgroundColor:`white`,rows:2,value:n.description,onChange:e=>r({...n,description:e.target.value}),placeholder:`What this fleet covers + who owns it`})]}),(0,K.jsx)(oe,{sourceType:n.sourceType,values:n.parserConfig,onChange:e=>r({...n,parserConfig:e})}),(0,K.jsx)(H,{organizationId:t,sourceType:n.sourceType,statements:n.ottlStatements,onChange:e=>r({...n,ottlStatements:e}),enabled:W(n.sourceType)}),(0,K.jsx)(se,{sourceType:n.sourceType,value:n.pullSchedule,onChange:e=>r({...n,pullSchedule:e})})]})}),(0,K.jsx)(_.Footer,{children:(0,K.jsxs)(a,{gap:3,width:`full`,children:[(0,K.jsx)(b,{}),(0,K.jsx)(i,{size:`sm`,variant:`ghost`,onClick:d,children:`Cancel`}),(0,K.jsx)(i,{size:`sm`,colorPalette:`blue`,onClick:u,loading:o,disabled:!n.name.trim(),children:`Create source`})]})})]})})}function re({organizationId:e,source:t,onClose:n,onSubmit:r,isPending:o}){let u=!!t,[d,f]=(0,G.useState)(``),[p,m]=(0,G.useState)(``),[h,g]=(0,G.useState)([]);return(0,G.useEffect)(()=>{if(!t)return;f(t.name),m(t.description??``);let e=(t.parserConfig??{}).ottlStatements;g(Array.isArray(e)?e.filter(e=>typeof e==`string`):[])},[t?.id]),t?(0,K.jsx)(_.Root,{open:u,placement:`end`,size:`md`,onOpenChange:({open:e})=>{e||n()},children:(0,K.jsxs)(_.Content,{children:[(0,K.jsxs)(_.Header,{children:[(0,K.jsx)(_.CloseTrigger,{}),(0,K.jsx)(s,{as:`h2`,size:`md`,children:`Edit source`})]}),(0,K.jsx)(_.Body,{children:(0,K.jsxs)(l,{align:`stretch`,gap:3,children:[(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Display name`}),(0,K.jsx)(k,{size:`sm`,backgroundColor:`white`,value:d,onChange:e=>f(e.target.value)})]}),(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Description (optional)`}),(0,K.jsx)(S,{size:`sm`,backgroundColor:`white`,rows:2,value:p,onChange:e=>m(e.target.value)})]}),(0,K.jsx)(H,{organizationId:e,sourceType:t.sourceType,statements:h,onChange:g,enabled:W(t.sourceType)}),(0,K.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`Source type and ingest secret are immutable after create. Use “Rotate secret” for the secret; archive + recreate to change source type.`})]})}),(0,K.jsx)(_.Footer,{children:(0,K.jsxs)(a,{gap:3,width:`full`,children:[(0,K.jsx)(b,{}),(0,K.jsx)(i,{size:`sm`,variant:`ghost`,onClick:n,children:`Cancel`}),(0,K.jsx)(i,{size:`sm`,colorPalette:`blue`,onClick:()=>{if(!d.trim())return;let n=t.parserConfig??{},i=h.filter(e=>e.trim().length>0),a={...n,ottlStatements:i.length>0?i:void 0};a.ottlStatements===void 0&&delete a.ottlStatements,r({organizationId:e,id:t.id,name:d.trim(),description:p.trim()||null,parserConfig:a})},loading:o,disabled:!d.trim(),children:`Save changes`})]})})]})}):(0,K.jsx)(_.Root,{open:!1,placement:`end`,onOpenChange:()=>n(),children:(0,K.jsx)(_.Content,{})})}var ie={otel_generic:[],claude_code:[],claude_cowork:[{key:`workspaceId`,label:`Anthropic workspace ID`,placeholder:`wsp_...`,hint:`Find under Anthropic Admin Console → Workspace → Settings.`,required:!0}],workato:[{key:`sharedSecretLastFour`,label:`Last 4 chars of the shared HMAC secret`,placeholder:`e.g. a3f9`,hint:`We auto-generate the HMAC secret + only store its hash. The last-4 helps you visually confirm which secret is configured upstream.`,required:!0}],copilot_studio:[{key:`tenantId`,label:`Azure AD tenant ID`,placeholder:`00000000-0000-0000-0000-000000000000`,required:!0},{key:`clientId`,label:`App registration client ID`,placeholder:`00000000-0000-0000-0000-000000000000`,required:!0},{key:`clientSecret`,label:`App registration client secret`,placeholder:`(value pasted from Azure portal)`,hint:`We hash this server-side; only the hash is persisted.`,required:!0},{key:`pollEverySec`,label:`Polling cadence (seconds)`,placeholder:`300`,hint:`How often to call Purview Audit. Default 300s.`}],openai_compliance:[{key:`bucket`,label:`S3 bucket name`,placeholder:`acme-openai-compliance`,required:!0},{key:`prefix`,label:`S3 key prefix`,placeholder:`compliance/`,hint:`OpenAI Enterprise Compliance writes JSONL files under this prefix.`},{key:`roleArn`,label:`Cross-account role ARN`,placeholder:`arn:aws:iam::123456789012:role/LangWatchComplianceReader`,hint:`We assume this role to read the bucket. Trust policy must allow our account.`,required:!0},{key:`pollEverySec`,label:`Polling cadence (seconds)`,placeholder:`60`}],claude_compliance:[{key:`workspaceApiKey`,label:`Workspace API key`,placeholder:`sk-ant-admin-...`,hint:`Generate under Anthropic Admin Console → Compliance → Workspace API Keys. We hash this server-side.`,required:!0},{key:`pollEverySec`,label:`Polling cadence (seconds)`,placeholder:`300`}],s3_custom:[{key:`bucket`,label:`S3 bucket name`,placeholder:`acme-agent-audit`,required:!0},{key:`prefix`,label:`S3 key prefix`,placeholder:`audit-logs/`},{key:`roleArn`,label:`Cross-account role ARN`,placeholder:`arn:aws:iam::123456789012:role/LangWatchAuditReader`,required:!0},{key:`parserDsl`,label:`Parser DSL (line → OCSF ActivityEvent mapping)`,placeholder:`actor=$.user.email
|
|
2
|
-
action=$.event_type
|
|
3
|
-
timestamp=$.ts`,hint:`One field-mapping per line. Each maps an OCSF field to a JSONPath into the source line.`,required:!0},{key:`pollEverySec`,label:`Polling cadence (seconds)`,placeholder:`60`}],http_custom:[{key:`url`,label:`Audit-log endpoint URL`,placeholder:`https://api.acme.com/v1/audit-log`,hint:`Paginated REST endpoint that returns a JSON page of events plus a next-cursor.`,required:!0},{key:`authHeaderName`,label:`Auth header name`,placeholder:`Authorization`,hint:`Standard bearer flow: leave as Authorization. For x-api-key style auth, paste the header name.`,required:!0},{key:`authHeaderValue`,label:`Auth header value (template)`,placeholder:"Bearer ${{credentials.token}}",hint:"Use ${{credentials.token}} where the secret should be substituted at request time. The token itself is captured in the next field.",required:!0},{key:`credentialsToken`,label:`Bearer token / API key`,placeholder:`(value pasted from the upstream admin console)`,hint:`Persisted server-side; only the value is held in IngestionSource.pullConfig.credentials. Substituted into the header template at request time.`,required:!0},{key:`eventsJsonPath`,label:`Events array JSONPath`,placeholder:`$.data`,hint:`JSONPath into the response body to extract the events array (e.g. $.data, $.events, $.value).`,required:!0},{key:`cursorJsonPath`,label:`Next-cursor JSONPath`,placeholder:`$.next_cursor`,hint:`JSONPath to the pagination cursor in the response. Set to a path that yields null/missing when drained.`,required:!0},{key:`cursorQueryParam`,label:`Cursor query parameter name`,placeholder:`cursor`,hint:`Query-param name the upstream API expects on subsequent pages. Defaults to 'cursor'. Common alternatives: next_token, pageToken, $skiptoken.`},{key:`eventMappingDsl`,label:`Event mapping (key=jsonpath per line)`,placeholder:`source_event_id=$.id
|
|
4
|
-
event_timestamp=$.created_at
|
|
5
|
-
actor=$.user.email
|
|
6
|
-
action=$.event_type
|
|
7
|
-
target=$.target.name`,hint:`Required keys: source_event_id, event_timestamp, actor, action, target. Optional: cost_usd, tokens_input, tokens_output. Each line maps an OCSF field to a JSONPath into one event.`,required:!0}]};function ae(e){let t=e.parserConfig,n=(t.url??``).trim(),r=(t.authHeaderName??`Authorization`).trim(),i=(t.authHeaderValue??``).trim(),a=(t.credentialsToken??``).trim(),o=(t.eventsJsonPath??``).trim(),s=(t.cursorJsonPath??``).trim(),c=(t.cursorQueryParam??``).trim()||`cursor`,l=(t.eventMappingDsl??``).trim();if(!n||!i||!a||!o||!s||!l)return null;let u={};for(let e of l.split(`
|
|
8
|
-
`)){let t=e.trim();if(!t||t.startsWith(`#`))continue;let n=t.indexOf(`=`);if(n<=0)continue;let r=t.slice(0,n).trim(),i=t.slice(n+1).trim();!r||!i||(u[r]=i)}return{adapter:`http_polling`,url:n,method:`GET`,headers:{[r]:i},authMode:`header_template`,cursorJsonPath:s,cursorQueryParam:c,eventsJsonPath:o,schedule:e.pullSchedule.trim()||Z.http_polling||`*/15 * * * *`,eventMapping:u,credentials:{token:a}}}function oe({sourceType:e,values:t,onChange:n}){let r=ie[e];return r.length===0?null:(0,K.jsxs)(l,{align:`stretch`,gap:3,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Source-specific configuration`}),r.map(e=>(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsxs)(c,{fontSize:`xs`,fontWeight:`medium`,children:[e.label,e.required&&(0,K.jsx)(c,{as:`span`,color:`red.500`,marginLeft:1,children:`*`})]}),e.key===`parserDsl`||e.key===`eventMappingDsl`?(0,K.jsx)(S,{size:`sm`,backgroundColor:`white`,rows:6,value:t[e.key]??``,onChange:r=>n({...t,[e.key]:r.target.value}),placeholder:e.placeholder,fontFamily:`mono`}):(0,K.jsx)(k,{size:`sm`,backgroundColor:`white`,type:e.key===`credentialsToken`||e.key===`clientSecret`||e.key===`workspaceApiKey`?`password`:`text`,value:t[e.key]??``,onChange:r=>n({...t,[e.key]:r.target.value}),placeholder:e.placeholder}),e.hint&&(0,K.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:e.hint})]},e.key))]})}function se({sourceType:e,value:t,onChange:n}){let r=X[e];if(!r)return null;let i=Z[r]??``;return(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Polling schedule`}),(0,K.jsx)(k,{size:`sm`,backgroundColor:`white`,value:t,onChange:e=>n(e.target.value),placeholder:i,fontFamily:`mono`}),(0,K.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[`Standard 5-field cron. Leave blank to use the adapter default (`,(0,K.jsx)(`code`,{children:i}),`). The puller worker honors this on the next BullMQ tick after save.`]})]})}function ce(e){let t={};for(let[n,r]of Object.entries(e.parserConfig))if(!(r==null||r===``)){if(n===`pollEverySec`){let e=Number(r);Number.isNaN(e)||(t[n]=e);continue}t[n]=r}let n=e.ottlStatements.map(e=>e).filter(e=>e.trim().length>0);return n.length>0&&(t.ottlStatements=n),t}function le({details:e,onClose:t}){let[n,o]=(0,G.useState)(!1),s=typeof window<`u`?window.location.origin:`https://langwatch.invalid`,d=e?`${s}/api/ingest/otel/${e.sourceId}`:``,p=e?`${s}/api/ingest/webhook/${e.sourceId}`:``,m=e?.sourceType===`otel_generic`||e?.sourceType===`claude_cowork`||e?.sourceType===`claude_code`,g=e?.sourceType===`workato`,_=e?.sourceType===`claude_code`,v=(0,G.useMemo)(()=>!_||!e?``:[`export CLAUDE_CODE_ENABLE_TELEMETRY=1`,`export OTEL_TRACES_EXPORTER=otlp`,`export OTEL_LOGS_EXPORTER=otlp`,`export OTEL_METRICS_EXPORTER=otlp`,`export OTEL_EXPORTER_OTLP_PROTOCOL=http/json`,`export OTEL_LOG_USER_PROMPTS=1`,`export OTEL_LOG_TOOL_DETAILS=1`,`export OTEL_LOG_TOOL_CONTENT=1`,`export OTEL_LOG_RAW_API_BODIES=1`,`export OTEL_EXPORTER_OTLP_ENDPOINT="${d}"`,`export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer ${e.secret}"`].join(`
|
|
9
|
-
`),[_,e,d]),y=(0,G.useMemo)(()=>{if(!e)return null;if(m){let t=`${Date.now()}000000`,n=JSON.stringify({resource_spans:[{resource:{attributes:[{key:`service.name`,value:{stringValue:e.sourceName}}]},scope_spans:[{spans:[{name:`chat.completion`,startTimeUnixNano:t,attributes:[{key:`gen_ai.usage.input_tokens`,value:{intValue:120}},{key:`gen_ai.usage.output_tokens`,value:{intValue:480}},{key:`gen_ai.usage.cost_usd`,value:{doubleValue:.025}},{key:`user.email`,value:{stringValue:`you@your.org`}},{key:`gen_ai.request.model`,value:{stringValue:`claude-sonnet-4`}}]}]}]}]});return[`curl -X POST '${d}' \\`,` -H 'Authorization: Bearer ${e.secret}' \\`,` -H 'Content-Type: application/json' \\`,` -d '${n}'`].join(`
|
|
10
|
-
`)}return g?[`curl -X POST '${p}' \\`,` -H 'Authorization: Bearer ${e.secret}' \\`,` -H 'Content-Type: application/json' \\`,` -d '{"event":"test.smoke","actor":"you@your.org"}'`].join(`
|
|
11
|
-
`):null},[e?.secret,e?.sourceName,e,d,p,m,g]);if(!e)return null;let b=e=>{navigator.clipboard?.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)};return(0,K.jsx)(F,{open:!0,onOpenChange:e=>!e.open&&t(),closeOnInteractOutside:!1,children:(0,K.jsxs)(O,{maxWidth:`2xl`,children:[(0,K.jsx)(A,{children:(0,K.jsx)(E,{children:(0,K.jsxs)(a,{gap:2,children:[(0,K.jsx)(x,{size:16}),(0,K.jsx)(c,{children:e.title})]})})}),(0,K.jsx)(M,{}),(0,K.jsx)(R,{children:(0,K.jsxs)(l,{align:`stretch`,gap:4,children:[(0,K.jsx)(c,{fontSize:`sm`,color:`fg.muted`,children:`This is the only time we'll show this secret. Save it somewhere safe and paste it into the upstream platform's admin console. We store only its hash.`}),(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Source name`}),(0,K.jsxs)(c,{fontSize:`sm`,fontWeight:`medium`,children:[e.sourceName,` `,(0,K.jsx)(f,{size:`sm`,variant:`surface`,marginLeft:2,children:J[e.sourceType]})]})]}),(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Ingest secret (bearer token)`}),(0,K.jsxs)(a,{gap:2,children:[(0,K.jsx)(u,{flex:1,padding:2,fontSize:`xs`,whiteSpace:`pre-wrap`,wordBreak:`break-all`,children:e.secret}),(0,K.jsxs)(i,{size:`sm`,variant:`outline`,onClick:()=>b(e.secret),children:[(0,K.jsx)(h,{size:14}),` `,n?`Copied`:`Copy`]})]})]}),m&&(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`OTLP ingestion endpoint (paste into upstream exporter)`}),(0,K.jsxs)(a,{gap:2,children:[(0,K.jsx)(u,{flex:1,padding:2,fontSize:`xs`,children:d}),(0,K.jsx)(i,{size:`sm`,variant:`outline`,onClick:()=>b(d),children:(0,K.jsx)(h,{size:14})})]}),(0,K.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[`Spans push into the LangWatch trace store with this source's origin tag and become viewable in the trace viewer. If you are sending agent traces from your own LangWatch SDK, use`,` `,(0,K.jsx)(u,{fontSize:`xs`,children:`/api/otel/v1/traces`}),` with your project API key - different auth, same trace store. See`,` `,(0,K.jsx)(L,{href:`https://docs.langwatch.ai/observability/trace-vs-activity-ingestion`,color:`blue.600`,children:`Choosing the right OTel endpoint`}),`.`]})]}),g&&(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Webhook URL (paste into upstream webhook config)`}),(0,K.jsxs)(a,{gap:2,children:[(0,K.jsx)(u,{flex:1,padding:2,fontSize:`xs`,children:p}),(0,K.jsx)(i,{size:`sm`,variant:`outline`,onClick:()=>b(p),children:(0,K.jsx)(h,{size:14})})]})]}),_&&(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsxs)(a,{justify:`space-between`,alignItems:`center`,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Claude Code shell env block`}),(0,K.jsxs)(i,{size:`xs`,variant:`outline`,onClick:()=>b(v),children:[(0,K.jsx)(h,{size:12}),` Copy block`]})]}),(0,K.jsx)(u,{padding:3,fontSize:`xs`,whiteSpace:`pre`,display:`block`,overflowX:`auto`,children:v}),(0,K.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[`Paste into your Claude Code shell, then run`,` `,(0,K.jsx)(u,{fontSize:`xs`,backgroundColor:`transparent`,children:`claude`}),`. Claude Code's SDK appends`,` `,(0,K.jsx)(u,{fontSize:`xs`,backgroundColor:`transparent`,children:`/v1/logs`}),` `,`and`,` `,(0,K.jsx)(u,{fontSize:`xs`,backgroundColor:`transparent`,children:`/v1/metrics`}),` `,`itself off the base endpoint. To attribute spend to a specific team or department, also export`,` `,(0,K.jsx)(u,{fontSize:`xs`,backgroundColor:`transparent`,children:`OTEL_RESOURCE_ATTRIBUTES=team.id=…,department=…`}),` `,`- those land as resource attributes and slot into /governance's spendByTeam without further config.`]})]}),y&&(0,K.jsxs)(l,{align:`stretch`,gap:1,children:[(0,K.jsx)(c,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`Test it now - paste this into a terminal`}),(0,K.jsxs)(r,{position:`relative`,children:[(0,K.jsx)(u,{display:`block`,padding:3,fontSize:`xs`,whiteSpace:`pre`,overflowX:`auto`,children:y}),(0,K.jsxs)(i,{size:`xs`,variant:`outline`,position:`absolute`,top:2,right:2,onClick:()=>b(y),children:[(0,K.jsx)(h,{size:12}),` `,n?`Copied`:`Copy`]})]}),(0,K.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[`Returns HTTP 202 with `,(0,K.jsx)(u,{fontSize:`xs`,children:`events: 1`}),` on success. If you get `,(0,K.jsx)(u,{fontSize:`xs`,children:`events: 0`}),` with a hint, the body shape didn't parse - check the docs.`]})]}),(0,K.jsx)(r,{borderWidth:`1px`,borderColor:`amber.300`,backgroundColor:`amber.50`,padding:3,borderRadius:`sm`,children:(0,K.jsxs)(c,{fontSize:`xs`,color:`amber.900`,children:[(0,K.jsx)(`strong`,{children:`Important:`}),` the secret above will not be shown again. We retained the prior secret's hash for a 24h grace window if you're rotating, so you have time to roll the new value through every upstream client.`]})})]})}),(0,K.jsxs)(D,{children:[(0,K.jsx)(L,{href:`/settings/governance/ingestion-sources/${e.sourceId}`,children:(0,K.jsx)(i,{variant:`outline`,children:`View source page →`})}),(0,K.jsx)(i,{colorPalette:`blue`,onClick:t,children:`I've saved it`})]})]})})}var ue=B(`release_ui_ai_governance_enabled`,{bypassOnboardingRedirect:!0})(V(`organization:manage`,{bypassOnboardingRedirect:!0})(ee));export{ue as default};
|
|
12
|
-
//# sourceMappingURL=ingestion-sources-BcwE_tRu.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,i as r,n as i}from"./portal-Sdfvrza9.js";import{t as a}from"./jsx-runtime-CFwixLRt.js";import{t as o}from"./heading-C0sACr0w.js";import{n as s,t as c}from"./v-stack-hkuSkmCA.js";import{t as l}from"./badge-Cpc3eA-C.js";import{f as u,n as d}from"./toaster-BsYkODqs.js";import{r as f,t as p}from"./card-By_Mbslh.js";import{n as m}from"./api-l6Cnm0vQ.js";import{r as h}from"./next-router-CWLrMXvP.js";import{Vt as g}from"./index-CPtTUYLD.js";import{t as _}from"./github-DPxohpyk.js";import{t as v}from"./WithPermissionGuard-Cr6Aljmy.js";import{t as y}from"./SettingsLayout-sixsNIX_.js";var b=e(t()),x=a();function S(){let{organization:e}=g();return e?(0,x.jsx)(w,{organizationId:e.id}):(0,x.jsx)(y,{})}var C=v(`organization:manage`,{layoutComponent:y})(S);function w({organizationId:e}){let t=m.langyGithub.getInstallStatus.useQuery({organizationId:e}),n=h();(0,b.useEffect)(()=>{let e=n.query.githubError;if(typeof e!=`string`)return;d.create({type:`error`,title:`GitHub installation failed`,description:e});let{githubError:t,...r}=n.query;n.replace({pathname:n.pathname,query:r},void 0,{shallow:!0,scroll:!1})},[n.query.githubError]);let a=()=>{window.location.href=`/api/github-langy/install?mode=redirect&organizationId=${encodeURIComponent(e)}&return=%2Fsettings%2Fintegrations%23github`},u=t.data?.configured??!0,g=t.data?.installations??[];return(0,x.jsx)(y,{children:(0,x.jsxs)(c,{align:`stretch`,gap:6,padding:6,maxWidth:`720px`,children:[(0,x.jsx)(o,{size:`md`,children:`Integrations`}),(0,x.jsx)(f,{id:`github`,children:(0,x.jsx)(p,{children:(0,x.jsxs)(c,{align:`stretch`,gap:3,children:[(0,x.jsxs)(i,{gap:2,children:[(0,x.jsx)(_,{size:18}),(0,x.jsx)(o,{size:`sm`,children:`GitHub`}),g.length>0?(0,x.jsx)(l,{colorPalette:`green`,variant:`subtle`,children:`Installed`}):null]}),(0,x.jsx)(s,{fontSize:`sm`,color:`fg.muted`,children:`Lets Langy open pull requests on the repositories you choose. Pull requests are made by the LangWatch app and credit you as the requester.`}),u?g.length===0?(0,x.jsx)(r,{variant:`solid`,onClick:a,alignSelf:`flex-start`,children:`Install the LangWatch GitHub App`}):(0,x.jsxs)(c,{align:`stretch`,gap:3,children:[g.map(n=>(0,x.jsx)(T,{organizationId:e,installation:n,onChanged:()=>void t.refetch()},n.installationId)),(0,x.jsx)(r,{variant:`outline`,size:`sm`,onClick:a,alignSelf:`flex-start`,children:`Add another account`})]}):(0,x.jsx)(s,{fontSize:`sm`,color:`fg.muted`,children:`The GitHub integration is not available on this instance.`})]})})})]})})}function T({organizationId:e,installation:t,onChanged:a}){let[o,d]=(0,b.useState)(!1),f=m.langyGithub.disconnect.useMutation({onSuccess:e=>{window.open(e.uninstallUrl,`_blank`,`noopener,noreferrer`),d(!0),a()}}),p=t.repositorySelection===`all`?`All repositories`:`${t.repositoryCount??0} selected ${t.repositoryCount===1?`repository`:`repositories`}`;return(0,x.jsx)(n,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:3,children:(0,x.jsxs)(i,{justify:`space-between`,gap:3,children:[(0,x.jsxs)(c,{align:`stretch`,gap:0,children:[(0,x.jsxs)(i,{gap:2,children:[(0,x.jsxs)(s,{fontSize:`sm`,fontWeight:`600`,children:[`@`,t.accountLogin]}),t.suspended?(0,x.jsx)(l,{colorPalette:`orange`,variant:`subtle`,children:`Suspended`}):null]}),(0,x.jsx)(s,{fontSize:`xs`,color:`fg.muted`,children:p}),o?(0,x.jsx)(s,{fontSize:`xs`,color:`fg.muted`,children:`Finish uninstalling on GitHub — this updates once GitHub confirms.`}):null]}),(0,x.jsxs)(i,{gap:2,children:[(0,x.jsx)(u,{href:t.uninstallUrl,target:`_blank`,rel:`noopener noreferrer`,fontSize:`sm`,children:`Configure`}),(0,x.jsx)(r,{size:`sm`,variant:`outline`,onClick:()=>f.mutate({organizationId:e,installationId:t.installationId}),loading:f.isPending,children:`Disconnect`})]})]})})}export{C as default};
|
|
2
|
-
//# sourceMappingURL=integrations-D220c59Q.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./fetchSSE-5rVPow_l.js";import{E as t,S as n}from"./_Uint8Array-DZ50H-2q.js";import{o as r}from"./_baseFor-BQgMStOx.js";function i(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var a=800,o=16,s=Date.now;function c(e){var t=0,n=0;return function(){var r=s(),i=o-(r-n);if(n=r,i>0){if(++t>=a)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function l(e){return function(){return e}}var u=c(t?function(e,n){return t(e,`toString`,{configurable:!0,enumerable:!1,value:l(n),writable:!0})}:r),d=Math.max;function f(e,t,n){return t=d(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,o=d(r.length-t,0),s=Array(o);++a<o;)s[a]=r[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=r[a];return c[t]=n(s),i(e,this,c)}}function p(e,t){return u(f(e,t,r),e+``)}function m(t){return e(t)&&n(t)}export{l as a,u as i,p as n,f as r,m as t};
|
|
2
|
-
//# sourceMappingURL=isArrayLikeObject-DUy1V36n.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,fn as r}from"./portal-Sdfvrza9.js";import{t as i}from"./jsx-runtime-CFwixLRt.js";import{n as a,t as o}from"./v-stack-hkuSkmCA.js";import{d as s}from"./toaster-BsYkODqs.js";import{$ as c}from"./immer-CFru3D02.js";import{n as l}from"./api-l6Cnm0vQ.js";import{t as u}from"./git-compare-DHmyWjCj.js";import{M as d,Vt as f}from"./index-CPtTUYLD.js";import{f as p,o as m,r as h}from"./react-B5vhk-dA.js";import{t as g}from"./github-DPxohpyk.js";var _=s(`git-pull-request`,[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]),v=s(`scan-search`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]]),y=s(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),b=e(t(),1);function x(e){let t=p(()=>m(e)),{isStatic:n}=(0,b.useContext)(h);if(n){let[,n]=(0,b.useState)(e);(0,b.useEffect)(()=>t.on(`change`,n),[])}return t}function S(){let{project:e}=f({redirectToOnboarding:!1,redirectToProjectOnboarding:!1}),{data:t,isLoading:n}=l.integrationsChecks.getCheckStatus.useQuery({projectId:e?.id??``},{enabled:!!e?.id}),r=(e?.firstMessage??!1)||(t?.firstMessage??!1);return{isLoading:n||!t,isNewProject:!n&&!!t&&!r,hasTraces:r,hasEvaluations:(t?.onlineEvaluations??0)>0,hasExperiments:(t?.simulations??0)>0||(t?.datasets??0)>0}}var C=340,w=416,T={markSize:42,greetingSize:24,heroGapTop:16,heroMarginBottom:26,rowPaddingY:12,rowPaddingX:9,rowGap:11,subtitleMaxWidth:280},E={markSize:51,greetingSize:27,heroGapTop:21,heroMarginBottom:34,rowPaddingY:13,rowPaddingX:10,rowGap:12,subtitleMaxWidth:300},D={markSize:40,greetingSize:23,heroGapTop:12,heroMarginBottom:24,rowPaddingY:13,rowPaddingX:10,rowGap:12,subtitleMaxWidth:300};function O({variant:e,width:t}){if(e===`sidebar`)return D;let n=k((t-C)/(w-C));return{markSize:A(T.markSize,E.markSize,n),greetingSize:A(T.greetingSize,E.greetingSize,n),heroGapTop:A(T.heroGapTop,E.heroGapTop,n),heroMarginBottom:A(T.heroMarginBottom,E.heroMarginBottom,n),rowPaddingY:A(T.rowPaddingY,E.rowPaddingY,n),rowPaddingX:A(T.rowPaddingX,E.rowPaddingX,n),rowGap:A(T.rowGap,E.rowGap,n),subtitleMaxWidth:A(T.subtitleMaxWidth,E.subtitleMaxWidth,n)}}function k(e){return Number.isNaN(e)?1:Math.max(0,Math.min(1,e))}function A(e,t,n){return Math.round(e+(t-e)*n)}var j=i(),M=[{icon:v,label:`Find failing traces`,prompt:`Find recent traces that are failing their evaluations and tell me why.`,requires:`evaluations`},{icon:y,label:`Set up an evaluator`,prompt:`Suggest an evaluator for my agent and set it up.`,requires:`traces`},{icon:u,label:`Compare two runs`,prompt:`Compare my last two experiment runs and summarise what changed.`,requires:`experiments`},{icon:g,label:`Investigate an issue and open a PR`,prompt:`Investigate a problem in my agent using my traces, then open a GitHub PR that fixes it.`,requires:`traces`}],N=[{icon:v,label:`Onboard your agent`,prompt:`Help me onboard my agent and send its first trace to this project.`,until:`traces`},{icon:y,label:`Choose what to measure`,prompt:`What should I measure about my agent, and which evaluators would you start with?`,until:`evaluations`},{icon:u,label:`Show me around`,prompt:`What can you do for me on this project, and where should I start?`}],P=[`Hey, I'm Langy!`];function F({onPick:e,suggestions:t,variant:n=`floating`,panelWidth:i=432}){let s=n===`sidebar`,c=O({variant:n,width:i}),l=(0,b.useMemo)(()=>P[Math.floor(Math.random()*P.length)],[]);return(0,j.jsxs)(o,{"data-testid":`langy-empty-state`,align:`stretch`,gap:0,flex:`1`,height:`full`,justify:s?`flex-start`:`center`,maxWidth:`360px`,marginX:`auto`,width:`full`,paddingX:3,paddingY:s?6:8,children:[(0,j.jsxs)(o,{gap:0,align:`center`,marginBottom:`${c.heroMarginBottom}px`,children:[(0,j.jsx)(d,{size:c.markSize}),(0,j.jsx)(a,{fontFamily:`var(--langy-font-serif)`,fontSize:`${c.greetingSize}px`,fontWeight:`500`,letterSpacing:`-0.02em`,color:`fg`,textAlign:`center`,marginTop:`${c.heroGapTop}px`,children:l}),(0,j.jsx)(a,{textStyle:`sm`,color:`fg.muted`,lineHeight:`1.5`,textAlign:`center`,textWrap:`balance`,maxWidth:`${c.subtitleMaxWidth}px`,marginTop:2,children:t.length>0?`Just type away, or start with one of these.`:`Just type away.`}),(0,j.jsxs)(a,{textStyle:`xs`,fontWeight:`400`,color:`fg.subtle`,textAlign:`center`,marginTop:1.5,children:[(0,j.jsx)(r.span,{fontFamily:`mono`,color:`fg.muted`,children:`/`}),` `,`for skills`,` · `,(0,j.jsx)(r.span,{fontFamily:`mono`,color:`fg.muted`,children:`#`}),` `,`to add context`]})]}),(0,j.jsxs)(o,{align:`stretch`,gap:1.5,children:[s&&t.length>0?(0,j.jsx)(a,{textStyle:`2xs`,fontWeight:`600`,letterSpacing:`0.08em`,textTransform:`uppercase`,color:`fg.subtle`,paddingX:`10px`,paddingBottom:1.5,children:`Suggested`}):null,t.map(({icon:t,label:n,prompt:r})=>(0,j.jsx)(I,{icon:t,label:n,paddingX:c.rowPaddingX,paddingY:c.rowPaddingY,gap:c.rowGap,onClick:()=>e(r)},n))]})]})}function I({icon:e,label:t,onClick:i,paddingX:o,paddingY:s,gap:l}){return(0,j.jsxs)(r.button,{type:`button`,onClick:i,display:`flex`,alignItems:`center`,gap:`${l}px`,width:`full`,textAlign:`left`,paddingX:`${o}px`,paddingY:`${s}px`,borderRadius:`12px`,borderWidth:`1px`,borderStyle:`solid`,borderColor:`border.muted`,background:`bg.panel/60`,backdropFilter:`blur(8px)`,color:`fg`,cursor:`pointer`,transition:`background 130ms ease, border-color 130ms ease, transform 130ms ease`,_hover:{background:`bg.panel/85`,borderColor:`orange.emphasized`,transform:`translateY(-1px)`},_focusVisible:{outline:`2px solid`,outlineColor:`orange.emphasized`,outlineOffset:`2px`},css:{"&:hover .chev":{opacity:1,transform:`translateX(0)`},"&:hover .row-icon":{color:`var(--chakra-colors-fg)`},"@media (prefers-reduced-motion: reduce)":{transition:`none`},"@media (prefers-reduced-motion: reduce):hover":{transform:`none`}},children:[(0,j.jsx)(n,{className:`row-icon`,color:`fg.subtle`,flexShrink:0,display:`grid`,placeItems:`center`,transition:`color 130ms ease`,children:(0,j.jsx)(e,{size:16})}),(0,j.jsx)(a,{textStyle:`sm`,fontWeight:`500`,flex:1,children:t}),(0,j.jsx)(n,{className:`chev`,color:`fg.subtle`,opacity:0,transform:`translateX(-3px)`,transition:`opacity 130ms ease, transform 130ms ease`,children:(0,j.jsx)(c,{size:15})})]})}function L({reach:e,count:t=3}){let n=t=>{switch(t){case`traces`:return e.hasTraces;case`evaluations`:return e.hasEvaluations;case`experiments`:return e.hasExperiments;default:return!0}},r=e=>e.until===void 0||!n(e.until);if(!e.hasTraces)return N.filter(r).slice(0,t);let i={experiments:3,evaluations:2,traces:1},a=M.filter(e=>n(e.requires)).toSorted((e,t)=>(i[t.requires??``]??0)-(i[e.requires??``]??0)),o=N.filter(e=>r(e)&&!a.some(t=>t.label===e.label));return[...a,...o].slice(0,t)}export{y as a,x as i,F as n,_ as o,S as r,L as t};
|
|
2
|
-
//# sourceMappingURL=langyHomeSuggestions-6NtCcdnH.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,i as r,n as i}from"./portal-Sdfvrza9.js";import{t as a}from"./jsx-runtime-CFwixLRt.js";import{n as o,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{At as d,jt as f}from"./ProjectAvatar-DtI9dT1f.js";import{p,t as m}from"./select-D17PWjH9.js";import{t as h}from"./badge-Cpc3eA-C.js";import{t as g}from"./tooltip-gjZ4s2dt.js";import{f as _,n as v}from"./toaster-BsYkODqs.js";import{i as y,n as b,o as x,s as S}from"./grid-DVy6ELOp.js";import{a as C,r as w}from"./field-BadoNaN5.js";import{A as T,L as E}from"./DashboardLayout-BhHe0vIT.js";import{n as D}from"./personalProject-DMRX2-SI.js";import{t as O}from"./errors-e711UMq7.js";import{t as k}from"./spacer-C38e7o6r.js";import{tt as ee}from"./immer-CFru3D02.js";import{n as A}from"./api-l6Cnm0vQ.js";import{t as j}from"./upload-Bpc83G2R.js";import{t as M}from"./usePublicEnv-ue4-Igop.js";import{Mr as N,Qn as P,Vn as F,Vt as I,t as L}from"./index-CPtTUYLD.js";import{t as R}from"./SettingsLayout-sixsNIX_.js";import{a as z,i as B,n as te,o as ne,s as V,t as H}from"./licenseStatusUtils-YSS0xL-G.js";var U=e(t()),W=a();function G({status:e,onRemove:t,isRemoving:a}){let o=z(e),s=e.valid,c=ne(e);return o?(0,W.jsx)(n,{borderWidth:`1px`,borderRadius:`lg`,padding:6,width:`full`,children:(0,W.jsxs)(u,{align:`start`,gap:4,children:[(0,W.jsx)(i,{children:(0,W.jsx)(h,{colorPalette:`red`,fontSize:`sm`,paddingX:2,paddingY:1,children:`Corrupted`})}),(0,W.jsx)(n,{backgroundColor:`red.50`,padding:3,borderRadius:`md`,width:`full`,children:(0,W.jsx)(l,{fontSize:`sm`,color:`red.600`,children:`Your license file is corrupted and cannot be read. Please upload a valid license or contact support.`})}),(0,W.jsxs)(i,{children:[(0,W.jsx)(r,{variant:`outline`,size:`sm`,colorPalette:`red`,onClick:t,loading:a,disabled:a,children:`Remove License`}),(0,W.jsx)(r,{asChild:!0,variant:`outline`,size:`sm`,children:(0,W.jsx)(_,{href:T,target:`_blank`,children:`Contact Sales`})})]})]})}):B(e)?(0,W.jsx)(n,{borderWidth:`1px`,borderRadius:`lg`,padding:6,width:`full`,children:(0,W.jsxs)(u,{align:`start`,gap:4,children:[(0,W.jsx)(i,{children:(0,W.jsx)(h,{colorPalette:s?`green`:`red`,fontSize:`sm`,paddingX:2,paddingY:1,children:s?e.plan:c?`Expired`:`Invalid`})}),(0,W.jsxs)(u,{align:`start`,gap:2,width:`full`,children:[(0,W.jsxs)(i,{children:[(0,W.jsx)(l,{fontSize:`sm`,color:`fg.muted`,width:`120px`,children:`Plan:`}),(0,W.jsx)(l,{fontSize:`sm`,fontWeight:`medium`,children:e.planName})]}),(0,W.jsxs)(i,{children:[(0,W.jsx)(l,{fontSize:`sm`,color:`fg.muted`,width:`120px`,children:`Licensed to:`}),(0,W.jsx)(l,{fontSize:`sm`,fontWeight:`medium`,children:e.organizationName})]}),(0,W.jsxs)(i,{children:[(0,W.jsx)(l,{fontSize:`sm`,color:`fg.muted`,width:`120px`,children:`Seats:`}),(0,W.jsxs)(l,{fontSize:`sm`,fontWeight:`medium`,children:[e.currentMembers,` / `,e.maxMembers]})]}),(0,W.jsxs)(i,{children:[(0,W.jsx)(l,{fontSize:`sm`,color:`fg.muted`,width:`120px`,children:`Expires:`}),(0,W.jsx)(l,{fontSize:`sm`,fontWeight:`medium`,color:c?`red.500`:void 0,children:te(e.expiresAt)})]})]}),!s&&(0,W.jsx)(n,{backgroundColor:`red.50`,padding:3,borderRadius:`md`,width:`full`,children:(0,W.jsx)(l,{fontSize:`sm`,color:`red.600`,children:c?`Your license has expired. Please renew to continue using licensed features.`:`Your license is invalid. Please contact support or upload a valid license.`})}),(0,W.jsxs)(i,{children:[(0,W.jsx)(r,{variant:`outline`,size:`sm`,colorPalette:`red`,onClick:t,loading:a,disabled:a,children:`Remove License`}),(0,W.jsx)(r,{asChild:!0,variant:`outline`,size:`sm`,children:(0,W.jsx)(_,{href:T,target:`_blank`,children:`Contact Sales`})})]})]})}):null}var K={type:`PRO`,name:`Pro`,maxMembers:10,maxMembersLite:5,maxTeams:10,maxProjects:20,maxMessagesPerMonth:1e5,evaluationsCredit:0,maxWorkflows:50,maxPrompts:50,maxEvaluators:50,maxScenarios:50,maxAgents:50,maxExperiments:50,maxOnlineEvaluations:50,maxDatasets:50,maxDashboards:50,maxCustomGraphs:50,maxAutomations:50,canPublish:!0,usageUnit:`traces`},q={type:`ENTERPRISE`,name:`Enterprise`,maxMembers:100,maxMembersLite:50,maxTeams:100,maxProjects:500,maxMessagesPerMonth:1e7,evaluationsCredit:0,maxWorkflows:1e3,maxPrompts:1e3,maxEvaluators:1e3,maxScenarios:1e3,maxAgents:1e3,maxExperiments:1e3,maxOnlineEvaluations:1e3,maxDatasets:1e3,maxDashboards:1e3,maxCustomGraphs:1e3,maxAutomations:1e3,canPublish:!0,usageUnit:`traces`},J={PRO:{maxMembers:K.maxMembers,maxMembersLite:K.maxMembersLite,maxProjects:K.maxProjects,maxMessagesPerMonth:K.maxMessagesPerMonth,maxWorkflows:K.maxWorkflows,maxPrompts:K.maxPrompts,maxEvaluators:K.maxEvaluators,maxScenarios:K.maxScenarios,maxAgents:K.maxAgents,canPublish:K.canPublish,usageUnit:K.usageUnit},ENTERPRISE:{maxMembers:q.maxMembers,maxMembersLite:q.maxMembersLite,maxProjects:q.maxProjects,maxMessagesPerMonth:q.maxMessagesPerMonth,maxWorkflows:q.maxWorkflows,maxPrompts:q.maxPrompts,maxEvaluators:q.maxEvaluators,maxScenarios:q.maxScenarios,maxAgents:q.maxAgents,canPublish:q.canPublish,usageUnit:q.usageUnit},CUSTOM:{}};function re(e){return J[e]}var Y=p({items:[{label:`Pro`,value:`PRO`},{label:`Enterprise`,value:`ENTERPRISE`},{label:`Custom`,value:`CUSTOM`}]}),X=p({items:[{label:`Traces`,value:`traces`},{label:`Events (traces + evaluations + experiments)`,value:`events`}]});function ie(){let e=new Date;return e.setFullYear(e.getFullYear()+1),e.toISOString().split(`T`)[0]??``}var Z={privateKey:``,organizationName:``,email:``,expiresAt:ie(),planType:`ENTERPRISE`,maxMembers:q.maxMembers,maxMembersLite:q.maxMembersLite??50,maxTeams:q.maxTeams??100,maxProjects:q.maxProjects,maxMessagesPerMonth:q.maxMessagesPerMonth,maxWorkflows:q.maxWorkflows,maxPrompts:q.maxPrompts??1e3,maxEvaluators:q.maxEvaluators??1e3,maxScenarios:q.maxScenarios??1e3,maxAgents:q.maxAgents??1e3,maxExperiments:q.maxExperiments??1e3,canPublish:q.canPublish,usageUnit:q.usageUnit??`events`};function ae(e,t){let n=t.replace(/[\/\\:*?"<>|]/g,`_`),r=new Blob([e],{type:`text/plain`}),i=URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=`${n}.langwatch-license`,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)}function Q({label:e,value:t,onChange:n}){return(0,W.jsxs)(C,{flex:1,children:[(0,W.jsx)(w,{fontSize:`xs`,color:`fg.muted`,children:e}),(0,W.jsx)(N,{value:t,onChange:e=>n(parseInt(e.target.value)||0),type:`number`})]})}var $=(0,U.forwardRef)(function({organizationId:e,onGeneratedLicenseChange:t,onFormStateChange:a},o){let[s,c]=(0,U.useState)(Z),[p,h]=(0,U.useState)(``),[g,_]=(0,U.useState)(`file`),[T,E]=(0,U.useState)(null),[D,k]=(0,U.useState)(!1),M=(0,U.useRef)(null),P=A.license.generate.useMutation({onSuccess:e=>{h(e.licenseKey),t?.(!0),ae(e.licenseKey,s.organizationName),v.create({title:`License generated and downloaded`,description:`License saved as ${s.organizationName.replace(/[\/\\:*?"<>|]/g,`_`)}.langwatch-license`,type:`success`})},onError:e=>O({error:e,fallbackTitle:`Couldn't generate license`})}),I=e=>{let t=re(e);c(n=>({...n,planType:e,...t}))},L=(e,t)=>{c(n=>({...n,[e]:t}))},R=e=>{_(e),e===`file`||E(null),c(e=>({...e,privateKey:``}))},z=(0,U.useCallback)(e=>{E(e);let t=new FileReader;t.onload=e=>{let t=e.target?.result;c(e=>({...e,privateKey:t}))},t.readAsText(e)},[]),B=(0,U.useCallback)(e=>{e.preventDefault(),k(!0)},[]),te=(0,U.useCallback)(()=>{k(!1)},[]),ne=(0,U.useCallback)(e=>{e.preventDefault(),k(!1);let t=e.dataTransfer.files[0];t&&z(t)},[z]),V=(0,U.useCallback)(()=>{M.current?.click()},[]),G=(0,U.useCallback)(e=>{let t=e.target.files?.[0];t&&z(t)},[z]),K=(0,U.useCallback)(()=>{E(null),c(e=>({...e,privateKey:``})),M.current&&(M.current.value=``)},[]),q=()=>{P.mutate({organizationId:e,privateKey:s.privateKey,organizationName:s.organizationName,email:s.email,expiresAt:new Date(s.expiresAt),planType:s.planType,plan:{maxMembers:s.maxMembers,maxMembersLite:s.maxMembersLite,maxTeams:s.maxTeams,maxProjects:s.maxProjects,maxMessagesPerMonth:s.maxMessagesPerMonth,maxWorkflows:s.maxWorkflows,maxPrompts:s.maxPrompts,maxEvaluators:s.maxEvaluators,maxScenarios:s.maxScenarios,maxAgents:s.maxAgents,maxExperiments:s.maxExperiments,canPublish:s.canPublish,usageUnit:s.usageUnit}})},J=async()=>{try{await navigator.clipboard.writeText(p),v.create({title:`License copied to clipboard`,type:`success`})}catch{v.create({title:`Failed to copy`,description:`Please copy the license manually.`,type:`error`})}},ie=()=>{c(Z),h(``),E(null),_(`file`),M.current&&(M.current.value=``),t?.(!1)},$=s.privateKey.trim()!==``&&s.organizationName.trim()!==``&&s.email.trim()!==``&&s.expiresAt!==``;if((0,U.useEffect)(()=>{a?.({isGenerating:P.isLoading,isFormValid:$})},[P.isLoading,$,a]),(0,U.useImperativeHandle)(o,()=>({handleGenerate:q,isGenerating:P.isLoading,isFormValid:$,hasGeneratedLicense:!!p})),p){let e=s.organizationName.replace(/[\/\\:*?"<>|]/g,`_`);return(0,W.jsxs)(u,{align:`start`,gap:4,width:`full`,paddingX:6,paddingY:4,children:[(0,W.jsx)(n,{backgroundColor:`green.50`,padding:4,borderRadius:`md`,width:`full`,children:(0,W.jsxs)(u,{align:`start`,gap:2,children:[(0,W.jsx)(l,{fontSize:`sm`,fontWeight:`medium`,color:`green.700`,children:`License generated and downloaded!`}),(0,W.jsxs)(l,{fontSize:`sm`,color:`green.600`,children:[`The license file has been saved as`,` `,(0,W.jsxs)(l,{as:`span`,fontFamily:`mono`,fontWeight:`medium`,children:[e,`.langwatch-license`]})]})]})}),(0,W.jsxs)(i,{children:[(0,W.jsx)(r,{colorPalette:`blue`,size:`sm`,onClick:()=>ae(p,s.organizationName),children:`Download Again`}),(0,W.jsx)(r,{variant:`outline`,size:`sm`,onClick:J,children:`Copy to Clipboard`}),(0,W.jsx)(r,{variant:`outline`,size:`sm`,onClick:ie,children:`Generate Another`})]})]})}return(0,W.jsxs)(u,{align:`start`,gap:4,width:`full`,paddingX:6,paddingY:4,children:[(0,W.jsxs)(C,{width:`full`,children:[(0,W.jsx)(w,{fontWeight:`medium`,children:`Private Key`}),(0,W.jsx)(f,{value:g,onValueChange:e=>R(e.value),disabled:P.isLoading,children:(0,W.jsxs)(i,{gap:4,marginBottom:3,children:[(0,W.jsx)(d,{value:`file`,children:`Upload private key file`}),(0,W.jsx)(d,{value:`key`,children:`Enter private key`})]})}),g===`file`&&(0,W.jsxs)(n,{width:`full`,children:[(0,W.jsx)(`input`,{ref:M,type:`file`,accept:`.pem,.key`,style:{display:`none`},onChange:G}),T?(0,W.jsx)(n,{borderWidth:`1px`,borderRadius:`lg`,padding:4,width:`full`,backgroundColor:`bg.subtle`,children:(0,W.jsxs)(i,{justify:`space-between`,width:`full`,children:[(0,W.jsxs)(i,{gap:3,children:[(0,W.jsx)(j,{size:20}),(0,W.jsxs)(u,{align:`start`,gap:0,children:[(0,W.jsx)(l,{fontSize:`sm`,fontWeight:`medium`,children:T.name}),(0,W.jsx)(l,{fontSize:`xs`,color:`fg.muted`,children:H(T.size)})]})]}),(0,W.jsx)(r,{variant:`ghost`,size:`sm`,onClick:K,disabled:P.isLoading,"aria-label":`Remove file`,children:(0,W.jsx)(F,{size:16})})]})}):(0,W.jsx)(n,{borderWidth:`2px`,borderStyle:`dashed`,borderRadius:`lg`,padding:6,width:`full`,cursor:`pointer`,onClick:V,onDragOver:B,onDragLeave:te,onDrop:ne,borderColor:D?`blue.500`:`border`,backgroundColor:D?`blue.50`:`transparent`,transition:`all 0.2s`,_hover:{borderColor:`blue.300`},children:(0,W.jsxs)(u,{gap:2,children:[(0,W.jsx)(j,{size:24,color:`#666`}),(0,W.jsx)(l,{fontSize:`sm`,color:`fg.muted`,textAlign:`center`,children:`Drop your private key file here`}),(0,W.jsx)(l,{fontSize:`xs`,color:`fg.muted`,children:`Click to browse (.pem, .key)`})]})})]}),g===`key`&&(0,W.jsx)(ee,{value:s.privateKey,onChange:e=>L(`privateKey`,e.target.value),placeholder:`Paste your Private License key`,fontFamily:`mono`,fontSize:`xs`,rows:6,disabled:P.isLoading})]}),(0,W.jsxs)(C,{width:`full`,children:[(0,W.jsx)(w,{fontWeight:`medium`,children:`Organization Name`}),(0,W.jsx)(N,{value:s.organizationName,onChange:e=>L(`organizationName`,e.target.value),placeholder:`Acme Corp`})]}),(0,W.jsxs)(C,{width:`full`,children:[(0,W.jsx)(w,{fontWeight:`medium`,children:`Email`}),(0,W.jsx)(N,{value:s.email,onChange:e=>L(`email`,e.target.value),placeholder:`admin@acme.corp`,type:`email`})]}),(0,W.jsxs)(C,{width:`full`,children:[(0,W.jsx)(w,{fontWeight:`medium`,children:`Expiration Date`}),(0,W.jsx)(N,{value:s.expiresAt,onChange:e=>L(`expiresAt`,e.target.value),type:`date`})]}),(0,W.jsxs)(C,{width:`full`,children:[(0,W.jsx)(w,{fontWeight:`medium`,children:`Plan Type`}),(0,W.jsxs)(m.Root,{collection:Y,value:[s.planType],onValueChange:e=>{let t=e.value[0];t&&I(t)},children:[(0,W.jsx)(m.Trigger,{width:`full`,children:(0,W.jsx)(m.ValueText,{placeholder:`Select plan type`})}),(0,W.jsx)(m.Content,{paddingY:2,children:Y.items.map(e=>(0,W.jsx)(m.Item,{item:e,children:e.label},e.value))})]})]}),(0,W.jsxs)(C,{width:`full`,children:[(0,W.jsx)(w,{fontWeight:`medium`,children:`Usage Unit`}),(0,W.jsxs)(m.Root,{collection:X,value:[s.usageUnit],onValueChange:e=>{let t=e.value[0];t&&L(`usageUnit`,t)},children:[(0,W.jsx)(m.Trigger,{width:`full`,children:(0,W.jsx)(m.ValueText,{placeholder:`Select usage unit`})}),(0,W.jsx)(m.Content,{paddingY:2,children:X.items.map(e=>(0,W.jsx)(m.Item,{item:e,children:e.label},e.value))})]}),(0,W.jsx)(l,{fontSize:`xs`,color:`fg.muted`,marginTop:1,children:`Determines how usage is counted against the monthly limit.`})]}),(0,W.jsx)(l,{fontSize:`sm`,fontWeight:`semibold`,marginBottom:2,children:`Plan Limits`}),(0,W.jsx)(n,{width:`full`,borderWidth:`1px`,borderRadius:`md`,padding:4,children:(0,W.jsxs)(u,{align:`start`,gap:3,children:[(0,W.jsxs)(i,{width:`full`,gap:4,children:[(0,W.jsx)(Q,{label:`Max Members`,value:s.maxMembers,onChange:e=>L(`maxMembers`,e)}),(0,W.jsx)(Q,{label:`Max Lite Members`,value:s.maxMembersLite,onChange:e=>L(`maxMembersLite`,e)}),(0,W.jsx)(Q,{label:`Max Projects`,value:s.maxProjects,onChange:e=>L(`maxProjects`,e)})]}),(0,W.jsxs)(i,{width:`full`,gap:4,children:[(0,W.jsx)(Q,{label:`Max Messages/Month`,value:s.maxMessagesPerMonth,onChange:e=>L(`maxMessagesPerMonth`,e)}),(0,W.jsx)(Q,{label:`Max Workflows`,value:s.maxWorkflows,onChange:e=>L(`maxWorkflows`,e)})]}),(0,W.jsxs)(i,{width:`full`,gap:4,children:[(0,W.jsx)(Q,{label:`Max Prompts`,value:s.maxPrompts,onChange:e=>L(`maxPrompts`,e)}),(0,W.jsx)(Q,{label:`Max Evaluators`,value:s.maxEvaluators,onChange:e=>L(`maxEvaluators`,e)}),(0,W.jsx)(Q,{label:`Max Scenarios`,value:s.maxScenarios,onChange:e=>L(`maxScenarios`,e)})]}),(0,W.jsx)(i,{width:`full`,gap:4,children:(0,W.jsx)(Q,{label:`Max Agents`,value:s.maxAgents,onChange:e=>L(`maxAgents`,e)})}),(0,W.jsxs)(S,{checked:s.canPublish,onCheckedChange:e=>L(`canPublish`,!!e.checked),children:[(0,W.jsx)(y,{}),(0,W.jsx)(b,{}),(0,W.jsx)(x,{fontSize:`xs`,color:`fg.muted`,children:`Enabled to publish Workflows publicly`})]})]})})]})});function oe({open:e,onClose:t,organizationId:n}){let i=(0,U.useRef)(null),[a,o]=(0,U.useState)(!1),[s,l]=(0,U.useState)(!1),[u,d]=(0,U.useState)(!1),f=()=>{i.current?.handleGenerate()},p=(0,U.useCallback)(e=>{l(e.isGenerating),d(e.isFormValid)},[]);return(0,W.jsx)(D.Root,{open:e,onOpenChange:({open:e})=>!e&&t(),size:`lg`,closeOnInteractOutside:!0,modal:!1,children:(0,W.jsxs)(D.Content,{bg:`bg`,children:[(0,W.jsx)(D.CloseTrigger,{}),(0,W.jsx)(D.Header,{children:(0,W.jsx)(c,{children:`Generate License`})}),(0,W.jsx)(D.Body,{padding:0,children:(0,W.jsx)($,{ref:i,organizationId:n,onGeneratedLicenseChange:o,onFormStateChange:p})}),!a&&(0,W.jsx)(D.Footer,{borderTopWidth:`1px`,borderColor:`border`,justifyContent:`flex-end`,children:(0,W.jsx)(r,{colorPalette:`blue`,onClick:f,loading:s,disabled:!u||s,children:`Generate License`})})]})})}function se(){return(0,W.jsx)(n,{borderWidth:`1px`,borderRadius:`lg`,padding:6,width:`full`,children:(0,W.jsxs)(u,{align:`start`,gap:4,children:[(0,W.jsx)(s,{height:`24px`,width:`150px`}),(0,W.jsx)(o,{noOfLines:3,gap:2,width:`full`})]})})}function ce({licenseKey:e,onLicenseKeyChange:t,onActivate:a,onFileActivate:o,isActivating:s}){let c=M().data?.STRIPE_LICENSE_PAYMENT_LINK_URL??`https://buy.stripe.com/dRm3cwaIDgXs6yK6sX0480f`,[p,m]=(0,U.useState)(`file`),[h,_]=(0,U.useState)(null),[v,y]=(0,U.useState)(!1),b=(0,U.useRef)(null),x=e=>{m(e)},S=(0,U.useCallback)(e=>{e.name.endsWith(`.langwatch-license`)&&_(e)},[]),E=(0,U.useCallback)(e=>{e.preventDefault(),y(!0)},[]),D=(0,U.useCallback)(()=>{y(!1)},[]),O=(0,U.useCallback)(e=>{e.preventDefault(),y(!1);let t=e.dataTransfer.files[0];t&&S(t)},[S]),k=(0,U.useCallback)(()=>{b.current?.click()},[]),A=(0,U.useCallback)(e=>{let t=e.target.files?.[0];t&&S(t)},[S]),N=(0,U.useCallback)(()=>{_(null),b.current&&(b.current.value=``)},[]),P=(0,U.useCallback)(()=>{if(p===`file`&&h){let e=new FileReader;e.onload=e=>{let t=e.target?.result;o&&o(t)},e.readAsText(h)}else p===`key`&&a()},[p,h,o,a]),I=s||p===`file`&&!h||p===`key`&&!e.trim();return(0,W.jsx)(n,{borderWidth:`1px`,borderRadius:`lg`,padding:6,width:`full`,children:(0,W.jsxs)(u,{align:`start`,gap:4,children:[(0,W.jsxs)(u,{align:`start`,gap:1,children:[(0,W.jsx)(l,{fontWeight:`medium`,fontSize:`md`,children:`No license installed`}),(0,W.jsx)(l,{color:`fg.muted`,fontSize:`sm`,children:`Running without a license. Some features may be limited.`})]}),(0,W.jsxs)(u,{align:`start`,gap:3,width:`full`,children:[(0,W.jsx)(l,{fontWeight:`medium`,children:`Activate a license:`}),(0,W.jsx)(f,{value:p,onValueChange:e=>x(e.value),disabled:s,children:(0,W.jsxs)(i,{gap:4,children:[(0,W.jsx)(d,{value:`file`,children:`Upload license file`}),(0,W.jsx)(d,{value:`key`,children:`Enter license key`})]})}),p===`file`&&(0,W.jsxs)(n,{width:`full`,children:[(0,W.jsx)(`input`,{ref:b,type:`file`,accept:`.langwatch-license`,style:{display:`none`},onChange:A}),h?(0,W.jsx)(n,{borderWidth:`1px`,borderRadius:`lg`,padding:4,width:`full`,backgroundColor:`bg.subtle`,children:(0,W.jsxs)(i,{justify:`space-between`,width:`full`,children:[(0,W.jsxs)(i,{gap:3,children:[(0,W.jsx)(j,{size:20}),(0,W.jsxs)(u,{align:`start`,gap:0,children:[(0,W.jsx)(l,{fontSize:`sm`,fontWeight:`medium`,children:h.name}),(0,W.jsx)(l,{fontSize:`xs`,color:`fg.muted`,children:H(h.size)})]})]}),(0,W.jsx)(r,{variant:`ghost`,size:`sm`,onClick:N,disabled:s,"aria-label":`Remove file`,children:(0,W.jsx)(F,{size:16})})]})}):(0,W.jsx)(n,{borderWidth:`2px`,borderStyle:`dashed`,borderRadius:`lg`,padding:6,width:`full`,cursor:`pointer`,onClick:k,onDragOver:E,onDragLeave:D,onDrop:O,borderColor:v?`blue.500`:`border`,backgroundColor:v?`blue.50`:`transparent`,transition:`all 0.2s`,_hover:{borderColor:`blue.300`},children:(0,W.jsxs)(u,{gap:2,children:[(0,W.jsx)(j,{size:24,color:`#666`}),(0,W.jsx)(l,{fontSize:`sm`,color:`fg.muted`,textAlign:`center`,children:`Drop your license here`}),(0,W.jsx)(l,{fontSize:`xs`,color:`fg.muted`,children:`Click to browse`})]})})]}),p===`key`&&(0,W.jsxs)(C,{width:`full`,children:[(0,W.jsx)(w,{srOnly:!0,children:`License key`}),(0,W.jsx)(ee,{value:e,onChange:e=>t(e.target.value),placeholder:`Paste your license key`,rows:4,fontFamily:`mono`,fontSize:`xs`,disabled:s})]}),(0,W.jsxs)(i,{gap:3,children:[(0,W.jsx)(r,{colorPalette:`blue`,variant:`solid`,size:`sm`,onClick:P,loading:s,disabled:I,children:`Activate License`}),c&&(0,W.jsx)(g,{content:`After purchase, your license will be generated and delivered to your email.`,children:(0,W.jsx)(r,{asChild:!0,variant:`outline`,size:`sm`,children:(0,W.jsx)(L,{href:c,isExternal:!0,children:`Purchase license`})})}),(0,W.jsx)(L,{href:T,isExternal:!0,color:`blue.fg`,fontSize:`sm`,_hover:{textDecoration:`underline`},children:`Contact sales`})]})]})]})})}function le({organizationId:e,onUploadSuccess:t,onRemoveSuccess:n}){let r=A.license.upload.useMutation({onSuccess:()=>{v.create({title:`License activated`,description:`Your license has been successfully activated.`,type:`success`}),t(),window.location.reload()},onError:e=>O({error:e,fallbackTitle:`Couldn't activate license`})}),i=A.license.remove.useMutation({onSuccess:()=>{v.create({title:`License removed`,description:`Your organization is now running without a license. Some features may be limited.`,type:`info`}),n(),window.location.reload()},onError:e=>O({error:e,fallbackTitle:`Couldn't remove license`})});return{upload:t=>{r.mutate({organizationId:e,licenseKey:t})},remove:()=>{i.mutate({organizationId:e})},isUploading:r.isLoading,isRemoving:i.isLoading}}function ue({organizationId:e,isGeneratorOpen:t,onGeneratorOpenChange:i}){let[a,o]=(0,U.useState)(``),{data:s,isLoading:c,isError:d,refetch:f}=A.license.getStatus.useQuery({organizationId:e},{enabled:!!e,refetchOnWindowFocus:!1,staleTime:3e4}),{upload:p,remove:m,isUploading:h,isRemoving:g}=le({organizationId:e,onUploadSuccess:()=>{o(``),f()},onRemoveSuccess:()=>{f()}});return c?(0,W.jsx)(se,{}):d?(0,W.jsx)(n,{borderWidth:`1px`,borderRadius:`lg`,padding:6,width:`full`,children:(0,W.jsxs)(u,{align:`start`,gap:4,children:[(0,W.jsx)(l,{fontWeight:`medium`,children:`Unable to load license`}),(0,W.jsx)(l,{color:`fg.muted`,children:`Your license status could not be retrieved. Please try again or contact support if the issue persists.`}),(0,W.jsx)(r,{onClick:()=>void f(),size:`sm`,children:`Retry`})]})}):s?.hasLicense?(0,W.jsxs)(u,{align:`start`,gap:0,width:`full`,children:[(0,W.jsx)(G,{status:s,onRemove:m,isRemoving:g}),(0,W.jsx)(oe,{open:t,onClose:()=>i(!1),organizationId:e})]}):(0,W.jsxs)(u,{align:`start`,gap:0,width:`full`,children:[(0,W.jsx)(ce,{licenseKey:a,onLicenseKeyChange:o,onActivate:()=>{let e=V(a);e&&p(e)},onFileActivate:e=>{let t=V(e);t&&p(t)},isActivating:h}),(0,W.jsx)(oe,{open:t,onClose:()=>i(!1),organizationId:e})]})}function de(){let{organization:e}=I(),[t,n]=(0,U.useState)(!1),r=M();return(0,W.jsx)(R,{children:(0,W.jsxs)(u,{gap:6,width:`full`,align:`start`,children:[(0,W.jsxs)(i,{width:`full`,children:[(0,W.jsx)(c,{children:`License`}),(0,W.jsx)(k,{}),r.data?.IS_SAAS&&(0,W.jsxs)(E.HeaderButton,{onClick:()=>n(!0),children:[(0,W.jsx)(P,{size:20}),`New License`]})]}),(0,W.jsx)(l,{color:`fg.muted`,children:`Manage your LangWatch license for self-hosted deployments. A valid license is required for commercial use and enables specific plan limits.`}),e?.id?(0,W.jsx)(ue,{organizationId:e.id,isGeneratorOpen:t,onGeneratorOpenChange:n}):(0,W.jsx)(l,{children:`Loading...`})]})})}export{de as default};
|
|
2
|
-
//# sourceMappingURL=license-Be6bs3wD.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function e(e){return`plan`in e}function t(e){return`corrupted`in e&&e.corrupted===!0}function n(t){if(!t||!t.hasLicense||!e(t))return!1;let n=new Date(t.expiresAt);return isNaN(n.getTime())?!1:n.getTime()<Date.now()}function r(e){let t=e.trim();return t.length>0?t:null}function i(e){let t=new Date(e);return isNaN(t.getTime())?e:t.toLocaleDateString(`en-US`,{year:`numeric`,month:`long`,day:`numeric`,timeZone:`UTC`})}function a(e){return!Number.isFinite(e)||e>=1e6?`Unlimited`:e.toLocaleString()}function o(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}export{t as a,e as i,i as n,n as o,a as r,r as s,o as t};
|
|
2
|
-
//# sourceMappingURL=licenseStatusUtils-YSS0xL-G.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";var n=e(t(),1),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=n.createContext&&n.createContext(r),a=[`attr`,`size`,`title`];function ee(e,t){if(e==null)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(null,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?c(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=te(e,`string`);return typeof t==`symbol`?t:t+``}function te(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function f(e){return e&&e.map((e,t)=>n.createElement(e.tag,l({key:t},e.attr),f(e.child)))}function p(e){return t=>n.createElement(m,s({attr:l({},e.attr)},t),f(e.child))}function m(e){var t=t=>{var r=e.attr,i=e.size,o=e.title,c=ee(e,a),u=i||t.size||`1em`,d;return t.className&&(d=t.className),e.className&&(d=(d?d+` `:``)+e.className),n.createElement(`svg`,s({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,r,c,{className:d,style:l(l({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:`http://www.w3.org/2000/svg`}),o&&n.createElement(`title`,null,o),e.children)};return i===void 0?t(r):n.createElement(i.Consumer,null,e=>t(e))}function h(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`},child:[]}]})(e)}function g(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M18 6 6 18`},child:[]},{tag:`path`,attr:{d:`m6 6 12 12`},child:[]}]})(e)}function _(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`},child:[]}]})(e)}function v(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`line`,attr:{x1:`3`,x2:`21`,y1:`6`,y2:`6`},child:[]},{tag:`path`,attr:{d:`M3 12h15a3 3 0 1 1 0 6h-4`},child:[]},{tag:`polyline`,attr:{points:`16 16 14 18 16 20`},child:[]},{tag:`line`,attr:{x1:`3`,x2:`10`,y1:`18`,y2:`18`},child:[]}]})(e)}function y(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`},child:[]},{tag:`path`,attr:{d:`M7 11v4a2 2 0 0 0 2 2h4`},child:[]},{tag:`rect`,attr:{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`},child:[]}]})(e)}function b(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`},child:[]},{tag:`circle`,attr:{cx:`9`,cy:`7`,r:`4`},child:[]},{tag:`path`,attr:{d:`M22 21v-2a4 4 0 0 0-3-3.87`},child:[]},{tag:`path`,attr:{d:`M16 3.13a4 4 0 0 1 0 7.75`},child:[]}]})(e)}function x(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`},child:[]},{tag:`circle`,attr:{cx:`12`,cy:`7`,r:`4`},child:[]}]})(e)}function S(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 14 4 9l5-5`},child:[]},{tag:`path`,attr:{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`},child:[]}]})(e)}function C(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`polyline`,attr:{points:`4 7 4 4 20 4 20 7`},child:[]},{tag:`line`,attr:{x1:`9`,x2:`15`,y1:`20`,y2:`20`},child:[]},{tag:`line`,attr:{x1:`12`,x2:`12`,y1:`4`,y2:`20`},child:[]}]})(e)}function w(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M22 18a2 2 0 0 1-2 2H3c-1.1 0-1.3-.6-.4-1.3L20.4 4.3c.9-.7 1.6-.4 1.6.7Z`},child:[]}]})(e)}function T(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`},child:[]},{tag:`path`,attr:{d:`M12 9v4`},child:[]},{tag:`path`,attr:{d:`M12 17h.01`},child:[]}]})(e)}function E(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`polyline`,attr:{points:`22 7 13.5 15.5 8.5 10.5 2 17`},child:[]},{tag:`polyline`,attr:{points:`16 7 22 7 22 13`},child:[]}]})(e)}function D(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 6h18`},child:[]},{tag:`path`,attr:{d:`M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6`},child:[]},{tag:`path`,attr:{d:`M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2`},child:[]}]})(e)}function O(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 6h18`},child:[]},{tag:`path`,attr:{d:`M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6`},child:[]},{tag:`path`,attr:{d:`M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2`},child:[]},{tag:`line`,attr:{x1:`10`,x2:`10`,y1:`11`,y2:`17`},child:[]},{tag:`line`,attr:{x1:`14`,x2:`14`,y1:`11`,y2:`17`},child:[]}]})(e)}function k(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M2 10s3-3 3-8`},child:[]},{tag:`path`,attr:{d:`M22 10s-3-3-3-8`},child:[]},{tag:`path`,attr:{d:`M10 2c0 4.4-3.6 8-8 8`},child:[]},{tag:`path`,attr:{d:`M14 2c0 4.4 3.6 8 8 8`},child:[]},{tag:`path`,attr:{d:`M2 10s2 2 2 5`},child:[]},{tag:`path`,attr:{d:`M22 10s-2 2-2 5`},child:[]},{tag:`path`,attr:{d:`M8 15h8`},child:[]},{tag:`path`,attr:{d:`M2 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1`},child:[]},{tag:`path`,attr:{d:`M14 22v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1`},child:[]}]})(e)}function A(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`polyline`,attr:{points:`4 17 10 11 4 5`},child:[]},{tag:`line`,attr:{x1:`12`,x2:`20`,y1:`19`,y2:`19`},child:[]}]})(e)}function j(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`},child:[]},{tag:`circle`,attr:{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`},child:[]}]})(e)}function M(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`4`},child:[]},{tag:`path`,attr:{d:`M12 2v2`},child:[]},{tag:`path`,attr:{d:`M12 20v2`},child:[]},{tag:`path`,attr:{d:`m4.93 4.93 1.41 1.41`},child:[]},{tag:`path`,attr:{d:`m17.66 17.66 1.41 1.41`},child:[]},{tag:`path`,attr:{d:`M2 12h2`},child:[]},{tag:`path`,attr:{d:`M20 12h2`},child:[]},{tag:`path`,attr:{d:`m6.34 17.66-1.41 1.41`},child:[]},{tag:`path`,attr:{d:`m19.07 4.93-1.41 1.41`},child:[]}]})(e)}function N(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`},child:[]}]})(e)}function P(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10 9.5 8 12l2 2.5`},child:[]},{tag:`path`,attr:{d:`m14 9.5 2 2.5-2 2.5`},child:[]},{tag:`rect`,attr:{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`},child:[]}]})(e)}function F(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5`},child:[]},{tag:`path`,attr:{d:`m9 11 3 3L22 4`},child:[]}]})(e)}function I(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z`},child:[]},{tag:`path`,attr:{d:`M20 3v4`},child:[]},{tag:`path`,attr:{d:`M22 5h-4`},child:[]},{tag:`path`,attr:{d:`M4 17v2`},child:[]},{tag:`path`,attr:{d:`M5 18H3`},child:[]}]})(e)}function L(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`},child:[]}]})(e)}function R(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`18`,cy:`5`,r:`3`},child:[]},{tag:`circle`,attr:{cx:`6`,cy:`12`,r:`3`},child:[]},{tag:`circle`,attr:{cx:`18`,cy:`19`,r:`3`},child:[]},{tag:`line`,attr:{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`},child:[]},{tag:`line`,attr:{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`},child:[]}]})(e)}function z(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`},child:[]},{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`3`},child:[]}]})(e)}function B(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M20 7h-9`},child:[]},{tag:`path`,attr:{d:`M14 17H5`},child:[]},{tag:`circle`,attr:{cx:`17`,cy:`17`,r:`3`},child:[]},{tag:`circle`,attr:{cx:`7`,cy:`7`,r:`3`},child:[]}]})(e)}function V(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`},child:[]},{tag:`rect`,attr:{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`},child:[]},{tag:`line`,attr:{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`},child:[]},{tag:`line`,attr:{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`},child:[]}]})(e)}function H(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`},child:[]},{tag:`path`,attr:{d:`m21.854 2.147-10.94 10.939`},child:[]}]})(e)}function U(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`11`,cy:`11`,r:`8`},child:[]},{tag:`path`,attr:{d:`m21 21-4.3-4.3`},child:[]}]})(e)}function W(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M19 17V5a2 2 0 0 0-2-2H4`},child:[]},{tag:`path`,attr:{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`},child:[]}]})(e)}function G(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 7V5a2 2 0 0 1 2-2h2`},child:[]},{tag:`path`,attr:{d:`M17 3h2a2 2 0 0 1 2 2v2`},child:[]},{tag:`path`,attr:{d:`M21 17v2a2 2 0 0 1-2 2h-2`},child:[]},{tag:`path`,attr:{d:`M7 21H5a2 2 0 0 1-2-2v-2`},child:[]},{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`3`},child:[]},{tag:`path`,attr:{d:`m16 16-1.9-1.9`},child:[]}]})(e)}function K(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`},child:[]},{tag:`path`,attr:{d:`M3 3v5h5`},child:[]}]})(e)}function q(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z`},child:[]},{tag:`path`,attr:{d:`m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z`},child:[]},{tag:`path`,attr:{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0`},child:[]},{tag:`path`,attr:{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`},child:[]}]})(e)}function J(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`},child:[]},{tag:`path`,attr:{d:`M21 3v5h-5`},child:[]},{tag:`path`,attr:{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`},child:[]},{tag:`path`,attr:{d:`M8 16H3v5`},child:[]}]})(e)}function Y(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`},child:[]},{tag:`path`,attr:{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`},child:[]}]})(e)}function X(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 12h14`},child:[]},{tag:`path`,attr:{d:`M12 5v14`},child:[]}]})(e)}function Z(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`polygon`,attr:{points:`6 3 20 12 6 21 6 3`},child:[]}]})(e)}function Q(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 17v5`},child:[]},{tag:`path`,attr:{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`},child:[]}]})(e)}function ne(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 17v5`},child:[]},{tag:`path`,attr:{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`},child:[]},{tag:`path`,attr:{d:`m2 2 20 20`},child:[]},{tag:`path`,attr:{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`},child:[]}]})(e)}function re(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`},child:[]},{tag:`path`,attr:{d:`m15 5 4 4`},child:[]}]})(e)}function ie(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{x:`14`,y:`4`,width:`4`,height:`16`,rx:`1`},child:[]},{tag:`rect`,attr:{x:`6`,y:`4`,width:`4`,height:`16`,rx:`1`},child:[]}]})(e)}function ae(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`},child:[]},{tag:`path`,attr:{d:`M15 3v18`},child:[]},{tag:`path`,attr:{d:`m10 15-3-3 3-3`},child:[]}]})(e)}function oe(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`},child:[]},{tag:`path`,attr:{d:`M15 3v18`},child:[]},{tag:`path`,attr:{d:`m8 9 3 3-3 3`},child:[]}]})(e)}function se(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`},child:[]},{tag:`path`,attr:{d:`M3 15h18`},child:[]},{tag:`path`,attr:{d:`m9 10 3-3 3 3`},child:[]}]})(e)}function ce(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`},child:[]},{tag:`path`,attr:{d:`M3 15h18`},child:[]},{tag:`path`,attr:{d:`m15 8-3 3-3-3`},child:[]}]})(e)}function le(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`},child:[]},{tag:`path`,attr:{d:`M12 22V12`},child:[]},{tag:`path`,attr:{d:`m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7`},child:[]},{tag:`path`,attr:{d:`m7.5 4.27 9 5.15`},child:[]}]})(e)}function ue(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`},child:[]},{tag:`rect`,attr:{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`},child:[]},{tag:`rect`,attr:{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`},child:[]},{tag:`path`,attr:{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`},child:[]},{tag:`path`,attr:{d:`M12 12V8`},child:[]}]})(e)}function de(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`polygon`,attr:{points:`3 11 22 2 13 21 11 13 3 11`},child:[]}]})(e)}function fe(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M18 8L22 12L18 16`},child:[]},{tag:`path`,attr:{d:`M2 12H22`},child:[]}]})(e)}function pe(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m18 8 4 4-4 4`},child:[]},{tag:`path`,attr:{d:`M2 12h20`},child:[]},{tag:`path`,attr:{d:`m6 8-4 4 4 4`},child:[]}]})(e)}function me(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`},child:[]}]})(e)}function he(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`},child:[]},{tag:`line`,attr:{x1:`8`,x2:`16`,y1:`21`,y2:`21`},child:[]},{tag:`line`,attr:{x1:`12`,x2:`12`,y1:`17`,y2:`21`},child:[]}]})(e)}function ge(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 12h14`},child:[]}]})(e)}function _e(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`polyline`,attr:{points:`4 14 10 14 10 20`},child:[]},{tag:`polyline`,attr:{points:`20 10 14 10 14 4`},child:[]},{tag:`line`,attr:{x1:`14`,x2:`21`,y1:`10`,y2:`3`},child:[]},{tag:`line`,attr:{x1:`3`,x2:`10`,y1:`21`,y2:`14`},child:[]}]})(e)}function ve(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z`},child:[]},{tag:`path`,attr:{d:`M19 10v2a7 7 0 0 1-14 0v-2`},child:[]},{tag:`line`,attr:{x1:`12`,x2:`12`,y1:`19`,y2:`22`},child:[]}]})(e)}function ye(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z`},child:[]},{tag:`path`,attr:{d:`M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1`},child:[]}]})(e)}function be(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`},child:[]}]})(e)}function xe(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7.9 20A9 9 0 1 0 4 16.1L2 22Z`},child:[]}]})(e)}function Se(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M8 3H5a2 2 0 0 0-2 2v3`},child:[]},{tag:`path`,attr:{d:`M21 8V5a2 2 0 0 0-2-2h-3`},child:[]},{tag:`path`,attr:{d:`M3 16v3a2 2 0 0 0 2 2h3`},child:[]},{tag:`path`,attr:{d:`M16 21h3a2 2 0 0 0 2-2v-3`},child:[]}]})(e)}function Ce(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`polyline`,attr:{points:`15 3 21 3 21 9`},child:[]},{tag:`polyline`,attr:{points:`9 21 3 21 3 15`},child:[]},{tag:`line`,attr:{x1:`21`,x2:`14`,y1:`3`,y2:`10`},child:[]},{tag:`line`,attr:{x1:`3`,x2:`10`,y1:`21`,y2:`14`},child:[]}]})(e)}function we(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`},child:[]},{tag:`path`,attr:{d:`M7 11V7a5 5 0 0 1 10 0v4`},child:[]}]})(e)}function Te(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`},child:[]},{tag:`path`,attr:{d:`M7 11V7a5 5 0 0 1 9.9-1`},child:[]}]})(e)}function Ee(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 12h.01`},child:[]},{tag:`path`,attr:{d:`M3 18h.01`},child:[]},{tag:`path`,attr:{d:`M3 6h.01`},child:[]},{tag:`path`,attr:{d:`M8 12h13`},child:[]},{tag:`path`,attr:{d:`M8 18h13`},child:[]},{tag:`path`,attr:{d:`M8 6h13`},child:[]}]})(e)}function De(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M21 12h-8`},child:[]},{tag:`path`,attr:{d:`M21 6H8`},child:[]},{tag:`path`,attr:{d:`M21 18h-8`},child:[]},{tag:`path`,attr:{d:`M3 6v4c0 1.1.9 2 2 2h3`},child:[]},{tag:`path`,attr:{d:`M3 10v6c0 1.1.9 2 2 2h3`},child:[]}]})(e)}function Oe(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M21 6H3`},child:[]},{tag:`path`,attr:{d:`M7 12H3`},child:[]},{tag:`path`,attr:{d:`M7 18H3`},child:[]},{tag:`path`,attr:{d:`M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14`},child:[]},{tag:`path`,attr:{d:`M11 10v4h4`},child:[]}]})(e)}function ke(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M9 17H7A5 5 0 0 1 7 7h2`},child:[]},{tag:`path`,attr:{d:`M15 7h2a5 5 0 1 1 0 10h-2`},child:[]},{tag:`line`,attr:{x1:`8`,x2:`16`,y1:`12`,y2:`12`},child:[]}]})(e)}function Ae(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`},child:[]},{tag:`path`,attr:{d:`M9 18h6`},child:[]},{tag:`path`,attr:{d:`M10 22h4`},child:[]}]})(e)}function je(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`10`},child:[]},{tag:`path`,attr:{d:`m4.93 4.93 4.24 4.24`},child:[]},{tag:`path`,attr:{d:`m14.83 9.17 4.24-4.24`},child:[]},{tag:`path`,attr:{d:`m14.83 14.83 4.24 4.24`},child:[]},{tag:`path`,attr:{d:`m9.17 14.83-4.24 4.24`},child:[]},{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`4`},child:[]}]})(e)}function Me(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z`},child:[]},{tag:`path`,attr:{d:`m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65`},child:[]},{tag:`path`,attr:{d:`m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65`},child:[]}]})(e)}function Ne(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m5 8 6 6`},child:[]},{tag:`path`,attr:{d:`m4 14 6-6 2-3`},child:[]},{tag:`path`,attr:{d:`M2 5h12`},child:[]},{tag:`path`,attr:{d:`M7 2h1`},child:[]},{tag:`path`,attr:{d:`m22 22-5-10-5 10`},child:[]},{tag:`path`,attr:{d:`M14 18h6`},child:[]}]})(e)}function Pe(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10 8h.01`},child:[]},{tag:`path`,attr:{d:`M12 12h.01`},child:[]},{tag:`path`,attr:{d:`M14 8h.01`},child:[]},{tag:`path`,attr:{d:`M16 12h.01`},child:[]},{tag:`path`,attr:{d:`M18 8h.01`},child:[]},{tag:`path`,attr:{d:`M6 8h.01`},child:[]},{tag:`path`,attr:{d:`M7 16h10`},child:[]},{tag:`path`,attr:{d:`M8 12h.01`},child:[]},{tag:`rect`,attr:{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`},child:[]}]})(e)}function Fe(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`},child:[]},{tag:`path`,attr:{d:`m21 2-9.6 9.6`},child:[]},{tag:`circle`,attr:{cx:`7.5`,cy:`15.5`,r:`5.5`},child:[]}]})(e)}function Ie(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`},child:[]},{tag:`circle`,attr:{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`},child:[]}]})(e)}function Le(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`9`,cy:`12`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`9`,cy:`5`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`9`,cy:`19`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`15`,cy:`12`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`15`,cy:`5`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`15`,cy:`19`,r:`1`},child:[]}]})(e)}function Re(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`9`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`19`,cy:`9`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`5`,cy:`9`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`12`,cy:`15`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`19`,cy:`15`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`5`,cy:`15`,r:`1`},child:[]}]})(e)}function ze(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`10`},child:[]},{tag:`path`,attr:{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`},child:[]},{tag:`path`,attr:{d:`M2 12h20`},child:[]}]})(e)}function Be(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4`},child:[]},{tag:`path`,attr:{d:`M9 18c-4.51 2-5-2-7-2`},child:[]}]})(e)}function Ve(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m12 14 4-4`},child:[]},{tag:`path`,attr:{d:`M3.34 19a10 10 0 1 1 17.32 0`},child:[]}]})(e)}function He(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`},child:[]},{tag:`path`,attr:{d:`M2 10h20`},child:[]}]})(e)}function Ue(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2`},child:[]},{tag:`path`,attr:{d:`M8.5 2h7`},child:[]},{tag:`path`,attr:{d:`M7 16h10`},child:[]}]})(e)}function We(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z`},child:[]}]})(e)}function Ge(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z`},child:[]},{tag:`line`,attr:{x1:`4`,x2:`4`,y1:`22`,y2:`15`},child:[]}]})(e)}function Ke(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`polygon`,attr:{points:`22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3`},child:[]}]})(e)}function qe(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`},child:[]},{tag:`path`,attr:{d:`M14 2v4a2 2 0 0 0 2 2h4`},child:[]},{tag:`path`,attr:{d:`M10 9H8`},child:[]},{tag:`path`,attr:{d:`M16 13H8`},child:[]},{tag:`path`,attr:{d:`M16 17H8`},child:[]}]})(e)}function Je(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`},child:[]},{tag:`path`,attr:{d:`M14 2v4a2 2 0 0 0 2 2h4`},child:[]},{tag:`path`,attr:{d:`M9 15h6`},child:[]},{tag:`path`,attr:{d:`M12 18v-6`},child:[]}]})(e)}function Ye(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10 12.5 8 15l2 2.5`},child:[]},{tag:`path`,attr:{d:`m14 12.5 2 2.5-2 2.5`},child:[]},{tag:`path`,attr:{d:`M14 2v4a2 2 0 0 0 2 2h4`},child:[]},{tag:`path`,attr:{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z`},child:[]}]})(e)}function Xe(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`},child:[]},{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`3`},child:[]}]})(e)}function Ze(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`},child:[]},{tag:`path`,attr:{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`},child:[]},{tag:`path`,attr:{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`},child:[]},{tag:`path`,attr:{d:`m2 2 20 20`},child:[]}]})(e)}function Qe(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M15 3h6v6`},child:[]},{tag:`path`,attr:{d:`M10 14 21 3`},child:[]},{tag:`path`,attr:{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`},child:[]}]})(e)}function $e(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21`},child:[]},{tag:`path`,attr:{d:`M22 21H7`},child:[]},{tag:`path`,attr:{d:`m5 11 9 9`},child:[]}]})(e)}function et(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`19`,cy:`12`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`5`,cy:`12`,r:`1`},child:[]}]})(e)}function tt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`12`,cy:`5`,r:`1`},child:[]},{tag:`circle`,attr:{cx:`12`,cy:`19`,r:`1`},child:[]}]})(e)}function nt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`12`,height:`12`,x:`2`,y:`10`,rx:`2`,ry:`2`},child:[]},{tag:`path`,attr:{d:`m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6`},child:[]},{tag:`path`,attr:{d:`M6 18h.01`},child:[]},{tag:`path`,attr:{d:`M10 14h.01`},child:[]},{tag:`path`,attr:{d:`M15 6h.01`},child:[]},{tag:`path`,attr:{d:`M18 9h.01`},child:[]}]})(e)}function rt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`ellipse`,attr:{cx:`12`,cy:`5`,rx:`9`,ry:`3`},child:[]},{tag:`path`,attr:{d:`M3 5V19A9 3 0 0 0 21 19V5`},child:[]},{tag:`path`,attr:{d:`M3 12A9 3 0 0 0 21 12`},child:[]}]})(e)}function it(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`polyline`,attr:{points:`15 10 20 15 15 20`},child:[]},{tag:`path`,attr:{d:`M4 4v7a4 4 0 0 0 4 4h12`},child:[]}]})(e)}function at(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`},child:[]},{tag:`path`,attr:{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`},child:[]}]})(e)}function ot(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`line`,attr:{x1:`15`,x2:`15`,y1:`12`,y2:`18`},child:[]},{tag:`line`,attr:{x1:`12`,x2:`18`,y1:`15`,y2:`15`},child:[]},{tag:`rect`,attr:{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`},child:[]},{tag:`path`,attr:{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`},child:[]}]})(e)}function st(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`},child:[]},{tag:`path`,attr:{d:`M9 3v18`},child:[]},{tag:`path`,attr:{d:`M15 3v18`},child:[]}]})(e)}function ct(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`},child:[]},{tag:`path`,attr:{d:`M12 3v18`},child:[]}]})(e)}function lt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`polyline`,attr:{points:`16 18 22 12 16 6`},child:[]},{tag:`polyline`,attr:{points:`8 6 2 12 8 18`},child:[]}]})(e)}function ut(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`10`},child:[]},{tag:`polyline`,attr:{points:`12 6 12 12 16 14`},child:[]}]})(e)}function dt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`},child:[]},{tag:`path`,attr:{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`},child:[]},{tag:`path`,attr:{d:`m9 14 2 2 4-4`},child:[]}]})(e)}function ft(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`10`},child:[]}]})(e)}function pt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`10`},child:[]},{tag:`path`,attr:{d:`m15 9-6 6`},child:[]},{tag:`path`,attr:{d:`m9 9 6 6`},child:[]}]})(e)}function mt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`10`},child:[]},{tag:`line`,attr:{x1:`9`,x2:`15`,y1:`15`,y2:`9`},child:[]}]})(e)}function ht(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`10`},child:[]},{tag:`polygon`,attr:{points:`10 8 16 12 10 16 10 8`},child:[]}]})(e)}function gt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`10`},child:[]},{tag:`path`,attr:{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`},child:[]},{tag:`path`,attr:{d:`M12 17h.01`},child:[]}]})(e)}function _t(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10.1 2.182a10 10 0 0 1 3.8 0`},child:[]},{tag:`path`,attr:{d:`M13.9 21.818a10 10 0 0 1-3.8 0`},child:[]},{tag:`path`,attr:{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`},child:[]},{tag:`path`,attr:{d:`M2.182 13.9a10 10 0 0 1 0-3.8`},child:[]},{tag:`path`,attr:{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`},child:[]},{tag:`path`,attr:{d:`M21.818 10.1a10 10 0 0 1 0 3.8`},child:[]},{tag:`path`,attr:{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`},child:[]},{tag:`path`,attr:{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`},child:[]}]})(e)}function vt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`10`},child:[]},{tag:`path`,attr:{d:`m9 12 2 2 4-4`},child:[]}]})(e)}function yt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M21.801 10A10 10 0 1 1 17 3.335`},child:[]},{tag:`path`,attr:{d:`m9 11 3 3L22 4`},child:[]}]})(e)}function bt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`circle`,attr:{cx:`12`,cy:`12`,r:`10`},child:[]},{tag:`line`,attr:{x1:`12`,x2:`12`,y1:`8`,y2:`12`},child:[]},{tag:`line`,attr:{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`},child:[]}]})(e)}function xt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m7 15 5 5 5-5`},child:[]},{tag:`path`,attr:{d:`m7 9 5-5 5 5`},child:[]}]})(e)}function St(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m7 20 5-5 5 5`},child:[]},{tag:`path`,attr:{d:`m7 4 5 5 5-5`},child:[]}]})(e)}function Ct(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m18 15-6-6-6 6`},child:[]}]})(e)}function wt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m9 18 6-6-6-6`},child:[]}]})(e)}function Tt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m6 9 6 6 6-6`},child:[]}]})(e)}function Et(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M20 6 9 17l-5-5`},child:[]}]})(e)}function Dt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M18 6 7 17l-5-5`},child:[]},{tag:`path`,attr:{d:`m22 10-7.5 7.5L13 16`},child:[]}]})(e)}function Ot(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 16v5`},child:[]},{tag:`path`,attr:{d:`M16 14v7`},child:[]},{tag:`path`,attr:{d:`M20 10v11`},child:[]},{tag:`path`,attr:{d:`m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15`},child:[]},{tag:`path`,attr:{d:`M4 18v3`},child:[]},{tag:`path`,attr:{d:`M8 14v7`},child:[]}]})(e)}function kt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10 6h8`},child:[]},{tag:`path`,attr:{d:`M12 16h6`},child:[]},{tag:`path`,attr:{d:`M3 3v16a2 2 0 0 0 2 2h16`},child:[]},{tag:`path`,attr:{d:`M8 11h7`},child:[]}]})(e)}function At(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M3 3v16a2 2 0 0 0 2 2h16`},child:[]},{tag:`path`,attr:{d:`M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z`},child:[]}]})(e)}function jt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M8 2v4`},child:[]},{tag:`path`,attr:{d:`M16 2v4`},child:[]},{tag:`rect`,attr:{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`},child:[]},{tag:`path`,attr:{d:`M3 10h18`},child:[]}]})(e)}function Mt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5`},child:[]},{tag:`path`,attr:{d:`M16 2v4`},child:[]},{tag:`path`,attr:{d:`M8 2v4`},child:[]},{tag:`path`,attr:{d:`M3 10h5`},child:[]},{tag:`path`,attr:{d:`M17.5 17.5 16 16.3V14`},child:[]},{tag:`circle`,attr:{cx:`16`,cy:`16`,r:`6`},child:[]}]})(e)}function Nt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`rect`,attr:{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,ry:`2`},child:[]},{tag:`path`,attr:{d:`M9 22v-4h6v4`},child:[]},{tag:`path`,attr:{d:`M8 6h.01`},child:[]},{tag:`path`,attr:{d:`M16 6h.01`},child:[]},{tag:`path`,attr:{d:`M12 6h.01`},child:[]},{tag:`path`,attr:{d:`M12 10h.01`},child:[]},{tag:`path`,attr:{d:`M12 14h.01`},child:[]},{tag:`path`,attr:{d:`M16 10h.01`},child:[]},{tag:`path`,attr:{d:`M16 14h.01`},child:[]},{tag:`path`,attr:{d:`M8 10h.01`},child:[]},{tag:`path`,attr:{d:`M8 14h.01`},child:[]}]})(e)}function $(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z`},child:[]},{tag:`path`,attr:{d:`M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2`},child:[]},{tag:`path`,attr:{d:`M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2`},child:[]},{tag:`path`,attr:{d:`M10 6h4`},child:[]},{tag:`path`,attr:{d:`M10 10h4`},child:[]},{tag:`path`,attr:{d:`M10 14h4`},child:[]},{tag:`path`,attr:{d:`M10 18h4`},child:[]}]})(e)}function Pt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m8 2 1.88 1.88`},child:[]},{tag:`path`,attr:{d:`M14.12 3.88 16 2`},child:[]},{tag:`path`,attr:{d:`M9 7.13v-1a3.003 3.003 0 1 1 6 0v1`},child:[]},{tag:`path`,attr:{d:`M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6`},child:[]},{tag:`path`,attr:{d:`M12 20v-9`},child:[]},{tag:`path`,attr:{d:`M6.53 9C4.6 8.8 3 7.1 3 5`},child:[]},{tag:`path`,attr:{d:`M6 13H2`},child:[]},{tag:`path`,attr:{d:`M3 21c0-2.1 1.7-3.9 3.8-4`},child:[]},{tag:`path`,attr:{d:`M20.97 5c0 2.1-1.6 3.8-3.5 4`},child:[]},{tag:`path`,attr:{d:`M22 13h-4`},child:[]},{tag:`path`,attr:{d:`M17.2 17c2.1.1 3.8 1.9 3.8 4`},child:[]}]})(e)}function Ft(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`},child:[]},{tag:`path`,attr:{d:`M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z`},child:[]},{tag:`path`,attr:{d:`M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4`},child:[]},{tag:`path`,attr:{d:`M17.599 6.5a3 3 0 0 0 .399-1.375`},child:[]},{tag:`path`,attr:{d:`M6.003 5.125A3 3 0 0 0 6.401 6.5`},child:[]},{tag:`path`,attr:{d:`M3.477 10.896a4 4 0 0 1 .585-.396`},child:[]},{tag:`path`,attr:{d:`M19.938 10.5a4 4 0 0 1 .585.396`},child:[]},{tag:`path`,attr:{d:`M6 18a4 4 0 0 1-1.967-.516`},child:[]},{tag:`path`,attr:{d:`M19.967 17.484A4 4 0 0 1 18 18`},child:[]}]})(e)}function It(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`},child:[]},{tag:`path`,attr:{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`},child:[]}]})(e)}function Lt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 8V4H8`},child:[]},{tag:`rect`,attr:{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`},child:[]},{tag:`path`,attr:{d:`M2 14h2`},child:[]},{tag:`path`,attr:{d:`M20 14h2`},child:[]},{tag:`path`,attr:{d:`M15 13v2`},child:[]},{tag:`path`,attr:{d:`M9 13v2`},child:[]}]})(e)}function Rt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M12 7v14`},child:[]},{tag:`path`,attr:{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`},child:[]}]})(e)}function zt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M10 2v8l3-3 3 3V2`},child:[]},{tag:`path`,attr:{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`},child:[]}]})(e)}function Bt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M7 7h10v10`},child:[]},{tag:`path`,attr:{d:`M7 17 17 7`},child:[]}]})(e)}function Vt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m21 16-4 4-4-4`},child:[]},{tag:`path`,attr:{d:`M17 20V4`},child:[]},{tag:`path`,attr:{d:`m3 8 4-4 4 4`},child:[]},{tag:`path`,attr:{d:`M7 4v16`},child:[]}]})(e)}function Ht(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M5 12h14`},child:[]},{tag:`path`,attr:{d:`m12 5 7 7-7 7`},child:[]}]})(e)}function Ut(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`m12 19-7-7 7-7`},child:[]},{tag:`path`,attr:{d:`M19 12H5`},child:[]}]})(e)}function Wt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M8 3 4 7l4 4`},child:[]},{tag:`path`,attr:{d:`M4 7h16`},child:[]},{tag:`path`,attr:{d:`m16 21 4-4-4-4`},child:[]},{tag:`path`,attr:{d:`M20 17H4`},child:[]}]})(e)}function Gt(e){return p({tag:`svg`,attr:{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`},child:[]}]})(e)}export{Je as $,G as $t,yt as A,p as An,_e as At,st as B,se as Bt,wt as C,x as Cn,Te as Ct,ft as D,_ as Dn,be as Dt,xt as E,v as En,xe as Et,pt as F,fe as Ft,nt as G,Q as Gt,ot as H,ae as Ht,dt as I,de as It,$e as J,X as Jt,et as K,ne as Kt,ut as L,ue as Lt,gt as M,he as Mt,ht as N,me as Nt,bt as O,g as On,ye as Ot,mt as P,pe as Pt,Ye as Q,K as Qt,lt as R,le as Rt,Tt as S,S as Sn,we as St,St as T,y as Tn,Ce as Tt,it as U,ie as Ut,at as V,oe as Vt,rt as W,re as Wt,Xe as X,J as Xt,Qe as Y,Y as Yt,Ze as Z,q as Zt,At as _,O as _n,Ae as _t,Vt as a,B as an,He as at,Et as b,w as bn,Oe as bt,Rt as c,I as cn,ze as ct,Ft as d,P as dn,Fe as dt,W as en,qe as et,Pt as f,M as fn,Ie as ft,Mt as g,D as gn,je as gt,jt as h,k as hn,Me as ht,Ht as i,z as in,Ue as it,_t as j,ge as jt,vt as k,h as kn,ve as kt,Lt as l,N as ln,Re as lt,$ as m,A as mn,Ne as mt,Ut as n,H as nn,Ge as nt,Bt as o,R as on,Ve as ot,Nt as p,j as pn,Pe as pt,tt as q,Z as qt,Wt as r,V as rn,We as rt,zt as s,L as sn,Be as st,Gt as t,U as tn,Ke as tt,It as u,F as un,Le as ut,kt as v,E as vn,ke as vt,Ct as w,b as wn,Se as wt,Dt as x,C as xn,De as xt,Ot as y,T as yn,Ee as yt,ct as z,ce as zt};
|
|
2
|
-
//# sourceMappingURL=lu-DlSq9Be4.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as e,r as t,t as n}from"./_baseEach-BGeacxUS.js";import{O as r,S as i}from"./_Uint8Array-DZ50H-2q.js";function a(e,t){var r=-1,a=i(e)?Array(e.length):[];return n(e,function(e,n,i){a[++r]=t(e,n,i)}),a}function o(n,i){return(r(n)?e:a)(n,t(i,3))}export{a as n,o as t};
|
|
2
|
-
//# sourceMappingURL=map-7tkBBrDN.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./evaluators-6oHFfk5m.js";import{c as t}from"./types-CCALFpCT.js";import{a as n}from"./normalizeComparison-BY-r_dYf.js";var r=e=>{if(!e)return[];let t=/\{\{(\w+)\}\}/g,n=new Set,r;for(;(r=t.exec(e))!==null;)n.add(r[1]);return Array.from(n)},i=e=>({url:e.url,method:e.method??`POST`,headers:e.headers,auth:e.auth,bodyTemplate:e.bodyTemplate,outputPath:e.outputPath,timeoutMs:e.timeoutMs}),a=e=>r(e).map(e=>({identifier:e,type:`str`})),o=e=>{let t=/\{\{(\w+)\}\}/g,n=new Set,r;for(;(r=t.exec(e))!==null;)n.add(r[1]);return n},s=e=>{let t=new Set;if(e.type===`prompt`)if(e.localPromptConfig)for(let n of e.localPromptConfig.messages){let e=o(n.content);for(let n of e)t.add(n)}else for(let n of e.inputs??[])t.add(n.identifier);else for(let n of e.inputs??[])t.add(n.identifier);return t},c=(e,i)=>{let a=[],o=s(e),c=e.mappings[i]??{},l=e.localPromptConfig?.inputs??e.inputs??[],u=new Set(l.map(e=>e.identifier)),d=e.type===`agent`&&`agentType`in e&&e.agentType===`http`,f=e.type===`evaluator`,p=f?n(e):void 0;if(p)return p.variants.filter(Boolean).length<2&&a.push({fieldId:`variants`,fieldName:`Variants`,isRequired:!0}),t(p)||a.push({fieldId:`goldenField`,fieldName:`Golden field`,isRequired:!0}),{isValid:a.length===0,missingMappings:a};if(f){let t=e.inputs??[],n=!1,r=0;for(let e of t)c[e.identifier]===void 0?e.optional||(r++,a.push({fieldId:e.identifier,fieldName:e.identifier,isRequired:!0})):n=!0;return{isValid:r===0&&(t.length===0||n),missingMappings:a}}if(d){let t=r(e.httpConfig?.bodyTemplate),n=new Set(t.length>0?t:l.map(e=>e.identifier)),i=Object.entries(c).some(([e,t])=>t!==void 0&&n.has(e));for(let e of n)c[e]===void 0&&a.push({fieldId:e,fieldName:e,isRequired:!1});return{isValid:n.size===0||i,missingMappings:a}}let m=e.type===`prompt`&&!e.localPromptConfig;for(let e of o)u.has(e)&&c[e]===void 0&&a.push({fieldId:e,fieldName:e,isRequired:!m});return{isValid:a.filter(e=>e.isRequired).length===0,missingMappings:a}},l=(e,t)=>{let{missingMappings:n}=c(e,t);return n.length>0},u=(e,t,n)=>{let r=[...e,...t],i=!1,a=[];for(let t of r){let r=n[t];r&&(r.type===`value`||r.type===`source`&&r.path&&r.path.length>0)?i=!0:e.includes(t)&&a.push(t)}return{isValid:a.length===0&&(r.length===0||i),hasAnyMapping:i,missingRequiredFields:a}},d=(e,t,n)=>u(e,t,n),f=(r,i,a)=>{let o=[],s=r.mappings[i]?.[a]??{},c=n(r);if(c)return c.variants.filter(Boolean).length<2&&o.push({fieldId:`variants`,fieldName:`Variants`,isRequired:!0}),t(c)||o.push({fieldId:`goldenField`,fieldName:`Golden field`,isRequired:!0}),{isValid:o.length===0,missingMappings:o};let l=e[r.evaluatorType],u=l?.requiredFields??[],d=l?.optionalFields??[],f=new Set(u),p=new Set(d),m=!1,h=0;for(let e of r.inputs)if(s[e.identifier]!==void 0)m=!0;else{let t=f.has(e.identifier),n=p.has(e.identifier);t?(h++,o.push({fieldId:e.identifier,fieldName:e.identifier,isRequired:!0})):n||(h++,o.push({fieldId:e.identifier,fieldName:e.identifier,isRequired:!0}))}let g=r.inputs.length;return{isValid:h===0&&(g===0||m),missingMappings:o}},p=(e,t,n)=>{let{isValid:r}=f(e,t,n);return!r},m=(e,t,n)=>{for(let r of e){let e=c(r,n);if(!e.isValid)return{isValid:!1,firstInvalidTarget:{target:r,missingMappings:e.missingMappings}};for(let e of t){let t=f(e,n,r.id);if(!t.isValid)return{isValid:!1,firstInvalidEvaluator:{evaluator:e,targetId:r.id,missingMappings:t.missingMappings}}}}return{isValid:!0}};export{m as a,d as i,f as n,a as o,l as r,i as s,p as t};
|
|
2
|
-
//# sourceMappingURL=mappingValidation-C-AT88B0.js.map
|
|
@@ -1,7 +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,fn as i,i as a,n as o}from"./portal-Sdfvrza9.js";import{t as s}from"./jsx-runtime-CFwixLRt.js";import{t as c}from"./skeleton-0JSrjbwm.js";import{t as l}from"./heading-C0sACr0w.js";import{n as u,t as d}from"./v-stack-hkuSkmCA.js";import{Nn as f,Sn as p,Yn as m}from"./ProjectAvatar-DtI9dT1f.js";import{t as h}from"./badge-Cpc3eA-C.js";import{t as g}from"./tooltip-gjZ4s2dt.js";import{a as _,c as v,n as y,o as b,s as x}from"./toaster-BsYkODqs.js";import{lt as S,q as C,t as w}from"./Markdown-C9extmbX.js";import{t as T}from"./icon-D6xQEiPb.js";import{W as E}from"./DashboardLayout-BhHe0vIT.js";import{i as D,r as O,t as k}from"./alert-CPsXih3K.js";import{t as A}from"./icon-button-Wlb_dGXL.js";import{a as ee,i as te,l as ne,r as re,s as ie,u as ae}from"./personalProject-DMRX2-SI.js";import{p as oe,r as se}from"./errors-e711UMq7.js";import{t as j}from"./spacer-C38e7o6r.js";import{$ as M,Y as ce,et as N,s as le}from"./immer-CFru3D02.js";import{n as P}from"./api-l6Cnm0vQ.js";import{S as ue,a as de,i as fe,l as pe,o as me,t as he,v as ge}from"./IntegratePaneShell-BpcA5j4P.js";import{c as _e,i as ve,n as ye}from"./toolIcons-DmISNQ_S.js";import{t as be}from"./boxes-BujxgyKh.js";import{t as xe}from"./eye-off-C1m7ZwkW.js";import{t as Se}from"./webhook-BotkB9Wo.js";import{t as Ce}from"./wrench-CsslJe-Z.js";import{t as F}from"./usePublicEnv-ue4-Igop.js";import{r as we}from"./next-router-CWLrMXvP.js";import{Zt as Te,i as Ee}from"./lu-DlSq9Be4.js";import{Kn as De,Mr as Oe,Pt as ke,St as I,Vt as Ae,Wn as je,t as L,xt as Me,yr as R}from"./index-CPtTUYLD.js";import{t as Ne}from"./next-head-B6Im7q_p.js";import{t as Pe}from"./WithFeatureFlagGuard-OePuXWRG.js";import{i as Fe,n as Ie}from"./lib-epD9Y2nV.js";import{t as Le}from"./SetupWithAgentButton-Bhxb1yOj.js";import{t as Re}from"./mesh-gradient-DbHQhAbD.js";import{t as z}from"./formatBudgetUsd-BYb25IkY.js";import{t as ze}from"./MyLayout-DCMYTSgX.js";import{t as Be}from"./usePersonalContext-CggG6KVI.js";import{t as Ve}from"./InstallCliCard-CJKSPLJ_.js";var B=e(t()),V=e(p()),H=s(),He=[`#b45309`,`#ea580c`,`#7c3aed`,`#fff7ed`],Ue=[`#78350f`,`#7c2d12`,`#4c1d95`,`#1a1206`];function We(){let e=Me();return(0,H.jsxs)(r,{position:`relative`,width:`full`,borderRadius:`xl`,overflow:`hidden`,color:`white`,boxShadow:`0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.18)`,minHeight:{base:`180px`,md:`190px`},display:`flex`,alignItems:`center`,children:[(0,H.jsx)(r,{position:`absolute`,inset:0,pointerEvents:`none`,children:(0,H.jsx)(Re,{colors:ke(He,Ue),distortion:.85,swirl:.6,grainMixer:.15,grainOverlay:.18,speed:e?0:.45,scale:1.2,style:{width:`100%`,height:`100%`}})}),(0,H.jsx)(r,{position:`absolute`,inset:0,pointerEvents:`none`,backgroundImage:`linear-gradient(120deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.06) 55%, rgba(0,0,0,0) 100%)`}),(0,H.jsxs)(o,{position:`relative`,zIndex:1,align:`center`,gap:{base:4,md:6},paddingLeft:{base:5,md:7},paddingRight:{base:5,md:7},paddingY:{base:6,md:7},width:`full`,children:[(0,H.jsx)(r,{flexShrink:0,display:`flex`,alignItems:`center`,justifyContent:`center`,boxSize:`44px`,borderRadius:`full`,bg:`white/20`,boxShadow:`inset 0 0 0 1px rgba(255,255,255,0.35)`,children:(0,H.jsx)(T,{as:Te,boxSize:5,color:`white`})}),(0,H.jsxs)(d,{align:`start`,gap:1.5,flex:1,minWidth:0,children:[(0,H.jsx)(l,{as:`h2`,size:`md`,color:`white`,letterSpacing:`-0.01em`,lineHeight:1.2,children:`Getting started with LangWatch AI Governance`}),(0,H.jsx)(u,{textStyle:`sm`,color:`white/90`,lineHeight:1.5,children:`Publish a curated catalog of AI tools so your team installs Claude Code, Codex, Gemini, and your model providers in one click, with virtual keys, spend controls, and usage visibility built in.`}),(0,H.jsx)(o,{gap:2,marginTop:1.5,children:(0,H.jsx)(a,{asChild:!0,size:`sm`,bg:`white`,color:`orange.700`,fontWeight:`600`,paddingX:4,boxShadow:`0 1px 2px rgba(0,0,0,0.12)`,_hover:{bg:`white/90`,transform:`translateY(-1px)`},_active:{bg:`white/80`,transform:`translateY(0)`},transition:`background-color 0.12s ease, transform 0.12s ease`,children:(0,H.jsxs)(L,{href:`/settings/governance/tool-catalog`,children:[`Add your first tools`,(0,H.jsx)(T,{as:Ee,boxSize:3.5,marginLeft:1})]})})})]})]})]})}var Ge={coding_assistant:(0,H.jsx)(R,{size:18}),model_provider:(0,H.jsx)(be,{size:18}),external_tool:(0,H.jsx)(Ce,{size:18})},Ke=`preset:`,qe=`data:`;function Je(e,t){if(e.startsWith(qe))return{kind:`image`,url:e,darkModeInvert:!1};let n=ve(e);if(n){let e=ye[n].Icon;return{kind:`node`,node:(0,H.jsx)(e,{size:t-10})}}if(e.startsWith(Ke)){let t=e.slice(7);if(t===`custom`)return null;let n=_e[t];return n?.iconUrl?{kind:`image`,url:n.iconUrl,darkModeInvert:n.darkModeInvert}:null}return null}function U({iconAsset:e,iconKey:t,type:n,size:i=28}){let a=e?Je(e,i):null,o;return o=a?.kind===`image`?(0,H.jsx)(S,{src:a.url,alt:``,width:`${i-8}px`,height:`${i-8}px`,objectFit:`contain`,_dark:a.darkModeInvert?{filter:`invert(1) hue-rotate(180deg)`}:void 0}):a?.kind===`node`?a.node:t?le[t]??Ge[n]:Ge[n],(0,H.jsx)(r,{width:`${i}px`,height:`${i}px`,flexShrink:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`fg.muted`,borderRadius:`sm`,backgroundColor:`bg.subtle`,padding:1,children:o})}function Ye({displayName:e,config:t,iconAsset:n,iconKey:i}){let[s,c]=(0,B.useState)(!1),[l,f]=(0,B.useState)(!1),p=F(),m=!!p.data?.IS_SAAS,h=p.data?.BASE_HOST??`https://app.langwatch.ai`;return(0,H.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:4,width:`full`,children:[(0,H.jsxs)(o,{cursor:`pointer`,onClick:()=>c(!s),gap:3,children:[(0,H.jsx)(U,{iconAsset:n,iconKey:i,type:`coding_assistant`}),(0,H.jsxs)(d,{align:`start`,gap:0,flex:1,children:[(0,H.jsx)(u,{fontSize:`sm`,fontWeight:`semibold`,children:e}),(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,children:`Coding assistant`})]}),s?(0,H.jsx)(N,{size:16}):(0,H.jsx)(M,{size:16})]}),s&&(0,H.jsxs)(d,{align:`stretch`,gap:3,marginTop:4,children:[!m&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(u,{fontSize:`sm`,color:`fg.muted`,children:`First point the CLI at this instance and sign in:`}),(0,H.jsx)(Xe,{command:`langwatch login --endpoint ${h}`})]}),(0,H.jsx)(u,{fontSize:`sm`,color:`fg.muted`,children:m?`Run this in your terminal:`:`Then run:`}),(0,H.jsx)(Xe,{command:t.setupCommand}),t.helperText&&(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,children:t.helperText}),(0,H.jsxs)(o,{gap:2,fontSize:`xs`,color:`fg.muted`,children:[(0,H.jsx)(u,{children:`New to LangWatch?`}),(0,H.jsx)(a,{size:`xs`,variant:`outline`,onClick:()=>f(!0),children:`Setup guide`})]})]}),(0,H.jsx)(I.Root,{open:l,onOpenChange:e=>f(e.open),size:`md`,modal:!0,children:(0,H.jsxs)(I.Content,{children:[(0,H.jsxs)(I.Header,{children:[(0,H.jsx)(I.Title,{children:`Set up LangWatch`}),(0,H.jsx)(I.CloseTrigger,{})]}),(0,H.jsx)(I.Body,{paddingBottom:6,children:(0,H.jsx)(Ve,{})})]})})]})}function Xe({command:e}){let[t,n]=(0,B.useState)(!1);return(0,H.jsxs)(o,{gap:2,padding:2,borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`sm`,backgroundColor:`bg.subtle`,alignItems:`flex-start`,children:[(0,H.jsxs)(o,{gap:1.5,flex:1,minWidth:0,alignItems:`baseline`,children:[(0,H.jsx)(u,{as:`span`,fontFamily:`mono`,fontSize:`sm`,color:{base:`gray.300`,_dark:`gray.600`},userSelect:`none`,flexShrink:0,"aria-hidden":`true`,marginLeft:1,children:`$`}),(0,H.jsx)(m,{backgroundColor:`transparent`,fontSize:`sm`,whiteSpace:`pre-wrap`,overflowWrap:`anywhere`,children:e})]}),(0,H.jsx)(A,{size:`xs`,variant:`ghost`,"aria-label":t?`Copied`:`Copy command`,onClick:()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),1500)},flexShrink:0,children:t?(0,H.jsx)(x,{size:14}):(0,H.jsx)(b,{size:14})})]})}function Ze({displayName:e,config:t,iconAsset:n,iconKey:i}){let[s,c]=(0,B.useState)(!1);return(0,H.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:4,width:`full`,children:[(0,H.jsxs)(o,{cursor:`pointer`,onClick:()=>c(!s),gap:3,children:[(0,H.jsx)(U,{iconAsset:n,iconKey:i,type:`external_tool`}),(0,H.jsxs)(d,{align:`start`,gap:0,flex:1,children:[(0,H.jsx)(u,{fontSize:`sm`,fontWeight:`semibold`,children:e}),(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,children:`Internal tool`})]}),s?(0,H.jsx)(N,{size:16}):(0,H.jsx)(M,{size:16})]}),s&&(0,H.jsxs)(d,{align:`stretch`,gap:3,marginTop:4,children:[(0,H.jsx)(r,{fontSize:`sm`,color:`fg.default`,css:{"& p":{marginBottom:`0.5rem`}},children:(0,H.jsx)(w,{children:t.descriptionMarkdown})}),(0,H.jsx)(a,{size:`sm`,variant:`outline`,asChild:!0,alignSelf:`start`,children:(0,H.jsxs)(`a`,{href:t.linkUrl,target:`_blank`,rel:`noopener noreferrer`,children:[(0,H.jsx)(_,{size:14}),` `,t.ctaLabel??`Open ${e}`]})})]})]})}function Qe(e){return e?e.trim().toLowerCase().replace(/\s+/g,`-`).replace(/[^a-z0-9_-]/g,``).replace(/^[^a-z0-9]+/,``):``}var $e=[`a`,`e`,`i`,`o`,`u`];function W(e){let t=e.trim().charAt(0).toLowerCase();return $e.includes(t)?`an`:`a`}function et(e){let t=e.trim();if(!t.startsWith(`[`)&&!t.startsWith(`{`))return e;try{let n=JSON.parse(t),r=(Array.isArray(n)?n:[n]).map(e=>typeof e?.message==`string`?e.message:null).filter(e=>!!e);return r.length?r.join(`. `):e}catch{return e}}function tt({displayName:e,config:t,organizationId:n,iconAsset:i,iconKey:s,providerConfigured:c=!0}){let[l,f]=(0,B.useState)(!1),[p,h]=(0,B.useState)(Qe(t.defaultLabel)),[g,_]=(0,B.useState)(null),[v,y]=(0,B.useState)(!1),[S,w]=(0,B.useState)(!1),[T,E]=(0,B.useState)(null),D=P.personalVirtualKeys.issuePersonal.useMutation({onSuccess:e=>{_({label:e.label,secret:e.secret,baseUrl:e.baseUrl}),E(null)},onError:e=>{E(et(e.message))}}),O=()=>{!p.trim()||!n||(E(null),D.mutate({organizationId:n,label:p.trim(),routingPolicyId:t.suggestedRoutingPolicyId}))},k=D.isPending;return(0,H.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:4,width:`full`,children:[(0,H.jsxs)(o,{cursor:`pointer`,onClick:()=>f(!l),gap:3,children:[(0,H.jsx)(U,{iconAsset:i,iconKey:s??t.providerKey,type:`model_provider`}),(0,H.jsxs)(d,{align:`start`,gap:0,flex:1,children:[(0,H.jsx)(u,{fontSize:`sm`,fontWeight:`semibold`,children:e}),(0,H.jsx)(u,{fontSize:`xs`,color:c?`fg.muted`:`orange.700`,children:c?`Issue your own virtual key`:`Provider not configured`})]}),l?(0,H.jsx)(N,{size:16}):(0,H.jsx)(M,{size:16})]}),l&&!c&&(0,H.jsxs)(r,{marginTop:4,padding:3,borderWidth:`1px`,borderColor:`orange.200`,borderRadius:`sm`,backgroundColor:`orange.50`,children:[(0,H.jsxs)(u,{fontSize:`sm`,color:`orange.900`,marginBottom:2,children:[`Your organization doesn't have `,W(e),` `,e,` credential configured yet, so issuing a key here would mint a VK that fails on first call with`,` `,(0,H.jsx)(m,{fontSize:`xs`,backgroundColor:`transparent`,children:`provider_error`}),`.`]}),(0,H.jsxs)(u,{fontSize:`xs`,color:`orange.800`,children:[`Ask your organization admin to add `,W(e),` `,e,` provider in`,` `,(0,H.jsx)(L,{href:`/settings/model-providers`,color:`orange.800`,fontWeight:`medium`,textDecoration:`underline`,children:`Settings → Model Providers`}),`. They'll also need to bind it into the`,` `,(0,H.jsx)(L,{href:`/settings/routing-policies`,color:`orange.800`,fontWeight:`medium`,textDecoration:`underline`,children:`default routing policy`}),` `,`so personal keys can route to it.`]})]}),l&&c&&!g&&(0,H.jsxs)(d,{align:`stretch`,gap:3,marginTop:4,children:[(0,H.jsxs)(u,{fontSize:`sm`,fontWeight:`medium`,children:[`Issue `,W(e),` `,e,` virtual key`]}),t.projectSuggestionText&&(0,H.jsx)(r,{padding:3,borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`sm`,backgroundColor:`bg.subtle`,children:(0,H.jsxs)(u,{fontSize:`xs`,color:`fg.muted`,children:[`💡 `,t.projectSuggestionText]})}),(0,H.jsxs)(d,{align:`stretch`,gap:1,children:[(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,children:`Label`}),(0,H.jsx)(Oe,{size:`sm`,placeholder:`my-app`,value:p,onChange:e=>h(e.target.value),disabled:k})]}),(0,H.jsxs)(o,{gap:2,children:[(0,H.jsx)(a,{size:`sm`,onClick:O,disabled:!p.trim()||k,children:k?`Issuing…`:`Issue key`}),(0,H.jsx)(a,{size:`sm`,variant:`ghost`,onClick:()=>f(!1),children:`Cancel`})]}),T&&(0,H.jsx)(r,{padding:2,borderWidth:`1px`,borderColor:`red.300`,borderRadius:`sm`,backgroundColor:`red.50`,children:(0,H.jsx)(u,{fontSize:`xs`,color:`red.700`,children:T})})]}),l&&g&&(0,H.jsxs)(d,{align:`stretch`,gap:3,marginTop:4,children:[(0,H.jsxs)(u,{fontSize:`sm`,fontWeight:`medium`,color:`green.fg`,children:[`✅ `,e,` key issued`]}),(0,H.jsxs)(d,{align:`stretch`,gap:1,children:[(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,children:`Label`}),(0,H.jsx)(u,{fontSize:`sm`,children:g.label})]}),(0,H.jsxs)(d,{align:`stretch`,gap:1,children:[(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,children:`Secret (shown once — copy now)`}),(0,H.jsxs)(o,{gap:2,padding:2,borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`sm`,backgroundColor:`bg.subtle`,children:[(0,H.jsx)(m,{flex:1,backgroundColor:`transparent`,fontSize:`sm`,children:v?g.secret:g.secret.slice(0,14)+`…`}),(0,H.jsx)(A,{size:`xs`,variant:`ghost`,"aria-label":v?`Hide secret`:`Reveal secret`,onClick:()=>y(!v),children:v?(0,H.jsx)(xe,{size:14}):(0,H.jsx)(C,{size:14})}),(0,H.jsx)(A,{size:`xs`,variant:`ghost`,"aria-label":S?`Copied`:`Copy secret`,onClick:()=>{g&&(navigator.clipboard.writeText(g.secret),w(!0),setTimeout(()=>w(!1),1500))},children:S?(0,H.jsx)(x,{size:14}):(0,H.jsx)(b,{size:14})})]})]}),(0,H.jsxs)(d,{align:`stretch`,gap:1,children:[(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,children:`Base URL`}),(0,H.jsx)(m,{fontSize:`sm`,padding:2,borderRadius:`sm`,children:g.baseUrl})]}),(0,H.jsx)(a,{size:`xs`,variant:`ghost`,onClick:()=>{_(null),h(Qe(t.defaultLabel)),y(!1),E(null)},alignSelf:`end`,children:`Issue another`})]})]})}var nt={coding_assistant:`Coding assistants`,model_provider:`Model providers (issue your own virtual key)`,external_tool:`Internal tools`},G=[`coding_assistant`,`model_provider`,`external_tool`];function rt(){let{organization:e,hasPermission:t}=Ae({redirectToOnboarding:!1}),n=e?.id??``,i=t(`aiTools:manage`),a=P.aiTools.list.useQuery({organizationId:n},{enabled:!!n,refetchOnWindowFocus:!1}),o=P.aiTools.providerAvailability.useQuery({organizationId:n},{enabled:!!n,refetchOnWindowFocus:!1}),s=(0,B.useMemo)(()=>o.data?new Set(o.data.configuredProviders):void 0,[o.data]),p=a.data??[],m=(0,B.useMemo)(()=>{let e={coding_assistant:[],model_provider:[],external_tool:[]};for(let t of p)t.enabled&&e[t.type].push(t);for(let t of G)e[t].sort((e,t)=>e.order-t.order);return e},[p]),h=p.filter(e=>e.enabled).length;return a.isLoading?(0,H.jsx)(d,{align:`stretch`,gap:6,width:`full`,children:G.map(e=>(0,H.jsxs)(d,{align:`stretch`,gap:3,children:[(0,H.jsx)(c,{height:`14px`,width:`180px`}),(0,H.jsx)(f,{columns:{base:1,md:2,lg:3},gap:3,children:Array.from({length:3}).map((e,t)=>(0,H.jsx)(c,{height:`60px`,borderRadius:`md`},t))})]},e))}):h===0?i?(0,H.jsx)(We,{}):(0,H.jsx)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:6,backgroundColor:`bg.subtle`,width:`full`,children:(0,H.jsxs)(d,{align:`start`,gap:2,children:[(0,H.jsx)(l,{as:`h3`,size:`md`,children:`Your AI tools portal`}),(0,H.jsx)(u,{fontSize:`sm`,color:`fg.muted`,children:`Your admin hasn't added any AI tools to your portal yet. Check back once they publish your team's coding assistants and model providers.`})]})}):(0,H.jsx)(d,{align:`stretch`,gap:6,width:`full`,children:G.map(e=>{let t=m[e];return t.length===0?null:(0,H.jsxs)(d,{align:`stretch`,gap:3,children:[(0,H.jsx)(l,{as:`h3`,size:`sm`,color:`fg.muted`,children:nt[e]}),(0,H.jsx)(f,{columns:{base:1,md:2,lg:3},gap:3,children:t.map(e=>(0,H.jsx)(it,{entry:e,orgId:n,configuredProviders:s},e.id))})]},e)})})}function it({entry:e,orgId:t,configuredProviders:n}){switch(e.type){case`coding_assistant`:return(0,H.jsx)(Ye,{displayName:e.displayName,config:e.config,iconAsset:e.iconAsset,iconKey:e.iconKey});case`model_provider`:{let r=e.config;return(0,H.jsx)(tt,{displayName:e.displayName,config:r,organizationId:t,iconAsset:e.iconAsset,iconKey:e.iconKey,providerConfigured:n?n.has(r.providerKey):void 0})}case`external_tool`:return(0,H.jsx)(Ze,{displayName:e.displayName,config:e.config,iconAsset:e.iconAsset,iconKey:e.iconKey})}}function K(e){return/^https?:\/\//i.test(e.trim())}function at(e){return e.replace(/^mailto:/i,``)}function ot(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(at(e.trim()))}function st(e){let t=e.trim();return K(t)?t:ot(t)?`mailto:${at(t)}`:`#`}var ct={minute:`per-minute`,hour:`hourly`,day:`daily`,week:`weekly`,month:`monthly`,total:`total`,monthly:`monthly`,weekly:`weekly`,daily:`daily`,hourly:`hourly`,session:`session`},lt={user:`personal`,virtual_key:`personal`,team:`team`,project:`project`,organization:`organization`};function ut(e){return z(e)}function dt({spentUsd:e,limitUsd:t,period:n,scope:i,requestIncreaseUrl:a,adminEmail:s}){let c=ct[n.toLowerCase()]??n,l=lt[i.toLowerCase()]??i;return(0,H.jsx)(r,{role:`alert`,"aria-live":`assertive`,borderWidth:`1px`,borderColor:`red.300`,backgroundColor:`red.50`,borderRadius:`md`,padding:4,_dark:{borderColor:`red.700`,backgroundColor:`red.900`},children:(0,H.jsxs)(o,{gap:3,alignItems:`start`,children:[(0,H.jsx)(r,{color:`red.600`,paddingTop:`2px`,_dark:{color:`red.300`},children:(0,H.jsx)(v,{size:20,"aria-hidden":`true`})}),(0,H.jsxs)(d,{align:`start`,gap:2,flex:1,children:[(0,H.jsx)(u,{fontWeight:`semibold`,color:`red.700`,_dark:{color:`red.200`},children:`Budget limit reached`}),(0,H.jsxs)(u,{fontSize:`sm`,color:`red.700`,_dark:{color:`red.200`},children:[`You’ve used `,(0,H.jsx)(`strong`,{children:ut(e)}),` of your`,` `,(0,H.jsx)(`strong`,{children:ut(t)}),` `,c,` `,l,` `,`budget. New requests are being blocked until the limit resets or your admin raises it.`]}),(a||s)&&(0,H.jsxs)(o,{gap:4,fontSize:`sm`,wrap:`wrap`,children:[a&&(0,H.jsx)(L,{href:a,color:`red.700`,fontWeight:`medium`,_dark:{color:`red.200`},children:(0,H.jsxs)(o,{gap:1,children:[(0,H.jsx)(je,{size:14,"aria-hidden":`true`}),(0,H.jsx)(u,{children:`Request increase`}),(0,H.jsx)(_,{size:12,"aria-hidden":`true`})]})}),s&&(0,H.jsxs)(u,{color:`red.700`,_dark:{color:`red.200`},children:[`Admin:`,` `,K(s)||ot(s)?(0,H.jsx)(L,{href:st(s),color:`red.700`,_dark:{color:`red.200`},...K(s)&&{target:`_blank`,rel:`noreferrer`},children:s}):(0,H.jsx)(u,{as:`span`,children:s})]})]})]})]})})}function ft({projectId:e}){let t=P.codingAgents.usageTotals.useQuery({projectId:e},{refetchOnWindowFocus:!1,staleTime:6e4});if(t.isLoading)return(0,H.jsx)(f,{columns:{base:2,md:4},gap:3,children:[0,1,2,3].map(e=>(0,H.jsx)(c,{height:`64px`,borderRadius:`md`},e))});if(t.isError)return(0,H.jsx)(u,{fontSize:`sm`,color:`fg.error`,children:`Couldn't load coding-agent usage`});let n=t.data;if(!n||n.sessionCount===0)return(0,H.jsxs)(d,{align:`start`,gap:1,children:[(0,H.jsx)(u,{fontSize:`sm`,color:`fg.muted`,children:`No coding-agent usage yet`}),(0,H.jsxs)(u,{fontSize:`xs`,color:`fg.subtle`,children:[`Run`,` `,(0,H.jsx)(u,{as:`code`,fontSize:`xs`,children:`langwatch claude`}),` `,`to wire your coding agent's telemetry here.`]})]});let r=[n.linesAdded>0||n.linesRemoved>0?`${(0,V.default)(n.linesAdded).format(`0,0`)} added / ${(0,V.default)(n.linesRemoved).format(`0,0`)} removed`:null,n.commits>0?`${(0,V.default)(n.commits).format(`0,0`)} commit${n.commits===1?``:`s`}`:null,n.pullRequests>0?`${(0,V.default)(n.pullRequests).format(`0,0`)} PR${n.pullRequests===1?``:`s`}`:null].filter(e=>e!==null);return(0,H.jsxs)(d,{align:`stretch`,gap:3,children:[(0,H.jsxs)(f,{columns:{base:2,md:4},gap:3,children:[(0,H.jsx)(q,{label:`Sessions`,value:(0,V.default)(n.sessionCount).format(`0,0`)}),(0,H.jsx)(q,{label:`Cost`,value:z(n.costUsd)}),(0,H.jsx)(q,{label:`Tokens`,value:pt(n.totalTokens)}),(0,H.jsx)(q,{label:`Active time`,value:mt(n.activeTimeSec)})]}),r.length>0&&(0,H.jsxs)(u,{fontSize:`xs`,color:`fg.muted`,children:[`Produced: `,r.join(` · `)]})]})}function q({label:e,value:t}){return(0,H.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:3,backgroundColor:`bg.subtle`,children:[(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,textTransform:`uppercase`,letterSpacing:`wider`,children:e}),(0,H.jsx)(u,{fontSize:`xl`,fontWeight:`semibold`,marginTop:1,children:t})]})}function pt(e){return e<1e3?(0,V.default)(e).format(`0,0`):(0,V.default)(e).format(`0.[0]a`)}function mt(e){let t=Math.round(e);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60),i=n%60;return i>0?`${r}h ${i}m`:`${r}h`}var ht=`/ai-governance/explore-your-usage-with-your-own-agent`,gt=`Where did my tokens go? Explore my recent usage: total spend this week, the most expensive sessions and what made them expensive, and which models and tools consumed the most.`,_t="Explore my LangWatch usage and tell me where my tokens and money went.\n\nThe `langwatch` CLI works with my device login: no API key and no env vars needed. If a command says I am not logged in, have me run `langwatch login` once, then continue. `langwatch whoami` prints who I am logged in as.\n\nRead my usage with these commands (add `-o json` for machine-readable output):\n- `langwatch trace search --limit 50` lists my recent sessions with cost and token totals (`-q <text>`, `--start-date` / `--end-date` to narrow)\n- `langwatch trace get <traceId>` shows one session's full tree: models, per-span tokens, cache reads vs writes, tool calls\n- `langwatch analytics query -m total-cost --group-by metadata.model` aggregates spend over time (other presets: trace-count, user-count; raw metric paths with `-a sum|avg|p95`)\n- `langwatch trace export -f jsonl` dumps a whole window of traces when you want to crunch numbers yourself\n\nStart with the last 7 days: total spend, the most expensive sessions and what made them expensive (context size, cache misses, subagents, retries), and which models consumed the most. Then answer my follow-up questions about my own usage from the same data.";function vt({projectId:e}){return P.project.getHasFirstMessage.useQuery({projectId:e??``},{enabled:!!e,refetchOnWindowFocus:!1}).data?.firstMessage?(0,H.jsx)(Le,{triggerLabel:`Connect your agent`,langy:{prompt:gt,label:`Explore via Langy`,hint:`Ask Langy where your tokens went`},copy:{prompt:_t,label:`Explore via your coding agent`,hint:`Copy a prompt so Claude Code can inspect your own usage`,copiedTitle:`Prompt copied. Paste it into your coding agent`},docs:{href:oe(ht),label:`Read the guide`,hint:`One-time setup and the questions your agent can answer`}}):null}var yt=`me-ai-tools`,J=`me-trace-ingest`;function Y(e){typeof document>`u`||document.getElementById(e)?.scrollIntoView({behavior:`smooth`,block:`start`})}var bt={appearance:`none`,font:`inherit`,borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`lg`,padding:4,bg:`bg.panel`,width:`full`,height:`full`,textAlign:`left`,cursor:`pointer`,transition:`all 0.15s ease`,_hover:{borderColor:`orange.emphasized`,bg:`orange.subtle`,transform:`translateY(-1px)`},_active:{transform:`translateY(0)`}};function xt({icon:e,title:t,description:n}){return(0,H.jsxs)(d,{align:`start`,gap:2,children:[(0,H.jsx)(T,{as:e,boxSize:5,color:`orange.solid`}),(0,H.jsx)(u,{fontWeight:`600`,fontSize:`sm`,color:`fg`,children:t}),(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,lineHeight:`tall`,children:n})]})}var St=({icon:e,title:t,description:n,onClick:a,href:o})=>o?(0,H.jsx)(L,{href:o,display:`block`,_hover:{textDecoration:`none`},children:(0,H.jsx)(r,{...bt,children:(0,H.jsx)(xt,{icon:e,title:t,description:n})})}):(0,H.jsx)(i.button,{type:`button`,onClick:a,...bt,children:(0,H.jsx)(xt,{icon:e,title:t,description:n})});function Ct({projectSlug:e}){let t=[{icon:R,title:`Set up a coding assistant`,description:`Wire up Claude Code, Codex, Gemini or opencode in one command and your sessions land here.`,onClick:()=>Y(yt)},{icon:Se,title:`Mint an ingestion key`,description:`Drop a write-only key into any agent's OTLP exporter to stream traces straight in.`,onClick:()=>Y(J)},{icon:ce,title:`Create an API key`,description:`Authenticate the LangWatch SDK or your own integration.`,...e?{href:E}:{onClick:()=>Y(J)}}];return(0,H.jsx)(he,{isCompact:!0,ariaLabel:`Start sending your AI usage`,children:(0,H.jsxs)(d,{align:`stretch`,gap:6,children:[(0,H.jsxs)(d,{align:`start`,gap:1.5,children:[(0,H.jsx)(u,{textStyle:`2xl`,fontWeight:`600`,color:`fg`,letterSpacing:`-0.015em`,children:`No activity here yet`}),(0,H.jsx)(u,{textStyle:`sm`,color:`fg.muted`,lineHeight:`tall`,children:`Send your AI usage to LangWatch with the tools you already have set up above — no SDK wiring required.`})]}),(0,H.jsx)(f,{columns:{base:1,md:3},gap:3,children:t.map(e=>(0,H.jsx)(St,{...e},e.title))})]})})}var wt=30,Tt=10,Et=[`time`,`trace`,`origin`,`duration`,`cost`,`tokens`],Dt=[`io-preview`],Ot=100;function kt(e){return!!e.meta?.flex}function At({projectId:e,projectSlug:t}){let i=we(),a=(0,B.useMemo)(()=>{let e=Date.now();return{from:e-wt*24*60*60*1e3,to:e,live:!1}},[]),s=P.tracesV2.list.useQuery({projectId:e,timeRange:a,sort:{columnId:`time`,direction:`desc`},page:1,pageSize:Tt},{enabled:!!e,staleTime:6e4,keepPreviousData:!0}),c=(0,B.useMemo)(()=>ue(s.data),[s.data]),l=(0,B.useMemo)(()=>ge(Et).map(e=>e.id===`trace`?{...e,size:9999,maxSize:9999,meta:{...e.meta,flex:!0}}:e),[]),u=(0,B.useMemo)(()=>`${l.reduce((e,t)=>e+(kt(t)?t.minSize??Ot:t.size??t.minSize??Ot),0)}px`,[l]),d=Ie({data:c,columns:l,getCoreRowModel:Fe(),getRowId:e=>e.traceId,enableSorting:!1,enableColumnResizing:!1}),f=e=>{let n=new URLSearchParams({"drawer.open":`traceV2Details`,"drawer.traceId":e.traceId,"drawer.t":String(e.timestamp)});i.push(`/${t}/traces?${n.toString()}`)};return s.isLoading?(0,H.jsx)(o,{justify:`center`,paddingY:6,children:(0,H.jsx)(n,{size:`sm`,color:`fg.muted`})}):c.length===0?(0,H.jsx)(Ct,{projectSlug:t}):(0,H.jsx)(me,{traces:c,children:(0,H.jsx)(r,{overflowX:`auto`,width:`full`,children:(0,H.jsx)(pe,{table:d,minWidth:u,children:d.getRowModel().rows.map(e=>(0,H.jsx)(de,{tanstackRow:e,registry:fe,addons:Dt,status:e.original.status,hoverScope:`unified`,rowDomId:e.original.traceId,onSelect:()=>f(e.original)},e.id))})})})}function jt({bundledUsd:e}){return e>0?`${z(e)} bundled`:``}var Mt=`•`.repeat(48);function Nt(e,t,n){let r=`export OTEL_EXPORTER_OTLP_ENDPOINT="${t}"
|
|
2
|
-
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer ${n}"`;return e===`claude_code`?[`export CLAUDE_CODE_ENABLE_TELEMETRY=1`,`export OTEL_TRACES_EXPORTER=otlp`,`export OTEL_LOGS_EXPORTER=otlp`,`export OTEL_METRICS_EXPORTER=otlp`,`export OTEL_EXPORTER_OTLP_PROTOCOL=http/json`,`export OTEL_LOG_USER_PROMPTS=1`,`export OTEL_LOG_TOOL_DETAILS=1`,`export OTEL_LOG_TOOL_CONTENT=1`,`export OTEL_LOG_RAW_API_BODIES=1`,r,`export OTEL_RESOURCE_ATTRIBUTES="service.name=claude-code"`].join(`
|
|
3
|
-
`):e===`codex`?[`# Run once: langwatch ingest install codex`,`# (writes the [otel] block to ~/.codex/config.toml automatically)`,`export OTEL_TRACES_EXPORTER=otlp`,`export OTEL_EXPORTER_OTLP_PROTOCOL=http/json`,r,`export OTEL_RESOURCE_ATTRIBUTES="service.name=codex"`].join(`
|
|
4
|
-
`):e===`gemini`?[`export GEMINI_TELEMETRY_ENABLED=true`,`export GEMINI_TELEMETRY_TARGET=local`,`export GEMINI_TELEMETRY_USE_COLLECTOR=true`,`export GEMINI_TELEMETRY_TRACES_ENABLED=true`,`export GEMINI_TELEMETRY_OTLP_PROTOCOL=http`,`export GEMINI_TELEMETRY_OTLP_ENDPOINT="${t}"`,`export GEMINI_TELEMETRY_LOG_PROMPTS=true`,`export OTEL_TRACES_EXPORTER=otlp`,`export OTEL_EXPORTER_OTLP_PROTOCOL=http/json`,r,`export OTEL_RESOURCE_ATTRIBUTES="service.name=gemini-cli"`].join(`
|
|
5
|
-
`):e===`opencode`?[`export OTEL_TRACES_EXPORTER=otlp`,`export OTEL_LOGS_EXPORTER=otlp`,`export OTEL_METRICS_EXPORTER=otlp`,`export OTEL_EXPORTER_OTLP_PROTOCOL=http/json`,r,`export OTEL_RESOURCE_ATTRIBUTES="service.name=opencode"`].join(`
|
|
6
|
-
`):r}function Pt({open:e,onOpenChange:t,template:n,installResult:i,isInstalling:s,installError:c,hasExistingKey:l,onInstall:f,onRotate:p,onMarkInstalled:m}){let[g,_]=(0,B.useState)(!1),v=(e,t)=>{navigator.clipboard.writeText(e),y.create({title:`${t} copied to clipboard`,type:`success`})},S=g?i?.token??``:Mt,w=i?.token??``,T=i?Nt(n.slug,i.endpoint,S):``,E=i?Nt(n.slug,i.endpoint,w):``;return(0,H.jsx)(ne,{open:e,onOpenChange:e=>t(e.open),placement:`end`,size:`md`,children:(0,H.jsxs)(ee,{children:[(0,H.jsxs)(ie,{children:[(0,H.jsxs)(ae,{children:[`Connect `,n.displayName,`, auto-shaped`]}),(0,H.jsx)(te,{})]}),(0,H.jsx)(re,{children:(0,H.jsxs)(d,{align:`stretch`,gap:4,children:[(0,H.jsx)(u,{fontSize:`sm`,color:`fg.muted`,children:`Cost, tokens, and model are picked up automatically on every request, no change to how you call the API.`}),!!c&&(0,H.jsx)(se,{error:c,fallbackTitle:`Couldn't set up this integration`}),!i&&!s&&n.credentialSchema===null&&(l?(0,H.jsxs)(d,{align:`stretch`,gap:2,children:[(0,H.jsxs)(D,{status:`warning`,variant:`surface`,children:[(0,H.jsx)(O,{}),(0,H.jsx)(k,{children:(0,H.jsx)(u,{fontSize:`sm`,children:`An ingestion key already exists for this source. Rotating will invalidate the existing token immediately.`})})]}),(0,H.jsx)(a,{onClick:p,colorPalette:`orange`,children:`Rotate token`})]}):(0,H.jsx)(a,{onClick:f,colorPalette:`orange`,children:`Use this template`})),s&&(0,H.jsx)(u,{fontSize:`sm`,color:`fg.muted`,children:l?`Rotating token…`:`Installing template…`}),i&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(D,{status:`info`,variant:`surface`,children:[(0,H.jsx)(O,{children:(0,H.jsx)(x,{size:16})}),(0,H.jsx)(k,{children:(0,H.jsx)(u,{fontSize:`sm`,fontWeight:`medium`,children:`Ingestion key issued. Copy the token now, it won't be shown again.`})})]}),(0,H.jsx)(Ft,{label:`Endpoint`,value:i.endpoint,onCopy:()=>v(i.endpoint,`Endpoint`)}),(0,H.jsx)(Ft,{label:`Token`,value:g?i.token:Mt,onCopy:()=>v(i.token,`Token`),trailing:(0,H.jsxs)(a,{size:`xs`,variant:`ghost`,onClick:()=>_(e=>!e),children:[g?(0,H.jsx)(xe,{size:12}):(0,H.jsx)(C,{size:12}),g?`Hide`:`Show`]})}),(0,H.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`sm`,padding:3,backgroundColor:`bg.subtle`,children:[(0,H.jsxs)(o,{alignItems:`start`,marginBottom:2,children:[(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,fontWeight:`semibold`,children:`.env (bash)`}),(0,H.jsx)(j,{}),(0,H.jsxs)(a,{size:`xs`,variant:`ghost`,onClick:()=>v(E,`Env vars`),children:[(0,H.jsx)(b,{size:12}),` Copy`]})]}),(0,H.jsx)(r,{as:`pre`,fontSize:`xs`,fontFamily:`mono`,whiteSpace:`pre-wrap`,children:T})]}),(0,H.jsxs)(u,{fontSize:`xs`,color:`fg.muted`,children:[`Paste into your`,` `,(0,H.jsx)(h,{variant:`surface`,size:`sm`,children:n.displayName}),` `,`environment, fire a request, and traces will land at`,` `,(0,H.jsx)(`code`,{children:`/me/traces`}),` filtered by source=`,n.slug,`.`]}),(0,H.jsxs)(u,{fontSize:`xs`,color:`fg.muted`,children:[`To keep this across new terminals, add these lines to your`,` `,(0,H.jsx)(`code`,{children:`~/.zshrc`}),` (or `,(0,H.jsx)(`code`,{children:`~/.bashrc`}),`), then open a new shell.`]}),(0,H.jsxs)(o,{children:[(0,H.jsx)(j,{}),(0,H.jsxs)(a,{onClick:m,colorPalette:`green`,variant:`solid`,children:[(0,H.jsx)(x,{size:14}),` Mark as installed`]})]})]})]})})]})})}function Ft({label:e,value:t,onCopy:n,trailing:r}){return(0,H.jsxs)(d,{align:`stretch`,gap:1,children:[(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,fontWeight:`semibold`,children:e}),(0,H.jsxs)(o,{gap:2,paddingX:2,paddingY:2,borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`sm`,backgroundColor:`bg.subtle`,children:[(0,H.jsx)(u,{fontSize:`xs`,fontFamily:`mono`,wordBreak:`break-all`,flex:1,children:t}),r,(0,H.jsxs)(a,{size:`xs`,variant:`ghost`,onClick:n,children:[(0,H.jsx)(b,{size:12}),` Copy`]})]})]})}var It=(0,H.jsx)(R,{size:20});function Lt(e,t){return e.error&&e.variables?.sourceType===t?e.error:null}function Rt(){let e=Be().organizationId??``,t=P.ingestionTemplates.list.useQuery({organizationId:e},{enabled:!!e,refetchOnWindowFocus:!1}),n=P.ingestionKey.list.useQuery({organizationId:e},{enabled:!!e,refetchOnWindowFocus:!1}),r=P.useUtils(),i=P.ingestionKey.install.useMutation({onSuccess:()=>{r.ingestionKey.list.invalidate()}}),a=P.ingestionKey.rotate.useMutation({onSuccess:()=>{r.ingestionKey.list.invalidate()}}),o=F(),s=o.data?.BASE_HOST?`${o.data.BASE_HOST}/api/otel`:`/api/otel`,[c,p]=(0,B.useState)(null),[m,h]=(0,B.useState)({}),g=t.data??[],_=n.data??[],v=new Map(_.map(e=>[e.sourceType,e]));if(!t.isSuccess&&!t.isError||t.isSuccess&&g.length===0)return null;let y=c?g.find(e=>e.slug===c)??null:null,b=async(t,n,r)=>{try{let a=await i.mutateAsync({organizationId:e,sourceType:t,templateId:n});h(e=>({...e,[r]:{token:a.token,endpoint:s}}))}catch{}},x=async(t,n,r)=>{try{let i=await a.mutateAsync({organizationId:e,sourceType:t,templateId:n});h(e=>({...e,[r]:{token:i.token,endpoint:s}}))}catch{}},S=(e,t,n)=>{p(n),!v.has(e)&&!m[n]&&!i.isPending&&b(e,t,n)},C=()=>{p(null)},w=(e,t)=>{p(t?e:null)};return(0,H.jsxs)(d,{align:`stretch`,gap:3,width:`full`,children:[(0,H.jsxs)(d,{align:`start`,gap:0,children:[(0,H.jsx)(l,{as:`h3`,size:`md`,children:`Trace Ingest`}),(0,H.jsx)(u,{color:`fg.muted`,fontSize:`sm`,children:`Connect your tools so their traces land in your personal workspace, with cost, tokens, and model filled in for you.`})]}),(0,H.jsxs)(f,{columns:{base:1,md:2,lg:4},gap:3,children:[g.map(e=>(0,H.jsx)(zt,{slug:e.slug,label:e.displayName,subtitle:e.description??e.sourceType,icon:It,installed:v.has(e.sourceType),onClick:()=>S(e.sourceType,e.id,e.slug)},e.id)),(0,H.jsx)(Bt,{})]}),y&&(0,H.jsx)(Pt,{open:!!c,onOpenChange:e=>w(y.slug,e),template:{slug:y.slug,displayName:y.displayName,description:y.description,credentialSchema:y.credentialSchema},installResult:m[y.slug]??null,isInstalling:i.isPending||a.isPending,installError:Lt(i,y.sourceType)??Lt(a,y.sourceType),hasExistingKey:v.has(y.sourceType),onInstall:()=>void b(y.sourceType,y.id,y.slug),onRotate:()=>void x(y.sourceType,y.id,y.slug),onMarkInstalled:C})]})}function zt({slug:e,label:t,subtitle:n,icon:i,installed:a,onClick:s}){return(0,H.jsx)(r,{as:`button`,type:`button`,onClick:s,borderWidth:`1px`,borderColor:a?`green.300`:`border.muted`,borderRadius:`md`,padding:3,textAlign:`left`,_hover:{borderColor:`border.emphasized`,cursor:`pointer`},"data-tile-slug":e,children:(0,H.jsxs)(o,{alignItems:`start`,gap:3,children:[(0,H.jsx)(r,{width:`36px`,height:`36px`,flexShrink:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`fg.muted`,borderRadius:`sm`,backgroundColor:`bg.subtle`,children:i}),(0,H.jsxs)(d,{align:`start`,gap:0,flex:1,minWidth:0,children:[(0,H.jsxs)(o,{gap:2,width:`full`,children:[(0,H.jsx)(u,{fontSize:`sm`,fontWeight:`medium`,children:t}),(0,H.jsx)(j,{}),a?(0,H.jsxs)(h,{size:`xs`,variant:`surface`,colorPalette:`green`,children:[(0,H.jsx)(x,{size:10}),` Installed`]}):(0,H.jsx)(h,{size:`xs`,variant:`surface`,colorPalette:`gray`,children:`Connect`})]}),(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,lineClamp:2,children:n})]})]})})}function Bt(){return(0,H.jsx)(r,{borderWidth:`1px`,borderStyle:`dashed`,borderColor:`border.emphasized`,borderRadius:`md`,padding:3,backgroundColor:`bg.subtle`,"data-tile-slug":`raw_otlp_advanced`,children:(0,H.jsxs)(o,{alignItems:`start`,gap:3,children:[(0,H.jsx)(r,{width:`36px`,height:`36px`,flexShrink:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`fg.muted`,borderRadius:`sm`,backgroundColor:`bg.muted`,children:(0,H.jsx)(De,{size:20})}),(0,H.jsxs)(d,{align:`start`,gap:1,flex:1,minWidth:0,children:[(0,H.jsx)(u,{fontSize:`sm`,fontWeight:`medium`,children:`Raw OTLP (advanced)`}),(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,children:`Bring your own OTLP, raw shape. Use for custom telemetry pipelines.`}),(0,H.jsx)(L,{href:`/me/configure#otlp`,color:`orange.600`,fontSize:`xs`,fontWeight:`medium`,children:`Get OTLP token →`})]})]})})}var X=e=>z(e),Vt=e=>e===null?null:`${e>=0?`↑`:`↓`} ${Math.abs(e)}% vs last month`;function Ht(){let{summary:e,budget:t,spendByDay:n,spendByTool:i,personalProjectId:a,personalProjectSlug:s,organizationName:c}=Be(),p=jt({bundledUsd:Math.max(0,e.spentThisMonthUsd-e.billedThisMonthUsd)}),[m,h]=(0,B.useState)(!0),[_,v]=(0,B.useState)(!0),y=Math.max(...n.map(e=>Math.max(m?e.usd:0,_?e.billedUsd:0)),.01),b=Math.max(...i.map(e=>Math.max(m?e.usd:0,_?e.billedUsd:0)),.01);return(0,H.jsxs)(ze,{children:[(0,H.jsx)(Ne,{children:(0,H.jsx)(`title`,{children:`My Usage · LangWatch`})}),(0,H.jsxs)(d,{align:`stretch`,gap:6,width:`full`,children:[(0,H.jsxs)(d,{id:yt,align:`stretch`,gap:3,scrollMarginTop:4,children:[(0,H.jsx)(l,{as:`h2`,size:`lg`,children:`Your AI tools`}),(0,H.jsx)(u,{color:`fg.muted`,fontSize:`sm`,children:`Pick a tool to get started, or issue a virtual key for your own integrations.`}),(0,H.jsx)(rt,{})]}),(0,H.jsx)(r,{id:J,scrollMarginTop:4,children:(0,H.jsx)(Rt,{})}),(0,H.jsxs)(o,{alignItems:`end`,paddingTop:4,children:[(0,H.jsxs)(d,{align:`start`,gap:0,children:[(0,H.jsx)(l,{as:`h3`,size:`md`,children:`My Usage`}),(0,H.jsxs)(u,{color:`fg.muted`,fontSize:`sm`,children:[`Your AI usage in `,c,` this month`]})]}),(0,H.jsx)(j,{}),(0,H.jsx)(vt,{projectId:a})]}),t.status===`exceeded`&&(0,H.jsx)(dt,{spentUsd:t.spentUsd,limitUsd:t.limitUsd,period:t.period,scope:t.scope,requestIncreaseUrl:t.requestIncreaseUrl,adminEmail:t.adminEmail}),t.status===`warning`&&t.limitUsd>0&&(0,H.jsx)(Ut,{tone:`yellow`,title:`Approaching budget`,message:`You've used ${Math.round(t.spentUsd/t.limitUsd*100)}% of your ${t.period} ${t.scope} budget.`}),(0,H.jsxs)(f,{columns:{base:1,md:3},gap:4,children:[(0,H.jsx)(Z,{title:`Spent this month`,value:X(e.billedThisMonthUsd),subline:p}),(0,H.jsx)(Z,{title:`Requests this month`,value:(0,V.default)(e.requestsThisMonth).format(`0,0`),subline:Vt(e.requestsDeltaPctVsLastMonth)??`—`}),(0,H.jsx)(Z,{title:`Most-used model`,value:e.mostUsedModel?.name??`—`,subline:e.mostUsedModel?`${e.mostUsedModel.usagePct}% of usage`:`Run a request to see this`})]}),(0,H.jsx)(Q,{title:`Spending over time`,children:n.length===0?(0,H.jsx)($,{message:`No usage yet`,hint:"Run `langwatch claude` to get started"}):(0,H.jsxs)(d,{align:`stretch`,gap:2,children:[(0,H.jsx)(Wt,{showTheoretical:m,showBilled:_,onToggleTheoretical:()=>h(e=>!e),onToggleBilled:()=>v(e=>!e)}),(0,H.jsx)(o,{gap:1,alignItems:`end`,height:`120px`,paddingTop:2,children:n.map(e=>{let t=e.usd/y*100,n=e.billedUsd/y*100;return(0,H.jsx)(g,{openDelay:100,positioning:{placement:`top`},content:(0,H.jsxs)(d,{gap:.5,align:`start`,children:[(0,H.jsx)(u,{fontWeight:`semibold`,children:e.day}),(0,H.jsxs)(u,{children:[`Theoretical: `,X(e.usd)]}),(0,H.jsxs)(u,{children:[`Billed: `,X(e.billedUsd)]})]}),children:(0,H.jsxs)(r,{flex:1,position:`relative`,height:`full`,cursor:`default`,children:[(0,H.jsx)(r,{position:`absolute`,bottom:0,width:`full`,height:`2px`,borderRadius:`full`,backgroundColor:`blue.200`}),m&&e.usd>0&&(0,H.jsx)(r,{position:`absolute`,bottom:0,width:`full`,backgroundColor:`blue.200`,borderRadius:`sm`,height:`${Math.max(2,t)}%`}),_&&e.billedUsd>0&&(0,H.jsx)(r,{position:`absolute`,bottom:0,width:`full`,backgroundColor:`blue.400`,borderRadius:`sm`,height:`${Math.max(2,n)}%`})]})},e.day)})}),(0,H.jsxs)(o,{justifyContent:`space-between`,fontSize:`xs`,color:`fg.muted`,children:[(0,H.jsx)(u,{children:n[0]?.day}),(0,H.jsx)(u,{children:n[n.length-1]?.day})]})]})}),(0,H.jsx)(Q,{title:`By tool`,children:i.length===0?(0,H.jsx)($,{message:`No tool data yet`}):(0,H.jsxs)(d,{align:`stretch`,gap:3,children:[(0,H.jsx)(Wt,{showTheoretical:m,showBilled:_,onToggleTheoretical:()=>h(e=>!e),onToggleBilled:()=>v(e=>!e)}),i.map(e=>{let t=e.usd/b*100,n=e.billedUsd/b*100;return(0,H.jsxs)(o,{gap:3,children:[(0,H.jsx)(u,{fontSize:`sm`,minWidth:`120px`,children:e.tool}),(0,H.jsx)(g,{openDelay:100,positioning:{placement:`top`},content:(0,H.jsxs)(d,{gap:.5,align:`start`,children:[(0,H.jsx)(u,{fontWeight:`semibold`,children:e.tool}),(0,H.jsxs)(u,{children:[`Theoretical: `,X(e.usd)]}),(0,H.jsxs)(u,{children:[`Billed: `,X(e.billedUsd)]})]}),children:(0,H.jsxs)(r,{flex:1,height:`14px`,backgroundColor:`bg.muted`,borderRadius:`sm`,overflow:`hidden`,position:`relative`,cursor:`default`,children:[m&&(0,H.jsx)(r,{position:`absolute`,left:0,top:0,height:`full`,width:`${Math.max(e.usd>0?2:0,t)}%`,backgroundColor:`blue.200`}),_&&(0,H.jsx)(r,{position:`absolute`,left:0,top:0,height:`full`,width:`${Math.max(e.billedUsd>0?2:0,n)}%`,backgroundColor:`blue.400`})]})}),(0,H.jsxs)(d,{gap:0,align:`end`,minWidth:`90px`,fontSize:`sm`,children:[_&&(0,H.jsx)(u,{children:X(e.billedUsd)}),m&&e.usd-e.billedUsd>1e-6&&(0,H.jsxs)(u,{color:`fg.subtle`,fontSize:`xs`,children:[X(e.usd-e.billedUsd),` bundled`]})]})]},e.tool)})]})}),(0,H.jsx)(Q,{title:`Coding-agent usage (last 30 days)`,children:a?(0,H.jsx)(ft,{projectId:a}):(0,H.jsx)($,{message:`No coding-agent usage yet`})}),(0,H.jsx)(Q,{title:`Recent activity`,flushContent:!0,children:a&&s?(0,H.jsx)(At,{projectId:a,projectSlug:s}):(0,H.jsx)($,{message:`No requests yet`})})]})]})}function Z({title:e,value:t,subline:n}){return(0,H.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:4,backgroundColor:`bg.subtle`,children:[(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,textTransform:`uppercase`,letterSpacing:`wider`,children:e}),(0,H.jsx)(u,{fontSize:`2xl`,fontWeight:`semibold`,marginTop:1,color:`fg`,children:t}),n?(0,H.jsx)(u,{fontSize:`sm`,color:`fg.muted`,marginTop:1,children:n}):null]})}function Q({title:e,children:t,flushContent:n=!1}){return n?(0,H.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,overflow:`hidden`,children:[(0,H.jsx)(u,{fontSize:`sm`,fontWeight:`semibold`,paddingX:4,paddingTop:4,paddingBottom:3,children:e}),(0,H.jsx)(r,{borderTopWidth:`1px`,borderTopColor:`border.muted`,children:t})]}):(0,H.jsxs)(r,{borderWidth:`1px`,borderColor:`border.muted`,borderRadius:`md`,padding:4,children:[(0,H.jsx)(u,{fontSize:`sm`,fontWeight:`semibold`,marginBottom:3,children:e}),t]})}function Ut({tone:e,title:t,message:n}){let i=e===`red`?{bg:`red.50`,border:`red.200`,title:`red.700`,text:`red.700`}:{bg:`yellow.50`,border:`yellow.200`,title:`yellow.800`,text:`yellow.800`};return(0,H.jsxs)(r,{borderWidth:`1px`,borderColor:i.border,backgroundColor:i.bg,borderRadius:`md`,padding:4,children:[(0,H.jsx)(u,{fontWeight:`semibold`,color:i.title,children:t}),(0,H.jsx)(u,{fontSize:`sm`,color:i.text,marginTop:1,children:n})]})}function $({message:e,hint:t}){return(0,H.jsxs)(d,{align:`center`,justifyContent:`center`,paddingY:6,gap:1,children:[(0,H.jsx)(u,{fontSize:`sm`,color:`fg.muted`,children:e}),t&&(0,H.jsx)(u,{fontSize:`xs`,color:`fg.muted`,children:t})]})}function Wt({showTheoretical:e,showBilled:t,onToggleTheoretical:n,onToggleBilled:r}){return(0,H.jsxs)(o,{gap:4,fontSize:`xs`,children:[(0,H.jsx)(Gt,{label:`Theoretical`,color:`blue.200`,active:e,onClick:n}),(0,H.jsx)(Gt,{label:`Billed`,color:`blue.400`,active:t,onClick:r})]})}function Gt({label:e,color:t,active:n,onClick:i}){return(0,H.jsxs)(o,{as:`button`,gap:1.5,onClick:i,opacity:n?1:.45,cursor:`pointer`,_hover:{opacity:n?.8:.65},title:n?`Hide ${e}`:`Show ${e}`,children:[(0,H.jsx)(r,{width:`10px`,height:`10px`,borderRadius:`sm`,backgroundColor:t}),(0,H.jsx)(u,{color:`fg.muted`,textDecoration:n?void 0:`line-through`,children:e})]})}var Kt=Pe(`release_ui_ai_governance_enabled`,{bypassOnboardingRedirect:!0})(Ht);export{Kt as default};
|
|
7
|
-
//# sourceMappingURL=me-BHRwGQAJ.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-CFwixLRt.js";import{t}from"./container-Cxi_AjD-.js";import{n}from"./useAnnotationQueues-ByLqaEs6.js";import{t as r}from"./AnnotationsTable-CnwGxhJg.js";var i=e();function a(){return(0,i.jsx)(n,{children:(0,i.jsx)(t,{maxWidth:`calc(100vw - 330px)`,padding:0,margin:0,children:(0,i.jsx)(r,{noDataTitle:`No queued annotations for you`,noDataDescription:`You have no annotations assigned to you.`,heading:`My Queue`})})})}export{a as default};
|
|
2
|
-
//# sourceMappingURL=me-DyaTjlbw.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"./heading-C0sACr0w.js";import{n as c,t as l}from"./v-stack-hkuSkmCA.js";import{An as u,n as d,tr as f}from"./ProjectAvatar-DtI9dT1f.js";import{p,t as m}from"./select-D17PWjH9.js";import{t as h}from"./badge-Cpc3eA-C.js";import{n as g,s as _}from"./toaster-BsYkODqs.js";import{$ as v,K as y,L as b,Q as x,X as S,Y as C,Z as w,et as T}from"./Markdown-C9extmbX.js";import{L as E}from"./DashboardLayout-BhHe0vIT.js";import{r as D,t as O}from"./card-By_Mbslh.js";import{t as k}from"./icon-button-Wlb_dGXL.js";import{t as A}from"./errors-e711UMq7.js";import{t as j}from"./spacer-C38e7o6r.js";import{n as M}from"./api-l6Cnm0vQ.js";import{t as N}from"./mail-C7uKOOUF.js";import{t as P}from"./usePublicEnv-ue4-Igop.js";import{Mr as F,Qn as I,St as L,Ut as ee,Vn as R,Vt as te,W as ne,f as re,nr as ie,t as z,zn as B}from"./index-CPtTUYLD.js";import{t as V}from"./WithPermissionGuard-Cr6Aljmy.js";import{t as ae}from"./OverflownText-CY4Y__oL.js";import{t as H}from"./SettingsLayout-sixsNIX_.js";import{t as oe}from"./useInviteActions-DwPlKWmS.js";import{t as se}from"./CopyInput-BJ8UDgiW.js";import{n as ce,t as le}from"./useDepartmentColumn-D1DF_PiG.js";import{i as U,r as W,t as G}from"./GroupBindingInputRow-DQP7aETW.js";var K=B(),q=e(t()),J=o(),Y=[{label:`Admin`,value:K.OrganizationUserRole.ADMIN,description:`Can manage organization and add or remove members`},{label:`Member`,value:K.OrganizationUserRole.MEMBER,description:`Can manage their own projects and view other projects`},{label:`Lite Member`,value:K.OrganizationUserRole.EXTERNAL,description:`Can only view projects they are invited to, cannot see costs`}];function X({value:e,onChange:t}){let n=(0,q.useMemo)(()=>p({items:Y}),[]);return(0,J.jsx)(l,{align:`start`,children:(0,J.jsx)(a,{gap:6,children:(0,J.jsxs)(m.Root,{collection:n,value:[e],onValueChange:e=>{let n=e.value[0];n&&t(n)},children:[(0,J.jsx)(m.Trigger,{width:`200px`,children:(0,J.jsx)(m.ValueText,{placeholder:`Select role`})}),(0,J.jsx)(m.Content,{width:`320px`,paddingY:2,children:Y.map(e=>(0,J.jsx)(m.Item,{item:e,children:(0,J.jsxs)(l,{align:`start`,gap:0,flex:1,children:[(0,J.jsx)(c,{children:e.label}),(0,J.jsx)(c,{color:`fg.muted`,fontSize:`13px`,children:e.description})]})},e.value))})]})})})}function Z({isAdmin:e,inviteId:t,onApprove:n,onReject:r}){return e?(0,J.jsxs)(a,{gap:2,children:[(0,J.jsx)(k,{"aria-label":`Approve`,variant:`ghost`,size:`sm`,color:`green.500`,onClick:()=>n(t),children:(0,J.jsx)(_,{size:16})}),(0,J.jsx)(k,{"aria-label":`Reject`,variant:`ghost`,size:`sm`,color:`red.500`,onClick:()=>r(t),children:(0,J.jsx)(R,{size:16})})]}):null}function ue({waitingApprovalInvites:e,sentInvites:t,isAdmin:n,currentUserId:i,teams:a,onApprove:o,onReject:c,onViewInviteLink:f,onDeleteInvite:p}){let m=(0,q.useMemo)(()=>n?e:e.filter(e=>e.requestedBy===i),[e,n,i]),g=(0,q.useMemo)(()=>[...m,...t],[m,t]);return g.length===0?null:(0,J.jsxs)(l,{align:`start`,gap:4,paddingTop:4,width:`full`,children:[(0,J.jsx)(s,{children:`Invites`}),(0,J.jsx)(D,{width:`full`,overflow:`hidden`,children:(0,J.jsx)(O,{paddingY:0,paddingX:0,children:(0,J.jsxs)(v,{variant:`line`,size:`md`,width:`full`,children:[(0,J.jsx)(x,{children:(0,J.jsxs)(T,{children:[(0,J.jsx)(w,{width:`56px`}),(0,J.jsx)(w,{children:`Email`}),(0,J.jsx)(w,{children:`Status`}),(0,J.jsx)(w,{children:`Role`}),(0,J.jsx)(w,{children:`Teams`}),(0,J.jsx)(w,{width:`60px`})]})}),(0,J.jsx)(C,{children:g.map(e=>{let t=e.status===`WAITING_APPROVAL`,i=Y.find(t=>t.value===e.role)?.label??e.role;return(0,J.jsxs)(T,{children:[(0,J.jsx)(S,{children:(0,J.jsx)(d,{size:`2xs`,name:e.email})}),(0,J.jsx)(S,{children:e.email}),(0,J.jsx)(S,{children:t?(0,J.jsx)(h,{size:`sm`,variant:`surface`,colorPalette:`orange`,children:`Pending Approval`}):(0,J.jsx)(h,{size:`sm`,variant:`surface`,children:`Invited`})}),(0,J.jsx)(S,{children:i}),(0,J.jsx)(S,{children:(0,J.jsx)(de,{teamIds:e.teamIds,teams:a})}),(0,J.jsx)(S,{children:(0,J.jsx)(r,{width:`full`,height:`full`,display:`flex`,justifyContent:`end`,children:t?(0,J.jsx)(Z,{isAdmin:n,inviteId:e.id,onApprove:o,onReject:c}):(0,J.jsxs)(b.Root,{children:[(0,J.jsx)(b.Trigger,{asChild:!0,children:(0,J.jsx)(k,{"aria-label":`Invite actions`,variant:`ghost`,size:`sm`,children:(0,J.jsx)(u,{size:16})})}),(0,J.jsxs)(b.Content,{children:[(0,J.jsxs)(b.Item,{value:`view-link`,onClick:()=>f(e.inviteCode,e.email),children:[(0,J.jsx)(N,{size:16}),`View invite link`]}),n&&(0,J.jsxs)(b.Item,{value:`delete`,color:`red.500`,onClick:()=>p(e.id),children:[(0,J.jsx)(y,{size:16}),`Delete`]})]})]})})})]},e.id)})})]})})})]})}var de=({teamIds:e,teams:t})=>{if(!e)return null;let n=e.split(`,`).map(e=>e.trim()).filter(Boolean);return n.length===0?null:(0,J.jsx)(a,{gap:2,flexWrap:`wrap`,children:n.map(e=>{let n=t.find(t=>t.id===e);return n?(0,J.jsx)(z,{href:`/settings/teams/${n.slug}`,children:(0,J.jsx)(h,{size:`sm`,variant:`surface`,children:n.name})},e):null})})};function fe({member:e,organizationId:t,canManage:o,isCurrentUser:s,open:u,onClose:d}){let f=M.useContext(),[p,m]=(0,q.useState)(e.role),[_,v]=(0,q.useState)(new Set),[y,b]=(0,q.useState)([]),[x,S]=(0,q.useState)(!1),C=(0,q.useRef)(null),w=()=>{m(e.role),v(new Set),b([])};(0,q.useEffect)(()=>{u&&w()},[u,e.userId]);let T=M.roleBinding.listForUser.useQuery({organizationId:t,userId:e.userId},{enabled:u&&o}),E=M.group.listForMember.useQuery({organizationId:t,userId:e.userId},{enabled:u}),D=M.organization.updateMemberRole.useMutation(),O=M.roleBinding.applyMemberBindings.useMutation(),k=_.size>0||y.length>0,N=p!==e.role,P=k||N,F=async()=>{let n=C.current?.flush()??null,r=n?[...y,n]:y,i=_.size>0||r.length>0;S(!0);try{N&&await D.mutateAsync({organizationId:t,userId:e.userId,role:p}),i&&await O.mutateAsync({organizationId:t,userId:e.userId,bindingIdsToDelete:[..._],bindingsToCreate:r.map(e=>({role:e.role,customRoleId:e.customRoleId,scopeType:e.scopeType,scopeId:e.scopeId}))}),await Promise.all([f.roleBinding.listForUser.invalidate(),f.roleBinding.listForOrg.invalidate(),f.organization.getOrganizationWithMembersAndTheirTeams.invalidate(),f.organization.getAll.invalidate()]),g.create({title:`Member updated`,type:`success`}),d()}catch(e){A({error:e,fallbackTitle:`Couldn't update this member`})}finally{S(!1)}},I=T.data??[];return(0,J.jsx)(L.Root,{open:u,onOpenChange:e=>{e.open||(w(),d())},size:`lg`,children:(0,J.jsxs)(L.Content,{bg:`bg`,maxHeight:`90vh`,overflowY:`auto`,children:[(0,J.jsx)(L.Header,{children:(0,J.jsx)(L.Title,{children:e.user.name??e.user.email})}),(0,J.jsx)(L.CloseTrigger,{}),(0,J.jsx)(L.Body,{pb:6,children:(0,J.jsxs)(l,{gap:5,align:`stretch`,children:[o&&(0,J.jsxs)(r,{children:[(0,J.jsx)(c,{fontSize:`sm`,fontWeight:`semibold`,mb:3,children:`Organization role`}),s?(0,J.jsx)(c,{fontSize:`sm`,color:`fg.muted`,fontStyle:`italic`,children:`You cannot change your own organization role.`}):(0,J.jsx)(X,{value:p,onChange:m})]}),o&&(0,J.jsxs)(r,{children:[(0,J.jsx)(c,{fontSize:`sm`,fontWeight:`semibold`,mb:3,children:`Access`}),T.isLoading?(0,J.jsx)(n,{size:`sm`}):I.length===0&&y.length===0?(0,J.jsx)(c,{fontSize:`sm`,color:`fg.muted`,fontStyle:`italic`,children:`No access configured.`}):(0,J.jsxs)(l,{gap:2,align:`stretch`,children:[I.map(e=>{let t=_.has(e.id);return(0,J.jsxs)(a,{px:3,py:2,bg:`bg.muted`,borderRadius:`md`,fontSize:`sm`,opacity:t?.4:1,transition:`opacity 0.15s`,children:[(0,J.jsx)(h,{colorPalette:W(e.role),size:`sm`,textDecoration:t?`line-through`:void 0,children:e.customRoleName??e.role}),(0,J.jsx)(c,{color:`fg.muted`,children:`on`}),(0,J.jsxs)(h,{colorPalette:`purple`,size:`sm`,textDecoration:t?`line-through`:void 0,children:[U(e.scopeType),` `,e.scopeName??e.scopeId]}),(0,J.jsx)(j,{}),e.scopeType!==K.RoleBindingScopeType.PROJECT&&(0,J.jsx)(i,{size:`xs`,variant:`ghost`,color:t?`blue.500`:`fg.muted`,"aria-label":t?`Undo removal`:`Remove binding`,onClick:()=>v(t=>{let n=new Set(t);return n.has(e.id)?n.delete(e.id):n.add(e.id),n}),children:(0,J.jsx)(R,{size:14})})]},e.id)}),y.map((e,t)=>(0,J.jsxs)(a,{px:3,py:2,bg:`bg.muted`,borderRadius:`md`,fontSize:`sm`,opacity:.7,children:[(0,J.jsx)(h,{colorPalette:W(e.role),size:`sm`,children:e.customRoleName??e.role}),(0,J.jsx)(c,{color:`fg.muted`,children:`on`}),(0,J.jsxs)(h,{colorPalette:`purple`,size:`sm`,children:[U(e.scopeType),` `,e.scopeName??e.scopeId]}),(0,J.jsx)(j,{}),(0,J.jsx)(i,{size:`xs`,variant:`ghost`,color:`fg.muted`,"aria-label":`Undo add`,onClick:()=>b(e=>e.filter((e,n)=>n!==t)),children:(0,J.jsx)(R,{size:14})})]},t))]}),(0,J.jsx)(G,{ref:C,organizationId:t,onAdd:e=>b(t=>[...t,e])})]}),(0,J.jsxs)(r,{children:[(0,J.jsx)(c,{fontSize:`sm`,fontWeight:`semibold`,mb:3,children:`Group access`}),E.isLoading?(0,J.jsx)(n,{size:`sm`}):E.data?.length?(0,J.jsx)(l,{gap:2,align:`stretch`,children:E.data.map(e=>e.bindings.length===0?(0,J.jsxs)(a,{px:3,py:2,bg:`bg.muted`,borderRadius:`md`,fontSize:`sm`,justifyContent:`space-between`,children:[(0,J.jsx)(c,{fontSize:`sm`,color:`fg.muted`,children:e.name}),(0,J.jsx)(z,{href:`/settings/groups`,fontSize:`xs`,color:`blue.400`,children:`No access configured`})]},e.id):e.bindings.map(t=>(0,J.jsxs)(a,{px:3,py:2,bg:`bg.muted`,borderRadius:`md`,fontSize:`sm`,children:[(0,J.jsx)(h,{colorPalette:W(t.role),size:`sm`,children:t.customRoleName??t.role}),(0,J.jsx)(c,{color:`fg.muted`,children:`on`}),(0,J.jsxs)(h,{colorPalette:`purple`,size:`sm`,children:[U(t.scopeType),` `,t.scopeName??`—`]}),(0,J.jsx)(j,{}),(0,J.jsxs)(c,{fontSize:`xs`,color:`fg.muted`,children:[`via `,e.name]})]},t.id)))}):(0,J.jsx)(c,{fontSize:`sm`,color:`fg.muted`,fontStyle:`italic`,children:`Not a member of any groups.`})]})]})}),o&&(0,J.jsxs)(L.Footer,{children:[(0,J.jsx)(i,{variant:`outline`,onClick:()=>{w(),d()},children:`Cancel`}),(0,J.jsx)(i,{colorPalette:`blue`,disabled:!P,loading:x,onClick:()=>void F(),children:`Save`})]})]})})}function pe(){let{organization:e}=te(),t=M.organization.getOrganizationWithMembersAndTheirTeams.useQuery({organizationId:e?.id??``,includeDeactivated:!0},{enabled:!!e}),n=M.plan.getActivePlan.useQuery({organizationId:e?.id??``},{enabled:!!e});return!e||!t.data||!n.data?(0,J.jsx)(H,{}):(0,J.jsx)(Q,{teams:e.teams,organization:t.data,activePlan:n.data})}var me=V(`organization:manage`,{layoutComponent:H})(pe);function Q({organization:e,teams:t,activePlan:n}){let{data:o}=ee(),{hasPermission:p}=te(),m=p(`organization:manage`),_=o?.user,k=le(e.id),A=k.show&&m,N=M.useContext(),[F,R]=(0,q.useState)(null),{openDrawer:z}=ne(),{open:B,onOpen:V,onClose:U}=f(),W=M.organization.getOrganizationPendingInvites.useQuery({organizationId:e?.id??``},{enabled:!!e}),G=M.organization.deleteMember.useMutation(),[K,Y]=(0,q.useState)([]);(0,q.useEffect)(()=>{K.length>0&&V()},[K,V]);let X=P().data?.HAS_EMAIL_PROVIDER_KEY,{approveInvite:Z,rejectInvite:de,deleteInvite:pe}=oe({organizationId:e.id,isAdmin:m,hasEmailProvider:X??!1,onInviteCreated:Y,onClose:()=>{},refetchInvites:()=>void W.refetch(),pricingModel:e.pricingModel,activePlanFree:n.free,activePlanType:n.type,activePlanSource:n.planSource}),me=t=>{G.mutate({organizationId:e.id,userId:t},{onSuccess:()=>{g.create({title:`Member removed successfully`,description:`The member has been removed from the organization.`,type:`success`,duration:5e3,meta:{closable:!0}}),N.organization.getOrganizationWithMembersAndTheirTeams.invalidate().catch(n=>{re(n,{tags:{userId:t,organizationId:e.id}})}),N.licenseEnforcement.checkLimit.invalidate()},onError:()=>{g.create({title:`Sorry, something went wrong`,description:`Please try that again`,type:`error`,duration:5e3,meta:{closable:!0}})}})},Q=(e,t)=>{Y([{inviteCode:e,email:t}]),V()},ge=()=>{Y([]),U()},{data:$,isLoading:ve,isError:ye}=M.roleBinding.listForOrg.useQuery({organizationId:e.id},{enabled:!!e.id&&m}),be=(0,q.useMemo)(()=>{let e=new Map;for(let t of $??[]){t.userId&&(e.has(t.userId)||e.set(t.userId,[]),e.get(t.userId).push(t));for(let n of t.memberUserIds)e.has(n)||e.set(n,[]),e.get(n).push(t)}return e},[$]),xe=(0,q.useMemo)(()=>[...e.members].sort((e,t)=>(e.user.name??e.user.email??``).localeCompare(t.user.name??t.user.email??``)),[e.members]),Se=t=>m&&e.members.length>1&&t!==_?.id,Ce=(0,q.useMemo)(()=>(W.data??[]).filter(e=>e.status===`PENDING`),[W.data]),we=(0,q.useMemo)(()=>(W.data??[]).filter(e=>e.status===`WAITING_APPROVAL`),[W.data]);return(0,J.jsxs)(H,{children:[(0,J.jsxs)(l,{gap:6,width:`full`,align:`start`,children:[(0,J.jsxs)(a,{width:`full`,children:[(0,J.jsx)(s,{children:`Organization Members`}),(0,J.jsx)(j,{}),m&&(0,J.jsxs)(a,{gap:2,children:[(0,J.jsx)(he,{onStartTyping:e=>z(`inviteMember`,e?{initialEmail:e}:void 0)}),(0,J.jsxs)(E.HeaderButton,{onClick:()=>z(`inviteMember`),children:[(0,J.jsx)(I,{size:20}),`Add members`]})]})]}),(0,J.jsx)(D,{width:`full`,overflow:`hidden`,children:(0,J.jsx)(O,{paddingY:0,paddingX:0,overflowX:`auto`,children:(0,J.jsxs)(v,{variant:`line`,size:`md`,width:`full`,children:[(0,J.jsx)(x,{children:(0,J.jsxs)(T,{children:[(0,J.jsx)(w,{width:`56px`}),(0,J.jsx)(w,{children:`Name`}),(0,J.jsx)(w,{maxWidth:`280px`,children:`Email`}),m&&(0,J.jsx)(w,{textAlign:`right`,children:`Access`}),A&&(0,J.jsx)(w,{children:`Department`}),(0,J.jsx)(w,{width:`60px`})]})}),(0,J.jsx)(C,{children:xe.map(t=>(0,J.jsxs)(T,{children:[(0,J.jsx)(S,{children:(0,J.jsx)(d,{size:`2xs`,name:t.user.name??``,image:t.user.image})}),(0,J.jsx)(S,{children:(0,J.jsxs)(a,{children:[(0,J.jsx)(i,{variant:`plain`,size:`sm`,padding:0,height:`auto`,fontWeight:`normal`,color:`colorPalette.fg`,colorPalette:`blue`,onClick:()=>{R({userId:t.userId,role:t.role,user:{name:t.user.name??null,email:t.user.email??null}})},children:t.user.name}),t.role===`EXTERNAL`&&(0,J.jsx)(h,{colorPalette:`gray`,size:`sm`,children:`Lite Member`}),t.user.deactivatedAt&&(0,J.jsx)(h,{colorPalette:`red`,size:`sm`,children:`Deactivated`})]})}),(0,J.jsx)(S,{maxWidth:`280px`,children:(0,J.jsx)(ae,{children:t.user.email})}),m&&(0,J.jsx)(S,{children:(0,J.jsx)(_e,{bindings:be.get(t.userId)??[],isLoading:ve||ye})}),A&&(0,J.jsx)(S,{children:(0,J.jsx)(ce,{organizationId:e.id,kind:`user`,entityId:t.userId,value:k.byUser.get(t.userId)??null,departments:k.departments,onAssigned:k.refetch})}),(0,J.jsx)(S,{children:(0,J.jsx)(r,{width:`full`,height:`full`,display:`flex`,justifyContent:`end`,children:(0,J.jsxs)(b.Root,{children:[(0,J.jsx)(b.Trigger,{children:(0,J.jsx)(u,{size:16})}),(0,J.jsxs)(b.Content,{children:[(0,J.jsxs)(b.Item,{value:`edit`,onClick:()=>{R({userId:t.userId,role:t.role,user:{name:t.user.name??null,email:t.user.email??null}})},children:[(0,J.jsx)(ie,{size:16}),`Edit`]}),Se(t.userId)&&(0,J.jsxs)(b.Item,{value:`delete`,color:`red.500`,onClick:()=>me(t.userId),children:[(0,J.jsx)(y,{size:16}),`Delete`]})]})]})})})]},t.userId))})]})})}),(0,J.jsx)(ue,{waitingApprovalInvites:we,sentInvites:Ce,isAdmin:m,currentUserId:_?.id??``,teams:t,onApprove:Z,onReject:de,onViewInviteLink:Q,onDeleteInvite:pe})]}),F&&(0,J.jsx)(fe,{member:F,organizationId:e.id,canManage:m,isCurrentUser:F.userId===_?.id,open:!!F,onClose:()=>R(null)}),(0,J.jsx)(L.Root,{open:B,onOpenChange:({open:e})=>e?void 0:ge(),children:(0,J.jsxs)(L.Content,{bg:`bg`,children:[(0,J.jsx)(L.Header,{children:(0,J.jsx)(L.Title,{children:(0,J.jsx)(s,{children:`Invite Link`})})}),(0,J.jsx)(L.CloseTrigger,{}),(0,J.jsx)(L.Body,{paddingBottom:6,children:(0,J.jsxs)(l,{align:`start`,gap:4,children:[(0,J.jsx)(c,{children:`Send the link below to the users you want to invite to join the organization.`}),(0,J.jsx)(l,{align:`start`,gap:4,width:`full`,children:K.map(e=>(0,J.jsxs)(l,{align:`start`,gap:6,width:`full`,children:[(0,J.jsx)(c,{fontWeight:`600`,children:e.email}),(0,J.jsx)(se,{value:`${window.location.origin}/invite/accept?inviteCode=${e.inviteCode}`,label:`Invite Link`,marginTop:0})]},e.inviteCode))})]})})]})})]})}function he({onStartTyping:e}){let[t,n]=(0,q.useState)(``);return(0,J.jsx)(F,{value:t,size:`sm`,maxWidth:`240px`,placeholder:`Invite by email…`,"aria-label":`Invite a teammate by email`,onChange:t=>{let r=t.target.value;r.trim().length>0?(e(r),n(``)):n(r)}})}function ge(e){return e===K.RoleBindingScopeType.ORGANIZATION?`🏢`:e===K.RoleBindingScopeType.TEAM?`👥`:`📁`}function $(e){return e===`ADMIN`?`red`:e===`MEMBER`?`blue`:`gray`}function _e({bindings:e,isLoading:t}){return t?(0,J.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,textAlign:`right`,children:`-`}):e.length===0?(0,J.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,textAlign:`right`,children:`No access configured`}):(0,J.jsx)(l,{gap:1,align:`end`,children:e.map(e=>(0,J.jsxs)(a,{gap:1,fontSize:`xs`,children:[(0,J.jsx)(h,{colorPalette:$(e.role),size:`sm`,children:e.customRoleName??e.role}),(0,J.jsx)(c,{color:`fg.muted`,children:`on`}),(0,J.jsxs)(h,{colorPalette:`purple`,size:`sm`,children:[ge(e.scopeType),` `,e.scopeName??e.scopeId.slice(0,8)+`…`]}),e.groupId&&(0,J.jsxs)(c,{color:`fg.subtle`,fontSize:`xs`,title:`via group: ${e.groupName??e.groupId}`,children:[`via `,e.groupName??`group`]})]},e.id))})}export{me as default};
|
|
2
|
-
//# sourceMappingURL=members-Dn5oJBlv.js.map
|