@langwatch/server 3.6.0 โ†’ 3.7.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.
Files changed (1120) hide show
  1. package/feature-map.json +1279 -0
  2. package/langwatch/dist/client/assets/AddAnnotationQueueDrawer-C2BpUHmD.js +2 -0
  3. package/langwatch/dist/client/assets/AddDatasetRecordDrawer-MGG9OkL5.js +6 -0
  4. package/langwatch/dist/client/assets/AddOrEditAnnotationScore-DT7Wwgex.js +2 -0
  5. package/langwatch/dist/client/assets/AddOrEditAnnotationScoreDrawer-B_bvSihT.js +2 -0
  6. package/langwatch/dist/client/assets/AddOrEditDatasetDrawer-DTTe34qt.js +3 -0
  7. package/langwatch/dist/client/assets/AddParticipants-Cu80BF8F.js +2 -0
  8. package/langwatch/dist/client/assets/AgentHistoryDrawer-Dv3a7Uw1.js +2 -0
  9. package/langwatch/dist/client/assets/AgentHttpEditorDrawer-BsTydMou.js +5 -0
  10. package/langwatch/dist/client/assets/AgentListDrawer-CkuGaFHx.js +2 -0
  11. package/langwatch/dist/client/assets/AgentTypeSelectorDrawer-K0PUyG8U.js +2 -0
  12. package/langwatch/dist/client/assets/AgentWorkflowEditorDrawer-CMHvyQPV.js +2 -0
  13. package/langwatch/dist/client/assets/AgentWorkflowTargetEditorDrawer-B18KFX98.js +2 -0
  14. package/langwatch/dist/client/assets/AiGatewayLayout-DL7at8rW.js +2 -0
  15. package/langwatch/dist/client/assets/AnnotationsTable-CrX2ZAvY.js +2 -0
  16. package/langwatch/dist/client/assets/AreaChart-BYqCBYVe.js +2 -0
  17. package/langwatch/dist/client/assets/AutomationDrawer-gr9nl_bx.js +112 -0
  18. package/langwatch/dist/client/assets/BatchEvaluationSummary-DJGlsFFE.js +2 -0
  19. package/langwatch/dist/client/assets/BudgetEditDrawer-DA_Za9Jh.js +2 -0
  20. package/langwatch/dist/client/assets/CartesianChart-BvVgDMpj.js +54 -0
  21. package/langwatch/dist/client/assets/CascadeArchiveDialog-CRcsYqD3.js +2 -0
  22. package/langwatch/dist/client/assets/ChartCard-C-6jgIhJ.js +2 -0
  23. package/langwatch/dist/client/assets/ChartTooltip-DDBarZKG.js +4 -0
  24. package/langwatch/dist/client/assets/ChatWindow-DgNy40Dm.js +5 -0
  25. package/langwatch/dist/client/assets/CodeEvaluatorEditorDrawer-N8k4omh5.js +9 -0
  26. package/langwatch/dist/client/assets/CodexCodingDefaultsAsk-B-0KIS0U.js +2 -0
  27. package/langwatch/dist/client/assets/ColorfulBlockIcons-DntRdsrM.js +6 -0
  28. package/langwatch/dist/client/assets/ColumnTypeIcon-DHpZtj81.js +2 -0
  29. package/langwatch/dist/client/assets/ConfirmDialog-Bv_GbZtR.js +2 -0
  30. package/langwatch/dist/client/assets/ContactSalesBlock-BKfDeTTe.js +2 -0
  31. package/langwatch/dist/client/assets/Conversation-BLw2XAh1.js +2 -0
  32. package/langwatch/dist/client/assets/CopyInput-D4OHtSik.js +2 -0
  33. package/langwatch/dist/client/assets/CopyableInputWithPrefix-CqmK9rdo.js +2 -0
  34. package/langwatch/dist/client/assets/CreateProjectDrawer-z3akmVmk.js +2 -0
  35. package/langwatch/dist/client/assets/CreateTeamDrawer-Cq0VeHPU.js +2 -0
  36. package/langwatch/dist/client/assets/CustomGraph-D1JcOEDG.js +2 -0
  37. package/langwatch/dist/client/assets/DashboardLayout-cHFbN-Gk.js +6 -0
  38. package/langwatch/dist/client/assets/DashboardNameDrawer-Gox6uoUt.js +2 -0
  39. package/langwatch/dist/client/assets/DataPrivacyRuleDrawer-jE8I0jR2.js +2 -0
  40. package/langwatch/dist/client/assets/DatasetEditorTable-DKIy0xQj.js +2 -0
  41. package/langwatch/dist/client/assets/DatasetPickerList-DxrvRALJ.js +2 -0
  42. package/langwatch/dist/client/assets/DatasetPreviewTable-BtNFthdy.js +2 -0
  43. package/langwatch/dist/client/assets/DatasetSelector-DnwaHRnP.js +2 -0
  44. package/langwatch/dist/client/assets/DefaultModelOverrideDrawer-CdUN3LnJ.js +2 -0
  45. package/langwatch/dist/client/assets/DeleteConfirmationDialog-DuCAmpDY.js +2 -0
  46. package/langwatch/dist/client/assets/DocsLinks-CIoxiusp.js +2 -0
  47. package/langwatch/dist/client/assets/DynamicZodForm-g1UNpH1b.js +2 -0
  48. package/langwatch/dist/client/assets/EditAutomationFilterDrawer-BTKzOnMx.js +3 -0
  49. package/langwatch/dist/client/assets/EditModelProviderDrawer-CRJeagvH.js +4 -0
  50. package/langwatch/dist/client/assets/EditProjectDrawer-B6CJf6nC.js +2 -0
  51. package/langwatch/dist/client/assets/EmojiPickerModal-DT_Uj7SU.js +3 -0
  52. package/langwatch/dist/client/assets/EnterpriseLockedSurface-BjKgoqAx.js +2 -0
  53. package/langwatch/dist/client/assets/EvaluatorApiUsageDialog-BnIwWX8t.js +107 -0
  54. package/langwatch/dist/client/assets/EvaluatorCategorySelectorDrawer-BMpitetN.js +2 -0
  55. package/langwatch/dist/client/assets/EvaluatorEditorDrawer-8SJeJRen.js +2 -0
  56. package/langwatch/dist/client/assets/EvaluatorEditorShared-BJefmSxm.js +43 -0
  57. package/langwatch/dist/client/assets/EvaluatorHistoryDrawer-D9r7pDt9.js +2 -0
  58. package/langwatch/dist/client/assets/EvaluatorListDrawer-J_BFDGv3.js +2 -0
  59. package/langwatch/dist/client/assets/EvaluatorMappingsSection-DZFvYqNu.js +2 -0
  60. package/langwatch/dist/client/assets/EvaluatorSelection-DLWkQLtb.js +2 -0
  61. package/langwatch/dist/client/assets/EvaluatorSelectionBox-CPndz_g-.js +2 -0
  62. package/langwatch/dist/client/assets/EvaluatorTypeSelectorContent-B1g5DjJ7.js +2 -0
  63. package/langwatch/dist/client/assets/EvaluatorTypeSelectorDrawer-KKfZF0P-.js +2 -0
  64. package/langwatch/dist/client/assets/ExecutionState-Dh8lIhIP.js +2 -0
  65. package/langwatch/dist/client/assets/ExternalImage-As_YKOAz.js +34 -0
  66. package/langwatch/dist/client/assets/FeatureFlagsDrawer-ClPIMzIj.js +2 -0
  67. package/langwatch/dist/client/assets/FieldInfoTooltip-s2rM7SM0.js +2 -0
  68. package/langwatch/dist/client/assets/FieldsFilters-DePzLbr2.js +2 -0
  69. package/langwatch/dist/client/assets/FilterDisplay-ClLW19sO.js +2 -0
  70. package/langwatch/dist/client/assets/FilterSidebar-_ppaUjTr.js +2 -0
  71. package/langwatch/dist/client/assets/FormatMoney-CGjDIju_.js +2 -0
  72. package/langwatch/dist/client/assets/FoundryDrawer-DGKNXqmH.js +2 -0
  73. package/langwatch/dist/client/assets/FullLogo-itaa7fj-.js +2 -0
  74. package/langwatch/dist/client/assets/GovernanceLayout-DO9JArUM.js +2 -0
  75. package/langwatch/dist/client/assets/GraphsLayout-CjPYn5X3.js +2 -0
  76. package/langwatch/dist/client/assets/GroupBindingInputRow-zL2daQIU.js +2 -0
  77. package/langwatch/dist/client/assets/GuardrailsDrawer-Cf49144Z.js +91 -0
  78. package/langwatch/dist/client/assets/History-Cyg2gtXB.js +17 -0
  79. package/langwatch/dist/client/assets/HorizontalFormControl-COLSSPyK.js +2 -0
  80. package/langwatch/dist/client/assets/HoverableBigText-BLoq2yxD.js +2 -0
  81. package/langwatch/dist/client/assets/InstallCliCard-DvH3ygIs.js +2 -0
  82. package/langwatch/dist/client/assets/IntegratePaneShell-DmBxXblY.js +8 -0
  83. package/langwatch/dist/client/assets/InviteMemberDrawer-BPyf9yg9.js +2 -0
  84. package/langwatch/dist/client/assets/LLMModelCostDrawer-Ddduogw2.js +2 -0
  85. package/langwatch/dist/client/assets/LangyContextTarget-C6xwYVGg.js +2 -0
  86. package/langwatch/dist/client/assets/LegacyTracesDeprecationBanner-BYKcrVD_.js +2 -0
  87. package/langwatch/dist/client/assets/Legend-DoNXU8yt.js +6 -0
  88. package/langwatch/dist/client/assets/Line-DVmhil3S.js +2 -0
  89. package/langwatch/dist/client/assets/LineChart-JT5Tcp_D.js +2 -0
  90. package/langwatch/dist/client/assets/ListTable-sDgRCJ9e.js +2 -0
  91. package/langwatch/dist/client/assets/LoadingScreen-XWYCoKBN.js +2 -0
  92. package/langwatch/dist/client/assets/Markdown-CjWZDaeK.js +3 -0
  93. package/langwatch/dist/client/assets/MenuLink-CCPiKN-n.js +2 -0
  94. package/langwatch/dist/client/assets/MessageCard-CbSQoH1U.js +2 -0
  95. package/langwatch/dist/client/assets/MetadataTag-B1XwJcdK.js +5 -0
  96. package/langwatch/dist/client/assets/ModelProviderCustomModelInput-DKgydORR.js +2 -0
  97. package/langwatch/dist/client/assets/ModelProviderScreen-CoHgPhxe.js +2 -0
  98. package/langwatch/dist/client/assets/ModelSelector-dbR6V8hR.js +2 -0
  99. package/langwatch/dist/client/assets/MyLayout-BCFIoFGU.js +2 -0
  100. package/langwatch/dist/client/assets/NavigationFooter-BV-y1Ccf.js +2 -0
  101. package/langwatch/dist/client/assets/NewWorkflowForm-DgYkTq45.js +2 -0
  102. package/langwatch/dist/client/assets/NoDataInfoBlock-CqSD7i-D.js +2 -0
  103. package/langwatch/dist/client/assets/OnboardingContainer-jXD3w576.js +2 -0
  104. package/langwatch/dist/client/assets/OnlineEvaluationDrawer-3RfgPXAt.js +2 -0
  105. package/langwatch/dist/client/assets/OpsPageShell-BOi49ML9.js +2 -0
  106. package/langwatch/dist/client/assets/OttlEditor-7MOJI6SZ.js +3 -0
  107. package/langwatch/dist/client/assets/OverflownText-DITOBs56.js +2 -0
  108. package/langwatch/dist/client/assets/ProjectAvatar-BOH7ULC-.js +2 -0
  109. package/langwatch/dist/client/assets/ProjectLangyLayout-D6uI0rgc.js +82 -0
  110. package/langwatch/dist/client/assets/PromptEditorDrawer-CawpMwv2.js +2 -0
  111. package/langwatch/dist/client/assets/PromptListDrawer-mJuEu6sl.js +2 -0
  112. package/langwatch/dist/client/assets/PropertySectionTitle-DM-QD_X7.js +37 -0
  113. package/langwatch/dist/client/assets/ProviderModelSelector-bu_UnJgn.js +2 -0
  114. package/langwatch/dist/client/assets/ProviderScopeChips-DAith1M3.js +2 -0
  115. package/langwatch/dist/client/assets/PushToCopiesDialog-ZhJKOmpB.js +2 -0
  116. package/langwatch/dist/client/assets/RandomColorAvatar-D4Pjdi5E.js +2 -0
  117. package/langwatch/dist/client/assets/ReferenceDot-BNL3mb_4.js +2 -0
  118. package/langwatch/dist/client/assets/RenderInputOutput-B6SIoJEE.js +261 -0
  119. package/langwatch/dist/client/assets/ScenarioFormDrawer-BreFWAEL.js +2 -0
  120. package/langwatch/dist/client/assets/ScenarioInputMappingSection-BO7xuz3Q.js +2 -0
  121. package/langwatch/dist/client/assets/ScenarioRunDetailDrawer-B7tqZUtg.js +3 -0
  122. package/langwatch/dist/client/assets/ScopeChipPicker-DW0UYA9z.js +2 -0
  123. package/langwatch/dist/client/assets/SearchInput-Q-TBf_3C.js +2 -0
  124. package/langwatch/dist/client/assets/SectionNavigationLayout-DELi2l8C.js +2 -0
  125. package/langwatch/dist/client/assets/SelectDatasetDrawer-z00GrHUJ.js +2 -0
  126. package/langwatch/dist/client/assets/SelectionActionBar-CmpsxKus.js +2 -0
  127. package/langwatch/dist/client/assets/SeriesFilterDrawer-DBl29Nft.js +2 -0
  128. package/langwatch/dist/client/assets/SettingsLayout-TFI-annu.js +2 -0
  129. package/langwatch/dist/client/assets/SetupWithAgentButton-ChiBWonD.js +4 -0
  130. package/langwatch/dist/client/assets/ShikiCommandBox-CvJJv-UK.js +5 -0
  131. package/langwatch/dist/client/assets/SpanDetails-Bf9G4Q7r.js +3 -0
  132. package/langwatch/dist/client/assets/SubscriptionPage-DojUae0-.js +2 -0
  133. package/langwatch/dist/client/assets/SuiteFormDrawer-BkSwohnS.js +2 -0
  134. package/langwatch/dist/client/assets/TabButton-IdHwwJvZ.js +3 -0
  135. package/langwatch/dist/client/assets/TableCell-BOc9hDdP.js +2 -0
  136. package/langwatch/dist/client/assets/TargetTypeSelectorDrawer-BkACL4B0.js +2 -0
  137. package/langwatch/dist/client/assets/TeamForm-CoGCbaXE.js +2 -0
  138. package/langwatch/dist/client/assets/TeamUserRoleField-DaCIsPr0.js +2 -0
  139. package/langwatch/dist/client/assets/TraceDetails-D_HPr1ii.js +9 -0
  140. package/langwatch/dist/client/assets/TraceDetailsDrawer-CFMdgFO6.js +2 -0
  141. package/langwatch/dist/client/assets/TraceIdPeek-DmsxeUlT.js +2 -0
  142. package/langwatch/dist/client/assets/TracesMapping-qL9_JqHU.js +2 -0
  143. package/langwatch/dist/client/assets/UpgradeModal-DaVSEBO2.js +92 -0
  144. package/langwatch/dist/client/assets/UpgradeModalContent-DUimbawj.js +2 -0
  145. package/langwatch/dist/client/assets/UploadCSVDrawer-2fH0dmmN.js +3 -0
  146. package/langwatch/dist/client/assets/VariablesSection-BOZytTct.js +2 -0
  147. package/langwatch/dist/client/assets/VersionBadge-BNwXa8K1.js +2 -0
  148. package/langwatch/dist/client/assets/ViaClaudeDesktopScreen-BvCK6x4i.js +1161 -0
  149. package/langwatch/dist/client/assets/ViewAutomationDrawer-CBoDRCfF.js +2 -0
  150. package/langwatch/dist/client/assets/VirtualKeySecretReveal-z9OhRCRq.js +54 -0
  151. package/langwatch/dist/client/assets/WelcomeLayout-veH9XP9n.js +2 -0
  152. package/langwatch/dist/client/assets/WithFeatureFlagGuard-D09SSCsN.js +2 -0
  153. package/langwatch/dist/client/assets/WithPermissionGuard-BBKTBlhW.js +2 -0
  154. package/langwatch/dist/client/assets/WorkflowCard-CUUg0Jb9.js +2 -0
  155. package/langwatch/dist/client/assets/WorkflowSelectorForEvaluatorDrawer-DQPMmz5y.js +2 -0
  156. package/langwatch/dist/client/assets/_...path_-Dl2wM_Co.js +2 -0
  157. package/langwatch/dist/client/assets/_Uint8Array-CVdXk-9j.js +2 -0
  158. package/langwatch/dist/client/assets/__...path__-dvuiwbR8.js +22 -0
  159. package/langwatch/dist/client/assets/_baseAssignValue-D1riHssy.js +2 -0
  160. package/langwatch/dist/client/assets/_baseClone-Btuu3kUN.js +2 -0
  161. package/langwatch/dist/client/assets/_baseEach-D42E_cYN.js +2 -0
  162. package/langwatch/dist/client/assets/_baseFor-DjY96g6R.js +2 -0
  163. package/langwatch/dist/client/assets/_experiment_-C41VDj2_.js +2 -0
  164. package/langwatch/dist/client/assets/_id_-6sd4MNOz.js +2 -0
  165. package/langwatch/dist/client/assets/_id_-7yHuXZsv.js +2 -0
  166. package/langwatch/dist/client/assets/_id_-BiJsS6cZ.js +2 -0
  167. package/langwatch/dist/client/assets/_id_-BxNfkyzv.js +2 -0
  168. package/langwatch/dist/client/assets/_id_-DjvwAa9I.js +2 -0
  169. package/langwatch/dist/client/assets/_id_-Dv1Ha5td.js +2 -0
  170. package/langwatch/dist/client/assets/_id_-qIAmzXj9.js +2 -0
  171. package/langwatch/dist/client/assets/_project_-WrF4swO9.js +8 -0
  172. package/langwatch/dist/client/assets/_runId_-uzKEhtNe.js +7 -0
  173. package/langwatch/dist/client/assets/_shell-CBKyngpn.js +2 -0
  174. package/langwatch/dist/client/assets/_slug_-B7rGjVou.js +17 -0
  175. package/langwatch/dist/client/assets/_slug_-BM065qSQ.js +2 -0
  176. package/langwatch/dist/client/assets/_slug_-DTN4hRRD.js +2 -0
  177. package/langwatch/dist/client/assets/_team_-DFCS7cLC.js +2 -0
  178. package/langwatch/dist/client/assets/_workflow_-Dm-v5D1q.js +25 -0
  179. package/langwatch/dist/client/assets/_workflow_-Od6Ld1fG.js +3 -0
  180. package/langwatch/dist/client/assets/accept-DfhUN0Qn.js +2 -0
  181. package/langwatch/dist/client/assets/activity-ikjk_AlK.js +1 -0
  182. package/langwatch/dist/client/assets/agents-BbtJ377u.js +2 -0
  183. package/langwatch/dist/client/assets/alerts-ikjk_AlK.js +1 -0
  184. package/langwatch/dist/client/assets/all-Ba9m0fkb.js +2 -0
  185. package/langwatch/dist/client/assets/analytics-BfdI38ZC.js +2 -0
  186. package/langwatch/dist/client/assets/annotation-scores-BY75kcBF.js +2 -0
  187. package/langwatch/dist/client/assets/annotations-DIwdkHHY.js +2 -0
  188. package/langwatch/dist/client/assets/anomaly-rules-BmEX38RD.js +2 -0
  189. package/langwatch/dist/client/assets/api-keys-BPifPObL.js +4 -0
  190. package/langwatch/dist/client/assets/asaplangy-BjnuNv4L.js +5 -0
  191. package/langwatch/dist/client/assets/audit-log-2z_Ec4XU.js +2 -0
  192. package/langwatch/dist/client/assets/auth-BJm09Odd.js +2 -0
  193. package/langwatch/dist/client/assets/authentication-D4a-VSlX.js +2 -0
  194. package/langwatch/dist/client/assets/authorize-BBjJ2zjw.js +2 -0
  195. package/langwatch/dist/client/assets/authorize-CHqAf3Jd.js +2 -0
  196. package/langwatch/dist/client/assets/automations-Bds5nLI_.js +2 -0
  197. package/langwatch/dist/client/assets/automations-ikjk_AlK.js +1 -0
  198. package/langwatch/dist/client/assets/billing-plans-K7xawVCS.js +2 -0
  199. package/langwatch/dist/client/assets/blank-DsMQ71pJ.js +2 -0
  200. package/langwatch/dist/client/assets/blobs-Dc7nKnmO.js +2 -0
  201. package/langwatch/dist/client/assets/blockDiagram-677ZJIJ3-57B2W0rq.js +133 -0
  202. package/langwatch/dist/client/assets/budgets-dKK-wYyg.js +3 -0
  203. package/langwatch/dist/client/assets/bug-reports-BxCDdVoL.js +2 -0
  204. package/langwatch/dist/client/assets/cache-rules-Ds14kJAt.js +2 -0
  205. package/langwatch/dist/client/assets/choose-X7Hyqyyu.js +2 -0
  206. package/langwatch/dist/client/assets/chunk-EX3LRPZG-DF3ACR9i.js +232 -0
  207. package/langwatch/dist/client/assets/chunk-FWX5IMBZ-CIlmcu0O.js +3 -0
  208. package/langwatch/dist/client/assets/chunk-PUDLZKDR-Dj_zAVVr.js +157 -0
  209. package/langwatch/dist/client/assets/chunk-RYQCIY6F-CjWAFgxP.js +2 -0
  210. package/langwatch/dist/client/assets/chunk-V7JOEXUC-BgVcuIhi.js +207 -0
  211. package/langwatch/dist/client/assets/classDiagram-OUVF2IWQ-Cw7PXCaC.js +2 -0
  212. package/langwatch/dist/client/assets/classDiagram-v2-EOCWNBFH-Cw7PXCaC.js +2 -0
  213. package/langwatch/dist/client/assets/codeAgentConfig-B0NzDmlQ.js +7 -0
  214. package/langwatch/dist/client/assets/codingDefaultSync-ebaLPfnN.js +2 -0
  215. package/langwatch/dist/client/assets/configure-CrbOTC5S.js +4 -0
  216. package/langwatch/dist/client/assets/custom-D8Emd7w-.js +12 -0
  217. package/langwatch/dist/client/assets/custom_evaluator-BtYta_Dj.js +31 -0
  218. package/langwatch/dist/client/assets/dagre-ClO7SEns.js +2 -0
  219. package/langwatch/dist/client/assets/dagre-VKFMJZFB-evqDS8UW.js +5 -0
  220. package/langwatch/dist/client/assets/data-privacy-GCArtTFq.js +2 -0
  221. package/langwatch/dist/client/assets/data-retention-BtLi9M98.js +2 -0
  222. package/langwatch/dist/client/assets/datasets-DeNG9KNJ.js +2 -0
  223. package/langwatch/dist/client/assets/debounce-r-8TPIqh.js +2 -0
  224. package/langwatch/dist/client/assets/defaultModelState-ByR0bEhZ.js +2 -0
  225. package/langwatch/dist/client/assets/dejaview-BF8VqQGI.js +2 -0
  226. package/langwatch/dist/client/assets/departments-D2L92_Qa.js +2 -0
  227. package/langwatch/dist/client/assets/devices-C8e0So_K.js +2 -0
  228. package/langwatch/dist/client/assets/dist-B1XMO10X.js +6 -0
  229. package/langwatch/dist/client/assets/drawerFromUrl-BZIwwDLm.js +2 -0
  230. package/langwatch/dist/client/assets/edit-pIB-bQM_.js +62 -0
  231. package/langwatch/dist/client/assets/email-suppressions-Bq0lhfwG.js +2 -0
  232. package/langwatch/dist/client/assets/erDiagram-Q63AITRT-BqEHcyA0.js +86 -0
  233. package/langwatch/dist/client/assets/error-2TTx9xpE.js +2 -0
  234. package/langwatch/dist/client/assets/evaluations-0Nc6rWP8.js +2 -0
  235. package/langwatch/dist/client/assets/evaluations-DHmE-YCm.js +2 -0
  236. package/langwatch/dist/client/assets/evaluators-DKbY-ajr.js +146 -0
  237. package/langwatch/dist/client/assets/evaluators-v4CDfsOE.js +2 -0
  238. package/langwatch/dist/client/assets/experiments-BRN0rGL9.js +1 -0
  239. package/langwatch/dist/client/assets/external-link-CtHzR85H.js +2 -0
  240. package/langwatch/dist/client/assets/feature-flags-BDyiuat4.js +2 -0
  241. package/langwatch/dist/client/assets/fetchSSE-GcVBzE9n.js +3 -0
  242. package/langwatch/dist/client/assets/fieldset-CIGh0Uxg.js +2 -0
  243. package/langwatch/dist/client/assets/flowDiagram-23GEKE2U-BOl-6oqO.js +1 -0
  244. package/langwatch/dist/client/assets/forgot-password-DjvudMXW.js +2 -0
  245. package/langwatch/dist/client/assets/formatMoney-ByqR-Rrd.js +2 -0
  246. package/langwatch/dist/client/assets/foundry-Co_CpgKb.js +477 -0
  247. package/langwatch/dist/client/assets/gateway-B0y3Tz7G.js +2 -0
  248. package/langwatch/dist/client/assets/getEvaluator-pJF3ehUx.js +2 -0
  249. package/langwatch/dist/client/assets/getRadiusAndStrokeWidthFromDot-Bbj-WQTj.js +2 -0
  250. package/langwatch/dist/client/assets/governance-BtuwwuRw.js +2 -0
  251. package/langwatch/dist/client/assets/graphlib-CwcejmA1.js +2 -0
  252. package/langwatch/dist/client/assets/groups-DTVa4dcS.js +2 -0
  253. package/langwatch/dist/client/assets/guardrails-BnCJsF0m.js +2 -0
  254. package/langwatch/dist/client/assets/http-BIG04f8c.js +7 -0
  255. package/langwatch/dist/client/assets/identifierUtils-B1LGnOD5.js +2 -0
  256. package/langwatch/dist/client/assets/immer-BdlOHsfO.js +14 -0
  257. package/langwatch/dist/client/assets/index-DtiounXP.js +68 -0
  258. package/langwatch/dist/client/assets/ingestion-source-detail-hmCupOG1.js +19 -0
  259. package/langwatch/dist/client/assets/ingestion-sources-sv7eDiMD.js +12 -0
  260. package/langwatch/dist/client/assets/integrations-CM7dYrOG.js +2 -0
  261. package/langwatch/dist/client/assets/isArrayLikeObject-6lUBvOUd.js +2 -0
  262. package/langwatch/dist/client/assets/isSymbol-n0ARt1yC.js +2 -0
  263. package/langwatch/dist/client/assets/langyHomeSuggestions-Oyh_vavj.js +2 -0
  264. package/langwatch/dist/client/assets/latestAliases-D_86OOcA.js +2 -0
  265. package/langwatch/dist/client/assets/license-CYtxniam.js +2 -0
  266. package/langwatch/dist/client/assets/loadModelCatalog-31-xT4W4.js +2 -0
  267. package/langwatch/dist/client/assets/map-BCpZm9Sc.js +2 -0
  268. package/langwatch/dist/client/assets/mappingValidation-DPNnGAuO.js +2 -0
  269. package/langwatch/dist/client/assets/me-1nxAV6zO.js +2 -0
  270. package/langwatch/dist/client/assets/me-wWuZrajs.js +7 -0
  271. package/langwatch/dist/client/assets/members-Bau-5CPK.js +2 -0
  272. package/langwatch/dist/client/assets/mermaid.core-oQEgcWXd.js +12 -0
  273. package/langwatch/dist/client/assets/messages-kTp5NaSm.js +2 -0
  274. package/langwatch/dist/client/assets/metrics-Cpovzjg4.js +2 -0
  275. package/langwatch/dist/client/assets/mindmap-definition-LN4V7U3C-OcYZSGuC.js +97 -0
  276. package/langwatch/dist/client/assets/model-costs-DiRpmy-H.js +2 -0
  277. package/langwatch/dist/client/assets/model-providers-DRq5Q7er.js +2 -0
  278. package/langwatch/dist/client/assets/modelProviderHelpers-STUAbD02.js +2 -0
  279. package/langwatch/dist/client/assets/my-queue-veenWZWf.js +2 -0
  280. package/langwatch/dist/client/assets/normalizeComparison-CDNTbMdZ.js +2 -0
  281. package/langwatch/dist/client/assets/not-found-Nu1odKyD.js +2 -0
  282. package/langwatch/dist/client/assets/now-BQGidI_5.js +2 -0
  283. package/langwatch/dist/client/assets/onboarding-BWJ038z8.js +2 -0
  284. package/langwatch/dist/client/assets/online-evaluations-k-WwH1ML.js +2 -0
  285. package/langwatch/dist/client/assets/ops-D9am3MEi.js +2 -0
  286. package/langwatch/dist/client/assets/organizations-CMTT_97U.js +2 -0
  287. package/langwatch/dist/client/assets/pages-D5p_o0LC.js +2 -0
  288. package/langwatch/dist/client/assets/persistence-jLMreGhL.js +2 -0
  289. package/langwatch/dist/client/assets/plans-v8LBcXa9.js +2 -0
  290. package/langwatch/dist/client/assets/product-CAja-R4_.js +2 -0
  291. package/langwatch/dist/client/assets/project-DbS0dYGR.js +2 -0
  292. package/langwatch/dist/client/assets/projections-B4mXJEvc.js +2 -0
  293. package/langwatch/dist/client/assets/projects-DnYaZW6w.js +2 -0
  294. package/langwatch/dist/client/assets/promptHandle-CQ_zUeRB.js +2 -0
  295. package/langwatch/dist/client/assets/prompts-BAxWZhm5.js +8 -0
  296. package/langwatch/dist/client/assets/radio-group-y_PtCP6q.js +2 -0
  297. package/langwatch/dist/client/assets/registry-KCPOxhx0.js +2 -0
  298. package/langwatch/dist/client/assets/reports-B_Y4pHYs.js +2 -0
  299. package/langwatch/dist/client/assets/request-bU99z82H.js +2 -0
  300. package/langwatch/dist/client/assets/requirementDiagram-TGXJPOKE-BYId9zaF.js +85 -0
  301. package/langwatch/dist/client/assets/reset-password-zMr6-23y.js +2 -0
  302. package/langwatch/dist/client/assets/role-bindings-BvPzAUj1.js +2 -0
  303. package/langwatch/dist/client/assets/roles-CjwqOKoo.js +2 -0
  304. package/langwatch/dist/client/assets/routing-policies-C7yjQJuY.js +5 -0
  305. package/langwatch/dist/client/assets/scenarios-CdrzuCtM.js +2 -0
  306. package/langwatch/dist/client/assets/scheduler-CfXVwiOa.js +2 -0
  307. package/langwatch/dist/client/assets/schedules-ikjk_AlK.js +1 -0
  308. package/langwatch/dist/client/assets/scim-CGJ8MwNu.js +2 -0
  309. package/langwatch/dist/client/assets/secrets-DZef0jTb.js +2 -0
  310. package/langwatch/dist/client/assets/segment-group-EW0AyNd-.js +2 -0
  311. package/langwatch/dist/client/assets/segmented-control-SS4Yq_Ti.js +2 -0
  312. package/langwatch/dist/client/assets/select-C5JAM7Gf.js +2 -0
  313. package/langwatch/dist/client/assets/send-TZcuPW9Z.js +2 -0
  314. package/langwatch/dist/client/assets/sequenceView-vubFe0e7.js +5 -0
  315. package/langwatch/dist/client/assets/seriesOptions-0YtTiTzZ.js +1011 -0
  316. package/langwatch/dist/client/assets/settings-CfAtn_PH.js +2 -0
  317. package/langwatch/dist/client/assets/setup-In6OXn3a.js +2 -0
  318. package/langwatch/dist/client/assets/shikiAdapter-lZp3oxvk.js +3 -0
  319. package/langwatch/dist/client/assets/signin-CMU_rlgk.js +2 -0
  320. package/langwatch/dist/client/assets/signup-CYKtIfrB.js +2 -0
  321. package/langwatch/dist/client/assets/stateDiagram-2N3HPSRC-CKO-9021.js +2 -0
  322. package/langwatch/dist/client/assets/stateDiagram-v2-6OUMAXLB-BnXuBsJr.js +2 -0
  323. package/langwatch/dist/client/assets/subscription-CBiotOK9.js +3 -0
  324. package/langwatch/dist/client/assets/subscriptions-D55paZaw.js +2 -0
  325. package/langwatch/dist/client/assets/suggestionUI-KPD1is36.js +106 -0
  326. package/langwatch/dist/client/assets/swimlanes-5IMT3BWC-B0ptAIsf.js +3 -0
  327. package/langwatch/dist/client/assets/swimlanesDiagram-G3AALYLV-DzqdWH4x.js +9 -0
  328. package/langwatch/dist/client/assets/switch-BOt3Np6s.js +2 -0
  329. package/langwatch/dist/client/assets/switch-BnyTlP1L.js +2 -0
  330. package/langwatch/dist/client/assets/tabs-D8PJtlU3.js +2 -0
  331. package/langwatch/dist/client/assets/teams-CE3UCC84.js +2 -0
  332. package/langwatch/dist/client/assets/teams-CxmVu0zp.js +2 -0
  333. package/langwatch/dist/client/assets/tool-catalog-DTTKCxyF.js +7 -0
  334. package/langwatch/dist/client/assets/toolIcons-n2K5OHKw.js +2 -0
  335. package/langwatch/dist/client/assets/tooltip-CYWvZEOf.js +2 -0
  336. package/langwatch/dist/client/assets/topic-clustering-C37AbBFy.js +2 -0
  337. package/langwatch/dist/client/assets/topics-rviNSdYR.js +2 -0
  338. package/langwatch/dist/client/assets/traceExecutor-DQlsNg6N.js +55 -0
  339. package/langwatch/dist/client/assets/traces-DnlS2lMP.js +289 -0
  340. package/langwatch/dist/client/assets/tracesMapping-DJvqZsfB.js +3 -0
  341. package/langwatch/dist/client/assets/tracking-6s9dX1_R.js +2 -0
  342. package/langwatch/dist/client/assets/types-BeNupKna.js +2 -0
  343. package/langwatch/dist/client/assets/types-ChBnYRcc.js +2 -0
  344. package/langwatch/dist/client/assets/types-DXVP3BA7.js +2 -0
  345. package/langwatch/dist/client/assets/types-atzk7phf.js +2 -0
  346. package/langwatch/dist/client/assets/unsubscribe-uUCCImkQ.js +2 -0
  347. package/langwatch/dist/client/assets/usage-DBjFOkD3.js +2 -0
  348. package/langwatch/dist/client/assets/usage-De8DbhVE.js +2 -0
  349. package/langwatch/dist/client/assets/use-breakpoint-BdbDgj6J.js +2 -0
  350. package/langwatch/dist/client/assets/use-generic-onboarding-flow-CQjNkSYf.js +2 -0
  351. package/langwatch/dist/client/assets/useActivePlan-DZotDN7k.js +2 -0
  352. package/langwatch/dist/client/assets/useAllPromptsForProject-yZtsv1kJ.js +2 -0
  353. package/langwatch/dist/client/assets/useAnnotationQueues-BJ8Vb6SZ.js +2 -0
  354. package/langwatch/dist/client/assets/useAvailableEvaluators-C6cl3TSs.js +2 -0
  355. package/langwatch/dist/client/assets/useCyclingVerb-CMPh6fkl.js +2 -0
  356. package/langwatch/dist/client/assets/useDepartmentColumn-C4l1_4BR.js +2 -0
  357. package/langwatch/dist/client/assets/useEvaluationsV3Store-CMnxA8pt.js +2 -0
  358. package/langwatch/dist/client/assets/useExportTraces-DzTqFSlc.js +2 -0
  359. package/langwatch/dist/client/assets/useFeatureFlag-CKFU9lsX.js +2 -0
  360. package/langwatch/dist/client/assets/useInviteActions-CNRL7usw.js +2 -0
  361. package/langwatch/dist/client/assets/useLicenseEnforcement-BIiCopDI.js +2 -0
  362. package/langwatch/dist/client/assets/useLiteMemberGuard-ChV0lUs4.js +43 -0
  363. package/langwatch/dist/client/assets/usePersonalContext-D-HsFKQo.js +2 -0
  364. package/langwatch/dist/client/assets/useProjectSpanNames-BKMm-yLN.js +2 -0
  365. package/langwatch/dist/client/assets/useProjectsForCopy-BPGjhWUl.js +2 -0
  366. package/langwatch/dist/client/assets/useRunViaApiTabs-BGv2kygX.js +50 -0
  367. package/langwatch/dist/client/assets/useSavedViews-DH6Poufh.js +2 -0
  368. package/langwatch/dist/client/assets/useShowLangy-DvcJ7z1U.js +2 -0
  369. package/langwatch/dist/client/assets/useSimulationUpdateListener-CcqEq03v.js +2 -0
  370. package/langwatch/dist/client/assets/useTargetName-CByKsdU-.js +2 -0
  371. package/langwatch/dist/client/assets/useTargetNameMap-C8kjUxhY.js +2 -0
  372. package/langwatch/dist/client/assets/useTraceDetailsDrawer-BgcNOady.js +2 -0
  373. package/langwatch/dist/client/assets/useTraceUpdateListener-D5UNLNbd.js +2 -0
  374. package/langwatch/dist/client/assets/useUrlScopeFilter-D0HZ-mkj.js +2 -0
  375. package/langwatch/dist/client/assets/useWorkflowStore-CVvg8K0Q.js +8 -0
  376. package/langwatch/dist/client/assets/users-802bPAIG.js +2 -0
  377. package/langwatch/dist/client/assets/users-CWkRn-Tl.js +2 -0
  378. package/langwatch/dist/client/assets/users-DhJ0ZUHi.js +2 -0
  379. package/langwatch/dist/client/assets/v3-D65ySaeM.js +2 -0
  380. package/langwatch/dist/client/assets/variables-BpyyIkKh.js +396 -0
  381. package/langwatch/dist/client/assets/viewStore-Bq2Jqc8R.js +2 -0
  382. package/langwatch/dist/client/assets/virtual-keys-Cbeg9TQU.js +2 -0
  383. package/langwatch/dist/client/assets/welcome-Bh4D-qW7.js +16 -0
  384. package/langwatch/dist/client/assets/wizard-spBSxei8.js +2 -0
  385. package/langwatch/dist/client/assets/workbench-Bid7wYk7.js +2 -0
  386. package/langwatch/dist/client/assets/workflows-1TodsGOO.js +3 -0
  387. package/langwatch/dist/client/assets/wrap-noqflF_F.js +2 -0
  388. package/langwatch/dist/client/index.html +1 -1
  389. package/langwatch/package.json +1 -1
  390. package/langwatch/packages/api/README.md +283 -0
  391. package/langwatch/packages/api/node_modules/.bin/tsc +21 -0
  392. package/langwatch/packages/api/node_modules/.bin/tsserver +21 -0
  393. package/langwatch/packages/api/node_modules/.bin/vitest +21 -0
  394. package/langwatch/packages/api/package.json +39 -0
  395. package/langwatch/packages/api/src/__tests__/builder.unit.test.ts +1135 -0
  396. package/langwatch/packages/api/src/__tests__/errorLogging.integration.test.ts +130 -0
  397. package/langwatch/packages/api/src/__tests__/errors.unit.test.ts +331 -0
  398. package/langwatch/packages/api/src/__tests__/sse.unit.test.ts +247 -0
  399. package/langwatch/packages/api/src/__tests__/versioning.unit.test.ts +379 -0
  400. package/langwatch/packages/api/src/builder.ts +163 -0
  401. package/langwatch/packages/api/src/errors.ts +255 -0
  402. package/langwatch/packages/api/src/index.ts +41 -0
  403. package/langwatch/packages/api/src/middleware.ts +227 -0
  404. package/langwatch/packages/api/src/pipeline.ts +254 -0
  405. package/langwatch/packages/api/src/response.ts +38 -0
  406. package/langwatch/packages/api/src/route-mounting.ts +140 -0
  407. package/langwatch/packages/api/src/sse.ts +179 -0
  408. package/langwatch/packages/api/src/types.ts +217 -0
  409. package/langwatch/packages/api/src/version-builder.ts +131 -0
  410. package/langwatch/packages/api/src/versioning.ts +221 -0
  411. package/langwatch/packages/api/tsconfig.json +16 -0
  412. package/langwatch/packages/api/vitest.config.ts +8 -0
  413. package/langwatch/packages/automations/README.md +17 -0
  414. package/langwatch/packages/automations/node_modules/.bin/liquid +21 -0
  415. package/langwatch/packages/automations/node_modules/.bin/liquidjs +21 -0
  416. package/langwatch/packages/automations/node_modules/.bin/marked +21 -0
  417. package/langwatch/packages/automations/node_modules/.bin/tsc +21 -0
  418. package/langwatch/packages/automations/node_modules/.bin/tsserver +21 -0
  419. package/langwatch/packages/automations/node_modules/.bin/vitest +21 -0
  420. package/langwatch/packages/automations/package.json +43 -0
  421. package/langwatch/packages/automations/src/cadences.ts +50 -0
  422. package/langwatch/packages/automations/src/enums.ts +24 -0
  423. package/langwatch/packages/automations/src/index.ts +26 -0
  424. package/langwatch/packages/automations/src/providers/__tests__/webhook.unit.test.ts +147 -0
  425. package/langwatch/packages/automations/src/providers/annotationQueue.ts +26 -0
  426. package/langwatch/packages/automations/src/providers/dataset.ts +43 -0
  427. package/langwatch/packages/automations/src/providers/email.ts +36 -0
  428. package/langwatch/packages/automations/src/providers/slack.ts +96 -0
  429. package/langwatch/packages/automations/src/providers/types.ts +84 -0
  430. package/langwatch/packages/automations/src/providers/webhook.ts +137 -0
  431. package/langwatch/packages/automations/src/templating/__tests__/alertDefaultsRender.unit.test.ts +133 -0
  432. package/langwatch/packages/automations/src/templating/__tests__/blockKitAllowlist.unit.test.ts +723 -0
  433. package/langwatch/packages/automations/src/templating/__tests__/engine.unit.test.ts +106 -0
  434. package/langwatch/packages/automations/src/templating/__tests__/exampleContext.unit.test.ts +39 -0
  435. package/langwatch/packages/automations/src/templating/__tests__/fixtures.ts +42 -0
  436. package/langwatch/packages/automations/src/templating/__tests__/graphAlertTemplateContext.unit.test.ts +260 -0
  437. package/langwatch/packages/automations/src/templating/__tests__/markdown.unit.test.ts +71 -0
  438. package/langwatch/packages/automations/src/templating/__tests__/renderEmail.unit.test.ts +183 -0
  439. package/langwatch/packages/automations/src/templating/__tests__/renderSlack.unit.test.ts +233 -0
  440. package/langwatch/packages/automations/src/templating/__tests__/renderWebhookBody.unit.test.ts +145 -0
  441. package/langwatch/packages/automations/src/templating/__tests__/reportDefaultsRender.unit.test.ts +148 -0
  442. package/langwatch/packages/automations/src/templating/__tests__/templateContext.unit.test.ts +137 -0
  443. package/langwatch/packages/automations/src/templating/__tests__/validate.unit.test.ts +28 -0
  444. package/langwatch/packages/automations/src/templating/banner.ts +29 -0
  445. package/langwatch/packages/automations/src/templating/blockKitAllowlist.ts +662 -0
  446. package/langwatch/packages/automations/src/templating/defaults.ts +400 -0
  447. package/langwatch/packages/automations/src/templating/emailLayout.ts +59 -0
  448. package/langwatch/packages/automations/src/templating/engine.ts +255 -0
  449. package/langwatch/packages/automations/src/templating/exampleContext.ts +171 -0
  450. package/langwatch/packages/automations/src/templating/markdown.ts +61 -0
  451. package/langwatch/packages/automations/src/templating/renderEmail.ts +112 -0
  452. package/langwatch/packages/automations/src/templating/renderSlack.ts +184 -0
  453. package/langwatch/packages/automations/src/templating/renderWebhookBody.ts +105 -0
  454. package/langwatch/packages/automations/src/templating/renderWithFallback.ts +54 -0
  455. package/langwatch/packages/automations/src/templating/templateContext.ts +812 -0
  456. package/langwatch/packages/automations/src/templating/validate.ts +24 -0
  457. package/langwatch/packages/automations/tsconfig.json +18 -0
  458. package/langwatch/packages/automations/vitest.config.ts +8 -0
  459. package/langwatch/packages/observability/README.md +86 -0
  460. package/langwatch/packages/observability/node_modules/.bin/esbuild +18 -0
  461. package/langwatch/packages/observability/node_modules/.bin/pino +21 -0
  462. package/langwatch/packages/observability/node_modules/.bin/pino-pretty +21 -0
  463. package/langwatch/packages/observability/node_modules/.bin/tsc +21 -0
  464. package/langwatch/packages/observability/node_modules/.bin/tsserver +21 -0
  465. package/langwatch/packages/observability/node_modules/.bin/vitest +21 -0
  466. package/langwatch/packages/observability/package.json +44 -0
  467. package/langwatch/packages/observability/src/__tests__/browserSafety.unit.test.ts +14 -0
  468. package/langwatch/packages/observability/src/__tests__/context.unit.test.ts +228 -0
  469. package/langwatch/packages/observability/src/__tests__/logger.unit.test.ts +227 -0
  470. package/langwatch/packages/observability/src/__tests__/requestLogging.unit.test.ts +252 -0
  471. package/langwatch/packages/observability/src/__tests__/runtimeSafety.unit.test.ts +96 -0
  472. package/langwatch/packages/observability/src/__tests__/traceContext.unit.test.ts +108 -0
  473. package/langwatch/packages/observability/src/constants.ts +46 -0
  474. package/langwatch/packages/observability/src/context/core.ts +124 -0
  475. package/langwatch/packages/observability/src/context/index.ts +19 -0
  476. package/langwatch/packages/observability/src/context/logging.ts +24 -0
  477. package/langwatch/packages/observability/src/index.ts +32 -0
  478. package/langwatch/packages/observability/src/logger.ts +280 -0
  479. package/langwatch/packages/observability/src/request/requestLogging.ts +131 -0
  480. package/langwatch/packages/observability/src/trace/traceContext.ts +56 -0
  481. package/langwatch/packages/observability/tsconfig.json +16 -0
  482. package/langwatch/packages/observability/vitest.config.ts +8 -0
  483. package/langwatch/packages/react-rum/node_modules/.bin/tsc +21 -0
  484. package/langwatch/packages/react-rum/node_modules/.bin/tsserver +21 -0
  485. package/langwatch/packages/react-rum/node_modules/.bin/vitest +21 -0
  486. package/langwatch/packages/react-rum/package.json +43 -0
  487. package/langwatch/packages/react-rum/src/browserTracing.ts +130 -0
  488. package/langwatch/packages/react-rum/src/constants.ts +67 -0
  489. package/langwatch/packages/react-rum/src/index.ts +34 -0
  490. package/langwatch/packages/react-rum/src/navigation.test.ts +188 -0
  491. package/langwatch/packages/react-rum/src/navigation.ts +189 -0
  492. package/langwatch/packages/react-rum/src/navigationContextManager.ts +71 -0
  493. package/langwatch/packages/react-rum/src/sampling.test.ts +182 -0
  494. package/langwatch/packages/react-rum/src/sampling.ts +124 -0
  495. package/langwatch/packages/react-rum/src/session.test.ts +85 -0
  496. package/langwatch/packages/react-rum/src/session.ts +62 -0
  497. package/langwatch/packages/react-rum/src/sessionSpanProcessor.ts +34 -0
  498. package/langwatch/packages/react-rum/tsconfig.json +18 -0
  499. package/langwatch/packages/react-rum/vitest.config.ts +8 -0
  500. package/langwatch/packages/redaction/node_modules/.bin/tsc +21 -0
  501. package/langwatch/packages/redaction/node_modules/.bin/tsserver +21 -0
  502. package/langwatch/packages/redaction/node_modules/.bin/vitest +21 -0
  503. package/langwatch/packages/redaction/package.json +29 -0
  504. package/langwatch/packages/redaction/src/__tests__/secrets.unit.test.ts +226 -0
  505. package/langwatch/packages/redaction/src/__tests__/sessionReport.unit.test.ts +239 -0
  506. package/langwatch/packages/redaction/src/index.ts +29 -0
  507. package/langwatch/packages/redaction/src/markers.ts +101 -0
  508. package/langwatch/packages/redaction/src/secrets.ts +286 -0
  509. package/langwatch/packages/redaction/src/sessionReport.ts +356 -0
  510. package/langwatch/packages/redaction/tsconfig.json +18 -0
  511. package/langwatch/packages/ssrf/node_modules/.bin/tsc +21 -0
  512. package/langwatch/packages/ssrf/node_modules/.bin/tsserver +21 -0
  513. package/langwatch/packages/ssrf/node_modules/.bin/vitest +21 -0
  514. package/langwatch/packages/ssrf/package.json +29 -0
  515. package/langwatch/packages/ssrf/src/index.test.ts +72 -0
  516. package/langwatch/packages/ssrf/src/index.ts +320 -0
  517. package/langwatch/packages/ssrf/tsconfig.json +18 -0
  518. package/langwatch/packages/ssrf/vitest.config.ts +8 -0
  519. package/langwatch/scripts/__tests__/bug-report-discovery.unit.test.ts +37 -0
  520. package/langwatch/scripts/build-mcp-server.sh +15 -0
  521. package/langwatch/scripts/generate-langy-skills.ts +10 -0
  522. package/langwatch/scripts/update-matrix-provider-keys.ts +1 -1
  523. package/langwatch/src/components/EditModelProviderDrawer.tsx +7 -1
  524. package/langwatch/src/components/settings/ModelProviderCredentialsSection.tsx +13 -21
  525. package/langwatch/src/components/settings/ModelProviderForm.tsx +32 -3
  526. package/langwatch/src/components/settings/__tests__/ModelProviderForm.credential-preservation.integration.test.tsx +277 -0
  527. package/langwatch/src/components/settings/__tests__/ModelProviderForm.credential-requiredness.integration.test.tsx +260 -0
  528. package/langwatch/src/components/settings/__tests__/modelProviderDrawerHarness.tsx +152 -0
  529. package/langwatch/src/features/onboarding/components/sections/model-provider/ModelProviderSetup.tsx +7 -3
  530. package/langwatch/src/hooks/__tests__/useProviderFormSubmit.integration.test.tsx +7 -1
  531. package/langwatch/src/hooks/useModelProviderApiKeyValidation.ts +25 -4
  532. package/langwatch/src/hooks/useModelProviderFields.ts +45 -37
  533. package/langwatch/src/hooks/useModelProviderForm.ts +2 -0
  534. package/langwatch/src/hooks/useProviderFormSubmit.ts +27 -19
  535. package/langwatch/src/hooks/useRequiredCredentialKeys.ts +38 -0
  536. package/langwatch/src/pages/settings/__tests__/model-providers.no-project.integration.test.tsx +508 -0
  537. package/langwatch/src/pages/settings/model-providers.tsx +19 -97
  538. package/langwatch/src/server/api/routers/__tests__/prepareEnvKeys.unit.test.ts +56 -0
  539. package/langwatch/src/server/api/routers/modelProviders.ts +146 -15
  540. package/langwatch/src/server/api/routers/modelProviders.utils.ts +1 -10
  541. package/langwatch/src/server/app-layer/traces/__tests__/audio-model-cost.unit.test.ts +133 -0
  542. package/langwatch/src/server/app-layer/traces/canonicalisation/extractors/_constants.ts +6 -0
  543. package/langwatch/src/server/app-layer/traces/model-cost-matching.ts +17 -1
  544. package/langwatch/src/server/app-layer/traces/repositories/__tests__/span-storage.clickhouse.repository.unit.test.ts +6 -0
  545. package/langwatch/src/server/app-layer/traces/repositories/span-storage.clickhouse.repository.ts +6 -0
  546. package/langwatch/src/server/gateway/__tests__/config.materialiser.integration.test.ts +132 -3
  547. package/langwatch/src/server/gateway/config.materialiser.ts +11 -9
  548. package/langwatch/src/server/modelProviders/__tests__/modelProvider.credentialPreservation.integration.test.ts +206 -0
  549. package/langwatch/src/server/modelProviders/__tests__/modelProvider.deleteScope.integration.test.ts +0 -4
  550. package/langwatch/src/server/modelProviders/__tests__/modelProvider.noProject.integration.test.ts +748 -0
  551. package/langwatch/src/server/modelProviders/__tests__/modelProvider.repository.integration.test.ts +3 -3
  552. package/langwatch/src/server/modelProviders/__tests__/modelProvider.repository.unit.test.ts +7 -8
  553. package/langwatch/src/server/modelProviders/__tests__/modelProvider.service.extraHeaders.unit.test.ts +0 -5
  554. package/langwatch/src/server/modelProviders/__tests__/modelProvider.service.unit.test.ts +5 -1
  555. package/langwatch/src/server/modelProviders/__tests__/registry.unit.test.ts +31 -0
  556. package/langwatch/src/server/modelProviders/llmModelCost.tsx +20 -2
  557. package/langwatch/src/server/modelProviders/llmModels.json +736 -209
  558. package/langwatch/src/server/modelProviders/llmModels.overlay.json +149 -2
  559. package/langwatch/src/server/modelProviders/llmModels.types.ts +9 -2
  560. package/langwatch/src/server/modelProviders/modelProvider.repository.ts +10 -12
  561. package/langwatch/src/server/modelProviders/modelProvider.service.ts +142 -34
  562. package/langwatch/src/server/modelProviders/registry.ts +45 -15
  563. package/langwatch/src/server/tracer/collector/cost.ts +15 -2
  564. package/langwatch/src/utils/__tests__/modelProviderCredentialRules.unit.test.ts +259 -0
  565. package/langwatch/src/utils/__tests__/modelProviderHelpers.unit.test.ts +12 -0
  566. package/langwatch/src/utils/modelProviderHelpers.ts +207 -16
  567. package/package.json +5 -1
  568. package/packages/handled-error/node_modules/.bin/tsc +21 -0
  569. package/packages/handled-error/node_modules/.bin/tsserver +21 -0
  570. package/packages/handled-error/node_modules/.bin/vitest +21 -0
  571. package/packages/handled-error/package.json +31 -0
  572. package/packages/handled-error/src/handled-error.test.ts +305 -0
  573. package/packages/handled-error/src/handled-error.ts +431 -0
  574. package/packages/handled-error/src/index.ts +16 -0
  575. package/packages/handled-error/tsconfig.json +22 -0
  576. package/packages/langy/node_modules/.bin/tsc +21 -0
  577. package/packages/langy/node_modules/.bin/tsserver +21 -0
  578. package/packages/langy/node_modules/.bin/vitest +21 -0
  579. package/packages/langy/package.json +40 -0
  580. package/packages/langy/src/cards/cliJson.ts +95 -0
  581. package/packages/langy/src/cards/cliJson.unit.test.ts +80 -0
  582. package/packages/langy/src/cards/created-resource.unit.test.ts +137 -0
  583. package/packages/langy/src/cards/derived-safe.ts +265 -0
  584. package/packages/langy/src/cards/derived-safe.unit.test.ts +283 -0
  585. package/packages/langy/src/cards/digest.ts +247 -0
  586. package/packages/langy/src/cards/digest.unit.test.ts +230 -0
  587. package/packages/langy/src/cards/handled-error.ts +697 -0
  588. package/packages/langy/src/cards/handled-error.unit.test.ts +795 -0
  589. package/packages/langy/src/cards/index.ts +51 -0
  590. package/packages/langy/src/cards/primitives.ts +113 -0
  591. package/packages/langy/src/cards/promotion.unit.test.ts +253 -0
  592. package/packages/langy/src/cards/registry.ts +450 -0
  593. package/packages/langy/src/cards/registry.unit.test.ts +141 -0
  594. package/packages/langy/src/cards/schemas.ts +561 -0
  595. package/packages/langy/src/cards/tool-result.ts +151 -0
  596. package/packages/langy/src/cards/tool-result.unit.test.ts +37 -0
  597. package/packages/langy/src/constants.ts +253 -0
  598. package/packages/langy/src/event-sourcing/contracts/cursor.ts +46 -0
  599. package/packages/langy/src/event-sourcing/contracts/cursor.unit.test.ts +66 -0
  600. package/packages/langy/src/event-sourcing/contracts/events.ts +345 -0
  601. package/packages/langy/src/event-sourcing/contracts/turnWire.ts +81 -0
  602. package/packages/langy/src/event-sourcing/folds/conversationFold.ts +413 -0
  603. package/packages/langy/src/event-sourcing/folds/messageMap.ts +71 -0
  604. package/packages/langy/src/event-sourcing/folds/turnFold.ts +372 -0
  605. package/packages/langy/src/event-sourcing/folds/turnFold.unit.test.ts +217 -0
  606. package/packages/langy/src/event-sourcing/turnPhase.ts +124 -0
  607. package/packages/langy/src/event-sourcing/turnPhase.unit.test.ts +110 -0
  608. package/packages/langy/src/event-sourcing/turnProjection.ts +120 -0
  609. package/packages/langy/src/event-sourcing/turnProjection.unit.test.ts +207 -0
  610. package/packages/langy/src/index.ts +16 -0
  611. package/packages/langy/src/inline-channel/choices.ts +136 -0
  612. package/packages/langy/src/inline-channel/choices.unit.test.ts +213 -0
  613. package/packages/langy/src/inline-channel/fence.ts +125 -0
  614. package/packages/langy/src/inline-channel/fence.unit.test.ts +112 -0
  615. package/packages/langy/src/inline-channel/parts.ts +85 -0
  616. package/packages/langy/src/inline-channel/parts.unit.test.ts +100 -0
  617. package/packages/langy/src/inline-channel/preview.ts +68 -0
  618. package/packages/langy/src/inline-channel/preview.unit.test.ts +116 -0
  619. package/packages/langy/src/inline-channel/salvage.ts +260 -0
  620. package/packages/langy/src/inline-channel/salvage.unit.test.ts +135 -0
  621. package/packages/langy/src/json.ts +47 -0
  622. package/packages/langy/tsconfig.json +22 -0
  623. package/packages/server/dist/cli.cjs +11045 -10616
  624. package/python-sdk/src/langwatch/openai.py +107 -28
  625. package/skills/.env.example +1 -0
  626. package/skills/.release-please-shim +1 -0
  627. package/skills/CHANGELOG.md +158 -0
  628. package/skills/README.md +99 -0
  629. package/skills/_compiled/README.md +43 -0
  630. package/skills/_compiled/generate.sh +31 -0
  631. package/skills/_compiled/native/agent-best-practices/SKILL.md +91 -0
  632. package/skills/_compiled/native/agent-improve/SKILL.md +133 -0
  633. package/skills/_compiled/native/agent-performance/SKILL.md +125 -0
  634. package/skills/_compiled/native/datasets/SKILL.md +437 -0
  635. package/skills/_compiled/native/debug-instrumentation/SKILL.md +104 -0
  636. package/skills/_compiled/native/debug-with-langwatch/SKILL.md +109 -0
  637. package/skills/_compiled/native/eval-triage/SKILL.md +87 -0
  638. package/skills/_compiled/native/evaluate-multimodal/SKILL.md +121 -0
  639. package/skills/_compiled/native/evaluations/SKILL.md +58 -0
  640. package/skills/_compiled/native/experiments/SKILL.md +191 -0
  641. package/skills/_compiled/native/generate-rag-dataset/SKILL.md +123 -0
  642. package/skills/_compiled/native/github/SKILL.md +107 -0
  643. package/skills/_compiled/native/level-up/SKILL.md +149 -0
  644. package/skills/_compiled/native/online-evaluations/SKILL.md +179 -0
  645. package/skills/_compiled/native/prompts/SKILL.md +187 -0
  646. package/skills/_compiled/native/scenarios/SKILL.md +924 -0
  647. package/skills/_compiled/native/setup-lw/SKILL.md +82 -0
  648. package/skills/_compiled/native/test-cli-usability/SKILL.md +109 -0
  649. package/skills/_compiled/native/test-compliance/SKILL.md +160 -0
  650. package/skills/_compiled/native/tracing/SKILL.md +115 -0
  651. package/skills/_compiler/compile.ts +181 -0
  652. package/skills/_compiler/native.ts +74 -0
  653. package/skills/_lib/feature-skills.ts +66 -0
  654. package/skills/_lib/frontmatter.ts +21 -0
  655. package/skills/_lib/mdx-inline.ts +148 -0
  656. package/skills/_publish/sync.ts +73 -0
  657. package/skills/_shared/api-key-setup.mdx +1 -0
  658. package/skills/_shared/cli-install.mdx +1 -0
  659. package/skills/_shared/cli-setup.mdx +15 -0
  660. package/skills/_shared/consultant-mode.mdx +9 -0
  661. package/skills/_shared/plan-limits.mdx +8 -0
  662. package/skills/_shared/projects-and-api-keys.mdx +13 -0
  663. package/skills/_tests/README.md +47 -0
  664. package/skills/_tests/agent-best-practices.scenario.test.ts +79 -0
  665. package/skills/_tests/agent-improve.scenario.test.ts +90 -0
  666. package/skills/_tests/agent-performance.scenario.test.ts +110 -0
  667. package/skills/_tests/claude-code-adapter.test.ts +70 -0
  668. package/skills/_tests/cli-auth.scenario.test.ts +171 -0
  669. package/skills/_tests/cli-comprehensive.scenario.test.ts +171 -0
  670. package/skills/_tests/cli-crud.scenario.test.ts +245 -0
  671. package/skills/_tests/cli-gateway-coding-agents.scenario.test.ts +597 -0
  672. package/skills/_tests/cli-gateway.scenario.test.ts +254 -0
  673. package/skills/_tests/cli-projects-api-keys.scenario.test.ts +182 -0
  674. package/skills/_tests/cli-suites.scenario.test.ts +234 -0
  675. package/skills/_tests/datasets.scenario.test.ts +586 -0
  676. package/skills/_tests/docs-skills-pages.test.ts +206 -0
  677. package/skills/_tests/evaluation-skill-boundaries.test.ts +84 -0
  678. package/skills/_tests/experiments-faithfulness.scenario.test.ts +80 -0
  679. package/skills/_tests/experiments-python-langgraph.scenario.test.ts +80 -0
  680. package/skills/_tests/experiments-python-openai.scenario.test.ts +110 -0
  681. package/skills/_tests/experiments-rag.scenario.test.ts +88 -0
  682. package/skills/_tests/experiments-typescript-vercel.scenario.test.ts +80 -0
  683. package/skills/_tests/fixtures/cli-prompts/python-with-prompts/main.py +24 -0
  684. package/skills/_tests/fixtures/python-agno/main.py +14 -0
  685. package/skills/_tests/fixtures/python-google-adk/main.py +28 -0
  686. package/skills/_tests/fixtures/python-health-agent/main.py +32 -0
  687. package/skills/_tests/fixtures/python-langgraph/main.py +35 -0
  688. package/skills/_tests/fixtures/python-openai/main.py +36 -0
  689. package/skills/_tests/fixtures/python-rag-agent/main.py +53 -0
  690. package/skills/_tests/fixtures/typescript-mastra/index.ts +11 -0
  691. package/skills/_tests/fixtures/typescript-vercel/index.ts +16 -0
  692. package/skills/_tests/fixtures/typescript-voice/index.ts +18 -0
  693. package/skills/_tests/helpers/claude-code-adapter.ts +387 -0
  694. package/skills/_tests/helpers/experiments-scenario.ts +197 -0
  695. package/skills/_tests/helpers/judge-model.ts +12 -0
  696. package/skills/_tests/level-up.scenario.test.ts +236 -0
  697. package/skills/_tests/native-skills.test.ts +191 -0
  698. package/skills/_tests/online-evaluations.scenario.test.ts +257 -0
  699. package/skills/_tests/prompts-cli.scenario.test.ts +330 -0
  700. package/skills/_tests/prompts.scenario.test.ts +434 -0
  701. package/skills/_tests/publish-sync.test.ts +119 -0
  702. package/skills/_tests/recipes.scenario.test.ts +343 -0
  703. package/skills/_tests/scenarios.scenario.test.ts +884 -0
  704. package/skills/_tests/tracing.scenario.test.ts +472 -0
  705. package/skills/_tests/voice-factories.test.ts +60 -0
  706. package/skills/agent-improve/SKILL.mdx +100 -0
  707. package/skills/agent-performance/SKILL.mdx +102 -0
  708. package/skills/datasets/SKILL.mdx +416 -0
  709. package/skills/evaluations/SKILL.mdx +57 -0
  710. package/skills/experiments/SKILL.mdx +155 -0
  711. package/skills/github/SKILL.mdx +107 -0
  712. package/skills/initial-prompt.md +66 -0
  713. package/skills/level-up/SKILL.mdx +112 -0
  714. package/skills/online-evaluations/SKILL.mdx +150 -0
  715. package/skills/package.json +53 -0
  716. package/skills/pnpm-lock.yaml +4862 -0
  717. package/skills/pnpm-workspace.yaml +2 -0
  718. package/skills/prompts/SKILL.mdx +151 -0
  719. package/skills/recipes/README.md +30 -0
  720. package/skills/recipes/agent-best-practices/SKILL.mdx +84 -0
  721. package/skills/recipes/debug-instrumentation/SKILL.mdx +88 -0
  722. package/skills/recipes/debug-with-langwatch/SKILL.mdx +97 -0
  723. package/skills/recipes/eval-triage/SKILL.mdx +75 -0
  724. package/skills/recipes/evaluate-multimodal/SKILL.mdx +110 -0
  725. package/skills/recipes/generate-rag-dataset/SKILL.mdx +105 -0
  726. package/skills/recipes/setup-lw/SKILL.mdx +71 -0
  727. package/skills/recipes/test-cli-usability/SKILL.mdx +106 -0
  728. package/skills/recipes/test-compliance/SKILL.mdx +149 -0
  729. package/skills/scenarios/SKILL.mdx +874 -0
  730. package/skills/tracing/SKILL.mdx +88 -0
  731. package/skills/tsconfig.json +15 -0
  732. package/skills/version.txt +1 -0
  733. package/skills/vitest.config.ts +7 -0
  734. package/langwatch/dist/client/assets/AddAnnotationQueueDrawer-BQSucfOX.js +0 -2
  735. package/langwatch/dist/client/assets/AddDatasetRecordDrawer-DAsTHYTP.js +0 -6
  736. package/langwatch/dist/client/assets/AddOrEditAnnotationScore-B5Ck48cm.js +0 -2
  737. package/langwatch/dist/client/assets/AddOrEditAnnotationScoreDrawer-C8HFvayF.js +0 -2
  738. package/langwatch/dist/client/assets/AddOrEditDatasetDrawer-BRzya-3u.js +0 -3
  739. package/langwatch/dist/client/assets/AddParticipants-DGPUGXt7.js +0 -2
  740. package/langwatch/dist/client/assets/AgentHistoryDrawer-D13d_z7X.js +0 -2
  741. package/langwatch/dist/client/assets/AgentHttpEditorDrawer-CuT-fXSu.js +0 -5
  742. package/langwatch/dist/client/assets/AgentListDrawer-CWtvhmue.js +0 -2
  743. package/langwatch/dist/client/assets/AgentTypeSelectorDrawer-BRHSlvwQ.js +0 -2
  744. package/langwatch/dist/client/assets/AgentWorkflowEditorDrawer-CylJD3xL.js +0 -2
  745. package/langwatch/dist/client/assets/AgentWorkflowTargetEditorDrawer-CaoZTrdq.js +0 -2
  746. package/langwatch/dist/client/assets/AiGatewayLayout-B5Q-EfZV.js +0 -2
  747. package/langwatch/dist/client/assets/AnnotationsTable-DoO83AX9.js +0 -2
  748. package/langwatch/dist/client/assets/AreaChart-CXmFZ9PN.js +0 -2
  749. package/langwatch/dist/client/assets/AutomationDrawer-Bv4nX8y6.js +0 -112
  750. package/langwatch/dist/client/assets/BatchEvaluationSummary-uqdSLrh7.js +0 -2
  751. package/langwatch/dist/client/assets/BudgetEditDrawer-CGUdeHXR.js +0 -2
  752. package/langwatch/dist/client/assets/CartesianChart-D35vYym3.js +0 -54
  753. package/langwatch/dist/client/assets/CascadeArchiveDialog-DSo9Fwed.js +0 -2
  754. package/langwatch/dist/client/assets/ChartCard-DgQ4fTGc.js +0 -2
  755. package/langwatch/dist/client/assets/ChartTooltip-Cf8ESsQ9.js +0 -4
  756. package/langwatch/dist/client/assets/ChatWindow-DplHBlw_.js +0 -5
  757. package/langwatch/dist/client/assets/CodeEvaluatorEditorDrawer-CPxNogVm.js +0 -9
  758. package/langwatch/dist/client/assets/CodexCodingDefaultsAsk-BdUx3xAP.js +0 -2
  759. package/langwatch/dist/client/assets/ColorfulBlockIcons-CUrsa--K.js +0 -6
  760. package/langwatch/dist/client/assets/ColumnTypeIcon-DNzTCt_2.js +0 -2
  761. package/langwatch/dist/client/assets/ConfirmDialog-DTpkLGhm.js +0 -2
  762. package/langwatch/dist/client/assets/ContactSalesBlock-BaXLliHv.js +0 -2
  763. package/langwatch/dist/client/assets/Conversation-DZIYz2Vp.js +0 -2
  764. package/langwatch/dist/client/assets/CopyInput-Csb1U32e.js +0 -2
  765. package/langwatch/dist/client/assets/CopyableInputWithPrefix-C3PRtdkW.js +0 -2
  766. package/langwatch/dist/client/assets/CreateProjectDrawer-32NvkFfD.js +0 -2
  767. package/langwatch/dist/client/assets/CreateTeamDrawer-DtGf5dkO.js +0 -2
  768. package/langwatch/dist/client/assets/CustomGraph-C3a1gzo6.js +0 -2
  769. package/langwatch/dist/client/assets/DashboardLayout-RHGL-98_.js +0 -6
  770. package/langwatch/dist/client/assets/DashboardNameDrawer-DD8bwnCt.js +0 -2
  771. package/langwatch/dist/client/assets/DataPrivacyRuleDrawer-DiY-VkTs.js +0 -2
  772. package/langwatch/dist/client/assets/DatasetEditorTable-CwI345qA.js +0 -2
  773. package/langwatch/dist/client/assets/DatasetPickerList-CpHDt0t8.js +0 -2
  774. package/langwatch/dist/client/assets/DatasetPreviewTable-v8OUUAB3.js +0 -2
  775. package/langwatch/dist/client/assets/DatasetSelector-isPOzukH.js +0 -2
  776. package/langwatch/dist/client/assets/DefaultModelOverrideDrawer-BI7NSI6A.js +0 -2
  777. package/langwatch/dist/client/assets/DeleteConfirmationDialog-7K0S0Qdq.js +0 -2
  778. package/langwatch/dist/client/assets/DocsLinks-NNRxMwQU.js +0 -2
  779. package/langwatch/dist/client/assets/DynamicZodForm-3XwhQhOl.js +0 -2
  780. package/langwatch/dist/client/assets/EditAutomationFilterDrawer-MYW_WiO2.js +0 -3
  781. package/langwatch/dist/client/assets/EditModelProviderDrawer-Isp2BSHG.js +0 -4
  782. package/langwatch/dist/client/assets/EditProjectDrawer-Dj2lYKdO.js +0 -2
  783. package/langwatch/dist/client/assets/EmojiPickerModal-DdZxZuTV.js +0 -3
  784. package/langwatch/dist/client/assets/EnterpriseLockedSurface-CxLn8Im_.js +0 -2
  785. package/langwatch/dist/client/assets/EvaluatorApiUsageDialog-DIFGzOw4.js +0 -107
  786. package/langwatch/dist/client/assets/EvaluatorCategorySelectorDrawer-Cm114u5E.js +0 -2
  787. package/langwatch/dist/client/assets/EvaluatorEditorDrawer-aCxccvFM.js +0 -2
  788. package/langwatch/dist/client/assets/EvaluatorEditorShared-DiLlkD4v.js +0 -43
  789. package/langwatch/dist/client/assets/EvaluatorHistoryDrawer-Bv3sLSRP.js +0 -2
  790. package/langwatch/dist/client/assets/EvaluatorListDrawer-eUbPJehC.js +0 -2
  791. package/langwatch/dist/client/assets/EvaluatorMappingsSection-DvSTsuT8.js +0 -2
  792. package/langwatch/dist/client/assets/EvaluatorSelection-Bi_Ud8sy.js +0 -2
  793. package/langwatch/dist/client/assets/EvaluatorSelectionBox-v8iA4p4D.js +0 -2
  794. package/langwatch/dist/client/assets/EvaluatorTypeSelectorContent-DlwvjPGU.js +0 -2
  795. package/langwatch/dist/client/assets/EvaluatorTypeSelectorDrawer-ul5Ud4lG.js +0 -2
  796. package/langwatch/dist/client/assets/ExecutionState-DKBVAVTm.js +0 -2
  797. package/langwatch/dist/client/assets/ExternalImage-DbtOSrKl.js +0 -34
  798. package/langwatch/dist/client/assets/FeatureFlagsDrawer-YiildcJp.js +0 -2
  799. package/langwatch/dist/client/assets/FieldInfoTooltip-CXhYVsTQ.js +0 -2
  800. package/langwatch/dist/client/assets/FieldsFilters-CrGJyKXz.js +0 -2
  801. package/langwatch/dist/client/assets/FilterDisplay-BT6B5ZoZ.js +0 -2
  802. package/langwatch/dist/client/assets/FilterSidebar-0UgGuTeu.js +0 -2
  803. package/langwatch/dist/client/assets/FormatMoney-CEzwUDkl.js +0 -2
  804. package/langwatch/dist/client/assets/FoundryDrawer-BIy5SFvr.js +0 -2
  805. package/langwatch/dist/client/assets/FullLogo-EwD3nY0N.js +0 -2
  806. package/langwatch/dist/client/assets/GovernanceLayout-COAapH9g.js +0 -2
  807. package/langwatch/dist/client/assets/GraphsLayout-ygWQTw_g.js +0 -2
  808. package/langwatch/dist/client/assets/GroupBindingInputRow-DF_WY6iQ.js +0 -2
  809. package/langwatch/dist/client/assets/GuardrailsDrawer-BIq6RhSh.js +0 -91
  810. package/langwatch/dist/client/assets/History-V1jF0Epn.js +0 -17
  811. package/langwatch/dist/client/assets/HorizontalFormControl-CLz9xuFM.js +0 -2
  812. package/langwatch/dist/client/assets/HoverableBigText-CxXucdYS.js +0 -2
  813. package/langwatch/dist/client/assets/InstallCliCard-SGRlvABl.js +0 -2
  814. package/langwatch/dist/client/assets/IntegratePaneShell--xX7Q_FZ.js +0 -8
  815. package/langwatch/dist/client/assets/InviteMemberDrawer-BgkE2My_.js +0 -2
  816. package/langwatch/dist/client/assets/LLMModelCostDrawer-Be2PXHIC.js +0 -2
  817. package/langwatch/dist/client/assets/LangyContextTarget-DUSindiC.js +0 -2
  818. package/langwatch/dist/client/assets/LegacyTracesDeprecationBanner-C1PAs5gE.js +0 -2
  819. package/langwatch/dist/client/assets/Legend-UkJ5OBun.js +0 -6
  820. package/langwatch/dist/client/assets/Line-Bq29STZQ.js +0 -2
  821. package/langwatch/dist/client/assets/LineChart-DjFD6yv4.js +0 -2
  822. package/langwatch/dist/client/assets/ListTable-CSs4ttpJ.js +0 -2
  823. package/langwatch/dist/client/assets/LoadingScreen-D0JSh0Q2.js +0 -2
  824. package/langwatch/dist/client/assets/Markdown-Dm0jXfOR.js +0 -3
  825. package/langwatch/dist/client/assets/MenuLink-CCRiOtxz.js +0 -2
  826. package/langwatch/dist/client/assets/MessageCard-DqgrJCJ6.js +0 -2
  827. package/langwatch/dist/client/assets/MetadataTag-W5I0CKzN.js +0 -5
  828. package/langwatch/dist/client/assets/ModelProviderCustomModelInput-XgGjvYky.js +0 -2
  829. package/langwatch/dist/client/assets/ModelProviderScreen-BtASYmAL.js +0 -2
  830. package/langwatch/dist/client/assets/ModelSelector-BBb1wHS_.js +0 -2
  831. package/langwatch/dist/client/assets/MyLayout-DX7ntheK.js +0 -2
  832. package/langwatch/dist/client/assets/NavigationFooter-CJaT-F50.js +0 -2
  833. package/langwatch/dist/client/assets/NewWorkflowForm-BrvVQJNY.js +0 -2
  834. package/langwatch/dist/client/assets/NoDataInfoBlock-B3c1WwDO.js +0 -2
  835. package/langwatch/dist/client/assets/OnboardingContainer-DRrQV_9c.js +0 -2
  836. package/langwatch/dist/client/assets/OnlineEvaluationDrawer-DHbPXgEV.js +0 -2
  837. package/langwatch/dist/client/assets/OpsPageShell-BamkwuvB.js +0 -2
  838. package/langwatch/dist/client/assets/OttlEditor-BhsdMVM9.js +0 -3
  839. package/langwatch/dist/client/assets/OverflownText-DhbWrtC6.js +0 -2
  840. package/langwatch/dist/client/assets/ProjectAvatar--gOpUll9.js +0 -2
  841. package/langwatch/dist/client/assets/ProjectLangyLayout-C7WNak1h.js +0 -82
  842. package/langwatch/dist/client/assets/PromptEditorDrawer-k_dFbREL.js +0 -2
  843. package/langwatch/dist/client/assets/PromptListDrawer-B-C4Cl6I.js +0 -2
  844. package/langwatch/dist/client/assets/PropertySectionTitle-CK67qoQ9.js +0 -37
  845. package/langwatch/dist/client/assets/ProviderModelSelector-Cm89XYO8.js +0 -2
  846. package/langwatch/dist/client/assets/ProviderScopeChips-S0Ctqbwg.js +0 -2
  847. package/langwatch/dist/client/assets/PushToCopiesDialog-C3eBpZ9F.js +0 -2
  848. package/langwatch/dist/client/assets/RandomColorAvatar-CTya_4BQ.js +0 -2
  849. package/langwatch/dist/client/assets/ReferenceDot-St9tkyoA.js +0 -2
  850. package/langwatch/dist/client/assets/RenderInputOutput-DOVNZVJ2.js +0 -261
  851. package/langwatch/dist/client/assets/ScenarioFormDrawer-9224CX_d.js +0 -2
  852. package/langwatch/dist/client/assets/ScenarioInputMappingSection-Sqtj3HwL.js +0 -2
  853. package/langwatch/dist/client/assets/ScenarioRunDetailDrawer-fzMzXl1A.js +0 -3
  854. package/langwatch/dist/client/assets/ScopeChipPicker-B6r27G3S.js +0 -2
  855. package/langwatch/dist/client/assets/SearchInput-C_AroTij.js +0 -2
  856. package/langwatch/dist/client/assets/SectionNavigationLayout-DNvKM1pq.js +0 -2
  857. package/langwatch/dist/client/assets/SelectDatasetDrawer-CeZvw0Rl.js +0 -2
  858. package/langwatch/dist/client/assets/SelectionActionBar-5j-e3Y3p.js +0 -2
  859. package/langwatch/dist/client/assets/SeriesFilterDrawer-C2Io5BkG.js +0 -2
  860. package/langwatch/dist/client/assets/SettingsLayout-CYtjUobV.js +0 -2
  861. package/langwatch/dist/client/assets/SetupWithAgentButton-BKWI-UTU.js +0 -4
  862. package/langwatch/dist/client/assets/ShikiCommandBox-D_TBnZxW.js +0 -5
  863. package/langwatch/dist/client/assets/SpanDetails-xl9OjARI.js +0 -3
  864. package/langwatch/dist/client/assets/SubscriptionPage-85dxt08g.js +0 -2
  865. package/langwatch/dist/client/assets/SuiteFormDrawer-BYdeRl8R.js +0 -2
  866. package/langwatch/dist/client/assets/TabButton-BY-_E4cy.js +0 -3
  867. package/langwatch/dist/client/assets/TableCell-B6fYjFy7.js +0 -2
  868. package/langwatch/dist/client/assets/TargetTypeSelectorDrawer-CTaJP17t.js +0 -2
  869. package/langwatch/dist/client/assets/TeamForm-DQIdGXFE.js +0 -2
  870. package/langwatch/dist/client/assets/TeamUserRoleField-UXHlsd5l.js +0 -2
  871. package/langwatch/dist/client/assets/TraceDetails-Bm1Ufstq.js +0 -9
  872. package/langwatch/dist/client/assets/TraceDetailsDrawer-BlZH_mba.js +0 -2
  873. package/langwatch/dist/client/assets/TraceIdPeek-By6CFB9R.js +0 -2
  874. package/langwatch/dist/client/assets/TracesMapping-QHyuw6AD.js +0 -2
  875. package/langwatch/dist/client/assets/UpgradeModal-BmLw5ONS.js +0 -92
  876. package/langwatch/dist/client/assets/UpgradeModalContent-C_lXaZaj.js +0 -2
  877. package/langwatch/dist/client/assets/UploadCSVDrawer-BKntPqbk.js +0 -3
  878. package/langwatch/dist/client/assets/VariablesSection-DnkttoMe.js +0 -2
  879. package/langwatch/dist/client/assets/VersionBadge-8Mh0h6z8.js +0 -2
  880. package/langwatch/dist/client/assets/ViaClaudeDesktopScreen-fQIOpGM1.js +0 -1161
  881. package/langwatch/dist/client/assets/ViewAutomationDrawer-CPoifrwV.js +0 -2
  882. package/langwatch/dist/client/assets/VirtualKeySecretReveal-CKCq8oBA.js +0 -54
  883. package/langwatch/dist/client/assets/WelcomeLayout-B_rw1HA0.js +0 -2
  884. package/langwatch/dist/client/assets/WithFeatureFlagGuard-DwfApI3b.js +0 -2
  885. package/langwatch/dist/client/assets/WithPermissionGuard-BP1dFkpM.js +0 -2
  886. package/langwatch/dist/client/assets/WorkflowCard-B_SYXPpi.js +0 -2
  887. package/langwatch/dist/client/assets/WorkflowSelectorForEvaluatorDrawer-D_fcHR54.js +0 -2
  888. package/langwatch/dist/client/assets/_...path_-Ipy6q2Lm.js +0 -2
  889. package/langwatch/dist/client/assets/_Uint8Array-B8b3z1r6.js +0 -2
  890. package/langwatch/dist/client/assets/__...path__-3xWAWxQ-.js +0 -22
  891. package/langwatch/dist/client/assets/_baseAssignValue-D7YNnh37.js +0 -2
  892. package/langwatch/dist/client/assets/_baseClone-o3pPcmbM.js +0 -2
  893. package/langwatch/dist/client/assets/_baseEach-CJ0DbEY4.js +0 -2
  894. package/langwatch/dist/client/assets/_baseFor-C04Mk-th.js +0 -2
  895. package/langwatch/dist/client/assets/_experiment_-DYMW8ia6.js +0 -2
  896. package/langwatch/dist/client/assets/_id_-B8SzykYR.js +0 -2
  897. package/langwatch/dist/client/assets/_id_-BT8l3_4N.js +0 -2
  898. package/langwatch/dist/client/assets/_id_-BTgcDKRo.js +0 -2
  899. package/langwatch/dist/client/assets/_id_-BrxUqiAK.js +0 -2
  900. package/langwatch/dist/client/assets/_id_-Cke69ccV.js +0 -2
  901. package/langwatch/dist/client/assets/_id_-CxtJm9qq.js +0 -2
  902. package/langwatch/dist/client/assets/_id_-DGNS0pL2.js +0 -2
  903. package/langwatch/dist/client/assets/_project_-CPYgRSe0.js +0 -8
  904. package/langwatch/dist/client/assets/_runId_-CnJnzVCf.js +0 -7
  905. package/langwatch/dist/client/assets/_shell-JRkk6wPs.js +0 -2
  906. package/langwatch/dist/client/assets/_slug_-D3cx1Thv.js +0 -17
  907. package/langwatch/dist/client/assets/_slug_-Dx0M4BvX.js +0 -2
  908. package/langwatch/dist/client/assets/_slug_-cRMpdOOA.js +0 -2
  909. package/langwatch/dist/client/assets/_team_-BW8SVrk-.js +0 -2
  910. package/langwatch/dist/client/assets/_workflow_-C35QPIPs.js +0 -25
  911. package/langwatch/dist/client/assets/_workflow_-DowL6naf.js +0 -3
  912. package/langwatch/dist/client/assets/accept-D3cDvj0y.js +0 -2
  913. package/langwatch/dist/client/assets/activity-CrGqZpWa.js +0 -1
  914. package/langwatch/dist/client/assets/agents-BNeoLDoj.js +0 -2
  915. package/langwatch/dist/client/assets/alerts-CrGqZpWa.js +0 -1
  916. package/langwatch/dist/client/assets/all-BHRNPEIX.js +0 -2
  917. package/langwatch/dist/client/assets/analytics-CZuaBlXL.js +0 -2
  918. package/langwatch/dist/client/assets/annotation-scores-CeAaT6zF.js +0 -2
  919. package/langwatch/dist/client/assets/annotations-CpkTmTvn.js +0 -2
  920. package/langwatch/dist/client/assets/anomaly-rules-BOLIh6OR.js +0 -2
  921. package/langwatch/dist/client/assets/api-keys-mK1aqQaM.js +0 -4
  922. package/langwatch/dist/client/assets/asaplangy-D_DeMaDk.js +0 -5
  923. package/langwatch/dist/client/assets/audit-log-CL6iYEbl.js +0 -2
  924. package/langwatch/dist/client/assets/auth-DWhhuKxO.js +0 -2
  925. package/langwatch/dist/client/assets/authentication-CvPvvVW6.js +0 -2
  926. package/langwatch/dist/client/assets/authorize-C1bDXq-Z.js +0 -2
  927. package/langwatch/dist/client/assets/authorize-xZkU_nXs.js +0 -2
  928. package/langwatch/dist/client/assets/automations-ChfL33YS.js +0 -2
  929. package/langwatch/dist/client/assets/automations-CrGqZpWa.js +0 -1
  930. package/langwatch/dist/client/assets/billing-plans-CXxmUM3Y.js +0 -2
  931. package/langwatch/dist/client/assets/blank-DFMnaDEJ.js +0 -2
  932. package/langwatch/dist/client/assets/blobs-D-pozzQX.js +0 -2
  933. package/langwatch/dist/client/assets/blockDiagram-677ZJIJ3--iqoZYgE.js +0 -133
  934. package/langwatch/dist/client/assets/budgets-BAJ1tdYz.js +0 -3
  935. package/langwatch/dist/client/assets/bug-reports-DOqvPuTB.js +0 -2
  936. package/langwatch/dist/client/assets/cache-rules-DbITxirX.js +0 -2
  937. package/langwatch/dist/client/assets/choose-BSGQGAYS.js +0 -2
  938. package/langwatch/dist/client/assets/chunk-EX3LRPZG-B7fiWf8z.js +0 -232
  939. package/langwatch/dist/client/assets/chunk-FWX5IMBZ-CiS2XotT.js +0 -3
  940. package/langwatch/dist/client/assets/chunk-PUDLZKDR-_aske-8B.js +0 -157
  941. package/langwatch/dist/client/assets/chunk-RYQCIY6F-Bzb9D1UT.js +0 -2
  942. package/langwatch/dist/client/assets/chunk-V7JOEXUC-BNxgutMB.js +0 -207
  943. package/langwatch/dist/client/assets/classDiagram-OUVF2IWQ-GwNDfT24.js +0 -2
  944. package/langwatch/dist/client/assets/classDiagram-v2-EOCWNBFH-GwNDfT24.js +0 -2
  945. package/langwatch/dist/client/assets/codeAgentConfig-DWx3pMLC.js +0 -7
  946. package/langwatch/dist/client/assets/codingDefaultSync-C9Lev3y1.js +0 -2
  947. package/langwatch/dist/client/assets/configure-Coe_YM3c.js +0 -4
  948. package/langwatch/dist/client/assets/custom-Dpn85JW8.js +0 -12
  949. package/langwatch/dist/client/assets/custom_evaluator-DGAwXo2Z.js +0 -31
  950. package/langwatch/dist/client/assets/dagre-D7MBpcKV.js +0 -2
  951. package/langwatch/dist/client/assets/dagre-VKFMJZFB-COHUH3Np.js +0 -5
  952. package/langwatch/dist/client/assets/data-privacy-CtKFJ8SN.js +0 -2
  953. package/langwatch/dist/client/assets/data-retention-e5nryGvV.js +0 -2
  954. package/langwatch/dist/client/assets/datasets-JEoBpoYL.js +0 -2
  955. package/langwatch/dist/client/assets/debounce-KKoMEqvq.js +0 -2
  956. package/langwatch/dist/client/assets/defaultModelState-C4_m_XBI.js +0 -2
  957. package/langwatch/dist/client/assets/dejaview-BV4oU0up.js +0 -2
  958. package/langwatch/dist/client/assets/departments-BjNbKZtW.js +0 -2
  959. package/langwatch/dist/client/assets/devices-CaLokczo.js +0 -2
  960. package/langwatch/dist/client/assets/dist-BToT9Gni.js +0 -6
  961. package/langwatch/dist/client/assets/drawerFromUrl-Cpd3NvN0.js +0 -2
  962. package/langwatch/dist/client/assets/edit-BW6g7_XC.js +0 -62
  963. package/langwatch/dist/client/assets/email-suppressions-DYhLkUjt.js +0 -2
  964. package/langwatch/dist/client/assets/erDiagram-Q63AITRT-CBcweIHJ.js +0 -86
  965. package/langwatch/dist/client/assets/error-CmmaHju0.js +0 -2
  966. package/langwatch/dist/client/assets/evaluations-BX71jpba.js +0 -2
  967. package/langwatch/dist/client/assets/evaluations-C82dwzqH.js +0 -2
  968. package/langwatch/dist/client/assets/evaluators-CKOs_qOx.js +0 -146
  969. package/langwatch/dist/client/assets/evaluators-Cnp4esT5.js +0 -2
  970. package/langwatch/dist/client/assets/experiments-CzhcDWnc.js +0 -1
  971. package/langwatch/dist/client/assets/external-link-BzETHrAG.js +0 -2
  972. package/langwatch/dist/client/assets/feature-flags-Cl5NHQrK.js +0 -2
  973. package/langwatch/dist/client/assets/fetchSSE-DWKCnoHV.js +0 -3
  974. package/langwatch/dist/client/assets/fieldset-CE_IDQSv.js +0 -2
  975. package/langwatch/dist/client/assets/flowDiagram-23GEKE2U-B2EV4X5b.js +0 -1
  976. package/langwatch/dist/client/assets/forgot-password-Bdtjps2K.js +0 -2
  977. package/langwatch/dist/client/assets/formatMoney-CI_YqDED.js +0 -2
  978. package/langwatch/dist/client/assets/foundry-DdJynGEa.js +0 -477
  979. package/langwatch/dist/client/assets/gateway-BvjtD98W.js +0 -2
  980. package/langwatch/dist/client/assets/getEvaluator-OH0w_5fd.js +0 -2
  981. package/langwatch/dist/client/assets/getRadiusAndStrokeWidthFromDot-BB5SvhT3.js +0 -2
  982. package/langwatch/dist/client/assets/governance-DUSWlZID.js +0 -2
  983. package/langwatch/dist/client/assets/graphlib-Dn160vFe.js +0 -2
  984. package/langwatch/dist/client/assets/groups--YQRJnbz.js +0 -2
  985. package/langwatch/dist/client/assets/guardrails-_Jb3oZg3.js +0 -2
  986. package/langwatch/dist/client/assets/http-7YWbWWla.js +0 -7
  987. package/langwatch/dist/client/assets/identifierUtils-BuQJ50Jl.js +0 -2
  988. package/langwatch/dist/client/assets/immer-tl_oI9yy.js +0 -14
  989. package/langwatch/dist/client/assets/index-CUhcyBp3.js +0 -68
  990. package/langwatch/dist/client/assets/ingestion-source-detail-E-alCDhM.js +0 -19
  991. package/langwatch/dist/client/assets/ingestion-sources-APi2TUL6.js +0 -12
  992. package/langwatch/dist/client/assets/integrations-osNA42lv.js +0 -2
  993. package/langwatch/dist/client/assets/isArrayLikeObject-CJZEoMj_.js +0 -2
  994. package/langwatch/dist/client/assets/isSymbol-IFJb2-6T.js +0 -2
  995. package/langwatch/dist/client/assets/langyHomeSuggestions-B0_Fr3Q2.js +0 -2
  996. package/langwatch/dist/client/assets/latestAliases-BG98QtLZ.js +0 -2
  997. package/langwatch/dist/client/assets/license-Dbjlsvq9.js +0 -2
  998. package/langwatch/dist/client/assets/loadModelCatalog-CtqlQvVB.js +0 -2
  999. package/langwatch/dist/client/assets/map-DH6XyRvi.js +0 -2
  1000. package/langwatch/dist/client/assets/mappingValidation-oCsaOwz3.js +0 -2
  1001. package/langwatch/dist/client/assets/me-Bqm1rCwb.js +0 -2
  1002. package/langwatch/dist/client/assets/me-BxYTDdYk.js +0 -7
  1003. package/langwatch/dist/client/assets/members-C-RYfdOt.js +0 -2
  1004. package/langwatch/dist/client/assets/mermaid.core-CIOVe75m.js +0 -12
  1005. package/langwatch/dist/client/assets/messages-DSB9EzQc.js +0 -2
  1006. package/langwatch/dist/client/assets/metrics-C_DWHPhN.js +0 -2
  1007. package/langwatch/dist/client/assets/mindmap-definition-LN4V7U3C-D9FhjenJ.js +0 -97
  1008. package/langwatch/dist/client/assets/model-costs-DHTDEPq7.js +0 -2
  1009. package/langwatch/dist/client/assets/model-providers-B5lYdYGB.js +0 -2
  1010. package/langwatch/dist/client/assets/modelProviderHelpers-DDoNJl7J.js +0 -2
  1011. package/langwatch/dist/client/assets/my-queue-DBUdNObC.js +0 -2
  1012. package/langwatch/dist/client/assets/normalizeComparison-CCZ-bOPv.js +0 -2
  1013. package/langwatch/dist/client/assets/not-found-1cA6pijP.js +0 -2
  1014. package/langwatch/dist/client/assets/now-Sx_cFlpx.js +0 -2
  1015. package/langwatch/dist/client/assets/onboarding-Brb1FAS4.js +0 -2
  1016. package/langwatch/dist/client/assets/online-evaluations-Di78dvHe.js +0 -2
  1017. package/langwatch/dist/client/assets/ops-BDrWqQb1.js +0 -2
  1018. package/langwatch/dist/client/assets/organizations-I7_fQcGq.js +0 -2
  1019. package/langwatch/dist/client/assets/pages-BowufdCe.js +0 -2
  1020. package/langwatch/dist/client/assets/persistence-ChzYQRy2.js +0 -2
  1021. package/langwatch/dist/client/assets/plans-DUiB6dWS.js +0 -2
  1022. package/langwatch/dist/client/assets/product-CLC45PiC.js +0 -2
  1023. package/langwatch/dist/client/assets/project-CO0U6_JZ.js +0 -2
  1024. package/langwatch/dist/client/assets/projections-yljzVGg_.js +0 -2
  1025. package/langwatch/dist/client/assets/projects-DbpxS5ex.js +0 -2
  1026. package/langwatch/dist/client/assets/promptHandle-BwdZsauS.js +0 -2
  1027. package/langwatch/dist/client/assets/prompts-DUxsvuSh.js +0 -8
  1028. package/langwatch/dist/client/assets/radio-group-DJFHT54R.js +0 -2
  1029. package/langwatch/dist/client/assets/registry-C3oFDiqP.js +0 -2
  1030. package/langwatch/dist/client/assets/reports-BQKkyGFY.js +0 -2
  1031. package/langwatch/dist/client/assets/request-CmAXw9Uw.js +0 -2
  1032. package/langwatch/dist/client/assets/requirementDiagram-TGXJPOKE-D1dMWBTG.js +0 -85
  1033. package/langwatch/dist/client/assets/reset-password-CTK4_mwV.js +0 -2
  1034. package/langwatch/dist/client/assets/role-bindings-C6ZsuMgm.js +0 -2
  1035. package/langwatch/dist/client/assets/roles-BCVxn7jA.js +0 -2
  1036. package/langwatch/dist/client/assets/routing-policies-CRBbtcKU.js +0 -5
  1037. package/langwatch/dist/client/assets/scenarios-t3nGDwOk.js +0 -2
  1038. package/langwatch/dist/client/assets/scheduler-BLbmBCjU.js +0 -2
  1039. package/langwatch/dist/client/assets/schedules-CrGqZpWa.js +0 -1
  1040. package/langwatch/dist/client/assets/scim-Db5_4cCw.js +0 -2
  1041. package/langwatch/dist/client/assets/secrets-w56NYZDd.js +0 -2
  1042. package/langwatch/dist/client/assets/segment-group-BZ45xnHN.js +0 -2
  1043. package/langwatch/dist/client/assets/segmented-control-DD0HLoke.js +0 -2
  1044. package/langwatch/dist/client/assets/select-BVcV39WT.js +0 -2
  1045. package/langwatch/dist/client/assets/send-C4QAmSdY.js +0 -2
  1046. package/langwatch/dist/client/assets/sequenceView-BjWvujkI.js +0 -5
  1047. package/langwatch/dist/client/assets/seriesOptions-BYBEdexs.js +0 -1011
  1048. package/langwatch/dist/client/assets/settings-BLUJDHk_.js +0 -2
  1049. package/langwatch/dist/client/assets/setup-DZUDYG7y.js +0 -2
  1050. package/langwatch/dist/client/assets/shikiAdapter-S_u9TjIh.js +0 -3
  1051. package/langwatch/dist/client/assets/signin-DIBdy2xA.js +0 -2
  1052. package/langwatch/dist/client/assets/signup-CNRmYZe8.js +0 -2
  1053. package/langwatch/dist/client/assets/stateDiagram-2N3HPSRC-CvKHJ3lm.js +0 -2
  1054. package/langwatch/dist/client/assets/stateDiagram-v2-6OUMAXLB-DAiJnxt-.js +0 -2
  1055. package/langwatch/dist/client/assets/subscription-DCXG9i3Z.js +0 -3
  1056. package/langwatch/dist/client/assets/subscriptions-vembyNSC.js +0 -2
  1057. package/langwatch/dist/client/assets/suggestionUI-CKer7JjV.js +0 -106
  1058. package/langwatch/dist/client/assets/swimlanes-5IMT3BWC-BSx4-zBB.js +0 -3
  1059. package/langwatch/dist/client/assets/swimlanesDiagram-G3AALYLV-CiuP6lw7.js +0 -9
  1060. package/langwatch/dist/client/assets/switch-COTwlCOb.js +0 -2
  1061. package/langwatch/dist/client/assets/switch-vUOdjiD1.js +0 -2
  1062. package/langwatch/dist/client/assets/tabs-DdHsJkYS.js +0 -2
  1063. package/langwatch/dist/client/assets/teams-CNWyUErs.js +0 -2
  1064. package/langwatch/dist/client/assets/teams-DfkeiBlG.js +0 -2
  1065. package/langwatch/dist/client/assets/tool-catalog-Fz2CTXGX.js +0 -7
  1066. package/langwatch/dist/client/assets/toolIcons-8yYANIzS.js +0 -2
  1067. package/langwatch/dist/client/assets/tooltip-Croc0I6e.js +0 -2
  1068. package/langwatch/dist/client/assets/topic-clustering-BUhCtd-n.js +0 -2
  1069. package/langwatch/dist/client/assets/topics-DTHKQBbG.js +0 -2
  1070. package/langwatch/dist/client/assets/traceExecutor-apa7WEzU.js +0 -55
  1071. package/langwatch/dist/client/assets/traces-DHbPO8-r.js +0 -289
  1072. package/langwatch/dist/client/assets/tracesMapping-AU2q390i.js +0 -3
  1073. package/langwatch/dist/client/assets/tracking-2cJI_Hu7.js +0 -2
  1074. package/langwatch/dist/client/assets/types-CQ-IJ_jx.js +0 -2
  1075. package/langwatch/dist/client/assets/types-DV4H6wK9.js +0 -2
  1076. package/langwatch/dist/client/assets/types-PSz4yYPE.js +0 -2
  1077. package/langwatch/dist/client/assets/types-Qc1U0Lzq.js +0 -2
  1078. package/langwatch/dist/client/assets/unsubscribe-B7-aB2wW.js +0 -2
  1079. package/langwatch/dist/client/assets/usage-B56MHHfN.js +0 -2
  1080. package/langwatch/dist/client/assets/usage-BrFpMBrn.js +0 -2
  1081. package/langwatch/dist/client/assets/use-breakpoint-BTtibx4n.js +0 -2
  1082. package/langwatch/dist/client/assets/use-generic-onboarding-flow-eiutgTpm.js +0 -2
  1083. package/langwatch/dist/client/assets/useActivePlan-DZDUm8JK.js +0 -2
  1084. package/langwatch/dist/client/assets/useAllPromptsForProject-BY-Cnuhg.js +0 -2
  1085. package/langwatch/dist/client/assets/useAnnotationQueues-BWrpwDYN.js +0 -2
  1086. package/langwatch/dist/client/assets/useAvailableEvaluators-D7TbKINw.js +0 -2
  1087. package/langwatch/dist/client/assets/useCyclingVerb-Bp3m8dQc.js +0 -2
  1088. package/langwatch/dist/client/assets/useDepartmentColumn-DTsM9Nhy.js +0 -2
  1089. package/langwatch/dist/client/assets/useEvaluationsV3Store-KPEU27UA.js +0 -2
  1090. package/langwatch/dist/client/assets/useExportTraces-DK-tRqPq.js +0 -2
  1091. package/langwatch/dist/client/assets/useFeatureFlag-D9ikgDaE.js +0 -2
  1092. package/langwatch/dist/client/assets/useInviteActions-DyYvQrlw.js +0 -2
  1093. package/langwatch/dist/client/assets/useLicenseEnforcement-DRk7-NQ0.js +0 -2
  1094. package/langwatch/dist/client/assets/useLiteMemberGuard-klZnweA7.js +0 -43
  1095. package/langwatch/dist/client/assets/usePersonalContext-CrhmQYta.js +0 -2
  1096. package/langwatch/dist/client/assets/useProjectSpanNames-w6NW0Ct5.js +0 -2
  1097. package/langwatch/dist/client/assets/useProjectsForCopy-DxbxCEv5.js +0 -2
  1098. package/langwatch/dist/client/assets/useRunViaApiTabs-WzgJSfv2.js +0 -50
  1099. package/langwatch/dist/client/assets/useSavedViews-CNmeuzC3.js +0 -2
  1100. package/langwatch/dist/client/assets/useShowLangy-BvJ39ifH.js +0 -2
  1101. package/langwatch/dist/client/assets/useSimulationUpdateListener-Bu7hXXtv.js +0 -2
  1102. package/langwatch/dist/client/assets/useTargetName-VjbhYyp5.js +0 -2
  1103. package/langwatch/dist/client/assets/useTargetNameMap-CB8rbgsw.js +0 -2
  1104. package/langwatch/dist/client/assets/useTraceDetailsDrawer-BQRQYAwh.js +0 -2
  1105. package/langwatch/dist/client/assets/useTraceUpdateListener-DvzIDKvr.js +0 -2
  1106. package/langwatch/dist/client/assets/useUrlScopeFilter-u6ryUPSP.js +0 -2
  1107. package/langwatch/dist/client/assets/useWorkflowStore-PvyqdAIQ.js +0 -8
  1108. package/langwatch/dist/client/assets/users-B6_uecCc.js +0 -2
  1109. package/langwatch/dist/client/assets/users-BKSIVGOV.js +0 -2
  1110. package/langwatch/dist/client/assets/users-Cvlw527b.js +0 -2
  1111. package/langwatch/dist/client/assets/v3-D_vxEDZB.js +0 -2
  1112. package/langwatch/dist/client/assets/variables-fv0lgY95.js +0 -396
  1113. package/langwatch/dist/client/assets/viewStore-149qmWlN.js +0 -2
  1114. package/langwatch/dist/client/assets/virtual-keys-BrPMP91L.js +0 -2
  1115. package/langwatch/dist/client/assets/welcome-CvpidJSe.js +0 -16
  1116. package/langwatch/dist/client/assets/wizard-D3LrFT3o.js +0 -2
  1117. package/langwatch/dist/client/assets/workbench-YhI9hb4n.js +0 -2
  1118. package/langwatch/dist/client/assets/workflows-D66JEP8o.js +0 -3
  1119. package/langwatch/dist/client/assets/wrap-C4rzJqks.js +0 -2
  1120. package/langwatch/src/pages/settings/__tests__/model-providers.first-project.integration.test.tsx +0 -426
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{i as n,r}from"./portal-FJIui2Z2.js";import{t as i}from"./jsx-runtime-CFwixLRt.js";import{t as a}from"./box-Ck5lef6C.js";import{t as o}from"./text-A3qvcMyN.js";import{t as s}from"./info-CtYT35g4.js";import{t as c}from"./tooltip-CYWvZEOf.js";import{G as l,K as u}from"./ExternalImage-As_YKOAz.js";import{r as d}from"./external-link-CtHzR85H.js";import{t as f}from"./icon-button-Ce2kwA7j.js";import{a as p,i as m,n as h,r as g,t as _}from"./field-Dz4Xmo3X.js";import{t as v}from"./grid-item-BDl8eynK.js";import{t as y}from"./h-stack-CMPhqSp5.js";import{t as b}from"./input-group-CuaodPJm.js";import{n as x,r as S,t as C}from"./native-select-Bj4m9rSh.js";import{t as w}from"./v-stack-ClAMS101.js";import{t as T}from"./clipboard-plus-CbzhocKI.js";import{t as E}from"./clipboard-dsAFRv1E.js";import{t as D}from"./eye-off-DqjXgeXB.js";import"./api-BK6L1im2.js";import{t as O}from"./src-RcSZrN9Q.js";import{Ar as k,Cn as A,Mt as j,Qn as M,Rt as ee,_n as te,xn as ne}from"./index-DtiounXP.js";import{t as re}from"./switch-BnyTlP1L.js";import{t as ie}from"./useModelProvidersSettings-DwRsXmh4.js";import{i as N,r as ae}from"./registry-KCPOxhx0.js";import{a as oe,i as se,n as ce,o as P,t as F}from"./ModelProviderCustomModelInput-DKgydORR.js";import{c as I,d as L,o as R,r as z,s as B,u as le}from"./modelProviderHelpers-STUAbD02.js";import{n as V,t as H}from"./registry-B66lBYCc.js";import{n as U,t as ue}from"./DocsLinks-CIoxiusp.js";var W=e(t()),G=i(),K={evaluations:`We'll use this model to run your evaluations, and show you where your interactions shines, and where it doesn't.`,prompts:`We'll use this model when you run evaluations on your datasets, in your traces, or analyze responses after they happen.`,langy:`Langy uses this model to chat with you and help you work across the platform.`,onboarding:`The model LangWatch's AI assistant and AI assists run on. You can add more providers later in Settings.`};function q(e){let t=V.filter(t=>!t.hiddenOn?.includes(e));return[...t.filter(t=>t.recommendedOn?.includes(e)),...t.filter(t=>!t.recommendedOn?.includes(e))]}function J({variant:e,modelProviderKey:t,onSelectModelProvider:n}){let r=H(t),i=e===`langy`,a=(0,W.useMemo)(()=>q(e),[e]);return(0,G.jsxs)(w,{align:`stretch`,gap:3,children:[(0,G.jsxs)(w,{align:`stretch`,gap:0,children:[!i&&(0,G.jsxs)(o,{fontSize:`md`,fontWeight:`semibold`,children:[`Give LangWatch access to`,` `,r?.label??`selected model provider`]}),(0,G.jsx)(o,{fontSize:`xs`,color:`fg.muted`,children:K[e]})]}),(0,G.jsx)(y,{gap:i?2:3,wrap:`wrap`,children:a.map(r=>(0,G.jsx)(U,{label:r.label,size:i?`sm`:`md`,iconSize:i?`lg`:`2xl`,icon:r.icon,selected:r.key===t,onClick:()=>n(r.key),ariaLabel:r.label,badge:r.recommendedOn?.includes(e)?`Recommended`:void 0},r.key))})]})}function Y(e){return L(e)?`password`:`text`}function de({providerKey:e,values:t,useApiGateway:n}){return(0,W.useMemo)(()=>{let r=N[e],i=B(r?.keysSchema),a=Object.keys(i??{}),o=R({keysSchema:r?.keysSchema,fieldSchemas:z(e,n??!1,i),values:t??{},optionalKeys:r?.optionalKeys});return{fields:a.map(e=>{let t=o.has(e);return{key:e,label:e,required:t,placeholder:t?void 0:`optional`,type:Y(e)}}),orderedFieldKeys:a,buildDefaultValues:e=>{let t={};for(let n of a){let r=e?.[n];t[n]=typeof r==`string`?r:``}return t}}},[e,t,n])}function X({value:e,onChange:t,placeholder:n,readOnly:r=!1,type:i,ariaLabel:a,autoComplete:s=`off`,prefix:l,showVisibilityToggle:d=!1,onCopyPlain:p,onCopyWithPrefix:m,invalid:h=!1}){let[g,_]=(0,W.useState)(!1),v=j(`sm`,`2xl`),x=h?`border.error`:`border`;function S(){_(e=>!e)}let C=d||p||m,w=i??(d&&!g?`password`:`text`);return(0,G.jsx)(b,{w:`full`,_focusWithin:{boxShadow:v,borderRadius:`sm`},startAddonProps:l?{bg:`bg.muted/60`,color:`fg.muted`,borderColor:x,borderWidth:`1px`,borderEndWidth:0}:void 0,startAddon:l?(0,G.jsx)(o,{fontSize:`xs`,children:l}):void 0,endAddonProps:C?{bg:`bg.muted/40`,color:`fg.muted`,borderColor:x,borderWidth:`1px`,borderStartWidth:0}:void 0,endAddon:C?(0,G.jsxs)(y,{gap:`1`,children:[d&&(0,G.jsx)(c,{content:g?`Hide value`:`Show value`,openDelay:0,showArrow:!0,children:(0,G.jsx)(f,{size:`2xs`,variant:`ghost`,onClick:S,"aria-label":g?`Hide value`:`Show value`,children:g?(0,G.jsx)(D,{}):(0,G.jsx)(u,{})})}),p&&(0,G.jsx)(c,{content:`Copy ${a.toLowerCase()}`,openDelay:0,showArrow:!0,children:(0,G.jsx)(f,{size:`2xs`,variant:`ghost`,onClick:()=>void p(),"aria-label":`Copy ${a.toLowerCase()}`,children:(0,G.jsx)(E,{})})}),m&&(0,G.jsx)(c,{content:`Copy ${a.toLowerCase()} with environment variable prefix`,openDelay:0,showArrow:!0,children:(0,G.jsx)(f,{size:`2xs`,variant:`ghost`,onClick:()=>void m(),"aria-label":`Copy ${a.toLowerCase()} with prefix`,children:(0,G.jsx)(T,{})})})]}):void 0,children:(0,G.jsx)(k,{"data-op-ignore":!0,bg:`bg.muted/40`,borderEndWidth:C?0:void 0,borderStartWidth:l?0:void 0,borderColor:x,size:`sm`,variant:`outline`,type:w,value:e,onChange:t,placeholder:n,readOnly:r,autoComplete:s,"aria-label":a,"aria-invalid":h?!0:void 0,_focus:{outline:`none`,boxShadow:`none`,borderColor:x}})})}var fe=({displayKeys:e,customKeys:t,derivedFields:n,fieldMetadata:r,fieldErrors:i,openAiValidationError:a,apiKeyValidationError:o,isOpenAiProvider:l,onCustomKeyChange:u,onFieldErrorClear:d,onOpenAiValidationClear:h,onApiKeyValidationClear:v})=>{let b=(0,W.useMemo)(()=>Object.keys(e??{}),[e]);if(b.length===0)return null;let x=b[0];return(0,G.jsxs)(w,{align:`stretch`,children:[(0,G.jsx)(w,{align:`stretch`,gap:3,children:b.map(e=>{let b=n.find(t=>t.key===e),S=r?.[e],C=b?.type===`password`,w=b?.required??!1,T=S?.label??e,E=S?.description,D=l&&!!a&&e===x,O=!!i[e]||D;return(0,G.jsxs)(p,{required:w,invalid:O,children:[(0,G.jsxs)(y,{gap:1,align:`center`,children:[(0,G.jsxs)(g,{children:[T,w&&(0,G.jsx)(m,{})]}),E&&(0,G.jsx)(c,{content:E,positioning:{placement:`top`},showArrow:!0,children:(0,G.jsx)(f,{"aria-label":`Info about ${T}`,variant:`ghost`,size:`2xs`,colorPalette:`gray`,children:(0,G.jsx)(s,{})})})]}),(0,G.jsx)(X,{prefix:`${e}=`,placeholder:b?.placeholder,autoComplete:`off`,value:t[e]??``,onChange:t=>{u(e,t.target.value),i[e]&&d(e),l&&a&&h(),o&&v&&v()},showVisibilityToggle:C,ariaLabel:e,invalid:!!i[e]}),i[e]&&(0,G.jsx)(_,{children:i[e]})]},e)})}),l&&a&&(0,G.jsx)(p,{invalid:!0,children:(0,G.jsx)(_,{children:a})}),o&&(0,G.jsx)(p,{invalid:!0,children:(0,G.jsx)(_,{children:o})})]})},pe=({headers:e,onHeaderKeyChange:t,onHeaderValueChange:n,onRemoveHeader:i,onAddHeader:a})=>(0,G.jsx)(w,{align:`stretch`,gap:2,children:(0,G.jsxs)(p,{children:[(0,G.jsx)(g,{children:(0,G.jsx)(o,{fontSize:`sm`,fontWeight:`medium`,children:`Extra Headers`})}),(0,G.jsx)(d,{templateColumns:`auto auto`,gap:3,rowGap:2,children:e.map((e,r)=>(0,G.jsxs)(W.Fragment,{children:[(0,G.jsx)(v,{children:(0,G.jsx)(X,{placeholder:`Header name`,value:e.key,onChange:e=>t(r,e.target.value),ariaLabel:`Header name`})}),(0,G.jsx)(v,{children:(0,G.jsxs)(y,{gap:1,children:[(0,G.jsx)(X,{placeholder:`Header value`,value:e.value,onChange:e=>n(r,e.target.value),showVisibilityToggle:!0,ariaLabel:`Header value`}),(0,G.jsx)(f,{size:`sm`,variant:`ghost`,colorPalette:`red`,onClick:()=>i(r),"aria-label":`Remove header ${e.key||r+1}`,children:(0,G.jsx)(l,{})})]})})]},`${e.key}-${r}`))}),(0,G.jsx)(y,{justify:`end`,children:(0,G.jsxs)(r,{size:`xs`,variant:`surface`,bg:`bg.subtle/10`,backdropBlur:`md`,w:`full`,onClick:a,children:[(0,G.jsx)(M,{}),` Add Header`]})})]})}),Z=O(`ModelProviderSetup`),me=new Set([`openai`,`anthropic`,`gemini`,`deepseek`,`xai`]),he={evaluations:`/llm-evaluation/overview`,prompts:`/prompt-management/overview`,langy:`/introduction`,onboarding:`/introduction`},Q=({modelProviderKey:e,variant:t,onComplete:i})=>{let a=(0,W.useMemo)(()=>V.find(e=>!!e.backendModelProviderKey),[]),s=(0,W.useMemo)(()=>{let t=H(e);return t?.backendModelProviderKey?t:(a?.backendModelProviderKey?t?Z.warn({requestedKey:t.key,fallbackKey:a.key},`Model provider metadata missing backend key. Falling back to first available provider`):Z.warn({requestedKey:e,fallbackKey:a.key},`Model provider metadata not found. Falling back to first available provider`):Z.error({requestedKey:e},`Model provider metadata missing and no fallback provider available`),a??t)},[a,e]),{project:c,team:l,organization:u,hasPermission:d}=ee(),f=c?.id,m=(0,W.useMemo)(()=>s?.backendModelProviderKey?s.backendModelProviderKey:a?.backendModelProviderKey??`openai`,[a?.backendModelProviderKey,s?.backendModelProviderKey]),{providers:_,isLoading:v}=ie({projectId:f}),b=(0,W.useMemo)(()=>(_?_[m]:void 0)||{provider:m,enabled:!1,customKeys:null,models:null,embeddingsModels:null,disabledByDefault:!0,deploymentMapping:null,extraHeaders:[]},[m,_]),T=b.enabled&&(!b.customKeys||Object.keys(b.customKeys).length===0),[E,D]=oe({provider:b,projectId:f,teamId:l?.id,organizationId:u?.id,canManageOrganization:d(`organization:manage`),canManageTeam:d(`team:manage`),enabledProvidersCount:1,isUsingEnvVars:T,onSuccess:()=>{if(i){i();return}t===`evaluations`?window.location.href=`/@project/online-evaluations`:t===`prompts`?window.location.href=`/@project/prompts`:window.location.href=`/`}}),O=(0,W.useMemo)(()=>ae(m,`chat`),[m]),{fields:k}=de({providerKey:m,values:E.customKeys,useApiGateway:E.useApiGateway}),[j,M]=(0,W.useState)(),[L,R]=(0,W.useState)({}),{validate:z,validateWithCustomUrl:B,isValidating:U,validationError:K,clearError:q}=P(m,E.customKeys,f,u?.id,E.scopes);(0,W.useEffect)(()=>{M(void 0),R({}),q()},[e,q]);let J=m===`openai`,Y=(0,W.useCallback)((e,t)=>{D.setCustomKey(e,t)},[D]),X=(0,W.useCallback)(e=>{R(t=>{if(!t[e])return t;let n={...t};return delete n[e],n})},[]),Q=(0,W.useCallback)(()=>{M(void 0)},[]),$=(0,W.useCallback)(()=>{if(!J)return!0;let e=E.customKeys.OPENAI_API_KEY?.trim()??``,t=E.customKeys.OPENAI_BASE_URL?.trim()??``;return!e&&!t?(M(`Either API Key or Base URL must be provided`),!1):t===H(`open_ai`)?.defaultBaseUrl&&!e?(M(`API Key is required when using the default OpenAI base URL`),!1):(Q(),!0)},[J,E.customKeys,Q]),ge=(0,W.useCallback)(async()=>{if(R({}),Q(),q(),!$())return;let e=m?N[m]:void 0,t=e?.endpointKey,n=t&&E.customKeys[t]?.trim()||void 0,r=I(E.customKeys),i=le(E.customKeys,E.initialKeys);if(e?.keysSchema&&(!T||i)){let t=A([e.keysSchema,te({MANAGED:ne()})]),n={...E.customKeys},r=t.safeParse(n);if(!r.success){R(se(r.error));return}}let a=()=>{D.setEnabled(!0).then(()=>D.submit()).catch(e=>Z.error(e,`failed to submit model provider settings`))};if(r){if(!await z())return}else if(n){if(!await B(n))return}else if(!await B())return;a()},[$,D,m,E.customKeys,E.initialKeys,Q,q,T,z,B]);if(!s||!m)return null;if(v||!b)return(0,G.jsx)(w,{align:`stretch`,gap:3,children:(0,G.jsx)(n,{})});if(s.authFlow===`oauth-device`){let e=d(`organization:manage`)&&u?.id?{scopeType:`ORGANIZATION`,scopeId:u.id}:d(`team:manage`)&&l?.id?{scopeType:`TEAM`,scopeId:l.id}:{scopeType:`PROJECT`,scopeId:f??``};return(0,G.jsxs)(w,{align:`stretch`,gap:2,children:[(0,G.jsxs)(o,{fontSize:`md`,fontWeight:`semibold`,children:[`Connect `,s.label]}),(0,G.jsx)(ce,{projectId:f??``,scopes:[e],setAsCodingDefaults:!0,onConnected:()=>i?.()})]})}return(0,G.jsxs)(w,{align:`stretch`,gap:0,children:[(0,G.jsxs)(w,{align:`stretch`,gap:0,children:[(0,G.jsxs)(o,{fontSize:`md`,fontWeight:`semibold`,children:[`Configure `,s.label]}),(0,G.jsxs)(o,{fontSize:`xs`,color:`fg.muted`,children:[`Enter your API credentials for `,s.label]})]}),(0,G.jsxs)(w,{align:`stretch`,gap:4,children:[(0,G.jsx)(y,{gap:6,children:m===`azure`&&(0,G.jsx)(p,{children:(0,G.jsx)(re,{checked:E.useApiGateway,onCheckedChange:({checked:e})=>D.setUseApiGateway(e),children:`Use API Gateway`})})}),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(fe,{displayKeys:E.displayKeys,customKeys:E.customKeys,derivedFields:k,fieldMetadata:s.fieldMetadata,fieldErrors:L,openAiValidationError:j,apiKeyValidationError:K,isOpenAiProvider:J,onCustomKeyChange:Y,onFieldErrorClear:X,onOpenAiValidationClear:Q,onApiKeyValidationClear:q}),(m===`azure`||m===`custom`)&&(0,G.jsx)(pe,{headers:E.extraHeaders,onHeaderKeyChange:D.setExtraHeaderKey,onHeaderValueChange:D.setExtraHeaderValue,onRemoveHeader:D.removeExtraHeader,onAddHeader:D.addExtraHeader}),me.has(m)?(0,G.jsxs)(p,{children:[(0,G.jsx)(g,{children:`Default Chat Model`}),(0,G.jsxs)(S,{size:`sm`,bg:`bg.muted/40`,children:[(0,G.jsxs)(C,{value:E.projectDefaultModel??``,onChange:e=>D.setProjectDefaultModel(e.target.value||null),children:[(0,G.jsx)(`option`,{value:``,children:`Select default model...`}),O.map(e=>(0,G.jsx)(`option`,{value:e.value,children:e.label},e.value))]}),(0,G.jsx)(x,{})]}),(0,G.jsx)(h,{children:`This model will be used for evaluations, prompt optimization, and dataset generation.`})]}):(0,G.jsxs)(w,{align:`stretch`,gap:4,children:[(0,G.jsx)(F,{state:E,actions:D,provider:b,dialogBackground:`bg.surface`,showRegistryLink:!1}),(0,G.jsxs)(p,{children:[(0,G.jsx)(g,{children:`Default Chat Model`}),(0,G.jsxs)(S,{size:`sm`,bg:`bg.muted/40`,children:[(0,G.jsxs)(C,{value:E.projectDefaultModel??``,onChange:e=>D.setProjectDefaultModel(e.target.value||null),children:[(0,G.jsx)(`option`,{value:``,children:`Select default model...`}),E.customModels.map(e=>(0,G.jsx)(`option`,{value:e.modelId,children:e.displayName},e.modelId))]}),(0,G.jsx)(x,{})]}),(0,G.jsx)(h,{children:`This model will be used for evaluations, prompt optimization, and dataset generation.`})]})]}),(0,G.jsx)(ue,{docs:{external:s.externalDocsUrl,internal:he[t]},label:s.label}),(0,G.jsx)(y,{justify:`end`,children:(0,G.jsx)(r,{colorPalette:`orange`,onClick:ge,loading:E.isSaving||U,size:`sm`,children:`Save`})})]})]})]})},$=({variant:e,onComplete:t,initialProviderKey:n})=>{let[r,i]=(0,W.useState)(()=>n??q(e)[0]?.key??`open_ai`),o=(0,W.useRef)(null);return(0,G.jsxs)(w,{align:`stretch`,gap:6,mb:20,children:[(0,G.jsx)(J,{variant:e,modelProviderKey:r,onSelectModelProvider:(0,W.useCallback)(t=>{i(t),e===`langy`&&requestAnimationFrame(()=>{let e=o.current;e&&(e.querySelector(`input, select, textarea`)?.focus({preventScroll:!0}),e.scrollIntoView({behavior:`smooth`,block:`start`}))})},[e])}),(0,G.jsx)(a,{ref:o,scrollMarginTop:`12px`,children:(0,G.jsx)(Q,{modelProviderKey:r,variant:e,onComplete:t},r)})]})};export{$ as t};
2
+ //# sourceMappingURL=ModelProviderScreen-CoHgPhxe.js.map
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{r as n}from"./portal-FJIui2Z2.js";import{t as r}from"./jsx-runtime-CFwixLRt.js";import{t as i}from"./box-Ck5lef6C.js";import{t as a}from"./skeleton-YwQIu7Tp.js";import{t as o}from"./text-A3qvcMyN.js";import{s,t as c}from"./select-C5JAM7Gf.js";import{t as l}from"./tooltip-CYWvZEOf.js";import{J as u}from"./ExternalImage-As_YKOAz.js";import{a as d}from"./field-Dz4Xmo3X.js";import{t as f}from"./h-stack-CMPhqSp5.js";import{o as p,s as m}from"./immer-BdlOHsfO.js";import{n as h}from"./close-button-RGOW3hmk.js";import{n as g}from"./api-BK6L1im2.js";import{an as _}from"./lu-DlSq9Be4.js";import{Ar as v,Rt as y,Yn as b,t as x}from"./index-DtiounXP.js";import{i as S}from"./stringCasing-Cx6SsTTf.js";import{t as C}from"./input-group-D5-60Bl4.js";import{l as w,s as T,t as E}from"./registry-KCPOxhx0.js";import{i as D,r as O}from"./constants-c0j3xvrs.js";var k=e(t()),A=r(),j=[`openai`,`anthropic`,`gemini`],M=`/settings/model-providers`;function N({size:e=`md`,forFeatureLabel:t}){let r=t?` for ${t}`:``,a=()=>{window.open(M,`_blank`,`noopener,noreferrer`)};return(0,A.jsx)(i,{role:`link`,tabIndex:0,"aria-label":`Set up models${r}, opens settings in a new tab`,onClick:a,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),a())},width:e===`full`?`100%`:`auto`,borderWidth:`1px`,borderColor:`border`,borderRadius:`md`,bg:`bg`,paddingX:3,paddingY:2,cursor:`pointer`,transition:`background 0.15s, border-color 0.15s`,_hover:{bg:`bg.subtle`,borderColor:`border.emphasized`},_focusVisible:{outline:`2px solid`,outlineColor:`border.emphasized`,outlineOffset:`2px`},"data-testid":`no-models-configured-callout`,children:(0,A.jsxs)(f,{gap:2,align:`center`,justify:`space-between`,wrap:`nowrap`,children:[(0,A.jsxs)(f,{gap:2,align:`center`,flex:`1`,minWidth:0,children:[(0,A.jsx)(P,{}),(0,A.jsxs)(o,{fontSize:`xs`,fontWeight:`medium`,opacity:.8,lineClamp:1,"data-testid":`no-models-configured-title`,children:[`No models configured`,r]})]}),(0,A.jsx)(n,{as:`span`,size:`xs`,variant:`subtle`,colorPalette:`gray`,"data-testid":`no-models-configured-cta`,flexShrink:0,_hover:{bg:`gray.200`},pointerEvents:`none`,children:(0,A.jsxs)(f,{gap:1,children:[(0,A.jsx)(o,{children:`Set up`}),(0,A.jsx)(u,{size:12,"aria-hidden":!0})]})})]})})}function P(){return(0,A.jsx)(f,{gap:0,flexShrink:0,"aria-hidden":!0,children:j.map((e,t)=>(0,A.jsx)(i,{width:`20px`,height:`20px`,marginLeft:t===0?0:`-8px`,borderRadius:`full`,bg:`bg`,borderWidth:`1px`,borderColor:`border`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,zIndex:j.length-t,overflow:`hidden`,children:(0,A.jsx)(i,{width:`14px`,height:`14px`,children:m[e]})},e))})}var F=Object.entries(E).map(([e,t])=>({label:e,value:e,icon:m[e.split(`/`)[0]],isDisabled:!1,mode:t.mode})),I=F.map(e=>e.value),L=({models:e,featureKey:t})=>e.filter(e=>t===void 0?!T(e):w({modelId:e,featureKey:t})),R=(e,t,n=`chat`,r)=>{let{project:i}=y(),a=g.modelProvider.listAllForProjectForFrontend.useQuery({projectId:i?.id??``},{enabled:!!i?.id}),o={};for(let e of a.data?.providers??[]){let t=o[e.provider];if(!t){o[e.provider]=e;continue}o[e.provider]={...t,enabled:t.enabled||e.enabled,customModels:[...t.customModels??[],...e.customModels??[]],customEmbeddingsModels:[...t.customEmbeddingsModels??[],...e.customEmbeddingsModels??[]]}}let s=L({models:B(o,e,n),featureKey:r?.featureKey}),c=new Set;for(let[e,t]of Object.entries(o)){let r=n===`chat`?t.customModels:t.customEmbeddingsModels;if(r)for(let t of r)c.add(`${e}/${t.modelId}`)}let l=O(a.data?.providers??[]),u=s.map(e=>{let t=e.split(`/`)[0];return{label:D({fullModelId:e,displayNames:l}),value:e,icon:m[t],isDisabled:!1,mode:n,isCustom:c.has(e)}}),d=Object.entries(u.reduce((e,t)=>{let n=t.value.split(`/`)[0];return e[n]||(e[n]=[]),e[n].push(t),e},{})).map(([e,t])=>({provider:e,icon:m[e],models:[...t.filter(e=>e.isCustom),...t.filter(e=>!e.isCustom)]}));return{modelOption:u.find(e=>e.value===t),selectOptions:u,groupedByProvider:d,isLoading:a.isLoading,isEmpty:u.length===0||!1}},z=k.memo(function({model:e,options:t,onChange:r,size:u=`md`,mode:m,showConfigureAction:g=!1,forFeatureLabel:y,open:w,onOpenChange:T}){let{selectOptions:E,groupedByProvider:D,isEmpty:O,isLoading:j}=R(t,e,m),[M,P]=(0,k.useState)(``),F=D.map(e=>({...e,models:e.models.filter(e=>e.label.toLowerCase().includes(M.toLowerCase())||e.value.toLowerCase().includes(M.toLowerCase()))})).filter(e=>e.models.length>0),I=F.flatMap(e=>e.models),L=s({items:I}),z=E.find(t=>t.value===e),B=!z,V=e.split(`/`)[0]??``,H=!!e&&!!V&&!D.some(e=>e.provider===V),U=(0,A.jsxs)(f,{overflow:`hidden`,gap:2,align:`center`,children:[z?.icon&&(0,A.jsx)(p,{provider:V,size:u===`sm`?`14px`:`16px`}),(0,A.jsx)(i,{fontSize:u===`sm`?12:14,fontFamily:`mono`,lineClamp:1,wordBreak:`break-all`,color:H?`red.600`:B?`gray.500`:void 0,textDecoration:H?`line-through`:void 0,children:z?.label??e}),H&&(0,A.jsx)(l,{content:`${V} provider isn't enabled here. Re-add the provider or pick a different model to use it.`,positioning:{placement:`top`},showArrow:!0,children:(0,A.jsxs)(f,{gap:1,color:`red.600`,flexShrink:0,children:[(0,A.jsx)(h,{size:u===`sm`?12:14,"aria-hidden":!0}),(0,A.jsx)(o,{fontSize:u===`sm`?`2xs`:`xs`,fontWeight:`medium`,textTransform:`uppercase`,letterSpacing:`wide`,children:`Update needed`})]})})]}),[W,G]=(0,k.useState)(e);return(0,k.useEffect)(()=>{if(!I.find(e=>e.value===W)){let e=I[0]?.value??null;e!==W&&G(e)}},[M]),j?(0,A.jsx)(a,{width:u===`full`?`full`:u===`sm`?`180px`:`240px`,height:u===`sm`?`28px`:`40px`,borderRadius:`md`}):O?(0,A.jsx)(N,{size:u,forFeatureLabel:y}):(0,A.jsxs)(c.Root,{collection:L,value:[e],onChange:e=>{e.preventDefault(),e.stopPropagation()},onValueChange:e=>{let t=e.value[0];t&&r(t)},...w===void 0?{}:{open:w},...T?{onOpenChange:e=>T(e.open)}:{},loopFocus:!0,highlightedValue:W,onHighlightChange:e=>{G(e.highlightedValue)},size:u===`full`?void 0:u,children:[(0,A.jsx)(c.Trigger,{className:`fix-hidden-inputs`,width:u===`full`?`100%`:`auto`,background:`bg`,borderRadius:`lg`,padding:0,onPointerDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),children:(0,A.jsx)(c.ValueText,{placeholder:U,children:()=>U})}),(0,A.jsxs)(c.Content,{children:[(0,A.jsx)(d,{asChild:!0,children:(0,A.jsx)(i,{position:`sticky`,top:0,zIndex:`1`,children:(0,A.jsx)(C,{startElement:(0,A.jsx)(b,{size:16}),startOffset:`-4px`,background:`bg.panel`,width:`calc(100%)`,paddingY:1,borderBottom:`1px solid`,borderColor:`border`,children:(0,A.jsx)(v,{variant:`plain`,size:`sm`,placeholder:`Search models`,type:`search`,background:`transparent`,color:`fg`,value:M,onChange:e=>P(e.target.value)})})})}),F.map(e=>{let t=e.models.some(e=>e.isCustom),n=e.models.some(e=>!e.isCustom);return(0,A.jsx)(c.ItemGroup,{label:(0,A.jsx)(f,{gap:2,paddingX:2,children:(0,A.jsx)(o,{fontWeight:`medium`,children:S(e.provider)})}),children:e.models.map((r,a)=>{let o=e.models[a-1],s=t&&n&&!r.isCustom&&o?.isCustom;return(0,A.jsxs)(k.Fragment,{children:[s&&(0,A.jsx)(i,{borderBottom:`1px solid`,borderColor:`border`,marginX:2,marginY:1}),(0,A.jsx)(c.Item,{item:r,children:(0,A.jsxs)(f,{gap:2,children:[r.icon&&(0,A.jsx)(p,{provider:r.value.split(`/`)[0],size:`16px`}),(0,A.jsx)(i,{fontSize:u===`sm`?12:14,fontFamily:`mono`,paddingY:u===`sm`?0:`2px`,children:r.label})]})})]},r.value)})},e.provider)}),g&&(0,A.jsx)(i,{position:`sticky`,bottom:0,bg:`bg.panel`,borderTop:`1px solid`,borderColor:`border`,zIndex:`1`,children:(0,A.jsx)(n,{width:`full`,fontWeight:`500`,color:`fg.muted`,paddingY:5,justifyContent:`flex-start`,variant:`ghost`,colorPalette:`gray`,size:`sm`,borderRadius:`none`,asChild:!0,children:(0,A.jsxs)(x,{href:`/settings/model-providers`,isExternal:!0,_hover:{textDecoration:`none`},onClick:e=>e.stopPropagation(),children:[(0,A.jsx)(_,{}),(0,A.jsx)(o,{fontSize:u===`sm`?12:14,children:`Configure available models`})]})})})]})]})}),B=(e,t,n=`chat`)=>{let r=[],i=[];for(let[t,i]of Object.entries(e)){if(!i.enabled)continue;let e=n===`chat`?i.customModels:i.customEmbeddingsModels;if(e)for(let n of e)r.push(`${t}/${n.modelId}`)}let a=new Set(r);for(let r of t){if(!e[r.split(`/`)[0]]?.enabled)continue;let t=E[r]?.mode;t&&t!==n||a.has(r)||i.push(r)}return[...r,...i]};export{N as a,R as i,I as n,F as r,z as t};
2
+ //# sourceMappingURL=ModelSelector-dbR6V8hR.js.map
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{t as n}from"./jsx-runtime-CFwixLRt.js";import{t as r}from"./box-Ck5lef6C.js";import{t as i}from"./container-CAygaZzW.js";import{t as a}from"./DashboardLayout-cHFbN-Gk.js";import{kn as o}from"./index-DtiounXP.js";var s=e(t()),c=n();function l({children:e}){let[,t]=o(`lastVisitedHomeKind`,``);return(0,s.useEffect)(()=>{t(`personal`)},[t]),(0,c.jsx)(a,{personalScope:!0,children:(0,c.jsx)(i,{maxW:`container.xl`,paddingX:4,paddingY:4,children:(0,c.jsx)(r,{width:`full`,children:e})})})}export{l as t};
2
+ //# sourceMappingURL=MyLayout-BCFIoFGU.js.map
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{r as n}from"./portal-FJIui2Z2.js";import{t as r}from"./jsx-runtime-CFwixLRt.js";import{t as i}from"./text-A3qvcMyN.js";import{a,r as o}from"./field-Dz4Xmo3X.js";import{t as s}from"./h-stack-CMPhqSp5.js";import{n as c,r as l,t as u}from"./native-select-Bj4m9rSh.js";import{nt as d}from"./immer-BdlOHsfO.js";import{t as f}from"./chevron-left-BxUyhBNT.js";import{r as p}from"./next-router-Bn5Y8Iek.js";var m=e(t()),h=r(),g=25,_=[10,25,50,100,250],v=(e,t)=>{if(typeof e==`string`){let n=parseInt(e,10);return isNaN(n)?t:n}return t},y=e=>{if(!e)return null;try{let t=JSON.parse(atob(e));return{lastTimestamp:t.lastTimestamp,lastTraceId:t.lastTraceId,pageSize:t.pageSize,sortDirection:t.sortDirection}}catch(e){return console.warn(`Failed to decode cursor:`,e),null}},b=()=>{let e=p(),[t,n]=(0,m.useState)(0),[r,i]=(0,m.useState)(1),a=(0,m.useRef)([]),o=(0,m.useMemo)(()=>v(e.query.pageOffset,0),[e.query.pageOffset]),s=(0,m.useMemo)(()=>v(e.query.pageSize,g),[e.query.pageSize]),c=e.query.scrollId,l=!!c,u=(0,m.useMemo)(()=>y(c),[c]),d=Math.ceil(t/(u?.pageSize||s));(0,m.useEffect)(()=>{l||(i(1),a.current=[])},[l]);let f=(0,m.useCallback)(t=>{let{pageOffset:n,pageSize:r,scrollId:i,...a}=e.query,c={...a},l=t.pageOffset??o,u=t.pageSize??s,d=t.scrollId;return l!==0&&(c.pageOffset=l.toString()),u!==g&&(c.pageSize=u.toString()),d&&(c.scrollId=d),c},[e.query,o,s]),h=(0,m.useCallback)(t=>{if(t)c&&a.current.push(c),i(e=>e+1),e.push({pathname:e.pathname,query:f({scrollId:t})},void 0,{shallow:!0});else if(l)return;else e.push({pathname:e.pathname,query:f({pageOffset:o+s})},void 0,{shallow:!0})},[e,o,s,l,c,f]),_=(0,m.useCallback)(()=>{if(l){let t=a.current;if(t.length>0){let n=t.pop();i(e=>Math.max(1,e-1)),e.push({pathname:e.pathname,query:f({scrollId:n})},void 0,{shallow:!0})}else i(1),e.push({pathname:e.pathname,query:f({pageOffset:0,scrollId:null})},void 0,{shallow:!0})}else o>0&&e.push({pathname:e.pathname,query:f({pageOffset:o-s})},void 0,{shallow:!0})},[e,o,s,l,f]),b=(0,m.useCallback)(t=>{e.push({pathname:e.pathname,query:f({pageSize:t,pageOffset:0,scrollId:null})},void 0,{shallow:!0})},[e,f]),x=e=>{(0,m.useEffect)(()=>{e.isFetched&&n(e.data?.totalHits??0)},[e.data?.totalHits,e.isFetched,e.data])},S=(0,m.useRef)(e.query.query);return(0,m.useEffect)(()=>{e.query.project&&S.current!==e.query.query&&(S.current=e.query.query,e.push({pathname:e.pathname,query:f({pageOffset:0,pageSize:g,scrollId:null})},void 0,{shallow:!0}))},[e.query.query]),{totalHits:t,pageOffset:o,pageSize:s,useCursorPagination:l,cursorInfo:u,cursorPageNumber:r,estimatedTotalPages:d,nextPage:h,prevPage:_,changePageSize:b,useUpdateTotalHits:x}};function x({totalHits:e,pageOffset:t,pageSize:r,useCursorPagination:p=!1,cursorInfo:m=null,cursorPageNumber:g=1,estimatedTotalPages:v=1,nextPage:y,prevPage:b,changePageSize:x,scrollId:S}){if(e===0&&t===0&&!p)return null;let C=p?g<=1:t===0,w=p?!S:t+r>=e;return(0,h.jsxs)(s,{padding:6,gap:2,children:[(0,h.jsx)(a,{children:(0,h.jsxs)(s,{gap:3,children:[(0,h.jsx)(o,{flexShrink:0,children:`Items per page`}),(0,h.jsxs)(l,{size:`sm`,children:[(0,h.jsx)(u,{value:r.toString(),onChange:e=>x(parseInt(e.target.value,10)),borderColor:`black`,borderRadius:`lg`,children:_.map(e=>(0,h.jsx)(`option`,{value:e.toString(),children:e},e))}),(0,h.jsx)(c,{})]})]})}),(0,h.jsxs)(s,{gap:3,paddingRight:3,children:[(0,h.jsx)(i,{flexShrink:0,children:p?`Page ${g} of ~${v} (${e} total items)`:`${t+1}-${Math.min(t+r,e)} of ${e} items`}),(0,h.jsxs)(s,{gap:0,children:[(0,h.jsx)(n,{variant:`ghost`,padding:0,onClick:b,disabled:C,"aria-label":`Go to previous page`,title:`Go to previous page`,children:(0,h.jsx)(f,{})}),(0,h.jsx)(n,{variant:`ghost`,padding:0,disabled:w,onClick:()=>y(S),"aria-label":`Go to next page`,title:`Go to next page`,children:(0,h.jsx)(d,{})})]})]})]})}var S=b,C=x;export{S as n,C as t};
2
+ //# sourceMappingURL=NavigationFooter-BV-y1Ccf.js.map
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{r as n}from"./portal-FJIui2Z2.js";import{t as r}from"./jsx-runtime-CFwixLRt.js";import{lr as i}from"./useLiteMemberGuard-ChV0lUs4.js";import{n as a}from"./toaster-CRP22oRW.js";import{a as o,r as s,t as c}from"./field-Dz4Xmo3X.js";import{t as l}from"./h-stack-CMPhqSp5.js";import{it as u}from"./immer-BdlOHsfO.js";import{t as d}from"./v-stack-ClAMS101.js";import{r as f}from"./next-router-Bn5Y8Iek.js";import{n as p,u as m}from"./api-BK6L1im2.js";import{Ar as h,Rt as g,yt as _}from"./index-DtiounXP.js";import{s as v}from"./index.esm-C0ipNBTK.js";import{t as y}from"./tracking-6s9dX1_R.js";import{t as b}from"./useLicenseEnforcement-BIiCopDI.js";import{t as x}from"./EmojiPickerModal-DT_Uj7SU.js";var S=e(t()),C=r(),w=()=>{let e=`๐Ÿงฉ.โš™๏ธ.๐Ÿ“Š.๐Ÿ“ˆ.๐Ÿง .๐Ÿค–.๐Ÿ“.๐Ÿ“‹.๐Ÿ”.๐Ÿ› ๏ธ.๐Ÿ”ง.๐Ÿงช.๐Ÿ“ฆ.๐Ÿ’ฌ.๐Ÿ””.๐Ÿ“จ.๐Ÿ”—.๐Ÿ“ก.๐ŸŒ.๐Ÿ“ฑ.๐ŸŽจ.โœ๏ธ.๐Ÿ–Œ๏ธ.๐Ÿ“ท.๐ŸŽฌ.๐ŸŽญ.๐Ÿ“Š.๐Ÿ“ˆ.๐Ÿ“‰.๐Ÿ”ข.๐Ÿ“š.๐Ÿ”’.๐Ÿ›ก๏ธ.๐Ÿ”‘.๐Ÿ‘๏ธ.๐Ÿš€.โšก.๐Ÿ’ก.๐Ÿงฒ.๐Ÿงต.๐Ÿ”ฎ.๐ŸŽฏ.โฑ๏ธ.๐Ÿงฌ.๐Ÿงถ.๐ŸŒŸ.๐ŸŽ.๐ŸŒฑ.๐Ÿฆ.๐Ÿฅ.๐Ÿ›’.๐ŸŽ“.๐Ÿ—ƒ๏ธ.๐Ÿญ.โœจ.๐ŸŒˆ.๐Ÿง™โ€โ™‚๏ธ.๐Ÿฆ„.๐Ÿงš.๐ŸฆŠ.๐Ÿฆ‰.๐Ÿ™.๐Ÿฆ.๐Ÿข.๐Ÿฆ….๐Ÿฆ‹.๐Ÿ•.๐Ÿฆ.๐Ÿฅค.๐Ÿช.๐Ÿง.๐Ÿฏ.๐ŸŽฎ.๐ŸŽฒ.๐Ÿงธ.๐ŸŽช.๐ŸŽก.๐Ÿช„.๐ŸŒŠ.๐Ÿ”ฅ.๐Ÿ‚.๐ŸŒต.๐Ÿš.๐Ÿš‚.๐Ÿš—.๐Ÿ›ธ.๐Ÿ„โ€โ™‚๏ธ.๐Ÿง—โ€โ™€๏ธ.๐Ÿ†`.split(`.`);return e[Math.floor(Math.random()*e.length)]},T=({template:e,onClose:t})=>{let{project:r}=g(),T=f(),E=i(),[D]=(0,S.useState)(e.icon&&e.icon!==`๐Ÿงฉ`?e.icon:w()),{checkAndProceed:O}=b(`workflows`),{register:k,handleSubmit:A,watch:j,setValue:M,formState:{errors:N}}=v({defaultValues:{name:e.name??`New Workflow`,icon:D,description:e.description??``}}),P=p.workflow.create.useMutation(),F=j(`icon`),I=async n=>{if(!r)return;let i={...e,version:`1`,name:n.name,description:n.description,icon:n.icon??D};O(()=>{P.mutate({projectId:r.id,dsl:i,commitMessage:`Workflow creation`},{onSuccess:e=>{y(`workflow_create`,{project_id:r?.id}),t(),T.push(`/${r.slug}/studio/${e.workflow.id}`)},onError:e=>{m(e)||a.create({title:`Error creating workflow`,description:e.message,type:`error`})}})})},L=(0,S.useRef)(null);return(0,S.useEffect)(()=>{L.current&&(L.current.value=e.name??`New Workflow`,L.current.focus()),M(`name`,e.name??`New Workflow`),M(`icon`,D),M(`description`,e.description??``)},[e]),(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)(`form`,{onSubmit:A(I),children:[(0,C.jsx)(_.Body,{children:(0,C.jsxs)(d,{gap:4,align:`stretch`,children:[(0,C.jsxs)(o,{invalid:!!N.name,children:[(0,C.jsx)(x,{open:E.open,onClose:E.onClose,onChange:e=>{M(`icon`,e),E.onClose()}}),(0,C.jsx)(s,{children:`Name and Icon`}),(0,C.jsxs)(l,{children:[(0,C.jsx)(n,{variant:`outline`,onClick:E.onOpen,fontSize:`18px`,children:F}),(0,C.jsx)(h,{...k(`name`,{required:`Name is required`}),ref:L,onChange:e=>{M(`name`,e.target.value)}})]}),(0,C.jsx)(c,{children:N.name?.message})]}),(0,C.jsxs)(o,{invalid:!!N.description,children:[(0,C.jsx)(s,{children:`Description`}),(0,C.jsx)(u,{...k(`description`)}),(0,C.jsx)(c,{children:N.description?.message})]})]})}),(0,C.jsx)(_.Footer,{children:(0,C.jsx)(n,{type:`submit`,colorPalette:`blue`,loading:P.isLoading,onClick:()=>{A(I)()},children:`Create Workflow`})})]})})};export{w as n,T as t};
2
+ //# sourceMappingURL=NewWorkflowForm-DgYkTq45.js.map
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./jsx-runtime-CFwixLRt.js";import{t}from"./box-Ck5lef6C.js";import{t as n}from"./icon-CkSWK_vf.js";import{a as r,i,n as a,r as o,t as s}from"./empty-state-Al7XUd1I.js";import{t as c}from"./v-stack-ClAMS101.js";import{Mr as l}from"./index-DtiounXP.js";var u=e(),d=({title:e,description:d,icon:f,docsInfo:p,children:m})=>(0,u.jsx)(l,{flex:1,padding:6,children:(0,u.jsx)(i,{children:(0,u.jsxs)(s,{children:[(0,u.jsx)(o,{children:(0,u.jsx)(n,{size:`lg`,children:f})}),(0,u.jsx)(r,{children:e}),(0,u.jsx)(a,{children:(0,u.jsx)(l,{children:(0,u.jsxs)(c,{align:`center`,children:[(0,u.jsx)(t,{children:d}),(0,u.jsx)(t,{children:p}),m]})})})]})})});export{d as t};
2
+ //# sourceMappingURL=NoDataInfoBlock-CqSD7i-D.js.map
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./jsx-runtime-CFwixLRt.js";import{t}from"./box-Ck5lef6C.js";import{n,t as r}from"./skeleton-YwQIu7Tp.js";import{t as i}from"./text-A3qvcMyN.js";import{t as a}from"./tooltip-CYWvZEOf.js";import{t as o}from"./icon-button-Ce2kwA7j.js";import{t as s}from"./container-CAygaZzW.js";import{t as c}from"./h-stack-CMPhqSp5.js";import{t as l}from"./v-stack-ClAMS101.js";import{t as u}from"./arrow-left-BWMkb3Ih.js";import{t as d}from"./arrow-right-00XC9HsO.js";import{t as f}from"./log-out-CS-kk87q.js";import{s as p}from"./auth-client-4OIM4EvK.js";import{Mn as m,Mr as h,t as g}from"./index-DtiounXP.js";import{n as _,t as v}from"./react-FE7US63s.js";import{t as y}from"./FullLogo-itaa7fj-.js";import{t as b}from"./OnboardingMeshBackground-BIlTPTs3.js";var x=e(),S=({loading:e})=>(0,x.jsxs)(l,{gap:6,align:`stretch`,children:[(0,x.jsxs)(l,{gap:2,align:`stretch`,children:[(0,x.jsx)(r,{loading:e,h:`40px`,borderRadius:`lg`,variant:`shine`}),(0,x.jsx)(n,{loading:e,noOfLines:1,gap:2,variant:`shine`}),(0,x.jsxs)(c,{gap:3,align:`center`,children:[(0,x.jsx)(r,{loading:e,boxSize:`20px`,borderRadius:`xs`,variant:`shine`}),(0,x.jsx)(n,{loading:e,noOfLines:1,w:`65%`,variant:`shine`})]})]}),(0,x.jsxs)(c,{justify:`space-between`,w:`full`,children:[(0,x.jsx)(t,{}),(0,x.jsx)(c,{gap:3,children:(0,x.jsx)(r,{loading:e,h:`40px`,w:`80px`,borderRadius:`lg`,variant:`shine`})})]})]}),C=v.create(t),w=v.create(h),T=v.create(i),E=({children:e,title:n,subTitle:r,loading:i,compressedHeader:c,widthVariant:v=`narrow`,showBackButton:E,onBack:D,skipHref:O,isLogoInside:k})=>{let{emit:A}=m(),j=v===`full`,M=(0,x.jsxs)(l,{gap:1.5,align:`center`,textAlign:`center`,w:`full`,children:[(0,x.jsx)(_,{mode:`wait`,children:(0,x.jsx)(T,{textStyle:`xl`,fontWeight:`600`,color:`fg`,letterSpacing:`-0.01em`,lineHeight:`1.3`,initial:{opacity:0,y:6,filter:`blur(4px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:{opacity:0,y:-6,filter:`blur(4px)`},transition:{duration:.2,ease:`easeOut`},children:n},n)}),(0,x.jsx)(_,{mode:`wait`,children:r&&(0,x.jsx)(T,{textStyle:`sm`,color:`fg.muted`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15,ease:`easeOut`},children:r},r)})]});return(0,x.jsxs)(t,{w:`full`,minH:`100dvh`,bg:`bg.page`,position:`relative`,style:{scrollbarGutter:`stable both-edges`},overflowY:`auto`,children:[(0,x.jsx)(b,{}),E&&D&&(0,x.jsx)(C,{position:`fixed`,top:3,left:3,zIndex:99,initial:{opacity:0,x:-8},animate:{opacity:1,x:0},transition:{duration:.3,ease:`easeOut`,delay:.2},children:(0,x.jsx)(a,{content:`Back`,children:(0,x.jsx)(o,{variant:`ghost`,size:`sm`,borderRadius:`full`,"aria-label":`Go back`,_hover:{bg:`bg.muted`},onClick:D,children:(0,x.jsx)(u,{size:18})})})}),(0,x.jsx)(C,{position:`fixed`,top:3,right:3,zIndex:99,initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:.5},children:(0,x.jsx)(a,{content:`Sign out`,children:(0,x.jsx)(o,{variant:`ghost`,size:`sm`,borderRadius:`full`,"aria-label":`Sign out`,color:`fg.subtle`,_hover:{bg:`bg.muted`,color:`fg`},onClick:()=>{A(`clicked`,`sign_out`),p()},children:(0,x.jsx)(f,{size:16})})})}),O&&(0,x.jsx)(C,{position:`fixed`,right:`24px`,bottom:`24px`,zIndex:11,initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.3,delay:.6},children:(0,x.jsx)(t,{asChild:!0,display:`inline-flex`,alignItems:`center`,gap:`6px`,px:`16px`,py:`8px`,borderRadius:`10px`,fontSize:`13px`,fontWeight:`500`,color:`fg.muted`,bg:`bg.panel/70`,backdropFilter:`blur(12px)`,border:`1px solid`,borderColor:`border.subtle`,boxShadow:`sm`,textDecoration:`none`,cursor:`pointer`,transition:`all 0.25s ease`,_hover:{bg:`bg.panel`,color:`fg`,boxShadow:`md`,transform:`translateY(-2px)`,borderColor:`border.emphasized`},children:(0,x.jsxs)(g,{href:O,children:[`Continue to LangWatch`,(0,x.jsx)(d,{size:14})]})})}),!k&&(0,x.jsx)(w,{pt:c?`6vh`:`10vh`,pb:c?`2vh`:`4vh`,initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},transition:{duration:.5,ease:`easeOut`},children:(0,x.jsx)(y,{width:150})}),(0,x.jsx)(s,{width:`full`,mx:`auto`,pt:k?c?`8vh`:`14vh`:void 0,pb:16,maxW:j?{base:`100%`,"2xl":`1440px`}:{base:`100%`,md:`540px`},px:j?{base:5,md:10}:{base:4,md:0},...j?{fluid:!0}:{},children:(0,x.jsx)(C,{bg:`bg.panel`,borderRadius:`16px`,border:`1px solid`,borderColor:`border.subtle`,boxShadow:`sm`,px:{base:5,md:j?8:7},py:{base:6,md:8},initial:{opacity:0,y:16,scale:.98},animate:{opacity:1,y:0,scale:1},transition:{duration:.5,ease:[.16,1,.3,1],delay:.1},children:(0,x.jsxs)(l,{gap:j?8:6,align:`stretch`,w:`full`,children:[k&&(0,x.jsx)(h,{pt:1,children:(0,x.jsx)(y,{width:130})}),M,i?(0,x.jsx)(S,{loading:!0}):e]})})})]})};export{E as t};
2
+ //# sourceMappingURL=OnboardingContainer-jXD3w576.js.map
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{a as n,en as r,i,o as a,r as o}from"./portal-FJIui2Z2.js";import{t as s}from"./jsx-runtime-CFwixLRt.js";import{t as ee}from"./box-Ck5lef6C.js";import{t as c}from"./text-A3qvcMyN.js";import{Mn as l,cn as u}from"./useLiteMemberGuard-ChV0lUs4.js";import{t as d}from"./tooltip-CYWvZEOf.js";import{c as f,o as te,s as p}from"./radio-group-y_PtCP6q.js";import{a as ne,i as re,n as ie,r as ae}from"./alert-C5hocQt_.js";import{t as m}from"./h-stack-CMPhqSp5.js";import{n as h,r as g,t as _}from"./native-select-Bj4m9rSh.js";import{t as v}from"./v-stack-ClAMS101.js";import{t as oe}from"./createLucideIcon-WbxVGt4j.js";import{n as se}from"./close-button-RGOW3hmk.js";import{t as ce}from"./arrow-left-BWMkb3Ih.js";import{n as y}from"./api-BK6L1im2.js";import{xt as le}from"./lu-DlSq9Be4.js";import{Ar as b,En as x,F as S,H as ue,L as de,N as fe,Rt as pe,V as me,Vn as he,ni as ge,z as C}from"./index-DtiounXP.js";import{s as _e}from"./index.esm-C0ipNBTK.js";import{t as ve}from"./useLicenseEnforcement-BIiCopDI.js";import{t as w}from"./HorizontalFormControl-COLSSPyK.js";import{r as T,t as E}from"./tracesMapping-DJvqZsfB.js";import{t as D}from"./OverflownText-DITOBs56.js";import{t as ye}from"./SmallLabel-BUZxxHop.js";import{t as be}from"./EvaluatorSelectionBox-CPndz_g-.js";import{a as xe,c as Se,i as Ce,n as we,o as Te,r as Ee,s as De,t as Oe}from"./preconditionFieldUtils-CAy-eXPR.js";import{t as O}from"./evaluatorEditorCallbacks-DSx3aJ6w.js";import{i as ke}from"./mappingValidation-DPNnGAuO.js";var k=s(),A=e(t(),1),{withProvider:j,withContext:M,useStyles:N,PropsProvider:P}=a({key:`radioCard`});j(p.RootProvider,`root`,{forwardAsChild:!0});var Ae=j(p.Root,`root`,{forwardAsChild:!0});M(p.Label,`label`,{forwardAsChild:!0});var F=M(p.Item,`item`,{forwardAsChild:!0});M(p.ItemText,`itemText`,{forwardAsChild:!0}),M(`div`,`itemDescription`,{forwardAsChild:!0});var I=(0,A.forwardRef)(function(e,t){let i=f(),a=N();return(0,k.jsx)(r.div,{ref:t,"data-focus":n(i.focused),"data-disabled":n(i.disabled),"data-state":i.checked?`checked`:`unchecked`,"data-hover":n(i.hovered),"data-active":n(i.active),"data-invalid":n(i.invalid),...e,css:[a.itemControl,e.css]})}),L=M(`div`,`itemContent`);M(`div`,`itemAddon`);var R=(0,A.forwardRef)(function(e,t){let{checked:n,...i}=e,a=N(),o=f();return n&&o.checked?(0,k.jsx)(r.span,{ref:t,asChild:!0,...i,"aria-hidden":`true`,css:[a.itemIndicator,e.css],children:n}):(0,k.jsx)(te,{ref:t,unstyled:!0,...e,"aria-hidden":`true`,checked:o.checked,disabled:o.disabled,css:[a.itemIndicator,e.css]})});p.Context,p.ItemContext;var z=p.ItemHiddenInput,je=oe(`spool`,[[`path`,{d:`M17 13.44 4.442 17.082A2 2 0 0 0 4.982 21H19a2 2 0 0 0 .558-3.921l-1.115-.32A2 2 0 0 1 17 14.837V7.66`,key:`13vns8`}],[`path`,{d:`m7 10.56 12.558-3.642A2 2 0 0 0 19.018 3H5a2 2 0 0 0-.558 3.921l1.115.32A2 2 0 0 1 7 9.163v7.178`,key:`s8x3u0`}]]),Me=x();function Ne({title:e,description:t,icon:n,value:r,...i}){return(0,k.jsx)(d,{disabled:!i.disabled,content:`Coming Soon`,children:(0,k.jsx)(ee,{children:(0,k.jsxs)(F,{value:r,width:`full`,minWidth:0,_active:{background:`colorPalette.muted/20`},_icon:{color:`colorPalette.solid`},...i,_disabled:{opacity:.4,pointerEvents:`none`,cursor:`not-allowed`},children:[(0,k.jsx)(z,{}),(0,k.jsxs)(I,{cursor:`pointer`,width:`full`,children:[(0,k.jsx)(L,{width:`full`,children:(0,k.jsxs)(m,{align:`start`,gap:3,width:`full`,_icon:{width:`22px`,height:`22px`},children:[n,(0,k.jsxs)(v,{align:`start`,gap:1,width:`full`,children:[(0,k.jsx)(D,{children:e}),(0,k.jsx)(c,{fontSize:`sm`,color:`fg.muted`,fontWeight:`normal`,children:t})]})]})}),(0,k.jsx)(R,{})]})]})})})}function Pe(e,t){let n={};for(let[r,i]of Object.entries(e.mapping))if(i.source){let e=[i.source];`type`in i&&i.type===`thread`?`selectedFields`in i&&i.selectedFields?.length&&e.push(...i.selectedFields):(`key`in i&&i.key&&e.push(i.key),`subkey`in i&&i.subkey&&e.push(i.subkey));let a=`type`in i&&i.type===`thread`;n[r]={type:`source`,sourceId:t===`thread`||a?`thread`:`trace`,path:e}}return n}function Fe(e){let t={mapping:{},expansions:[]};for(let[n,r]of Object.entries(e))if(r.type===`source`&&r.path.length>0){let e=r.path,i=e[0];if(i in T||E.includes(i)||r.sourceId===`thread`){let r=e.length>1?e.slice(1):void 0;t.mapping[n]={type:`thread`,source:i,selectedFields:r}}else t.mapping[n]={source:i,key:e[1],subkey:e[2]}}return t}var B={input:`input`,output:`output`,contexts:`contexts`,"contexts.string_list":`contexts.string_list`};function V(e){return e?.fields?e.fields.map(e=>e.identifier):[]}function H(e,t){let n={},r=t===`trace`?`trace`:`thread`;for(let i of e){let e=B[i];e&&t===`trace`&&(n[i]={type:`source`,sourceId:r,path:[e]}),i===`input`&&t===`thread`&&(n[i]={type:`source`,sourceId:r,path:[`traces`]})}return n}var U=null,W=()=>{U=null},G=e=>{U=e},K=new Set([`evaluatorList`,`evaluatorEditor`,`evaluatorCategorySelector`]);function Ie(){return S().some(e=>e.drawer===`onlineEvaluation`||K.has(e.drawer))}function q(e){let{project:t}=pe(),{closeDrawer:n,openDrawer:r,canGoBack:a,goBack:s}=me(),f=fe(),te=ue(),p=y.useContext(),{checkAndProceed:oe}=ve(`onlineEvaluations`),x=e.onClose??n,S=e.onSave??f.onSave,T=e.monitorId??te.monitorId??f.monitorId,E=e.open!==!1&&e.open!==void 0,D=_e({defaultValues:{level:U?.level??null,name:U?.name??``,sample:U?.sample??1,preconditions:U?.preconditions??[Oe],threadIdleTimeout:U?.threadIdleTimeout??300}}),j=D.watch(`level`),M=D.watch(`name`),N=D.watch(`sample`),P=D.watch(`preconditions`),F=D.watch(`threadIdleTimeout`),[I,L]=(0,A.useState)(()=>U?.selectedEvaluator??null),[R,z]=(0,A.useState)(()=>U?.mappings??{}),[B,W]=(0,A.useState)(!1);(0,A.useLayoutEffect)(()=>()=>{Ie()||(U=null)},[]);let G=(0,A.useRef)(!0);(0,A.useEffect)(()=>{let e=D.watch(()=>{if(G.current){G.current=!1;return}W(!0)});return()=>e.unsubscribe()},[D]);let K=y.monitors.getById.useQuery({id:T??``,projectId:t?.id??``},{enabled:!!T&&!!t?.id&&E}),q=y.evaluators.getById.useQuery({id:K.data?.evaluatorId??``,projectId:t?.id??``},{enabled:!!K.data?.evaluatorId&&!!t?.id&&E}),J=U?.pendingEvaluatorId,Le=Intl.DateTimeFormat().resolvedOptions().timeZone,Re=y.evaluators.getById.useQuery({id:J??``,projectId:t?.id??``},{enabled:!!J&&!!t?.id&&E}),ze=y.monitors.create.useMutation({onSuccess:()=>{p.monitors.getAllForProject.invalidate({projectId:t?.id??``}),p.monitors.getPerformanceForProject.invalidate({projectId:t?.id??``,timeZone:Le}),U=null,S?.(),x()}}),Be=y.monitors.update.useMutation({onSuccess:()=>{p.monitors.getAllForProject.invalidate({projectId:t?.id??``}),p.monitors.getPerformanceForProject.invalidate({projectId:t?.id??``,timeZone:Le}),T&&p.monitors.getById.invalidate({id:T,projectId:t?.id??``}),U=null,S?.(),x()}}),Ve=(0,A.useMemo)(()=>V(I),[I]),He=(0,A.useMemo)(()=>I?.fields?ke(I.fields.filter(e=>!e.optional).map(e=>e.identifier),I.fields.filter(e=>e.optional).map(e=>e.identifier),R):{isValid:!0,hasAnyMapping:!1,missingRequiredFields:[]},[I,R]),Y=He.missingRequiredFields,X=I!==null&&!He.isValid,Z=(0,A.useRef)(!1),Ue=(0,A.useRef)(!1);(0,A.useEffect)(()=>{let e=!!U&&!Ie();!Ue.current&&E&&(!U||e)&&(U=null,D.reset({level:null,name:``,sample:1,preconditions:[Oe],threadIdleTimeout:300}),L(null),z({}),W(!1),G.current=!0,Z.current=!1),Ue.current=E},[E,D]),(0,A.useEffect)(()=>{E&&(U={level:j,name:M,selectedEvaluator:I,sample:N,mappings:R,preconditions:P,threadIdleTimeout:F,pendingEvaluatorId:U?.pendingEvaluatorId})},[E,j,M,I,N,R,P,F]);let We=(0,A.useCallback)(()=>W(!0),[]),Ge=(0,A.useCallback)(()=>{B&&!window.confirm(`You have unsaved changes. Are you sure you want to close?`)||(U=null,W(!1),Z.current=!1,a?s():x())},[x,B,a,s]);(0,A.useEffect)(()=>{if(!Z.current&&!U?.selectedEvaluator&&K.data&&T){Z.current=!0;let e=K.data.name,t=K.data.sample,n=K.data.preconditions??[],r=K.data.threadIdleTimeout??null,i=K.data.level??`trace`;D.reset({name:e,sample:t,preconditions:n,threadIdleTimeout:r,level:i});let a=K.data.mappings;a?.mapping&&z(Pe(a,i)),W(!1),G.current=!0}},[K.data,T,D]),(0,A.useEffect)(()=>{q.data&&L(q.data)},[q.data]);let Ke=(0,A.useRef)(null);(0,A.useEffect)(()=>{if(I?.fields&&j&&Ke.current!==I.id&&Object.keys(R).length===0){Ke.current=I.id;let e=H(V(I),j);z(e),U&&={...U,mappings:e}}},[I,j,R]),(0,A.useEffect)(()=>{if(Re.data&&J){let e=Re.data;L(e),We(),M||D.setValue(`name`,e.name);let t=H(V(e),j);z(t),U&&={...U,selectedEvaluator:e,mappings:t,pendingEvaluatorId:void 0}}},[Re.data,J,M,j,D,We]);let Q=(0,A.useCallback)((e,t)=>{if(U){let n=U.mappings,r=t?{...n,[e]:t}:Object.fromEntries(Object.entries(n).filter(([t])=>t!==e));U={...U,mappings:r}}z(n=>t?{...n,[e]:t}:Object.fromEntries(Object.entries(n).filter(([t])=>t!==e))),W(!0)},[]),qe=(0,A.useCallback)(()=>{if(!I)return;C(`evaluatorEditor`,O({onMappingChange:Q}));let e={level:j??void 0,initialMappings:R};r(`evaluatorEditor`,{evaluatorId:I.id,mappingsConfig:e})},[I,j,R,Q,r]),Je=(0,A.useCallback)(()=>{if(!I)return;C(`evaluatorList`,{onSelect:e=>{let t=M||e.name;L(e),W(!0),M||D.setValue(`name`,t);let n=H(V(e),j);z(n),U={level:j,name:t,selectedEvaluator:e,sample:N,mappings:n,preconditions:P,threadIdleTimeout:F},C(`evaluatorEditor`,O({onMappingChange:Q}));let i={level:j??void 0,initialMappings:n};r(`evaluatorEditor`,{evaluatorId:e.id,mappingsConfig:i,saveButtonText:`Select Evaluator`},{replaceCurrentInStack:!0})}}),C(`evaluatorEditor`,O({onMappingChange:Q}));let e={level:j??void 0,initialMappings:R};r(`evaluatorEditor`,{evaluatorId:I.id,mappingsConfig:e})},[I,M,j,N,P,R,Q,r]),Ye=(0,A.useCallback)(()=>{let e=e=>{let t=M||e.name;L(e),W(!0),M||D.setValue(`name`,t);let n=H(V(e),j);z(n),U={level:j,name:t,selectedEvaluator:e,sample:N,mappings:n,preconditions:P,threadIdleTimeout:F},C(`evaluatorEditor`,O({onMappingChange:Q}));let i={level:j??void 0,initialMappings:n};r(`evaluatorEditor`,{evaluatorId:e.id,mappingsConfig:i,saveButtonText:`Select Evaluator`},{replaceCurrentInStack:!0})},t=()=>{let e=j,t=M,n=N,r=P,i=F;C(`evaluatorEditor`,O({onSave:a=>(U={level:e,name:t||a.name,selectedEvaluator:null,sample:n,mappings:{},preconditions:r,threadIdleTimeout:i,pendingEvaluatorId:a.id},de(`onlineEvaluation`,{resetStack:!0}),!0)}))};C(`evaluatorList`,{onSelect:e,onCreateNew:()=>{t(),r(`evaluatorCategorySelector`)}}),r(`evaluatorList`,{})},[M,j,N,P,r,Q,F]),Xe=(0,A.useCallback)(e=>{if(!e.value)return;let t=e.value;if(D.setValue(`level`,t),I){let e=H(Ve,t);z(e),U&&={...U,level:t,mappings:e}}else z({}),U&&={...U,level:t,mappings:{}}},[I,Ve,D]),[Ze,Qe]=(0,A.useState)(!1),$e=(0,A.useCallback)(()=>{let e=D.getValues(`preconditions`);D.setValue(`preconditions`,[...e,{field:`metadata.labels`,rule:`contains`,value:``}]),Qe(!0)},[D]),et=(0,A.useCallback)(e=>{let t=D.getValues(`preconditions`).filter((t,n)=>n!==e);D.setValue(`preconditions`,t),De(t)&&Qe(!1)},[D]),$=(0,A.useCallback)((e,t,n)=>{let r=D.getValues(`preconditions`).map((r,i)=>{if(i!==e)return r;if(t===`field`){let e=n,t=r.rule,i={field:e};Se(e,t)||(i.rule=Ce(e)[0]??`is`);let a=Te(e);return a!==Te(r.field)&&(i.value=a===`boolean`?`true`:``),i.key=void 0,i.subkey=void 0,{...r,...i}}return{...r,[t]:n}});D.setValue(`preconditions`,r)},[D]),tt=(0,A.useMemo)(()=>xe(),[]),nt=(0,A.useCallback)(()=>{if(!I||!t?.id||!M.trim()||X)return;let e=I.type===`workflow`,n=I.config,r=e?`workflow`:I.type===`code`?`code/${I.id}`:n?.evaluatorType??`langevals/basic`,i=n?.settings??{},a=Fe(R);T?Be.mutate({id:T,projectId:t.id,name:M.trim(),checkType:r,preconditions:P,settings:i,mappings:a,sample:N,executionMode:Me.EvaluationExecutionMode.ON_MESSAGE,evaluatorId:I.id,level:j??`trace`,threadIdleTimeout:j===`thread`?F:null}):oe(()=>{ze.mutate({projectId:t.id,name:M.trim(),checkType:r,preconditions:P,settings:i,mappings:a,sample:N,executionMode:Me.EvaluationExecutionMode.ON_MESSAGE,evaluatorId:I.id,level:j??`trace`,threadIdleTimeout:j===`thread`?F:null})})},[I,t?.id,M,X,R,T,N,P,Be,ze,j,F,oe]),rt=ze.isPending||Be.isPending,it=!!j&&!!I&&!!M.trim()&&!rt&&!X,at=N>=1?`every trace`:`${+(N*100).toFixed(2)}% of traces`;return(0,k.jsx)(u.Root,{open:E,onOpenChange:({open:e})=>!e&&Ge(),size:`lg`,children:(0,k.jsxs)(u.Content,{bg:`bg`,children:[(0,k.jsx)(u.CloseTrigger,{}),(0,k.jsx)(u.Header,{children:(0,k.jsxs)(m,{gap:2,children:[a&&(0,k.jsx)(o,{variant:`ghost`,size:`sm`,onClick:s,padding:1,minWidth:`auto`,children:(0,k.jsx)(ce,{size:20})}),(0,k.jsx)(ge,{size:`md`,children:T?`Edit Online Evaluation`:`New Online Evaluation`})]})}),(0,k.jsx)(u.Body,{children:(0,k.jsxs)(v,{gap:0,align:`stretch`,children:[(0,k.jsx)(w,{label:`Evaluation Level`,helper:`Select at which level should the online evaluation run`,align:`start`,labelProps:{paddingLeft:0},children:(0,k.jsx)(Ae,{variant:`outline`,colorPalette:`orange`,value:j??``,onValueChange:Xe,width:`full`,children:(0,k.jsxs)(v,{gap:2,width:`full`,align:`stretch`,children:[(0,k.jsx)(Ne,{value:`trace`,title:`Trace Level`,description:`Evaluate each trace individually as it arrives`,icon:(0,k.jsx)(le,{}),width:`full`}),(0,k.jsx)(Ne,{value:`thread`,title:`Thread Level`,description:`Evaluate all traces in a thread together`,icon:(0,k.jsx)(je,{}),width:`full`})]})})}),j&&(0,k.jsx)(w,{label:`Evaluator`,helper:(0,k.jsxs)(c,{lineHeight:`1.5`,children:[`Select an evaluator to run on incoming traces`,I&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`br`,{}),(0,k.jsx)(c,{as:`span`,color:`blue.500`,cursor:`pointer`,textDecoration:`underline`,_hover:{color:`blue.600`},onClick:()=>{L(null),D.setValue(`name`,``),z({}),W(!0)},children:`(Remove Selection)`})]})]}),children:(0,k.jsxs)(v,{align:`stretch`,gap:2,children:[(0,k.jsx)(be,{selectedEvaluator:I,onSelectClick:Ye,onEditClick:Je,placeholder:`Select Evaluator`}),X&&(0,k.jsxs)(re,{status:`warning`,children:[(0,k.jsx)(ae,{children:(0,k.jsx)(se,{size:16})}),(0,k.jsxs)(ee,{flex:`1`,children:[(0,k.jsx)(ne,{children:Y.length>0?`${Y.length} field${Y.length>1?`s`:``} need${Y.length===1?`s`:``} mapping`:`At least one field needs mapping`}),(0,k.jsx)(ie,{children:`Configure how evaluator inputs map to trace data.`})]}),(0,k.jsx)(o,{size:`sm`,variant:`outline`,onClick:qe,children:`Configure`})]})]})}),j&&I&&(0,k.jsx)(w,{label:`Name`,helper:`A descriptive name for this online evaluation`,children:(0,k.jsx)(b,{...D.register(`name`),placeholder:`Enter evaluation name`})}),j&&I&&(0,k.jsx)(w,{label:(0,k.jsxs)(m,{children:[`Preconditions (Optional)`,(0,k.jsx)(d,{content:`Conditions that must be met for this evaluation to run`,children:(0,k.jsx)(l,{size:14})})]}),helper:`Only run this evaluation when certain conditions are met`,children:(0,k.jsx)(v,{align:`start`,gap:3,children:De(P)&&!Ze?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c,{color:`gray.500`,fontStyle:`italic`,children:`This evaluation will run on every application trace`}),(0,k.jsx)(o,{variant:`outline`,onClick:$e,children:`Add Precondition`})]}):(0,k.jsxs)(k.Fragment,{children:[P.map((e,t)=>{let n=e.field,r=Ce(n),i=Te(n),a=Ee(n);return(0,k.jsx)(ee,{borderLeft:`4px solid`,borderLeftColor:`blue.400`,width:`full`,children:(0,k.jsxs)(v,{padding:3,width:`full`,align:`start`,position:`relative`,children:[(0,k.jsx)(o,{"aria-label":`Remove precondition ${t+1}`,position:`absolute`,right:0,top:0,padding:0,size:`sm`,variant:`ghost`,onClick:()=>et(t),color:`gray.400`,children:(0,k.jsx)(he,{size:16})}),(0,k.jsx)(ye,{children:t===0?`When`:`and`}),(0,k.jsxs)(m,{gap:2,flexWrap:`wrap`,children:[(0,k.jsxs)(g,{minWidth:`fit-content`,children:[(0,k.jsx)(_,{value:e.field,onChange:e=>$(t,`field`,e.target.value),children:tt.map(e=>(0,k.jsx)(`optgroup`,{label:e.category,children:e.fields.map(e=>(0,k.jsx)(`option`,{value:e.value,children:e.label},e.value))},e.category))}),(0,k.jsx)(h,{})]}),a&&(0,k.jsx)(b,{value:e.key??``,onChange:e=>$(t,`key`,e.target.value),placeholder:a.label,minWidth:`120px`,maxWidth:`200px`}),(0,k.jsxs)(g,{minWidth:`fit-content`,children:[(0,k.jsx)(_,{value:e.rule,onChange:e=>$(t,`rule`,e.target.value),children:r.map(e=>(0,k.jsx)(`option`,{value:e,children:we[e]},e))}),(0,k.jsx)(h,{})]})]}),(0,k.jsx)(m,{width:`full`,children:i===`boolean`?(0,k.jsxs)(g,{minWidth:`fit-content`,children:[(0,k.jsxs)(_,{value:e.value,onChange:e=>$(t,`value`,e.target.value),children:[(0,k.jsx)(`option`,{value:`true`,children:`true`}),(0,k.jsx)(`option`,{value:`false`,children:`false`})]}),(0,k.jsx)(h,{})]}):(0,k.jsxs)(k.Fragment,{children:[e.rule.includes(`regex`)&&(0,k.jsx)(c,{fontSize:`16px`,children:`/`}),(0,k.jsx)(b,{value:e.value,onChange:e=>$(t,`value`,e.target.value),placeholder:e.rule.includes(`regex`)?`regex`:`text`}),e.rule.includes(`regex`)&&(0,k.jsx)(c,{fontSize:`16px`,children:`/gi`})]})})]})},t)}),(0,k.jsxs)(c,{color:`gray.500`,fontStyle:`italic`,children:[`This evaluation will run on `,at,P.length>0&&` matching the preconditions`]}),(0,k.jsx)(o,{variant:`outline`,onClick:$e,children:`Add Precondition`})]})})}),j&&I&&(0,k.jsx)(w,{label:(0,k.jsxs)(m,{children:[`Sampling (Optional)`,(0,k.jsx)(d,{content:`You can use this to save costs on expensive evaluations if you have too many messages incoming. From 0.01 to run on 1% of the messages to 1.0 to run on 100% of the messages`,children:(0,k.jsx)(l,{size:14})})]}),helper:``,children:(0,k.jsxs)(v,{align:`start`,children:[(0,k.jsx)(m,{children:(0,k.jsx)(b,{width:`110px`,type:`number`,min:`0.01`,max:`1`,step:`0.1`,value:N,onChange:e=>D.setValue(`sample`,parseFloat(e.target.value)||1)})}),(0,k.jsxs)(c,{color:`gray.500`,fontStyle:`italic`,children:[`This evaluation will run on `,at,P.length>0&&` matching the preconditions`]})]})}),j===`thread`&&I&&(0,k.jsx)(w,{label:(0,k.jsxs)(m,{children:[`Thread Idle Time`,(0,k.jsx)(d,{content:`Wait for the thread to be idle (no new messages) before running the evaluation. This prevents re-evaluating on every single message in a thread.`,children:(0,k.jsx)(l,{size:14})})]}),helper:`How long to wait after the last message before evaluating the thread`,children:(0,k.jsxs)(g,{width:`250px`,children:[(0,k.jsxs)(_,{value:F===null?``:String(F),onChange:e=>{let t=e.target.value;D.setValue(`threadIdleTimeout`,t===``?null:parseInt(t,10))},children:[(0,k.jsx)(`option`,{value:``,children:`Disabled - evaluate on every trace`}),(0,k.jsx)(`option`,{value:`60`,children:`1 minute`}),(0,k.jsx)(`option`,{value:`300`,children:`5 minutes`}),(0,k.jsx)(`option`,{value:`600`,children:`10 minutes`}),(0,k.jsx)(`option`,{value:`900`,children:`15 minutes`}),(0,k.jsx)(`option`,{value:`1800`,children:`30 minutes`})]}),(0,k.jsx)(h,{})]})})]})}),(0,k.jsx)(u.Footer,{borderTopWidth:`1px`,borderColor:`border`,paddingX:4,paddingY:3,children:(0,k.jsxs)(m,{gap:3,width:`full`,justify:`flex-end`,children:[(0,k.jsx)(o,{variant:`outline`,onClick:Ge,children:`Cancel`}),(0,k.jsxs)(o,{colorPalette:`blue`,onClick:nt,disabled:!it,title:X?`Complete all mappings first`:void 0,children:[rt&&(0,k.jsx)(i,{size:`sm`,marginRight:2}),T?`Save Changes`:`Create Online Evaluation`]})]})})]})})}export{q as OnlineEvaluationDrawer,W as clearOnlineEvaluationDrawerState,G as setOnlineEvaluationDrawerState};
2
+ //# sourceMappingURL=OnlineEvaluationDrawer-3RfgPXAt.js.map
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{d as n}from"./IsolatedErrorBoundary-OupgoYEt.js";import{t as r}from"./jsx-runtime-CFwixLRt.js";import{r as i}from"./next-router-Bn5Y8Iek.js";import{Nn as a,g as o}from"./index-DtiounXP.js";var s=e(t()),c=r();function l({children:e}){let t=i(),{hasAccess:r,isLoading:l}=o();return(0,s.useEffect)(()=>{!l&&!r&&t.push(`/`)},[r,l,t]),l||!r?null:(0,c.jsx)(n,{FallbackComponent:a,resetKeys:[t.pathname],children:e})}export{l as t};
2
+ //# sourceMappingURL=OpsPageShell-BOi49ML9.js.map
@@ -0,0 +1,3 @@
1
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{i as n,r}from"./portal-FJIui2Z2.js";import{n as i}from"./IsolatedErrorBoundary-OupgoYEt.js";import{t as a}from"./jsx-runtime-CFwixLRt.js";import{t as o}from"./box-Ck5lef6C.js";import{t as s}from"./text-A3qvcMyN.js";import{G as c}from"./ExternalImage-As_YKOAz.js";import{t as l}from"./icon-button-Ce2kwA7j.js";import{t as u}from"./h-stack-CMPhqSp5.js";import{t as d}from"./spacer-CbmCSsJg.js";import{it as f}from"./immer-BdlOHsfO.js";import{t as p}from"./v-stack-ClAMS101.js";import{n as m}from"./api-BK6L1im2.js";import{Qn as h,mr as g}from"./index-DtiounXP.js";var _=e(t()),v=a(),y=600;function b({organizationId:e,sourceType:t,statements:a,onChange:b,enabled:x}){let[S,C]=(0,_.useState)([]),[w,T]=(0,_.useState)(!1),E=m.ingestionSources.ottlStarter.useQuery({organizationId:e,sourceType:t},{enabled:x&&!!e&&!!t,refetchOnWindowFocus:!1}).data?.statements,D=m.ingestionSources.validateOttl.useMutation(),O=(0,_.useCallback)(async t=>{if(t.filter(e=>e.trim().length>0).length===0){C(t.map(()=>({ok:!0,message:null})));return}T(!0);try{let n=await D.mutateAsync({organizationId:e,statements:t});if(n.ok)C(t.map(()=>({ok:!0,message:null})));else{let e=new Map;for(let t of n.errors){let n=t.line>0?` (line ${t.line}, col ${t.col})`:``;e.set(t.statementIndex,`${t.message}${n}`)}C(t.map((t,n)=>{let r=e.get(n);return r?{ok:!1,message:r}:{ok:!0,message:null}}))}}catch(e){C(t.map(()=>({ok:!0,message:`Validation unavailable: ${e.message}`})))}finally{T(!1)}},[e,D]);(0,_.useEffect)(()=>{let e=setTimeout(()=>{O(a)},y);return()=>clearTimeout(e)},[a.join(`
2
+ `)]);let k=(e,t)=>{let n=a.slice();n[e]=t,b(n)},A=e=>{b(a.filter((t,n)=>n!==e))},j=()=>{b([...a,``])},M=()=>{E&&b([...E])},N=(E??[]).length>0,P=a.length===0,F=(0,_.useMemo)(()=>{if(!E||E.length===0||E.length!==a.length)return!1;for(let e=0;e<E.length;e++)if((E[e]??``)!==(a[e]??``))return!1;return!0},[E,a]);return x?(0,v.jsxs)(p,{align:`stretch`,gap:2,children:[(0,v.jsxs)(u,{alignItems:`end`,children:[(0,v.jsxs)(p,{align:`start`,gap:0,children:[(0,v.jsx)(s,{fontSize:`xs`,fontWeight:`semibold`,color:`fg.muted`,children:`OTTL extraction statements`}),(0,v.jsxs)(s,{fontSize:`xs`,color:`fg.muted`,children:[`Each line maps an upstream OTLP attribute onto the canonical`,` `,(0,v.jsx)(`code`,{children:`langwatch.*`}),` namespace. The aigateway evaluates them in order via embedded `,(0,v.jsx)(`code`,{children:`pkg/ottl`}),`.`]})]}),(0,v.jsx)(d,{}),w&&(0,v.jsx)(n,{size:`xs`}),N&&!P&&!F&&(0,v.jsxs)(r,{size:`xs`,variant:`ghost`,onClick:M,children:[(0,v.jsx)(i,{size:12}),` Reset to template`]})]}),N&&P&&(0,v.jsx)(o,{borderWidth:`1px`,borderColor:`orange.300`,backgroundColor:`orange.50`,borderRadius:`md`,padding:3,children:(0,v.jsxs)(u,{alignItems:`center`,gap:3,children:[(0,v.jsx)(o,{color:`orange.600`,children:(0,v.jsx)(g,{size:18})}),(0,v.jsxs)(p,{align:`start`,gap:0,flex:1,children:[(0,v.jsx)(s,{fontSize:`sm`,fontWeight:`medium`,children:`Template available for this source type`}),(0,v.jsx)(s,{fontSize:`xs`,color:`fg.muted`,children:`Loads the canonical extraction statements maintained by LangWatch. You can customize them after loading.`})]}),(0,v.jsx)(r,{size:`sm`,colorPalette:`orange`,onClick:M,children:`Use this template`})]})}),(0,v.jsxs)(p,{align:`stretch`,gap:1,children:[P&&!N&&(0,v.jsx)(s,{fontSize:`xs`,color:`fg.muted`,fontStyle:`italic`,children:`No statements. Click โ€œAdd statementโ€ to begin.`}),a.map((e,t)=>{let n=S[t],r=n&&!n.ok&&e.trim().length>0;return(0,v.jsxs)(o,{children:[(0,v.jsxs)(u,{alignItems:`start`,gap:2,children:[(0,v.jsx)(o,{width:`6px`,height:`6px`,borderRadius:`full`,marginTop:3,backgroundColor:e.trim()?r?`red.500`:`green.400`:`border.muted`,flexShrink:0}),(0,v.jsx)(f,{size:`sm`,rows:2,fontFamily:`mono`,fontSize:`xs`,backgroundColor:`white`,value:e,onChange:e=>k(t,e.target.value),placeholder:`set(attributes["langwatch.cost.usd"], attributes["cost_usd"]) where attributes["event.name"] == "api_request"`,borderColor:r?`red.300`:void 0}),(0,v.jsx)(l,{size:`xs`,variant:`ghost`,"aria-label":`Remove statement`,onClick:()=>A(t),children:(0,v.jsx)(c,{size:12})})]}),r&&(0,v.jsx)(s,{fontSize:`xs`,color:`red.600`,marginLeft:`14px`,marginTop:.5,children:n.message})]},t)})]}),(0,v.jsx)(u,{children:(0,v.jsxs)(r,{size:`xs`,variant:`outline`,onClick:j,children:[(0,v.jsx)(h,{size:12}),` Add statement`]})})]}):null}export{b as t};
3
+ //# sourceMappingURL=OttlEditor-7MOJI6SZ.js.map
@@ -0,0 +1,2 @@
1
+ import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{t as n}from"./jsx-runtime-CFwixLRt.js";import{t as r}from"./box-Ck5lef6C.js";import{t as i}from"./tooltip-CYWvZEOf.js";var a=e(t()),o=n();function s({children:e,...t}){let n=(0,a.useRef)(null),[s,c]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=n.current;e&&c(e.scrollHeight>e.clientHeight)},[]),(0,o.jsx)(i,{content:t.label??e,disabled:!s,positioning:{placement:`top`},children:(0,o.jsx)(r,{ref:n,lineClamp:t.lineClamp??1,...t,children:e})})}export{s as t};
2
+ //# sourceMappingURL=OverflownText-DITOBs56.js.map
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./jsx-runtime-CFwixLRt.js";import{t}from"./RandomColorAvatar-D4Pjdi5E.js";var n=e(),r=({name:e,size:r=`2xs`})=>(0,n.jsx)(t,{size:r,name:e.slice(0,1),width:r===`2xs`?`20px`:void 0,height:r===`2xs`?`20px`:void 0});export{r as t};
2
+ //# sourceMappingURL=ProjectAvatar-BOH7ULC-.js.map