@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,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JSON value type - any valid JSON value.
|
|
3
|
-
*
|
|
4
|
-
* Uses interfaces for array/object to avoid TS2589 "excessively deep"
|
|
5
|
-
* errors with immer's type inference on recursive type aliases.
|
|
6
|
-
*/
|
|
7
|
-
export type JsonValue = null | boolean | number | string | JsonArray | JsonObject;
|
|
8
|
-
export interface JsonArray extends Array<JsonValue> {
|
|
9
|
-
}
|
|
10
|
-
export interface JsonObject {
|
|
11
|
-
[key: string]: JsonValue;
|
|
12
|
-
}
|
package/lib/src/utils/ansi.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detects if text contains ANSI escape sequences.
|
|
3
|
-
*
|
|
4
|
-
* This function checks for various ANSI escape codes including:
|
|
5
|
-
* - CSI (Control Sequence Introducer) sequences: ESC [ ... (colors, cursor movement, etc.)
|
|
6
|
-
* - OSC (Operating System Command) sequences: ESC ] ... (terminal titles, hyperlinks)
|
|
7
|
-
* - Simple escape sequences: ESC followed by a single character
|
|
8
|
-
*
|
|
9
|
-
* @param text - The text to check for ANSI escape sequences
|
|
10
|
-
* @returns true if ANSI escape sequences are detected, false otherwise
|
|
11
|
-
*/
|
|
12
|
-
export declare const isAnsiOutput: (text: string) => boolean;
|
package/lib/src/utils/array.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const printArray: (arr: unknown[], size?: number) => string;
|
package/lib/src/utils/arrow.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Brand } from './brand';
|
|
2
|
-
/**
|
|
3
|
-
* AsyncData represents the possible states of some asynchronous operation like
|
|
4
|
-
* a network request to an API. When the request is first made, it's `loading`, but
|
|
5
|
-
* once we get a response, it will either represent the requested `data` or maybe
|
|
6
|
-
* the operation failed due to an `error`.
|
|
7
|
-
*
|
|
8
|
-
* @typeParam T - the data that will be returned
|
|
9
|
-
*/
|
|
10
|
-
export type AsyncData<T> = AsyncDataLoading | AsyncDataNotLoading<T>;
|
|
11
|
-
export type AsyncDataLoading = Brand<{
|
|
12
|
-
data?: undefined;
|
|
13
|
-
loading: true;
|
|
14
|
-
error?: undefined;
|
|
15
|
-
}, "_please_use_AsyncData.loading_rather_than_your_own_instance_of_this_type_">;
|
|
16
|
-
/**
|
|
17
|
-
* The different states the async data can be in when loading is finished.
|
|
18
|
-
*
|
|
19
|
-
* @typeParam T - the data type that can be returned when error is undefined
|
|
20
|
-
*/
|
|
21
|
-
export type AsyncDataNotLoading<T> = {
|
|
22
|
-
data: T;
|
|
23
|
-
loading: false;
|
|
24
|
-
error?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
data?: undefined;
|
|
27
|
-
loading: false;
|
|
28
|
-
error: Error;
|
|
29
|
-
};
|
|
30
|
-
type AsyncDataMap<Mapping> = {
|
|
31
|
-
[K in keyof Mapping]: AsyncData<Mapping[K]>;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* The `compose` function allows a set of `AsyncData` values to be combined into
|
|
35
|
-
* a single `AsyncData`. The complex type of the function represents a transformation
|
|
36
|
-
* from an argument like this...
|
|
37
|
-
*
|
|
38
|
-
* ```typescript
|
|
39
|
-
* { a: AsyncData<A>, b: AsyncData<B>, c: AsyncData<C> }
|
|
40
|
-
*```
|
|
41
|
-
* ...to a return value like this...
|
|
42
|
-
*```
|
|
43
|
-
* AsyncData<{ a: A, b: B, c: C }>
|
|
44
|
-
*```
|
|
45
|
-
*
|
|
46
|
-
* In practice, this can be used to create hooks that depend on multiple API
|
|
47
|
-
* calls.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export declare function compose<Mapping>(hooks: AsyncDataMap<Mapping>): AsyncData<Mapping>;
|
|
51
|
-
/**
|
|
52
|
-
* The `data` function wraps the provided data in an `AsyncData` object, indicating
|
|
53
|
-
* that the data is not loading and there is no error.
|
|
54
|
-
*
|
|
55
|
-
* @template T - The type of the data
|
|
56
|
-
* @param {T} data - The data to wrap
|
|
57
|
-
* @returns {AsyncData<T>} - An `AsyncData` object with `loading` set to `false`
|
|
58
|
-
* and `data` set to the provided data
|
|
59
|
-
*/
|
|
60
|
-
export declare function data<T>(data: T): AsyncData<T>;
|
|
61
|
-
/**
|
|
62
|
-
* The `loading` constant is an instance of `AsyncDataLoading` that can be shared
|
|
63
|
-
* to provide identity stability. It represents the state when the data is loading.
|
|
64
|
-
*/
|
|
65
|
-
export declare const loading: AsyncDataLoading;
|
|
66
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import { AsyncData } from './asyncData';
|
|
3
|
-
/**
|
|
4
|
-
* Custom hook that retrieves data using `useQuery` from the `@tanstack/react-query`
|
|
5
|
-
* library. It wraps the `QueryResult` from the hook in a simpler `AsyncData`.
|
|
6
|
-
*
|
|
7
|
-
* @param options - An object of type `UseQueryOptions`.
|
|
8
|
-
* @returns An object of type `AsyncData`. If the query is pending, it returns a
|
|
9
|
-
* loading state. If there's an error, it returns an object with the error and loading
|
|
10
|
-
* state as false. If the query is successful, it returns the data and loading state
|
|
11
|
-
* as false.
|
|
12
|
-
*/
|
|
13
|
-
export declare function useAsyncDataFromQuery<TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, Error, TData, TQueryKey>): AsyncData<TData>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Encodes a UTF-8 string to base64url format (RFC 4648 Section 5).
|
|
3
|
-
*
|
|
4
|
-
* Base64url is a URL-safe variant of base64 that uses `-` instead of `+`,
|
|
5
|
-
* `_` instead of `/`, and omits padding `=` characters. This makes encoded
|
|
6
|
-
* values safe for use in URLs and filenames without percent-encoding.
|
|
7
|
-
*
|
|
8
|
-
* Used throughout the app to encode directory paths for URL path segments,
|
|
9
|
-
* e.g., `/scans/{dir}` where `{dir}` is a base64url-encoded path like
|
|
10
|
-
* `/Users/alice/scans` -> `L1VzZXJzL2FsaWNlL3NjYW5z`.
|
|
11
|
-
*
|
|
12
|
-
* @param value - The UTF-8 string to encode
|
|
13
|
-
* @returns The base64url-encoded string (no padding)
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* encodeBase64Url("/tmp/scans") // "L3RtcC9zY2Fucw"
|
|
17
|
-
* encodeBase64Url("hello world") // "aGVsbG8gd29ybGQ"
|
|
18
|
-
*/
|
|
19
|
-
export declare const encodeBase64Url: (value: string) => string;
|
|
20
|
-
/**
|
|
21
|
-
* Decodes a base64url-encoded string back to UTF-8 (RFC 4648 Section 5).
|
|
22
|
-
*
|
|
23
|
-
* Reverses the base64url encoding by converting URL-safe characters back
|
|
24
|
-
* to standard base64 (`-` -> `+`, `_` -> `/`), restoring padding, and
|
|
25
|
-
* decoding to the original UTF-8 string.
|
|
26
|
-
*
|
|
27
|
-
* Used to decode URL path segments back to filesystem paths, e.g.,
|
|
28
|
-
* extracting the scans directory from `/scans/{dir}` route parameters.
|
|
29
|
-
*
|
|
30
|
-
* @param value - The base64url-encoded string (with or without padding)
|
|
31
|
-
* @returns The decoded UTF-8 string
|
|
32
|
-
* @throws {DOMException} If the input is not valid base64url
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* decodeBase64Url("L3RtcC9zY2Fucw") // "/tmp/scans"
|
|
36
|
-
* decodeBase64Url("aGVsbG8gd29ybGQ") // "hello world"
|
|
37
|
-
*/
|
|
38
|
-
export declare const decodeBase64Url: (value: string) => string;
|
package/lib/src/utils/brand.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Branded types for nominal typing in TypeScript.
|
|
3
|
-
*
|
|
4
|
-
* Branded types create distinct types from the same base type,
|
|
5
|
-
* preventing accidental misuse at compile time with zero runtime overhead.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* type UserId = Brand<number, "UserId">;
|
|
10
|
-
* type PostId = Brand<number, "PostId">;
|
|
11
|
-
*
|
|
12
|
-
* const makeUserId = make<UserId>();
|
|
13
|
-
* const makePostId = make<PostId>();
|
|
14
|
-
*
|
|
15
|
-
* const userId = makeUserId(42);
|
|
16
|
-
* const postId = makePostId(42);
|
|
17
|
-
* getUser(postId); // ✗ compile error - PostId !== UserId
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @module
|
|
21
|
-
*/
|
|
22
|
-
declare const __brand: unique symbol;
|
|
23
|
-
/**
|
|
24
|
-
* Creates a branded type from a base type.
|
|
25
|
-
*
|
|
26
|
-
* The brand exists only at compile time—no runtime overhead.
|
|
27
|
-
*
|
|
28
|
-
* @typeParam Base - The underlying primitive or object type
|
|
29
|
-
* @typeParam Branding - A unique type used to distinguish this brand (often the entity type itself)
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* type UserId = Brand<number, User>;
|
|
34
|
-
* type PostId = Brand<number, Post>;
|
|
35
|
-
* // UserId and PostId are incompatible even though both are numbers
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export type Brand<Base, Branding> = Base & {
|
|
39
|
-
[__brand]: Branding;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Extracts the base type from a branded type.
|
|
43
|
-
*
|
|
44
|
-
* @typeParam B - A branded type
|
|
45
|
-
* @returns The underlying base type without the brand
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* type UserId = Brand<number, User>;
|
|
50
|
-
* type Base = BaseOf<UserId>; // number
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
type BaseOf<B extends Brand<unknown, unknown>> = Omit<B, typeof __brand>;
|
|
54
|
-
/** A function that converts a base value into a branded value. */
|
|
55
|
-
type Brander<B extends Brand<unknown, unknown>> = (value: BaseOf<B>) => B;
|
|
56
|
-
/**
|
|
57
|
-
* Creates a brander function for a given branded type.
|
|
58
|
-
*
|
|
59
|
-
* @typeParam B - The branded type to produce
|
|
60
|
-
* @returns A function that casts base values to the branded type
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```ts
|
|
64
|
-
* type UserId = Brand<number, "UserId">;
|
|
65
|
-
* const makeUserId = make<UserId>();
|
|
66
|
-
* const id = makeUserId(42);
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
export declare function make<B extends Brand<unknown, unknown>>(): Brander<B>;
|
|
70
|
-
export {};
|
package/lib/src/utils/date.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utilities for working with dates and native HTML5 date/datetime inputs.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Formats a date value for use with native HTML5 date input (type="date").
|
|
6
|
-
* Returns format: YYYY-MM-DD
|
|
7
|
-
*
|
|
8
|
-
* @param value - The date value (Date, ISO string, or timestamp)
|
|
9
|
-
* @returns Formatted date string in YYYY-MM-DD format, or empty string if invalid
|
|
10
|
-
*/
|
|
11
|
-
export declare function formatDateForInput(value: Date | string | number | null | undefined): string;
|
|
12
|
-
/**
|
|
13
|
-
* Formats a datetime value for use with native HTML5 datetime-local input (type="datetime-local").
|
|
14
|
-
* Returns format: YYYY-MM-DDTHH:mm
|
|
15
|
-
*
|
|
16
|
-
* @param value - The datetime value (Date, ISO string, or timestamp)
|
|
17
|
-
* @returns Formatted datetime string in YYYY-MM-DDTHH:mm format, or empty string if invalid
|
|
18
|
-
*/
|
|
19
|
-
export declare function formatDateTimeForInput(value: Date | string | number | null | undefined): string;
|
|
20
|
-
/**
|
|
21
|
-
* Parses a date or datetime string from native HTML5 inputs and returns an ISO string.
|
|
22
|
-
* Handles both date (YYYY-MM-DD) and datetime-local (YYYY-MM-DDTHH:mm) formats.
|
|
23
|
-
*
|
|
24
|
-
* @param value - The date/datetime string from the native input
|
|
25
|
-
* @returns ISO 8601 datetime string, or undefined if invalid
|
|
26
|
-
*/
|
|
27
|
-
export declare function parseDateFromInput(value: string): string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Checks if a value is a valid date.
|
|
30
|
-
*
|
|
31
|
-
* @param value - The value to check
|
|
32
|
-
* @returns true if the value is a valid date
|
|
33
|
-
*/
|
|
34
|
-
export declare function isValidDate(value: Date | string | number | null | undefined): boolean;
|
package/lib/src/utils/dom.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useResizeObserver: (callback: (entry: ResizeObserverEntry) => void) => import('react').RefObject<HTMLDivElement | null>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts an array or a single value to a comma-separated string.
|
|
3
|
-
*/
|
|
4
|
-
export declare const arrayToString: (val: string | string[]) => string;
|
|
5
|
-
/**
|
|
6
|
-
* Formats dataset information into a string.
|
|
7
|
-
*/
|
|
8
|
-
export declare const formatDataset: (samples: number, epochs: number, name: string | null) => string;
|
|
9
|
-
/**
|
|
10
|
-
* Formats a duration given in seconds into a human-readable string.
|
|
11
|
-
*/
|
|
12
|
-
export declare const formatTime: (seconds: number) => string;
|
|
13
|
-
/**
|
|
14
|
-
* Formats a number to a string with specific decimal places for prettiness.
|
|
15
|
-
*/
|
|
16
|
-
export declare function formatPrettyDecimal(num: number, maxDecimals?: number): string;
|
|
17
|
-
/**
|
|
18
|
-
* Formats a number to a string without trailing zeroes after the decimal point.
|
|
19
|
-
*/
|
|
20
|
-
export declare function formatDecimalNoTrailingZeroes(num: number): string;
|
|
21
|
-
/**
|
|
22
|
-
* Converts a string to title case.
|
|
23
|
-
*/
|
|
24
|
-
export declare function toTitleCase(str: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Formats a number to a string with no decimals
|
|
27
|
-
*/
|
|
28
|
-
export declare function formatNoDecimal(num: number): string;
|
|
29
|
-
/**
|
|
30
|
-
* Formats a number to a string
|
|
31
|
-
*/
|
|
32
|
-
export declare function formatNumber(num: number): string;
|
|
33
|
-
/**
|
|
34
|
-
* Formats a number to a string without trailing zeroes after the decimal point.
|
|
35
|
-
*/
|
|
36
|
-
export declare function formatDateTime(date: Date): string;
|
|
37
|
-
/**
|
|
38
|
-
* Returns the formatted duration between two dates.
|
|
39
|
-
*/
|
|
40
|
-
export declare function formatDuration(start: Date, end: Date): string;
|
|
41
|
-
/**
|
|
42
|
-
* Compact duration format: "45s", "4m", "2h 5m".
|
|
43
|
-
* Drops zero-valued trailing units and uses single-char suffixes.
|
|
44
|
-
*/
|
|
45
|
-
export declare function formatDurationShort(start: Date, end: Date): string;
|
|
46
|
-
/**
|
|
47
|
-
* Truncates a string from the center, showing start and end with ellipsis in the middle.
|
|
48
|
-
* @param str - The string to truncate
|
|
49
|
-
* @param maxLength - Maximum length of the output string (default: 50)
|
|
50
|
-
* @returns The truncated string with ellipsis in the middle if needed
|
|
51
|
-
*/
|
|
52
|
-
export declare function centerTruncate(str: string, maxLength?: number): string;
|
|
53
|
-
export declare function formatPercent(value: number, maxDecimals?: number): string;
|
package/lib/src/utils/html.d.ts
DELETED
package/lib/src/utils/json.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const isJson: (text: string) => boolean;
|
|
2
|
-
export declare const asJsonObjArray: (text: string) => object[] | undefined;
|
|
3
|
-
export declare const parsedJson: (text: string) => unknown;
|
|
4
|
-
export declare function estimateSize(list: unknown[], frequency?: number): number;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const createLogger: (namespace: string) => {
|
|
2
|
-
debug: (message: string, ...args: unknown[]) => void;
|
|
3
|
-
info: (message: string, ...args: unknown[]) => void;
|
|
4
|
-
warn: (message: string, ...args: unknown[]) => void;
|
|
5
|
-
error: (message: string, ...args: unknown[]) => void;
|
|
6
|
-
debugIf: (fn: () => string) => void;
|
|
7
|
-
};
|
package/lib/src/utils/mime.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isImage: (mimeType: string) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const printObject: (val: object, size?: number) => string;
|
package/lib/src/utils/path.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extracts the filename without extension from a given path.
|
|
3
|
-
*/
|
|
4
|
-
export declare const filename: (path: string) => string;
|
|
5
|
-
export declare const basename: (path: string) => string;
|
|
6
|
-
/**
|
|
7
|
-
* Extracts the directory name from a given path.
|
|
8
|
-
*/
|
|
9
|
-
export declare const dirname: (path: string) => string;
|
|
10
|
-
/**
|
|
11
|
-
* Tests whether the given path is in the specified directory.
|
|
12
|
-
*/
|
|
13
|
-
export declare const isInDirectory: (path: string, directory: string) => boolean;
|
|
14
|
-
export declare const ensureTrailingSlash: (path?: string) => string;
|
|
15
|
-
/**
|
|
16
|
-
* Converts an absolute path to a relative path based on the basePath directory.
|
|
17
|
-
* Handles nested subdirectories within the basePath directory.
|
|
18
|
-
* For example:
|
|
19
|
-
* ```
|
|
20
|
-
* toRelativePath("/Users/user/scans/subdir/scan_id=123", "/Users/user/scans") === "subdir/scan_id=123"
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare const toRelativePath: (absolutePath: string | undefined, basePath: string | undefined) => string;
|
|
24
|
-
/**
|
|
25
|
-
* Converts a relative path to an absolute path based on the results directory.
|
|
26
|
-
* For example: "subdir/scan_id=123" + "/Users/user/scans/" -> "/Users/user/scans/subdir/scan_id=123"
|
|
27
|
-
*/
|
|
28
|
-
export declare const toAbsolutePath: (relativePath: string, baseDir: string) => string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extracts the package and module names from a fully qualified Python module path
|
|
3
|
-
*
|
|
4
|
-
* @param name - A Python import path that may include a package name
|
|
5
|
-
* @returns An object containing the package and module names
|
|
6
|
-
*/
|
|
7
|
-
export declare const parsePackageName: (name: string) => PythonName;
|
|
8
|
-
export interface PythonName {
|
|
9
|
-
package: string;
|
|
10
|
-
module: string;
|
|
11
|
-
}
|
package/lib/src/utils/react.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Stable empty object reference to avoid unnecessary re-renders.
|
|
3
|
-
* Use as a default value when a nullable object prop needs a fallback.
|
|
4
|
-
*/
|
|
5
|
-
export declare const STABLE_EMPTY_OBJECT: Record<string, never>;
|
|
6
|
-
export declare const useWhyDidYouUpdate: (componentName: string, props: any) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useRequiredParams<T extends string>(...keys: T[]): Record<T, string>;
|
package/lib/src/utils/sync.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delays the execution of code for a specified number of milliseconds.
|
|
3
|
-
*/
|
|
4
|
-
export declare function sleep(ms: number): Promise<void>;
|
|
5
|
-
/**
|
|
6
|
-
* Creates a throttled version of a function that only invokes the original function
|
|
7
|
-
* at most once per every `wait` milliseconds. The throttled function will run as much
|
|
8
|
-
* as it can, without ever going more than once per `wait` duration.
|
|
9
|
-
*/
|
|
10
|
-
export declare function throttle<T extends (...args: unknown[]) => unknown>(func: T, wait: number, options?: {
|
|
11
|
-
leading?: boolean;
|
|
12
|
-
trailing?: boolean;
|
|
13
|
-
}): (...args: Parameters<T>) => ReturnType<T>;
|
|
14
|
-
/**
|
|
15
|
-
* Creates a debounced version of a function that delays invoking the function
|
|
16
|
-
* until after `wait` milliseconds have passed since the last time it was invoked.
|
|
17
|
-
*/
|
|
18
|
-
export declare function debounce<T extends (...args: any[]) => unknown>(func: T, wait: number, options?: {
|
|
19
|
-
leading?: boolean;
|
|
20
|
-
trailing?: boolean;
|
|
21
|
-
}): (...args: Parameters<T>) => ReturnType<T>;
|
package/lib/src/utils/type.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if a given value is numeric.
|
|
3
|
-
*/
|
|
4
|
-
export declare const isNumeric: (n: unknown) => boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Ensures the value is an array
|
|
7
|
-
*
|
|
8
|
-
* @param {*} val - The value to ensure is an array.
|
|
9
|
-
* @returns {Array} - an Array
|
|
10
|
-
*/
|
|
11
|
-
export declare const toArray: <T>(val: T | T[]) => Array<T>;
|
|
12
|
-
/**
|
|
13
|
-
* Checks if a given value is a Record.
|
|
14
|
-
*/
|
|
15
|
-
export declare const isRecord: (value: unknown) => value is Record<string, unknown>;
|
package/lib/src/utils/uri.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const directoryRelativeUrl: (file: string, dir?: string) => string;
|
|
2
|
-
export declare const join: (file: string, dir?: string) => string;
|
|
3
|
-
/**
|
|
4
|
-
* Encodes the path segments of a URL or relative path to ensure special characters
|
|
5
|
-
* (like `+`, spaces, etc.) are properly encoded without affecting legal characters like `/`.
|
|
6
|
-
*
|
|
7
|
-
* This function will encode file names and path portions of both absolute URLs and
|
|
8
|
-
* relative paths. It ensures that components of a full URL, such as the protocol and
|
|
9
|
-
* query parameters, remain intact, while only encoding the path.
|
|
10
|
-
*/
|
|
11
|
-
export declare function encodePathParts(url: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* Tests whether a string is a valid URI.
|
|
14
|
-
*
|
|
15
|
-
* @param value - The string to test
|
|
16
|
-
* @returns true if the string is a valid URI, false otherwise
|
|
17
|
-
*/
|
|
18
|
-
export declare const isUri: (value: string) => boolean;
|
|
19
|
-
export declare const prettyDirUri: (uri: string) => string;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DebouncedFunc } from 'lodash-es';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a debounced version of a callback that always calls the latest version.
|
|
4
|
-
*
|
|
5
|
-
* Unlike `useMemo(() => debounce(fn), [])`, this hook ensures the debounced function
|
|
6
|
-
* always invokes the most recent callback, eliminating the need for refs to access
|
|
7
|
-
* current state values.
|
|
8
|
-
*
|
|
9
|
-
* @param callback - The function to debounce. Can close over current state/props.
|
|
10
|
-
* @param delay - Debounce delay in milliseconds
|
|
11
|
-
* @returns A stable debounced function that calls the latest callback
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* const debouncedSave = useDebouncedCallback(() => {
|
|
15
|
-
* // Access current state directly - no refs needed
|
|
16
|
-
* if (!workingCase) return;
|
|
17
|
-
* mutation.mutate({ data: workingCase });
|
|
18
|
-
* }, 600);
|
|
19
|
-
*/
|
|
20
|
-
export declare function useDebouncedCallback<T extends (...args: unknown[]) => unknown>(callback: T, delay: number): DebouncedFunc<(...args: Parameters<T>) => void>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type definition for the VS Code API object
|
|
3
|
-
* Note: This is a minimal definition - expand based on your needs
|
|
4
|
-
*/
|
|
5
|
-
export interface VSCodeApi {
|
|
6
|
-
postMessage(message: unknown): void;
|
|
7
|
-
getState(): unknown;
|
|
8
|
-
setState(state: unknown): void;
|
|
9
|
-
}
|
|
10
|
-
declare global {
|
|
11
|
-
interface Window {
|
|
12
|
-
acquireVsCodeApi?: () => VSCodeApi;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Gets or initializes the VS Code API instance
|
|
17
|
-
* @returns {VSCodeApi | undefined} The VS Code API instance if in VS Code environment, undefined otherwise
|
|
18
|
-
*/
|
|
19
|
-
export declare const getVscodeApi: () => VSCodeApi | undefined;
|
|
20
|
-
export declare const isVscode: () => boolean;
|