@meridianlabs/inspect-scout-viewer 0.4.21 → 0.4.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +47 -58
- package/lib/_commonjsHelpers-DWwsNxpa.js +0 -9
- package/lib/_commonjsHelpers-DWwsNxpa.js.map +0 -1
- package/lib/chunk-DfAF0w94-Oj7OW_Zs.js +0 -9
- package/lib/chunk-DfAF0w94-Oj7OW_Zs.js.map +0 -1
- package/lib/e2e/app-navigation.spec.d.ts +0 -1
- package/lib/e2e/fixtures/app.d.ts +0 -7
- package/lib/e2e/fixtures/handlers.d.ts +0 -2
- package/lib/e2e/fixtures/test-data.d.ts +0 -14
- package/lib/e2e/scan.spec.d.ts +0 -1
- package/lib/e2e/scans.spec.d.ts +0 -1
- package/lib/e2e/transcript.spec.d.ts +0 -1
- package/lib/e2e/transcripts.spec.d.ts +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -161737
- package/lib/index.js.map +0 -1
- package/lib/lib-CBtriEt5-CU1RYBHb.js +0 -1070
- package/lib/lib-CBtriEt5-CU1RYBHb.js.map +0 -1
- package/lib/liteDOM-Cp0aN3bP-DXyQNx3e.js +0 -644
- package/lib/liteDOM-Cp0aN3bP-DXyQNx3e.js.map +0 -1
- package/lib/src/App.d.ts +0 -6
- package/lib/src/AppErrorBoundary.d.ts +0 -15
- package/lib/src/AppRouter.d.ts +0 -6
- package/lib/src/api/api-scout-server.d.ts +0 -8
- package/lib/src/api/api-vscode.d.ts +0 -3
- package/lib/src/api/api.d.ts +0 -44
- package/lib/src/api/attachmentsHelpers.d.ts +0 -1
- package/lib/src/api/expandInputEvents.d.ts +0 -6
- package/lib/src/api/jsonrpc-fetch.d.ts +0 -20
- package/lib/src/api/jsonrpc.d.ts +0 -50
- package/lib/src/api/request.d.ts +0 -34
- package/lib/src/api/vscode-storage.d.ts +0 -3
- package/lib/src/app/components/ActivityBar.d.ts +0 -23
- package/lib/src/app/components/ActivityBarLayout.d.ts +0 -11
- package/lib/src/app/components/AddFilterButton.d.ts +0 -37
- package/lib/src/app/components/BreadCrumbs.d.ts +0 -10
- package/lib/src/app/components/Chip.d.ts +0 -12
- package/lib/src/app/components/ChipGroup.d.ts +0 -7
- package/lib/src/app/components/ColumnHeader.d.ts +0 -11
- package/lib/src/app/components/ColumnPickerButton.d.ts +0 -19
- package/lib/src/app/components/ColumnsPopover.d.ts +0 -25
- package/lib/src/app/components/EditablePath.d.ts +0 -15
- package/lib/src/app/components/EditableText.d.ts +0 -16
- package/lib/src/app/components/Error.d.ts +0 -7
- package/lib/src/app/components/Explanation.d.ts +0 -12
- package/lib/src/app/components/FilterBar.d.ts +0 -35
- package/lib/src/app/components/Footer.d.ts +0 -21
- package/lib/src/app/components/HeadingGrid.d.ts +0 -15
- package/lib/src/app/components/Identifier.d.ts +0 -7
- package/lib/src/app/components/NavButtons.d.ts +0 -12
- package/lib/src/app/components/Navbar.d.ts +0 -11
- package/lib/src/app/components/NextPreviousNav.d.ts +0 -11
- package/lib/src/app/components/Pager.d.ts +0 -9
- package/lib/src/app/components/ProjectBar.d.ts +0 -7
- package/lib/src/app/components/ScansNavbar.d.ts +0 -10
- package/lib/src/app/components/ScoreValue.d.ts +0 -10
- package/lib/src/app/components/TaskName.d.ts +0 -8
- package/lib/src/app/components/TranscriptsNavbar.d.ts +0 -11
- package/lib/src/app/components/ValidationResult.d.ts +0 -9
- package/lib/src/app/components/Value.d.ts +0 -15
- package/lib/src/app/components/columnFilter/ColumnFilterButton.d.ts +0 -6
- package/lib/src/app/components/columnFilter/ColumnFilterControl.d.ts +0 -16
- package/lib/src/app/components/columnFilter/ColumnFilterEditor.d.ts +0 -32
- package/lib/src/app/components/columnFilter/DurationInput.d.ts +0 -9
- package/lib/src/app/components/columnFilter/index.d.ts +0 -12
- package/lib/src/app/components/columnFilter/useAddFilterPopover.d.ts +0 -36
- package/lib/src/app/components/columnFilter/useColumnFilter.d.ts +0 -27
- package/lib/src/app/components/columnFilter/useColumnFilterPopover.d.ts +0 -25
- package/lib/src/app/components/columnSizing/defaultStrategy.d.ts +0 -2
- package/lib/src/app/components/columnSizing/fitContentStrategy.d.ts +0 -2
- package/lib/src/app/components/columnSizing/index.d.ts +0 -5
- package/lib/src/app/components/columnSizing/strategies.d.ts +0 -10
- package/lib/src/app/components/columnSizing/types.d.ts +0 -60
- package/lib/src/app/components/columnTypes.d.ts +0 -46
- package/lib/src/app/components/dataGrid/DataGrid.d.ts +0 -8
- package/lib/src/app/components/dataGrid/index.d.ts +0 -2
- package/lib/src/app/components/dataGrid/types.d.ts +0 -70
- package/lib/src/app/components/useBreadcrumbTruncation.d.ts +0 -12
- package/lib/src/app/components/useFilterBarHandlers.d.ts +0 -41
- package/lib/src/app/hooks/useFilterConditions.d.ts +0 -6
- package/lib/src/app/hooks/useScanFilterConditions.d.ts +0 -6
- package/lib/src/app/hooks/useScanResultSummaries.d.ts +0 -6
- package/lib/src/app/hooks/useScanRoute.d.ts +0 -8
- package/lib/src/app/hooks/useScansFilterBarProps.d.ts +0 -13
- package/lib/src/app/hooks/useSelectedScan.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanDataframe.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanResultData.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanResultInputData.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanner.d.ts +0 -2
- package/lib/src/app/hooks/useTranscriptsFilterBarProps.d.ts +0 -18
- package/lib/src/app/project/ProjectPanel.d.ts +0 -7
- package/lib/src/app/project/SettingsContent.d.ts +0 -7
- package/lib/src/app/project/components/FormFields.d.ts +0 -73
- package/lib/src/app/project/configUtils.d.ts +0 -30
- package/lib/src/app/project/hooks/useNestedConfig.d.ts +0 -28
- package/lib/src/app/runScan/ActiveScanView.d.ts +0 -6
- package/lib/src/app/runScan/DefineScannerSection.d.ts +0 -6
- package/lib/src/app/runScan/LlmScannerParams.d.ts +0 -14
- package/lib/src/app/runScan/RunScanPanel.d.ts +0 -2
- package/lib/src/app/runScan/ScannerParamsPlaceholder.d.ts +0 -6
- package/lib/src/app/scan/ScanPanel.d.ts +0 -2
- package/lib/src/app/scan/ScanPanelBody.d.ts +0 -6
- package/lib/src/app/scan/ScanPanelTitle.d.ts +0 -6
- package/lib/src/app/scan/info/ScanInfo.d.ts +0 -5
- package/lib/src/app/scan/scanners/ScannerPanel.d.ts +0 -5
- package/lib/src/app/scan/scanners/ScannerSidebar.d.ts +0 -5
- package/lib/src/app/scan/scanners/dataframe/DataframeGridApiContext.d.ts +0 -7
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeCSVButtons.d.ts +0 -11
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeClearFiltersButton.d.ts +0 -2
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeColumnsPopover.d.ts +0 -5
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeFilterColumnsButton.d.ts +0 -1
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeWrapTextButton.d.ts +0 -2
- package/lib/src/app/scan/scanners/dataframe/useOperationStatus.d.ts +0 -7
- package/lib/src/app/scan/scanners/list/ScannerResultsGroup.d.ts +0 -6
- package/lib/src/app/scan/scanners/list/ScannerResultsHeader.d.ts +0 -7
- package/lib/src/app/scan/scanners/list/ScannerResultsList.d.ts +0 -14
- package/lib/src/app/scan/scanners/list/ScannerResultsRow.d.ts +0 -9
- package/lib/src/app/scan/scanners/results/ScannerResultsBody.d.ts +0 -12
- package/lib/src/app/scan/scanners/results/ScannerResultsFilter.d.ts +0 -4
- package/lib/src/app/scan/scanners/results/ScannerResultsGroup.d.ts +0 -7
- package/lib/src/app/scan/scanners/results/ScannerResultsSearch.d.ts +0 -2
- package/lib/src/app/scan/scanners/types.d.ts +0 -1
- package/lib/src/app/scannerResult/ScannerResultHeader.d.ts +0 -9
- package/lib/src/app/scannerResult/ScannerResultNav.d.ts +0 -2
- package/lib/src/app/scannerResult/ScannerResultPanel.d.ts +0 -2
- package/lib/src/app/scannerResult/error/ErrorPanel.d.ts +0 -7
- package/lib/src/app/scannerResult/info/InfoPanel.d.ts +0 -9
- package/lib/src/app/scannerResult/metadata/MetadataPanel.d.ts +0 -7
- package/lib/src/app/scannerResult/result/ResultBody.d.ts +0 -10
- package/lib/src/app/scannerResult/result/ResultPanel.d.ts +0 -11
- package/lib/src/app/scannerResult/result/ResultSidebar.d.ts +0 -9
- package/lib/src/app/scannerResult/transcript/TranscriptPanel.d.ts +0 -10
- package/lib/src/app/scans/ScansFilterBar.d.ts +0 -7
- package/lib/src/app/scans/ScansGrid.d.ts +0 -21
- package/lib/src/app/scans/ScansPanel.d.ts +0 -2
- package/lib/src/app/scans/columnSizing/index.d.ts +0 -3
- package/lib/src/app/scans/columnSizing/useColumnSizing.d.ts +0 -33
- package/lib/src/app/scans/columns.d.ts +0 -25
- package/lib/src/app/scans/constants.d.ts +0 -35
- package/lib/src/app/server/index.d.ts +0 -6
- package/lib/src/app/server/useActiveScan.d.ts +0 -3
- package/lib/src/app/server/useActiveScans.d.ts +0 -3
- package/lib/src/app/server/useAdjacentTranscriptIds.d.ts +0 -10
- package/lib/src/app/server/useAppConfig.d.ts +0 -20
- package/lib/src/app/server/useCode.d.ts +0 -4
- package/lib/src/app/server/useHasTranscript.d.ts +0 -8
- package/lib/src/app/server/useProjectConfig.d.ts +0 -30
- package/lib/src/app/server/useScan.d.ts +0 -9
- package/lib/src/app/server/useScanDataframe.d.ts +0 -10
- package/lib/src/app/server/useScanDataframeInput.d.ts +0 -11
- package/lib/src/app/server/useScanners.d.ts +0 -3
- package/lib/src/app/server/useScans.d.ts +0 -3
- package/lib/src/app/server/useScansColumnValues.d.ts +0 -11
- package/lib/src/app/server/useScansInfinite.d.ts +0 -6
- package/lib/src/app/server/useServerTranscripts.d.ts +0 -5
- package/lib/src/app/server/useServerTranscriptsInfinite.d.ts +0 -13
- package/lib/src/app/server/useStartScan.d.ts +0 -3
- package/lib/src/app/server/useTopicInvalidation.d.ts +0 -11
- package/lib/src/app/server/useTranscript.d.ts +0 -9
- package/lib/src/app/server/useTranscriptsColumnValues.d.ts +0 -11
- package/lib/src/app/server/useValidations.d.ts +0 -83
- package/lib/src/app/timeline/components/TimelineEventsView.d.ts +0 -41
- package/lib/src/app/timeline/components/TimelineMinimap.d.ts +0 -30
- package/lib/src/app/timeline/components/TimelineOptionsPopover.d.ts +0 -10
- package/lib/src/app/timeline/components/TimelineSelector.d.ts +0 -11
- package/lib/src/app/timeline/components/TimelineSwimLanes.d.ts +0 -62
- package/lib/src/app/timeline/contentItems.d.ts +0 -29
- package/lib/src/app/timeline/hooks/useActiveTimeline.d.ts +0 -12
- package/lib/src/app/timeline/hooks/useScrubberPercent.d.ts +0 -8
- package/lib/src/app/timeline/hooks/useTimeline.d.ts +0 -46
- package/lib/src/app/timeline/hooks/useTimelineConfig.d.ts +0 -22
- package/lib/src/app/timeline/hooks/useTranscriptTimeline.d.ts +0 -37
- package/lib/src/app/timeline/syntheticNodes.d.ts +0 -7
- package/lib/src/app/timeline/testHelpers.d.ts +0 -26
- package/lib/src/app/timeline/timelineEventNodes.d.ts +0 -93
- package/lib/src/app/timeline/utils/markers.d.ts +0 -41
- package/lib/src/app/timeline/utils/swimlaneLayout.d.ts +0 -96
- package/lib/src/app/timeline/utils/swimlaneRows.d.ts +0 -62
- package/lib/src/app/timeline/utils/timeMapping.d.ts +0 -41
- package/lib/src/app/transcript/TranscriptBody.d.ts +0 -17
- package/lib/src/app/transcript/TranscriptFilterPopover.d.ts +0 -7
- package/lib/src/app/transcript/TranscriptNav.d.ts +0 -10
- package/lib/src/app/transcript/TranscriptPanel.d.ts +0 -2
- package/lib/src/app/transcript/TranscriptTitle.d.ts +0 -7
- package/lib/src/app/transcript/debugEventTree.d.ts +0 -4
- package/lib/src/app/transcript/hooks/useTranscriptColumnFilter.d.ts +0 -11
- package/lib/src/app/transcript/hooks/useTranscriptNavigation.d.ts +0 -12
- package/lib/src/app/transcript/hooks/useTranscriptTimeline.d.ts +0 -1
- package/lib/src/app/transcripts/TranscriptFilterBar.d.ts +0 -8
- package/lib/src/app/transcripts/TranscriptsGrid.d.ts +0 -21
- package/lib/src/app/transcripts/TranscriptsPanel.d.ts +0 -2
- package/lib/src/app/transcripts/columnSizing/index.d.ts +0 -3
- package/lib/src/app/transcripts/columnSizing/types.d.ts +0 -22
- package/lib/src/app/transcripts/columnSizing/useColumnSizing.d.ts +0 -34
- package/lib/src/app/transcripts/columns.d.ts +0 -37
- package/lib/src/app/transcripts/constants.d.ts +0 -35
- package/lib/src/app/types.d.ts +0 -112
- package/lib/src/app/utils/arrow.d.ts +0 -2
- package/lib/src/app/utils/arrowHelpers.d.ts +0 -4
- package/lib/src/app/utils/expandEvents.d.ts +0 -8
- package/lib/src/app/utils/messages.d.ts +0 -7
- package/lib/src/app/utils/refs.d.ts +0 -6
- package/lib/src/app/utils/results.d.ts +0 -10
- package/lib/src/app/utils/router.d.ts +0 -1
- package/lib/src/app/utils/scan.d.ts +0 -12
- package/lib/src/app/utils/transcript.d.ts +0 -29
- package/lib/src/app/utils/useScansDir.d.ts +0 -8
- package/lib/src/app/utils/useTranscriptsDir.d.ts +0 -8
- package/lib/src/app/validation/ValidationPanel.d.ts +0 -2
- package/lib/src/app/validation/components/CopyMoveCasesModal.d.ts +0 -24
- package/lib/src/app/validation/components/ValidationBulkActions.d.ts +0 -16
- package/lib/src/app/validation/components/ValidationCaseCard.d.ts +0 -23
- package/lib/src/app/validation/components/ValidationCaseEditor.d.ts +0 -23
- package/lib/src/app/validation/components/ValidationCaseLabelsEditor.d.ts +0 -20
- package/lib/src/app/validation/components/ValidationCasePredicateSelector.d.ts +0 -19
- package/lib/src/app/validation/components/ValidationCaseTargetEditor.d.ts +0 -13
- package/lib/src/app/validation/components/ValidationCasesList.d.ts +0 -19
- package/lib/src/app/validation/components/ValidationFilterBar.d.ts +0 -14
- package/lib/src/app/validation/components/ValidationSetSelector.d.ts +0 -21
- package/lib/src/app/validation/components/ValidationSplitSelector.d.ts +0 -23
- package/lib/src/app/validation/components/ValidationSummary.d.ts +0 -11
- package/lib/src/app/validation/hooks/useTranscriptsByIds.d.ts +0 -13
- package/lib/src/app/validation/utils.d.ts +0 -55
- package/lib/src/components/AnsiDisplay.d.ts +0 -8
- package/lib/src/components/AsciinemaPlayer.d.ts +0 -19
- package/lib/src/components/AutocompleteInput.d.ts +0 -19
- package/lib/src/components/Card.d.ts +0 -32
- package/lib/src/components/ConfirmationDialog.d.ts +0 -15
- package/lib/src/components/CopyButton.d.ts +0 -12
- package/lib/src/components/DataframeView.d.ts +0 -17
- package/lib/src/components/DownloadScanButton.d.ts +0 -9
- package/lib/src/components/EmptyPanel.d.ts +0 -6
- package/lib/src/components/ErrorPanel.d.ts +0 -12
- package/lib/src/components/ExpandablePanel.d.ts +0 -12
- package/lib/src/components/ExtendedFindContext.d.ts +0 -7
- package/lib/src/components/ExtendedFindProvider.d.ts +0 -6
- package/lib/src/components/FindBand.d.ts +0 -6
- package/lib/src/components/HumanBaselineView.d.ts +0 -21
- package/lib/src/components/JsonPanel.d.ts +0 -11
- package/lib/src/components/LabeledValue.d.ts +0 -11
- package/lib/src/components/LightboxCarousel.d.ts +0 -14
- package/lib/src/components/LiveVirtualList.d.ts +0 -22
- package/lib/src/components/LoadingBar.d.ts +0 -6
- package/lib/src/components/MarkdownDiv.d.ts +0 -11
- package/lib/src/components/MarkdownDivWithReferences.d.ts +0 -18
- package/lib/src/components/MenuActionButton.d.ts +0 -15
- package/lib/src/components/Modal.d.ts +0 -11
- package/lib/src/components/NavPills.d.ts +0 -11
- package/lib/src/components/NoContentsPanel.d.ts +0 -7
- package/lib/src/components/NonIdealState.d.ts +0 -10
- package/lib/src/components/PopOver.d.ts +0 -23
- package/lib/src/components/Preformatted.d.ts +0 -7
- package/lib/src/components/ProgressBar.d.ts +0 -9
- package/lib/src/components/PulsingDots.d.ts +0 -10
- package/lib/src/components/SegmentedControl.d.ts +0 -14
- package/lib/src/components/SourceCodePanel.d.ts +0 -11
- package/lib/src/components/StickyScroll.d.ts +0 -18
- package/lib/src/components/TabSet.d.ts +0 -27
- package/lib/src/components/TextInput.d.ts +0 -10
- package/lib/src/components/ToolButton.d.ts +0 -10
- package/lib/src/components/ToolDropdownButton.d.ts +0 -11
- package/lib/src/components/chat/ChatMessage.d.ts +0 -13
- package/lib/src/components/chat/ChatMessageRenderer.d.ts +0 -15
- package/lib/src/components/chat/ChatMessageRow.d.ts +0 -22
- package/lib/src/components/chat/ChatView.d.ts +0 -21
- package/lib/src/components/chat/ChatViewVirtualList.d.ts +0 -30
- package/lib/src/components/chat/JsonMessageContent.d.ts +0 -7
- package/lib/src/components/chat/MessageCitations.d.ts +0 -6
- package/lib/src/components/chat/MessageContent.d.ts +0 -18
- package/lib/src/components/chat/MessageContents.d.ts +0 -15
- package/lib/src/components/chat/content-data/CompactionData.d.ts +0 -6
- package/lib/src/components/chat/content-data/ContentDataView.d.ts +0 -19
- package/lib/src/components/chat/content-data/WebSearch.d.ts +0 -4
- package/lib/src/components/chat/content-data/WebSearchResults.d.ts +0 -9
- package/lib/src/components/chat/documents/ContentDocumentView.d.ts +0 -8
- package/lib/src/components/chat/messageSearchText.d.ts +0 -5
- package/lib/src/components/chat/messages.d.ts +0 -8
- package/lib/src/components/chat/server-tools/ServerToolCall.d.ts +0 -12
- package/lib/src/components/chat/tools/ToolCallView.d.ts +0 -19
- package/lib/src/components/chat/tools/ToolInput.d.ts +0 -10
- package/lib/src/components/chat/tools/ToolOutput.d.ts +0 -11
- package/lib/src/components/chat/tools/ToolTitle.d.ts +0 -10
- package/lib/src/components/chat/tools/customToolRendering.d.ts +0 -2
- package/lib/src/components/chat/tools/tool-input/TodoWriteInput.d.ts +0 -5
- package/lib/src/components/chat/tools/tool.d.ts +0 -18
- package/lib/src/components/chat/types.d.ts +0 -8
- package/lib/src/components/content/DisplayModeContext.d.ts +0 -9
- package/lib/src/components/content/MetaDataGrid.d.ts +0 -20
- package/lib/src/components/content/RecordTree.d.ts +0 -24
- package/lib/src/components/content/RenderedContent.d.ts +0 -18
- package/lib/src/components/content/RenderedText.d.ts +0 -15
- package/lib/src/components/content/record_processors/store.d.ts +0 -2
- package/lib/src/components/content/record_processors/types.d.ts +0 -1
- package/lib/src/components/content/types.d.ts +0 -18
- package/lib/src/components/icons.d.ts +0 -151
- package/lib/src/components/prism.d.ts +0 -2
- package/lib/src/components/transcript/AgentCardView.d.ts +0 -8
- package/lib/src/components/transcript/ApprovalEventView.d.ts +0 -12
- package/lib/src/components/transcript/CompactionEventView.d.ts +0 -12
- package/lib/src/components/transcript/ErrorEventView.d.ts +0 -12
- package/lib/src/components/transcript/InfoEventView.d.ts +0 -12
- package/lib/src/components/transcript/InputEventView.d.ts +0 -12
- package/lib/src/components/transcript/LoggerEventView.d.ts +0 -12
- package/lib/src/components/transcript/ModelEventView.d.ts +0 -25
- package/lib/src/components/transcript/SampleInitEventView.d.ts +0 -12
- package/lib/src/components/transcript/SampleLimitEventView.d.ts +0 -12
- package/lib/src/components/transcript/SandboxEventView.d.ts +0 -12
- package/lib/src/components/transcript/ScoreEditEventView.d.ts +0 -12
- package/lib/src/components/transcript/ScoreEventView.d.ts +0 -12
- package/lib/src/components/transcript/SpanEventView.d.ts +0 -13
- package/lib/src/components/transcript/StepEventView.d.ts +0 -13
- package/lib/src/components/transcript/SubtaskEventView.d.ts +0 -13
- package/lib/src/components/transcript/TimelineSelectContext.d.ts +0 -7
- package/lib/src/components/transcript/ToolEventView.d.ts +0 -13
- package/lib/src/components/transcript/TranscriptView.d.ts +0 -13
- package/lib/src/components/transcript/TranscriptViewNodes.d.ts +0 -19
- package/lib/src/components/transcript/TranscriptVirtualList.d.ts +0 -31
- package/lib/src/components/transcript/TranscriptVirtualListComponent.d.ts +0 -18
- package/lib/src/components/transcript/event/EventNav.d.ts +0 -12
- package/lib/src/components/transcript/event/EventNavs.d.ts +0 -15
- package/lib/src/components/transcript/event/EventPanel.d.ts +0 -20
- package/lib/src/components/transcript/event/EventProgressPanel.d.ts +0 -6
- package/lib/src/components/transcript/event/EventRow.d.ts +0 -12
- package/lib/src/components/transcript/event/EventSection.d.ts +0 -12
- package/lib/src/components/transcript/event/EventTimingPanel.d.ts +0 -12
- package/lib/src/components/transcript/event/utils.d.ts +0 -2
- package/lib/src/components/transcript/eventSearchText.d.ts +0 -5
- package/lib/src/components/transcript/hooks/useCollapseTranscriptEvent.d.ts +0 -1
- package/lib/src/components/transcript/hooks/useEventNodes.d.ts +0 -7
- package/lib/src/components/transcript/outline/OutlineRow.d.ts +0 -19
- package/lib/src/components/transcript/outline/TranscriptOutline.d.ts +0 -22
- package/lib/src/components/transcript/outline/tree-visitors.d.ts +0 -13
- package/lib/src/components/transcript/outline/useOutlineWidth.d.ts +0 -9
- package/lib/src/components/transcript/resolveMessageToEvent.d.ts +0 -19
- package/lib/src/components/transcript/state/StateDiffView.d.ts +0 -11
- package/lib/src/components/transcript/state/StateEventRenderers.d.ts +0 -48
- package/lib/src/components/transcript/state/StateEventView.d.ts +0 -13
- package/lib/src/components/transcript/timeline.d.ts +0 -128
- package/lib/src/components/transcript/transform/fixups.d.ts +0 -291
- package/lib/src/components/transcript/transform/flatten.d.ts +0 -15
- package/lib/src/components/transcript/transform/transform.d.ts +0 -2
- package/lib/src/components/transcript/transform/treeify.d.ts +0 -3
- package/lib/src/components/transcript/transform/utils.d.ts +0 -18
- package/lib/src/components/transcript/types.d.ts +0 -28
- package/lib/src/components/usage/ModelTokenTable.d.ts +0 -8
- package/lib/src/components/usage/ModelUsagePanel.d.ts +0 -11
- package/lib/src/components/usage/TokenTable.d.ts +0 -14
- package/lib/src/components/usage/UsageCard.d.ts +0 -10
- package/lib/src/debugging/navigationDebugging.d.ts +0 -8
- package/lib/src/hooks/useDocumentTitle.d.ts +0 -26
- package/lib/src/hooks/useDropdownPosition.d.ts +0 -40
- package/lib/src/hooks/useMapAsyncData.d.ts +0 -27
- package/lib/src/hooks/usePreviousValue.d.ts +0 -25
- package/lib/src/hooks/useScrollDirection.d.ts +0 -43
- package/lib/src/hooks/useWindowMessaging.d.ts +0 -19
- package/lib/src/index.d.ts +0 -5
- package/lib/src/main.d.ts +0 -6
- package/lib/src/query/column.d.ts +0 -23
- package/lib/src/query/conditionBuilder.d.ts +0 -29
- package/lib/src/query/index.d.ts +0 -96
- package/lib/src/query/transcriptColumns.d.ts +0 -32
- package/lib/src/query/types.d.ts +0 -62
- package/lib/src/router/activities.d.ts +0 -11
- package/lib/src/router/url.d.ts +0 -76
- package/lib/src/state/hooks/useCollapsedState.d.ts +0 -1
- package/lib/src/state/hooks/useCollapsibleIds.d.ts +0 -1
- package/lib/src/state/hooks/useProperty.d.ts +0 -4
- package/lib/src/state/scrolling.d.ts +0 -27
- package/lib/src/state/store.d.ts +0 -277
- package/lib/src/state/userSettings.d.ts +0 -22
- package/lib/src/test/objectFactories.d.ts +0 -4
- package/lib/src/test/setup-msw.d.ts +0 -1
- package/lib/src/test/test-utils.d.ts +0 -2
- package/lib/src/types/api-types.d.ts +0 -97
- package/lib/src/types/generated.d.ts +0 -5031
- package/lib/src/types/json-value.d.ts +0 -12
- package/lib/src/utils/ansi.d.ts +0 -12
- package/lib/src/utils/array.d.ts +0 -1
- package/lib/src/utils/arrow.d.ts +0 -3
- package/lib/src/utils/asyncData.d.ts +0 -66
- package/lib/src/utils/asyncDataFromQuery.d.ts +0 -13
- package/lib/src/utils/base64.d.ts +0 -4
- package/lib/src/utils/base64url.d.ts +0 -38
- package/lib/src/utils/brand.d.ts +0 -70
- package/lib/src/utils/chatMessage.d.ts +0 -3
- package/lib/src/utils/date.d.ts +0 -34
- package/lib/src/utils/dom.d.ts +0 -1
- package/lib/src/utils/format.d.ts +0 -53
- package/lib/src/utils/html.d.ts +0 -5
- package/lib/src/utils/json-worker.d.ts +0 -2
- package/lib/src/utils/json.d.ts +0 -4
- package/lib/src/utils/logger.d.ts +0 -7
- package/lib/src/utils/mime.d.ts +0 -1
- package/lib/src/utils/object.d.ts +0 -1
- package/lib/src/utils/path.d.ts +0 -28
- package/lib/src/utils/python.d.ts +0 -11
- package/lib/src/utils/react-query.d.ts +0 -4
- package/lib/src/utils/react.d.ts +0 -6
- package/lib/src/utils/router.d.ts +0 -1
- package/lib/src/utils/sync.d.ts +0 -21
- package/lib/src/utils/type.d.ts +0 -15
- package/lib/src/utils/uri.d.ts +0 -19
- package/lib/src/utils/useDebouncedCallback.d.ts +0 -20
- package/lib/src/utils/vscode.d.ts +0 -20
- package/lib/styles/index.css +0 -9030
- package/lib/tex-svg-full-BI3fonbT-FZEHFXiJ.js +0 -27979
- package/lib/tex-svg-full-BI3fonbT-FZEHFXiJ.js.map +0 -1
- package/lib/wgxpath.install-node-Csk64Aj9-Ckau6iLd.js +0 -1081
- package/lib/wgxpath.install-node-Csk64Aj9-Ckau6iLd.js.map +0 -1
- package/lib/xypic-DrMJn58R-DRoJoooA.js +0 -9542
- package/lib/xypic-DrMJn58R-DRoJoooA.js.map +0 -1
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { OperatorModel, LogicalOperatorModel, ConditionValue, Condition, SimpleCondition, CompoundCondition, ConditionBase, ConditionModel } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Internal builder for creating Condition instances.
|
|
4
|
-
*
|
|
5
|
-
* Type assertions in this class are necessary because:
|
|
6
|
-
* - Constructor accepts `compound: boolean` (TypeScript widens true|false to boolean)
|
|
7
|
-
* - Discriminated union requires literal types (`compound: true` or `compound: false`)
|
|
8
|
-
* - Factories guarantee correct literal values at runtime
|
|
9
|
-
* - TypeScript can't statically prove constructor only receives literals
|
|
10
|
-
*
|
|
11
|
-
* This is acceptable because:
|
|
12
|
-
* - Assertions are localized to this internal implementation
|
|
13
|
-
* - Public API (serializers) has zero type assertions
|
|
14
|
-
* - Standard pattern for builder + discriminated union
|
|
15
|
-
*/
|
|
16
|
-
export declare class ConditionBuilder implements ConditionBase {
|
|
17
|
-
readonly left: string | Condition | null;
|
|
18
|
-
readonly operator: OperatorModel | LogicalOperatorModel;
|
|
19
|
-
readonly right: ConditionValue | null;
|
|
20
|
-
readonly compound: boolean;
|
|
21
|
-
private constructor();
|
|
22
|
-
static simple(field: string, operator: OperatorModel, value: ConditionValue): SimpleCondition;
|
|
23
|
-
static compound(operator: LogicalOperatorModel, left: Condition, right?: Condition | null): CompoundCondition;
|
|
24
|
-
and(other: Condition): Condition;
|
|
25
|
-
or(other: Condition): Condition;
|
|
26
|
-
not(): Condition;
|
|
27
|
-
toJSON(): ConditionModel;
|
|
28
|
-
private serializeValue;
|
|
29
|
-
}
|
package/lib/src/query/index.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Query builder for constructing complex filter conditions.
|
|
3
|
-
*
|
|
4
|
-
* Provides a fluent API for building conditions that serialize automatically with JSON.stringify().
|
|
5
|
-
*
|
|
6
|
-
* @example Basic usage
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import { transcriptColumns } from "@/query";
|
|
9
|
-
*
|
|
10
|
-
* // Simple condition
|
|
11
|
-
* const filter = transcriptColumns.model.eq("gpt-4");
|
|
12
|
-
*
|
|
13
|
-
* // Serialize to JSON (automatically via .toJSON())
|
|
14
|
-
* const json = filter.toJSON();
|
|
15
|
-
* // { is_compound: false, left: "model", operator: "=", right: "gpt-4" }
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @example Combining conditions
|
|
19
|
-
* ```typescript
|
|
20
|
-
* // AND operator
|
|
21
|
-
* const andFilter = transcriptColumns.model.eq("gpt-4")
|
|
22
|
-
* .and(transcriptColumns.score.gt(0.8));
|
|
23
|
-
*
|
|
24
|
-
* // OR operator
|
|
25
|
-
* const orFilter = transcriptColumns.model.eq("gpt-4")
|
|
26
|
-
* .or(transcriptColumns.error.isNull());
|
|
27
|
-
*
|
|
28
|
-
* // Complex nested expression
|
|
29
|
-
* const complex = transcriptColumns.task_set.eq("math")
|
|
30
|
-
* .and(transcriptColumns.score.between(0.7, 1.0))
|
|
31
|
-
* .or(transcriptColumns.error.isNull());
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @example All operators
|
|
35
|
-
* ```typescript
|
|
36
|
-
* // Comparison
|
|
37
|
-
* transcriptColumns.score.eq(0.8)
|
|
38
|
-
* transcriptColumns.score.ne(0)
|
|
39
|
-
* transcriptColumns.score.lt(0.5)
|
|
40
|
-
* transcriptColumns.score.lte(0.5)
|
|
41
|
-
* transcriptColumns.score.gt(0.8)
|
|
42
|
-
* transcriptColumns.score.gte(0.8)
|
|
43
|
-
*
|
|
44
|
-
* // Lists
|
|
45
|
-
* transcriptColumns.model.in(["gpt-4", "claude-3"])
|
|
46
|
-
* transcriptColumns.model.notIn(["error"])
|
|
47
|
-
*
|
|
48
|
-
* // Pattern matching
|
|
49
|
-
* transcriptColumns.error.like("%timeout%")
|
|
50
|
-
* transcriptColumns.error.notLike("%success%")
|
|
51
|
-
* transcriptColumns.error.ilike("%error%") // case-insensitive
|
|
52
|
-
* transcriptColumns.error.notIlike("%ok%")
|
|
53
|
-
*
|
|
54
|
-
* // Range
|
|
55
|
-
* transcriptColumns.score.between(0.7, 1.0)
|
|
56
|
-
* transcriptColumns.score.notBetween(0, 0.3)
|
|
57
|
-
*
|
|
58
|
-
* // Null checks
|
|
59
|
-
* transcriptColumns.error.isNull()
|
|
60
|
-
* transcriptColumns.error.isNotNull()
|
|
61
|
-
*
|
|
62
|
-
* // NOT operator
|
|
63
|
-
* transcriptColumns.success.eq(true).not()
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @example Dynamic field access
|
|
67
|
-
* ```typescript
|
|
68
|
-
* // Predefined fields
|
|
69
|
-
* transcriptColumns.model
|
|
70
|
-
* transcriptColumns.score
|
|
71
|
-
* transcriptColumns.transcript_id
|
|
72
|
-
*
|
|
73
|
-
* // Dynamic fields via Proxy
|
|
74
|
-
* transcriptColumns.custom_field.eq("value")
|
|
75
|
-
*
|
|
76
|
-
* // JSON paths
|
|
77
|
-
* transcriptColumns.field("metadata.task.id").eq(123)
|
|
78
|
-
* ```
|
|
79
|
-
*
|
|
80
|
-
* @example Using with fetch
|
|
81
|
-
* ```typescript
|
|
82
|
-
* // POST with JSON body - JSON.stringify() automatically calls .toJSON()
|
|
83
|
-
* const filter = transcriptColumns.model.eq("gpt-4").and(transcriptColumns.score.gt(0.8));
|
|
84
|
-
* fetch("/api/transcripts", {
|
|
85
|
-
* method: "POST",
|
|
86
|
-
* body: JSON.stringify({ filter })
|
|
87
|
-
* });
|
|
88
|
-
* ```
|
|
89
|
-
*
|
|
90
|
-
* @module query
|
|
91
|
-
*/
|
|
92
|
-
export { Column } from './column';
|
|
93
|
-
export { ConditionBuilder } from './conditionBuilder';
|
|
94
|
-
export { TranscriptColumns, transcriptColumns } from './transcriptColumns';
|
|
95
|
-
export type { OperatorModel, LogicalOperatorModel, ConditionModel, OrderByModel, ScalarValue, ConditionValue, Condition, } from './types';
|
|
96
|
-
export { isScalarArray, isTuple } from './types';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Column } from './column';
|
|
2
|
-
/**
|
|
3
|
-
* Transcript-specific column definitions for building filter conditions.
|
|
4
|
-
*
|
|
5
|
-
* Provides predefined columns matching the transcript schema, plus dynamic
|
|
6
|
-
* field access for custom or nested fields.
|
|
7
|
-
*/
|
|
8
|
-
export declare class TranscriptColumns {
|
|
9
|
-
readonly transcript_id: Column;
|
|
10
|
-
readonly source_type: Column;
|
|
11
|
-
readonly source_id: Column;
|
|
12
|
-
readonly source_uri: Column;
|
|
13
|
-
readonly date: Column;
|
|
14
|
-
readonly task_set: Column;
|
|
15
|
-
readonly task_id: Column;
|
|
16
|
-
readonly task_repeat: Column;
|
|
17
|
-
readonly agent: Column;
|
|
18
|
-
readonly agent_args: Column;
|
|
19
|
-
readonly model: Column;
|
|
20
|
-
readonly model_options: Column;
|
|
21
|
-
readonly score: Column;
|
|
22
|
-
readonly success: Column;
|
|
23
|
-
readonly total_time: Column;
|
|
24
|
-
readonly message_count: Column;
|
|
25
|
-
readonly error: Column;
|
|
26
|
-
readonly limit: Column;
|
|
27
|
-
private static createProxy;
|
|
28
|
-
private static _instance;
|
|
29
|
-
static get instance(): TranscriptColumns;
|
|
30
|
-
field(name: string): Column;
|
|
31
|
-
}
|
|
32
|
-
export declare const transcriptColumns: TranscriptColumns;
|
package/lib/src/query/types.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { components } from '../types/generated';
|
|
2
|
-
/** SQL comparison operators. */
|
|
3
|
-
export type OperatorModel = components["schemas"]["Operator"];
|
|
4
|
-
/** Logical operators for combining conditions. */
|
|
5
|
-
export type LogicalOperatorModel = components["schemas"]["LogicalOperator"];
|
|
6
|
-
/** JSON representation of a Condition (matches Python Pydantic schema). */
|
|
7
|
-
export type ConditionModel = components["schemas"]["Condition"];
|
|
8
|
-
/** Scalar values that can be used in conditions (matching Python). */
|
|
9
|
-
export type ScalarValue = string | number | boolean | null;
|
|
10
|
-
/**
|
|
11
|
-
* Base interface with shared methods for all conditions.
|
|
12
|
-
*/
|
|
13
|
-
export interface ConditionBase {
|
|
14
|
-
/** Combine conditions with AND. */
|
|
15
|
-
and(other: Condition): Condition;
|
|
16
|
-
/** Combine conditions with OR. */
|
|
17
|
-
or(other: Condition): Condition;
|
|
18
|
-
/** Negate a condition with NOT. */
|
|
19
|
-
not(): Condition;
|
|
20
|
-
/** Serialize to JSON format (called automatically by JSON.stringify()). */
|
|
21
|
-
toJSON(): ConditionModel;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Simple condition: column comparison (e.g., model = "gpt-4").
|
|
25
|
-
*/
|
|
26
|
-
export interface SimpleCondition extends ConditionBase {
|
|
27
|
-
/** Discriminant for simple conditions. */
|
|
28
|
-
readonly compound: false;
|
|
29
|
-
/** Column name. */
|
|
30
|
-
readonly left: string;
|
|
31
|
-
/** Comparison operator. */
|
|
32
|
-
readonly operator: OperatorModel;
|
|
33
|
-
/** Comparison value. */
|
|
34
|
-
readonly right: Exclude<ConditionValue, Condition> | null;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Compound condition: logical combination (e.g., AND, OR, NOT).
|
|
38
|
-
*/
|
|
39
|
-
export interface CompoundCondition extends ConditionBase {
|
|
40
|
-
/** Discriminant for compound conditions. */
|
|
41
|
-
readonly compound: true;
|
|
42
|
-
/** Left operand. */
|
|
43
|
-
readonly left: Condition;
|
|
44
|
-
/** Logical operator. */
|
|
45
|
-
readonly operator: LogicalOperatorModel;
|
|
46
|
-
/** Right operand (null for NOT). */
|
|
47
|
-
readonly right: Condition | null;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* WHERE clause condition that can be combined with others.
|
|
51
|
-
*
|
|
52
|
-
* Discriminated union enables TypeScript to automatically narrow types
|
|
53
|
-
* based on the `compound` property without requiring type assertions.
|
|
54
|
-
*/
|
|
55
|
-
export type Condition = SimpleCondition | CompoundCondition;
|
|
56
|
-
export type ConditionValue = ScalarValue | ScalarValue[] | [ScalarValue, ScalarValue] | Condition;
|
|
57
|
-
export declare function isSimpleCondition(condition: Condition): condition is SimpleCondition;
|
|
58
|
-
export declare function isCompoundCondition(condition: Condition): condition is CompoundCondition;
|
|
59
|
-
export declare const isScalarArray: (val: unknown) => val is ScalarValue[];
|
|
60
|
-
export declare const isTuple: (val: unknown) => val is [ScalarValue, ScalarValue];
|
|
61
|
-
/** Sort column specification for ORDER BY clauses (matches Python Pydantic schema). */
|
|
62
|
-
export type OrderByModel = components["schemas"]["OrderBy"];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface ActivityConfig {
|
|
2
|
-
id: string;
|
|
3
|
-
label: string;
|
|
4
|
-
icon: string;
|
|
5
|
-
route: string;
|
|
6
|
-
routePatterns?: string[];
|
|
7
|
-
description?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const activities: ActivityConfig[];
|
|
10
|
-
export declare const getActivityByRoute: (path: string) => ActivityConfig | undefined;
|
|
11
|
-
export declare const getActivityById: (id: string) => ActivityConfig | undefined;
|
package/lib/src/router/url.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export declare const kScansRootRouteUrlPattern = "/scans";
|
|
2
|
-
export declare const kScansRouteUrlPattern = "/scans/:scansDir";
|
|
3
|
-
export declare const kScansWithPathRouteUrlPattern = "/scans/:scansDir/*";
|
|
4
|
-
export declare const kScanRouteUrlPattern = "/scan/:scansDir/*";
|
|
5
|
-
export declare const kScanResultRouteUrlPattern = "/scan/:scansDir/*/*";
|
|
6
|
-
export declare const kTranscriptsRouteUrlPattern = "/transcripts";
|
|
7
|
-
export declare const kProjectRouteUrlPattern = "/project";
|
|
8
|
-
export declare const kValidationRouteUrlPattern = "/validation";
|
|
9
|
-
export declare const kTranscriptDetailRoute = "/transcripts/:transcriptsDir/:transcriptId";
|
|
10
|
-
export declare const kTranscriptDetailRouteUrlPattern: RegExp;
|
|
11
|
-
export declare const kScanIdPattern: RegExp;
|
|
12
|
-
export declare const kScannerQueryParam = "scanner";
|
|
13
|
-
export declare const kValidationQueryParam = "validation";
|
|
14
|
-
export declare const kValidationSetQueryParam = "validationSet";
|
|
15
|
-
export declare const kDataframeColumnsQueryParam = "cols";
|
|
16
|
-
export declare const scanRoute: (scansDir: string, relativePath: string, searchParams?: URLSearchParams) => string;
|
|
17
|
-
export declare const scansRoute: (scansDir: string, relativePath?: string, searchParams?: URLSearchParams) => string;
|
|
18
|
-
export declare const scanResultRoute: (scansDir: string, scanRelativePath: string, scanResultId?: string, searchParams?: URLSearchParams) => string;
|
|
19
|
-
export declare const transcriptsRoute: (searchParams?: URLSearchParams) => string;
|
|
20
|
-
export declare const projectRoute: () => string;
|
|
21
|
-
export declare const validationRoute: () => string;
|
|
22
|
-
export declare const transcriptRoute: (transcriptsDir: string, transcriptId: string, searchParams?: URLSearchParams, validationSetUri?: string) => string;
|
|
23
|
-
/**
|
|
24
|
-
* Validates if a path matches the scan_id pattern.
|
|
25
|
-
* The path must end with scan_id=[22 characters of alphanumeric, underscore, dot, or dash]
|
|
26
|
-
*
|
|
27
|
-
* @param path - The path to validate
|
|
28
|
-
* @returns true if the path is valid, false otherwise
|
|
29
|
-
*/
|
|
30
|
-
export declare const isValidScanPath: (path: string) => boolean;
|
|
31
|
-
export declare const isValidTranscriptPath: (path: string) => boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Extracts the relative path from route params.
|
|
34
|
-
* Use this with useParams() when you're on a /scan/* route.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* const params = useParams<{ "*": string }>();
|
|
38
|
-
* const relativePath = getRelativePathFromParams(params);
|
|
39
|
-
*/
|
|
40
|
-
export declare const getRelativePathFromParams: (params: Readonly<Partial<{
|
|
41
|
-
"*": string;
|
|
42
|
-
}>>) => string;
|
|
43
|
-
export declare const parseTranscriptParams: (params: Readonly<Partial<{
|
|
44
|
-
transcriptsDir: string;
|
|
45
|
-
transcriptId: string;
|
|
46
|
-
}>>) => {
|
|
47
|
-
transcriptsDir?: string;
|
|
48
|
-
transcriptId?: string;
|
|
49
|
-
};
|
|
50
|
-
export declare const parseScanParams: (params: Readonly<Partial<{
|
|
51
|
-
scansDir: string;
|
|
52
|
-
"*": string;
|
|
53
|
-
}>>) => {
|
|
54
|
-
scansDir?: string;
|
|
55
|
-
relativePath: string;
|
|
56
|
-
scanPath: string;
|
|
57
|
-
scanResultUuid?: string;
|
|
58
|
-
};
|
|
59
|
-
export declare const parseScanResultPath: (fullPath: string) => {
|
|
60
|
-
scanPath: string;
|
|
61
|
-
scanResultUuid?: string;
|
|
62
|
-
};
|
|
63
|
-
export declare const updateScannerParam: (searchParams: URLSearchParams, scanner: string) => URLSearchParams;
|
|
64
|
-
export declare const getScannerParam: (searchParams: URLSearchParams) => string | undefined;
|
|
65
|
-
export declare const updateValidationParam: (searchParams: URLSearchParams, isOpen: boolean) => URLSearchParams;
|
|
66
|
-
export declare const getValidationParam: (searchParams: URLSearchParams) => boolean;
|
|
67
|
-
export declare const getValidationSetParam: (searchParams: URLSearchParams) => string | undefined;
|
|
68
|
-
export declare const updateValidationSetParam: (searchParams: URLSearchParams, uri: string | undefined) => URLSearchParams;
|
|
69
|
-
export declare const getColumnsParam: (searchParams: URLSearchParams) => string[] | undefined;
|
|
70
|
-
export declare const updateColumnsParam: (searchParams: URLSearchParams, columns: string[] | undefined) => URLSearchParams;
|
|
71
|
-
export declare const isHostedEnvironment: () => boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Opens a route in a new browser tab.
|
|
74
|
-
* Handles the hash router URL format.
|
|
75
|
-
*/
|
|
76
|
-
export declare const openRouteInNewTab: (route: string) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useCollapsedState: (id: string, defaultValue?: boolean, scope?: string) => [boolean, (value: boolean) => void];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useCollapsibleIds: (key: string) => [Record<string, boolean>, (id: string, value: boolean) => void, () => void];
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
import { VirtuosoHandle } from 'react-virtuoso';
|
|
3
|
-
export declare function useStatefulScrollPosition<T extends HTMLElement = HTMLDivElement>(elementRef: RefObject<T | null>, elementKey: string, delay?: number, scrollable?: boolean): {
|
|
4
|
-
restoreScrollPosition: () => void;
|
|
5
|
-
};
|
|
6
|
-
export declare const useVirtuosoState: (virtuosoRef: RefObject<VirtuosoHandle | null>, elementKey: string, delay?: number) => {
|
|
7
|
-
getRestoreState: () => any;
|
|
8
|
-
isScrolling: (scrolling: boolean) => void;
|
|
9
|
-
visibleRange: {
|
|
10
|
-
startIndex: number;
|
|
11
|
-
endIndex: number;
|
|
12
|
-
totalCount: number;
|
|
13
|
-
} | {
|
|
14
|
-
startIndex: number;
|
|
15
|
-
endIndex: number;
|
|
16
|
-
};
|
|
17
|
-
setVisibleRange: (value: {
|
|
18
|
-
startIndex: number;
|
|
19
|
-
endIndex: number;
|
|
20
|
-
totalCount: number;
|
|
21
|
-
}) => void;
|
|
22
|
-
};
|
|
23
|
-
export declare function useRafThrottle<T extends (...args: unknown[]) => unknown>(callback: T): (...args: Parameters<T>) => void;
|
|
24
|
-
export declare function useScrollTrack(elementIds: string[], onElementVisible: (id: string) => void, scrollRef?: RefObject<HTMLElement | null>, options?: {
|
|
25
|
-
topOffset?: number;
|
|
26
|
-
checkInterval?: number;
|
|
27
|
-
}): void;
|
package/lib/src/state/store.d.ts
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import { ColumnSizingState, RowSelectionState, SortingState } from '@tanstack/react-table';
|
|
2
|
-
import { GridState } from 'ag-grid-community';
|
|
3
|
-
import { StateSnapshot } from 'react-virtuoso';
|
|
4
|
-
import { ScoutApiV2 } from '../api/api';
|
|
5
|
-
import { ColumnSizingStrategyKey } from '../app/components/columnSizing';
|
|
6
|
-
import { ScanColumnKey } from '../app/scans/columns';
|
|
7
|
-
import { ErrorScope, ResultGroup, ScanResultSummary, SortColumn } from '../app/types';
|
|
8
|
-
import { SimpleCondition } from '../query/types';
|
|
9
|
-
import { TranscriptInfo } from '../types/api-types';
|
|
10
|
-
export type FilterType = "string" | "number" | "boolean" | "date" | "datetime" | "duration" | "unknown";
|
|
11
|
-
export interface ColumnFilter {
|
|
12
|
-
columnId: string;
|
|
13
|
-
filterType: FilterType;
|
|
14
|
-
condition: SimpleCondition | null;
|
|
15
|
-
}
|
|
16
|
-
export interface TranscriptsTableState {
|
|
17
|
-
columnSizing: ColumnSizingState;
|
|
18
|
-
columnOrder: string[];
|
|
19
|
-
sorting: SortingState;
|
|
20
|
-
rowSelection: RowSelectionState;
|
|
21
|
-
focusedRowId: string | null;
|
|
22
|
-
columnFilters: Record<string, ColumnFilter>;
|
|
23
|
-
visibleColumns?: Array<keyof TranscriptInfo>;
|
|
24
|
-
sizingStrategy: ColumnSizingStrategyKey;
|
|
25
|
-
manuallyResizedColumns: string[];
|
|
26
|
-
}
|
|
27
|
-
export interface ScansTableState {
|
|
28
|
-
columnSizing: ColumnSizingState;
|
|
29
|
-
columnOrder: ScanColumnKey[];
|
|
30
|
-
sorting: SortingState;
|
|
31
|
-
rowSelection: RowSelectionState;
|
|
32
|
-
focusedRowId: string | null;
|
|
33
|
-
columnFilters: Record<string, ColumnFilter>;
|
|
34
|
-
visibleColumns?: ScanColumnKey[];
|
|
35
|
-
sizingStrategy: ColumnSizingStrategyKey;
|
|
36
|
-
manuallyResizedColumns: string[];
|
|
37
|
-
}
|
|
38
|
-
interface TranscriptState {
|
|
39
|
-
excludedTypes?: string[];
|
|
40
|
-
collapsed?: boolean;
|
|
41
|
-
outlineCollapsed?: boolean;
|
|
42
|
-
displayMode?: "rendered" | "raw";
|
|
43
|
-
validationSidebarCollapsed?: boolean;
|
|
44
|
-
}
|
|
45
|
-
interface StoreState {
|
|
46
|
-
singleFileMode?: boolean;
|
|
47
|
-
hasInitializedEmbeddedData?: boolean;
|
|
48
|
-
hasInitializedRouting?: boolean;
|
|
49
|
-
scopedErrors: Record<ErrorScope, string | undefined>;
|
|
50
|
-
showFind?: boolean;
|
|
51
|
-
visibleScanJobCount?: number;
|
|
52
|
-
selectedScanLocation?: string;
|
|
53
|
-
visibleScannerResults: ScanResultSummary[];
|
|
54
|
-
visibleScannerResultsCount: number;
|
|
55
|
-
selectedScanResult?: string;
|
|
56
|
-
displayedScanResult?: string;
|
|
57
|
-
properties: Record<string, Record<string, unknown> | undefined>;
|
|
58
|
-
scrollPositions: Record<string, number>;
|
|
59
|
-
listPositions: Record<string, StateSnapshot>;
|
|
60
|
-
visibleRanges: Record<string, {
|
|
61
|
-
startIndex: number;
|
|
62
|
-
endIndex: number;
|
|
63
|
-
totalCount: number;
|
|
64
|
-
}>;
|
|
65
|
-
gridStates: Record<string, GridState>;
|
|
66
|
-
selectedResultsTab?: string;
|
|
67
|
-
selectedResultTab?: string;
|
|
68
|
-
collapsedBuckets: Record<string, Record<string, boolean>>;
|
|
69
|
-
selectedScanner?: string;
|
|
70
|
-
selectedResultsView?: string;
|
|
71
|
-
selectedFilter?: string;
|
|
72
|
-
showingRefPopover?: string;
|
|
73
|
-
groupResultsBy?: ResultGroup;
|
|
74
|
-
sortResults?: SortColumn[];
|
|
75
|
-
scansSearchText?: string;
|
|
76
|
-
highlightLabeled?: boolean;
|
|
77
|
-
selectedResultRow?: number;
|
|
78
|
-
dataframeWrapText?: boolean;
|
|
79
|
-
dataframeShowFilterColumns?: boolean;
|
|
80
|
-
dataframeFilterColumns?: string[];
|
|
81
|
-
transcriptCollapsedEvents: Record<string, Record<string, boolean>>;
|
|
82
|
-
transcriptOutlineId?: string;
|
|
83
|
-
selectedTranscriptTab?: string;
|
|
84
|
-
userTranscriptsDir?: string;
|
|
85
|
-
userScansDir?: string;
|
|
86
|
-
transcripts?: TranscriptInfo[];
|
|
87
|
-
transcriptsDir?: string;
|
|
88
|
-
transcriptsTableState: TranscriptsTableState;
|
|
89
|
-
scansTableState: ScansTableState;
|
|
90
|
-
transcriptState: TranscriptState;
|
|
91
|
-
selectedValidationSetUri?: string;
|
|
92
|
-
validationCaseSelection: Record<string, boolean>;
|
|
93
|
-
validationSplitFilter?: string;
|
|
94
|
-
validationSearchText?: string;
|
|
95
|
-
editorSelectedValidationSetUri?: string;
|
|
96
|
-
setShowFind: (show: boolean) => void;
|
|
97
|
-
setSingleFileMode: (enabled: boolean) => void;
|
|
98
|
-
setHasInitializedEmbeddedData: (initialized: boolean) => void;
|
|
99
|
-
setHasInitializedRouting: (initialized: boolean) => void;
|
|
100
|
-
setError: (scope: ErrorScope, error: string | undefined) => void;
|
|
101
|
-
clearError: (scope: ErrorScope) => void;
|
|
102
|
-
setVisibleScanJobCount: (count: number) => void;
|
|
103
|
-
setSelectedScanLocation: (location: string) => void;
|
|
104
|
-
setSelectedScanner: (scanner: string) => void;
|
|
105
|
-
setSelectedScanResult: (result: string) => void;
|
|
106
|
-
setDisplayedScanResult: (result: string | undefined) => void;
|
|
107
|
-
setVisibleScannerResults: (results: ScanResultSummary[]) => void;
|
|
108
|
-
setVisibleScannerResultsCount: (count: number) => void;
|
|
109
|
-
clearScanState: () => void;
|
|
110
|
-
clearScansState: () => void;
|
|
111
|
-
clearTranscriptState: () => void;
|
|
112
|
-
setPropertyValue: <T>(id: string, propertyName: string, value: T) => void;
|
|
113
|
-
getPropertyValue: <T>(id: string, propertyName: string, defaultValue?: T) => T | undefined;
|
|
114
|
-
removePropertyValue: (id: string, propertyName: string) => void;
|
|
115
|
-
setCollapsed: (bucket: string, key: string, value: boolean) => void;
|
|
116
|
-
clearCollapsed: (bucket: string) => void;
|
|
117
|
-
getScrollPosition: (path: string) => number | undefined;
|
|
118
|
-
setScrollPosition: (path: string, position: number) => void;
|
|
119
|
-
setListPosition: (name: string, position: StateSnapshot) => void;
|
|
120
|
-
clearListPosition: (name: string) => void;
|
|
121
|
-
clearListPositionsWithPrefix: (prefix: string) => void;
|
|
122
|
-
setGridState: (name: string, state: GridState) => void;
|
|
123
|
-
clearGridState: (name: string) => void;
|
|
124
|
-
getVisibleRange: (name: string) => {
|
|
125
|
-
startIndex: number;
|
|
126
|
-
endIndex: number;
|
|
127
|
-
totalCount: number;
|
|
128
|
-
};
|
|
129
|
-
setVisibleRange: (name: string, value: {
|
|
130
|
-
startIndex: number;
|
|
131
|
-
endIndex: number;
|
|
132
|
-
totalCount: number;
|
|
133
|
-
}) => void;
|
|
134
|
-
clearVisibleRange: (name: string) => void;
|
|
135
|
-
setSelectedResultsTab: (tab: string) => void;
|
|
136
|
-
setSelectedResultTab: (tab: string) => void;
|
|
137
|
-
setTranscriptOutlineId: (id: string) => void;
|
|
138
|
-
clearTranscriptOutlineId: () => void;
|
|
139
|
-
setSelectedTranscriptTab: (tab: string) => void;
|
|
140
|
-
setTranscriptCollapsedEvent: (scope: string, event: string, collapsed: boolean) => void;
|
|
141
|
-
setTranscriptCollapsedEvents: (scope: string, events: Record<string, boolean>) => void;
|
|
142
|
-
clearTranscriptCollapsedEvents: (scope: string) => void;
|
|
143
|
-
setSelectedResultsView: (view: string) => void;
|
|
144
|
-
setSelectedFilter: (filter: string) => void;
|
|
145
|
-
setShowingRefPopover: (popoverKey: string) => void;
|
|
146
|
-
clearShowingRefPopover: () => void;
|
|
147
|
-
setGroupResultsBy: (groupBy: ResultGroup) => void;
|
|
148
|
-
setSortResults: (sortColumns?: SortColumn[]) => void;
|
|
149
|
-
setScansSearchText: (text: string) => void;
|
|
150
|
-
setHighlightLabeled: (highlight: boolean) => void;
|
|
151
|
-
setSelectedResultRow: (row: number) => void;
|
|
152
|
-
setDataframeWrapText: (wrap: boolean) => void;
|
|
153
|
-
setDataframeFilterColumns: (columns: string[]) => void;
|
|
154
|
-
setDataframeShowFilterColumns: (show: boolean) => void;
|
|
155
|
-
setUserScansDir: (path: string) => void;
|
|
156
|
-
setUserTranscriptsDir: (path: string) => void;
|
|
157
|
-
setTranscripts: (transcripts: TranscriptInfo[]) => void;
|
|
158
|
-
setTranscriptsDir: (path: string) => void;
|
|
159
|
-
setTranscriptsTableState: (updater: TranscriptsTableState | ((prev: TranscriptsTableState) => TranscriptsTableState)) => void;
|
|
160
|
-
setTranscriptState: (updater: TranscriptState | ((prev: TranscriptState) => TranscriptState)) => void;
|
|
161
|
-
setScansTableState: (updater: ScansTableState | ((prev: ScansTableState) => ScansTableState)) => void;
|
|
162
|
-
setSelectedValidationSetUri: (uri: string | undefined) => void;
|
|
163
|
-
setValidationCaseSelection: (selection: Record<string, boolean>) => void;
|
|
164
|
-
toggleValidationCaseSelection: (caseId: string) => void;
|
|
165
|
-
setValidationSplitFilter: (split: string | undefined) => void;
|
|
166
|
-
setValidationSearchText: (text: string | undefined) => void;
|
|
167
|
-
clearValidationState: () => void;
|
|
168
|
-
setEditorSelectedValidationSetUri: (uri: string | undefined) => void;
|
|
169
|
-
}
|
|
170
|
-
export declare const createStore: (api: ScoutApiV2) => import('zustand').UseBoundStore<Omit<Omit<Omit<import('zustand').StoreApi<StoreState>, "setState" | "devtools"> & {
|
|
171
|
-
setState(partial: StoreState | Partial<StoreState> | ((state: StoreState) => StoreState | Partial<StoreState>), replace?: false | undefined, action?: (string | {
|
|
172
|
-
[x: string]: unknown;
|
|
173
|
-
[x: number]: unknown;
|
|
174
|
-
[x: symbol]: unknown;
|
|
175
|
-
type: string;
|
|
176
|
-
}) | undefined): void;
|
|
177
|
-
setState(state: StoreState | ((state: StoreState) => StoreState), replace: true, action?: (string | {
|
|
178
|
-
[x: string]: unknown;
|
|
179
|
-
[x: number]: unknown;
|
|
180
|
-
[x: symbol]: unknown;
|
|
181
|
-
type: string;
|
|
182
|
-
}) | undefined): void;
|
|
183
|
-
devtools: {
|
|
184
|
-
cleanup: () => void;
|
|
185
|
-
};
|
|
186
|
-
}, "setState" | "persist"> & {
|
|
187
|
-
setState(partial: StoreState | Partial<StoreState> | ((state: StoreState) => StoreState | Partial<StoreState>), replace?: false | undefined, action?: (string | {
|
|
188
|
-
[x: string]: unknown;
|
|
189
|
-
[x: number]: unknown;
|
|
190
|
-
[x: symbol]: unknown;
|
|
191
|
-
type: string;
|
|
192
|
-
}) | undefined): unknown;
|
|
193
|
-
setState(state: StoreState | ((state: StoreState) => StoreState), replace: true, action?: (string | {
|
|
194
|
-
[x: string]: unknown;
|
|
195
|
-
[x: number]: unknown;
|
|
196
|
-
[x: symbol]: unknown;
|
|
197
|
-
type: string;
|
|
198
|
-
}) | undefined): unknown;
|
|
199
|
-
persist: {
|
|
200
|
-
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<StoreState, unknown, unknown>>) => void;
|
|
201
|
-
clearStorage: () => void;
|
|
202
|
-
rehydrate: () => Promise<void> | void;
|
|
203
|
-
hasHydrated: () => boolean;
|
|
204
|
-
onHydrate: (fn: (state: StoreState) => void) => () => void;
|
|
205
|
-
onFinishHydration: (fn: (state: StoreState) => void) => () => void;
|
|
206
|
-
getOptions: () => Partial<import('zustand/middleware').PersistOptions<StoreState, unknown, unknown>>;
|
|
207
|
-
};
|
|
208
|
-
}, "setState"> & {
|
|
209
|
-
setState(nextStateOrUpdater: StoreState | Partial<StoreState> | ((state: import('immer').WritableDraft<StoreState>) => void), shouldReplace?: false, action?: (string | {
|
|
210
|
-
[x: string]: unknown;
|
|
211
|
-
[x: number]: unknown;
|
|
212
|
-
[x: symbol]: unknown;
|
|
213
|
-
type: string;
|
|
214
|
-
}) | undefined): unknown;
|
|
215
|
-
setState(nextStateOrUpdater: StoreState | ((state: import('immer').WritableDraft<StoreState>) => void), shouldReplace: true, action?: (string | {
|
|
216
|
-
[x: string]: unknown;
|
|
217
|
-
[x: number]: unknown;
|
|
218
|
-
[x: symbol]: unknown;
|
|
219
|
-
type: string;
|
|
220
|
-
}) | undefined): unknown;
|
|
221
|
-
}>;
|
|
222
|
-
export declare const StoreProvider: import('react').Provider<import('zustand').UseBoundStore<Omit<Omit<Omit<import('zustand').StoreApi<StoreState>, "setState" | "devtools"> & {
|
|
223
|
-
setState(partial: StoreState | Partial<StoreState> | ((state: StoreState) => StoreState | Partial<StoreState>), replace?: false | undefined, action?: (string | {
|
|
224
|
-
[x: string]: unknown;
|
|
225
|
-
[x: number]: unknown;
|
|
226
|
-
[x: symbol]: unknown;
|
|
227
|
-
type: string;
|
|
228
|
-
}) | undefined): void;
|
|
229
|
-
setState(state: StoreState | ((state: StoreState) => StoreState), replace: true, action?: (string | {
|
|
230
|
-
[x: string]: unknown;
|
|
231
|
-
[x: number]: unknown;
|
|
232
|
-
[x: symbol]: unknown;
|
|
233
|
-
type: string;
|
|
234
|
-
}) | undefined): void;
|
|
235
|
-
devtools: {
|
|
236
|
-
cleanup: () => void;
|
|
237
|
-
};
|
|
238
|
-
}, "setState" | "persist"> & {
|
|
239
|
-
setState(partial: StoreState | Partial<StoreState> | ((state: StoreState) => StoreState | Partial<StoreState>), replace?: false | undefined, action?: (string | {
|
|
240
|
-
[x: string]: unknown;
|
|
241
|
-
[x: number]: unknown;
|
|
242
|
-
[x: symbol]: unknown;
|
|
243
|
-
type: string;
|
|
244
|
-
}) | undefined): unknown;
|
|
245
|
-
setState(state: StoreState | ((state: StoreState) => StoreState), replace: true, action?: (string | {
|
|
246
|
-
[x: string]: unknown;
|
|
247
|
-
[x: number]: unknown;
|
|
248
|
-
[x: symbol]: unknown;
|
|
249
|
-
type: string;
|
|
250
|
-
}) | undefined): unknown;
|
|
251
|
-
persist: {
|
|
252
|
-
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<StoreState, unknown, unknown>>) => void;
|
|
253
|
-
clearStorage: () => void;
|
|
254
|
-
rehydrate: () => Promise<void> | void;
|
|
255
|
-
hasHydrated: () => boolean;
|
|
256
|
-
onHydrate: (fn: (state: StoreState) => void) => () => void;
|
|
257
|
-
onFinishHydration: (fn: (state: StoreState) => void) => () => void;
|
|
258
|
-
getOptions: () => Partial<import('zustand/middleware').PersistOptions<StoreState, unknown, unknown>>;
|
|
259
|
-
};
|
|
260
|
-
}, "setState"> & {
|
|
261
|
-
setState(nextStateOrUpdater: StoreState | Partial<StoreState> | ((state: import('immer').WritableDraft<StoreState>) => void), shouldReplace?: false, action?: (string | {
|
|
262
|
-
[x: string]: unknown;
|
|
263
|
-
[x: number]: unknown;
|
|
264
|
-
[x: symbol]: unknown;
|
|
265
|
-
type: string;
|
|
266
|
-
}) | undefined): unknown;
|
|
267
|
-
setState(nextStateOrUpdater: StoreState | ((state: import('immer').WritableDraft<StoreState>) => void), shouldReplace: true, action?: (string | {
|
|
268
|
-
[x: string]: unknown;
|
|
269
|
-
[x: number]: unknown;
|
|
270
|
-
[x: symbol]: unknown;
|
|
271
|
-
type: string;
|
|
272
|
-
}) | undefined): unknown;
|
|
273
|
-
}> | null>;
|
|
274
|
-
export declare const ApiProvider: import('react').Provider<ScoutApiV2 | null>;
|
|
275
|
-
export declare const useStore: <T>(selector?: (state: StoreState) => T) => T;
|
|
276
|
-
export declare const useApi: () => ScoutApiV2;
|
|
277
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface ColumnPreset {
|
|
2
|
-
name: string;
|
|
3
|
-
columns: string[];
|
|
4
|
-
}
|
|
5
|
-
interface UserSettingsState {
|
|
6
|
-
dataframeColumnPresets: ColumnPreset[];
|
|
7
|
-
setDataframeColumnPresets: (presets: ColumnPreset[]) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const useUserSettings: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<UserSettingsState>, "setState" | "persist"> & {
|
|
10
|
-
setState(partial: UserSettingsState | Partial<UserSettingsState> | ((state: UserSettingsState) => UserSettingsState | Partial<UserSettingsState>), replace?: false | undefined): unknown;
|
|
11
|
-
setState(state: UserSettingsState | ((state: UserSettingsState) => UserSettingsState), replace: true): unknown;
|
|
12
|
-
persist: {
|
|
13
|
-
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<UserSettingsState, unknown, unknown>>) => void;
|
|
14
|
-
clearStorage: () => void;
|
|
15
|
-
rehydrate: () => Promise<void> | void;
|
|
16
|
-
hasHydrated: () => boolean;
|
|
17
|
-
onHydrate: (fn: (state: UserSettingsState) => void) => () => void;
|
|
18
|
-
onFinishHydration: (fn: (state: UserSettingsState) => void) => () => void;
|
|
19
|
-
getOptions: () => Partial<import('zustand/middleware').PersistOptions<UserSettingsState, unknown, unknown>>;
|
|
20
|
-
};
|
|
21
|
-
}>;
|
|
22
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const server: import('msw/node').SetupServerApi;
|