@burdenoff/microfe-labsofscience 2026.1014.1 → 2026.1110.1

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 (337) hide show
  1. package/dist/generated/global-operations.d.ts +0 -1
  2. package/dist/generated/global-types.d.ts +0 -1
  3. package/dist/generated/wspace-operations.d.ts +0 -1
  4. package/dist/generated/wspace-types.d.ts +0 -1
  5. package/dist/index.d.ts +0 -1
  6. package/dist/labsofscience/LabsOfScienceRoot.d.ts +0 -2
  7. package/dist/labsofscience/LabsOfScienceRoot.js +2 -3
  8. package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
  9. package/dist/labsofscience/LabsOfScienceRoutes.d.ts +0 -2
  10. package/dist/labsofscience/LabsOfScienceRoutes.js +1 -2
  11. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  12. package/dist/labsofscience/components/BottomNav.d.ts +0 -2
  13. package/dist/labsofscience/components/BottomNav.js +8 -9
  14. package/dist/labsofscience/components/BottomNav.js.map +1 -1
  15. package/dist/labsofscience/components/DiscussionPanel.d.ts +1 -2
  16. package/dist/labsofscience/components/DiscussionPanel.js +4 -4
  17. package/dist/labsofscience/components/DiscussionPanel.js.map +1 -1
  18. package/dist/labsofscience/components/EmptyState.d.ts +0 -2
  19. package/dist/labsofscience/components/EmptyState.js +1 -2
  20. package/dist/labsofscience/components/EmptyState.js.map +1 -1
  21. package/dist/labsofscience/components/FileAttachment.d.ts +0 -2
  22. package/dist/labsofscience/components/FileAttachment.js +1 -2
  23. package/dist/labsofscience/components/FileAttachment.js.map +1 -1
  24. package/dist/labsofscience/components/FileUploadField.d.ts +0 -2
  25. package/dist/labsofscience/components/FileUploadField.js +1 -2
  26. package/dist/labsofscience/components/FileUploadField.js.map +1 -1
  27. package/dist/labsofscience/components/ListSearchInput.d.ts +0 -2
  28. package/dist/labsofscience/components/ListSearchInput.js +1 -2
  29. package/dist/labsofscience/components/ListSearchInput.js.map +1 -1
  30. package/dist/labsofscience/components/MetricsCard.d.ts +0 -2
  31. package/dist/labsofscience/components/MetricsCard.js +1 -2
  32. package/dist/labsofscience/components/MetricsCard.js.map +1 -1
  33. package/dist/labsofscience/components/PageLayout.d.ts +0 -2
  34. package/dist/labsofscience/components/PageLayout.js +1 -2
  35. package/dist/labsofscience/components/PageLayout.js.map +1 -1
  36. package/dist/labsofscience/components/ProvenanceChain.d.ts +1 -3
  37. package/dist/labsofscience/components/ProvenanceChain.js +1 -2
  38. package/dist/labsofscience/components/ProvenanceChain.js.map +1 -1
  39. package/dist/labsofscience/components/ProvenancePanel.d.ts +1 -3
  40. package/dist/labsofscience/components/ProvenancePanel.js +11 -12
  41. package/dist/labsofscience/components/ProvenancePanel.js.map +1 -1
  42. package/dist/labsofscience/components/QueryStates.d.ts +0 -2
  43. package/dist/labsofscience/components/QueryStates.js +12 -6
  44. package/dist/labsofscience/components/QueryStates.js.map +1 -1
  45. package/dist/labsofscience/components/StatusBadge.d.ts +0 -2
  46. package/dist/labsofscience/components/StatusBadge.js +1 -2
  47. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  48. package/dist/labsofscience/components/index.d.ts +0 -1
  49. package/dist/labsofscience/components/provenanceMapping.d.ts +0 -2
  50. package/dist/labsofscience/components/provenanceMapping.js +1 -2
  51. package/dist/labsofscience/components/provenanceMapping.js.map +1 -1
  52. package/dist/labsofscience/context/LabsOfScienceContext.d.ts +0 -2
  53. package/dist/labsofscience/context/LabsOfScienceContext.js +1 -2
  54. package/dist/labsofscience/context/LabsOfScienceContext.js.map +1 -1
  55. package/dist/labsofscience/context/index.d.ts +0 -1
  56. package/dist/labsofscience/context/index.js +1 -2
  57. package/dist/labsofscience/hooks/index.d.ts +1 -2
  58. package/dist/labsofscience/hooks/useLabActorNames.d.ts +0 -2
  59. package/dist/labsofscience/hooks/useLabActorNames.js +4 -5
  60. package/dist/labsofscience/hooks/useLabActorNames.js.map +1 -1
  61. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts +47 -28
  62. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +485 -448
  63. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  64. package/dist/labsofscience/hooks/useTr.d.ts +0 -1
  65. package/dist/labsofscience/hooks/useTr.js +1 -2
  66. package/dist/labsofscience/hooks/useTr.js.map +1 -1
  67. package/dist/labsofscience/index.d.ts +0 -1
  68. package/dist/labsofscience/index.js +3 -3
  69. package/dist/labsofscience/legal/aiTerms.d.ts +35 -0
  70. package/dist/labsofscience/legal/aiTerms.js +24 -0
  71. package/dist/labsofscience/legal/aiTerms.js.map +1 -0
  72. package/dist/labsofscience/pages/OverviewPage.d.ts +1 -2
  73. package/dist/labsofscience/pages/OverviewPage.js +60 -61
  74. package/dist/labsofscience/pages/OverviewPage.js.map +1 -1
  75. package/dist/labsofscience/pages/ai/AiDialogs.d.ts +3 -5
  76. package/dist/labsofscience/pages/ai/AiDialogs.js +217 -220
  77. package/dist/labsofscience/pages/ai/AiDialogs.js.map +1 -1
  78. package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts +0 -2
  79. package/dist/labsofscience/pages/ai/AiErrorNotice.js +14 -15
  80. package/dist/labsofscience/pages/ai/AiErrorNotice.js.map +1 -1
  81. package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts +1 -2
  82. package/dist/labsofscience/pages/ai/AiOperationsPage.js +27 -28
  83. package/dist/labsofscience/pages/ai/AiOperationsPage.js.map +1 -1
  84. package/dist/labsofscience/pages/ai/AiTermsGate.d.ts +6 -0
  85. package/dist/labsofscience/pages/ai/AiTermsGate.js +68 -0
  86. package/dist/labsofscience/pages/ai/AiTermsGate.js.map +1 -0
  87. package/dist/labsofscience/pages/ai/DecisionCard.d.ts +0 -2
  88. package/dist/labsofscience/pages/ai/DecisionCard.js +1 -2
  89. package/dist/labsofscience/pages/ai/DecisionCard.js.map +1 -1
  90. package/dist/labsofscience/pages/ai/ModelSettings.d.ts +1 -2
  91. package/dist/labsofscience/pages/ai/ModelSettings.js +1 -2
  92. package/dist/labsofscience/pages/ai/ModelSettings.js.map +1 -1
  93. package/dist/labsofscience/pages/ai/aiReaders.d.ts +0 -2
  94. package/dist/labsofscience/pages/ai/aiReaders.js +1 -2
  95. package/dist/labsofscience/pages/ai/aiReaders.js.map +1 -1
  96. package/dist/labsofscience/pages/analytics/AnalyticsPage.d.ts +1 -2
  97. package/dist/labsofscience/pages/analytics/AnalyticsPage.js +1 -2
  98. package/dist/labsofscience/pages/analytics/AnalyticsPage.js.map +1 -1
  99. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.d.ts +1 -2
  100. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.js +1 -2
  101. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.js.map +1 -1
  102. package/dist/labsofscience/pages/datasets/DatasetDetailPage.d.ts +1 -2
  103. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +36 -37
  104. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -1
  105. package/dist/labsofscience/pages/datasets/DatasetFormDialog.d.ts +1 -3
  106. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +16 -18
  107. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -1
  108. package/dist/labsofscience/pages/datasets/DatasetsListPage.d.ts +1 -2
  109. package/dist/labsofscience/pages/datasets/DatasetsListPage.js +20 -21
  110. package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -1
  111. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.d.ts +1 -2
  112. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.js +1 -2
  113. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.js.map +1 -1
  114. package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.d.ts +1 -3
  115. package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.js +2 -3
  116. package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.js.map +1 -1
  117. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.d.ts +1 -2
  118. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.js +9 -10
  119. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.js.map +1 -1
  120. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.d.ts +1 -2
  121. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +44 -45
  122. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -1
  123. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.d.ts +1 -3
  124. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +1 -2
  125. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -1
  126. package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.d.ts +1 -3
  127. package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.js +7 -8
  128. package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.js.map +1 -1
  129. package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.d.ts +1 -2
  130. package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.js +4 -5
  131. package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.js.map +1 -1
  132. package/dist/labsofscience/pages/experiments/ExperimentRunProgress.d.ts +1 -3
  133. package/dist/labsofscience/pages/experiments/ExperimentRunProgress.js +12 -13
  134. package/dist/labsofscience/pages/experiments/ExperimentRunProgress.js.map +1 -1
  135. package/dist/labsofscience/pages/experiments/ExperimentsListPage.d.ts +1 -2
  136. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +22 -23
  137. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -1
  138. package/dist/labsofscience/pages/experiments/RunDialogs.d.ts +2 -4
  139. package/dist/labsofscience/pages/experiments/RunDialogs.js +13 -15
  140. package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -1
  141. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.d.ts +1 -2
  142. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.js +16 -21
  143. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.js.map +1 -1
  144. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.d.ts +1 -2
  145. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +15 -16
  146. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -1
  147. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.d.ts +1 -3
  148. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +1 -2
  149. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -1
  150. package/dist/labsofscience/pages/instruments/InstrumentsListPage.d.ts +1 -2
  151. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +19 -20
  152. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -1
  153. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.d.ts +1 -3
  154. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +16 -21
  155. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -1
  156. package/dist/labsofscience/pages/inventory/InventoryDetailPage.d.ts +1 -2
  157. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +15 -16
  158. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -1
  159. package/dist/labsofscience/pages/inventory/InventoryFormDialog.d.ts +1 -3
  160. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +5 -6
  161. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -1
  162. package/dist/labsofscience/pages/inventory/InventoryListPage.d.ts +1 -2
  163. package/dist/labsofscience/pages/inventory/InventoryListPage.js +23 -24
  164. package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -1
  165. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.d.ts +1 -2
  166. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js +46 -47
  167. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js.map +1 -1
  168. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.d.ts +1 -3
  169. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +22 -27
  170. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -1
  171. package/dist/labsofscience/pages/notebook/NotebookListPage.d.ts +1 -2
  172. package/dist/labsofscience/pages/notebook/NotebookListPage.js +29 -30
  173. package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -1
  174. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.d.ts +1 -3
  175. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +16 -18
  176. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -1
  177. package/dist/labsofscience/pages/pipelines/PipelinesPage.d.ts +1 -2
  178. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +66 -67
  179. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -1
  180. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.d.ts +1 -3
  181. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +14 -16
  182. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -1
  183. package/dist/labsofscience/pages/projects/ProjectDetailPage.d.ts +1 -2
  184. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +35 -36
  185. package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -1
  186. package/dist/labsofscience/pages/projects/ProjectFormDialog.d.ts +1 -3
  187. package/dist/labsofscience/pages/projects/ProjectFormDialog.js +1 -2
  188. package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -1
  189. package/dist/labsofscience/pages/projects/ProjectsListPage.d.ts +1 -2
  190. package/dist/labsofscience/pages/projects/ProjectsListPage.js +24 -25
  191. package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -1
  192. package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.d.ts +1 -2
  193. package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.js +1 -2
  194. package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.js.map +1 -1
  195. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.d.ts +1 -2
  196. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +17 -18
  197. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -1
  198. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.d.ts +1 -3
  199. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +1 -2
  200. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -1
  201. package/dist/labsofscience/pages/protocols/ProtocolsListPage.d.ts +1 -2
  202. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +19 -20
  203. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -1
  204. package/dist/labsofscience/pages/shared/DetailComponents.d.ts +0 -2
  205. package/dist/labsofscience/pages/shared/DetailComponents.js +1 -2
  206. package/dist/labsofscience/pages/shared/DetailComponents.js.map +1 -1
  207. package/dist/labsofscience/pages/shared/tags.d.ts +0 -1
  208. package/dist/labsofscience/pages/shared/tags.js +1 -2
  209. package/dist/labsofscience/pages/shared/tags.js.map +1 -1
  210. package/dist/labsofscience/store/index.d.ts +0 -1
  211. package/dist/labsofscience/store/index.js +1 -2
  212. package/dist/labsofscience/store/labsofscienceStore.d.ts +1 -2
  213. package/dist/labsofscience/store/labsofscienceStore.js +1 -2
  214. package/dist/labsofscience/store/labsofscienceStore.js.map +1 -1
  215. package/dist/labsofscience/types/index.d.ts +0 -2
  216. package/dist/labsofscience/utils/cn.d.ts +0 -2
  217. package/dist/labsofscience/utils/cn.js +1 -2
  218. package/dist/labsofscience/utils/cn.js.map +1 -1
  219. package/dist/labsofscience/utils/formatters.d.ts +0 -1
  220. package/dist/labsofscience/utils/formatters.js +1 -2
  221. package/dist/labsofscience/utils/formatters.js.map +1 -1
  222. package/dist/labsofscience/utils/index.d.ts +0 -1
  223. package/dist/labsofscience/utils/navigation.d.ts +0 -1
  224. package/dist/labsofscience/utils/navigation.js +1 -2
  225. package/dist/labsofscience/utils/navigation.js.map +1 -1
  226. package/dist/labsofscience/utils/uploadFile.d.ts +1 -2
  227. package/dist/labsofscience/utils/uploadFile.js +2 -3
  228. package/dist/labsofscience/utils/uploadFile.js.map +1 -1
  229. package/dist/labsofscience/utils/useDebouncedValue.d.ts +0 -1
  230. package/dist/labsofscience/utils/useDebouncedValue.js +1 -2
  231. package/dist/labsofscience/utils/useDebouncedValue.js.map +1 -1
  232. package/dist/node_modules/clsx/dist/clsx.js +7 -6
  233. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  234. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +100 -38
  235. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  236. package/dist/services/createSandboxAssistantTransport.d.ts +0 -1
  237. package/dist/services/createSandboxAssistantTransport.js +1 -2
  238. package/dist/services/createSandboxAssistantTransport.js.map +1 -1
  239. package/dist/stories/EmptyState.stories.d.ts +0 -2
  240. package/dist/stories/MetricsCard.stories.d.ts +0 -2
  241. package/dist/stories/StatusBadge.stories.d.ts +0 -2
  242. package/dist/test/happydom.d.ts +1 -0
  243. package/dist/types/assistant.d.ts +0 -1
  244. package/dist/utils/pageContext.d.ts +0 -1
  245. package/dist/utils/pageContext.js +2 -3
  246. package/dist/utils/pageContext.js.map +1 -1
  247. package/package.json +82 -60
  248. package/dist/generated/global-operations.d.ts.map +0 -1
  249. package/dist/generated/global-types.d.ts.map +0 -1
  250. package/dist/generated/wspace-operations.d.ts.map +0 -1
  251. package/dist/generated/wspace-types.d.ts.map +0 -1
  252. package/dist/index.d.ts.map +0 -1
  253. package/dist/labsofscience/LabsOfScienceRoot.d.ts.map +0 -1
  254. package/dist/labsofscience/LabsOfScienceRoutes.d.ts.map +0 -1
  255. package/dist/labsofscience/components/BottomNav.d.ts.map +0 -1
  256. package/dist/labsofscience/components/DiscussionPanel.d.ts.map +0 -1
  257. package/dist/labsofscience/components/EmptyState.d.ts.map +0 -1
  258. package/dist/labsofscience/components/FileAttachment.d.ts.map +0 -1
  259. package/dist/labsofscience/components/FileUploadField.d.ts.map +0 -1
  260. package/dist/labsofscience/components/ListSearchInput.d.ts.map +0 -1
  261. package/dist/labsofscience/components/MetricsCard.d.ts.map +0 -1
  262. package/dist/labsofscience/components/PageLayout.d.ts.map +0 -1
  263. package/dist/labsofscience/components/ProvenanceChain.d.ts.map +0 -1
  264. package/dist/labsofscience/components/ProvenancePanel.d.ts.map +0 -1
  265. package/dist/labsofscience/components/QueryStates.d.ts.map +0 -1
  266. package/dist/labsofscience/components/StatusBadge.d.ts.map +0 -1
  267. package/dist/labsofscience/components/index.d.ts.map +0 -1
  268. package/dist/labsofscience/components/provenanceMapping.d.ts.map +0 -1
  269. package/dist/labsofscience/context/LabsOfScienceContext.d.ts.map +0 -1
  270. package/dist/labsofscience/context/index.d.ts.map +0 -1
  271. package/dist/labsofscience/hooks/index.d.ts.map +0 -1
  272. package/dist/labsofscience/hooks/useLabActorNames.d.ts.map +0 -1
  273. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts.map +0 -1
  274. package/dist/labsofscience/hooks/useTr.d.ts.map +0 -1
  275. package/dist/labsofscience/index.d.ts.map +0 -1
  276. package/dist/labsofscience/pages/OverviewPage.d.ts.map +0 -1
  277. package/dist/labsofscience/pages/ai/AiDialogs.d.ts.map +0 -1
  278. package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts.map +0 -1
  279. package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts.map +0 -1
  280. package/dist/labsofscience/pages/ai/DecisionCard.d.ts.map +0 -1
  281. package/dist/labsofscience/pages/ai/ModelSettings.d.ts.map +0 -1
  282. package/dist/labsofscience/pages/ai/aiReaders.d.ts.map +0 -1
  283. package/dist/labsofscience/pages/analytics/AnalyticsPage.d.ts.map +0 -1
  284. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.d.ts.map +0 -1
  285. package/dist/labsofscience/pages/datasets/DatasetDetailPage.d.ts.map +0 -1
  286. package/dist/labsofscience/pages/datasets/DatasetFormDialog.d.ts.map +0 -1
  287. package/dist/labsofscience/pages/datasets/DatasetsListPage.d.ts.map +0 -1
  288. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.d.ts.map +0 -1
  289. package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.d.ts.map +0 -1
  290. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.d.ts.map +0 -1
  291. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.d.ts.map +0 -1
  292. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.d.ts.map +0 -1
  293. package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.d.ts.map +0 -1
  294. package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.d.ts.map +0 -1
  295. package/dist/labsofscience/pages/experiments/ExperimentRunProgress.d.ts.map +0 -1
  296. package/dist/labsofscience/pages/experiments/ExperimentsListPage.d.ts.map +0 -1
  297. package/dist/labsofscience/pages/experiments/RunDialogs.d.ts.map +0 -1
  298. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.d.ts.map +0 -1
  299. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.d.ts.map +0 -1
  300. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.d.ts.map +0 -1
  301. package/dist/labsofscience/pages/instruments/InstrumentsListPage.d.ts.map +0 -1
  302. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.d.ts.map +0 -1
  303. package/dist/labsofscience/pages/inventory/InventoryDetailPage.d.ts.map +0 -1
  304. package/dist/labsofscience/pages/inventory/InventoryFormDialog.d.ts.map +0 -1
  305. package/dist/labsofscience/pages/inventory/InventoryListPage.d.ts.map +0 -1
  306. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.d.ts.map +0 -1
  307. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.d.ts.map +0 -1
  308. package/dist/labsofscience/pages/notebook/NotebookListPage.d.ts.map +0 -1
  309. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.d.ts.map +0 -1
  310. package/dist/labsofscience/pages/pipelines/PipelinesPage.d.ts.map +0 -1
  311. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.d.ts.map +0 -1
  312. package/dist/labsofscience/pages/projects/ProjectDetailPage.d.ts.map +0 -1
  313. package/dist/labsofscience/pages/projects/ProjectFormDialog.d.ts.map +0 -1
  314. package/dist/labsofscience/pages/projects/ProjectsListPage.d.ts.map +0 -1
  315. package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.d.ts.map +0 -1
  316. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.d.ts.map +0 -1
  317. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.d.ts.map +0 -1
  318. package/dist/labsofscience/pages/protocols/ProtocolsListPage.d.ts.map +0 -1
  319. package/dist/labsofscience/pages/shared/DetailComponents.d.ts.map +0 -1
  320. package/dist/labsofscience/pages/shared/tags.d.ts.map +0 -1
  321. package/dist/labsofscience/store/index.d.ts.map +0 -1
  322. package/dist/labsofscience/store/labsofscienceStore.d.ts.map +0 -1
  323. package/dist/labsofscience/types/index.d.ts.map +0 -1
  324. package/dist/labsofscience/utils/cn.d.ts.map +0 -1
  325. package/dist/labsofscience/utils/formatters.d.ts.map +0 -1
  326. package/dist/labsofscience/utils/index.d.ts.map +0 -1
  327. package/dist/labsofscience/utils/navigation.d.ts.map +0 -1
  328. package/dist/labsofscience/utils/uploadFile.d.ts.map +0 -1
  329. package/dist/labsofscience/utils/useDebouncedValue.d.ts.map +0 -1
  330. package/dist/services/createSandboxAssistantTransport.d.ts.map +0 -1
  331. package/dist/stories/EmptyState.stories.d.ts.map +0 -1
  332. package/dist/stories/MetricsCard.stories.d.ts.map +0 -1
  333. package/dist/stories/StatusBadge.stories.d.ts.map +0 -1
  334. package/dist/test/setup.d.ts +0 -2
  335. package/dist/test/setup.d.ts.map +0 -1
  336. package/dist/types/assistant.d.ts.map +0 -1
  337. package/dist/utils/pageContext.d.ts.map +0 -1
