@stigmer/react 3.1.1 → 3.1.2
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/composer/SessionComposer.d.ts +24 -1
- package/composer/SessionComposer.d.ts.map +1 -1
- package/composer/SessionComposer.js +19 -8
- package/composer/SessionComposer.js.map +1 -1
- package/execution/ArtifactContentRenderer.d.ts +11 -1
- package/execution/ArtifactContentRenderer.d.ts.map +1 -1
- package/execution/ArtifactContentRenderer.js +39 -15
- package/execution/ArtifactContentRenderer.js.map +1 -1
- package/execution/FilePathContext.d.ts +8 -1
- package/execution/FilePathContext.d.ts.map +1 -1
- package/execution/FilePathContext.js.map +1 -1
- package/execution/FilePathLink.d.ts.map +1 -1
- package/execution/FilePathLink.js +21 -6
- package/execution/FilePathLink.js.map +1 -1
- package/execution/MessageEntry.d.ts +29 -0
- package/execution/MessageEntry.d.ts.map +1 -1
- package/execution/MessageEntry.js +29 -5
- package/execution/MessageEntry.js.map +1 -1
- package/execution/MessageThread.d.ts +76 -13
- package/execution/MessageThread.d.ts.map +1 -1
- package/execution/MessageThread.js +178 -24
- package/execution/MessageThread.js.map +1 -1
- package/execution/PlanArtifactCard.d.ts +27 -18
- package/execution/PlanArtifactCard.d.ts.map +1 -1
- package/execution/PlanArtifactCard.js +13 -23
- package/execution/PlanArtifactCard.js.map +1 -1
- package/execution/PlanDocumentMessage.d.ts +32 -0
- package/execution/PlanDocumentMessage.d.ts.map +1 -0
- package/execution/PlanDocumentMessage.js +37 -0
- package/execution/PlanDocumentMessage.js.map +1 -0
- package/execution/PlanStreamingCard.d.ts +45 -0
- package/execution/PlanStreamingCard.d.ts.map +1 -0
- package/execution/PlanStreamingCard.js +35 -0
- package/execution/PlanStreamingCard.js.map +1 -0
- package/execution/index.d.ts +5 -1
- package/execution/index.d.ts.map +1 -1
- package/execution/index.js +2 -0
- package/execution/index.js.map +1 -1
- package/execution/useCreateAgentExecution.d.ts +10 -0
- package/execution/useCreateAgentExecution.d.ts.map +1 -1
- package/execution/useCreateAgentExecution.js +5 -1
- package/execution/useCreateAgentExecution.js.map +1 -1
- package/github/decodeGitHubContent.d.ts +29 -0
- package/github/decodeGitHubContent.d.ts.map +1 -0
- package/github/decodeGitHubContent.js +72 -0
- package/github/decodeGitHubContent.js.map +1 -0
- package/github/index.d.ts +1 -0
- package/github/index.d.ts.map +1 -1
- package/github/index.js +1 -0
- package/github/index.js.map +1 -1
- package/github/useGitHubFileReader.d.ts +26 -0
- package/github/useGitHubFileReader.d.ts.map +1 -0
- package/github/useGitHubFileReader.js +106 -0
- package/github/useGitHubFileReader.js.map +1 -0
- package/github/useGitHubTreeLister.d.ts.map +1 -1
- package/github/useGitHubTreeLister.js +6 -2
- package/github/useGitHubTreeLister.js.map +1 -1
- package/index.d.ts +9 -9
- package/index.d.ts.map +1 -1
- package/index.js +5 -5
- package/index.js.map +1 -1
- package/internal/ResizableSplit.d.ts +72 -22
- package/internal/ResizableSplit.d.ts.map +1 -1
- package/internal/ResizableSplit.js +96 -38
- package/internal/ResizableSplit.js.map +1 -1
- package/internal/VirtualizedThread.d.ts +5 -3
- package/internal/VirtualizedThread.d.ts.map +1 -1
- package/internal/VirtualizedThread.js +6 -4
- package/internal/VirtualizedThread.js.map +1 -1
- package/internal/file-icons/index.d.ts +17 -0
- package/internal/file-icons/index.d.ts.map +1 -0
- package/internal/file-icons/index.js +60 -0
- package/internal/file-icons/index.js.map +1 -0
- package/internal/file-tree/FileTreeNode.d.ts +18 -1
- package/internal/file-tree/FileTreeNode.d.ts.map +1 -1
- package/internal/file-tree/FileTreeNode.js +11 -2
- package/internal/file-tree/FileTreeNode.js.map +1 -1
- package/internal/markdown-components.d.ts +38 -1
- package/internal/markdown-components.d.ts.map +1 -1
- package/internal/markdown-components.js +86 -11
- package/internal/markdown-components.js.map +1 -1
- package/{workflow → internal}/motion-preference.d.ts +7 -4
- package/internal/motion-preference.d.ts.map +1 -0
- package/{workflow → internal}/motion-preference.js +7 -4
- package/internal/motion-preference.js.map +1 -0
- package/internal/store/index.d.ts +33 -0
- package/internal/store/index.d.ts.map +1 -1
- package/internal/store/index.js +59 -0
- package/internal/store/index.js.map +1 -1
- package/internal/store/workspace-editors-store.d.ts +145 -0
- package/internal/store/workspace-editors-store.d.ts.map +1 -0
- package/internal/store/workspace-editors-store.js +208 -0
- package/internal/store/workspace-editors-store.js.map +1 -0
- package/internal/store/workspace-file-selection-store.d.ts +38 -0
- package/internal/store/workspace-file-selection-store.d.ts.map +1 -0
- package/internal/store/workspace-file-selection-store.js +62 -0
- package/internal/store/workspace-file-selection-store.js.map +1 -0
- package/internal/useRevealLine.d.ts +49 -0
- package/internal/useRevealLine.d.ts.map +1 -0
- package/internal/useRevealLine.js +43 -0
- package/internal/useRevealLine.js.map +1 -0
- package/library/detect-plan-artifact.d.ts +21 -0
- package/library/detect-plan-artifact.d.ts.map +1 -1
- package/library/detect-plan-artifact.js +20 -0
- package/library/detect-plan-artifact.js.map +1 -1
- package/library/detect-streaming-plan.d.ts +45 -0
- package/library/detect-streaming-plan.d.ts.map +1 -0
- package/library/detect-streaming-plan.js +83 -0
- package/library/detect-streaming-plan.js.map +1 -0
- package/library/index.d.ts +4 -1
- package/library/index.d.ts.map +1 -1
- package/library/index.js +2 -1
- package/library/index.js.map +1 -1
- package/package.json +4 -4
- package/session/NewSessionViewer.d.ts +19 -4
- package/session/NewSessionViewer.d.ts.map +1 -1
- package/session/NewSessionViewer.js +52 -25
- package/session/NewSessionViewer.js.map +1 -1
- package/session/PlanEditor.d.ts +55 -0
- package/session/PlanEditor.d.ts.map +1 -0
- package/session/PlanEditor.js +88 -0
- package/session/PlanEditor.js.map +1 -0
- package/session/PlanStreamingDocument.d.ts +30 -0
- package/session/PlanStreamingDocument.d.ts.map +1 -0
- package/session/PlanStreamingDocument.js +37 -0
- package/session/PlanStreamingDocument.js.map +1 -0
- package/session/SessionPanelChip.d.ts +26 -0
- package/session/SessionPanelChip.d.ts.map +1 -0
- package/session/SessionPanelChip.js +40 -0
- package/session/SessionPanelChip.js.map +1 -0
- package/session/SessionViewer.d.ts +34 -7
- package/session/SessionViewer.d.ts.map +1 -1
- package/session/SessionViewer.js +315 -33
- package/session/SessionViewer.js.map +1 -1
- package/session/{inspector → facets}/ArtifactsTab.d.ts +10 -2
- package/session/facets/ArtifactsTab.d.ts.map +1 -0
- package/session/{inspector → facets}/ArtifactsTab.js +8 -3
- package/session/facets/ArtifactsTab.js.map +1 -0
- package/session/{inspector → facets}/ChangesTab.d.ts +3 -3
- package/session/facets/ChangesTab.d.ts.map +1 -0
- package/session/{inspector → facets}/ChangesTab.js +3 -3
- package/session/facets/ChangesTab.js.map +1 -0
- package/session/facets/InspectTab.d.ts.map +1 -0
- package/session/facets/InspectTab.js.map +1 -0
- package/session/{inspector → facets}/SetupTab.d.ts +11 -2
- package/session/facets/SetupTab.d.ts.map +1 -0
- package/session/{inspector → facets}/SetupTab.js +4 -3
- package/session/facets/SetupTab.js.map +1 -0
- package/session/{inspector → facets}/UsageTab.d.ts +1 -1
- package/session/facets/UsageTab.d.ts.map +1 -0
- package/session/{inspector → facets}/UsageTab.js +1 -1
- package/session/facets/UsageTab.js.map +1 -0
- package/session/{inspector → facets}/index.d.ts +0 -6
- package/session/facets/index.d.ts.map +1 -0
- package/session/{inspector → facets}/index.js +0 -3
- package/session/facets/index.js.map +1 -0
- package/session/index.d.ts +11 -2
- package/session/index.d.ts.map +1 -1
- package/session/index.js +15 -2
- package/session/index.js.map +1 -1
- package/session/plan-document.d.ts +9 -0
- package/session/plan-document.d.ts.map +1 -0
- package/session/plan-document.js +17 -0
- package/session/plan-document.js.map +1 -0
- package/session/useOpenFileChange.d.ts +20 -0
- package/session/useOpenFileChange.d.ts.map +1 -0
- package/session/useOpenFileChange.js +31 -0
- package/session/useOpenFileChange.js.map +1 -0
- package/session/usePlanDraft.d.ts +52 -0
- package/session/usePlanDraft.d.ts.map +1 -0
- package/session/usePlanDraft.js +63 -0
- package/session/usePlanDraft.js.map +1 -0
- package/session/useSessionConversation.d.ts +6 -0
- package/session/useSessionConversation.d.ts.map +1 -1
- package/session/useSessionConversation.js +1 -0
- package/session/useSessionConversation.js.map +1 -1
- package/session/useSessionPageFlow.d.ts.map +1 -1
- package/session/useSessionPageFlow.js +1 -0
- package/session/useSessionPageFlow.js.map +1 -1
- package/session/useSessionPanel.d.ts +120 -0
- package/session/useSessionPanel.d.ts.map +1 -0
- package/session/useSessionPanel.js +130 -0
- package/session/useSessionPanel.js.map +1 -0
- package/session/useSessionRailViews.d.ts +45 -0
- package/session/useSessionRailViews.d.ts.map +1 -0
- package/session/useSessionRailViews.js +105 -0
- package/session/useSessionRailViews.js.map +1 -0
- package/src/composer/SessionComposer.tsx +52 -10
- package/src/composer/__tests__/SessionComposer-contract.test.tsx +58 -4
- package/src/execution/ArtifactContentRenderer.tsx +101 -24
- package/src/execution/FilePathContext.tsx +8 -1
- package/src/execution/FilePathLink.tsx +22 -6
- package/src/execution/MessageEntry.tsx +111 -1
- package/src/execution/MessageThread.tsx +291 -36
- package/src/execution/PlanArtifactCard.tsx +63 -31
- package/src/execution/PlanDocumentMessage.tsx +96 -0
- package/src/execution/PlanStreamingCard.tsx +137 -0
- package/src/execution/__tests__/ArtifactContentRenderer.test.tsx +80 -1
- package/src/execution/__tests__/FilePathLink.test.tsx +87 -0
- package/src/execution/__tests__/MessageThread.test.tsx +101 -0
- package/src/execution/__tests__/PlanArtifactCard.test.tsx +66 -12
- package/src/execution/__tests__/PlanDocumentMessage.test.tsx +55 -0
- package/src/execution/__tests__/PlanStreamingCard.test.tsx +49 -0
- package/src/execution/__tests__/buildThreadItems-plan-completion.test.ts +504 -22
- package/src/execution/__tests__/message-entry.test.tsx +48 -0
- package/src/execution/__tests__/useCreateAgentExecution.test.tsx +85 -0
- package/src/execution/index.ts +7 -1
- package/src/execution/useCreateAgentExecution.ts +16 -1
- package/src/github/__tests__/decodeGitHubContent.test.ts +102 -0
- package/src/github/__tests__/useGitHubFileReader.test.ts +183 -0
- package/src/github/decodeGitHubContent.ts +83 -0
- package/src/github/index.ts +1 -0
- package/src/github/useGitHubFileReader.ts +152 -0
- package/src/github/useGitHubTreeLister.ts +6 -2
- package/src/index.ts +63 -9
- package/src/internal/ResizableSplit.tsx +184 -51
- package/src/internal/VirtualizedThread.tsx +12 -4
- package/src/internal/__tests__/ResizableSplit.test.tsx +125 -3
- package/src/internal/__tests__/markdown-components.test.tsx +68 -0
- package/src/internal/__tests__/useRevealLine.test.tsx +97 -0
- package/src/internal/file-icons/__tests__/file-icons.test.tsx +35 -0
- package/src/internal/file-icons/index.tsx +137 -0
- package/src/internal/file-tree/FileTreeNode.tsx +43 -3
- package/src/internal/file-tree/__tests__/FileTreeNode-explorer.test.tsx +86 -0
- package/src/internal/markdown-components.tsx +116 -11
- package/src/{workflow → internal}/motion-preference.ts +7 -4
- package/src/internal/store/__tests__/workspace-editors-store.test.ts +216 -0
- package/src/internal/store/__tests__/workspace-file-selection-store.test.ts +118 -0
- package/src/internal/store/index.ts +94 -0
- package/src/internal/store/workspace-editors-store.ts +315 -0
- package/src/internal/store/workspace-file-selection-store.ts +88 -0
- package/src/internal/useRevealLine.ts +81 -0
- package/src/library/__tests__/detect-plan-artifact.test.ts +48 -0
- package/src/library/__tests__/detect-streaming-plan.test.ts +234 -0
- package/src/library/detect-plan-artifact.ts +35 -0
- package/src/library/detect-streaming-plan.ts +108 -0
- package/src/library/index.ts +5 -0
- package/src/session/NewSessionViewer.tsx +123 -55
- package/src/session/PlanEditor.tsx +361 -0
- package/src/session/PlanStreamingDocument.tsx +97 -0
- package/src/session/SessionPanelChip.tsx +103 -0
- package/src/session/SessionViewer.tsx +617 -90
- package/src/session/__tests__/NewSessionViewer.test.tsx +148 -0
- package/src/session/__tests__/PlanEditor.test.tsx +217 -0
- package/src/session/__tests__/PlanStreamingDocument.test.tsx +50 -0
- package/src/session/__tests__/SessionPanelChip.test.tsx +42 -0
- package/src/session/__tests__/SessionViewer-fileReviewDock.test.tsx +9 -4
- package/src/session/__tests__/SessionViewer-transcriptFileOpen.test.tsx +205 -0
- package/src/session/__tests__/audienceWiring.test.tsx +55 -19
- package/src/session/__tests__/useOpenFileChange.test.tsx +82 -0
- package/src/session/__tests__/usePlanDraft.test.ts +102 -0
- package/src/session/__tests__/useSessionPanel.test.ts +298 -0
- package/src/session/__tests__/useSessionRailViews.test.tsx +124 -0
- package/src/session/{inspector → facets}/ArtifactsTab.tsx +27 -5
- package/src/session/{inspector → facets}/ChangesTab.tsx +3 -3
- package/src/session/{inspector → facets}/SetupTab.tsx +13 -1
- package/src/session/{inspector → facets}/UsageTab.tsx +1 -1
- package/src/session/{inspector → facets}/__tests__/ArtifactsTab.test.tsx +35 -1
- package/src/session/facets/__tests__/SetupTab.test.tsx +44 -0
- package/src/session/{inspector → facets}/index.ts +0 -16
- package/src/session/index.ts +30 -13
- package/src/session/plan-document.ts +19 -0
- package/src/session/useOpenFileChange.ts +53 -0
- package/src/session/usePlanDraft.ts +109 -0
- package/src/session/useSessionConversation.ts +7 -0
- package/src/session/useSessionPageFlow.ts +1 -0
- package/src/session/useSessionPanel.ts +288 -0
- package/src/session/useSessionRailViews.tsx +200 -0
- package/src/workflow/WorkflowExecutionGraph.tsx +1 -1
- package/src/workflow/index.ts +1 -1
- package/src/workflow/useFollowExecution.ts +1 -1
- package/src/workspace/EditorTabs.tsx +145 -0
- package/src/workspace/ExplorerTree.tsx +247 -0
- package/src/workspace/FileViewer.tsx +516 -0
- package/src/workspace/WorkspaceContentSearch.tsx +478 -0
- package/src/workspace/WorkspaceContentSearcher.ts +70 -0
- package/src/workspace/WorkspaceFileLister.ts +11 -0
- package/src/workspace/WorkspaceFileReader.ts +57 -0
- package/src/workspace/WorkspaceFileSearch.tsx +429 -0
- package/src/workspace/WorkspaceSurface.tsx +781 -0
- package/src/workspace/__tests__/EditorTabs.test.tsx +100 -0
- package/src/workspace/__tests__/ExplorerTree.test.tsx +152 -0
- package/src/workspace/__tests__/FileViewer.test.tsx +421 -0
- package/src/workspace/__tests__/WorkspaceContentSearch.test.tsx +196 -0
- package/src/workspace/__tests__/WorkspaceFileSearch.test.tsx +206 -0
- package/src/workspace/__tests__/WorkspaceSurface.test.tsx +348 -0
- package/src/workspace/__tests__/findChangeForSelection.test.ts +132 -0
- package/src/workspace/__tests__/matchContentPreview.test.ts +55 -0
- package/src/workspace/__tests__/matchWorkspaceFiles.test.ts +104 -0
- package/src/workspace/__tests__/resolveWorkspaceFileSelection.test.ts +135 -0
- package/src/workspace/__tests__/useWorkspaceContentSearch.test.tsx +196 -0
- package/src/workspace/__tests__/useWorkspaceFileContent.test.tsx +190 -0
- package/src/workspace/__tests__/useWorkspaceFileSearch.test.tsx +162 -0
- package/src/workspace/findChangeForSelection.ts +61 -0
- package/src/workspace/index.ts +56 -2
- package/src/workspace/matchContentPreview.ts +51 -0
- package/src/workspace/matchWorkspaceFiles.ts +86 -0
- package/src/workspace/resolveWorkspaceFileSelection.ts +119 -0
- package/src/workspace/useWorkspaceContentSearch.ts +228 -0
- package/src/workspace/useWorkspaceFileContent.ts +129 -0
- package/src/workspace/useWorkspaceFileSearch.ts +184 -0
- package/src/workspace/useWorkspaceFiles.ts +27 -27
- package/src/workspace/workspaceListingCache.ts +93 -0
- package/styles.css +1 -1
- package/workflow/WorkflowExecutionGraph.js +1 -1
- package/workflow/WorkflowExecutionGraph.js.map +1 -1
- package/workflow/index.d.ts +1 -1
- package/workflow/index.d.ts.map +1 -1
- package/workflow/index.js +1 -1
- package/workflow/index.js.map +1 -1
- package/workflow/useFollowExecution.js +1 -1
- package/workflow/useFollowExecution.js.map +1 -1
- package/workspace/EditorTabs.d.ts +29 -0
- package/workspace/EditorTabs.d.ts.map +1 -0
- package/workspace/EditorTabs.js +66 -0
- package/workspace/EditorTabs.js.map +1 -0
- package/workspace/ExplorerTree.d.ts +32 -0
- package/workspace/ExplorerTree.d.ts.map +1 -0
- package/workspace/ExplorerTree.js +45 -0
- package/workspace/ExplorerTree.js.map +1 -0
- package/workspace/FileViewer.d.ts +93 -0
- package/workspace/FileViewer.d.ts.map +1 -0
- package/workspace/FileViewer.js +182 -0
- package/workspace/FileViewer.js.map +1 -0
- package/workspace/WorkspaceContentSearch.d.ts +41 -0
- package/workspace/WorkspaceContentSearch.d.ts.map +1 -0
- package/workspace/WorkspaceContentSearch.js +195 -0
- package/workspace/WorkspaceContentSearch.js.map +1 -0
- package/workspace/WorkspaceContentSearcher.d.ts +59 -0
- package/workspace/WorkspaceContentSearcher.d.ts.map +1 -0
- package/workspace/WorkspaceContentSearcher.js +7 -0
- package/workspace/WorkspaceContentSearcher.js.map +1 -0
- package/workspace/WorkspaceFileLister.d.ts +11 -0
- package/workspace/WorkspaceFileLister.d.ts.map +1 -1
- package/workspace/WorkspaceFileReader.d.ts +48 -0
- package/workspace/WorkspaceFileReader.d.ts.map +1 -0
- package/workspace/WorkspaceFileReader.js +11 -0
- package/workspace/WorkspaceFileReader.js.map +1 -0
- package/workspace/WorkspaceFileSearch.d.ts +32 -0
- package/workspace/WorkspaceFileSearch.d.ts.map +1 -0
- package/workspace/WorkspaceFileSearch.js +155 -0
- package/workspace/WorkspaceFileSearch.js.map +1 -0
- package/workspace/WorkspaceSurface.d.ts +151 -0
- package/workspace/WorkspaceSurface.d.ts.map +1 -0
- package/workspace/WorkspaceSurface.js +184 -0
- package/workspace/WorkspaceSurface.js.map +1 -0
- package/workspace/findChangeForSelection.d.ts +19 -0
- package/workspace/findChangeForSelection.d.ts.map +1 -0
- package/workspace/findChangeForSelection.js +46 -0
- package/workspace/findChangeForSelection.js.map +1 -0
- package/workspace/index.d.ts +24 -2
- package/workspace/index.d.ts.map +1 -1
- package/workspace/index.js +13 -1
- package/workspace/index.js.map +1 -1
- package/workspace/matchContentPreview.d.ts +21 -0
- package/workspace/matchContentPreview.d.ts.map +1 -0
- package/workspace/matchContentPreview.js +36 -0
- package/workspace/matchContentPreview.js.map +1 -0
- package/workspace/matchWorkspaceFiles.d.ts +30 -0
- package/workspace/matchWorkspaceFiles.d.ts.map +1 -0
- package/workspace/matchWorkspaceFiles.js +58 -0
- package/workspace/matchWorkspaceFiles.js.map +1 -0
- package/workspace/resolveWorkspaceFileSelection.d.ts +19 -0
- package/workspace/resolveWorkspaceFileSelection.d.ts.map +1 -0
- package/workspace/resolveWorkspaceFileSelection.js +115 -0
- package/workspace/resolveWorkspaceFileSelection.js.map +1 -0
- package/workspace/useWorkspaceContentSearch.d.ts +69 -0
- package/workspace/useWorkspaceContentSearch.d.ts.map +1 -0
- package/workspace/useWorkspaceContentSearch.js +154 -0
- package/workspace/useWorkspaceContentSearch.js.map +1 -0
- package/workspace/useWorkspaceFileContent.d.ts +73 -0
- package/workspace/useWorkspaceFileContent.d.ts.map +1 -0
- package/workspace/useWorkspaceFileContent.js +57 -0
- package/workspace/useWorkspaceFileContent.js.map +1 -0
- package/workspace/useWorkspaceFileSearch.d.ts +61 -0
- package/workspace/useWorkspaceFileSearch.d.ts.map +1 -0
- package/workspace/useWorkspaceFileSearch.js +119 -0
- package/workspace/useWorkspaceFileSearch.js.map +1 -0
- package/workspace/useWorkspaceFiles.d.ts +13 -5
- package/workspace/useWorkspaceFiles.d.ts.map +1 -1
- package/workspace/useWorkspaceFiles.js +18 -19
- package/workspace/useWorkspaceFiles.js.map +1 -1
- package/workspace/workspaceListingCache.d.ts +47 -0
- package/workspace/workspaceListingCache.d.ts.map +1 -0
- package/workspace/workspaceListingCache.js +55 -0
- package/workspace/workspaceListingCache.js.map +1 -0
- package/session/inspector/ArtifactsTab.d.ts.map +0 -1
- package/session/inspector/ArtifactsTab.js.map +0 -1
- package/session/inspector/ChangesTab.d.ts.map +0 -1
- package/session/inspector/ChangesTab.js.map +0 -1
- package/session/inspector/InspectTab.d.ts.map +0 -1
- package/session/inspector/InspectTab.js.map +0 -1
- package/session/inspector/SessionInspector.d.ts +0 -64
- package/session/inspector/SessionInspector.d.ts.map +0 -1
- package/session/inspector/SessionInspector.js +0 -53
- package/session/inspector/SessionInspector.js.map +0 -1
- package/session/inspector/SetupTab.d.ts.map +0 -1
- package/session/inspector/SetupTab.js.map +0 -1
- package/session/inspector/UsageTab.d.ts.map +0 -1
- package/session/inspector/UsageTab.js.map +0 -1
- package/session/inspector/WorkspaceTab.d.ts +0 -35
- package/session/inspector/WorkspaceTab.d.ts.map +0 -1
- package/session/inspector/WorkspaceTab.js +0 -75
- package/session/inspector/WorkspaceTab.js.map +0 -1
- package/session/inspector/index.d.ts.map +0 -1
- package/session/inspector/index.js.map +0 -1
- package/session/inspector/useSessionInspector.d.ts +0 -49
- package/session/inspector/useSessionInspector.d.ts.map +0 -1
- package/session/inspector/useSessionInspector.js +0 -122
- package/session/inspector/useSessionInspector.js.map +0 -1
- package/src/session/inspector/SessionInspector.tsx +0 -162
- package/src/session/inspector/WorkspaceTab.tsx +0 -245
- package/src/session/inspector/__tests__/useSessionInspector.test.ts +0 -251
- package/src/session/inspector/useSessionInspector.ts +0 -178
- package/src/workspace/WorkspaceEntryFiles.tsx +0 -196
- package/workflow/motion-preference.d.ts.map +0 -1
- package/workflow/motion-preference.js.map +0 -1
- package/workspace/WorkspaceEntryFiles.d.ts +0 -22
- package/workspace/WorkspaceEntryFiles.d.ts.map +0 -1
- package/workspace/WorkspaceEntryFiles.js +0 -58
- package/workspace/WorkspaceEntryFiles.js.map +0 -1
- /package/session/{inspector → facets}/InspectTab.d.ts +0 -0
- /package/session/{inspector → facets}/InspectTab.js +0 -0
- /package/src/{workflow → internal}/__tests__/motion-preference.test.ts +0 -0
- /package/src/session/{inspector → facets}/InspectTab.tsx +0 -0
- /package/src/session/{inspector → facets}/__tests__/ChangesTab.test.tsx +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlanEditor.js","sourceRoot":"","sources":["../../src/session/PlanEditor.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OA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AAG,EAC7D,cAAK,SAAS,EAAC,0CAA0C,GAAG,IACxD,CACP,CAAC;AACJ,CAAC;AAED,SAAS,OAAO,CAAC,EACf,MAAM,EACN,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,GAON;IACC,OAAO,CACL,iBACE,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,KAAK,mBACK,MAAM,EACrB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,EAAE,CACX,kEAAkE,EAClE,yEAAyE,EACzE,MAAM;YACJ,CAAC,CAAC,mCAAmC;YACrC,CAAC,CAAC,6CAA6C,EACjD,kDAAkD,CACnD,YAEA,KAAK,GACC,CACV,CAAC;AACJ,CAAC;AAED,SAAS,aAAa;IACpB,OAAO,CACL,cACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,YAElB,eAAM,CAAC,EAAC,oBAAoB,GAAG,GAC3B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** Props for {@link PlanStreamingDocument}. */
|
|
2
|
+
export interface PlanStreamingDocumentProps {
|
|
3
|
+
/**
|
|
4
|
+
* The live plan text, already fence-stripped by `findStreamingPlan`
|
|
5
|
+
* (`StreamingPlan.displayText`). Grows on every stream commit.
|
|
6
|
+
*/
|
|
7
|
+
readonly displayText: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The plan document tab's LIVE view: renders the plan as it streams, before
|
|
11
|
+
* any artifact exists. The streaming counterpart of {@link PlanEditor} — same
|
|
12
|
+
* centered document column, same header-lifted title, same plan-document
|
|
13
|
+
* typography — so the moment the turn completes and the artifact-backed
|
|
14
|
+
* editor takes over, the document simply stops moving rather than changing
|
|
15
|
+
* shape.
|
|
16
|
+
*
|
|
17
|
+
* Deliberately capability-free: no view tabs, no Edit, no Build — a plan in
|
|
18
|
+
* flight cannot be edited or implemented, and offering dead controls would
|
|
19
|
+
* misstate the turn's state. A "Writing…" status pill stands where the
|
|
20
|
+
* editor's toolbar will appear.
|
|
21
|
+
*
|
|
22
|
+
* Rendering goes through `Streamdown` (the same streaming-aware renderer the
|
|
23
|
+
* thread's `AiMessage` uses: block-level memoization, incomplete-syntax
|
|
24
|
+
* healing, animated caret) rather than `PlanEditor`'s static markdown — this
|
|
25
|
+
* component re-renders on every stream commit by design.
|
|
26
|
+
*
|
|
27
|
+
* All visual properties flow through `--stgm-*` tokens.
|
|
28
|
+
*/
|
|
29
|
+
export declare function PlanStreamingDocument({ displayText, }: PlanStreamingDocumentProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=PlanStreamingDocument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlanStreamingDocument.d.ts","sourceRoot":"","sources":["../../src/session/PlanStreamingDocument.tsx"],"names":[],"mappings":"AASA,+CAA+C;AAC/C,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,WAAW,GACZ,EAAE,0BAA0B,2CA2C5B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { Streamdown } from "streamdown";
|
|
5
|
+
import { PLAN_DOCUMENT_MARKDOWN_COMPONENTS, extractLeadingH1, } from "../internal/markdown-components.js";
|
|
6
|
+
/**
|
|
7
|
+
* The plan document tab's LIVE view: renders the plan as it streams, before
|
|
8
|
+
* any artifact exists. The streaming counterpart of {@link PlanEditor} — same
|
|
9
|
+
* centered document column, same header-lifted title, same plan-document
|
|
10
|
+
* typography — so the moment the turn completes and the artifact-backed
|
|
11
|
+
* editor takes over, the document simply stops moving rather than changing
|
|
12
|
+
* shape.
|
|
13
|
+
*
|
|
14
|
+
* Deliberately capability-free: no view tabs, no Edit, no Build — a plan in
|
|
15
|
+
* flight cannot be edited or implemented, and offering dead controls would
|
|
16
|
+
* misstate the turn's state. A "Writing…" status pill stands where the
|
|
17
|
+
* editor's toolbar will appear.
|
|
18
|
+
*
|
|
19
|
+
* Rendering goes through `Streamdown` (the same streaming-aware renderer the
|
|
20
|
+
* thread's `AiMessage` uses: block-level memoization, incomplete-syntax
|
|
21
|
+
* healing, animated caret) rather than `PlanEditor`'s static markdown — this
|
|
22
|
+
* component re-renders on every stream commit by design.
|
|
23
|
+
*
|
|
24
|
+
* All visual properties flow through `--stgm-*` tokens.
|
|
25
|
+
*/
|
|
26
|
+
export function PlanStreamingDocument({ displayText, }) {
|
|
27
|
+
const { title, body } = useMemo(() => extractLeadingH1(displayText), [displayText]);
|
|
28
|
+
return (_jsxs("div", { role: "article", "aria-label": "Plan document", "aria-busy": "true", className: "mx-auto flex w-full max-w-3xl flex-col gap-3 px-4 py-3", children: [_jsx("div", { className: "flex min-w-0 flex-wrap items-center gap-2", children: _jsxs("span", { role: "status", className: "inline-flex items-center gap-1.5 rounded-md bg-muted px-2 py-0.5 text-[0.65rem] font-medium text-muted-foreground", children: [_jsx(WritingDot, {}), "Writing\u2026"] }) }), _jsxs("div", { className: "overflow-hidden rounded-lg border border-border-muted bg-card", children: [title && (_jsx("header", { className: "border-b border-border-muted bg-muted-faint px-4 py-2.5", children: _jsx("span", { className: "block truncate text-sm font-semibold text-foreground", children: title }) })), _jsx("div", { className: "stgm-prose px-4 py-4", children: _jsx(Streamdown, { components: PLAN_DOCUMENT_MARKDOWN_COMPONENTS, isAnimating: true, caret: "block", children: body }) })] })] }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The pill's pulsing dot — a CSS animation inside `.stgm`, covered by the
|
|
32
|
+
* stylesheet's global `prefers-reduced-motion` rule (DD-015).
|
|
33
|
+
*/
|
|
34
|
+
function WritingDot() {
|
|
35
|
+
return (_jsx("span", { "aria-hidden": "true", className: "size-1.5 animate-pulse rounded-full bg-primary" }));
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=PlanStreamingDocument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlanStreamingDocument.js","sourceRoot":"","sources":["../../src/session/PlanStreamingDocument.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EACL,iCAAiC,EACjC,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAW5C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,qBAAqB,CAAC,EACpC,WAAW,GACgB;IAC3B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,OAAO,CAC7B,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,CAAC,EACnC,CAAC,WAAW,CAAC,CACd,CAAC;IAEF,OAAO,CACL,eACE,IAAI,EAAC,SAAS,gBACH,eAAe,eAChB,MAAM,EAChB,SAAS,EAAC,wDAAwD,aAElE,cAAK,SAAS,EAAC,2CAA2C,YACxD,gBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,mHAAmH,aAE7H,KAAC,UAAU,KAAG,qBAET,GACH,EAEN,eAAK,SAAS,EAAC,+DAA+D,aAC3E,KAAK,IAAI,CACR,iBAAQ,SAAS,EAAC,yDAAyD,YACzE,eAAM,SAAS,EAAC,sDAAsD,YACnE,KAAK,GACD,GACA,CACV,EACD,cAAK,SAAS,EAAC,sBAAsB,YACnC,KAAC,UAAU,IACT,UAAU,EAAE,iCAAiC,EAC7C,WAAW,QACX,KAAK,EAAC,OAAO,YAEZ,IAAI,GACM,GACT,IACF,IACF,CACP,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,UAAU;IACjB,OAAO,CACL,8BACc,MAAM,EAClB,SAAS,EAAC,gDAAgD,GAC1D,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Props for {@link SessionPanelChip}. */
|
|
2
|
+
export interface SessionPanelChipProps {
|
|
3
|
+
/** Whether the panel is currently expanded. */
|
|
4
|
+
readonly isOpen: boolean;
|
|
5
|
+
/** Toggles the panel open/collapsed. */
|
|
6
|
+
readonly onToggle: () => void;
|
|
7
|
+
/**
|
|
8
|
+
* Aggregate count of facet items (write-backs + artifacts) awaiting the
|
|
9
|
+
* user. Rendered as a dot-count while collapsed — the panel's only "something
|
|
10
|
+
* arrived" signal, since arrivals never auto-open the panel.
|
|
11
|
+
*/
|
|
12
|
+
readonly badgeCount?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The always-mounted top-right toggle for the unified session panel — the
|
|
16
|
+
* Cursor "Show panel" chip. Collapsed, it carries the pending-item count;
|
|
17
|
+
* open, it is the hide affordance. Being a small leaf, it is also the one
|
|
18
|
+
* place that may safely carry per-arrival re-renders while the panel subtree
|
|
19
|
+
* is unmounted. Execution status deliberately does not surface here (or
|
|
20
|
+
* anywhere else in the viewer chrome) — the thread itself communicates run
|
|
21
|
+
* state.
|
|
22
|
+
*
|
|
23
|
+
* All visual properties flow through `--stgm-*` tokens (DD-005).
|
|
24
|
+
*/
|
|
25
|
+
export declare function SessionPanelChip({ isOpen, onToggle, badgeCount, }: SessionPanelChipProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=SessionPanelChip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionPanelChip.d.ts","sourceRoot":"","sources":["../../src/session/SessionPanelChip.tsx"],"names":[],"mappings":"AAKA,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,QAAQ,EACR,UAAU,GACX,EAAE,qBAAqB,2CA0CvB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useRef } from "react";
|
|
4
|
+
import { cn } from "@stigmer/theme";
|
|
5
|
+
/**
|
|
6
|
+
* The always-mounted top-right toggle for the unified session panel — the
|
|
7
|
+
* Cursor "Show panel" chip. Collapsed, it carries the pending-item count;
|
|
8
|
+
* open, it is the hide affordance. Being a small leaf, it is also the one
|
|
9
|
+
* place that may safely carry per-arrival re-renders while the panel subtree
|
|
10
|
+
* is unmounted. Execution status deliberately does not surface here (or
|
|
11
|
+
* anywhere else in the viewer chrome) — the thread itself communicates run
|
|
12
|
+
* state.
|
|
13
|
+
*
|
|
14
|
+
* All visual properties flow through `--stgm-*` tokens (DD-005).
|
|
15
|
+
*/
|
|
16
|
+
export function SessionPanelChip({ isOpen, onToggle, badgeCount, }) {
|
|
17
|
+
const showCount = !isOpen && badgeCount != null && badgeCount > 0;
|
|
18
|
+
// Focus restoration: collapsing unmounts the panel subtree, so keyboard
|
|
19
|
+
// focus that lived inside it (rail, tabs, viewer) falls to <body>. Reclaim
|
|
20
|
+
// it here — the chip is the collapse's logical origin. Focus resting
|
|
21
|
+
// anywhere else (e.g. the composer) is respected. Opening deliberately does
|
|
22
|
+
// NOT move focus: the chip is a standard disclosure trigger.
|
|
23
|
+
const buttonRef = useRef(null);
|
|
24
|
+
const prevOpenRef = useRef(isOpen);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (prevOpenRef.current && !isOpen && document.activeElement === document.body) {
|
|
27
|
+
buttonRef.current?.focus();
|
|
28
|
+
}
|
|
29
|
+
prevOpenRef.current = isOpen;
|
|
30
|
+
}, [isOpen]);
|
|
31
|
+
return (_jsxs("button", { ref: buttonRef, type: "button", onClick: onToggle, "aria-expanded": isOpen, "aria-label": isOpen ? "Hide panel" : "Show panel", title: isOpen ? "Hide panel" : "Show panel", className: cn("flex items-center gap-1.5 rounded-md border border-border bg-card px-1.5 py-1", "text-muted-foreground transition-colors hover:bg-muted hover:text-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"), children: [showCount && (_jsx("span", { "aria-label": `${badgeCount} new items`, className: "inline-flex min-w-[1rem] items-center justify-center rounded-full bg-primary px-1 py-px text-[10px] font-medium leading-none text-primary-foreground", children: badgeCount })), _jsx(PanelIcon, { open: isOpen })] }));
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Panel-layout glyph: a frame with its right region filled while the panel is
|
|
35
|
+
* open, hollow while collapsed — mirroring the state it toggles to at a glance.
|
|
36
|
+
*/
|
|
37
|
+
function PanelIcon({ open }) {
|
|
38
|
+
return (_jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("rect", { x: "1.5", y: "2.5", width: "13", height: "11", rx: "1.5" }), _jsx("path", { d: "M9.5 2.5v11" }), open && (_jsx("rect", { x: "9.5", y: "2.5", width: "5", height: "11", rx: "1.5", fill: "currentColor", stroke: "none" }))] }));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=SessionPanelChip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionPanelChip.js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sJ,YAE/J,UAAU,GACN,CACR,EACD,KAAC,SAAS,IAAC,IAAI,EAAE,MAAM,GAAI,IACpB,CACV,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,SAAS,CAAC,EAAE,IAAI,EAA8B;IACrD,OAAO,CACL,eACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,aAElB,eAAM,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,KAAK,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,GAAG,EACxD,eAAM,CAAC,EAAC,aAAa,GAAG,EACvB,IAAI,IAAI,CACP,eAAM,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,KAAK,EAAC,KAAK,EAAC,GAAG,EAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,IAAI,EAAC,cAAc,EAAC,MAAM,EAAC,MAAM,GAAG,CAC1F,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import type { UseGitHubConnectionReturn } from "../github/useGitHubConnection.js";
|
|
3
3
|
import type { WorkspaceFileLister } from "../workspace/WorkspaceFileLister.js";
|
|
4
|
+
import type { WorkspaceFileReader } from "../workspace/WorkspaceFileReader.js";
|
|
5
|
+
import type { WorkspaceContentSearcher } from "../workspace/WorkspaceContentSearcher.js";
|
|
4
6
|
import type { ApplyResourceResult } from "../library/useApplyResource.js";
|
|
5
7
|
import type { RuntimeEnvProvider } from "./runtime-env.js";
|
|
6
8
|
import type { SessionAudience } from "./audience.js";
|
|
@@ -45,6 +47,21 @@ export interface SessionViewerProps {
|
|
|
45
47
|
* expandable file tree. (DD-004 capability injection, DD-011 opt-in.)
|
|
46
48
|
*/
|
|
47
49
|
readonly workspaceFileLister?: WorkspaceFileLister;
|
|
50
|
+
/**
|
|
51
|
+
* Platform-injected content reader for the read-only file viewer. When
|
|
52
|
+
* provided, clicking a file in the Workspace tree opens it in a contextual
|
|
53
|
+
* "Viewer" tab. GitHub Contents/blob on web, Tauri fs on desktop; `undefined`
|
|
54
|
+
* degrades the viewer to an "unavailable here" state (DD-004, DD-011 opt-in).
|
|
55
|
+
*/
|
|
56
|
+
readonly workspaceFileReader?: WorkspaceFileReader;
|
|
57
|
+
/**
|
|
58
|
+
* Platform-injected content (text) searcher. When provided, the session
|
|
59
|
+
* panel's Search pane gains a `Name | Text` toggle for full-text search
|
|
60
|
+
* across the workspace. Desktop injects a native ripgrep-backed searcher;
|
|
61
|
+
* web leaves it undefined (git content search needs a branch-accurate
|
|
62
|
+
* backend — DD-09), keeping Search filename-only there (DD-004, DD-011 opt-in).
|
|
63
|
+
*/
|
|
64
|
+
readonly workspaceContentSearcher?: WorkspaceContentSearcher;
|
|
48
65
|
/**
|
|
49
66
|
* Supplies host-app environment variables for every follow-up
|
|
50
67
|
* execution (e.g. short-lived credentials for MCP tools, minted as
|
|
@@ -67,11 +84,18 @@ export interface SessionViewerProps {
|
|
|
67
84
|
*/
|
|
68
85
|
readonly audience?: SessionAudience;
|
|
69
86
|
/**
|
|
70
|
-
* Slot for host-injected header actions
|
|
71
|
-
*
|
|
72
|
-
*
|
|
87
|
+
* Slot for host-injected header actions. Rendered in the top-right corner
|
|
88
|
+
* of the viewer, beside the panel chip. Keeps the SDK organism
|
|
89
|
+
* unopinionated about Console auth (DD-004).
|
|
73
90
|
*/
|
|
74
91
|
readonly headerActions?: ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* Host-injected access management control (e.g. the Console's
|
|
94
|
+
* `ManageAccessButton` with its own permission gating). Rendered inside
|
|
95
|
+
* the panel's Config facet rather than the header — access is session
|
|
96
|
+
* configuration, not a moment-to-moment action (DD-004 slot injection).
|
|
97
|
+
*/
|
|
98
|
+
readonly accessSlot?: ReactNode;
|
|
75
99
|
/** Called after a resource is applied from the Artifacts tab. */
|
|
76
100
|
readonly onApplied?: (result: ApplyResourceResult) => void;
|
|
77
101
|
/** Additional CSS classes for the root container. */
|
|
@@ -84,10 +108,13 @@ export interface SessionViewerProps {
|
|
|
84
108
|
* Owns `useSessionPageFlow` internally and composes:
|
|
85
109
|
* - **Conversation column** (primary): `MessageThread` + error
|
|
86
110
|
* banners + `SessionComposer`
|
|
87
|
-
* - **
|
|
88
|
-
*
|
|
111
|
+
* - **Session panel** (secondary): the unified `WorkspaceSurface` — explorer,
|
|
112
|
+
* search, read-only editor, and the session facets (Config, Changes,
|
|
113
|
+
* Artifacts, Usage, Inspect) as injected rail views. Collapsed by default
|
|
114
|
+
* to a top-right chip; opening a file (tree, search, or a transcript path)
|
|
115
|
+
* expands it.
|
|
89
116
|
*
|
|
90
|
-
* Connected via `ResizableSplit` with persisted width.
|
|
117
|
+
* Connected via `ResizableSplit` with persisted chat width.
|
|
91
118
|
*
|
|
92
119
|
* Thread selection is provided via `ThreadSelectionContext` (Phase 2
|
|
93
120
|
* opt-in) for render-isolated per-item selection.
|
|
@@ -116,5 +143,5 @@ export interface SessionViewerProps {
|
|
|
116
143
|
* />
|
|
117
144
|
* ```
|
|
118
145
|
*/
|
|
119
|
-
export declare function SessionViewer({ sessionId, org, gitHubConnection, enableGitHub, enableLocal, onBrowseLocalFolder, workspaceFileLister, getRuntimeEnv, audience, headerActions, onApplied, className, }: SessionViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
146
|
+
export declare function SessionViewer({ sessionId, org, gitHubConnection, enableGitHub, enableLocal, onBrowseLocalFolder, workspaceFileLister, workspaceFileReader, workspaceContentSearcher, getRuntimeEnv, audience, headerActions, accessSlot, onApplied, className, }: SessionViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
120
147
|
//# sourceMappingURL=SessionViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionViewer.d.ts","sourceRoot":"","sources":["../../src/session/SessionViewer.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"SessionViewer.d.ts","sourceRoot":"","sources":["../../src/session/SessionViewer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA2D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQhG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAOzF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAgC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAuErD,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,yBAAyB;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IACtD;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5D;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IACnD;;;;;O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