@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
@@ -1,477 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-WNeJk3KQ.js","assets/rolldown-runtime-DAXXjFlN.js","assets/react-BUD3sqOU.js"])))=>i.map(i=>d[i]);
2
- import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{r as n,t as r}from"./portal-FJIui2Z2.js";import{S as i}from"./shiki-CS25xJLQ.js";import{n as a}from"./IsolatedErrorBoundary-OupgoYEt.js";import{t as o}from"./jsx-runtime-CFwixLRt.js";import{t as s}from"./box-Ck5lef6C.js";import{t as c}from"./text-A3qvcMyN.js";import{Dt as l,Et as u,On as d,Ot as f,_n as p,kt as m}from"./useLiteMemberGuard-klZnweA7.js";import{c as h,d as g,f as _,l as v,p as y,s as b,u as x}from"./select-BVcV39WT.js";import{n as S}from"./info-CtYT35g4.js";import{G as C,q as ee}from"./ExternalImage-DbtOSrKl.js";import{n as te,r as ne}from"./external-link-BzETHrAG.js";import{r as re}from"./UpgradeModal-BmLw5ONS.js";import{t as w}from"./icon-button-Ce2kwA7j.js";import{T}from"./fetchSSE-DWKCnoHV.js";import{t as ie}from"./grid-item-BDl8eynK.js";import{t as E}from"./h-stack-CMPhqSp5.js";import{i as ae,o as D,r as oe,t as O}from"./tabs-DdHsJkYS.js";import{it as k,rt as A}from"./immer-tl_oI9yy.js";import{t as j}from"./v-stack-ClAMS101.js";import{t as se}from"./createLucideIcon-WbxVGt4j.js";import{t as ce}from"./DashboardLayout-RHGL-98_.js";import{t as le}from"./arrow-left-BWMkb3Ih.js";import{t as ue}from"./arrow-right-00XC9HsO.js";import{t as de}from"./messages-square-ByqDdeWQ.js";import{n as M}from"./api-BK6L1im2.js";import{a as N,c as fe,i as P,l as F,n as I,o as pe,r as me,s as L,t as he,u as R}from"./traceExecutor-apa7WEzU.js";import{$n as ge,Ar as z,Er as _e,Mr as ve,Qn as B,Rt as V,jt as ye}from"./index-CUhcyBp3.js";import{a as be,d as xe,i as Se,m as Ce,t as we}from"./esm-DGV3cqeB.js";import{t as Te}from"./switch-vUOdjiD1.js";import{t as Ee}from"./next-dynamic-DcKsrHUa.js";/* empty css */import{t as De}from"./OpsPageShell-BamkwuvB.js";var Oe=se(`text-wrap`,[[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`,key:`18xa6z`}],[`path`,{d:`M3 19h6`,key:`1ygdsz`}],[`path`,{d:`M3 5h18`,key:`1u36vt`}]]),ke=se(`shuffle`,[[`path`,{d:`m18 14 4 4-4 4`,key:`10pe0f`}],[`path`,{d:`m18 2 4 4-4 4`,key:`pucp1d`}],[`path`,{d:`M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22`,key:`1ailkh`}],[`path`,{d:`M2 6h1.972a4 4 0 0 1 3.6 2.2`,key:`km57vx`}],[`path`,{d:`M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45`,key:`os18l9`}]]),H=e(t()),U=o();function Ae({span:e,depth:t}){let n=N(e=>e.selectedSpanId),r=N(e=>e.selectSpan),i=N(e=>e.removeSpan),a=N(e=>e.duplicateSpan),o=N(e=>e.moveSpan),s=n===e.id;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(T,{align:`center`,gap:1.5,px:2,py:1,pl:`${t*16+8}px`,rounded:`md`,cursor:`pointer`,fontSize:`xs`,bg:s?`orange.500/10`:`transparent`,color:s?`orange.400`:`fg.default`,_hover:{bg:s?`orange.500/10`:`bg.subtle`},onClick:()=>r(e.id),role:`group`,children:[(0,U.jsx)(c,{as:`span`,flexShrink:0,fontSize:`sm`,children:F[e.type]}),(0,U.jsx)(c,{flex:1,truncate:!0,fontWeight:`medium`,children:e.name}),(0,U.jsx)(c,{flexShrink:0,fontSize:`10px`,textTransform:`uppercase`,color:fe[e.type],children:e.type}),e.status===`error`&&(0,U.jsx)(c,{color:`red.400`,fontWeight:`bold`,children:`!`}),(0,U.jsxs)(T,{gap:0,display:`none`,_groupHover:{display:`flex`},children:[(0,U.jsx)(w,{"aria-label":`Up`,size:`2xs`,variant:`ghost`,color:`fg.muted`,onClick:t=>{t.stopPropagation(),o(e.id,`up`)},children:(0,U.jsx)(d,{size:12})}),(0,U.jsx)(w,{"aria-label":`Down`,size:`2xs`,variant:`ghost`,color:`fg.muted`,onClick:t=>{t.stopPropagation(),o(e.id,`down`)},children:(0,U.jsx)(A,{size:12})}),(0,U.jsx)(w,{"aria-label":`Copy`,size:`2xs`,variant:`ghost`,color:`fg.muted`,onClick:t=>{t.stopPropagation(),a(e.id)},children:(0,U.jsx)(ee,{size:12})}),(0,U.jsx)(w,{"aria-label":`Delete`,size:`2xs`,variant:`ghost`,color:`fg.muted`,_hover:{color:`red.400`},onClick:t=>{t.stopPropagation(),i(e.id)},children:(0,U.jsx)(C,{size:12})})]})]}),e.children.map(e=>(0,U.jsx)(Ae,{span:e,depth:t+1},e.id))]})}var je=[`llm`,`agent`,`tool`,`rag`,`chain`,`prompt`,`guardrail`,`span`];function Me({parentId:e}){let[t,n]=(0,H.useState)(!1),r=N(e=>e.addSpan);return(0,U.jsxs)(s,{position:`relative`,mt:1,children:[(0,U.jsxs)(T,{as:`button`,w:`full`,align:`center`,justify:`center`,gap:1,rounded:`md`,border:`1px dashed`,borderColor:`border`,px:2,py:1.5,fontSize:`xs`,color:`fg.muted`,_hover:{borderColor:`border.emphasized`,color:`fg.default`},onClick:()=>n(!t),children:[(0,U.jsx)(B,{size:12}),` Add Span`]}),t&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(s,{position:`fixed`,inset:0,zIndex:10,onClick:()=>n(!1)}),(0,U.jsx)(s,{position:`absolute`,left:0,zIndex:20,mt:1,w:`full`,rounded:`lg`,border:`1px solid`,borderColor:`border`,bg:`bg.panel`,p:1,shadow:`xl`,children:je.map(t=>(0,U.jsxs)(T,{as:`button`,w:`full`,align:`center`,gap:2,rounded:`md`,px:2,py:1.5,fontSize:`xs`,color:`fg.default`,_hover:{bg:`bg.subtle`},onClick:()=>{r(e,t),n(!1)},children:[(0,U.jsx)(c,{as:`span`,children:F[t]}),(0,U.jsx)(c,{textTransform:`capitalize`,children:t})]},t))})]})]})}function Ne(){let e=N(e=>e.trace.spans);return(0,U.jsxs)(s,{p:3,children:[(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,textTransform:`uppercase`,letterSpacing:`wider`,color:`fg.muted`,mb:2,children:`Spans`}),(0,U.jsx)(T,{direction:`column`,gap:.5,children:e.map(e=>(0,U.jsx)(Ae,{span:e,depth:0},e.id))}),(0,U.jsx)(Me,{parentId:null})]})}var Pe=[{label:`GPT-4o`,value:`gpt-4o`},{label:`GPT-4o Mini`,value:`gpt-4o-mini`},{label:`GPT-4.1`,value:`gpt-4.1`},{label:`GPT-4.1 Mini`,value:`gpt-4.1-mini`},{label:`GPT-5 Mini`,value:`gpt-5-mini`},{label:`o3`,value:`o3`},{label:`o4-mini`,value:`o4-mini`},{label:`Claude Opus 4`,value:`claude-opus-4-20250514`},{label:`Claude Sonnet 4`,value:`claude-sonnet-4-20250514`},{label:`Claude Haiku 3.5`,value:`claude-3-5-haiku-20241022`},{label:`Gemini 2.5 Pro`,value:`gemini-2.5-pro`},{label:`Gemini 2.5 Flash`,value:`gemini-2.5-flash`},{label:`Grok 3`,value:`grok-3`},{label:`Grok 3 Mini`,value:`grok-3-mini`},{label:`Llama 4 Scout`,value:`meta-llama/llama-4-scout`},{label:`DeepSeek V3`,value:`deepseek-chat`},{label:`DeepSeek R1`,value:`deepseek-reasoner`},{label:`Mistral Large`,value:`mistral-large-latest`}],Fe={system:`purple.500`,user:`green.400`,assistant:`blue.400`,tool:`yellow.400`};function Ie({span:e}){let t=N(e=>e.updateSpan),r=e.llm??{};function i(n){t(e.id,{llm:{...r,...n}})}let a=r.messages??[];function o(e,t){i({messages:a.map((n,r)=>r===e?{...n,...t}:n)})}return(0,U.jsxs)(s,{rounded:`lg`,border:`1px solid`,borderColor:`blue.500/20`,bg:`blue.500/5`,p:4,children:[(0,U.jsx)(c,{fontSize:`sm`,fontWeight:`semibold`,color:`blue.400`,mb:3,children:`LLM Configuration`}),(0,U.jsxs)(T,{gap:3,wrap:`wrap`,mb:3,children:[(0,U.jsxs)(s,{flex:1,minW:`140px`,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Model`}),(0,U.jsx)(z,{size:`sm`,value:r.requestModel??``,onChange:e=>i({requestModel:e.target.value}),placeholder:`gpt-4o`,list:`llm-models`}),(0,U.jsx)(`datalist`,{id:`llm-models`,children:Pe.map(e=>(0,U.jsx)(`option`,{value:e.value,children:e.label},e.value))})]}),(0,U.jsxs)(s,{w:`80px`,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Temp`}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:r.temperature??.7,onChange:e=>i({temperature:parseFloat(e.target.value)}),step:.1,min:0,max:2})]})]}),(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,color:`fg.subtle`,mb:1,children:`Messages`}),(0,U.jsxs)(T,{direction:`column`,gap:2,mb:2,children:[a.map((e,t)=>(0,U.jsxs)(T,{gap:2,rounded:`md`,border:`1px solid`,borderColor:`border`,borderLeftWidth:`2px`,borderLeftColor:Fe[e.role]??`gray.500`,bg:`bg.subtle`,p:2,children:[(0,U.jsxs)(`select`,{value:e.role,onChange:e=>o(t,{role:e.target.value}),style:{width:`90px`,flexShrink:0,background:`var(--chakra-colors-bg-subtle)`,color:`var(--chakra-colors-fg-default)`,border:`1px solid var(--chakra-colors-border)`,borderRadius:`4px`,padding:`2px 6px`,fontSize:`12px`},children:[(0,U.jsx)(`option`,{value:`system`,children:`system`}),(0,U.jsx)(`option`,{value:`user`,children:`user`}),(0,U.jsx)(`option`,{value:`assistant`,children:`assistant`}),(0,U.jsx)(`option`,{value:`tool`,children:`tool`})]}),(0,U.jsx)(k,{flex:1,size:`sm`,fontSize:`xs`,value:e.content,onChange:e=>o(t,{content:e.target.value}),rows:2,resize:`vertical`,placeholder:`Message content...`}),(0,U.jsx)(n,{size:`xs`,variant:`ghost`,color:`fg.muted`,_hover:{color:`red.400`},onClick:()=>i({messages:a.filter((e,n)=>n!==t)}),alignSelf:`flex-start`,children:(0,U.jsx)(C,{size:12})})]},t)),(0,U.jsxs)(n,{size:`xs`,variant:`outline`,onClick:()=>i({messages:[...a,{role:`user`,content:``}]}),children:[(0,U.jsx)(B,{size:12}),` Add Message`]})]}),(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,color:`fg.subtle`,mb:1,children:`Metrics`}),(0,U.jsxs)(T,{gap:3,children:[(0,U.jsxs)(s,{flex:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,mb:1,children:`Prompt Tokens`}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:r.metrics?.promptTokens??``,onChange:e=>i({metrics:{...r.metrics,promptTokens:parseInt(e.target.value)||void 0}}),placeholder:`0`})]}),(0,U.jsxs)(s,{flex:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,mb:1,children:`Completion Tokens`}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:r.metrics?.completionTokens??``,onChange:e=>i({metrics:{...r.metrics,completionTokens:parseInt(e.target.value)||void 0}}),placeholder:`0`})]}),(0,U.jsxs)(s,{flex:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,mb:1,children:`Cost ($)`}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:r.metrics?.cost??``,onChange:e=>i({metrics:{...r.metrics,cost:parseFloat(e.target.value)||void 0}}),step:1e-4,placeholder:`0.00`})]})]})]})}function Le({span:e}){let t=N(e=>e.updateSpan),r=e.rag?.contexts??[];function i(n,i){let a=r.map((e,t)=>t===n?{...e,...i}:e);t(e.id,{rag:{contexts:a}})}return(0,U.jsxs)(s,{rounded:`lg`,border:`1px solid`,borderColor:`teal.500/20`,bg:`teal.500/5`,p:4,children:[(0,U.jsx)(c,{fontSize:`sm`,fontWeight:`semibold`,color:`teal.400`,mb:3,children:`RAG Contexts`}),(0,U.jsxs)(T,{direction:`column`,gap:3,children:[r.map((a,o)=>(0,U.jsxs)(s,{rounded:`md`,border:`1px solid`,borderColor:`border`,bg:`bg.subtle`,p:3,children:[(0,U.jsxs)(T,{justify:`space-between`,mb:2,children:[(0,U.jsxs)(c,{fontSize:`xs`,fontWeight:`medium`,color:`fg.subtle`,children:[`Context `,o+1]}),(0,U.jsx)(n,{size:`xs`,variant:`ghost`,color:`fg.muted`,_hover:{color:`red.400`},onClick:()=>t(e.id,{rag:{contexts:r.filter((e,t)=>t!==o)}}),children:(0,U.jsx)(C,{size:12})})]}),(0,U.jsxs)(T,{gap:2,mb:2,children:[(0,U.jsx)(z,{size:`sm`,flex:1,value:a.document_id,onChange:e=>i(o,{document_id:e.target.value}),placeholder:`Document ID`}),(0,U.jsx)(z,{size:`sm`,flex:1,value:a.chunk_id,onChange:e=>i(o,{chunk_id:e.target.value}),placeholder:`Chunk ID`})]}),(0,U.jsx)(k,{size:`sm`,fontSize:`xs`,value:a.content,onChange:e=>i(o,{content:e.target.value}),placeholder:`Retrieved content...`,rows:3})]},o)),(0,U.jsxs)(n,{size:`xs`,variant:`outline`,onClick:()=>t(e.id,{rag:{contexts:[...r,{document_id:``,chunk_id:``,content:``}]}}),children:[(0,U.jsx)(B,{size:12}),` Add Context`]})]})]})}function Re({span:e}){let t=N(e=>e.updateSpan),r=e.prompt??{};function i(n){t(e.id,{prompt:{...r,...n}})}let a=r.variables??{},o=Object.entries(a);return(0,U.jsxs)(s,{rounded:`lg`,border:`1px solid`,borderColor:`yellow.500/20`,bg:`yellow.500/5`,p:4,children:[(0,U.jsx)(c,{fontSize:`sm`,fontWeight:`semibold`,color:`yellow.400`,mb:3,children:`Prompt Configuration`}),(0,U.jsxs)(T,{gap:3,mb:3,children:[(0,U.jsxs)(s,{flex:2,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Prompt handle`}),(0,U.jsx)(z,{size:`sm`,value:r.promptId??``,onChange:e=>i({promptId:e.target.value}),placeholder:`e.g. customer-support-v2`})]}),(0,U.jsxs)(s,{flex:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Version`}),(0,U.jsx)(z,{size:`sm`,type:`number`,min:1,value:r.version??``,onChange:e=>{let t=e.target.value===``?void 0:Number(e.target.value);i({version:Number.isInteger(t)&&(t??0)>0?t:void 0})},placeholder:`e.g. 3`})]}),(0,U.jsxs)(s,{flex:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Version ID`}),(0,U.jsx)(z,{size:`sm`,value:r.versionId??``,onChange:e=>i({versionId:e.target.value}),placeholder:`e.g. ver-abc123`})]})]}),(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,color:`fg.subtle`,mb:1,children:`Template Variables`}),(0,U.jsxs)(T,{direction:`column`,gap:1,children:[o.map(([e,t])=>(0,U.jsxs)(T,{align:`center`,gap:2,children:[(0,U.jsx)(z,{size:`sm`,w:`120px`,flexShrink:0,value:e,onChange:n=>{let r={...a};delete r[e],r[n.target.value]=t,i({variables:r})},placeholder:`key`}),(0,U.jsx)(z,{size:`sm`,flex:1,value:t,onChange:t=>i({variables:{...a,[e]:t.target.value}}),placeholder:`value`}),(0,U.jsx)(n,{size:`xs`,variant:`ghost`,color:`fg.muted`,_hover:{color:`red.400`},onClick:()=>{let t={...a};delete t[e],i({variables:t})},children:(0,U.jsx)(C,{size:12})})]},e)),(0,U.jsxs)(n,{size:`xs`,variant:`outline`,onClick:()=>i({variables:{...a,[`var_${o.length+1}`]:``}}),children:[(0,U.jsx)(B,{size:12}),` Add Variable`]})]})]})}function ze({attributes:e,onChange:t}){let r=Object.entries(e),[i,a]=(0,H.useState)(``);function o(){!i||i in e||(t({...e,[i]:``}),a(``))}function s(n,r){let i=r;r===`true`?i=!0:r===`false`?i=!1:/^\d+(\.\d+)?$/.test(r)&&(i=parseFloat(r)),t({...e,[n]:i})}return(0,U.jsxs)(T,{direction:`column`,gap:1,mt:1,children:[r.map(([r,i])=>(0,U.jsxs)(T,{align:`center`,gap:2,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,w:`140px`,flexShrink:0,truncate:!0,children:r}),(0,U.jsx)(z,{size:`sm`,flex:1,fontSize:`xs`,value:String(i),onChange:e=>s(r,e.target.value)}),(0,U.jsx)(n,{size:`xs`,variant:`ghost`,color:`fg.muted`,_hover:{color:`red.400`},onClick:()=>{let n={...e};delete n[r],t(n)},children:(0,U.jsx)(C,{size:12})})]},r)),(0,U.jsxs)(T,{align:`center`,gap:2,children:[(0,U.jsx)(z,{size:`sm`,w:`140px`,flexShrink:0,fontSize:`xs`,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>e.key===`Enter`&&o(),placeholder:`attribute.key`}),(0,U.jsxs)(n,{size:`xs`,variant:`outline`,onClick:o,disabled:!i,children:[(0,U.jsx)(B,{size:12}),` Add`]})]})]})}function Be(e,t){for(let n of e){if(n.id===t)return n;let e=Be(n.children,t);if(e)return e}}var Ve=b({items:L.map(e=>({label:`${F[e]} ${e}`,value:e}))}),He=b({items:[{label:`OK`,value:`ok`},{label:`Error`,value:`error`},{label:`Unset`,value:`unset`}]});function Ue(){let e=N(e=>e.selectedSpanId),t=N(e=>e.trace.spans),i=N(e=>e.updateSpan),a=N(e=>e.indentSpan),o=N(e=>e.outdentSpan);if(!e)return null;let l=Be(t,e);return l?(0,U.jsxs)(j,{align:`stretch`,gap:4,p:5,minW:0,overflow:`hidden`,children:[(0,U.jsxs)(T,{align:`center`,justify:`space-between`,children:[(0,U.jsx)(c,{fontSize:`lg`,fontWeight:`semibold`,children:l.name}),(0,U.jsxs)(E,{gap:1,children:[(0,U.jsx)(n,{size:`xs`,variant:`outline`,onClick:()=>a(l.id),children:(0,U.jsx)(ue,{size:14})}),(0,U.jsx)(n,{size:`xs`,variant:`outline`,onClick:()=>o(l.id),children:(0,U.jsx)(le,{size:14})})]})]}),(0,U.jsxs)(T,{gap:3,wrap:`wrap`,children:[(0,U.jsxs)(s,{flex:`1`,minW:`140px`,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Name`}),(0,U.jsx)(z,{size:`sm`,value:l.name,onChange:e=>i(l.id,{name:e.target.value})})]}),(0,U.jsxs)(s,{flex:`1`,minW:`140px`,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Type`}),(0,U.jsxs)(g,{size:`sm`,collection:Ve,value:[l.type],onValueChange:e=>i(l.id,{type:e.value[0]}),children:[(0,U.jsx)(_,{children:(0,U.jsx)(y,{})}),(0,U.jsx)(r,{children:(0,U.jsx)(x,{children:(0,U.jsx)(h,{children:L.map(e=>(0,U.jsxs)(v,{item:e,children:[F[e],` `,e]},e))})})})]})]})]}),(0,U.jsxs)(T,{gap:3,wrap:`wrap`,children:[(0,U.jsxs)(s,{flex:`1`,minW:`100px`,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Duration (ms)`}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:l.durationMs,onChange:e=>i(l.id,{durationMs:parseInt(e.target.value)||0}),min:0})]}),(0,U.jsxs)(s,{flex:`1`,minW:`100px`,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Offset (ms)`}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:l.offsetMs,onChange:e=>i(l.id,{offsetMs:parseInt(e.target.value)||0}),min:0})]}),(0,U.jsxs)(s,{flex:`1`,minW:`100px`,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Status`}),(0,U.jsxs)(g,{size:`sm`,collection:He,value:[l.status],onValueChange:e=>i(l.id,{status:e.value[0]}),children:[(0,U.jsx)(_,{children:(0,U.jsx)(y,{})}),(0,U.jsx)(r,{children:(0,U.jsx)(x,{children:(0,U.jsxs)(h,{children:[(0,U.jsx)(v,{item:`ok`,children:`OK`}),(0,U.jsx)(v,{item:`error`,children:`Error`}),(0,U.jsx)(v,{item:`unset`,children:`Unset`})]})})})]})]})]}),l.status===`error`&&(0,U.jsxs)(s,{rounded:`lg`,border:`1px solid`,borderColor:`red.500/30`,bg:`red.500/5`,p:3,children:[(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,color:`red.400`,mb:1,children:`Exception`}),(0,U.jsx)(z,{size:`sm`,value:l.exception?.message??``,onChange:e=>i(l.id,{exception:{...l.exception,message:e.target.value}}),placeholder:`Error message`,mb:2}),(0,U.jsx)(k,{size:`sm`,value:l.exception?.stackTrace??``,onChange:e=>i(l.id,{exception:{message:l.exception?.message??``,stackTrace:e.target.value||void 0}}),placeholder:`Stack trace`,rows:3,fontFamily:`mono`,fontSize:`xs`})]}),(0,U.jsxs)(T,{gap:3,children:[(0,U.jsxs)(s,{flex:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Input`}),(0,U.jsx)(k,{size:`sm`,fontSize:`xs`,rows:3,placeholder:`Span input...`,value:l.input?.type===`text`?l.input.value:l.input?JSON.stringify(l.input.value,null,2):``,onChange:e=>i(l.id,{input:e.target.value?{type:`text`,value:e.target.value}:void 0})})]}),(0,U.jsxs)(s,{flex:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Output`}),(0,U.jsx)(k,{size:`sm`,fontSize:`xs`,rows:3,placeholder:`Span output...`,value:l.output?.type===`text`?l.output.value:l.output?JSON.stringify(l.output.value,null,2):``,onChange:e=>i(l.id,{output:e.target.value?{type:`text`,value:e.target.value}:void 0})})]})]}),l.type===`llm`&&(0,U.jsx)(Ie,{span:l}),l.type===`rag`&&(0,U.jsx)(Le,{span:l}),l.type===`prompt`&&(0,U.jsx)(Re,{span:l}),(0,U.jsxs)(s,{children:[(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,textTransform:`uppercase`,letterSpacing:`wider`,color:`fg.muted`,mb:1,children:`Custom Attributes`}),(0,U.jsx)(ze,{attributes:l.attributes,onChange:e=>i(l.id,{attributes:e})})]})]}):null}function We({compact:e=!1}){let{project:t}=V(),n=M.organization.getAll.useQuery({isDemo:!1},{staleTime:6e4}),[r,i]=(0,H.useState)(!1),{selectedProjectId:a,setSelectedProject:o}=I(),l=(0,H.useMemo)(()=>n.data?n.data.flatMap(e=>e.teams.flatMap(t=>t.projects.map(n=>({id:n.id,name:n.name,slug:n.slug,apiKey:n.apiKey,orgName:e.name,teamName:t.name})))):[],[n.data]),u=a?l.find(e=>e.id===a):l.find(e=>e.id===t?.id)??l[0];return(0,U.jsxs)(s,{p:3,children:[(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,textTransform:`uppercase`,letterSpacing:`wider`,color:`fg.muted`,mb:2,children:`Target Project`}),(0,U.jsxs)(s,{position:`relative`,children:[(0,U.jsxs)(T,{as:`button`,w:`full`,align:`center`,gap:2,rounded:`md`,border:`1px solid`,borderColor:`border`,px:2,py:1.5,cursor:`pointer`,_hover:{bg:`bg.subtle`},onClick:()=>i(!r),children:[(0,U.jsx)(s,{w:2,h:2,rounded:`full`,bg:u?`green.400`:`gray.500`,flexShrink:0}),(0,U.jsxs)(j,{align:`start`,gap:0,flex:1,minW:0,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.default`,truncate:!0,w:`full`,textAlign:`left`,children:u?.name??`Select a project`}),u&&!e&&(0,U.jsx)(c,{fontSize:`10px`,color:`fg.muted`,truncate:!0,w:`full`,textAlign:`left`,children:u.orgName})]}),(0,U.jsx)(A,{size:12,color:`var(--chakra-colors-fg-muted)`})]}),r&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(s,{position:`fixed`,inset:0,zIndex:40,onClick:()=>i(!1)}),(0,U.jsx)(s,{position:`absolute`,left:0,right:0,zIndex:50,mt:1,maxH:`300px`,overflow:`auto`,rounded:`lg`,border:`1px solid`,borderColor:`border`,bg:`bg.panel`,shadow:`lg`,children:l.length===0?(0,U.jsx)(s,{px:3,py:2,children:(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`No projects found`})}):(0,U.jsx)(Ge,{projects:l,selectedId:u?.id,onSelect:e=>{o(e.id,e.apiKey),i(!1)}})})]})]})]})}function Ge({projects:e,selectedId:t,onSelect:n}){return(0,U.jsx)(j,{align:`stretch`,gap:0,py:1,children:[...(0,H.useMemo)(()=>{let t=new Map;for(let n of e){let e=t.get(n.orgName)??[];e.push(n),t.set(n.orgName,e)}return t},[e]).entries()].map(([e,r])=>(0,U.jsxs)(s,{children:[(0,U.jsx)(c,{fontSize:`10px`,fontWeight:`medium`,color:`fg.muted`,textTransform:`uppercase`,letterSpacing:`wider`,px:3,py:1,children:e}),r.map(e=>(0,U.jsxs)(T,{as:`button`,w:`full`,align:`center`,gap:2,px:3,py:1.5,_hover:{bg:`bg.subtle`},onClick:()=>n(e),children:[t===e.id?(0,U.jsx)(te,{size:12,color:`var(--chakra-colors-green-400)`}):(0,U.jsx)(s,{w:3}),(0,U.jsx)(c,{fontSize:`xs`,color:`fg.default`,flex:1,textAlign:`left`,truncate:!0,children:e.name}),(0,U.jsx)(c,{fontSize:`10px`,color:`fg.muted`,fontFamily:`mono`,children:e.slug})]},e.id))]},e))})}function Ke({compact:e=!1}){let{batchCount:t,staggerMs:r,running:i,setBatchCount:a,setStaggerMs:o,setRunning:l,addLogEntry:u,updateLogEntry:d}=P(),f=N(e=>e.trace),{project:p}=V(),m=I(e=>e.selectedApiKey)??p?.apiKey;async function h(){if(i||!m)return;l(!0);let e=he({apiKey:m,endpoint:window.location.origin,projectId:p?.id,resourceAttributes:f.resourceAttributes});try{for(let n=0;n<t;n++){let i=`log-${Date.now()}-${n}`;u({id:i,traceId:i,timestamp:Date.now(),status:`pending`});try{d(i,{status:`success`,traceId:await e.executeTrace(f)})}catch(e){d(i,{status:`error`,error:e instanceof Error?e.message:`Send failed`})}r>0&&n<t-1&&await new Promise(e=>setTimeout(e,r))}}finally{l(!1)}}return(0,U.jsxs)(s,{p:3,children:[(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,textTransform:`uppercase`,letterSpacing:`wider`,color:`fg.muted`,mb:2,children:`Execution`}),(0,U.jsxs)(T,{gap:2,mb:2,children:[(0,U.jsxs)(s,{flex:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Run N times`}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:t,onChange:e=>a(parseInt(e.target.value)||1),min:1,max:100})]}),!e&&(0,U.jsxs)(s,{flex:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`Stagger (ms)`}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:r,onChange:e=>o(parseInt(e.target.value)||0),min:0,step:100})]})]}),(0,U.jsxs)(n,{w:`full`,size:`sm`,colorPalette:`orange`,onClick:h,disabled:i||!m,loading:i,loadingText:`Sending...`,children:[(0,U.jsx)(ge,{size:14}),` Send Traces`]}),!m&&(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,mt:1,children:`Navigate to a project first`}),(0,U.jsx)(qe,{})]})}function qe(){let e=P(e=>e.log),t=P(e=>e.clearLog);return e.length===0?null:(0,U.jsxs)(s,{mt:2,children:[(0,U.jsxs)(T,{justify:`space-between`,align:`center`,mb:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`Log`}),(0,U.jsx)(c,{as:`button`,fontSize:`xs`,color:`fg.muted`,_hover:{color:`fg.default`},onClick:t,children:`Clear`})]}),(0,U.jsx)(j,{maxH:`120px`,overflow:`auto`,gap:.5,align:`stretch`,children:e.map(e=>(0,U.jsx)(Je,{entry:e},e.id))})]})}function Je({entry:e}){let[t,n]=(0,H.useState)(!1),r=e.status===`success`;return(0,U.jsxs)(T,{align:`center`,gap:2,px:2,py:1,fontSize:`xs`,rounded:`sm`,cursor:r?`pointer`:`default`,bg:t?`green.500/10`:`transparent`,_hover:r?{bg:t?`green.500/10`:`bg.subtle`}:void 0,transition:`background 0.15s`,onClick:()=>{r&&(navigator.clipboard.writeText(e.traceId),n(!0),setTimeout(()=>n(!1),2e3))},children:[(0,U.jsx)(c,{flexShrink:0,children:e.status===`pending`?`⏳`:e.status===`success`?`✅`:`❌`}),(0,U.jsx)(c,{flex:1,truncate:!0,fontFamily:`mono`,color:`fg.muted`,children:e.traceId}),r&&(0,U.jsx)(c,{fontSize:`10px`,color:t?`green.400`:`fg.muted`,flexShrink:0,children:t?`Copied!`:`Copy ID`}),e.error&&(0,U.jsx)(c,{color:`red.400`,title:e.error,flexShrink:0,children:`Failed`})]})}function Ye({compact:e=!1}){let t=N(e=>e.trace),n=N(e=>e.updateTrace);return(0,U.jsxs)(s,{p:3,children:[(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,textTransform:`uppercase`,letterSpacing:`wider`,color:`fg.muted`,mb:2,children:`Trace Settings`}),(0,U.jsxs)(j,{gap:2,align:`stretch`,children:[(0,U.jsxs)(s,{children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`service.name`}),(0,U.jsx)(z,{size:`sm`,value:t.resourceAttributes[`service.name`]??``,onChange:e=>n({resourceAttributes:{...t.resourceAttributes,"service.name":e.target.value}})})]}),(0,U.jsxs)(s,{children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`user_id`}),(0,U.jsx)(z,{size:`sm`,value:t.metadata.userId??``,onChange:e=>n({metadata:{...t.metadata,userId:e.target.value||void 0}}),placeholder:`optional`})]}),!e&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(s,{children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`thread_id`}),(0,U.jsx)(z,{size:`sm`,value:t.metadata.threadId??``,onChange:e=>n({metadata:{...t.metadata,threadId:e.target.value||void 0}}),placeholder:`optional`})]}),(0,U.jsxs)(s,{children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.subtle`,mb:1,children:`labels`}),(0,U.jsx)(z,{size:`sm`,value:t.metadata.labels?.join(`, `)??``,onChange:e=>n({metadata:{...t.metadata,labels:e.target.value?e.target.value.split(`,`).map(e=>e.trim()):void 0}}),placeholder:`e.g. production, v2`})]})]})]})]})}function Xe(e,t,n){let r=[];for(let i of e){let e=n+i.offsetMs;r.push({span:i,depth:t,absoluteStartMs:e,absoluteEndMs:e+i.durationMs}),r.push(...Xe(i.children,t+1,e))}return r}var Ze={llm:`blue.500`,agent:`purple.500`,tool:`green.500`,rag:`teal.500`,chain:`orange.500`,prompt:`yellow.500`,guardrail:`red.500`,workflow:`blue.600`,span:`gray.500`};function Qe(){let e=N(e=>e.trace.spans),t=N(e=>e.selectedSpanId),n=N(e=>e.selectSpan),r=Xe(e,0,0);if(r.length===0)return(0,U.jsx)(T,{h:`200px`,align:`center`,justify:`center`,color:`fg.muted`,children:(0,U.jsx)(c,{children:`No spans`})});let i=Math.min(...r.map(e=>e.absoluteStartMs)),a=Math.max(...r.map(e=>e.absoluteEndMs))-i||1;return(0,U.jsxs)(s,{p:4,children:[(0,U.jsx)(T,{pl:`180px`,mb:2,children:(0,U.jsx)(s,{position:`relative`,flex:1,h:`16px`,children:Array.from({length:6},(e,t)=>Math.round(i+a*t/5)).map((e,t)=>(0,U.jsxs)(c,{position:`absolute`,fontSize:`10px`,color:`fg.muted`,transform:`translateX(-50%)`,left:`${(e-i)/a*100}%`,children:[e,`ms`]},t))})}),(0,U.jsx)(T,{direction:`column`,gap:.5,children:r.map(e=>{let r=(e.absoluteStartMs-i)/a*100,o=Math.max(e.span.durationMs/a*100,.5),l=t===e.span.id,u=e.span.status===`error`?`red.500`:Ze[e.span.type]??`gray.500`;return(0,U.jsxs)(T,{align:`center`,cursor:`pointer`,rounded:`sm`,bg:l?`orange.500/10`:`transparent`,_hover:{bg:l?`orange.500/10`:`bg.subtle`},onClick:()=>n(e.span.id),children:[(0,U.jsxs)(T,{w:`180px`,flexShrink:0,align:`center`,gap:1,pr:2,pl:`${e.depth*16+8}px`,truncate:!0,children:[(0,U.jsx)(c,{fontSize:`xs`,flexShrink:0,children:F[e.span.type]}),(0,U.jsx)(c,{fontSize:`xs`,color:`fg.default`,truncate:!0,children:e.span.name})]}),(0,U.jsx)(s,{flex:1,position:`relative`,h:`20px`,children:(0,U.jsx)(s,{position:`absolute`,top:`3px`,h:`14px`,rounded:`sm`,bg:u,left:`${r}%`,w:`${o}%`,minW:`4px`,opacity:l?1:.8,ring:l?`1px`:void 0,ringColor:l?`orange.400`:void 0})}),(0,U.jsxs)(c,{w:`50px`,flexShrink:0,textAlign:`right`,fontSize:`10px`,color:`fg.muted`,pr:2,children:[e.span.durationMs,`ms`]})]},e.span.id)})})]})}function $e({data:e}){let t=fe[e.type]??`gray.400`;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(be,{type:`target`,position:Ce.Top,style:{background:`var(--chakra-colors-border)`,width:8,height:8,border:`1px solid var(--chakra-colors-border)`}}),(0,U.jsxs)(s,{borderRadius:`lg`,borderWidth:`1px`,borderColor:e.isSelected?`orange.400`:e.status===`error`?`red.600`:`border`,bg:e.isSelected?`orange.subtle`:e.status===`error`?`red.subtle`:`bg.panel`,paddingX:3,paddingY:2,minWidth:`140px`,boxShadow:`sm`,children:[(0,U.jsxs)(E,{gap:1.5,children:[(0,U.jsx)(c,{textStyle:`sm`,children:F[e.type]??`·`}),(0,U.jsx)(c,{textStyle:`xs`,fontWeight:`medium`,truncate:!0,maxWidth:`120px`,children:e.label})]}),(0,U.jsxs)(E,{gap:2,marginTop:1,children:[(0,U.jsx)(c,{textStyle:`xs`,color:t,textTransform:`uppercase`,children:e.type}),(0,U.jsxs)(c,{textStyle:`xs`,color:`fg.muted`,children:[e.durationMs,`ms`]})]})]}),(0,U.jsx)(be,{type:`source`,position:Ce.Bottom,style:{background:`var(--chakra-colors-border)`,width:8,height:8,border:`1px solid var(--chakra-colors-border)`}})]})}var et={spanNode:$e};function tt(e,t,n=null,r=0,i=0){let a=[],o=[],s=r;for(let r of e){let e=tt(r.children,t,r.id,s,i+100),c=Math.max(e.width,180),l=s+c/2-180/2;a.push({id:r.id,type:`spanNode`,position:{x:l,y:i},data:{label:r.name,type:r.type,durationMs:r.durationMs,status:r.status,spanId:r.id,isSelected:t===r.id}}),n&&o.push({id:`${n}-${r.id}`,source:n,target:r.id,style:{stroke:`var(--chakra-colors-border)`}}),a.push(...e.nodes),o.push(...e.edges),s+=c}return{nodes:a,edges:o,width:Math.max(s-r,0)}}function nt(){let e=N(e=>e.trace.spans),t=N(e=>e.selectedSpanId),n=N(e=>e.selectSpan),r=ye(),{nodes:i,edges:a}=(0,H.useMemo)(()=>tt(e,t),[e,t]),o=(0,H.useCallback)((e,t)=>{n(t.data.spanId)},[n]);return(0,U.jsx)(s,{height:`full`,width:`full`,className:r.colorMode===`dark`?`dark`:``,css:{"& .react-flow__controls":{background:`var(--chakra-colors-bg-panel)`,border:`1px solid var(--chakra-colors-border)`,borderRadius:`8px`,boxShadow:`none`},"& .react-flow__controls-button":{background:`var(--chakra-colors-bg-panel)`,borderColor:`var(--chakra-colors-border)`,fill:`var(--chakra-colors-fg-muted)`,"&:hover":{background:`var(--chakra-colors-bg-muted)`}},"& .react-flow__edge-path":{stroke:`var(--chakra-colors-border)`},"& .react-flow__background pattern line":{stroke:`var(--chakra-colors-border)`}},children:(0,U.jsxs)(xe,{nodes:i,edges:a,nodeTypes:et,onNodeClick:o,fitView:!0,fitViewOptions:{padding:.3},proOptions:{hideAttribution:!0},colorMode:r.colorMode===`dark`?`dark`:`light`,style:{background:`var(--chakra-colors-bg-subtle)`},children:[(0,U.jsx)(we,{color:`var(--chakra-colors-border)`,gap:20}),(0,U.jsx)(Se,{})]})})}var rt={$schema:`http://json-schema.org/draft-07/schema#`,type:`object`,required:[`id`,`name`,`resourceAttributes`,`metadata`,`spans`],properties:{id:{type:`string`,description:`Unique trace identifier`},name:{type:`string`,description:`Human-readable trace name`},description:{type:`string`,description:`Optional trace description`},resourceAttributes:{type:`object`,additionalProperties:{type:`string`},description:`OTel resource attributes (e.g. service.name)`},metadata:{type:`object`,properties:{userId:{type:`string`,description:`User ID for the trace`},threadId:{type:`string`,description:`Conversation thread ID`},customerId:{type:`string`,description:`Customer/tenant ID`},labels:{type:`array`,items:{type:`string`},description:`Trace labels`}},additionalProperties:!1},spans:{type:`array`,items:{$ref:`#/definitions/SpanConfig`},description:`Root-level spans in the trace`}},additionalProperties:!1,definitions:{SpanConfig:{type:`object`,required:[`id`,`name`,`type`,`durationMs`,`offsetMs`,`status`,`children`,`attributes`],properties:{id:{type:`string`},name:{type:`string`,description:`Span display name`},type:{type:`string`,enum:[...L],description:`Span type (llm, agent, tool, rag, etc.)`},durationMs:{type:`number`,minimum:0,description:`Span duration in ms`},offsetMs:{type:`number`,minimum:0,description:`Offset from parent start in ms`},status:{type:`string`,enum:[`ok`,`error`,`unset`]},children:{type:`array`,items:{$ref:`#/definitions/SpanConfig`},description:`Child spans`},input:{$ref:`#/definitions/SpanInputOutput`},output:{$ref:`#/definitions/SpanInputOutput`},attributes:{type:`object`,additionalProperties:{oneOf:[{type:`string`},{type:`number`},{type:`boolean`}]},description:`Custom span attributes`},exception:{type:`object`,properties:{message:{type:`string`},stackTrace:{type:`string`}},required:[`message`]},llm:{$ref:`#/definitions/LLMConfig`},rag:{$ref:`#/definitions/RAGConfig`},prompt:{$ref:`#/definitions/PromptConfig`}},additionalProperties:!1},SpanInputOutput:{type:`object`,required:[`type`,`value`],properties:{type:{type:`string`,enum:[...pe]},value:{description:`The input/output value`}}},LLMConfig:{type:`object`,properties:{requestModel:{type:`string`,description:`Model requested (e.g. gpt-4o)`},responseModel:{type:`string`,description:`Model that responded`},messages:{type:`array`,items:{type:`object`,required:[`role`,`content`],properties:{role:{type:`string`,enum:[`system`,`user`,`assistant`,`tool`]},content:{type:`string`}}}},temperature:{type:`number`,minimum:0,maximum:2},stream:{type:`boolean`},metrics:{type:`object`,properties:{promptTokens:{type:`number`},completionTokens:{type:`number`},cost:{type:`number`}}}},additionalProperties:!1},RAGConfig:{type:`object`,required:[`contexts`],properties:{contexts:{type:`array`,items:{type:`object`,required:[`document_id`,`chunk_id`,`content`],properties:{document_id:{type:`string`},chunk_id:{type:`string`},content:{type:`string`}}}}},additionalProperties:!1},PromptConfig:{type:`object`,properties:{promptId:{type:`string`},version:{type:`integer`,minimum:1},versionId:{type:`string`},selectedId:{type:`string`},variables:{type:`object`,additionalProperties:{type:`string`}}},additionalProperties:!1}}},it=Ee(()=>i(()=>import(`./dist-WNeJk3KQ.js`),__vite__mapDeps([0,1,2])),{ssr:!1,loading:()=>(0,U.jsx)(s,{padding:4,color:`fg.muted`,children:`Loading editor...`})});function at(e){return e.reduce((e,t)=>e+1+at(t.children),0)}function ot(){let e=N(e=>e.trace),t=N(e=>e.setTrace),r=N(e=>e.resetTrace),{colorMode:i}=ye(),[o,l]=(0,H.useState)(!1),[u,d]=(0,H.useState)(null),f=(0,H.useRef)(null),p=(0,H.useMemo)(()=>JSON.stringify(e,null,2),[e]),m=(0,H.useMemo)(()=>at(e.spans),[e.spans]),h=p.split(`
3
- `).length;function g(e){if(e)try{t(JSON.parse(e)),d(null)}catch(e){d(e instanceof Error?e.message:`Invalid JSON`)}}function _(){let e=f.current?.getValue()??p;navigator.clipboard.writeText(e),l(!0),setTimeout(()=>l(!1),2e3)}function v(){let e=f.current?.getValue();if(e)try{t(JSON.parse(e)),d(null)}catch{}}return(0,U.jsxs)(s,{h:`full`,w:`full`,minH:0,display:`flex`,flexDirection:`column`,children:[(0,U.jsxs)(E,{px:3,py:1.5,borderBottom:`1px solid`,borderColor:`border`,bg:`bg.subtle`,flexShrink:0,gap:2,justify:`space-between`,children:[(0,U.jsxs)(E,{gap:2,children:[(0,U.jsxs)(S,{size:`sm`,variant:`outline`,children:[m,` `,m===1?`span`:`spans`]}),(0,U.jsxs)(S,{size:`sm`,variant:`outline`,children:[h,` lines`]}),u?(0,U.jsx)(c,{fontSize:`xs`,color:`red.400`,truncate:!0,maxW:`300px`,children:u}):(0,U.jsx)(c,{fontSize:`xs`,color:`green.500`,children:`Valid`})]}),(0,U.jsxs)(E,{gap:1,children:[(0,U.jsx)(n,{size:`2xs`,variant:`ghost`,onClick:v,title:`Format`,children:(0,U.jsx)(Oe,{size:12})}),(0,U.jsx)(n,{size:`2xs`,variant:`ghost`,onClick:_,title:`Copy`,children:o?(0,U.jsx)(te,{size:12}):(0,U.jsx)(ee,{size:12})}),(0,U.jsx)(n,{size:`2xs`,variant:`ghost`,onClick:r,title:`Reset to default`,children:(0,U.jsx)(a,{size:12})})]})]}),(0,U.jsx)(s,{flex:1,minH:0,children:(0,U.jsx)(it,{height:`100%`,language:`json`,value:p,onChange:g,theme:i===`dark`?`vs-dark`:`light`,onMount:e=>{f.current=e},beforeMount:e=>{e.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,allowComments:!1,trailingCommas:`error`,schemas:[{uri:`https://langwatch.ai/schemas/trace-config.json`,fileMatch:[`*`],schema:rt}]})},options:{minimap:{enabled:!1},fontSize:12,lineNumbers:`on`,scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:`on`,formatOnPaste:!0}})})]})}function st({compact:e=!1}){let t=N(e=>e.selectedSpanId);return(0,U.jsxs)(ne,{h:`full`,w:`full`,templateColumns:`${e?`260px`:`300px`} minmax(0, 1fr)`,overflow:`hidden`,children:[(0,U.jsx)(ie,{overflow:`auto`,borderRight:`1px solid`,borderColor:`border`,children:(0,U.jsxs)(T,{direction:`column`,minH:`full`,children:[(0,U.jsx)(We,{compact:e}),(0,U.jsx)(s,{borderTop:`1px solid`,borderColor:`border`,children:(0,U.jsx)(Ye,{compact:e})}),(0,U.jsx)(s,{borderTop:`1px solid`,borderColor:`border`,flex:1,children:(0,U.jsx)(Ne,{})}),(0,U.jsx)(s,{borderTop:`1px solid`,borderColor:`border`,children:(0,U.jsx)(Ke,{compact:e})})]})}),(0,U.jsx)(ie,{overflow:`hidden`,display:`flex`,flexDirection:`column`,children:(0,U.jsxs)(ae,{defaultValue:`editor`,variant:`line`,size:`sm`,display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,children:[(0,U.jsxs)(oe,{borderBottom:`1px solid`,borderColor:`border`,px:3,gap:0,flexShrink:0,children:[(0,U.jsx)(D,{value:`editor`,fontSize:`xs`,px:3,py:1.5,color:`fg.muted`,_selected:{color:`fg.default`,borderColor:`orange.500`},children:`Editor`}),(0,U.jsx)(D,{value:`waterfall`,fontSize:`xs`,px:3,py:1.5,color:`fg.muted`,_selected:{color:`fg.default`,borderColor:`orange.500`},children:`Waterfall`}),(0,U.jsx)(D,{value:`graph`,fontSize:`xs`,px:3,py:1.5,color:`fg.muted`,_selected:{color:`fg.default`,borderColor:`orange.500`},children:`Graph`}),(0,U.jsx)(D,{value:`json`,fontSize:`xs`,px:3,py:1.5,color:`fg.muted`,_selected:{color:`fg.default`,borderColor:`orange.500`},children:`JSON`})]}),(0,U.jsxs)(s,{flex:1,overflow:`auto`,minH:0,children:[(0,U.jsx)(O,{value:`editor`,p:0,children:t?(0,U.jsx)(Ue,{}):(0,U.jsx)(T,{h:`300px`,align:`center`,justify:`center`,color:`fg.muted`,children:(0,U.jsxs)(s,{textAlign:`center`,children:[(0,U.jsx)(c,{fontSize:`md`,children:`Select a span to edit`}),(0,U.jsx)(c,{fontSize:`sm`,mt:1,children:`Or add a new span from the tree`})]})})}),(0,U.jsx)(O,{value:`waterfall`,p:0,children:(0,U.jsx)(Qe,{})}),(0,U.jsx)(O,{value:`graph`,p:0,h:`full`,children:(0,U.jsx)(nt,{})}),(0,U.jsx)(O,{value:`json`,p:0,h:`full`,children:(0,U.jsx)(ot,{})})]})]})})]})}function ct(e){return e.reduce((e,t)=>e+1+ct(t.children),0)}function lt(e,t){for(let n of e)t.push(structuredClone({...n,children:[]})),lt(n.children,t)}function ut(e){e.id=R();for(let t of e.children)ut(t)}function dt(e,t){let n=[];function r(e){for(let t of e)t.prompt&&n.push(t),r(t.children)}r(e.spans);for(let e=0;e<n.length;e++){let r=t[e%t.length],i=n[e];i.prompt={...i.prompt,promptId:r.handle??r.id,version:r.version,versionId:r.versionId},i.name=`prompt:${r.handle??r.id}`}}function ft(){let[e,t]=(0,H.useState)(!1),r=N(e=>e.setTrace),{builtIn:i,userPresets:a}=me(),o=[...i,...a],l=I(e=>e.selectedProjectId),u=M.prompts.getAllPromptsForProject.useQuery({projectId:l},{enabled:!!l});function d(e){let n=o.find(t=>t.id===e);if(!n)return;let i=structuredClone(n.config);e===`prompt-heavy`&&u.data&&u.data.length>0&&dt(i,u.data),r(i),t(!1)}function f(){let e=[];for(let t of o)lt(t.config.spans,e);for(let t=e.length-1;t>0;t--){let n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}let n=Math.min(e.length,8+Math.floor(Math.random()*8)),i=e.slice(0,n),a=0;for(let e of i)ut(e),e.offsetMs=a,a+=e.durationMs+50;r({id:R(),name:`Mashup`,resourceAttributes:{"service.name":`mashup`},metadata:{labels:[`mashup`]},spans:i}),t(!1)}return(0,U.jsxs)(s,{position:`relative`,children:[(0,U.jsxs)(n,{size:`xs`,variant:`outline`,onClick:()=>t(!e),children:[`Load Preset `,(0,U.jsx)(A,{size:12})]}),e&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(s,{position:`fixed`,inset:0,zIndex:40,onClick:()=>t(!1)}),(0,U.jsxs)(s,{position:`absolute`,right:0,zIndex:50,mt:1,w:`360px`,maxH:`400px`,overflow:`auto`,rounded:`lg`,border:`1px solid`,borderColor:`border`,bg:`bg.panel`,shadow:`xl`,p:1,children:[(0,U.jsx)(T,{px:2,py:1.5,children:(0,U.jsxs)(n,{size:`xs`,variant:`outline`,colorPalette:`purple`,w:`full`,onClick:f,children:[(0,U.jsx)(ke,{size:12}),`Mashup (random spans from all presets)`]})}),(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,color:`fg.muted`,px:2,py:1,children:`Built-in Presets`}),i.map(e=>(0,U.jsxs)(T,{as:`button`,w:`full`,align:`flex-start`,direction:`column`,gap:.5,rounded:`md`,px:3,py:2,textAlign:`left`,_hover:{bg:`bg.subtle`},onClick:()=>d(e.id),children:[(0,U.jsxs)(T,{w:`full`,justify:`space-between`,align:`center`,children:[(0,U.jsx)(c,{fontSize:`sm`,fontWeight:`medium`,color:`fg.default`,children:e.name}),(0,U.jsxs)(c,{fontSize:`10px`,color:`fg.muted`,children:[ct(e.config.spans),` spans`]})]}),(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,lineClamp:1,children:e.description})]},e.id)),a.length>0&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(c,{fontSize:`xs`,fontWeight:`medium`,color:`fg.muted`,px:2,py:1,mt:1,children:`Your Presets`}),a.map(e=>(0,U.jsxs)(T,{as:`button`,w:`full`,align:`flex-start`,direction:`column`,gap:.5,rounded:`md`,px:3,py:2,textAlign:`left`,_hover:{bg:`bg.subtle`},onClick:()=>d(e.id),children:[(0,U.jsxs)(T,{w:`full`,justify:`space-between`,align:`center`,children:[(0,U.jsx)(c,{fontSize:`sm`,fontWeight:`medium`,color:`fg.default`,children:e.name}),(0,U.jsx)(S,{colorPalette:`purple`,size:`sm`,children:`Custom`})]}),(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,lineClamp:1,children:e.description})]},e.id))]})]})]})]})}var pt=[`server`,`client`,`span`,`task`,`component`,`module`],mt=[`gpt-4o`,`gpt-4o-mini`,`gpt-4.1`,`gpt-4.1-mini`,`claude-sonnet-4-5-20250514`,`claude-haiku-4-5-20251001`,`gemini-2.5-pro`,`gemini-2.5-flash`],ht=[`search_documents`,`get_weather`,`execute_sql`,`send_email`,`create_ticket`,`lookup_user`,`calculate`,`fetch_url`,`list_files`,`run_code`,`translate_text`,`summarize`],gt=[`orchestrator`,`researcher`,`planner`,`coder`,`reviewer`,`analyst`,`writer`,`validator`,`router`,`extractor`],_t=[`You are a helpful assistant that answers questions accurately.`,`You are a research agent. Find relevant information and summarize it.`,`You are a code reviewer. Analyze the code and provide feedback.`,`You are a planning agent. Break down tasks into actionable steps.`,`You are a data analyst. Interpret the data and provide insights.`],W=[`Can you help me understand the quarterly revenue trends?`,`Search for recent papers on transformer architectures.`,`What's the current status of ticket PROJ-1234?`,`Summarize the key findings from the latest report.`,`Generate a SQL query to find all users who signed up last month.`,`Review the pull request and highlight any security concerns.`,`What are the top 5 action items from yesterday's meeting?`,`Translate this document from English to Spanish.`,`Calculate the total cost including tax and shipping.`,`Find all files modified in the last 24 hours.`],G=[`Based on my analysis, the quarterly revenue shows a 15% increase compared to last quarter, driven primarily by new enterprise contracts.`,`I found 3 relevant papers. The most notable one proposes a sparse attention mechanism that reduces compute by 40%.`,`Ticket PROJ-1234 is currently in review. It was last updated 2 hours ago by the engineering team.`,`The report highlights three key findings: improved customer retention, higher NPS scores, and reduced churn in the enterprise segment.`,`Here's the SQL query: SELECT * FROM users WHERE created_at >= DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month')`,`I've identified two potential security concerns: an unsanitized user input on line 45 and a missing CSRF token check.`,`The top 5 action items are: 1) Finalize Q3 roadmap, 2) Schedule design review, 3) Update documentation, 4) Fix CI pipeline, 5) Deploy hotfix.`,`Translation complete. The document has been translated maintaining the original formatting and technical terminology.`,`The total comes to $1,247.83 including 8.5% sales tax and $12.99 standard shipping.`,`Found 47 files modified in the last 24 hours across 12 directories. Most changes are in the src/components/ directory.`],vt=[`The system architecture uses a microservices pattern with event-driven communication between services.`,`According to the policy document, all data must be encrypted at rest using AES-256 encryption.`,`The API rate limit is set to 1000 requests per minute per API key for standard tier users.`,`Performance benchmarks show that the new indexing strategy reduces query latency by 60%.`,`The deployment pipeline consists of three stages: build, test, and deploy with automatic rollback on failure.`],yt=[`http.request`,`db.query`,`cache.lookup`,`auth.verify`,`rate_limit.check`,`metrics.record`,`log.flush`,`config.load`,`health.check`,`middleware.cors`,`middleware.auth`,`serialise`,`deserialise`,`validate.input`,`compress.response`];function K(e){return e[Math.floor(Math.random()*e.length)]}function q(e,t){let n=t-e+1,r=new Uint32Array(1);return crypto.getRandomValues(r),e+r[0]%n}function J(e,t){return{name:`exception`,offsetMs:Math.max(1,e-q(1,5)),attributes:{"exception.type":K([`TimeoutError`,`RateLimitError`,`ValidationError`,`TypeError`]),"exception.message":t,"exception.stacktrace":`Error: ${t}\n at handleRequest (server.ts:${q(10,500)})\n at process (worker.ts:${q(10,200)})`}}}function bt(e){let t=Math.random()<.02?`error`:`ok`,n=q(1,30),r={id:R(),name:K(yt),type:K(pt),durationMs:n,offsetMs:0,status:t,children:[],attributes:{"http.method":`POST`,"http.status_code":200}};return e&&t===`error`&&(r.events=[J(n,`Upstream call failed`)]),r}function xt(e){let t={};for(let{identifier:n,type:r}of e)switch(r){case`str`:t[n]=K(W);break;case`float`:case`int`:t[n]=String(q(1,100));break;case`bool`:t[n]=Math.random()<.5?`true`:`false`;break;case`list[str]`:t[n]=JSON.stringify([K(W),K(W)]);break;default:t[n]=`synthetic-${n}`}return t}function Y(e,t){let n=e&&e.length>0&&Math.random()<.7?K(e):null,r=n?.model??K(mt),i=K(W),a=K(G),o=K(_t),s=q(50,800),c=q(20,600),l=q(200,3e3),u=Math.random()<.03?`error`:`ok`,d={id:R(),name:`chat ${r}`,type:`llm`,durationMs:l,offsetMs:0,status:u,children:[],attributes:{},llm:{requestModel:r,responseModel:r,messages:[{role:`system`,content:o},{role:`user`,content:i},{role:`assistant`,content:a}],temperature:Math.random()<.5?.7:0,stream:Math.random()<.4,metrics:{promptTokens:s,completionTokens:c,cost:s*3e-6+c*15e-6}},input:{type:`chat_messages`,value:[{role:`system`,content:o},{role:`user`,content:i}]},output:{type:`text`,value:a}};return t&&u===`error`&&(d.events=[J(l,`Provider returned 500`)]),n&&(d.prompt={promptId:n.handle??n.id,version:n.version,versionId:n.versionId,variables:xt(n.inputs)}),d}function X(e){let t=K(ht),n=q(10,500),r=Math.random()<.05?`error`:`ok`,i={id:R(),name:t,type:`tool`,durationMs:n,offsetMs:0,status:r,children:[],attributes:{},input:{type:`json`,value:{query:`example input`,limit:10}},output:{type:`json`,value:{results:[`item1`,`item2`],count:2}}};return e&&r===`error`&&(i.events=[J(n,`${t} invocation failed`)]),i}function Z(){let e=q(1,4);return{id:R(),name:`retrieval`,type:`rag`,durationMs:q(50,400),offsetMs:0,status:`ok`,children:[],attributes:{},rag:{contexts:Array.from({length:e},(e,t)=>({document_id:`doc-${q(1,200)}`,chunk_id:`chunk-${q(1,50)}`,content:K(vt)}))},input:{type:`text`,value:K(W)},output:{type:`json`,value:{num_results:e}}}}function St(e){let t=Math.random()<.9,n=q(5,80),r={id:R(),name:K([`pii_check`,`toxicity_filter`,`jailbreak_detector`,`content_policy`]),type:`guardrail`,durationMs:n,offsetMs:0,status:t?`ok`:`error`,children:[],attributes:{},input:{type:`text`,value:`Content to check`},output:{type:`json`,value:{passed:t,score:Math.random().toFixed(3)}},...t?{}:{exception:{message:`Content policy violation detected`}}};return e&&!t&&(r.events=[J(n,`Content policy violation detected`)]),r}function Ct(e,t){let{prompts:n,includeEvents:r}=t;if(!e)return{span:bt(r),used:1};let i=Math.random();return i<.4?{span:Y(n,r),used:1}:i<.6?{span:X(r),used:1}:i<.8?{span:Z(),used:1}:{span:St(r),used:1}}function wt(e,t){let{depth:n,maxDepth:r,genaiRatio:i,prompts:a,includeEvents:o}=t,s=K(gt),c=Math.min(q(1,4),Math.floor((e-1)/3)),l={id:R(),name:s,type:`agent`,durationMs:0,offsetMs:0,status:`ok`,children:[],attributes:{},input:{type:`text`,value:K(W)},output:{type:`text`,value:K(G)}},u=1,d=Math.min(e-1,q(3,Math.max(3,Math.floor(e*.4))));for(let e=0;e<c&&d>0;e++){l.children.push(Y(a,o)),d--,u++;let e=Math.min(q(1,3),d);for(let t=0;t<e;t++)l.children.push(X(o)),d--,u++}if(d>2&&n<r-2){let e=Q({budget:d,depth:n+1,maxDepth:r,genaiRatio:i,prompts:a,includeEvents:o});l.children.push(...e.spans),u+=e.used}return l.durationMs=l.children.reduce((e,t)=>e+t.durationMs,0)+q(10,50),{span:l,used:u}}function Tt(e,t){let{depth:n,maxDepth:r,genaiRatio:i,prompts:a,includeEvents:o}=t,s={id:R(),name:`rag-pipeline`,type:`chain`,durationMs:0,offsetMs:0,status:`ok`,children:[],attributes:{},input:{type:`text`,value:K(W)},output:{type:`text`,value:K(G)}},c=1;s.children.push(Z()),c++,Math.random()<.3&&e>4&&(s.children.push(St(o)),c++),s.children.push(Y(a,o)),c++;let l=Math.min(e-c,q(0,5));if(l>0&&n<r-1){let e=Q({budget:l,depth:n+1,maxDepth:r,genaiRatio:i,prompts:a,includeEvents:o});s.children.push(...e.spans),c+=e.used}return s.durationMs=s.children.reduce((e,t)=>e+t.durationMs,0)+q(5,20),{span:s,used:c}}function Et(e,t){let{depth:n,maxDepth:r,genaiRatio:i,prompts:a,includeEvents:o}=t,s={id:R(),name:K([`process_request`,`handle_query`,`run_pipeline`,`execute_workflow`]),type:`workflow`,durationMs:0,offsetMs:0,status:`ok`,children:[],attributes:{}},c=1,l=Q({budget:Math.min(e-1,q(2,Math.max(2,Math.floor(e*.3)))),depth:n+1,maxDepth:r,genaiRatio:i,prompts:a,includeEvents:o});return s.children=l.spans,c+=l.used,s.durationMs=s.children.reduce((e,t)=>e+t.durationMs,0)+q(5,30),{span:s,used:c}}function Dt(e,t){let{prompts:n,includeEvents:r}=t;if(!e)return{span:bt(r),used:1};let i=Math.random();return i<.5?{span:Y(n,r),used:1}:i<.75?{span:X(r),used:1}:{span:Z(),used:1}}function Q(e){let{budget:t,depth:n,maxDepth:r,genaiRatio:i}=e;if(t<=0||n>=r)return{spans:[],used:0};let a=[],o=0;for(;o<t;){let s=t-o,c=Math.random()<i,l=n>=r-1;if(!c||l){let t=Ct(c,e);a.push(t.span),o+=t.used;continue}let u=Math.random(),d;d=u<.35&&s>=5?wt(s,e):u<.55&&s>=4?Tt(s,e):u<.7&&s>=3?Et(s,e):Dt(c,e),a.push(d.span),o+=d.used}return{spans:a,used:o}}function Ot(e,t=0){let n=t;for(let t of e)t.offsetMs=n,Ot(t.children,0),n+=t.durationMs+q(1,10)}function kt(e){return e.reduce((e,t)=>e+1+kt(t.children),0)}function At(e){let{targetSpanCount:t,maxDepth:n,genaiRatio:r,prompts:i,includeEvents:a}=e,o={id:R(),name:K(gt),type:`agent`,durationMs:0,offsetMs:0,status:`ok`,children:[],attributes:{},input:{type:`text`,value:K(W)},output:{type:`text`,value:K(G)}},{spans:s}=Q({budget:t-1,depth:1,maxDepth:n,genaiRatio:r,prompts:i,includeEvents:a});return o.children=s,o.durationMs=s.reduce((e,t)=>e+t.durationMs,0)+q(20,100),Ot([o]),{id:R(),name:`Generated Trace (${kt([o])} spans)`,resourceAttributes:{"service.name":K([`ai-agent`,`chatbot-service`,`ml-pipeline`,`llm-gateway`]),"service.version":`${q(1,5)}.${q(0,20)}.${q(0,99)}`},metadata:{userId:`user-${q(1e3,9999)}`,threadId:`thread-${R()}`,customerId:`customer-${q(100,999)}`,labels:[K([`production`,`staging`,`development`]),K([`v2`,`beta`,`canary`])]},spans:[o]}}var $=[{label:`Shallow`,value:4},{label:`Medium`,value:8},{label:`Deep`,value:14}];function jt(){let[e,t]=(0,H.useState)(!1),r=N(e=>e.setTrace),i=I(e=>e.selectedProjectId),[a,o]=(0,H.useState)(1500),[d,h]=(0,H.useState)(1),[g,_]=(0,H.useState)(.8),[v,y]=(0,H.useState)(!1),[b,x]=(0,H.useState)(!1),S=M.prompts.getAllPromptsForProject.useQuery({projectId:i??``},{enabled:e&&v&&!!i,staleTime:6e4});function C(){let e=v&&S.data?S.data.map(e=>({id:e.id,version:e.version,versionId:e.versionId,handle:e.handle,model:e.model,inputs:e.inputs??[]})):void 0;r(At({targetSpanCount:a,maxDepth:$[d].value,genaiRatio:g,prompts:e,includeEvents:b})),t(!1)}return(0,U.jsxs)(f,{open:e,onOpenChange:e=>t(e.open),positioning:{placement:`bottom-end`},children:[(0,U.jsx)(m,{asChild:!0,children:(0,U.jsxs)(n,{size:`xs`,variant:`outline`,children:[(0,U.jsx)(_e,{size:14}),`Generate`]})}),(0,U.jsx)(l,{width:`340px`,children:(0,U.jsxs)(u,{p:4,children:[(0,U.jsx)(c,{fontSize:`sm`,fontWeight:`semibold`,color:`fg.default`,mb:3,children:`Generate Trace`}),(0,U.jsxs)(j,{gap:4,align:`stretch`,children:[(0,U.jsxs)(s,{children:[(0,U.jsxs)(T,{justify:`space-between`,mb:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`Target span count`}),(0,U.jsx)(c,{fontSize:`xs`,fontFamily:`mono`,color:`fg.default`,children:a.toLocaleString()})]}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:a,onChange:e=>o(Math.max(10,Math.min(5e3,parseInt(e.target.value)||100))),min:10,max:5e3,step:100}),(0,U.jsx)(T,{gap:1,mt:1,children:[500,1500,2500,3e3].map(e=>(0,U.jsx)(n,{size:`xs`,variant:a===e?`solid`:`ghost`,colorPalette:a===e?`orange`:void 0,onClick:()=>o(e),flex:1,textStyle:`2xs`,children:e>=1e3?`${(e/1e3).toFixed(e%1e3==0?0:1)}k`:e},e))})]}),(0,U.jsxs)(s,{children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,mb:1,children:`Nesting depth`}),(0,U.jsx)(T,{gap:1,children:$.map((e,t)=>(0,U.jsx)(n,{size:`xs`,variant:d===t?`solid`:`outline`,colorPalette:d===t?`orange`:void 0,onClick:()=>h(t),flex:1,children:e.label},e.label))}),(0,U.jsxs)(c,{textStyle:`2xs`,color:`fg.subtle`,mt:1,children:[`Max `,$[d].value,` levels deep`]})]}),(0,U.jsxs)(s,{children:[(0,U.jsxs)(T,{justify:`space-between`,mb:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`GenAI span ratio`}),(0,U.jsxs)(c,{fontSize:`xs`,fontFamily:`mono`,color:`fg.default`,children:[Math.round(g*100),`%`]})]}),(0,U.jsx)(p,{size:`sm`,min:20,max:100,step:5,value:[g*100],onValueChange:e=>_((e.value[0]??80)/100)}),(0,U.jsxs)(T,{justify:`space-between`,mt:.5,children:[(0,U.jsx)(c,{textStyle:`2xs`,color:`fg.subtle`,children:`Mixed infra`}),(0,U.jsx)(c,{textStyle:`2xs`,color:`fg.subtle`,children:`All GenAI`})]})]}),(0,U.jsx)(s,{children:(0,U.jsxs)(T,{align:`center`,justify:`space-between`,gap:2,children:[(0,U.jsxs)(s,{flex:1,minW:0,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`OTel span events`}),(0,U.jsx)(c,{textStyle:`2xs`,color:`fg.subtle`,children:`Attach gen_ai.* messages, choices, exceptions`})]}),(0,U.jsx)(Te,{size:`sm`,colorPalette:`orange`,checked:b,onCheckedChange:e=>x(e.checked)})]})}),(0,U.jsx)(s,{children:(0,U.jsxs)(T,{align:`center`,justify:`space-between`,gap:2,children:[(0,U.jsxs)(s,{flex:1,minW:0,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`Use real prompts`}),(0,U.jsx)(c,{textStyle:`2xs`,color:`fg.subtle`,children:i?v?S.isLoading?`Loading prompts…`:S.data?.length?`Sampling from ${S.data.length} prompt${S.data.length===1?``:`s`}`:`No prompts in this project`:`Attach real prompt IDs to LLM spans`:`Select a project first`})]}),(0,U.jsx)(Te,{size:`sm`,colorPalette:`orange`,checked:v,onCheckedChange:e=>y(e.checked),disabled:!i})]})}),(0,U.jsxs)(n,{size:`sm`,colorPalette:`orange`,onClick:C,w:`full`,disabled:v&&(S.isLoading||!S.data?.length),children:[(0,U.jsx)(_e,{size:14}),`Generate `,a.toLocaleString(),` spans`]})]})]})})]})}var Mt=`You are a senior staff engineer at a fast-growing observability startup. You're mentoring a sharp junior engineer who is learning distributed systems, TypeScript, and the practical side of running LLM applications in production. Always give concrete, opinionated advice grounded in real experience. Use short headers, bullet points, and code blocks where they help. Avoid hedging. When you disagree with a common recommendation, say so and explain why.`,Nt=[{user:`I'm starting to instrument our Node service with OpenTelemetry. Should I trace every HTTP handler, or be selective?`,assistant:`Trace **everything** at the request boundary. Selectivity at this layer almost always backfires.
4
-
5
- **Why:**
6
- - The cost of one root span per request is negligible — it's the same cardinality as your access log.
7
- - The moment you debug a weird timeout, you'll wish you had the missing handler.
8
- - Selectivity decisions tend to be made based on what's "important today," and important changes faster than the code does.
9
-
10
- **Where selectivity matters instead:**
11
- - *Inside* a request: don't span every internal function call. Pick the ones with real I/O or non-trivial CPU.
12
- - Sampling: keep 100% of errors and slow requests, sample the rest at 1–10%.
13
-
14
- Default to instrument-by-default at boundaries and prune by sampling, not by skipping spans entirely.`},{user:"How do I structure span attributes? I keep flip-flopping between flat keys like `user.id` and nested `metadata.user.id`.",assistant:`Flat dotted keys, **always**. Three reasons:
15
-
16
- 1. **OpenTelemetry semantic conventions are flat.** \`user.id\`, \`http.request.method\`, \`db.system\` — follow that and you get free compatibility with vendor backends.
17
- 2. **Search/filter UX.** Most observability tools index attribute keys, not deeply nested objects. \`metadata.user.id\` becomes a JSON blob in many backends and is unsearchable.
18
- 3. **Cardinality control.** Flat keys force you to think about each attribute individually. Nesting lulls you into dumping whole objects.
19
-
20
- \`\`\`ts
21
- // Good
22
- span.setAttribute("user.id", userId);
23
- span.setAttribute("user.tier", tier);
24
- span.setAttribute("http.route", "/api/orders/:id");
25
-
26
- // Avoid
27
- span.setAttribute("metadata", JSON.stringify({ user: { id, tier }, ... }));
28
- \`\`\`
29
-
30
- The one exception: large opaque payloads (LLM messages, request bodies) — those go in a single string attribute, JSON-encoded. They're not meant to be filtered on.`},{user:`We're seeing crazy P99 latency on one endpoint but the average is fine. Where do I even start?`,assistant:`Classic tail-latency hunt. Don't average — **percentile-decompose** the request.
31
-
32
- **Step 1: confirm it's real, not measurement noise.**
33
- \`\`\`promql
34
- histogram_quantile(0.99, sum(rate(http_duration_bucket{route="..."}[5m])) by (le))
35
- histogram_quantile(0.50, sum(rate(http_duration_bucket{route="..."}[5m])) by (le))
36
- \`\`\`
37
- If p99 is 10× p50, you've got a tail.
38
-
39
- **Step 2: split p99 by sub-span.** If your span tree has DB / cache / external API spans, plot each one's p99. The culprit is usually obvious.
40
-
41
- **Step 3: look at *what's correlated* with the slow ones.** Common offenders:
42
- - A specific user/tenant doing pathological queries
43
- - Cache cold-start after a deploy
44
- - Lock contention on a hot row
45
- - Connection pool exhaustion (the request waits *before* even starting)
46
-
47
- **The trap:** people optimize the *median* code path. Tail latency is almost always a different code path entirely — a fallback, a retry, a slow query that only triggers for some inputs.`},{user:`What's your take on putting business logic in tRPC procedures vs a service layer?`,assistant:`Service layer, every time. tRPC procedures should be **transport adapters**, not business logic.
48
-
49
- **A procedure should do:**
50
- - Auth check (who is calling?)
51
- - Input validation (Zod)
52
- - Call into the service
53
- - Map the service result to a response shape
54
-
55
- **A procedure should not do:**
56
- - Database queries directly
57
- - Cross-aggregate orchestration
58
- - Anything that would also need to run from a CLI, a worker, or a Cron job
59
-
60
- \`\`\`ts
61
- // Good
62
- export const ordersRouter = router({
63
- cancel: protectedProcedure
64
- .input(z.object({ orderId: z.string() }))
65
- .mutation(async ({ ctx, input }) => {
66
- return ctx.services.orders.cancel({
67
- orderId: input.orderId,
68
- actorId: ctx.userId,
69
- });
70
- }),
71
- });
72
- \`\`\`
73
-
74
- The service \`OrderService.cancel\` is now reusable from a worker, a backfill script, or a different transport (REST, gRPC, queue). The day you need that — and you will — you'll save a week.`},{user:`I keep getting bit by Postgres transaction isolation. Read committed vs repeatable read — when does it actually matter?`,assistant:`It matters the moment you do **read-modify-write** under concurrency. Until then, read committed is fine.
75
-
76
- **The classic footgun:**
77
- \`\`\`ts
78
- // Read committed (default)
79
- const balance = await tx.query("SELECT balance FROM accounts WHERE id = $1", [id]);
80
- if (balance > amount) {
81
- await tx.query("UPDATE accounts SET balance = balance - $1 WHERE id = $2", [amount, id]);
82
- }
83
- \`\`\`
84
- Two concurrent transactions both read \`balance = 100\`, both check \`100 > 50\`, both subtract 50 → balance is now \`0\`, but you've authorized \`100\` in withdrawals. Lost update.
85
-
86
- **Fixes, in order of preference:**
87
- 1. **\`SELECT ... FOR UPDATE\`** — explicit row lock. Read committed is fine, you're now serializing on that row.
88
- 2. **Conditional UPDATE** — \`UPDATE ... WHERE balance >= $1 RETURNING balance\`. Atomic check-and-act.
89
- 3. **Repeatable read / serializable isolation** — Postgres will detect the conflict and abort one transaction. Cleanest semantically, but you must handle the retry.
90
-
91
- Most teams reach for #3 first. I'd reach for #2 — it's local to the query, no retry plumbing needed.`},{user:`When is it worth introducing a queue (SQS, BullMQ, etc.) vs just doing the work inline?`,assistant:`Reach for a queue when **any** of these is true:
92
-
93
- 1. **The work can fail and the user shouldn't know about it yet.** (Sending receipts, syncing to a CRM.)
94
- 2. **The work is slow and the response shouldn't wait.** (Image processing, billing reconciliation.)
95
- 3. **The work needs to be retried with care.** (Idempotency, exponential backoff, dead-letter handling.)
96
- 4. **You need to throttle.** (Calling a rate-limited external API at safe concurrency.)
97
-
98
- **Don't reach for a queue when:**
99
- - The work is fast and synchronous-ok (< 200ms).
100
- - The user is *waiting* for it (shoving it in a queue just adds latency and a "we'll email you" UX).
101
- - You don't already have queue infrastructure and your team is small. The operational cost is real: you now own retries, DLQs, monitoring.
102
-
103
- **My rule of thumb:** the first queue is the expensive one. Once you have BullMQ + monitoring + DLQ inspection running, the marginal cost of new queues is near zero. So either commit fully or stay async-via-Promise.all. The middle path (one ad-hoc queue, no operational story) bites.`},{user:`Code review question: how strict should I be about test coverage on PRs?`,assistant:`Strict on **behavior**, lenient on **lines**. Coverage % is a deeply broken metric.
104
-
105
- **What I block on:**
106
- - New public API or service method without an integration test exercising the happy path *and* one failure mode.
107
- - Bug fix without a regression test that fails on \`main\` and passes on the branch.
108
- - Any code path that touches money, auth, or PII without explicit assertions.
109
-
110
- **What I don't block on:**
111
- - 100% line coverage. You can hit 100% with tests that assert nothing.
112
- - Unit tests for trivial getters/setters.
113
- - Snapshot tests of UI without visual review (those are noise generators).
114
-
115
- **The deeper move:** ask "if this code breaks in prod, how would we know?" — not "is this line covered?" If the answer to the first question is "we wouldn't, until a customer complains," the test is missing regardless of coverage.`},{user:`Our React app is getting slow. We've added a lot of features. Where do I start optimizing?`,assistant:`Don't optimize yet. **Measure first.** Three tools, in order:
116
-
117
- 1. **Chrome DevTools Performance tab** — record a slow interaction, look at the flame graph. 80% of the time you'll find one obvious culprit (a re-render storm, a synchronous JSON.parse on a huge payload, a layout thrash).
118
- 2. **React DevTools Profiler** — find components that re-render unnecessarily. The "Why did this render?" hint is gold.
119
- 3. **Network panel** — sometimes "slow app" is "slow API." Don't fix the wrong thing.
120
-
121
- **The usual culprits, in order:**
122
- - Context providers re-rendering the whole tree because of an unstable value.
123
- - A list rendering 1000 items without virtualization.
124
- - A \`useEffect\` running on every render because of an unstable dependency.
125
- - Bundle size — too much code being parsed on first load.
126
-
127
- **What I would NOT start with:**
128
- - \`React.memo\` everywhere. It's a band-aid that creates more re-render bugs than it solves.
129
- - Switching state libraries (Redux → Zustand etc). The state library is almost never the bottleneck.
130
-
131
- Profile first. The fix is usually 5 lines once you know the cause.`},{user:`I'm writing a TypeScript SDK for our API. Any opinions on how to structure the public surface?`,assistant:`Yes, lots. SDKs are a craft.
132
-
133
- **The non-negotiables:**
134
- 1. **One default export, one initialization step.** \`new ClientName({ apiKey })\` — that's it. No global config, no factory pattern.
135
- 2. **Methods grouped by resource, not by HTTP verb.** \`client.orders.list()\` not \`client.get("/orders")\`.
136
- 3. **Strong types for every method's input AND output.** No \`any\`, no \`unknown\` leaking. If your API has dynamic shapes, generate types from your schema.
137
- 4. **Errors are typed and discriminable.** \`if (err.code === "rate_limited")\` should work without string matching.
138
-
139
- **The tasteful choices:**
140
- - **Promise-based, not callback or stream-only.** AsyncIterators for paginated endpoints (\`for await (const order of client.orders.list())\`).
141
- - **Sensible defaults** for retries, timeouts. Make them overridable but don't make people configure to get started.
142
- - **Don't over-abstract.** If your API has one endpoint that takes 12 params, your SDK should have one method that takes 12 params. Don't invent a builder pattern to "feel SDK-y."
143
-
144
- **The trap:** copying every detail of the underlying HTTP API into the SDK. Good SDKs *hide* HTTP. The user should never think about status codes, retries, or pagination tokens.`},{user:`How do you decide when to break a service into a microservice vs keep it in the monolith?`,assistant:`Stay in the monolith **as long as humanly possible**. The cost of a microservice is enormous and almost always underestimated.
145
-
146
- **Real reasons to extract:**
147
- 1. **Independent deployment cadence.** A team genuinely needs to ship 50× a day while another team ships weekly.
148
- 2. **Independent scaling profile.** One workload is GPU-bound, another is I/O-bound, and the deployment shapes are wildly different.
149
- 3. **Hard isolation requirement.** Compliance, security boundaries, blast-radius limits.
150
- 4. **Different language/runtime.** You genuinely need Python for ML and Go for infra.
151
-
152
- **Fake reasons people give:**
153
- - "Better separation of concerns." Modules in a monolith do this for free, with type-safe imports.
154
- - "Easier to scale." Monoliths scale horizontally fine. Most "scaling problems" are database problems, and microservices don't fix those.
155
- - "Independent teams." You can have independent teams owning modules in a monolith. The deployment unit ≠ the ownership unit.
156
-
157
- **The cost you'll pay:**
158
- - Distributed transactions (you can't have them; saga pattern is harder than people pretend).
159
- - Network latency between every call that used to be a function call.
160
- - Observability complexity goes 10×.
161
- - Local development requires running 8 services.
162
-
163
- If you must extract, extract one well-bounded service first, live with it for 6 months, and *then* decide if it's working.`},{user:`What's the simplest way to add idempotency to our payment endpoint?`,assistant:`**Idempotency keys**, server-stored. Don't rely on the client for de-duplication.
164
-
165
- **The pattern:**
166
-
167
- \`\`\`ts
168
- // Client sends a UUID per logical operation
169
- POST /payments
170
- Idempotency-Key: 7c8e3f2a-...
171
-
172
- // Server stores: (idempotency_key, response_status, response_body) keyed on (key, user_id)
173
- \`\`\`
174
-
175
- **Server logic:**
176
- 1. Look up \`(idempotency_key, user_id)\`. If found and *complete*, return the stored response.
177
- 2. If found and *in-flight*, return 409 Conflict (or wait, depending on tolerance).
178
- 3. Otherwise, claim the key (insert with status="pending") in the same transaction as the work.
179
- 4. Do the work, update status="complete" with the response. Or status="failed".
180
-
181
- **Storage:**
182
- - Postgres table is fine. Index on \`(user_id, idempotency_key)\`.
183
- - 24h TTL is usually enough. Stripe uses 24h.
184
-
185
- **Two subtleties most people miss:**
186
- 1. The idempotency check must be in the same transaction as the side effect. Otherwise: race window where two requests pass the "is this new?" check.
187
- 2. If the *body* is different but the key is the same, that's a client bug. Reject with 422, don't quietly process the second one.`},{user:`I'm building a feature flag system from scratch. Worth it, or just use LaunchDarkly?`,assistant:`**Buy LaunchDarkly (or PostHog, or Unleash).** Don't build this.
188
-
189
- I've seen four "let's just build feature flags" projects. None of them ended well.
190
-
191
- **Why building seems easy:**
192
- \`\`\`ts
193
- const flags = { newCheckout: true, betaSearch: false };
194
- if (flags.newCheckout) { ... }
195
- \`\`\`
196
- Done, right? Until:
197
-
198
- - You need percentage rollouts → now you need consistent hashing.
199
- - You need targeting (only US users, only enterprise tier) → now you need a rule engine.
200
- - You need real-time updates without a deploy → now you need a pub/sub or polling system.
201
- - You need an audit log of who flipped what when → another table, another UI.
202
- - You need experimentation (A/B with stats) → that's a whole product.
203
- - You need server-side AND client-side flags consistent → SDK + caching layer.
204
-
205
- By the time you have all that, you've spent six months building a worse version of LaunchDarkly. And LaunchDarkly costs less than one engineer-month/year for most teams.
206
-
207
- **When *would* I build it?**
208
- - You're at a scale (Meta, Uber) where vendor pricing is broken.
209
- - You have hard data residency rules vendors can't meet.
210
- - The flag system is your *product* (you're an experimentation platform).
211
-
212
- Otherwise, write the cheque.`},{user:`How do you think about logs vs traces vs metrics? When does each win?`,assistant:`Three different jobs. Most teams misuse all three.
213
-
214
- **Metrics:** *aggregate health.*
215
- - Pre-aggregated counters, gauges, histograms.
216
- - Tells you *what* is broken, not *why*.
217
- - Cheap to store, fast to query.
218
- - Use for: dashboards, SLOs, alerting.
219
- - Anti-pattern: high-cardinality labels (per-user, per-trace-id). You'll explode your TSDB.
220
-
221
- **Logs:** *discrete events with context.*
222
- - Structured (\`{ event: "user.signed_in", user_id: "...", ip: "..." }\`).
223
- - Tells you *what happened* in narrative form.
224
- - Expensive to store, slow to query at scale.
225
- - Use for: post-hoc forensics, audit trails, errors.
226
- - Anti-pattern: \`console.log("got here")\`. If it's not structured and queryable, it's noise.
227
-
228
- **Traces:** *the causal graph of one request.*
229
- - Per-request, hierarchical, with timing.
230
- - Tells you *why* a request was slow or failed.
231
- - Storage is heaviest of the three, but you can sample.
232
- - Use for: latency debugging, distributed call tracing.
233
- - Anti-pattern: not propagating trace context. A trace that doesn't span service boundaries is half-blind.
234
-
235
- **The convergence:** modern observability is collapsing this. Logs become trace events. Metrics get derived from spans. OpenTelemetry is the unification — pick it, even if you're vendor-agnostic.`},{user:`We have a circular dependency between two services. They both need data from each other. How do I untangle this?`,assistant:`Circular dependencies between services are almost always **a missing third concept**.
236
-
237
- **The classic pattern:**
238
-
239
- \`\`\`
240
- Orders ↔ Inventory
241
- \`\`\`
242
-
243
- Orders needs to check stock; Inventory needs to know what's pending. Tempting fix: have them call each other. Bad.
244
-
245
- **The fix: introduce a third thing.**
246
-
247
- Often it's an event:
248
- - \`OrderPlaced\` event published by Orders.
249
- - Inventory subscribes, decrements stock asynchronously, publishes \`StockReserved\` (or \`StockUnavailable\`).
250
- - Orders listens for the response.
251
-
252
- Now neither service depends on the other; both depend on the event bus.
253
-
254
- **Or it's a missing aggregate:**
255
- - A "Reservation" entity that owns the cross-cutting state. Both Orders and Inventory read from it; only Reservations writes.
256
-
257
- **Or you've split too early.** If neither extraction (event bus, new aggregate) feels natural, that's a sign the two services should be **one service**. Splitting was wrong; merge them and revisit when the boundary is actually clear.
258
-
259
- **What I would NOT do:**
260
- - Synchronous bidirectional HTTP calls. You'll get distributed deadlocks and cascading failures.
261
- - A "shared library" with both services' types. That's hidden coupling — change one, redeploy both.`},{user:`Should I be using Zustand, Redux Toolkit, or just useState/useContext for our React app?`,assistant:`Default to **useState + props**. Add libraries when you actually feel pain.
262
-
263
- **My order of escalation:**
264
-
265
- 1. **\`useState\` + props.** Works for 80% of components.
266
- 2. **\`useReducer\`** when state transitions get complex within one component.
267
- 3. **\`useContext\`** for cross-cutting concerns (theme, current user). Keep the value stable to avoid re-render storms.
268
- 4. **Zustand** when state is genuinely shared across the tree and you want the DX of \`useStore(selector)\`. Lightweight, no provider boilerplate.
269
- 5. **Redux Toolkit** when you need time-travel debugging, complex middleware, or your team already knows it deeply.
270
-
271
- **The mistake I see most:** reaching for a state library on day 1 because every tutorial does. Then 90% of state is local UI state that didn't need a global store, and your codebase has 200 actions/reducers for trivial toggles.
272
-
273
- **For server state (API data), use a server-state library.** TanStack Query (React Query) or SWR. Don't reinvent caching/refetching/staleness in your global state. This is the single biggest leverage point in modern React apps.
274
-
275
- **Short answer for most teams:** TanStack Query for server state, useState/Context for UI state, Zustand only when those break down.`},{user:`I keep hearing 'event sourcing' thrown around. Is it actually useful or is it the new microservices?`,assistant:`It's *useful* — and *very often misapplied*. The honest answer is: most systems don't need it.
276
-
277
- **When event sourcing genuinely shines:**
278
- - Domains where the **history** of changes is itself valuable: accounting, audit-heavy industries, gaming, complex workflows.
279
- - Systems where you'll want to derive *new* views from old data later (CQRS read models you didn't anticipate).
280
- - High-write systems where appending is faster than updating in place.
281
-
282
- **When it's overkill:**
283
- - CRUD apps where you only ever care about current state.
284
- - Anything with simple aggregate boundaries and low concurrency.
285
- - Teams that don't already have the operational maturity to run a streaming pipeline.
286
-
287
- **The hidden costs:**
288
- - Schema evolution is *hard*. Old events live forever; you must keep readers backward-compatible.
289
- - Replay performance becomes a thing you need to engineer.
290
- - "Eventually consistent" reads from projections will trip up devs who expect SQL semantics.
291
-
292
- **A pragmatic middle ground:** event-driven architecture *without* event sourcing. Publish events for cross-service communication and audit trails, but keep your local state as a regular SQL table. You get most of the upside without the schema-evolution hell.`},{user:`How do I structure a Postgres schema for multi-tenant SaaS? Shared DB with tenant_id, or schema-per-tenant?`,assistant:`**Shared DB with \`tenant_id\` on every row.** Schema-per-tenant is appealing in theory, brutal in practice.
293
-
294
- **Why shared DB wins:**
295
- - Migrations run *once*, not N times. At 1000 tenants, schema-per-tenant migrations take hours.
296
- - Cross-tenant queries (analytics, admin tooling) are trivial — just leave off the tenant_id filter.
297
- - Connection pool sanity. One pool, not N.
298
- - Cost — one DB, not N.
299
-
300
- **The non-negotiables when you do this:**
301
- 1. **Every tenant-scoped table has a NOT NULL \`tenant_id\` column.**
302
- 2. **Every index that's not unique starts with \`tenant_id\`.** Otherwise queries scan across tenants.
303
- 3. **Row-level security (RLS) policies** OR a middleware that **always** appends \`WHERE tenant_id = $current\`. Belt and suspenders.
304
- 4. **A query without \`tenant_id\` should be impossible to run accidentally** — fail loudly in dev, in tests, in code review.
305
-
306
- **When schema-per-tenant *is* right:**
307
- - Hard regulatory isolation (HIPAA, certain financial compliance regimes).
308
- - A small number of very large tenants where the per-tenant data is genuinely huge.
309
- - You're building a hosting product where each tenant should look like its own DB to its users.
310
-
311
- For a typical B2B SaaS with 100s–10,000s of tenants? Shared DB. Don't even think about it.`},{user:`What's your approach to error handling in TypeScript? try/catch everywhere, Result types, or just let it crash?`,assistant:`Layered. Different layers of the codebase deserve different strategies.
312
-
313
- **At system boundaries (HTTP handlers, queue workers, CLI entry points):**
314
- - One global try/catch. Translate any thrown error into the right response (HTTP 500, retry-with-backoff, exit code).
315
- - Log the full error with context.
316
- - Don't try to be clever per-handler.
317
-
318
- **In service layer business logic:**
319
- - **Throw typed errors** for expected failure modes:
320
- \`\`\`ts
321
- throw new OrderNotFoundError({ orderId });
322
- throw new InsufficientStockError({ productId, available, requested });
323
- \`\`\`
324
- - Don't swallow them locally unless you have a real recovery strategy.
325
- - The boundary handler decides how to map them.
326
-
327
- **In utility/pure functions:**
328
- - Result types (\`{ ok: true, value } | { ok: false, error }\`) for things where failure is *expected and common* — parsing, validation. The caller is forced to handle both branches.
329
-
330
- **What I avoid:**
331
- - \`try/catch\` around every async call "to be safe." You're just hiding errors.
332
- - Generic \`Error\` everywhere. \`error.message.includes("not found")\` is a code smell.
333
- - Returning \`null\` for "not found" *and* throwing for "DB exploded." Pick a discipline.
334
-
335
- **The deepest principle:** errors are part of your API. Type them. Document them. Test them. They are not a leftover concern.`},{user:`We're picking between server components, SPA, and SSR with hydration. What's your default in 2026?`,assistant:`**Server components for content-heavy pages, SPA-style islands for interactive bits.** Hybrid wins for most products.
336
-
337
- **My rules:**
338
-
339
- - **Pages where the user reads stuff** (marketing, docs, dashboards mostly viewed): server-render. Ship as little JS as possible. RSC (React Server Components) is the cleanest model when you're already on React.
340
- - **Pages with rich interaction** (editors, builders, design tools): SPA-style. Hydration cost is fine because the user will spend 10+ minutes there.
341
- - **The boundary between them:** "islands" or RSC's client components. Server-render the shell, hydrate only what's interactive.
342
-
343
- **Avoid these traps:**
344
- - *Full SPA for marketing/docs.* You'll lose SEO and your initial load will suck.
345
- - *Full SSR with hydration on a complex app.* Hydration mismatches will haunt you forever.
346
- - *Migrating an existing SPA to RSC just because it's cool.* The migration is real work; do it for a real reason.
347
-
348
- **The honest take:** for most products in 2026, Next.js with the App Router (RSC + client components) is the path of least resistance. Astro is excellent for content sites. Remix/React Router 7 is a tasteful middle ground if you don't want full RSC.`},{user:`How do you balance shipping fast vs writing tests? My CTO wants both.`,assistant:`Your CTO is right — these aren't actually in conflict at the level people pretend.
349
-
350
- **The real tension is:** writing tests *after* the code, defensively, vs. writing tests *as part of* the design.
351
-
352
- **Tests written after, defensively:**
353
- - Slow you down because you're now reverse-engineering what your code does.
354
- - Are usually weak (assert what you wrote, not what you wanted).
355
- - Get skipped under pressure → coverage erodes.
356
-
357
- **Tests as part of the design:**
358
- - Force you to clarify the contract before/while implementing.
359
- - Surface bad APIs *before* you've spread them through the codebase.
360
- - Don't slow you down on net — they pay back within the same PR via faster feedback.
361
-
362
- **My pragmatic stance:**
363
- 1. **Always test the contract** of any function/service that has a non-trivial signature.
364
- 2. **Always test the failure modes** of anything touching money, auth, or state mutation.
365
- 3. **Don't test trivial glue code.** A controller that just calls \`service.x()\` and returns it doesn't need a test of its own — test the service.
366
- 4. **Snapshot tests are usually noise.** They catch unintended diffs but don't tell you what's wrong.
367
- 5. **Integration tests > unit tests** for most product code. Test through one layer of fakery, not five.
368
-
369
- When in doubt: write the test that would have caught the most embarrassing bug your team has shipped recently.`},{user:`Can you walk me through how to debug a memory leak in Node.js?`,assistant:`Memory leaks in Node usually fall into three buckets. Identify the bucket first.
370
-
371
- **Bucket 1: classic JS object leaks** (most common).
372
- - Symptoms: heap grows monotonically over hours/days.
373
- - Tool: \`--inspect\` + Chrome DevTools → Memory tab → take heap snapshots, compare them.
374
- - Look for: unexpectedly large arrays/maps. The "Comparison" view shows you what's been added between snapshots.
375
- - Common causes: caches without eviction, event listeners never removed, closures holding references.
376
-
377
- **Bucket 2: native memory leaks** (rare but nasty).
378
- - Symptoms: RSS grows but heap is stable.
379
- - Tool: \`node --max-old-space-size\` won't help. Look at native modules.
380
- - Common causes: a buggy native module (sharp, canvas, libvips bindings). Or you're allocating big Buffers and they're not being GC'd because they're "external" memory.
381
-
382
- **Bucket 3: it's not actually a leak** — it's just behavior.
383
- - Symptoms: heap grows under load, levels off, or grows then drops back down.
384
- - Likely cause: you're holding more state under load. Not a leak, just normal.
385
- - Test: stop the load, wait, force GC. If heap drops, no leak.
386
-
387
- **Practical workflow:**
388
- 1. Reproduce on a long-running test. Don't try to debug ephemeral spikes.
389
- 2. Take 3 heap snapshots: at start, after warm-up, after suspected leak.
390
- 3. Diff them. Sort by retained size, look at the top 5.
391
- 4. Trace the retainer path — what's holding the leaked object alive?
392
-
393
- The hardest leaks are global Maps used as caches. Always set a max size or TTL.`},{user:`What's your take on AI coding assistants? Should I be using Cursor, Copilot, Claude Code daily?`,assistant:`Yes — but **as a force multiplier, not a thinking replacement**.
394
-
395
- **Where they're great:**
396
- - *Boilerplate* you already know how to write but don't want to type. Building Zod schemas, mapping DTOs, writing test scaffolds.
397
- - *Refactors* that are repetitive across many files. "Rename this throughout, also update the imports."
398
- - *Exploring an unfamiliar codebase.* "Where is X handled? Walk me through the call graph."
399
- - *Documentation lookup.* Faster than tabbing to MDN/docs.
400
-
401
- **Where they bite you:**
402
- - *Architecture decisions.* They'll happily generate a coherent-looking solution that's the wrong shape for your codebase. They have no skin in the game.
403
- - *Subtle correctness.* Concurrency, transactions, security. They'll give you something that compiles and seems right but has a race condition.
404
- - *Domain knowledge that lives in your team's heads.* They don't know that this customer hates feature X or that we deprecated approach Y last quarter.
405
-
406
- **My discipline:**
407
- - Always read what they generated. *Always.* If you can't explain it, you can't merge it.
408
- - Use them to draft, not to finalize. Treat their output as a starting point, not a deliverable.
409
- - Be especially skeptical of confident assertions about libraries/APIs. They hallucinate plausible-sounding APIs.
410
-
411
- **The meta-skill:** knowing what to *ask* matters more than ever. The bottleneck shifts from "write the code" to "frame the problem clearly." Get good at that.`},{user:`How would you architect rate limiting for our public API? We're seeing abuse from a few accounts.`,assistant:`Multi-layered, with **sliding window** for fairness and **token bucket** for burst tolerance.
412
-
413
- **Layer 1: Edge / CDN.**
414
- - Cloudflare or AWS WAF. Block obvious abuse (single IP at 10k req/s, known bad UAs).
415
- - This is your DDoS layer. Don't try to DIY it.
416
-
417
- **Layer 2: Per-API-key application layer.**
418
- - Token bucket per (api_key, endpoint_class). Common pattern:
419
- - Read endpoints: 100 req/s, 1000 burst.
420
- - Write endpoints: 10 req/s, 50 burst.
421
- - Expensive endpoints (search, exports): 1 req/s, 5 burst.
422
- - Storage: Redis with Lua scripts for atomic check-and-decrement.
423
- \`\`\`lua
424
- local current = redis.call("GET", key) or 0
425
- if tonumber(current) >= limit then return 0 end
426
- redis.call("INCR", key)
427
- redis.call("EXPIRE", key, window)
428
- return 1
429
- \`\`\`
430
-
431
- **Layer 3: Per-account fairness.**
432
- - Even within a key's quota, prevent one tenant from starving others if they share infra.
433
- - Usually a fair-queue or priority lane in your job system.
434
-
435
- **The UX bits people skip:**
436
- - **Return \`Retry-After\` headers** on 429. Be a good citizen.
437
- - **Surface usage in the dashboard.** "You used 87% of your quota this hour." Stops users from being surprised.
438
- - **Tiered limits by plan.** Free tier gets the abuse-prevention floor; paid tiers get real limits.
439
-
440
- **The trap to avoid:** counting locally per-server. With N servers and a 100/min limit, you're allowing 100×N. Always centralize the counter (Redis, DynamoDB) or accept ~25% slop.`},{user:`We're rolling out a major refactor. How do we minimize the risk of breaking production?`,assistant:`Three principles. They sound boring; they save your career.
441
-
442
- **1. Ship behind a flag, with the old code path still live.**
443
- - Refactored code path enabled for: 0% → internal users → 1% → 10% → 50% → 100%.
444
- - Both paths run in parallel during overlap. Compare outputs in dogfooding.
445
- - Be ruthless about deleting the old path once the new one is at 100% for 2+ weeks. Stale "fallback" code rots fast.
446
-
447
- **2. Make it observable from day one.**
448
- - Add metrics for both paths: latency, error rate, key business metrics.
449
- - Diff dashboards: old vs new, side-by-side, same scale.
450
- - Set alerts on regressions *before* you flip the flag, not after.
451
-
452
- **3. Do the refactor in a series of safe, mergeable commits — not one giant PR.**
453
- - Each commit should be deployable independently. If the giant final cutover breaks, you can bisect.
454
- - Parallel implementations live together for weeks. That's fine. It's *better* than a 10k-line monolithic PR.
455
-
456
- **The single most underrated technique:** *shadow traffic*. Run the new code path on real production requests but discard its result; only log timings/errors. You get production-realistic load data with zero user impact. Most teams have never tried this. It's transformative for high-stakes refactors.`},{user:`What's an underrated engineering practice you wish more teams adopted?`,assistant:`**Postmortems for non-incidents.**
457
-
458
- Everyone writes a postmortem when prod goes down. Almost no one writes one when:
459
- - A deploy *almost* went badly but caught itself.
460
- - A migration was harder than expected and ran 4× over budget.
461
- - A feature shipped on time but no one uses it.
462
- - A library upgrade took two weeks of unexpected work.
463
-
464
- These are the same root causes that *will* eventually cause an outage — but the team learns nothing because nothing burned down.
465
-
466
- **The format I like:**
467
- - *What happened?* (1 paragraph, factual.)
468
- - *What did we expect to happen?* (Forces you to surface the assumption.)
469
- - *Why did the gap happen?* (Five whys, but stop when it gets dumb.)
470
- - *What would catch this earlier next time?* (Concrete, not vague.)
471
- - *What are we changing?* (One or two things, owned by a person, with a date.)
472
-
473
- **The discipline part:** these go in a doc, get reviewed in a regular meeting, and the team revisits "what we said we'd change" the following month. Otherwise it's theater.
474
-
475
- The teams that do this consistently improve at a rate that's almost embarrassing compared to teams that don't. It's the highest-leverage process change I know.`}],Pt=`conv-${Math.floor(Math.random()*1e6)}`,Ft=`user-fake-conversation`;function It(e){let t=Math.max(1,Math.min(e.turnCount,200)),n=e.threadId??Pt,r=e.userId??Ft,i=e.model??`gpt-4o`,a=e.serviceName??`fake-conversation`,o=[{role:`system`,content:Mt}],s=[];for(let e=0;e<t;e++){let t=Nt[e%Nt.length],c={role:`user`,content:t.user},l={role:`assistant`,content:t.assistant},u=[...o,c],d=Lt(u.map(e=>e.content).join(`
476
- `)),f=Lt(t.assistant),p={id:R(),name:`turn-${e+1}`,type:`llm`,durationMs:600+Math.floor(Math.random()*1200),offsetMs:0,status:`ok`,children:[],attributes:{"conversation.turn":e+1,"conversation.thread_id":n},llm:{requestModel:i,messages:[...u,l],temperature:.4,metrics:{promptTokens:d,completionTokens:f,cost:Rt(d,f,i)}},input:{type:`chat_messages`,value:u},output:{type:`text`,value:t.assistant}};s.push({id:R(),name:`Conversation Turn ${e+1}`,resourceAttributes:{"service.name":a},metadata:{userId:r,threadId:n,labels:[`fake-conversation`,`demo`]},spans:[p]}),o.push(c,l)}return s}function Lt(e){return Math.max(1,Math.round(e.length/4))}function Rt(e,t,n){let r=n.includes(`mini`)?.15:2.5,i=n.includes(`mini`)?.6:10;return e/1e6*r+t/1e6*i}var zt=[10,25,50,100];function Bt(){let[e,t]=(0,H.useState)(!1),[r,i]=(0,H.useState)(25),[a,o]=(0,H.useState)(150),[d,p]=(0,H.useState)(!1),{project:h}=V(),g=I(e=>e.selectedApiKey)??h?.apiKey,{addLogEntry:_,updateLogEntry:v}=P();async function y(){if(!(!g||d)){p(!0),t(!1);try{let e=It({turnCount:r}),t=he({apiKey:g,endpoint:window.location.origin,projectId:h?.id,resourceAttributes:e[0]?.resourceAttributes});for(let n=0;n<e.length;n++){let r=`conv-${Date.now()}-${n}`;_({id:r,traceId:r,timestamp:Date.now(),status:`pending`});try{v(r,{status:`success`,traceId:await t.executeTrace(e[n])})}catch(e){v(r,{status:`error`,error:e instanceof Error?e.message:`Send failed`})}a>0&&n<e.length-1&&await new Promise(e=>setTimeout(e,a))}}finally{p(!1)}}}return(0,U.jsxs)(f,{open:e,onOpenChange:e=>t(e.open),positioning:{placement:`bottom-end`},children:[(0,U.jsx)(m,{asChild:!0,children:(0,U.jsxs)(n,{size:`xs`,variant:`outline`,loading:d,loadingText:`Sending…`,disabled:!g,children:[(0,U.jsx)(de,{size:14}),`Fake conversation`]})}),(0,U.jsx)(l,{width:`320px`,children:(0,U.jsxs)(u,{p:4,children:[(0,U.jsx)(c,{fontSize:`sm`,fontWeight:`semibold`,color:`fg.default`,mb:1,children:`Send a fake conversation`}),(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,mb:3,children:`Each turn is its own trace, sharing a thread ID. Input grows with the chat history; output is the latest assistant reply.`}),(0,U.jsxs)(j,{gap:4,align:`stretch`,children:[(0,U.jsxs)(s,{children:[(0,U.jsxs)(T,{justify:`space-between`,mb:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`Number of turns`}),(0,U.jsx)(c,{fontSize:`xs`,fontFamily:`mono`,color:`fg.default`,children:r})]}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:r,onChange:e=>i(Math.max(1,Math.min(200,parseInt(e.target.value)||1))),min:1,max:200}),(0,U.jsx)(E,{gap:1,mt:1,children:zt.map(e=>(0,U.jsx)(n,{size:`xs`,variant:r===e?`solid`:`ghost`,colorPalette:r===e?`orange`:void 0,onClick:()=>i(e),flex:1,textStyle:`2xs`,children:e},e))})]}),(0,U.jsxs)(s,{children:[(0,U.jsxs)(T,{justify:`space-between`,mb:1,children:[(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`Stagger between turns (ms)`}),(0,U.jsx)(c,{fontSize:`xs`,fontFamily:`mono`,color:`fg.default`,children:a})]}),(0,U.jsx)(z,{size:`sm`,type:`number`,value:a,onChange:e=>o(Math.max(0,parseInt(e.target.value)||0)),min:0,step:50})]}),(0,U.jsxs)(n,{size:`sm`,colorPalette:`orange`,onClick:y,w:`full`,disabled:!g,children:[(0,U.jsx)(de,{size:14}),`Send `,r,` turns`]}),!g&&(0,U.jsx)(c,{fontSize:`xs`,color:`fg.muted`,children:`Navigate to a project first.`})]})]})})]})}var Vt=[`Warming up the flux capacitor...`,`Calibrating span generators...`,`Untangling distributed traces...`,`Teaching spans about their parents...`,`Inflating token counts for drama...`,`Reticulating splines (the OTel ones)...`,`Asking the LLM to be patient...`];function Ht(){let[e]=(0,H.useState)(()=>Vt[Math.floor(Math.random()*Vt.length)]);return(0,U.jsx)(ve,{h:`full`,children:(0,U.jsxs)(j,{gap:3,children:[(0,U.jsx)(c,{fontSize:`lg`,fontWeight:`semibold`,color:`fg.default`,children:`The Foundry`}),(0,U.jsx)(c,{fontSize:`sm`,color:`fg.muted`,fontStyle:`italic`,children:e})]})})}function Ut(){let e=N(e=>e.resetTrace),[t,r]=(0,H.useState)(!1);return(0,H.useEffect)(()=>{r(!0)},[]),(0,U.jsx)(De,{children:(0,U.jsxs)(ce,{children:[(0,U.jsx)(re.Header,{children:(0,U.jsxs)(T,{align:`center`,justify:`space-between`,w:`full`,children:[(0,U.jsx)(re.Heading,{children:`The Foundry`}),(0,U.jsxs)(E,{gap:2,children:[(0,U.jsx)(Bt,{}),(0,U.jsx)(jt,{}),(0,U.jsx)(ft,{}),(0,U.jsxs)(n,{size:`xs`,variant:`outline`,onClick:e,children:[(0,U.jsx)(a,{size:14}),`Reset`]})]})]})}),(0,U.jsx)(s,{height:`calc(100vh - 56px - 48px)`,w:`full`,overflow:`hidden`,borderTopLeftRadius:`inherit`,children:t?(0,U.jsx)(st,{}):(0,U.jsx)(Ht,{})})]})})}export{Ut as default};
477
- //# sourceMappingURL=foundry-DdJynGEa.js.map
@@ -1,2 +0,0 @@
1
- import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{t as n}from"./AiGatewayLayout-B5Q-EfZV.js";import{r}from"./next-router-Bn5Y8Iek.js";import{t as i}from"./WithPermissionGuard-BP1dFkpM.js";var a=e(t());function o(){let e=r();return(0,a.useEffect)(()=>{e.replace(`/settings/gateway/virtual-keys`)},[e]),null}var s=i(`virtualKeys:view`,{layoutComponent:n})(o);export{s as default};
2
- //# sourceMappingURL=gateway-BvjtD98W.js.map
@@ -1,2 +0,0 @@
1
- import{A as e}from"./ExternalImage-DbtOSrKl.js";import{t}from"./evaluators-CKOs_qOx.js";var n=e=>{for(let[n,r]of Object.entries(t))if(n===e)return r},r=(t,n)=>t?Object.fromEntries(Object.entries(t.settings).map(([t,r])=>t===`model`?[t,n?.defaultModel??e]:t===`embeddings_model`?[t,n?.embeddingsModel??`openai/text-embedding-3-small`]:[t,r.default])):{};export{n,r as t};
2
- //# sourceMappingURL=getEvaluator-OH0w_5fd.js.map