@@ -3,97 +3,94 @@ import { useAiModelCatalog as t, useExperimentAiContext as n, useExperiments as
3
3
  import { titleCase as c } from "../../utils/formatters.js";
4
4
  import { JsonBlock as l } from "../shared/DetailComponents.js";
5
5
  import { AiErrorNotice as u } from "./AiErrorNotice.js";
6
- import { describeDecision as d, experimentIdOfRun as f, formatConfidence as p, readLastAiRecommendation as m } from "./aiReaders.js";
7
- import { useMemo as h, useState as g } from "react";
8
- import { ArrowRight as _, FileText as v, Sparkles as y } from "lucide-react";
9
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
10
- import { Button as C, Label as w, ResponsiveDialog as T, ResponsiveDialogContent as E, ResponsiveDialogDescription as D, ResponsiveDialogFooter as O, ResponsiveDialogHeader as k, ResponsiveDialogTitle as A, Select as j, SelectContent as M, SelectItem as N, SelectTrigger as P, SelectValue as F, Textarea as I } from "@burdenoff/fe-libs/ui";
11
- //#region src/labsofscience/pages/ai/AiDialogs.tsx
12
- var L = "WORKSPACE_DEFAULT", R = 100, z = [
6
+ import { AiTermsGate as d } from "./AiTermsGate.js";
7
+ import { describeDecision as f, experimentIdOfRun as p, formatConfidence as m, readLastAiRecommendation as h } from "./aiReaders.js";
8
+ import { useMemo as g, useState as _ } from "react";
9
+ import { ArrowRight as v, FileText as y, Sparkles as b } from "lucide-react";
10
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
11
+ import { Button as w, Label as T, ResponsiveDialog as E, ResponsiveDialogContent as D, ResponsiveDialogDescription as O, ResponsiveDialogFooter as k, ResponsiveDialogHeader as A, ResponsiveDialogTitle as j, Select as M, SelectContent as N, SelectItem as P, SelectTrigger as F, SelectValue as I, Textarea as L } from "@burdenoff/fe-libs/ui";
12
+ // src/labsofscience/pages/ai/AiDialogs.tsx
13
+ var R = "WORKSPACE_DEFAULT", z = 100, B = [
13
14
  "REPLICATE",
14
15
  "ADJUST_PARAMETERS",
15
16
  "ESCALATE_REVIEW",
16
17
  "CONCLUDE"
17
18
  ];
18
- function B({ id: e, value: n, onChange: r }) {
19
- let i = t(), a = h(() => [...new Set((i.data ?? []).map((e) => e.provider))], [i.data]);
20
- return /* @__PURE__ */ S("div", {
19
+ function V({ id: e, value: n, onChange: r }) {
20
+ let i = t(), a = g(() => [...new Set((i.data ?? []).map((e) => e.provider))], [i.data]);
21
+ return /* @__PURE__ */ C("div", {
21
22
  className: "space-y-1.5",
22
23
  children: [
23
- /* @__PURE__ */ x(w, {
24
+ /* @__PURE__ */ S(T, {
24
25
  htmlFor: e,
25
26
  children: "Provider (optional)"
26
27
  }),
27
- /* @__PURE__ */ S(j, {
28
+ /* @__PURE__ */ C(M, {
28
29
  value: n,
29
30
  onValueChange: r,
30
- children: [/* @__PURE__ */ x(P, {
31
+ children: [/* @__PURE__ */ S(F, {
31
32
  id: e,
32
- children: /* @__PURE__ */ x(F, {})
33
- }), /* @__PURE__ */ S(M, { children: [/* @__PURE__ */ x(N, {
34
- value: L,
33
+ children: /* @__PURE__ */ S(I, {})
34
+ }), /* @__PURE__ */ C(N, { children: [/* @__PURE__ */ S(P, {
35
+ value: R,
35
36
  children: "Workspace default"
36
- }), a.map((e) => /* @__PURE__ */ x(N, {
37
+ }), a.map((e) => /* @__PURE__ */ S(P, {
37
38
  value: e,
38
39
  children: c(e)
39
40
  }, e))] })]
40
41
  }),
41
- /* @__PURE__ */ x("p", {
42
+ /* @__PURE__ */ S("p", {
42
43
  className: "text-xs text-text-tertiary",
43
44
  children: "A named provider is tried first. If it has no key configured or refuses the call, the remaining catalog providers are still tried before the attempt is recorded as failed."
44
45
  })
45
46
  ]
46
47
  });
47
48
  }
48
- function V({ onClose: t, onViewProtocol: n }) {
49
+ function H({ onClose: t, onViewProtocol: n }) {
49
50
  let i = s(), o = a({ pagination: {
50
- limit: R,
51
+ limit: z,
51
52
  offset: 0
52
53
  } }), c = r({ pagination: {
53
- limit: R,
54
+ limit: z,
54
55
  offset: 0
55
- } }), [l, d] = g("project"), [f, p] = g(""), [m, h] = g(""), [_, T] = g(""), [E, z] = g(L), [V, H] = g(null), [U, W] = g(null), G = l === "project" ? (o.data?.items ?? []).map((e) => ({
56
+ } }), [l, d] = _("project"), [f, p] = _(""), [m, h] = _(""), [g, v] = _(""), [E, D] = _(R), [B, H] = _(null), [U, W] = _(null), G = l === "project" ? (o.data?.items ?? []).map((e) => ({
56
57
  id: e.id,
57
58
  label: e.name
58
59
  })) : (c.data?.items ?? []).map((e) => ({
59
60
  id: e.id,
60
61
  label: e.title
61
62
  })), K = async () => {
62
- if (!f) {
63
- H(`Choose a ${l} to design the method for.`);
64
- return;
63
+ if (!f) H(`Choose a ${l} to design the method for.`);
64
+ else if (!m.trim()) H("Describe what the method has to achieve.");
65
+ else {
66
+ H(null);
67
+ try {
68
+ let e = await i.mutateAsync({
69
+ projectId: l === "project" ? f : void 0,
70
+ experimentId: l === "experiment" ? f : void 0,
71
+ objective: m.trim(),
72
+ constraints: g.trim() || void 0,
73
+ requestedProvider: E === R ? void 0 : E
74
+ });
75
+ W(e);
76
+ } catch {}
65
77
  }
66
- if (!m.trim()) {
67
- H("Describe what the method has to achieve.");
68
- return;
69
- }
70
- H(null);
71
- try {
72
- let e = await i.mutateAsync({
73
- projectId: l === "project" ? f : void 0,
74
- experimentId: l === "experiment" ? f : void 0,
75
- objective: m.trim(),
76
- constraints: _.trim() || void 0,
77
- requestedProvider: E === L ? void 0 : E
78
- });
79
- W(e);
80
- } catch {}
81
78
  };
82
- return /* @__PURE__ */ S(b, { children: [
83
- /* @__PURE__ */ S(k, { children: [/* @__PURE__ */ x(A, { children: "Suggest a protocol" }), /* @__PURE__ */ x(D, { children: "The AI designs a reusable method and saves it as a draft protocol with ordered steps. You review and publish it — nothing is published for you." })] }),
84
- U ? /* @__PURE__ */ S("div", {
79
+ return /* @__PURE__ */ C(x, { children: [
80
+ /* @__PURE__ */ C(A, { children: [/* @__PURE__ */ S(j, { children: "Suggest a protocol" }), /* @__PURE__ */ S(O, { children: "The AI designs a reusable method and saves it as a draft protocol with ordered steps. You review and publish it — nothing is published for you." })] }),
81
+ U ? /* @__PURE__ */ C("div", {
85
82
  className: "space-y-4 py-2",
86
83
  children: [
87
- /* @__PURE__ */ S("div", {
84
+ /* @__PURE__ */ C("div", {
88
85
  className: "rounded-lg border border-border-seam bg-bg-sunken p-4",
89
- children: [/* @__PURE__ */ S("div", {
86
+ children: [/* @__PURE__ */ C("div", {
90
87
  className: "flex items-start justify-between gap-3",
91
- children: [/* @__PURE__ */ S("div", {
88
+ children: [/* @__PURE__ */ C("div", {
92
89
  className: "min-w-0",
93
- children: [/* @__PURE__ */ x("p", {
90
+ children: [/* @__PURE__ */ S("p", {
94
91
  className: "truncate font-medium text-text-primary",
95
92
  children: U.protocol.name
96
- }), /* @__PURE__ */ S("p", {
93
+ }), /* @__PURE__ */ C("p", {
97
94
  className: "mt-0.5 text-xs text-text-tertiary",
98
95
  children: [
99
96
  "v",
@@ -104,29 +101,29 @@ function V({ onClose: t, onViewProtocol: n }) {
104
101
  U.stepCount === 1 ? "" : "s"
105
102
  ]
106
103
  })]
107
- }), /* @__PURE__ */ x(e, { status: U.protocol.status })]
108
- }), U.protocol.summary && /* @__PURE__ */ x("p", {
104
+ }), /* @__PURE__ */ S(e, { status: U.protocol.status })]
105
+ }), U.protocol.summary && /* @__PURE__ */ S("p", {
109
106
  className: "mt-2 text-sm text-text-secondary",
110
107
  children: U.protocol.summary
111
108
  })]
112
109
  }),
113
- /* @__PURE__ */ S("p", {
110
+ /* @__PURE__ */ C("p", {
114
111
  className: "text-sm text-text-secondary",
115
112
  children: [
116
113
  "This landed as a ",
117
- /* @__PURE__ */ x("strong", {
114
+ /* @__PURE__ */ S("strong", {
118
115
  className: "text-text-primary",
119
116
  children: "draft"
120
117
  }),
121
118
  ". It is not published, nothing at the bench has changed, and no experiment is using it. Open the draft to check the steps and safety notes, then publish it when you are satisfied."
122
119
  ]
123
120
  }),
124
- /* @__PURE__ */ S("p", {
121
+ /* @__PURE__ */ C("p", {
125
122
  className: "text-xs text-text-tertiary",
126
123
  children: [
127
124
  "Recorded in the decision feed as",
128
125
  " ",
129
- /* @__PURE__ */ x("span", {
126
+ /* @__PURE__ */ S("span", {
130
127
  className: "break-all font-mono",
131
128
  children: U.agentRunId
132
129
  }),
@@ -134,50 +131,50 @@ function V({ onClose: t, onViewProtocol: n }) {
134
131
  ]
135
132
  })
136
133
  ]
137
- }) : /* @__PURE__ */ S("div", {
134
+ }) : /* @__PURE__ */ C("div", {
138
135
  className: "space-y-4 py-2",
139
136
  children: [
140
- /* @__PURE__ */ S("div", {
137
+ /* @__PURE__ */ C("div", {
141
138
  className: "space-y-1.5",
142
- children: [/* @__PURE__ */ x(w, {
139
+ children: [/* @__PURE__ */ S(T, {
143
140
  htmlFor: "suggest-target-kind",
144
141
  children: "Design it for"
145
- }), /* @__PURE__ */ S(j, {
142
+ }), /* @__PURE__ */ C(M, {
146
143
  value: l,
147
144
  onValueChange: (e) => {
148
145
  d(e), p("");
149
146
  },
150
- children: [/* @__PURE__ */ x(P, {
147
+ children: [/* @__PURE__ */ S(F, {
151
148
  id: "suggest-target-kind",
152
- children: /* @__PURE__ */ x(F, {})
153
- }), /* @__PURE__ */ S(M, { children: [/* @__PURE__ */ x(N, {
149
+ children: /* @__PURE__ */ S(I, {})
150
+ }), /* @__PURE__ */ C(N, { children: [/* @__PURE__ */ S(P, {
154
151
  value: "project",
155
152
  children: "A project"
156
- }), /* @__PURE__ */ x(N, {
153
+ }), /* @__PURE__ */ S(P, {
157
154
  value: "experiment",
158
155
  children: "An experiment"
159
156
  })] })]
160
157
  })]
161
158
  }),
162
- /* @__PURE__ */ S("div", {
159
+ /* @__PURE__ */ C("div", {
163
160
  className: "space-y-1.5",
164
161
  children: [
165
- /* @__PURE__ */ x(w, {
162
+ /* @__PURE__ */ S(T, {
166
163
  htmlFor: "suggest-target",
167
164
  children: l === "project" ? "Project" : "Experiment"
168
165
  }),
169
- /* @__PURE__ */ S(j, {
166
+ /* @__PURE__ */ C(M, {
170
167
  value: f,
171
168
  onValueChange: p,
172
- children: [/* @__PURE__ */ x(P, {
169
+ children: [/* @__PURE__ */ S(F, {
173
170
  id: "suggest-target",
174
- children: /* @__PURE__ */ x(F, { placeholder: l === "project" ? "Select a project" : "Select an experiment" })
175
- }), /* @__PURE__ */ x(M, { children: G.map((e) => /* @__PURE__ */ x(N, {
171
+ children: /* @__PURE__ */ S(I, { placeholder: l === "project" ? "Select a project" : "Select an experiment" })
172
+ }), /* @__PURE__ */ S(N, { children: G.map((e) => /* @__PURE__ */ S(P, {
176
173
  value: e.id,
177
174
  children: e.label
178
175
  }, e.id)) })]
179
176
  }),
180
- G.length === 0 && /* @__PURE__ */ S("p", {
177
+ G.length === 0 && /* @__PURE__ */ C("p", {
181
178
  className: "text-xs text-text-tertiary",
182
179
  children: [
183
180
  "No ",
@@ -187,12 +184,12 @@ function V({ onClose: t, onViewProtocol: n }) {
187
184
  })
188
185
  ]
189
186
  }),
190
- /* @__PURE__ */ S("div", {
187
+ /* @__PURE__ */ C("div", {
191
188
  className: "space-y-1.5",
192
- children: [/* @__PURE__ */ x(w, {
189
+ children: [/* @__PURE__ */ S(T, {
193
190
  htmlFor: "suggest-objective",
194
191
  children: "Objective"
195
- }), /* @__PURE__ */ x(I, {
192
+ }), /* @__PURE__ */ S(L, {
196
193
  id: "suggest-objective",
197
194
  value: m,
198
195
  onChange: (e) => h(e.target.value),
@@ -200,367 +197,367 @@ function V({ onClose: t, onViewProtocol: n }) {
200
197
  rows: 3
201
198
  })]
202
199
  }),
203
- /* @__PURE__ */ S("div", {
200
+ /* @__PURE__ */ C("div", {
204
201
  className: "space-y-1.5",
205
- children: [/* @__PURE__ */ x(w, {
202
+ children: [/* @__PURE__ */ S(T, {
206
203
  htmlFor: "suggest-constraints",
207
204
  children: "Constraints (optional)"
208
- }), /* @__PURE__ */ x(I, {
205
+ }), /* @__PURE__ */ S(L, {
209
206
  id: "suggest-constraints",
210
- value: _,
211
- onChange: (e) => T(e.target.value),
207
+ value: g,
208
+ onChange: (e) => v(e.target.value),
212
209
  placeholder: "Bench instruments only, under 4 hours, no hazardous solvents.",
213
210
  rows: 2
214
211
  })]
215
212
  }),
216
- /* @__PURE__ */ x(B, {
213
+ /* @__PURE__ */ S(V, {
217
214
  id: "suggest-provider",
218
215
  value: E,
219
- onChange: z
216
+ onChange: D
220
217
  }),
221
- V && /* @__PURE__ */ x("p", {
218
+ B && /* @__PURE__ */ S("p", {
222
219
  className: "text-sm text-status-error-text",
223
- children: V
220
+ children: B
224
221
  }),
225
- /* @__PURE__ */ x(u, {
222
+ /* @__PURE__ */ S(u, {
226
223
  error: i.error,
227
224
  fallback: "Failed to design a protocol."
228
225
  })
229
226
  ]
230
227
  }),
231
- /* @__PURE__ */ x(O, { children: U ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(C, {
228
+ /* @__PURE__ */ S(k, { children: U ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(w, {
232
229
  variant: "outline",
233
230
  onClick: t,
234
231
  children: "Close"
235
- }), /* @__PURE__ */ S(C, {
232
+ }), /* @__PURE__ */ C(w, {
236
233
  onClick: () => {
237
234
  t(), n(U.protocol.id);
238
235
  },
239
- children: [/* @__PURE__ */ x(v, { className: "mr-2 h-4 w-4" }), "Open draft protocol"]
240
- })] }) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(C, {
236
+ children: [/* @__PURE__ */ S(y, { className: "mr-2 h-4 w-4" }), "Open draft protocol"]
237
+ })] }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(w, {
241
238
  variant: "outline",
242
239
  onClick: t,
243
240
  disabled: i.isPending,
244
241
  children: "Cancel"
245
- }), /* @__PURE__ */ S(C, {
242
+ }), /* @__PURE__ */ C(w, {
246
243
  onClick: () => void K(),
247
244
  disabled: i.isPending,
248
- children: [/* @__PURE__ */ x(y, { className: "mr-2 h-4 w-4" }), i.isPending ? "Designing…" : "Design draft"]
245
+ children: [/* @__PURE__ */ S(b, { className: "mr-2 h-4 w-4" }), i.isPending ? "Designing…" : "Design draft"]
249
246
  })] }) })
250
247
  ] });
251
248
  }
252
- function H({ open: e, onOpenChange: t, onViewProtocol: n }) {
253
- return /* @__PURE__ */ x(T, {
249
+ function U({ open: e, onOpenChange: t, onViewProtocol: n }) {
250
+ return /* @__PURE__ */ S(E, {
254
251
  open: e,
255
252
  onOpenChange: t,
256
- children: /* @__PURE__ */ x(E, {
253
+ children: /* @__PURE__ */ S(D, {
257
254
  className: "max-h-[90vh] max-w-lg overflow-y-auto",
258
- children: e && /* @__PURE__ */ x(V, {
259
- onClose: () => t(!1),
260
- onViewProtocol: n
255
+ children: e && /* @__PURE__ */ S(d, {
256
+ onCancel: () => t(!1),
257
+ children: /* @__PURE__ */ S(H, {
258
+ onClose: () => t(!1),
259
+ onViewProtocol: n
260
+ })
261
261
  })
262
262
  })
263
263
  });
264
264
  }
265
- function U({ initialExperimentId: t, onClose: n, onViewExperiment: i }) {
265
+ function W({ initialExperimentId: t, onClose: n, onViewExperiment: i }) {
266
266
  let a = o(), s = r({ pagination: {
267
- limit: R,
267
+ limit: z,
268
268
  offset: 0
269
- } }), [c, d] = g(t ?? ""), [f, m] = g(L), [h, v] = g(null), [T, E] = g(null), I = async () => {
270
- if (!c) {
271
- v("Choose the experiment to assess.");
272
- return;
269
+ } }), [c, d] = _(t ?? ""), [f, p] = _(R), [h, g] = _(null), [y, E] = _(null), D = async () => {
270
+ if (!c) g("Choose the experiment to assess.");
271
+ else {
272
+ g(null);
273
+ try {
274
+ let e = await a.mutateAsync({
275
+ experimentId: c,
276
+ requestedProvider: f === R ? void 0 : f
277
+ });
278
+ E(e);
279
+ } catch {}
273
280
  }
274
- v(null);
275
- try {
276
- let e = await a.mutateAsync({
277
- experimentId: c,
278
- requestedProvider: f === L ? void 0 : f
279
- });
280
- E(e);
281
- } catch {}
282
281
  };
283
- return /* @__PURE__ */ S(b, { children: [
284
- /* @__PURE__ */ S(k, { children: [/* @__PURE__ */ x(A, { children: "Recommend the next run" }), /* @__PURE__ */ x(D, { children: "The AI reads this experiment's recent runs and proposes what to do next. It starts no run and changes no experiment design." })] }),
285
- T ? /* @__PURE__ */ S("div", {
282
+ return /* @__PURE__ */ C(x, { children: [
283
+ /* @__PURE__ */ C(A, { children: [/* @__PURE__ */ S(j, { children: "Recommend the next run" }), /* @__PURE__ */ S(O, { children: "The AI reads this experiment's recent runs and proposes what to do next. It starts no run and changes no experiment design." })] }),
284
+ y ? /* @__PURE__ */ C("div", {
286
285
  className: "space-y-4 py-2",
287
286
  children: [
288
- /* @__PURE__ */ S("div", {
287
+ /* @__PURE__ */ C("div", {
289
288
  className: "flex flex-wrap items-center gap-2",
290
- children: [/* @__PURE__ */ x(e, { status: T.recommendation }), /* @__PURE__ */ S("span", {
289
+ children: [/* @__PURE__ */ S(e, { status: y.recommendation }), /* @__PURE__ */ C("span", {
291
290
  className: "text-xs text-text-tertiary",
292
- children: ["Confidence ", p(T.confidence)]
291
+ children: ["Confidence ", m(y.confidence)]
293
292
  })]
294
293
  }),
295
- /* @__PURE__ */ x("p", {
294
+ /* @__PURE__ */ S("p", {
296
295
  className: "text-sm text-text-secondary",
297
- children: T.rationale
296
+ children: y.rationale
298
297
  }),
299
- T.flags.length > 0 && /* @__PURE__ */ x("div", {
298
+ y.flags.length > 0 && /* @__PURE__ */ S("div", {
300
299
  className: "flex flex-wrap gap-1.5",
301
- children: T.flags.map((e) => /* @__PURE__ */ x("span", {
300
+ children: y.flags.map((e) => /* @__PURE__ */ S("span", {
302
301
  className: "rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-text-secondary",
303
302
  children: e
304
303
  }, e))
305
304
  }),
306
- T.recommendation === "ADJUST_PARAMETERS" && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
305
+ y.recommendation === "ADJUST_PARAMETERS" && /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
307
306
  className: "mb-1.5 text-xs font-medium uppercase tracking-wide text-text-tertiary",
308
307
  children: "Suggested parameters"
309
- }), /* @__PURE__ */ x(l, {
310
- value: T.suggestedParameters,
308
+ }), /* @__PURE__ */ S(l, {
309
+ value: y.suggestedParameters,
311
310
  emptyLabel: "No specific parameter values were proposed"
312
311
  })] }),
313
- /* @__PURE__ */ x("p", {
312
+ /* @__PURE__ */ S("p", {
314
313
  className: "text-sm text-text-secondary",
315
- children: T.appliedToExperiment ? "Recorded on the experiment as a proposal (status PROPOSED). Nothing is applied until a researcher resolves it." : "The recommendation was produced but could not be recorded on the experiment — it is still in the decision feed."
314
+ children: y.appliedToExperiment ? "Recorded on the experiment as a proposal (status PROPOSED). Nothing is applied until a researcher resolves it." : "The recommendation was produced but could not be recorded on the experiment — it is still in the decision feed."
316
315
  }),
317
- /* @__PURE__ */ S("p", {
316
+ /* @__PURE__ */ C("p", {
318
317
  className: "text-xs text-text-tertiary",
319
318
  children: [
320
319
  "Recorded in the decision feed as",
321
320
  " ",
322
- /* @__PURE__ */ x("span", {
321
+ /* @__PURE__ */ S("span", {
323
322
  className: "break-all font-mono",
324
- children: T.agentRunId
323
+ children: y.agentRunId
325
324
  }),
326
325
  "."
327
326
  ]
328
327
  })
329
328
  ]
330
- }) : /* @__PURE__ */ S("div", {
329
+ }) : /* @__PURE__ */ C("div", {
331
330
  className: "space-y-4 py-2",
332
331
  children: [
333
- /* @__PURE__ */ S("div", {
332
+ /* @__PURE__ */ C("div", {
334
333
  className: "space-y-1.5",
335
334
  children: [
336
- /* @__PURE__ */ x(w, {
335
+ /* @__PURE__ */ S(T, {
337
336
  htmlFor: "recommend-experiment",
338
337
  children: "Experiment"
339
338
  }),
340
- /* @__PURE__ */ S(j, {
339
+ /* @__PURE__ */ C(M, {
341
340
  value: c,
342
341
  onValueChange: d,
343
- children: [/* @__PURE__ */ x(P, {
342
+ children: [/* @__PURE__ */ S(F, {
344
343
  id: "recommend-experiment",
345
- children: /* @__PURE__ */ x(F, { placeholder: "Select an experiment" })
346
- }), /* @__PURE__ */ x(M, { children: (s.data?.items ?? []).map((e) => /* @__PURE__ */ x(N, {
344
+ children: /* @__PURE__ */ S(I, { placeholder: "Select an experiment" })
345
+ }), /* @__PURE__ */ S(N, { children: (s.data?.items ?? []).map((e) => /* @__PURE__ */ S(P, {
347
346
  value: e.id,
348
347
  children: e.title
349
348
  }, e.id)) })]
350
349
  }),
351
- /* @__PURE__ */ x("p", {
350
+ /* @__PURE__ */ S("p", {
352
351
  className: "text-xs text-text-tertiary",
353
352
  children: "The experiment needs at least one recorded run — there is nothing to reason over otherwise."
354
353
  })
355
354
  ]
356
355
  }),
357
- /* @__PURE__ */ x(B, {
356
+ /* @__PURE__ */ S(V, {
358
357
  id: "recommend-provider",
359
358
  value: f,
360
- onChange: m
359
+ onChange: p
361
360
  }),
362
- h && /* @__PURE__ */ x("p", {
361
+ h && /* @__PURE__ */ S("p", {
363
362
  className: "text-sm text-status-error-text",
364
363
  children: h
365
364
  }),
366
- /* @__PURE__ */ x(u, {
365
+ /* @__PURE__ */ S(u, {
367
366
  error: a.error,
368
367
  fallback: "Failed to produce a recommendation."
369
368
  })
370
369
  ]
371
370
  }),
372
- /* @__PURE__ */ x(O, { children: T ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(C, {
371
+ /* @__PURE__ */ S(k, { children: y ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(w, {
373
372
  variant: "outline",
374
373
  onClick: n,
375
374
  children: "Close"
376
- }), /* @__PURE__ */ S(C, {
375
+ }), /* @__PURE__ */ C(w, {
377
376
  onClick: () => {
378
- n(), i(T.experimentId);
377
+ n(), i(y.experimentId);
379
378
  },
380
- children: ["Open experiment", /* @__PURE__ */ x(_, { className: "ml-2 h-4 w-4" })]
381
- })] }) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(C, {
379
+ children: ["Open experiment", /* @__PURE__ */ S(v, { className: "ml-2 h-4 w-4" })]
380
+ })] }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(w, {
382
381
  variant: "outline",
383
382
  onClick: n,
384
383
  disabled: a.isPending,
385
384
  children: "Cancel"
386
- }), /* @__PURE__ */ S(C, {
387
- onClick: () => void I(),
385
+ }), /* @__PURE__ */ C(w, {
386
+ onClick: () => void D(),
388
387
  disabled: a.isPending,
389
- children: [/* @__PURE__ */ x(y, { className: "mr-2 h-4 w-4" }), a.isPending ? "Assessing…" : "Assess runs"]
388
+ children: [/* @__PURE__ */ S(b, { className: "mr-2 h-4 w-4" }), a.isPending ? "Assessing…" : "Assess runs"]
390
389
  })] }) })
391
390
  ] });
392
391
  }
393
- function W({ open: e, onOpenChange: t, initialExperimentId: n = null, onViewExperiment: r }) {
394
- return /* @__PURE__ */ x(T, {
392
+ function G({ open: e, onOpenChange: t, initialExperimentId: n = null, onViewExperiment: r }) {
393
+ return /* @__PURE__ */ S(E, {
395
394
  open: e,
396
395
  onOpenChange: t,
397
- children: /* @__PURE__ */ x(E, {
396
+ children: /* @__PURE__ */ S(D, {
398
397
  className: "max-h-[90vh] max-w-lg overflow-y-auto",
399
- children: e && /* @__PURE__ */ x(U, {
400
- initialExperimentId: n,
401
- onClose: () => t(!1),
402
- onViewExperiment: r
398
+ children: e && /* @__PURE__ */ S(d, {
399
+ onCancel: () => t(!1),
400
+ children: /* @__PURE__ */ S(W, {
401
+ initialExperimentId: n,
402
+ onClose: () => t(!1),
403
+ onViewExperiment: r
404
+ })
403
405
  })
404
406
  })
405
407
  });
406
408
  }
407
- function G({ run: t, onClose: a }) {
409
+ function K({ run: t, onClose: a }) {
408
410
  let o = i(), s = r({ pagination: {
409
- limit: R,
411
+ limit: z,
410
412
  offset: 0
411
- } }), l = d(t.decision), p = l.kind === "recommendation" || l.kind === "override" ? l.recommendation : null, h = f(t), _ = n(h ?? void 0), v = m(_.data?.context), [y, T] = g(h ?? ""), [E, L] = g(p ?? "REPLICATE"), [B, V] = g(""), [H, U] = g(null), [W, G] = g(!1), K = async () => {
412
- if (!y) {
413
- U("Choose the experiment this decision applies to.");
414
- return;
415
- }
416
- if (!B.trim()) {
417
- U("Say why you are overriding — the note is the audit trail.");
418
- return;
413
+ } }), l = f(t.decision), d = l.kind === "recommendation" || l.kind === "override" ? l.recommendation : null, m = p(t), g = n(m ?? void 0), v = h(g.data?.context), [y, b] = _(m ?? ""), [E, D] = _(d ?? "REPLICATE"), [R, V] = _(""), [H, U] = _(null), [W, G] = _(!1), K = async () => {
414
+ if (!y) U("Choose the experiment this decision applies to.");
415
+ else if (!R.trim()) U("Say why you are overriding — the note is the audit trail.");
416
+ else {
417
+ U(null);
418
+ try {
419
+ await o.mutateAsync({
420
+ runId: t.id,
421
+ experimentId: y,
422
+ recommendation: E,
423
+ note: R.trim()
424
+ }), G(!0);
425
+ } catch {}
419
426
  }
420
- U(null);
421
- try {
422
- await o.mutateAsync({
423
- runId: t.id,
424
- experimentId: y,
425
- recommendation: E,
426
- note: B.trim()
427
- }), G(!0);
428
- } catch {}
429
427
  };
430
- return /* @__PURE__ */ S(b, { children: [
431
- /* @__PURE__ */ S(k, { children: [/* @__PURE__ */ x(A, { children: "Record your call" }), /* @__PURE__ */ x(D, { children: "Your decision is appended to the ledger as a new entry that supersedes this one. The original is never edited." })] }),
432
- W ? /* @__PURE__ */ x("div", {
428
+ return /* @__PURE__ */ C(x, { children: [
429
+ /* @__PURE__ */ C(A, { children: [/* @__PURE__ */ S(j, { children: "Record your call" }), /* @__PURE__ */ S(O, { children: "Your decision is appended to the ledger as a new entry that supersedes this one. The original is never edited." })] }),
430
+ W ? /* @__PURE__ */ S("div", {
433
431
  className: "space-y-3 py-2",
434
- children: /* @__PURE__ */ x("p", {
432
+ children: /* @__PURE__ */ S("p", {
435
433
  className: "text-sm text-text-secondary",
436
434
  children: "Recorded. The experiment now carries your call (status OVERRIDDEN) alongside what the model proposed, so \"did the researcher agree?\" stays answerable."
437
435
  })
438
- }) : /* @__PURE__ */ S("div", {
436
+ }) : /* @__PURE__ */ C("div", {
439
437
  className: "space-y-4 py-2",
440
438
  children: [
441
- p && /* @__PURE__ */ S("div", {
439
+ d && /* @__PURE__ */ C("div", {
442
440
  className: "rounded-lg border border-border-seam bg-bg-sunken p-3",
443
- children: [/* @__PURE__ */ x("p", {
441
+ children: [/* @__PURE__ */ S("p", {
444
442
  className: "text-xs font-medium uppercase tracking-wide text-text-tertiary",
445
443
  children: "The model proposed"
446
- }), /* @__PURE__ */ x("div", {
444
+ }), /* @__PURE__ */ S("div", {
447
445
  className: "mt-1.5",
448
- children: /* @__PURE__ */ x(e, { status: p })
446
+ children: /* @__PURE__ */ S(e, { status: d })
449
447
  })]
450
448
  }),
451
- /* @__PURE__ */ S("div", {
449
+ /* @__PURE__ */ C("div", {
452
450
  className: "space-y-1.5",
453
451
  children: [
454
- /* @__PURE__ */ x(w, {
452
+ /* @__PURE__ */ S(T, {
455
453
  htmlFor: "override-experiment",
456
454
  children: "Experiment"
457
455
  }),
458
- h ? /* @__PURE__ */ S("div", {
456
+ m ? /* @__PURE__ */ C("div", {
459
457
  id: "override-experiment",
460
458
  className: "rounded-lg border border-border-seam bg-bg-sunken p-3",
461
- children: [/* @__PURE__ */ x("p", {
459
+ children: [/* @__PURE__ */ S("p", {
462
460
  className: "truncate text-sm font-medium text-text-primary",
463
- children: _.data?.title ?? h
464
- }), v ? /* @__PURE__ */ S("div", {
461
+ children: g.data?.title ?? m
462
+ }), v ? /* @__PURE__ */ C("div", {
465
463
  className: "mt-1.5 flex flex-wrap items-center gap-2",
466
464
  children: [
467
- /* @__PURE__ */ x("span", {
465
+ /* @__PURE__ */ S("span", {
468
466
  className: "text-xs text-text-tertiary",
469
467
  children: "Currently carries"
470
468
  }),
471
- v.recommendation && /* @__PURE__ */ x(e, { status: v.recommendation }),
472
- v.status && /* @__PURE__ */ x(e, { status: v.status })
469
+ v.recommendation && /* @__PURE__ */ S(e, { status: v.recommendation }),
470
+ v.status && /* @__PURE__ */ S(e, { status: v.status })
473
471
  ]
474
- }) : /* @__PURE__ */ x("p", {
472
+ }) : /* @__PURE__ */ S("p", {
475
473
  className: "mt-1 text-xs text-text-tertiary",
476
- children: _.isLoading ? "Checking what this experiment currently carries…" : "No AI read is recorded on this experiment yet."
474
+ children: g.isLoading ? "Checking what this experiment currently carries…" : "No AI read is recorded on this experiment yet."
477
475
  })]
478
- }) : /* @__PURE__ */ S(j, {
476
+ }) : /* @__PURE__ */ C(M, {
479
477
  value: y,
480
- onValueChange: T,
481
- children: [/* @__PURE__ */ x(P, {
478
+ onValueChange: b,
479
+ children: [/* @__PURE__ */ S(F, {
482
480
  id: "override-experiment",
483
- children: /* @__PURE__ */ x(F, { placeholder: "Select an experiment" })
484
- }), /* @__PURE__ */ x(M, { children: (s.data?.items ?? []).map((e) => /* @__PURE__ */ x(N, {
481
+ children: /* @__PURE__ */ S(I, { placeholder: "Select an experiment" })
482
+ }), /* @__PURE__ */ S(N, { children: (s.data?.items ?? []).map((e) => /* @__PURE__ */ S(P, {
485
483
  value: e.id,
486
484
  children: e.title
487
485
  }, e.id)) })]
488
486
  }),
489
- !h && /* @__PURE__ */ x("p", {
487
+ !m && /* @__PURE__ */ S("p", {
490
488
  className: "text-xs text-text-tertiary",
491
489
  children: "This entry does not name an experiment, so choose the one your call applies to."
492
490
  })
493
491
  ]
494
492
  }),
495
- /* @__PURE__ */ S("div", {
493
+ /* @__PURE__ */ C("div", {
496
494
  className: "space-y-1.5",
497
- children: [/* @__PURE__ */ x(w, {
495
+ children: [/* @__PURE__ */ S(T, {
498
496
  htmlFor: "override-recommendation",
499
497
  children: "Your call"
500
- }), /* @__PURE__ */ S(j, {
498
+ }), /* @__PURE__ */ C(M, {
501
499
  value: E,
502
- onValueChange: (e) => L(e),
503
- children: [/* @__PURE__ */ x(P, {
500
+ onValueChange: (e) => D(e),
501
+ children: [/* @__PURE__ */ S(F, {
504
502
  id: "override-recommendation",
505
- children: /* @__PURE__ */ x(F, {})
506
- }), /* @__PURE__ */ x(M, { children: z.map((e) => /* @__PURE__ */ x(N, {
503
+ children: /* @__PURE__ */ S(I, {})
504
+ }), /* @__PURE__ */ S(N, { children: B.map((e) => /* @__PURE__ */ S(P, {
507
505
  value: e,
508
506
  children: c(e)
509
507
  }, e)) })]
510
508
  })]
511
509
  }),
512
- /* @__PURE__ */ S("div", {
510
+ /* @__PURE__ */ C("div", {
513
511
  className: "space-y-1.5",
514
- children: [/* @__PURE__ */ x(w, {
512
+ children: [/* @__PURE__ */ S(T, {
515
513
  htmlFor: "override-note",
516
514
  children: "Note"
517
- }), /* @__PURE__ */ x(I, {
515
+ }), /* @__PURE__ */ S(L, {
518
516
  id: "override-note",
519
- value: B,
517
+ value: R,
520
518
  onChange: (e) => V(e.target.value),
521
519
  placeholder: "The replicate variance is instrument drift, not a real effect — recalibrate and repeat.",
522
520
  rows: 3
523
521
  })]
524
522
  }),
525
- H && /* @__PURE__ */ x("p", {
523
+ H && /* @__PURE__ */ S("p", {
526
524
  className: "text-sm text-status-error-text",
527
525
  children: H
528
526
  }),
529
- /* @__PURE__ */ x(u, {
527
+ /* @__PURE__ */ S(u, {
530
528
  error: o.error,
531
529
  fallback: "Failed to record the override."
532
530
  })
533
531
  ]
534
532
  }),
535
- /* @__PURE__ */ x(O, { children: W ? /* @__PURE__ */ x(C, {
533
+ /* @__PURE__ */ S(k, { children: W ? /* @__PURE__ */ S(w, {
536
534
  onClick: a,
537
535
  children: "Done"
538
- }) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(C, {
536
+ }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(w, {
539
537
  variant: "outline",
540
538
  onClick: a,
541
539
  disabled: o.isPending,
542
540
  children: "Cancel"
543
- }), /* @__PURE__ */ x(C, {
541
+ }), /* @__PURE__ */ S(w, {
544
542
  onClick: () => void K(),
545
543
  disabled: o.isPending,
546
544
  children: o.isPending ? "Recording…" : "Record override"
547
545
  })] }) })
548
546
  ] });
549
547
  }
550
- function K({ run: e, onOpenChange: t }) {
551
- return /* @__PURE__ */ x(T, {
548
+ function q({ run: e, onOpenChange: t }) {
549
+ return /* @__PURE__ */ S(E, {
552
550
  open: e !== null,
553
551
  onOpenChange: t,
554
- children: /* @__PURE__ */ x(E, {
552
+ children: /* @__PURE__ */ S(D, {
555
553
  className: "max-h-[90vh] max-w-lg overflow-y-auto",
556
- children: e && /* @__PURE__ */ x(G, {
554
+ children: e && /* @__PURE__ */ S(K, {
557
555
  run: e,
558
556
  onClose: () => t(!1)
559
557
  }, e.id)
560
558
  })
561
559
  });
562
560
  }
563
- //#endregion
564
- export { K as OverrideDecisionDialog, W as RecommendNextRunDialog, H as SuggestProtocolDialog };
561
+ export { q as OverrideDecisionDialog, G as RecommendNextRunDialog, U as SuggestProtocolDialog };
565
562
 
566
563
  //# sourceMappingURL=AiDialogs.js.map