@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.
- package/dist/generated/global-operations.d.ts +0 -1
- package/dist/generated/global-types.d.ts +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -1
- package/dist/generated/wspace-types.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/labsofscience/LabsOfScienceRoot.d.ts +0 -2
- package/dist/labsofscience/LabsOfScienceRoot.js +2 -3
- package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
- package/dist/labsofscience/LabsOfScienceRoutes.d.ts +0 -2
- package/dist/labsofscience/LabsOfScienceRoutes.js +1 -2
- package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
- package/dist/labsofscience/components/BottomNav.d.ts +0 -2
- package/dist/labsofscience/components/BottomNav.js +8 -9
- package/dist/labsofscience/components/BottomNav.js.map +1 -1
- package/dist/labsofscience/components/DiscussionPanel.d.ts +1 -2
- package/dist/labsofscience/components/DiscussionPanel.js +4 -4
- package/dist/labsofscience/components/DiscussionPanel.js.map +1 -1
- package/dist/labsofscience/components/EmptyState.d.ts +0 -2
- package/dist/labsofscience/components/EmptyState.js +1 -2
- package/dist/labsofscience/components/EmptyState.js.map +1 -1
- package/dist/labsofscience/components/FileAttachment.d.ts +0 -2
- package/dist/labsofscience/components/FileAttachment.js +1 -2
- package/dist/labsofscience/components/FileAttachment.js.map +1 -1
- package/dist/labsofscience/components/FileUploadField.d.ts +0 -2
- package/dist/labsofscience/components/FileUploadField.js +1 -2
- package/dist/labsofscience/components/FileUploadField.js.map +1 -1
- package/dist/labsofscience/components/ListSearchInput.d.ts +0 -2
- package/dist/labsofscience/components/ListSearchInput.js +1 -2
- package/dist/labsofscience/components/ListSearchInput.js.map +1 -1
- package/dist/labsofscience/components/MetricsCard.d.ts +0 -2
- package/dist/labsofscience/components/MetricsCard.js +1 -2
- package/dist/labsofscience/components/MetricsCard.js.map +1 -1
- package/dist/labsofscience/components/PageLayout.d.ts +0 -2
- package/dist/labsofscience/components/PageLayout.js +1 -2
- package/dist/labsofscience/components/PageLayout.js.map +1 -1
- package/dist/labsofscience/components/ProvenanceChain.d.ts +1 -3
- package/dist/labsofscience/components/ProvenanceChain.js +1 -2
- package/dist/labsofscience/components/ProvenanceChain.js.map +1 -1
- package/dist/labsofscience/components/ProvenancePanel.d.ts +1 -3
- package/dist/labsofscience/components/ProvenancePanel.js +11 -12
- package/dist/labsofscience/components/ProvenancePanel.js.map +1 -1
- package/dist/labsofscience/components/QueryStates.d.ts +0 -2
- package/dist/labsofscience/components/QueryStates.js +12 -6
- package/dist/labsofscience/components/QueryStates.js.map +1 -1
- package/dist/labsofscience/components/StatusBadge.d.ts +0 -2
- package/dist/labsofscience/components/StatusBadge.js +1 -2
- package/dist/labsofscience/components/StatusBadge.js.map +1 -1
- package/dist/labsofscience/components/index.d.ts +0 -1
- package/dist/labsofscience/components/provenanceMapping.d.ts +0 -2
- package/dist/labsofscience/components/provenanceMapping.js +1 -2
- package/dist/labsofscience/components/provenanceMapping.js.map +1 -1
- package/dist/labsofscience/context/LabsOfScienceContext.d.ts +0 -2
- package/dist/labsofscience/context/LabsOfScienceContext.js +1 -2
- package/dist/labsofscience/context/LabsOfScienceContext.js.map +1 -1
- package/dist/labsofscience/context/index.d.ts +0 -1
- package/dist/labsofscience/context/index.js +1 -2
- package/dist/labsofscience/hooks/index.d.ts +1 -2
- package/dist/labsofscience/hooks/useLabActorNames.d.ts +0 -2
- package/dist/labsofscience/hooks/useLabActorNames.js +4 -5
- package/dist/labsofscience/hooks/useLabActorNames.js.map +1 -1
- package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts +47 -28
- package/dist/labsofscience/hooks/useLabsOfScienceApi.js +485 -448
- package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
- package/dist/labsofscience/hooks/useTr.d.ts +0 -1
- package/dist/labsofscience/hooks/useTr.js +1 -2
- package/dist/labsofscience/hooks/useTr.js.map +1 -1
- package/dist/labsofscience/index.d.ts +0 -1
- package/dist/labsofscience/index.js +3 -3
- package/dist/labsofscience/legal/aiTerms.d.ts +35 -0
- package/dist/labsofscience/legal/aiTerms.js +24 -0
- package/dist/labsofscience/legal/aiTerms.js.map +1 -0
- package/dist/labsofscience/pages/OverviewPage.d.ts +1 -2
- package/dist/labsofscience/pages/OverviewPage.js +60 -61
- package/dist/labsofscience/pages/OverviewPage.js.map +1 -1
- package/dist/labsofscience/pages/ai/AiDialogs.d.ts +3 -5
- package/dist/labsofscience/pages/ai/AiDialogs.js +217 -220
- package/dist/labsofscience/pages/ai/AiDialogs.js.map +1 -1
- package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts +0 -2
- package/dist/labsofscience/pages/ai/AiErrorNotice.js +14 -15
- package/dist/labsofscience/pages/ai/AiErrorNotice.js.map +1 -1
- package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts +1 -2
- package/dist/labsofscience/pages/ai/AiOperationsPage.js +27 -28
- package/dist/labsofscience/pages/ai/AiOperationsPage.js.map +1 -1
- package/dist/labsofscience/pages/ai/AiTermsGate.d.ts +6 -0
- package/dist/labsofscience/pages/ai/AiTermsGate.js +68 -0
- package/dist/labsofscience/pages/ai/AiTermsGate.js.map +1 -0
- package/dist/labsofscience/pages/ai/DecisionCard.d.ts +0 -2
- package/dist/labsofscience/pages/ai/DecisionCard.js +1 -2
- package/dist/labsofscience/pages/ai/DecisionCard.js.map +1 -1
- package/dist/labsofscience/pages/ai/ModelSettings.d.ts +1 -2
- package/dist/labsofscience/pages/ai/ModelSettings.js +1 -2
- package/dist/labsofscience/pages/ai/ModelSettings.js.map +1 -1
- package/dist/labsofscience/pages/ai/aiReaders.d.ts +0 -2
- package/dist/labsofscience/pages/ai/aiReaders.js +1 -2
- package/dist/labsofscience/pages/ai/aiReaders.js.map +1 -1
- package/dist/labsofscience/pages/analytics/AnalyticsPage.d.ts +1 -2
- package/dist/labsofscience/pages/analytics/AnalyticsPage.js +1 -2
- package/dist/labsofscience/pages/analytics/AnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.d.ts +1 -2
- package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.js +1 -2
- package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.js.map +1 -1
- package/dist/labsofscience/pages/datasets/DatasetDetailPage.d.ts +1 -2
- package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +36 -37
- package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/datasets/DatasetFormDialog.d.ts +1 -3
- package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +16 -18
- package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -1
- package/dist/labsofscience/pages/datasets/DatasetsListPage.d.ts +1 -2
- package/dist/labsofscience/pages/datasets/DatasetsListPage.js +20 -21
- package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -1
- package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.d.ts +1 -2
- package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.js +1 -2
- package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.js.map +1 -1
- package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.d.ts +1 -3
- package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.js +2 -3
- package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.js.map +1 -1
- package/dist/labsofscience/pages/experiments/ExperimentAiPanel.d.ts +1 -2
- package/dist/labsofscience/pages/experiments/ExperimentAiPanel.js +9 -10
- package/dist/labsofscience/pages/experiments/ExperimentAiPanel.js.map +1 -1
- package/dist/labsofscience/pages/experiments/ExperimentDetailPage.d.ts +1 -2
- package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +44 -45
- package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/experiments/ExperimentFormDialog.d.ts +1 -3
- package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +1 -2
- package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -1
- package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.d.ts +1 -3
- package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.js +7 -8
- package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.js.map +1 -1
- package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.d.ts +1 -2
- package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.js +4 -5
- package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.js.map +1 -1
- package/dist/labsofscience/pages/experiments/ExperimentRunProgress.d.ts +1 -3
- package/dist/labsofscience/pages/experiments/ExperimentRunProgress.js +12 -13
- package/dist/labsofscience/pages/experiments/ExperimentRunProgress.js.map +1 -1
- package/dist/labsofscience/pages/experiments/ExperimentsListPage.d.ts +1 -2
- package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +22 -23
- package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -1
- package/dist/labsofscience/pages/experiments/RunDialogs.d.ts +2 -4
- package/dist/labsofscience/pages/experiments/RunDialogs.js +13 -15
- package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -1
- package/dist/labsofscience/pages/instruments/BookInstrumentDialog.d.ts +1 -2
- package/dist/labsofscience/pages/instruments/BookInstrumentDialog.js +16 -21
- package/dist/labsofscience/pages/instruments/BookInstrumentDialog.js.map +1 -1
- package/dist/labsofscience/pages/instruments/InstrumentDetailPage.d.ts +1 -2
- package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +15 -16
- package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/instruments/InstrumentFormDialog.d.ts +1 -3
- package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +1 -2
- package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -1
- package/dist/labsofscience/pages/instruments/InstrumentsListPage.d.ts +1 -2
- package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +19 -20
- package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -1
- package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.d.ts +1 -3
- package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +16 -21
- package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -1
- package/dist/labsofscience/pages/inventory/InventoryDetailPage.d.ts +1 -2
- package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +15 -16
- package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/inventory/InventoryFormDialog.d.ts +1 -3
- package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +5 -6
- package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -1
- package/dist/labsofscience/pages/inventory/InventoryListPage.d.ts +1 -2
- package/dist/labsofscience/pages/inventory/InventoryListPage.js +23 -24
- package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -1
- package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.d.ts +1 -2
- package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js +46 -47
- package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.d.ts +1 -3
- package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +22 -27
- package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -1
- package/dist/labsofscience/pages/notebook/NotebookListPage.d.ts +1 -2
- package/dist/labsofscience/pages/notebook/NotebookListPage.js +29 -30
- package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -1
- package/dist/labsofscience/pages/pipelines/PipelineFormDialog.d.ts +1 -3
- package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +16 -18
- package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -1
- package/dist/labsofscience/pages/pipelines/PipelinesPage.d.ts +1 -2
- package/dist/labsofscience/pages/pipelines/PipelinesPage.js +66 -67
- package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -1
- package/dist/labsofscience/pages/pipelines/RunPipelineDialog.d.ts +1 -3
- package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +14 -16
- package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -1
- package/dist/labsofscience/pages/projects/ProjectDetailPage.d.ts +1 -2
- package/dist/labsofscience/pages/projects/ProjectDetailPage.js +35 -36
- package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/projects/ProjectFormDialog.d.ts +1 -3
- package/dist/labsofscience/pages/projects/ProjectFormDialog.js +1 -2
- package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -1
- package/dist/labsofscience/pages/projects/ProjectsListPage.d.ts +1 -2
- package/dist/labsofscience/pages/projects/ProjectsListPage.js +24 -25
- package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -1
- package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.d.ts +1 -2
- package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.js +1 -2
- package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.js.map +1 -1
- package/dist/labsofscience/pages/protocols/ProtocolDetailPage.d.ts +1 -2
- package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +17 -18
- package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/protocols/ProtocolFormDialog.d.ts +1 -3
- package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +1 -2
- package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -1
- package/dist/labsofscience/pages/protocols/ProtocolsListPage.d.ts +1 -2
- package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +19 -20
- package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -1
- package/dist/labsofscience/pages/shared/DetailComponents.d.ts +0 -2
- package/dist/labsofscience/pages/shared/DetailComponents.js +1 -2
- package/dist/labsofscience/pages/shared/DetailComponents.js.map +1 -1
- package/dist/labsofscience/pages/shared/tags.d.ts +0 -1
- package/dist/labsofscience/pages/shared/tags.js +1 -2
- package/dist/labsofscience/pages/shared/tags.js.map +1 -1
- package/dist/labsofscience/store/index.d.ts +0 -1
- package/dist/labsofscience/store/index.js +1 -2
- package/dist/labsofscience/store/labsofscienceStore.d.ts +1 -2
- package/dist/labsofscience/store/labsofscienceStore.js +1 -2
- package/dist/labsofscience/store/labsofscienceStore.js.map +1 -1
- package/dist/labsofscience/types/index.d.ts +0 -2
- package/dist/labsofscience/utils/cn.d.ts +0 -2
- package/dist/labsofscience/utils/cn.js +1 -2
- package/dist/labsofscience/utils/cn.js.map +1 -1
- package/dist/labsofscience/utils/formatters.d.ts +0 -1
- package/dist/labsofscience/utils/formatters.js +1 -2
- package/dist/labsofscience/utils/formatters.js.map +1 -1
- package/dist/labsofscience/utils/index.d.ts +0 -1
- package/dist/labsofscience/utils/navigation.d.ts +0 -1
- package/dist/labsofscience/utils/navigation.js +1 -2
- package/dist/labsofscience/utils/navigation.js.map +1 -1
- package/dist/labsofscience/utils/uploadFile.d.ts +1 -2
- package/dist/labsofscience/utils/uploadFile.js +2 -3
- package/dist/labsofscience/utils/uploadFile.js.map +1 -1
- package/dist/labsofscience/utils/useDebouncedValue.d.ts +0 -1
- package/dist/labsofscience/utils/useDebouncedValue.js +1 -2
- package/dist/labsofscience/utils/useDebouncedValue.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +7 -6
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +100 -38
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/services/createSandboxAssistantTransport.d.ts +0 -1
- package/dist/services/createSandboxAssistantTransport.js +1 -2
- package/dist/services/createSandboxAssistantTransport.js.map +1 -1
- package/dist/stories/EmptyState.stories.d.ts +0 -2
- package/dist/stories/MetricsCard.stories.d.ts +0 -2
- package/dist/stories/StatusBadge.stories.d.ts +0 -2
- package/dist/test/happydom.d.ts +1 -0
- package/dist/types/assistant.d.ts +0 -1
- package/dist/utils/pageContext.d.ts +0 -1
- package/dist/utils/pageContext.js +2 -3
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +82 -60
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/labsofscience/LabsOfScienceRoot.d.ts.map +0 -1
- package/dist/labsofscience/LabsOfScienceRoutes.d.ts.map +0 -1
- package/dist/labsofscience/components/BottomNav.d.ts.map +0 -1
- package/dist/labsofscience/components/DiscussionPanel.d.ts.map +0 -1
- package/dist/labsofscience/components/EmptyState.d.ts.map +0 -1
- package/dist/labsofscience/components/FileAttachment.d.ts.map +0 -1
- package/dist/labsofscience/components/FileUploadField.d.ts.map +0 -1
- package/dist/labsofscience/components/ListSearchInput.d.ts.map +0 -1
- package/dist/labsofscience/components/MetricsCard.d.ts.map +0 -1
- package/dist/labsofscience/components/PageLayout.d.ts.map +0 -1
- package/dist/labsofscience/components/ProvenanceChain.d.ts.map +0 -1
- package/dist/labsofscience/components/ProvenancePanel.d.ts.map +0 -1
- package/dist/labsofscience/components/QueryStates.d.ts.map +0 -1
- package/dist/labsofscience/components/StatusBadge.d.ts.map +0 -1
- package/dist/labsofscience/components/index.d.ts.map +0 -1
- package/dist/labsofscience/components/provenanceMapping.d.ts.map +0 -1
- package/dist/labsofscience/context/LabsOfScienceContext.d.ts.map +0 -1
- package/dist/labsofscience/context/index.d.ts.map +0 -1
- package/dist/labsofscience/hooks/index.d.ts.map +0 -1
- package/dist/labsofscience/hooks/useLabActorNames.d.ts.map +0 -1
- package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts.map +0 -1
- package/dist/labsofscience/hooks/useTr.d.ts.map +0 -1
- package/dist/labsofscience/index.d.ts.map +0 -1
- package/dist/labsofscience/pages/OverviewPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/ai/AiDialogs.d.ts.map +0 -1
- package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts.map +0 -1
- package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/ai/DecisionCard.d.ts.map +0 -1
- package/dist/labsofscience/pages/ai/ModelSettings.d.ts.map +0 -1
- package/dist/labsofscience/pages/ai/aiReaders.d.ts.map +0 -1
- package/dist/labsofscience/pages/analytics/AnalyticsPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/datasets/DatasetDetailPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/datasets/DatasetFormDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/datasets/DatasetsListPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/experiments/ExperimentActivitySummary.d.ts.map +0 -1
- package/dist/labsofscience/pages/experiments/ExperimentAiPanel.d.ts.map +0 -1
- package/dist/labsofscience/pages/experiments/ExperimentDetailPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/experiments/ExperimentFormDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/experiments/ExperimentLifecycleStepper.d.ts.map +0 -1
- package/dist/labsofscience/pages/experiments/ExperimentLinkedItems.d.ts.map +0 -1
- package/dist/labsofscience/pages/experiments/ExperimentRunProgress.d.ts.map +0 -1
- package/dist/labsofscience/pages/experiments/ExperimentsListPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/experiments/RunDialogs.d.ts.map +0 -1
- package/dist/labsofscience/pages/instruments/BookInstrumentDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/instruments/InstrumentDetailPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/instruments/InstrumentFormDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/instruments/InstrumentsListPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/inventory/InventoryDetailPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/inventory/InventoryFormDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/inventory/InventoryListPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/notebook/NotebookListPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/pipelines/PipelineFormDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/pipelines/PipelinesPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/pipelines/RunPipelineDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/projects/ProjectDetailPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/projects/ProjectFormDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/projects/ProjectsListPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/protocols/AddProtocolStepDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/protocols/ProtocolDetailPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/protocols/ProtocolFormDialog.d.ts.map +0 -1
- package/dist/labsofscience/pages/protocols/ProtocolsListPage.d.ts.map +0 -1
- package/dist/labsofscience/pages/shared/DetailComponents.d.ts.map +0 -1
- package/dist/labsofscience/pages/shared/tags.d.ts.map +0 -1
- package/dist/labsofscience/store/index.d.ts.map +0 -1
- package/dist/labsofscience/store/labsofscienceStore.d.ts.map +0 -1
- package/dist/labsofscience/types/index.d.ts.map +0 -1
- package/dist/labsofscience/utils/cn.d.ts.map +0 -1
- package/dist/labsofscience/utils/formatters.d.ts.map +0 -1
- package/dist/labsofscience/utils/index.d.ts.map +0 -1
- package/dist/labsofscience/utils/navigation.d.ts.map +0 -1
- package/dist/labsofscience/utils/uploadFile.d.ts.map +0 -1
- package/dist/labsofscience/utils/useDebouncedValue.d.ts.map +0 -1
- package/dist/services/createSandboxAssistantTransport.d.ts.map +0 -1
- package/dist/stories/EmptyState.stories.d.ts.map +0 -1
- package/dist/stories/MetricsCard.stories.d.ts.map +0 -1
- package/dist/stories/StatusBadge.stories.d.ts.map +0 -1
- package/dist/test/setup.d.ts +0 -2
- package/dist/test/setup.d.ts.map +0 -1
- package/dist/types/assistant.d.ts.map +0 -1
- 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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
19
|
-
let i = t(), a =
|
|
20
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
24
|
+
/* @__PURE__ */ S(T, {
|
|
24
25
|
htmlFor: e,
|
|
25
26
|
children: "Provider (optional)"
|
|
26
27
|
}),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ C(M, {
|
|
28
29
|
value: n,
|
|
29
30
|
onValueChange: r,
|
|
30
|
-
children: [/* @__PURE__ */
|
|
31
|
+
children: [/* @__PURE__ */ S(F, {
|
|
31
32
|
id: e,
|
|
32
|
-
children: /* @__PURE__ */
|
|
33
|
-
}), /* @__PURE__ */
|
|
34
|
-
value:
|
|
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__ */
|
|
37
|
+
}), a.map((e) => /* @__PURE__ */ S(P, {
|
|
37
38
|
value: e,
|
|
38
39
|
children: c(e)
|
|
39
40
|
}, e))] })]
|
|
40
41
|
}),
|
|
41
|
-
/* @__PURE__ */
|
|
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
|
|
49
|
+
function H({ onClose: t, onViewProtocol: n }) {
|
|
49
50
|
let i = s(), o = a({ pagination: {
|
|
50
|
-
limit:
|
|
51
|
+
limit: z,
|
|
51
52
|
offset: 0
|
|
52
53
|
} }), c = r({ pagination: {
|
|
53
|
-
limit:
|
|
54
|
+
limit: z,
|
|
54
55
|
offset: 0
|
|
55
|
-
} }), [l, d] =
|
|
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
|
-
|
|
64
|
-
|
|
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__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
U ? /* @__PURE__ */
|
|
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__ */
|
|
84
|
+
/* @__PURE__ */ C("div", {
|
|
88
85
|
className: "rounded-lg border border-border-seam bg-bg-sunken p-4",
|
|
89
|
-
children: [/* @__PURE__ */
|
|
86
|
+
children: [/* @__PURE__ */ C("div", {
|
|
90
87
|
className: "flex items-start justify-between gap-3",
|
|
91
|
-
children: [/* @__PURE__ */
|
|
88
|
+
children: [/* @__PURE__ */ C("div", {
|
|
92
89
|
className: "min-w-0",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
90
|
+
children: [/* @__PURE__ */ S("p", {
|
|
94
91
|
className: "truncate font-medium text-text-primary",
|
|
95
92
|
children: U.protocol.name
|
|
96
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
108
|
-
}), U.protocol.summary && /* @__PURE__ */
|
|
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__ */
|
|
110
|
+
/* @__PURE__ */ C("p", {
|
|
114
111
|
className: "text-sm text-text-secondary",
|
|
115
112
|
children: [
|
|
116
113
|
"This landed as a ",
|
|
117
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
134
|
+
}) : /* @__PURE__ */ C("div", {
|
|
138
135
|
className: "space-y-4 py-2",
|
|
139
136
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ C("div", {
|
|
141
138
|
className: "space-y-1.5",
|
|
142
|
-
children: [/* @__PURE__ */
|
|
139
|
+
children: [/* @__PURE__ */ S(T, {
|
|
143
140
|
htmlFor: "suggest-target-kind",
|
|
144
141
|
children: "Design it for"
|
|
145
|
-
}), /* @__PURE__ */
|
|
142
|
+
}), /* @__PURE__ */ C(M, {
|
|
146
143
|
value: l,
|
|
147
144
|
onValueChange: (e) => {
|
|
148
145
|
d(e), p("");
|
|
149
146
|
},
|
|
150
|
-
children: [/* @__PURE__ */
|
|
147
|
+
children: [/* @__PURE__ */ S(F, {
|
|
151
148
|
id: "suggest-target-kind",
|
|
152
|
-
children: /* @__PURE__ */
|
|
153
|
-
}), /* @__PURE__ */
|
|
149
|
+
children: /* @__PURE__ */ S(I, {})
|
|
150
|
+
}), /* @__PURE__ */ C(N, { children: [/* @__PURE__ */ S(P, {
|
|
154
151
|
value: "project",
|
|
155
152
|
children: "A project"
|
|
156
|
-
}), /* @__PURE__ */
|
|
153
|
+
}), /* @__PURE__ */ S(P, {
|
|
157
154
|
value: "experiment",
|
|
158
155
|
children: "An experiment"
|
|
159
156
|
})] })]
|
|
160
157
|
})]
|
|
161
158
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ C("div", {
|
|
163
160
|
className: "space-y-1.5",
|
|
164
161
|
children: [
|
|
165
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ S(T, {
|
|
166
163
|
htmlFor: "suggest-target",
|
|
167
164
|
children: l === "project" ? "Project" : "Experiment"
|
|
168
165
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ C(M, {
|
|
170
167
|
value: f,
|
|
171
168
|
onValueChange: p,
|
|
172
|
-
children: [/* @__PURE__ */
|
|
169
|
+
children: [/* @__PURE__ */ S(F, {
|
|
173
170
|
id: "suggest-target",
|
|
174
|
-
children: /* @__PURE__ */
|
|
175
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
187
|
+
/* @__PURE__ */ C("div", {
|
|
191
188
|
className: "space-y-1.5",
|
|
192
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ S(T, {
|
|
193
190
|
htmlFor: "suggest-objective",
|
|
194
191
|
children: "Objective"
|
|
195
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
200
|
+
/* @__PURE__ */ C("div", {
|
|
204
201
|
className: "space-y-1.5",
|
|
205
|
-
children: [/* @__PURE__ */
|
|
202
|
+
children: [/* @__PURE__ */ S(T, {
|
|
206
203
|
htmlFor: "suggest-constraints",
|
|
207
204
|
children: "Constraints (optional)"
|
|
208
|
-
}), /* @__PURE__ */
|
|
205
|
+
}), /* @__PURE__ */ S(L, {
|
|
209
206
|
id: "suggest-constraints",
|
|
210
|
-
value:
|
|
211
|
-
onChange: (e) =>
|
|
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__ */
|
|
213
|
+
/* @__PURE__ */ S(V, {
|
|
217
214
|
id: "suggest-provider",
|
|
218
215
|
value: E,
|
|
219
|
-
onChange:
|
|
216
|
+
onChange: D
|
|
220
217
|
}),
|
|
221
|
-
|
|
218
|
+
B && /* @__PURE__ */ S("p", {
|
|
222
219
|
className: "text-sm text-status-error-text",
|
|
223
|
-
children:
|
|
220
|
+
children: B
|
|
224
221
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
232
|
+
}), /* @__PURE__ */ C(w, {
|
|
236
233
|
onClick: () => {
|
|
237
234
|
t(), n(U.protocol.id);
|
|
238
235
|
},
|
|
239
|
-
children: [/* @__PURE__ */
|
|
240
|
-
})] }) : /* @__PURE__ */
|
|
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__ */
|
|
242
|
+
}), /* @__PURE__ */ C(w, {
|
|
246
243
|
onClick: () => void K(),
|
|
247
244
|
disabled: i.isPending,
|
|
248
|
-
children: [/* @__PURE__ */
|
|
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
|
|
253
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
253
|
+
children: /* @__PURE__ */ S(D, {
|
|
257
254
|
className: "max-h-[90vh] max-w-lg overflow-y-auto",
|
|
258
|
-
children: e && /* @__PURE__ */
|
|
259
|
-
|
|
260
|
-
|
|
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
|
|
265
|
+
function W({ initialExperimentId: t, onClose: n, onViewExperiment: i }) {
|
|
266
266
|
let a = o(), s = r({ pagination: {
|
|
267
|
-
limit:
|
|
267
|
+
limit: z,
|
|
268
268
|
offset: 0
|
|
269
|
-
} }), [c, d] =
|
|
270
|
-
if (!c)
|
|
271
|
-
|
|
272
|
-
|
|
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__ */
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
|
|
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__ */
|
|
287
|
+
/* @__PURE__ */ C("div", {
|
|
289
288
|
className: "flex flex-wrap items-center gap-2",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
289
|
+
children: [/* @__PURE__ */ S(e, { status: y.recommendation }), /* @__PURE__ */ C("span", {
|
|
291
290
|
className: "text-xs text-text-tertiary",
|
|
292
|
-
children: ["Confidence ",
|
|
291
|
+
children: ["Confidence ", m(y.confidence)]
|
|
293
292
|
})]
|
|
294
293
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ S("p", {
|
|
296
295
|
className: "text-sm text-text-secondary",
|
|
297
|
-
children:
|
|
296
|
+
children: y.rationale
|
|
298
297
|
}),
|
|
299
|
-
|
|
298
|
+
y.flags.length > 0 && /* @__PURE__ */ S("div", {
|
|
300
299
|
className: "flex flex-wrap gap-1.5",
|
|
301
|
-
children:
|
|
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
|
-
|
|
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__ */
|
|
310
|
-
value:
|
|
308
|
+
}), /* @__PURE__ */ S(l, {
|
|
309
|
+
value: y.suggestedParameters,
|
|
311
310
|
emptyLabel: "No specific parameter values were proposed"
|
|
312
311
|
})] }),
|
|
313
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ S("p", {
|
|
314
313
|
className: "text-sm text-text-secondary",
|
|
315
|
-
children:
|
|
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__ */
|
|
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__ */
|
|
321
|
+
/* @__PURE__ */ S("span", {
|
|
323
322
|
className: "break-all font-mono",
|
|
324
|
-
children:
|
|
323
|
+
children: y.agentRunId
|
|
325
324
|
}),
|
|
326
325
|
"."
|
|
327
326
|
]
|
|
328
327
|
})
|
|
329
328
|
]
|
|
330
|
-
}) : /* @__PURE__ */
|
|
329
|
+
}) : /* @__PURE__ */ C("div", {
|
|
331
330
|
className: "space-y-4 py-2",
|
|
332
331
|
children: [
|
|
333
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ C("div", {
|
|
334
333
|
className: "space-y-1.5",
|
|
335
334
|
children: [
|
|
336
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ S(T, {
|
|
337
336
|
htmlFor: "recommend-experiment",
|
|
338
337
|
children: "Experiment"
|
|
339
338
|
}),
|
|
340
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ C(M, {
|
|
341
340
|
value: c,
|
|
342
341
|
onValueChange: d,
|
|
343
|
-
children: [/* @__PURE__ */
|
|
342
|
+
children: [/* @__PURE__ */ S(F, {
|
|
344
343
|
id: "recommend-experiment",
|
|
345
|
-
children: /* @__PURE__ */
|
|
346
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
356
|
+
/* @__PURE__ */ S(V, {
|
|
358
357
|
id: "recommend-provider",
|
|
359
358
|
value: f,
|
|
360
|
-
onChange:
|
|
359
|
+
onChange: p
|
|
361
360
|
}),
|
|
362
|
-
h && /* @__PURE__ */
|
|
361
|
+
h && /* @__PURE__ */ S("p", {
|
|
363
362
|
className: "text-sm text-status-error-text",
|
|
364
363
|
children: h
|
|
365
364
|
}),
|
|
366
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
375
|
+
}), /* @__PURE__ */ C(w, {
|
|
377
376
|
onClick: () => {
|
|
378
|
-
n(), i(
|
|
377
|
+
n(), i(y.experimentId);
|
|
379
378
|
},
|
|
380
|
-
children: ["Open experiment", /* @__PURE__ */
|
|
381
|
-
})] }) : /* @__PURE__ */
|
|
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__ */
|
|
387
|
-
onClick: () => void
|
|
385
|
+
}), /* @__PURE__ */ C(w, {
|
|
386
|
+
onClick: () => void D(),
|
|
388
387
|
disabled: a.isPending,
|
|
389
|
-
children: [/* @__PURE__ */
|
|
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
|
|
394
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
396
|
+
children: /* @__PURE__ */ S(D, {
|
|
398
397
|
className: "max-h-[90vh] max-w-lg overflow-y-auto",
|
|
399
|
-
children: e && /* @__PURE__ */
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
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
|
|
409
|
+
function K({ run: t, onClose: a }) {
|
|
408
410
|
let o = i(), s = r({ pagination: {
|
|
409
|
-
limit:
|
|
411
|
+
limit: z,
|
|
410
412
|
offset: 0
|
|
411
|
-
} }), l =
|
|
412
|
-
if (!y)
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
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__ */
|
|
431
|
-
/* @__PURE__ */
|
|
432
|
-
W ? /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
436
|
+
}) : /* @__PURE__ */ C("div", {
|
|
439
437
|
className: "space-y-4 py-2",
|
|
440
438
|
children: [
|
|
441
|
-
|
|
439
|
+
d && /* @__PURE__ */ C("div", {
|
|
442
440
|
className: "rounded-lg border border-border-seam bg-bg-sunken p-3",
|
|
443
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
444
|
+
}), /* @__PURE__ */ S("div", {
|
|
447
445
|
className: "mt-1.5",
|
|
448
|
-
children: /* @__PURE__ */
|
|
446
|
+
children: /* @__PURE__ */ S(e, { status: d })
|
|
449
447
|
})]
|
|
450
448
|
}),
|
|
451
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ C("div", {
|
|
452
450
|
className: "space-y-1.5",
|
|
453
451
|
children: [
|
|
454
|
-
/* @__PURE__ */
|
|
452
|
+
/* @__PURE__ */ S(T, {
|
|
455
453
|
htmlFor: "override-experiment",
|
|
456
454
|
children: "Experiment"
|
|
457
455
|
}),
|
|
458
|
-
|
|
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__ */
|
|
459
|
+
children: [/* @__PURE__ */ S("p", {
|
|
462
460
|
className: "truncate text-sm font-medium text-text-primary",
|
|
463
|
-
children:
|
|
464
|
-
}), v ? /* @__PURE__ */
|
|
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__ */
|
|
465
|
+
/* @__PURE__ */ S("span", {
|
|
468
466
|
className: "text-xs text-text-tertiary",
|
|
469
467
|
children: "Currently carries"
|
|
470
468
|
}),
|
|
471
|
-
v.recommendation && /* @__PURE__ */
|
|
472
|
-
v.status && /* @__PURE__ */
|
|
469
|
+
v.recommendation && /* @__PURE__ */ S(e, { status: v.recommendation }),
|
|
470
|
+
v.status && /* @__PURE__ */ S(e, { status: v.status })
|
|
473
471
|
]
|
|
474
|
-
}) : /* @__PURE__ */
|
|
472
|
+
}) : /* @__PURE__ */ S("p", {
|
|
475
473
|
className: "mt-1 text-xs text-text-tertiary",
|
|
476
|
-
children:
|
|
474
|
+
children: g.isLoading ? "Checking what this experiment currently carries…" : "No AI read is recorded on this experiment yet."
|
|
477
475
|
})]
|
|
478
|
-
}) : /* @__PURE__ */
|
|
476
|
+
}) : /* @__PURE__ */ C(M, {
|
|
479
477
|
value: y,
|
|
480
|
-
onValueChange:
|
|
481
|
-
children: [/* @__PURE__ */
|
|
478
|
+
onValueChange: b,
|
|
479
|
+
children: [/* @__PURE__ */ S(F, {
|
|
482
480
|
id: "override-experiment",
|
|
483
|
-
children: /* @__PURE__ */
|
|
484
|
-
}), /* @__PURE__ */
|
|
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
|
-
!
|
|
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__ */
|
|
493
|
+
/* @__PURE__ */ C("div", {
|
|
496
494
|
className: "space-y-1.5",
|
|
497
|
-
children: [/* @__PURE__ */
|
|
495
|
+
children: [/* @__PURE__ */ S(T, {
|
|
498
496
|
htmlFor: "override-recommendation",
|
|
499
497
|
children: "Your call"
|
|
500
|
-
}), /* @__PURE__ */
|
|
498
|
+
}), /* @__PURE__ */ C(M, {
|
|
501
499
|
value: E,
|
|
502
|
-
onValueChange: (e) =>
|
|
503
|
-
children: [/* @__PURE__ */
|
|
500
|
+
onValueChange: (e) => D(e),
|
|
501
|
+
children: [/* @__PURE__ */ S(F, {
|
|
504
502
|
id: "override-recommendation",
|
|
505
|
-
children: /* @__PURE__ */
|
|
506
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
510
|
+
/* @__PURE__ */ C("div", {
|
|
513
511
|
className: "space-y-1.5",
|
|
514
|
-
children: [/* @__PURE__ */
|
|
512
|
+
children: [/* @__PURE__ */ S(T, {
|
|
515
513
|
htmlFor: "override-note",
|
|
516
514
|
children: "Note"
|
|
517
|
-
}), /* @__PURE__ */
|
|
515
|
+
}), /* @__PURE__ */ S(L, {
|
|
518
516
|
id: "override-note",
|
|
519
|
-
value:
|
|
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__ */
|
|
523
|
+
H && /* @__PURE__ */ S("p", {
|
|
526
524
|
className: "text-sm text-status-error-text",
|
|
527
525
|
children: H
|
|
528
526
|
}),
|
|
529
|
-
/* @__PURE__ */
|
|
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__ */
|
|
533
|
+
/* @__PURE__ */ S(k, { children: W ? /* @__PURE__ */ S(w, {
|
|
536
534
|
onClick: a,
|
|
537
535
|
children: "Done"
|
|
538
|
-
}) : /* @__PURE__ */
|
|
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__ */
|
|
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
|
|
551
|
-
return /* @__PURE__ */
|
|
548
|
+
function q({ run: e, onOpenChange: t }) {
|
|
549
|
+
return /* @__PURE__ */ S(E, {
|
|
552
550
|
open: e !== null,
|
|
553
551
|
onOpenChange: t,
|
|
554
|
-
children: /* @__PURE__ */
|
|
552
|
+
children: /* @__PURE__ */ S(D, {
|
|
555
553
|
className: "max-h-[90vh] max-w-lg overflow-y-auto",
|
|
556
|
-
children: e && /* @__PURE__ */
|
|
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
|
-
|
|
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
|