@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,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Infinite Scroll Tuning
|
|
3
|
-
*
|
|
4
|
-
* Goal: user never hits bottom while waiting for next page.
|
|
5
|
-
*
|
|
6
|
-
* Formula: threshold >= scroll_speed × fetch_duration
|
|
7
|
-
*
|
|
8
|
-
* Assumptions:
|
|
9
|
-
* row_height = 29px
|
|
10
|
-
* fetch_duration = 300-1000ms (variable with fixed overhead)
|
|
11
|
-
* max_scroll_speed = 1500px/s (typical fast scroller)
|
|
12
|
-
*
|
|
13
|
-
* Check at typical speed (1500px/s):
|
|
14
|
-
* runway_time = 2000px / 1500px/s = 1333ms
|
|
15
|
-
* worst_case_fetch = 1000ms
|
|
16
|
-
* margin = 333ms ✓
|
|
17
|
-
*
|
|
18
|
-
* Check at extreme speed (5000px/s):
|
|
19
|
-
* runway_time = 2000px / 5000px/s = 400ms
|
|
20
|
-
* median_fetch = ~350ms
|
|
21
|
-
* margin = 50ms (tight but ok) ✓
|
|
22
|
-
*
|
|
23
|
-
* Why large pageSize? Fetch duration is mostly fixed overhead, so larger
|
|
24
|
-
* pages = fewer fetches = fewer stall opportunities. 500 rows gives ~9.7s
|
|
25
|
-
* of scrolling per page at 1500px/s.
|
|
26
|
-
*
|
|
27
|
-
* Note: If threshold > pageSize_px, the next page is prefetched immediately
|
|
28
|
-
* after the current page loads. This is fine for maximum smoothness.
|
|
29
|
-
*/
|
|
30
|
-
export declare const SCANS_INFINITE_SCROLL_CONFIG: {
|
|
31
|
-
/** Number of rows to fetch per page (500 rows = 14,500px at 29px/row) */
|
|
32
|
-
readonly pageSize: 500;
|
|
33
|
-
/** Distance from bottom (in px) at which to trigger fetch (~69 rows) */
|
|
34
|
-
readonly threshold: 2000;
|
|
35
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SortingState } from '@tanstack/react-table';
|
|
2
|
-
import { Condition } from '../../query';
|
|
3
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
4
|
-
/**
|
|
5
|
-
* Returns prev/next transcript IDs relative to the given ID.
|
|
6
|
-
*
|
|
7
|
-
* Note: prev is undefined when viewing the first loaded item.
|
|
8
|
-
* Reverse paging not yet supported - will need backend prev_cursor.
|
|
9
|
-
*/
|
|
10
|
-
export declare const useAdjacentTranscriptIds: (id: string, location?: string | null, pageSize?: number, filter?: Condition, sorting?: SortingState) => AsyncData<[string | undefined, string | undefined]>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AppConfig } from '../../types/api-types';
|
|
2
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
3
|
-
/**
|
|
4
|
-
* Loads app config asynchronously at app initialization.
|
|
5
|
-
*
|
|
6
|
-
* Use this hook only at the top of the app before rendering to load config
|
|
7
|
-
* data globally. After this completes, all other components should use
|
|
8
|
-
* useConfig to access the loaded value synchronously.
|
|
9
|
-
*/
|
|
10
|
-
export declare const useAppConfigAsync: () => AsyncData<AppConfig>;
|
|
11
|
-
/**
|
|
12
|
-
* Returns app config for use in components after data loaded globally.
|
|
13
|
-
*
|
|
14
|
-
* Use this hook in regular components throughout the app. Assumes the async
|
|
15
|
-
* data has already been loaded at app initialization via useConfigAsync.
|
|
16
|
-
* Throws if data not yet available.
|
|
17
|
-
*/
|
|
18
|
-
export declare const useAppConfig: () => AppConfig;
|
|
19
|
-
export declare function appAliasedPath(appConfig: AppConfig, path: string | null): string | null;
|
|
20
|
-
export declare function projectOrAppAliasedPath(appConfig: AppConfig, path: string | null): string | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { skipToken } from '@tanstack/react-query';
|
|
2
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
3
|
-
type HasTranscriptParams = {
|
|
4
|
-
location: string;
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const useHasTranscript: (params: HasTranscriptParams | typeof skipToken) => AsyncData<boolean>;
|
|
8
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DefaultError, UseMutationResult } from '@tanstack/react-query';
|
|
2
|
-
import { ProjectConfig, ProjectConfigInput } from '../../types/api-types';
|
|
3
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
4
|
-
export type ProjectConfigWithEtag = {
|
|
5
|
-
config: ProjectConfig;
|
|
6
|
-
etag: string;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Loads project configuration from scout.yaml.
|
|
10
|
-
*
|
|
11
|
-
* Returns both the config and an etag for optimistic concurrency control.
|
|
12
|
-
*
|
|
13
|
-
* Automatic refetching is disabled to support optimistic locking:
|
|
14
|
-
* - External changes are detected via etag mismatch on save (412 error)
|
|
15
|
-
* - User explicitly chooses to reload or force save on conflict
|
|
16
|
-
*/
|
|
17
|
-
export declare const useProjectConfig: () => AsyncData<ProjectConfigWithEtag>;
|
|
18
|
-
/**
|
|
19
|
-
* Mutation hook for updating project configuration.
|
|
20
|
-
*
|
|
21
|
-
* Updates scout.yaml while preserving comments and formatting.
|
|
22
|
-
* Requires the current etag for optimistic concurrency control.
|
|
23
|
-
*
|
|
24
|
-
* On success, updates the query cache with the new config and etag.
|
|
25
|
-
* On 412 Precondition Failed, the config was modified externally.
|
|
26
|
-
*/
|
|
27
|
-
export declare const useUpdateProjectConfig: () => UseMutationResult<ProjectConfigWithEtag, DefaultError, {
|
|
28
|
-
config: ProjectConfigInput;
|
|
29
|
-
etag: string | null;
|
|
30
|
-
}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { skipToken } from '@tanstack/react-query';
|
|
2
|
-
import { Status } from '../../types/api-types';
|
|
3
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
4
|
-
type ScanParams = {
|
|
5
|
-
scansDir: string;
|
|
6
|
-
scanPath: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const useScan: (params: ScanParams | typeof skipToken) => AsyncData<Status>;
|
|
9
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { skipToken } from '@tanstack/react-query';
|
|
2
|
-
import { ColumnTable } from 'arquero';
|
|
3
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
4
|
-
type ScanDataframeParams = {
|
|
5
|
-
scansDir: string;
|
|
6
|
-
scanPath: string;
|
|
7
|
-
scanner: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const useScanDataframe: (params: ScanDataframeParams | typeof skipToken) => AsyncData<ColumnTable>;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { skipToken } from '@tanstack/react-query';
|
|
2
|
-
import { ScannerInput } from '../../types/api-types';
|
|
3
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
4
|
-
type ScanDataframeInputParams = {
|
|
5
|
-
scansDir: string;
|
|
6
|
-
scanPath: string;
|
|
7
|
-
scanner: string;
|
|
8
|
-
uuid: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const useScanDataframeInput: (params: ScanDataframeInputParams | typeof skipToken) => AsyncData<ScannerInput>;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { skipToken } from '@tanstack/react-query';
|
|
2
|
-
import { ScalarValue } from '../../api/api';
|
|
3
|
-
import { Condition } from '../../query';
|
|
4
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
5
|
-
type ScansColumnValuesParams = {
|
|
6
|
-
location: string;
|
|
7
|
-
column: string;
|
|
8
|
-
filter: Condition | undefined;
|
|
9
|
-
};
|
|
10
|
-
export declare const useScansColumnValues: (params: ScansColumnValuesParams | typeof skipToken) => AsyncData<ScalarValue[]>;
|
|
11
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { UseInfiniteQueryResult, InfiniteData } from '@tanstack/react-query';
|
|
2
|
-
import { SortingState } from '@tanstack/react-table';
|
|
3
|
-
import { Condition } from '../../query';
|
|
4
|
-
import { ScansResponse } from '../../types/api-types';
|
|
5
|
-
import { CursorType } from '.';
|
|
6
|
-
export declare const useScansInfinite: (scansDir: string, pageSize?: number, filter?: Condition, sorting?: SortingState) => UseInfiniteQueryResult<InfiniteData<ScansResponse, CursorType | undefined>, Error>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { SortingState } from '@tanstack/react-table';
|
|
2
|
-
import { Condition } from '../../query';
|
|
3
|
-
import { TranscriptsResponse } from '../../types/api-types';
|
|
4
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
5
|
-
export declare const useServerTranscripts: (location: string, filter?: Condition, sorting?: SortingState) => AsyncData<TranscriptsResponse>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { UseInfiniteQueryResult, InfiniteData, skipToken } from '@tanstack/react-query';
|
|
2
|
-
import { SortingState } from '@tanstack/react-table';
|
|
3
|
-
import { Condition } from '../../query';
|
|
4
|
-
import { TranscriptsResponse } from '../../types/api-types';
|
|
5
|
-
import { CursorType } from '.';
|
|
6
|
-
type ServerTranscriptsInfiniteParams = {
|
|
7
|
-
location: string;
|
|
8
|
-
pageSize?: number;
|
|
9
|
-
filter?: Condition;
|
|
10
|
-
sorting?: SortingState;
|
|
11
|
-
};
|
|
12
|
-
export declare const useServerTranscriptsInfinite: (params: ServerTranscriptsInfiniteParams | typeof skipToken) => UseInfiniteQueryResult<InfiniteData<TranscriptsResponse, CursorType | undefined>, Error>;
|
|
13
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Monitors topic updates via SSE and invalidates dependent queries on change.
|
|
3
|
-
*
|
|
4
|
-
* For each topic whose timestamp changes, invalidates all queries containing
|
|
5
|
-
* that topic name in their query key.
|
|
6
|
-
*
|
|
7
|
-
* Call once at app root level.
|
|
8
|
-
*
|
|
9
|
-
* @returns true when first SSE message received (ready), false otherwise
|
|
10
|
-
*/
|
|
11
|
-
export declare const useTopicInvalidation: () => boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { skipToken } from '@tanstack/react-query';
|
|
2
|
-
import { Transcript } from '../../types/api-types';
|
|
3
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
4
|
-
type TranscriptParams = {
|
|
5
|
-
location: string;
|
|
6
|
-
id: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const useTranscript: (params: TranscriptParams | typeof skipToken) => AsyncData<Transcript>;
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { skipToken } from '@tanstack/react-query';
|
|
2
|
-
import { ScalarValue } from '../../api/api';
|
|
3
|
-
import { Condition } from '../../query';
|
|
4
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
5
|
-
type TranscriptsColumnValuesParams = {
|
|
6
|
-
location: string;
|
|
7
|
-
column: string;
|
|
8
|
-
filter: Condition | undefined;
|
|
9
|
-
};
|
|
10
|
-
export declare const useTranscriptsColumnValues: (params: TranscriptsColumnValuesParams | typeof skipToken) => AsyncData<ScalarValue[]>;
|
|
11
|
-
export {};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { skipToken } from '@tanstack/react-query';
|
|
2
|
-
import { ValidationCase, ValidationCaseRequest } from '../../types/api-types';
|
|
3
|
-
import { AsyncData } from '../../utils/asyncData';
|
|
4
|
-
/**
|
|
5
|
-
* Query key factory for validation-related queries.
|
|
6
|
-
* Centralizes key definitions to ensure consistency between queries and invalidations.
|
|
7
|
-
*/
|
|
8
|
-
export declare const validationQueryKeys: {
|
|
9
|
-
sets: () => readonly ["validationSets"];
|
|
10
|
-
cases: (uri: string | typeof skipToken) => readonly ["validationCases", string | typeof skipToken];
|
|
11
|
-
case: (params: {
|
|
12
|
-
url: string;
|
|
13
|
-
caseId: string;
|
|
14
|
-
} | typeof skipToken) => readonly ["validationCase", typeof skipToken | {
|
|
15
|
-
url: string;
|
|
16
|
-
caseId: string;
|
|
17
|
-
}];
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Hook to fetch all validation set URIs in the project.
|
|
21
|
-
*/
|
|
22
|
-
export declare const useValidationSets: () => AsyncData<string[]>;
|
|
23
|
-
/**
|
|
24
|
-
* Hook to fetch validation cases for a specific validation set.
|
|
25
|
-
*/
|
|
26
|
-
export declare const useValidationCases: (uri: string | typeof skipToken) => AsyncData<ValidationCase[]>;
|
|
27
|
-
/**
|
|
28
|
-
* Hook to fetch a single validation case by URI and case ID.
|
|
29
|
-
* Returns null (not an error) when the case is not found (404).
|
|
30
|
-
*/
|
|
31
|
-
export declare const useValidationCase: (params: {
|
|
32
|
-
url: string;
|
|
33
|
-
caseId: string;
|
|
34
|
-
} | typeof skipToken) => AsyncData<ValidationCase | null>;
|
|
35
|
-
/**
|
|
36
|
-
* Hook to create a new validation set.
|
|
37
|
-
*/
|
|
38
|
-
export declare const useCreateValidationSet: () => import('@tanstack/react-query').UseMutationResult<string, Error, {
|
|
39
|
-
cases: import('../../types/generated').components["schemas"]["ValidationCaseRequest"][];
|
|
40
|
-
path: string;
|
|
41
|
-
}, unknown>;
|
|
42
|
-
/**
|
|
43
|
-
* Hook to update a validation case (upsert).
|
|
44
|
-
* Uses optimistic updates to prevent UI flicker during save.
|
|
45
|
-
*/
|
|
46
|
-
export declare const useUpdateValidationCase: (uri: string) => import('@tanstack/react-query').UseMutationResult<{
|
|
47
|
-
id: string | string[];
|
|
48
|
-
labels: {
|
|
49
|
-
[key: string]: boolean;
|
|
50
|
-
} | null;
|
|
51
|
-
predicate?: ("gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "startswith" | "endswith" | "icontains" | "iequals") | null;
|
|
52
|
-
split?: string | null;
|
|
53
|
-
target?: import('../../types/generated').components["schemas"]["JsonValue"] | null;
|
|
54
|
-
}, Error, {
|
|
55
|
-
caseId: string;
|
|
56
|
-
data: ValidationCaseRequest;
|
|
57
|
-
}, {
|
|
58
|
-
previousCase: ValidationCase | undefined;
|
|
59
|
-
previousCases: ValidationCase[] | undefined;
|
|
60
|
-
}>;
|
|
61
|
-
/**
|
|
62
|
-
* Hook to delete a single validation case.
|
|
63
|
-
*/
|
|
64
|
-
export declare const useDeleteValidationCase: (uri: string) => import('@tanstack/react-query').UseMutationResult<void, Error, string, unknown>;
|
|
65
|
-
/**
|
|
66
|
-
* Hook to delete multiple validation cases (bulk delete).
|
|
67
|
-
* Uses Promise.allSettled to handle partial failures gracefully.
|
|
68
|
-
*/
|
|
69
|
-
export declare const useBulkDeleteValidationCases: (uri: string) => import('@tanstack/react-query').UseMutationResult<{
|
|
70
|
-
succeeded: number;
|
|
71
|
-
failed: number;
|
|
72
|
-
}, Error, string[], unknown>;
|
|
73
|
-
/**
|
|
74
|
-
* Hook to delete an entire validation set.
|
|
75
|
-
*/
|
|
76
|
-
export declare const useDeleteValidationSet: () => import('@tanstack/react-query').UseMutationResult<void, Error, string, unknown>;
|
|
77
|
-
/**
|
|
78
|
-
* Hook to rename a validation set.
|
|
79
|
-
*/
|
|
80
|
-
export declare const useRenameValidationSet: () => import('@tanstack/react-query').UseMutationResult<string, Error, {
|
|
81
|
-
uri: string;
|
|
82
|
-
newName: string;
|
|
83
|
-
}, unknown>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { FC, RefObject } from 'react';
|
|
2
|
-
import { Event, ServerTimeline } from '../../../types/api-types';
|
|
3
|
-
import { TimelineOptions } from '../hooks/useTimeline';
|
|
4
|
-
import { MarkerConfig } from '../utils/markers';
|
|
5
|
-
interface TimelineEventsViewProps {
|
|
6
|
-
/** Raw events to display. Runs the full timeline pipeline internally. */
|
|
7
|
-
events: Event[];
|
|
8
|
-
/** Scroll container for StickyScroll and virtual list. */
|
|
9
|
-
scrollRef: RefObject<HTMLDivElement | null>;
|
|
10
|
-
/** Base offset for sticky positioning (e.g. tab bar height). Default: 0. */
|
|
11
|
-
offsetTop?: number;
|
|
12
|
-
/** Deep-link to a specific event on mount. */
|
|
13
|
-
initialEventId?: string | null;
|
|
14
|
-
/** Deep-link to a message ID, resolved to the best matching event. */
|
|
15
|
-
initialMessageId?: string | null;
|
|
16
|
-
/** Initial outline state when no persistent preference exists. Default: false (collapsed). */
|
|
17
|
-
defaultOutlineExpanded?: boolean;
|
|
18
|
-
/** Unique ID for the virtual list. */
|
|
19
|
-
id: string;
|
|
20
|
-
/** Bulk collapse/expand of all collapsible events. undefined = no-op. */
|
|
21
|
-
collapsed?: boolean;
|
|
22
|
-
/** Called when a marker (error, compaction) is clicked on the swimlane.
|
|
23
|
-
* Optional `selectedKey` requests the bar be selected atomically with navigation. */
|
|
24
|
-
onMarkerNavigate?: (eventId: string, selectedKey?: string) => void;
|
|
25
|
-
/** Controls which marker kinds are shown and at what depth. */
|
|
26
|
-
markerConfig?: MarkerConfig;
|
|
27
|
-
/** Controls swimlane visibility. `"auto"` shows when data has child spans. Default: `"auto"`. */
|
|
28
|
-
timeline?: true | false | "auto";
|
|
29
|
-
/** Controls which agents are included in the timeline. */
|
|
30
|
-
agentConfig?: TimelineOptions;
|
|
31
|
-
/** Server-provided timelines (used when available instead of building from events). */
|
|
32
|
-
timelines?: ServerTimeline[];
|
|
33
|
-
/** Headroom direction signal: true = scrolling down (hide). */
|
|
34
|
-
headroomHidden?: boolean;
|
|
35
|
-
/** Reset the headroom anchor before a layout shift or programmatic scroll.
|
|
36
|
-
* Pass `true` to debounce (keeps lock alive while scrolling continues). */
|
|
37
|
-
onHeadroomResetAnchor?: (debounce?: boolean) => void;
|
|
38
|
-
className?: string;
|
|
39
|
-
}
|
|
40
|
-
export declare const TimelineEventsView: FC<TimelineEventsViewProps>;
|
|
41
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TimelineSpan } from '../../../components/transcript/timeline';
|
|
3
|
-
import { TimeMapping } from '../utils/timeMapping';
|
|
4
|
-
export interface MinimapSelection {
|
|
5
|
-
startTime: Date;
|
|
6
|
-
endTime: Date;
|
|
7
|
-
totalTokens: number;
|
|
8
|
-
}
|
|
9
|
-
export interface TimelineMinimapProps {
|
|
10
|
-
/** Root timeline span (always the full timeline). */
|
|
11
|
-
root: TimelineSpan;
|
|
12
|
-
/** Currently selected swimlane row, if any. */
|
|
13
|
-
selection?: MinimapSelection;
|
|
14
|
-
/** Time mapping for the root node (compresses gaps if present). */
|
|
15
|
-
mapping?: TimeMapping;
|
|
16
|
-
/** Scroll progress within the event list (0–1).
|
|
17
|
-
* Positioned as a fraction of the selection bar.
|
|
18
|
-
* `null` or `undefined` = no scrubber shown. */
|
|
19
|
-
scrubberProgress?: number | null;
|
|
20
|
-
/** Called when the user clicks or drags on the selection region.
|
|
21
|
-
* `progress` is 0–1 representing the target scroll position. */
|
|
22
|
-
onScrub?: (progress: number) => void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Compact minimap showing the selected row's position within the full timeline.
|
|
26
|
-
*
|
|
27
|
-
* Renders as a self-contained flex row: mode label + bar area.
|
|
28
|
-
* Designed to sit inside the breadcrumb row, right-aligned.
|
|
29
|
-
*/
|
|
30
|
-
export declare const TimelineMinimap: FC<TimelineMinimapProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { UseTimelineConfigResult } from '../hooks/useTimelineConfig';
|
|
3
|
-
interface TimelineOptionsPopoverProps {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
setIsOpen: (open: boolean) => void;
|
|
6
|
-
positionEl: HTMLElement | null;
|
|
7
|
-
config: UseTimelineConfigResult;
|
|
8
|
-
}
|
|
9
|
-
export declare const TimelineOptionsPopover: FC<TimelineOptionsPopoverProps>;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Timeline } from '../../../components/transcript/timeline';
|
|
3
|
-
export interface TimelineSelectorProps {
|
|
4
|
-
/** Available timeline views. */
|
|
5
|
-
timelines: ReadonlyArray<Timeline>;
|
|
6
|
-
/** Index of the active timeline. */
|
|
7
|
-
activeIndex: number;
|
|
8
|
-
/** Called when a timeline is selected. */
|
|
9
|
-
onSelect: (index: number) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const TimelineSelector: FC<TimelineSelectorProps>;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TimelineState } from '../hooks/useTimeline';
|
|
3
|
-
import { UseTimelineConfigResult } from '../hooks/useTimelineConfig';
|
|
4
|
-
import { RowLayout } from '../utils/swimlaneLayout';
|
|
5
|
-
import { TimelineMinimapProps } from './TimelineMinimap';
|
|
6
|
-
import { TimelineSelectorProps } from './TimelineSelector';
|
|
7
|
-
export interface BreadcrumbSegment {
|
|
8
|
-
/** Display name for this segment. */
|
|
9
|
-
label: string;
|
|
10
|
-
/** Selection key to navigate to this segment. */
|
|
11
|
-
key: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Builds breadcrumb segments from the layouts and selected key.
|
|
15
|
-
*
|
|
16
|
-
* The selected key encodes tree position (e.g. "transcript/build/test").
|
|
17
|
-
* We find ancestor rows by matching prefix keys, producing a trail like:
|
|
18
|
-
* [main, Build, Test] where "Test" is the currently selected row.
|
|
19
|
-
*/
|
|
20
|
-
export declare function buildBreadcrumbs(layouts: RowLayout[], selectedRowKey: string | null): BreadcrumbSegment[];
|
|
21
|
-
/** Navigation subset of TimelineState needed by the swimlane component. */
|
|
22
|
-
export type TimelineNavigation = Pick<TimelineState, "node" | "selected" | "select" | "clearSelection">;
|
|
23
|
-
/** Header configuration: root label + optional minimap + breadcrumbs. */
|
|
24
|
-
export interface TimelineHeaderProps {
|
|
25
|
-
rootLabel: string;
|
|
26
|
-
/** Called on header click to scroll the view to the top. */
|
|
27
|
-
onScrollToTop?: () => void;
|
|
28
|
-
/** Minimap props for the zoom indicator. */
|
|
29
|
-
minimap?: TimelineMinimapProps;
|
|
30
|
-
/** Breadcrumb segments derived from the selected row's ancestry. */
|
|
31
|
-
breadcrumbs?: BreadcrumbSegment[];
|
|
32
|
-
/** Called when a breadcrumb segment is clicked. */
|
|
33
|
-
onBreadcrumbSelect?: (key: string) => void;
|
|
34
|
-
/** Timeline config for the options popover. When provided, shows the options button. */
|
|
35
|
-
timelineConfig?: UseTimelineConfigResult;
|
|
36
|
-
/** Timeline selector for switching between multiple timelines. */
|
|
37
|
-
timelineSelector?: TimelineSelectorProps;
|
|
38
|
-
}
|
|
39
|
-
interface TimelineSwimLanesProps {
|
|
40
|
-
/** Row layouts computed by computeRowLayouts. */
|
|
41
|
-
layouts: RowLayout[];
|
|
42
|
-
/** Timeline navigation state (selection). */
|
|
43
|
-
timeline: TimelineNavigation;
|
|
44
|
-
/** Header configuration. */
|
|
45
|
-
header?: TimelineHeaderProps;
|
|
46
|
-
/** Whether the swimlane is currently in sticky mode (opaque background). */
|
|
47
|
-
isSticky?: boolean;
|
|
48
|
-
/** Called when an error or compaction marker is clicked. */
|
|
49
|
-
onMarkerNavigate?: (eventId: string, selectedKey?: string) => void;
|
|
50
|
-
/** Headroom auto-collapse: true when scrolling down while sticky. */
|
|
51
|
-
headroomCollapsed?: boolean;
|
|
52
|
-
/** Called before a layout shift (toggle) so the headroom hook can reset
|
|
53
|
-
* its anchor and ignore the resulting scroll-position change. */
|
|
54
|
-
onLayoutShift?: () => void;
|
|
55
|
-
/** Map from row key → number of compaction regions (only for rows with compactions). */
|
|
56
|
-
regionCounts?: ReadonlyMap<string, number>;
|
|
57
|
-
/** Default collapsed state when user has no stored preference.
|
|
58
|
-
* Falls back to `isFlat` (layouts.length <= 1) when undefined. */
|
|
59
|
-
defaultCollapsed?: boolean;
|
|
60
|
-
}
|
|
61
|
-
export declare const TimelineSwimLanes: FC<TimelineSwimLanesProps>;
|
|
62
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { TimelineBranch, TimelineEvent, TimelineSpan } from '../../components/transcript/timeline';
|
|
2
|
-
export interface EventItem {
|
|
3
|
-
type: "event";
|
|
4
|
-
eventNode: TimelineEvent;
|
|
5
|
-
}
|
|
6
|
-
export interface AgentCardItem {
|
|
7
|
-
type: "agent_card";
|
|
8
|
-
agentNode: TimelineSpan;
|
|
9
|
-
}
|
|
10
|
-
export interface BranchCardItem {
|
|
11
|
-
type: "branch_card";
|
|
12
|
-
branch: TimelineBranch;
|
|
13
|
-
}
|
|
14
|
-
export type ContentItem = EventItem | AgentCardItem | BranchCardItem;
|
|
15
|
-
/**
|
|
16
|
-
* Builds a flat list of content items from a TimelineSpan.
|
|
17
|
-
*
|
|
18
|
-
* Walks the span's content chronologically, converting each child to either
|
|
19
|
-
* an event item or agent card. Then inserts branch cards after the event
|
|
20
|
-
* whose UUID matches `branch.forkedAt`. Branches with unresolvable UUIDs
|
|
21
|
-
* are appended at the end.
|
|
22
|
-
*
|
|
23
|
-
* When `includeUtility` is false (default), utility spans are filtered out —
|
|
24
|
-
* they represent internal model calls (e.g. file path extraction) that should
|
|
25
|
-
* not appear in the UI.
|
|
26
|
-
*/
|
|
27
|
-
export declare function buildContentItems(node: TimelineSpan, options?: {
|
|
28
|
-
includeUtility?: boolean;
|
|
29
|
-
}): ContentItem[];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Timeline } from '../../../components/transcript/timeline';
|
|
2
|
-
export interface UseActiveTimelineResult {
|
|
3
|
-
/** The currently active Timeline. */
|
|
4
|
-
active: Timeline;
|
|
5
|
-
/** 0-based index of the active timeline. */
|
|
6
|
-
activeIndex: number;
|
|
7
|
-
/** Switch to a different timeline by index. Resets selection. */
|
|
8
|
-
setActive: (index: number) => void;
|
|
9
|
-
/** All available timelines. */
|
|
10
|
-
timelines: Timeline[];
|
|
11
|
-
}
|
|
12
|
-
export declare function useActiveTimeline(timelines: Timeline[]): UseActiveTimelineResult;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the scroll progress (0–1) within the virtual event list.
|
|
3
|
-
*
|
|
4
|
-
* The minimap uses this to position the scrubber as a fraction of the
|
|
5
|
-
* selection bar — completely decoupled from event timestamps, which are
|
|
6
|
-
* non-monotonic in the depth-first flattened list.
|
|
7
|
-
*/
|
|
8
|
-
export declare function useScrubberProgress(listKey: string): number | null;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Timeline, TimelineBranch, TimelineSpan } from '../../../components/transcript/timeline';
|
|
2
|
-
import { SwimlaneRow } from '../utils/swimlaneRows';
|
|
3
|
-
export interface TimelineState {
|
|
4
|
-
/** The root TimelineSpan (always the timeline root). */
|
|
5
|
-
node: TimelineSpan;
|
|
6
|
-
/** Flat swimlane rows for all descendants. */
|
|
7
|
-
rows: SwimlaneRow[];
|
|
8
|
-
/** Currently selected row key, or null. */
|
|
9
|
-
selected: string | null;
|
|
10
|
-
/** Select a row by key, or null to clear. */
|
|
11
|
-
select: (key: string | null) => void;
|
|
12
|
-
/** Clear the selection (returns to default root selection). */
|
|
13
|
-
clearSelection: () => void;
|
|
14
|
-
}
|
|
15
|
-
export interface BranchLookupResult {
|
|
16
|
-
/** The span that owns the branches. */
|
|
17
|
-
owner: TimelineSpan;
|
|
18
|
-
/** Matching branches with their 1-indexed position. */
|
|
19
|
-
branches: Array<{
|
|
20
|
-
branch: TimelineBranch;
|
|
21
|
-
index: number;
|
|
22
|
-
}>;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Finds all branches matching a forkedAt UUID anywhere in the span tree.
|
|
26
|
-
* Returns the owning span and matching branches.
|
|
27
|
-
*/
|
|
28
|
-
export declare function findBranchesByForkedAt(node: TimelineSpan, forkedAt: string): BranchLookupResult | null;
|
|
29
|
-
/**
|
|
30
|
-
* Creates a TimelineSpan for a branch's content (informational display).
|
|
31
|
-
*
|
|
32
|
-
* If the branch has exactly one child span, returns that span directly
|
|
33
|
-
* (with a ↳ prefix on its name). Otherwise creates a synthetic container.
|
|
34
|
-
*/
|
|
35
|
-
export declare function createBranchSpan(branch: TimelineBranch, index: number): TimelineSpan;
|
|
36
|
-
/**
|
|
37
|
-
* Timeline state hook.
|
|
38
|
-
*
|
|
39
|
-
* Computes a fully expanded flat list of swimlane rows from the timeline root.
|
|
40
|
-
* Selection is driven by the `selected` URL search param using row keys.
|
|
41
|
-
*/
|
|
42
|
-
export interface TimelineOptions {
|
|
43
|
-
/** Include utility agents in the swimlane rows. Default: false. */
|
|
44
|
-
includeUtility?: boolean;
|
|
45
|
-
}
|
|
46
|
-
export declare function useTimeline(timeline: Timeline, options?: TimelineOptions): TimelineState;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MarkerConfig, MarkerDepth, MarkerKind } from '../utils/markers';
|
|
2
|
-
import { TimelineOptions } from './useTimeline';
|
|
3
|
-
export interface UseTimelineConfigResult {
|
|
4
|
-
/** Resolved MarkerConfig for the timeline pipeline. */
|
|
5
|
-
markerConfig: MarkerConfig;
|
|
6
|
-
/** Resolved TimelineOptions for the timeline pipeline. */
|
|
7
|
-
agentConfig: TimelineOptions;
|
|
8
|
-
/** Current marker kinds selection. */
|
|
9
|
-
markerKinds: MarkerKind[];
|
|
10
|
-
/** Current marker depth selection. */
|
|
11
|
-
markerDepth: MarkerDepth;
|
|
12
|
-
/** Whether utility agents are shown. */
|
|
13
|
-
includeUtility: boolean;
|
|
14
|
-
setMarkerKinds: (kinds: MarkerKind[]) => void;
|
|
15
|
-
setMarkerDepth: (depth: MarkerDepth) => void;
|
|
16
|
-
setIncludeUtility: (include: boolean) => void;
|
|
17
|
-
toggleMarkerKind: (kind: MarkerKind) => void;
|
|
18
|
-
resetToDefaults: () => void;
|
|
19
|
-
/** True when all settings match their defaults. */
|
|
20
|
-
isDefault: boolean;
|
|
21
|
-
}
|
|
22
|
-
export declare function useTimelineConfig(): UseTimelineConfigResult;
|