@stigmer/react 3.1.17 → 3.2.0
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/agent-instance/AgentInstanceList.d.ts.map +1 -1
- package/agent-instance/AgentInstanceList.js +11 -3
- package/agent-instance/AgentInstanceList.js.map +1 -1
- package/channel/AgentChannelsPanel.d.ts +60 -0
- package/channel/AgentChannelsPanel.d.ts.map +1 -0
- package/channel/AgentChannelsPanel.js +255 -0
- package/channel/AgentChannelsPanel.js.map +1 -0
- package/channel/ChannelConversationsDialog.d.ts +41 -0
- package/channel/ChannelConversationsDialog.d.ts.map +1 -0
- package/channel/ChannelConversationsDialog.js +94 -0
- package/channel/ChannelConversationsDialog.js.map +1 -0
- package/channel/ChannelCredentialsDialog.d.ts +37 -0
- package/channel/ChannelCredentialsDialog.d.ts.map +1 -0
- package/channel/ChannelCredentialsDialog.js +75 -0
- package/channel/ChannelCredentialsDialog.js.map +1 -0
- package/channel/ChannelToolCredentials.d.ts +31 -0
- package/channel/ChannelToolCredentials.d.ts.map +1 -0
- package/channel/ChannelToolCredentials.js +41 -0
- package/channel/ChannelToolCredentials.js.map +1 -0
- package/channel/ConnectSlackDialog.d.ts +61 -0
- package/channel/ConnectSlackDialog.d.ts.map +1 -0
- package/channel/ConnectSlackDialog.js +238 -0
- package/channel/ConnectSlackDialog.js.map +1 -0
- package/channel/ConnectWhatsAppDialog.d.ts +70 -0
- package/channel/ConnectWhatsAppDialog.d.ts.map +1 -0
- package/channel/ConnectWhatsAppDialog.js +256 -0
- package/channel/ConnectWhatsAppDialog.js.map +1 -0
- package/channel/SlackMarkIcon.d.ts +11 -0
- package/channel/SlackMarkIcon.d.ts.map +1 -0
- package/channel/SlackMarkIcon.js +13 -0
- package/channel/SlackMarkIcon.js.map +1 -0
- package/channel/WhatsAppMarkIcon.d.ts +12 -0
- package/channel/WhatsAppMarkIcon.d.ts.map +1 -0
- package/channel/WhatsAppMarkIcon.js +14 -0
- package/channel/WhatsAppMarkIcon.js.map +1 -0
- package/channel/connect/ServingAppSection.d.ts +57 -0
- package/channel/connect/ServingAppSection.d.ts.map +1 -0
- package/channel/connect/ServingAppSection.js +49 -0
- package/channel/connect/ServingAppSection.js.map +1 -0
- package/channel/connect/ToolCredentialsSection.d.ts +20 -0
- package/channel/connect/ToolCredentialsSection.d.ts.map +1 -0
- package/channel/connect/ToolCredentialsSection.js +22 -0
- package/channel/connect/ToolCredentialsSection.js.map +1 -0
- package/channel/connect/VerbatimRefusal.d.ts +16 -0
- package/channel/connect/VerbatimRefusal.d.ts.map +1 -0
- package/channel/connect/VerbatimRefusal.js +18 -0
- package/channel/connect/VerbatimRefusal.js.map +1 -0
- package/channel/connect/icons.d.ts +16 -0
- package/channel/connect/icons.d.ts.map +1 -0
- package/channel/connect/icons.js +21 -0
- package/channel/connect/icons.js.map +1 -0
- package/channel/index.d.ts +36 -0
- package/channel/index.d.ts.map +1 -0
- package/channel/index.js +19 -0
- package/channel/index.js.map +1 -0
- package/channel/providerPresentation.d.ts +44 -0
- package/channel/providerPresentation.d.ts.map +1 -0
- package/channel/providerPresentation.js +106 -0
- package/channel/providerPresentation.js.map +1 -0
- package/channel/providers.d.ts +62 -0
- package/channel/providers.d.ts.map +1 -0
- package/channel/providers.js +26 -0
- package/channel/providers.js.map +1 -0
- package/channel/useAgentChannel.d.ts +31 -0
- package/channel/useAgentChannel.d.ts.map +1 -0
- package/channel/useAgentChannel.js +34 -0
- package/channel/useAgentChannel.js.map +1 -0
- package/channel/useAgentChannelList.d.ts +43 -0
- package/channel/useAgentChannelList.d.ts.map +1 -0
- package/channel/useAgentChannelList.js +39 -0
- package/channel/useAgentChannelList.js.map +1 -0
- package/channel/useChannelSessions.d.ts +47 -0
- package/channel/useChannelSessions.d.ts.map +1 -0
- package/channel/useChannelSessions.js +38 -0
- package/channel/useChannelSessions.js.map +1 -0
- package/channel/useChannelToolReadiness.d.ts +23 -0
- package/channel/useChannelToolReadiness.d.ts.map +1 -0
- package/channel/useChannelToolReadiness.js +28 -0
- package/channel/useChannelToolReadiness.js.map +1 -0
- package/channel/useConnectSlackChannel.d.ts +75 -0
- package/channel/useConnectSlackChannel.d.ts.map +1 -0
- package/channel/useConnectSlackChannel.js +115 -0
- package/channel/useConnectSlackChannel.js.map +1 -0
- package/channel/useCreateAgentChannel.d.ts +42 -0
- package/channel/useCreateAgentChannel.d.ts.map +1 -0
- package/channel/useCreateAgentChannel.js +48 -0
- package/channel/useCreateAgentChannel.js.map +1 -0
- package/channel/useDeleteAgentChannel.d.ts +40 -0
- package/channel/useDeleteAgentChannel.d.ts.map +1 -0
- package/channel/useDeleteAgentChannel.js +44 -0
- package/channel/useDeleteAgentChannel.js.map +1 -0
- package/channel/useInstallChannel.d.ts +60 -0
- package/channel/useInstallChannel.d.ts.map +1 -0
- package/channel/useInstallChannel.js +63 -0
- package/channel/useInstallChannel.js.map +1 -0
- package/channel/useOrgAgentChannelList.d.ts +32 -0
- package/channel/useOrgAgentChannelList.d.ts.map +1 -0
- package/channel/useOrgAgentChannelList.js +29 -0
- package/channel/useOrgAgentChannelList.js.map +1 -0
- package/channel/useSaveAgentChannel.d.ts +63 -0
- package/channel/useSaveAgentChannel.d.ts.map +1 -0
- package/channel/useSaveAgentChannel.js +104 -0
- package/channel/useSaveAgentChannel.js.map +1 -0
- package/channel-app/ChannelAppDetailPanel.d.ts +46 -0
- package/channel-app/ChannelAppDetailPanel.d.ts.map +1 -0
- package/channel-app/ChannelAppDetailPanel.js +142 -0
- package/channel-app/ChannelAppDetailPanel.js.map +1 -0
- package/channel-app/ChannelAppListPanel.d.ts +36 -0
- package/channel-app/ChannelAppListPanel.d.ts.map +1 -0
- package/channel-app/ChannelAppListPanel.js +63 -0
- package/channel-app/ChannelAppListPanel.js.map +1 -0
- package/channel-app/CreateChannelAppForm.d.ts +54 -0
- package/channel-app/CreateChannelAppForm.d.ts.map +1 -0
- package/channel-app/CreateChannelAppForm.js +140 -0
- package/channel-app/CreateChannelAppForm.js.map +1 -0
- package/channel-app/index.d.ts +18 -0
- package/channel-app/index.d.ts.map +1 -0
- package/channel-app/index.js +10 -0
- package/channel-app/index.js.map +1 -0
- package/channel-app/internal.d.ts +33 -0
- package/channel-app/internal.d.ts.map +1 -0
- package/channel-app/internal.js +44 -0
- package/channel-app/internal.js.map +1 -0
- package/channel-app/slackAppSetup.d.ts +80 -0
- package/channel-app/slackAppSetup.d.ts.map +1 -0
- package/channel-app/slackAppSetup.js +123 -0
- package/channel-app/slackAppSetup.js.map +1 -0
- package/channel-app/useChannelAppList.d.ts +35 -0
- package/channel-app/useChannelAppList.d.ts.map +1 -0
- package/channel-app/useChannelAppList.js +34 -0
- package/channel-app/useChannelAppList.js.map +1 -0
- package/channel-app/useCreateChannelApp.d.ts +39 -0
- package/channel-app/useCreateChannelApp.d.ts.map +1 -0
- package/channel-app/useCreateChannelApp.js +50 -0
- package/channel-app/useCreateChannelApp.js.map +1 -0
- package/channel-app/useDeleteChannelApp.d.ts +31 -0
- package/channel-app/useDeleteChannelApp.d.ts.map +1 -0
- package/channel-app/useDeleteChannelApp.js +43 -0
- package/channel-app/useDeleteChannelApp.js.map +1 -0
- package/channel-app/useUpdateChannelApp.d.ts +39 -0
- package/channel-app/useUpdateChannelApp.d.ts.map +1 -0
- package/channel-app/useUpdateChannelApp.js +50 -0
- package/channel-app/useUpdateChannelApp.js.map +1 -0
- package/channel-app/whatsappAppSetup.d.ts +51 -0
- package/channel-app/whatsappAppSetup.d.ts.map +1 -0
- package/channel-app/whatsappAppSetup.js +57 -0
- package/channel-app/whatsappAppSetup.js.map +1 -0
- package/environment/index.d.ts +2 -0
- package/environment/index.d.ts.map +1 -1
- package/environment/index.js +1 -0
- package/environment/index.js.map +1 -1
- package/environment/useToolCredentialsReadiness.d.ts +52 -0
- package/environment/useToolCredentialsReadiness.d.ts.map +1 -0
- package/environment/useToolCredentialsReadiness.js +84 -0
- package/environment/useToolCredentialsReadiness.js.map +1 -0
- package/execution/ArtifactContentBody.d.ts.map +1 -1
- package/execution/ArtifactContentBody.js +5 -21
- package/execution/ArtifactContentBody.js.map +1 -1
- package/execution/ArtifactFileContent.d.ts +28 -0
- package/execution/ArtifactFileContent.d.ts.map +1 -0
- package/execution/ArtifactFileContent.js +36 -0
- package/execution/ArtifactFileContent.js.map +1 -0
- package/execution/ArtifactRow.d.ts +8 -20
- package/execution/ArtifactRow.d.ts.map +1 -1
- package/execution/ArtifactRow.js +12 -45
- package/execution/ArtifactRow.js.map +1 -1
- package/execution/ArtifactRowView.d.ts +43 -0
- package/execution/ArtifactRowView.d.ts.map +1 -0
- package/execution/ArtifactRowView.js +35 -0
- package/execution/ArtifactRowView.js.map +1 -0
- package/execution/FileChangesView.d.ts.map +1 -1
- package/execution/FileChangesView.js +1 -61
- package/execution/FileChangesView.js.map +1 -1
- package/execution/SubAgentSection.d.ts.map +1 -1
- package/execution/SubAgentSection.js +4 -15
- package/execution/SubAgentSection.js.map +1 -1
- package/execution/ToolCallItem.d.ts.map +1 -1
- package/execution/ToolCallItem.js +16 -61
- package/execution/ToolCallItem.js.map +1 -1
- package/execution/agent-execution-document.d.ts +31 -0
- package/execution/agent-execution-document.d.ts.map +1 -0
- package/execution/agent-execution-document.js +48 -0
- package/execution/agent-execution-document.js.map +1 -0
- package/{session → execution}/artifact-document.d.ts +2 -3
- package/execution/artifact-document.d.ts.map +1 -0
- package/execution/artifact-document.js +23 -0
- package/execution/artifact-document.js.map +1 -0
- package/execution/artifact-row-item.d.ts +56 -0
- package/execution/artifact-row-item.d.ts.map +1 -0
- package/execution/artifact-row-item.js +57 -0
- package/execution/artifact-row-item.js.map +1 -0
- package/execution/deriveExecutionFileChanges.d.ts +55 -0
- package/execution/deriveExecutionFileChanges.d.ts.map +1 -0
- package/execution/deriveExecutionFileChanges.js +216 -0
- package/execution/deriveExecutionFileChanges.js.map +1 -0
- package/execution/file-change-document.d.ts +22 -0
- package/execution/file-change-document.d.ts.map +1 -0
- package/execution/file-change-document.js +34 -0
- package/execution/file-change-document.js.map +1 -0
- package/execution/index.d.ts +14 -0
- package/execution/index.d.ts.map +1 -1
- package/execution/index.js +9 -0
- package/execution/index.js.map +1 -1
- package/execution/useArtifactContentById.d.ts +61 -0
- package/execution/useArtifactContentById.d.ts.map +1 -0
- package/execution/useArtifactContentById.js +63 -0
- package/execution/useArtifactContentById.js.map +1 -0
- package/execution/useArtifactDownload.d.ts +4 -3
- package/execution/useArtifactDownload.d.ts.map +1 -1
- package/execution/useArtifactDownload.js +4 -3
- package/execution/useArtifactDownload.js.map +1 -1
- package/execution/useCreateAgentExecution.d.ts +1 -1
- package/execution/useLiveAgentExecution.d.ts +59 -0
- package/execution/useLiveAgentExecution.d.ts.map +1 -0
- package/execution/useLiveAgentExecution.js +73 -0
- package/execution/useLiveAgentExecution.js.map +1 -0
- package/index.d.ts +15 -10
- package/index.d.ts.map +1 -1
- package/index.js +21 -6
- package/index.js.map +1 -1
- package/internal/DecisionButton.d.ts +4 -3
- package/internal/DecisionButton.d.ts.map +1 -1
- package/internal/DecisionButton.js +4 -3
- package/internal/DecisionButton.js.map +1 -1
- package/internal/oauthPopup.d.ts +101 -0
- package/internal/oauthPopup.d.ts.map +1 -0
- package/internal/oauthPopup.js +208 -0
- package/internal/oauthPopup.js.map +1 -0
- package/internal/store/index.d.ts +0 -2
- package/internal/store/index.d.ts.map +1 -1
- package/internal/store/index.js +0 -1
- package/internal/store/index.js.map +1 -1
- package/internal/store/workflow-execution-event-store.d.ts +34 -1
- package/internal/store/workflow-execution-event-store.d.ts.map +1 -1
- package/internal/store/workflow-execution-event-store.js +81 -3
- package/internal/store/workflow-execution-event-store.js.map +1 -1
- package/internal/store/workspace-file-selection-store.d.ts +1 -2
- package/internal/store/workspace-file-selection-store.d.ts.map +1 -1
- package/internal/store/workspace-file-selection-store.js +2 -5
- package/internal/store/workspace-file-selection-store.js.map +1 -1
- package/internal/thread-card/ThreadCardShell.d.ts +91 -0
- package/internal/thread-card/ThreadCardShell.d.ts.map +1 -0
- package/internal/thread-card/ThreadCardShell.js +41 -0
- package/internal/thread-card/ThreadCardShell.js.map +1 -0
- package/internal/thread-card/glyphs.d.ts +34 -0
- package/internal/thread-card/glyphs.d.ts.map +1 -0
- package/internal/thread-card/glyphs.js +50 -0
- package/internal/thread-card/glyphs.js.map +1 -0
- package/internal/thread-card/index.d.ts +3 -0
- package/internal/thread-card/index.d.ts.map +1 -0
- package/internal/thread-card/index.js +3 -0
- package/internal/thread-card/index.js.map +1 -0
- package/internal/useRevealLine.d.ts +2 -2
- package/internal/useRevealLine.js +2 -2
- package/mcp-server/OAuthCallbackHandler.js +1 -1
- package/mcp-server/OAuthCallbackHandler.js.map +1 -1
- package/mcp-server/useMcpServerOAuthConnect.d.ts +4 -23
- package/mcp-server/useMcpServerOAuthConnect.d.ts.map +1 -1
- package/mcp-server/useMcpServerOAuthConnect.js +12 -145
- package/mcp-server/useMcpServerOAuthConnect.js.map +1 -1
- package/package.json +4 -4
- package/session/NewSessionViewer.d.ts.map +1 -1
- package/session/NewSessionViewer.js +0 -1
- package/session/NewSessionViewer.js.map +1 -1
- package/session/SessionPanelChip.d.ts +7 -22
- package/session/SessionPanelChip.d.ts.map +1 -1
- package/session/SessionPanelChip.js +8 -36
- package/session/SessionPanelChip.js.map +1 -1
- package/session/SessionViewer.d.ts +7 -4
- package/session/SessionViewer.d.ts.map +1 -1
- package/session/SessionViewer.js +32 -30
- package/session/SessionViewer.js.map +1 -1
- package/session/audience.d.ts +15 -1
- package/session/audience.d.ts.map +1 -1
- package/session/channelOrigin.d.ts +33 -0
- package/session/channelOrigin.d.ts.map +1 -0
- package/session/channelOrigin.js +36 -0
- package/session/channelOrigin.js.map +1 -0
- package/session/facets/index.d.ts +0 -2
- package/session/facets/index.d.ts.map +1 -1
- package/session/facets/index.js +0 -1
- package/session/facets/index.js.map +1 -1
- package/session/index.d.ts +2 -2
- package/session/index.d.ts.map +1 -1
- package/session/index.js +5 -3
- package/session/index.js.map +1 -1
- package/session/useSessionFileChanges.d.ts +10 -34
- package/session/useSessionFileChanges.d.ts.map +1 -1
- package/session/useSessionFileChanges.js +9 -141
- package/session/useSessionFileChanges.js.map +1 -1
- package/session/useSessionPanel.d.ts +5 -15
- package/session/useSessionPanel.d.ts.map +1 -1
- package/session/useSessionPanel.js +3 -35
- package/session/useSessionPanel.js.map +1 -1
- package/session/useSessionRailViews.d.ts +3 -6
- package/session/useSessionRailViews.d.ts.map +1 -1
- package/session/useSessionRailViews.js +3 -17
- package/session/useSessionRailViews.js.map +1 -1
- package/settings/ChannelAppsSection.d.ts +13 -0
- package/settings/ChannelAppsSection.d.ts.map +1 -0
- package/settings/ChannelAppsSection.js +48 -0
- package/settings/ChannelAppsSection.js.map +1 -0
- package/settings/index.d.ts +1 -0
- package/settings/index.d.ts.map +1 -1
- package/settings/index.js +1 -0
- package/settings/index.js.map +1 -1
- package/settings/settings-nav.d.ts.map +1 -1
- package/settings/settings-nav.js +6 -1
- package/settings/settings-nav.js.map +1 -1
- package/sharing/AgentShareList.d.ts.map +1 -1
- package/sharing/AgentShareList.js +11 -3
- package/sharing/AgentShareList.js.map +1 -1
- package/sharing/ShareAgentDialog.js +1 -1
- package/sharing/useShareToolReadiness.d.ts +9 -38
- package/sharing/useShareToolReadiness.d.ts.map +1 -1
- package/sharing/useShareToolReadiness.js +7 -72
- package/sharing/useShareToolReadiness.js.map +1 -1
- package/src/agent-instance/AgentInstanceList.tsx +60 -42
- package/src/agent-instance/__tests__/AgentInstanceList.test.tsx +161 -0
- package/src/channel/AgentChannelsPanel.tsx +688 -0
- package/src/channel/ChannelConversationsDialog.tsx +267 -0
- package/src/channel/ChannelCredentialsDialog.tsx +219 -0
- package/src/channel/ChannelToolCredentials.tsx +124 -0
- package/src/channel/ConnectSlackDialog.tsx +611 -0
- package/src/channel/ConnectWhatsAppDialog.tsx +624 -0
- package/src/channel/SlackMarkIcon.tsx +21 -0
- package/src/channel/WhatsAppMarkIcon.tsx +22 -0
- package/src/channel/__tests__/AgentChannelsPanel.test.tsx +638 -0
- package/src/channel/__tests__/ChannelConversationsDialog.test.tsx +114 -0
- package/src/channel/__tests__/ChannelCredentialsDialog.test.tsx +240 -0
- package/src/channel/__tests__/ConnectSlackDialog.test.tsx +659 -0
- package/src/channel/__tests__/ConnectWhatsAppDialog.test.tsx +564 -0
- package/src/channel/__tests__/providers.test.ts +118 -0
- package/src/channel/__tests__/useAgentChannel.test.tsx +116 -0
- package/src/channel/__tests__/useAgentChannelList.test.tsx +166 -0
- package/src/channel/__tests__/useChannelSessions.test.tsx +95 -0
- package/src/channel/__tests__/useChannelToolReadiness.test.tsx +158 -0
- package/src/channel/__tests__/useConnectSlackChannel.test.tsx +276 -0
- package/src/channel/__tests__/useDeleteAgentChannel.test.tsx +97 -0
- package/src/channel/__tests__/useInstallChannel.test.tsx +177 -0
- package/src/channel/__tests__/useSaveAgentChannel.test.tsx +294 -0
- package/src/channel/connect/ServingAppSection.tsx +185 -0
- package/src/channel/connect/ToolCredentialsSection.tsx +67 -0
- package/src/channel/connect/VerbatimRefusal.tsx +27 -0
- package/src/channel/connect/icons.tsx +42 -0
- package/src/channel/index.ts +65 -0
- package/src/channel/providerPresentation.ts +154 -0
- package/src/channel/providers.ts +73 -0
- package/src/channel/useAgentChannel.ts +58 -0
- package/src/channel/useAgentChannelList.ts +69 -0
- package/src/channel/useChannelSessions.ts +73 -0
- package/src/channel/useChannelToolReadiness.ts +39 -0
- package/src/channel/useConnectSlackChannel.ts +195 -0
- package/src/channel/useCreateAgentChannel.ts +73 -0
- package/src/channel/useDeleteAgentChannel.ts +71 -0
- package/src/channel/useInstallChannel.ts +117 -0
- package/src/channel/useOrgAgentChannelList.ts +60 -0
- package/src/channel/useSaveAgentChannel.ts +133 -0
- package/src/channel-app/ChannelAppDetailPanel.tsx +510 -0
- package/src/channel-app/ChannelAppListPanel.tsx +201 -0
- package/src/channel-app/CreateChannelAppForm.tsx +529 -0
- package/src/channel-app/__tests__/channelAppWhatsApp.test.tsx +270 -0
- package/src/channel-app/__tests__/slackAppSetup.test.ts +75 -0
- package/src/channel-app/__tests__/useChannelAppHooks.test.tsx +157 -0
- package/src/channel-app/__tests__/whatsappAppSetup.test.ts +39 -0
- package/src/channel-app/index.ts +30 -0
- package/src/channel-app/internal.tsx +180 -0
- package/src/channel-app/slackAppSetup.ts +153 -0
- package/src/channel-app/useChannelAppList.ts +59 -0
- package/src/channel-app/useCreateChannelApp.ts +70 -0
- package/src/channel-app/useDeleteChannelApp.ts +62 -0
- package/src/channel-app/useUpdateChannelApp.ts +70 -0
- package/src/channel-app/whatsappAppSetup.ts +62 -0
- package/src/environment/index.ts +2 -0
- package/src/environment/useToolCredentialsReadiness.ts +122 -0
- package/src/execution/ArtifactContentBody.tsx +6 -88
- package/src/execution/ArtifactFileContent.tsx +110 -0
- package/src/execution/ArtifactRow.tsx +28 -118
- package/src/execution/ArtifactRowView.tsx +137 -0
- package/src/execution/FileChangesView.tsx +4 -69
- package/src/execution/SubAgentSection.tsx +2 -36
- package/src/execution/ToolCallItem.tsx +48 -175
- package/src/execution/__tests__/ArtifactFileContent.test.tsx +60 -0
- package/src/execution/__tests__/ArtifactRowView.test.tsx +78 -0
- package/src/execution/__tests__/agent-execution-document.test.ts +45 -0
- package/src/execution/__tests__/artifact-row-item.test.ts +128 -0
- package/src/execution/__tests__/deriveExecutionFileChanges.test.ts +270 -0
- package/src/execution/__tests__/useArtifactContentById.test.tsx +85 -0
- package/src/execution/__tests__/useLiveAgentExecution.test.tsx +202 -0
- package/src/execution/agent-execution-document.ts +54 -0
- package/src/execution/artifact-document.ts +24 -0
- package/src/execution/artifact-row-item.ts +97 -0
- package/src/execution/deriveExecutionFileChanges.ts +237 -0
- package/src/execution/file-change-document.ts +37 -0
- package/src/execution/index.ts +36 -0
- package/src/execution/useArtifactContentById.ts +120 -0
- package/src/execution/useArtifactDownload.ts +4 -3
- package/src/execution/useCreateAgentExecution.ts +1 -1
- package/src/execution/useLiveAgentExecution.ts +127 -0
- package/src/index.ts +155 -11
- package/src/internal/DecisionButton.tsx +4 -3
- package/src/internal/__tests__/ThreadCardShell.test.tsx +105 -0
- package/src/internal/__tests__/oauthPopup.test.ts +245 -0
- package/src/internal/oauthPopup.ts +261 -0
- package/src/internal/store/__tests__/workflow-execution-event-store.test.ts +375 -5
- package/src/internal/store/index.ts +0 -3
- package/src/internal/store/workflow-execution-event-store.ts +123 -4
- package/src/internal/store/workspace-file-selection-store.ts +2 -5
- package/src/internal/thread-card/ThreadCardShell.tsx +189 -0
- package/src/internal/thread-card/glyphs.tsx +108 -0
- package/src/internal/thread-card/index.ts +19 -0
- package/src/internal/useRevealLine.ts +2 -2
- package/src/mcp-server/OAuthCallbackHandler.tsx +2 -2
- package/src/mcp-server/useMcpServerOAuthConnect.ts +22 -184
- package/src/session/NewSessionViewer.tsx +0 -1
- package/src/session/SessionPanelChip.tsx +10 -96
- package/src/session/SessionViewer.tsx +170 -144
- package/src/session/__tests__/SessionViewer-artifactTabs.test.tsx +1 -1
- package/src/session/__tests__/observerAudience.test.tsx +241 -0
- package/src/session/__tests__/useSessionPanel.test.ts +6 -61
- package/src/session/__tests__/useSessionRailViews.test.tsx +5 -27
- package/src/session/audience.ts +15 -1
- package/src/session/channelOrigin.ts +45 -0
- package/src/session/facets/index.ts +0 -3
- package/src/session/index.ts +9 -6
- package/src/session/useSessionFileChanges.ts +12 -153
- package/src/session/useSessionPanel.ts +8 -51
- package/src/session/useSessionRailViews.tsx +2 -27
- package/src/settings/ChannelAppsSection.tsx +133 -0
- package/src/settings/index.ts +1 -0
- package/src/settings/settings-nav.ts +6 -0
- package/src/sharing/AgentShareList.tsx +85 -64
- package/src/sharing/ShareAgentDialog.tsx +1 -1
- package/src/sharing/__tests__/AgentShareList.test.tsx +92 -12
- package/src/sharing/useShareToolReadiness.ts +13 -101
- package/src/workflow/WorkflowAgentExecutionDocument.tsx +283 -0
- package/src/workflow/WorkflowApprovalList.tsx +158 -0
- package/src/workflow/WorkflowArtifactDocument.tsx +257 -0
- package/src/workflow/WorkflowExecutionGraph.tsx +40 -78
- package/src/workflow/WorkflowExecutionViewer.tsx +610 -287
- package/src/workflow/WorkflowFileReviewList.tsx +1 -1
- package/src/workflow/WorkflowTaskApprovalCard.tsx +5 -4
- package/src/workflow/WorkflowTaskApprovalSummary.tsx +6 -6
- package/src/workflow/__tests__/WorkflowAgentExecutionDocument.test.tsx +651 -0
- package/src/workflow/__tests__/WorkflowApprovalList.test.tsx +229 -0
- package/src/workflow/__tests__/WorkflowArtifactDocument.test.tsx +90 -0
- package/src/workflow/__tests__/WorkflowArtifactsTab.test.tsx +85 -0
- package/src/workflow/__tests__/WorkflowChangesTab.test.tsx +113 -0
- package/src/workflow/__tests__/WorkflowExecutionViewer.approvals.test.tsx +473 -0
- package/src/workflow/__tests__/WorkflowExecutionViewer.reconciliation.test.tsx +632 -0
- package/src/workflow/__tests__/WorkflowTaskApprovalSummary.test.tsx +1 -1
- package/src/workflow/__tests__/WorkflowTaskThread.test.tsx +947 -0
- package/src/workflow/__tests__/WorkflowUsageTab.test.tsx +163 -0
- package/src/workflow/__tests__/agent-call-live-experience.test.ts +6 -53
- package/src/workflow/__tests__/derive-execution-overlays.test.ts +4 -0
- package/src/workflow/__tests__/deriveWorkflowArtifactItems.test.ts +71 -0
- package/src/workflow/__tests__/deriveWorkflowUsageItems.test.ts +132 -0
- package/src/workflow/__tests__/execution-graph.test.ts +8 -0
- package/src/workflow/__tests__/project-thread-items.test.ts +428 -0
- package/src/workflow/__tests__/structured-data-viewer.test.tsx +1 -1
- package/src/workflow/__tests__/task-approval.test.ts +149 -0
- package/src/workflow/__tests__/task-detail-io.test.ts +40 -0
- package/src/workflow/__tests__/task-presentation.test.ts +479 -0
- package/src/workflow/__tests__/useActiveTaskName.test.ts +4 -0
- package/src/workflow/__tests__/useApprovalBoundary.test.ts +158 -0
- package/src/workflow/__tests__/useExecutionAnnouncements.test.ts +4 -0
- package/src/workflow/__tests__/useFollowExecution.test.ts +2 -89
- package/src/workflow/__tests__/useWorkflowExecutionFileChanges.test.tsx +412 -0
- package/src/workflow/__tests__/useWorkflowExecutionPanel.test.ts +297 -0
- package/src/workflow/__tests__/useWorkflowExecutionRailViews.test.tsx +115 -0
- package/src/workflow/deriveWorkflowArtifactItems.ts +59 -0
- package/src/workflow/deriveWorkflowUsageItems.ts +73 -0
- package/src/workflow/diagnosis-document.ts +31 -0
- package/src/workflow/execution/index.ts +0 -15
- package/src/workflow/facets/WorkflowArtifactsTab.tsx +99 -0
- package/src/workflow/facets/WorkflowChangesTab.tsx +129 -0
- package/src/workflow/facets/WorkflowUsageTab.tsx +258 -0
- package/src/workflow/format-utils.ts +2 -3
- package/src/workflow/index.ts +106 -62
- package/src/workflow/inspector/index.ts +0 -4
- package/src/workflow/instance/WorkflowInstanceList.tsx +59 -41
- package/src/workflow/instance/__tests__/WorkflowInstanceList.test.tsx +156 -0
- package/src/workflow/task-detail/index.ts +11 -0
- package/src/workflow/task-detail/task-approval.ts +158 -0
- package/src/workflow/task-detail/task-detail-io.ts +65 -0
- package/src/workflow/thread/WorkflowTaskThread.tsx +845 -0
- package/src/workflow/thread/project-thread-items.ts +235 -0
- package/src/workflow/thread/task-presentation.ts +427 -0
- package/src/workflow/thread/thread-presentation.ts +59 -0
- package/src/workflow/thread/useWorkflowThreadItems.ts +34 -0
- package/src/workflow/useApprovalBoundary.ts +72 -0
- package/src/workflow/useFollowExecution.ts +0 -26
- package/src/workflow/useWorkflowArtifactDownload.ts +68 -0
- package/src/workflow/useWorkflowExecutionActions.ts +3 -2
- package/src/workflow/useWorkflowExecutionFileChanges.ts +341 -0
- package/src/workflow/useWorkflowExecutionGraph.ts +3 -43
- package/src/workflow/useWorkflowExecutionPanel.ts +292 -0
- package/src/workflow/useWorkflowExecutionRailViews.tsx +173 -0
- package/src/workspace/FileViewer.tsx +3 -3
- package/src/workspace/PanelChip.tsx +103 -0
- package/src/workspace/WorkspaceSurface.tsx +50 -6
- package/src/workspace/__tests__/WorkspaceSurface.test.tsx +110 -0
- package/src/workspace/index.ts +3 -0
- package/styles.css +1 -1
- package/workflow/WorkflowAgentExecutionDocument.d.ts +79 -0
- package/workflow/WorkflowAgentExecutionDocument.d.ts.map +1 -0
- package/workflow/WorkflowAgentExecutionDocument.js +87 -0
- package/workflow/WorkflowAgentExecutionDocument.js.map +1 -0
- package/workflow/WorkflowApprovalList.d.ts +62 -0
- package/workflow/WorkflowApprovalList.d.ts.map +1 -0
- package/workflow/WorkflowApprovalList.js +52 -0
- package/workflow/WorkflowApprovalList.js.map +1 -0
- package/workflow/WorkflowArtifactDocument.d.ts +29 -0
- package/workflow/WorkflowArtifactDocument.d.ts.map +1 -0
- package/workflow/WorkflowArtifactDocument.js +89 -0
- package/workflow/WorkflowArtifactDocument.js.map +1 -0
- package/workflow/WorkflowExecutionGraph.d.ts +15 -13
- package/workflow/WorkflowExecutionGraph.d.ts.map +1 -1
- package/workflow/WorkflowExecutionGraph.js +18 -53
- package/workflow/WorkflowExecutionGraph.js.map +1 -1
- package/workflow/WorkflowExecutionViewer.d.ts +8 -5
- package/workflow/WorkflowExecutionViewer.d.ts.map +1 -1
- package/workflow/WorkflowExecutionViewer.js +329 -54
- package/workflow/WorkflowExecutionViewer.js.map +1 -1
- package/workflow/WorkflowFileReviewList.d.ts +1 -1
- package/workflow/WorkflowFileReviewList.js +1 -1
- package/workflow/WorkflowTaskApprovalCard.d.ts +4 -3
- package/workflow/WorkflowTaskApprovalCard.d.ts.map +1 -1
- package/workflow/WorkflowTaskApprovalCard.js +5 -4
- package/workflow/WorkflowTaskApprovalCard.js.map +1 -1
- package/workflow/WorkflowTaskApprovalSummary.d.ts +6 -6
- package/workflow/WorkflowTaskApprovalSummary.js +5 -5
- package/workflow/deriveWorkflowArtifactItems.d.ts +30 -0
- package/workflow/deriveWorkflowArtifactItems.d.ts.map +1 -0
- package/workflow/deriveWorkflowArtifactItems.js +38 -0
- package/workflow/deriveWorkflowArtifactItems.js.map +1 -0
- package/workflow/deriveWorkflowUsageItems.d.ts +36 -0
- package/workflow/deriveWorkflowUsageItems.d.ts.map +1 -0
- package/workflow/deriveWorkflowUsageItems.js +50 -0
- package/workflow/deriveWorkflowUsageItems.js.map +1 -0
- package/workflow/diagnosis-document.d.ts +17 -0
- package/workflow/diagnosis-document.d.ts.map +1 -0
- package/workflow/diagnosis-document.js +29 -0
- package/workflow/diagnosis-document.js.map +1 -0
- package/workflow/execution/index.d.ts +0 -2
- package/workflow/execution/index.d.ts.map +1 -1
- package/workflow/execution/index.js +0 -2
- package/workflow/execution/index.js.map +1 -1
- package/workflow/facets/WorkflowArtifactsTab.d.ts +26 -0
- package/workflow/facets/WorkflowArtifactsTab.d.ts.map +1 -0
- package/workflow/facets/WorkflowArtifactsTab.js +34 -0
- package/workflow/facets/WorkflowArtifactsTab.js.map +1 -0
- package/workflow/facets/WorkflowChangesTab.d.ts +37 -0
- package/workflow/facets/WorkflowChangesTab.d.ts.map +1 -0
- package/workflow/facets/WorkflowChangesTab.js +50 -0
- package/workflow/facets/WorkflowChangesTab.js.map +1 -0
- package/workflow/facets/WorkflowUsageTab.d.ts +27 -0
- package/workflow/facets/WorkflowUsageTab.d.ts.map +1 -0
- package/workflow/facets/WorkflowUsageTab.js +87 -0
- package/workflow/facets/WorkflowUsageTab.js.map +1 -0
- package/workflow/format-utils.d.ts +2 -3
- package/workflow/format-utils.d.ts.map +1 -1
- package/workflow/format-utils.js +2 -3
- package/workflow/format-utils.js.map +1 -1
- package/workflow/index.d.ts +21 -10
- package/workflow/index.d.ts.map +1 -1
- package/workflow/index.js +29 -14
- package/workflow/index.js.map +1 -1
- package/workflow/inspector/index.d.ts +0 -2
- package/workflow/inspector/index.d.ts.map +1 -1
- package/workflow/inspector/index.js +0 -2
- package/workflow/inspector/index.js.map +1 -1
- package/workflow/instance/WorkflowInstanceList.d.ts.map +1 -1
- package/workflow/instance/WorkflowInstanceList.js +11 -3
- package/workflow/instance/WorkflowInstanceList.js.map +1 -1
- package/workflow/task-detail/StructuredDataViewer.d.ts.map +1 -0
- package/workflow/task-detail/StructuredDataViewer.js.map +1 -0
- package/workflow/task-detail/index.d.ts +4 -0
- package/workflow/task-detail/index.d.ts.map +1 -0
- package/workflow/task-detail/index.js +4 -0
- package/workflow/task-detail/index.js.map +1 -0
- package/workflow/task-detail/task-approval.d.ts +89 -0
- package/workflow/task-detail/task-approval.d.ts.map +1 -0
- package/workflow/task-detail/task-approval.js +84 -0
- package/workflow/task-detail/task-approval.js.map +1 -0
- package/workflow/task-detail/task-detail-io.d.ts +39 -0
- package/workflow/task-detail/task-detail-io.d.ts.map +1 -0
- package/workflow/task-detail/task-detail-io.js +42 -0
- package/workflow/task-detail/task-detail-io.js.map +1 -0
- package/workflow/thread/WorkflowTaskThread.d.ts +91 -0
- package/workflow/thread/WorkflowTaskThread.d.ts.map +1 -0
- package/workflow/thread/WorkflowTaskThread.js +318 -0
- package/workflow/thread/WorkflowTaskThread.js.map +1 -0
- package/workflow/thread/project-thread-items.d.ts +108 -0
- package/workflow/thread/project-thread-items.d.ts.map +1 -0
- package/workflow/thread/project-thread-items.js +126 -0
- package/workflow/thread/project-thread-items.js.map +1 -0
- package/workflow/thread/task-presentation.d.ts +73 -0
- package/workflow/thread/task-presentation.d.ts.map +1 -0
- package/workflow/thread/task-presentation.js +331 -0
- package/workflow/thread/task-presentation.js.map +1 -0
- package/workflow/thread/thread-presentation.d.ts +28 -0
- package/workflow/thread/thread-presentation.d.ts.map +1 -0
- package/workflow/thread/thread-presentation.js +28 -0
- package/workflow/thread/thread-presentation.js.map +1 -0
- package/workflow/thread/useWorkflowThreadItems.d.ts +16 -0
- package/workflow/thread/useWorkflowThreadItems.d.ts.map +1 -0
- package/workflow/thread/useWorkflowThreadItems.js +22 -0
- package/workflow/thread/useWorkflowThreadItems.js.map +1 -0
- package/workflow/useApprovalBoundary.d.ts +38 -0
- package/workflow/useApprovalBoundary.d.ts.map +1 -0
- package/workflow/useApprovalBoundary.js +55 -0
- package/workflow/useApprovalBoundary.js.map +1 -0
- package/workflow/useFollowExecution.d.ts +0 -20
- package/workflow/useFollowExecution.d.ts.map +1 -1
- package/workflow/useFollowExecution.js +0 -17
- package/workflow/useFollowExecution.js.map +1 -1
- package/workflow/useWorkflowArtifactDownload.d.ts +28 -0
- package/workflow/useWorkflowArtifactDownload.d.ts.map +1 -0
- package/workflow/useWorkflowArtifactDownload.js +45 -0
- package/workflow/useWorkflowArtifactDownload.js.map +1 -0
- package/workflow/useWorkflowExecutionActions.d.ts +3 -2
- package/workflow/useWorkflowExecutionActions.d.ts.map +1 -1
- package/workflow/useWorkflowExecutionActions.js.map +1 -1
- package/workflow/useWorkflowExecutionFileChanges.d.ts +107 -0
- package/workflow/useWorkflowExecutionFileChanges.d.ts.map +1 -0
- package/workflow/useWorkflowExecutionFileChanges.js +244 -0
- package/workflow/useWorkflowExecutionFileChanges.js.map +1 -0
- package/workflow/useWorkflowExecutionGraph.d.ts +1 -14
- package/workflow/useWorkflowExecutionGraph.d.ts.map +1 -1
- package/workflow/useWorkflowExecutionGraph.js +2 -25
- package/workflow/useWorkflowExecutionGraph.js.map +1 -1
- package/workflow/useWorkflowExecutionPanel.d.ts +108 -0
- package/workflow/useWorkflowExecutionPanel.d.ts.map +1 -0
- package/workflow/useWorkflowExecutionPanel.js +103 -0
- package/workflow/useWorkflowExecutionPanel.js.map +1 -0
- package/workflow/useWorkflowExecutionRailViews.d.ts +46 -0
- package/workflow/useWorkflowExecutionRailViews.d.ts.map +1 -0
- package/workflow/useWorkflowExecutionRailViews.js +81 -0
- package/workflow/useWorkflowExecutionRailViews.js.map +1 -0
- package/workspace/FileViewer.d.ts +1 -1
- package/workspace/FileViewer.js +3 -3
- package/workspace/FileViewer.js.map +1 -1
- package/workspace/PanelChip.d.ts +27 -0
- package/workspace/PanelChip.d.ts.map +1 -0
- package/workspace/PanelChip.js +42 -0
- package/workspace/PanelChip.js.map +1 -0
- package/workspace/WorkspaceSurface.d.ts +25 -1
- package/workspace/WorkspaceSurface.d.ts.map +1 -1
- package/workspace/WorkspaceSurface.js +21 -9
- package/workspace/WorkspaceSurface.js.map +1 -1
- package/workspace/index.d.ts +3 -1
- package/workspace/index.d.ts.map +1 -1
- package/workspace/index.js +1 -0
- package/workspace/index.js.map +1 -1
- package/execution/ThreadSelectionContext.d.ts +0 -17
- package/execution/ThreadSelectionContext.d.ts.map +0 -1
- package/execution/ThreadSelectionContext.js +0 -18
- package/execution/ThreadSelectionContext.js.map +0 -1
- package/execution/useThreadSelection.d.ts +0 -35
- package/execution/useThreadSelection.d.ts.map +0 -1
- package/execution/useThreadSelection.js +0 -65
- package/execution/useThreadSelection.js.map +0 -1
- package/internal/store/selection-store.d.ts +0 -53
- package/internal/store/selection-store.d.ts.map +0 -1
- package/internal/store/selection-store.js +0 -88
- package/internal/store/selection-store.js.map +0 -1
- package/session/artifact-document.d.ts.map +0 -1
- package/session/artifact-document.js +0 -22
- package/session/artifact-document.js.map +0 -1
- package/session/facets/InspectTab.d.ts +0 -13
- package/session/facets/InspectTab.d.ts.map +0 -1
- package/session/facets/InspectTab.js +0 -19
- package/session/facets/InspectTab.js.map +0 -1
- package/src/execution/ThreadSelectionContext.tsx +0 -20
- package/src/execution/useThreadSelection.ts +0 -95
- package/src/internal/store/__tests__/selection-store.test.ts +0 -115
- package/src/internal/store/selection-store.ts +0 -112
- package/src/session/artifact-document.ts +0 -23
- package/src/session/facets/InspectTab.tsx +0 -57
- package/src/workflow/WorkflowExecutionApprovalCard.tsx +0 -154
- package/src/workflow/WorkflowExecutionArtifactPanel.tsx +0 -107
- package/src/workflow/WorkflowExecutionCostPanel.tsx +0 -120
- package/src/workflow/WorkflowExecutionTaskPanel.tsx +0 -129
- package/src/workflow/WorkflowExecutionTimeline.tsx +0 -151
- package/src/workflow/WorkflowExecutionTimelineEvent.tsx +0 -497
- package/src/workflow/__tests__/ExecutionInspector.test.tsx +0 -155
- package/src/workflow/__tests__/WorkflowExecutionApprovalCard.test.tsx +0 -129
- package/src/workflow/__tests__/derive-task-detail.test.ts +0 -1265
- package/src/workflow/__tests__/derive-waterfall-entries.test.ts +0 -521
- package/src/workflow/__tests__/execution-inspector.test.tsx +0 -332
- package/src/workflow/execution/derive-waterfall-entries.ts +0 -377
- package/src/workflow/execution/useWaterfallEntries.ts +0 -125
- package/src/workflow/execution-inspector/AgentCallTab.tsx +0 -169
- package/src/workflow/execution-inspector/ErrorTab.tsx +0 -110
- package/src/workflow/execution-inspector/EventLogTab.tsx +0 -79
- package/src/workflow/execution-inspector/ExecutionInspector.tsx +0 -341
- package/src/workflow/execution-inspector/InputOutputTab.tsx +0 -325
- package/src/workflow/execution-inspector/RetriesTab.tsx +0 -68
- package/src/workflow/execution-inspector/SummaryTab.tsx +0 -62
- package/src/workflow/execution-inspector/derive-task-detail.ts +0 -584
- package/src/workflow/execution-inspector/index.ts +0 -14
- package/src/workflow/execution-inspector/useExecutionTaskDetail.ts +0 -55
- package/src/workflow/inspector/ExecutionInspectorAdapter.tsx +0 -40
- package/src/workflow/waterfall/WaterfallBar.tsx +0 -167
- package/src/workflow/waterfall/WaterfallRow.tsx +0 -112
- package/src/workflow/waterfall/WaterfallScale.tsx +0 -52
- package/src/workflow/waterfall/WaterfallTimeline.tsx +0 -138
- package/src/workflow/waterfall/WaterfallTooltip.tsx +0 -74
- package/src/workflow/waterfall/index.ts +0 -5
- package/workflow/WorkflowExecutionApprovalCard.d.ts +0 -34
- package/workflow/WorkflowExecutionApprovalCard.d.ts.map +0 -1
- package/workflow/WorkflowExecutionApprovalCard.js +0 -46
- package/workflow/WorkflowExecutionApprovalCard.js.map +0 -1
- package/workflow/WorkflowExecutionArtifactPanel.d.ts +0 -15
- package/workflow/WorkflowExecutionArtifactPanel.d.ts.map +0 -1
- package/workflow/WorkflowExecutionArtifactPanel.js +0 -46
- package/workflow/WorkflowExecutionArtifactPanel.js.map +0 -1
- package/workflow/WorkflowExecutionCostPanel.d.ts +0 -18
- package/workflow/WorkflowExecutionCostPanel.d.ts.map +0 -1
- package/workflow/WorkflowExecutionCostPanel.js +0 -31
- package/workflow/WorkflowExecutionCostPanel.js.map +0 -1
- package/workflow/WorkflowExecutionTaskPanel.d.ts +0 -24
- package/workflow/WorkflowExecutionTaskPanel.d.ts.map +0 -1
- package/workflow/WorkflowExecutionTaskPanel.js +0 -51
- package/workflow/WorkflowExecutionTaskPanel.js.map +0 -1
- package/workflow/WorkflowExecutionTimeline.d.ts +0 -42
- package/workflow/WorkflowExecutionTimeline.d.ts.map +0 -1
- package/workflow/WorkflowExecutionTimeline.js +0 -52
- package/workflow/WorkflowExecutionTimeline.js.map +0 -1
- package/workflow/WorkflowExecutionTimelineEvent.d.ts +0 -25
- package/workflow/WorkflowExecutionTimelineEvent.d.ts.map +0 -1
- package/workflow/WorkflowExecutionTimelineEvent.js +0 -179
- package/workflow/WorkflowExecutionTimelineEvent.js.map +0 -1
- package/workflow/execution/derive-waterfall-entries.d.ts +0 -85
- package/workflow/execution/derive-waterfall-entries.d.ts.map +0 -1
- package/workflow/execution/derive-waterfall-entries.js +0 -268
- package/workflow/execution/derive-waterfall-entries.js.map +0 -1
- package/workflow/execution/useWaterfallEntries.d.ts +0 -25
- package/workflow/execution/useWaterfallEntries.d.ts.map +0 -1
- package/workflow/execution/useWaterfallEntries.js +0 -67
- package/workflow/execution/useWaterfallEntries.js.map +0 -1
- package/workflow/execution-inspector/AgentCallTab.d.ts +0 -21
- package/workflow/execution-inspector/AgentCallTab.d.ts.map +0 -1
- package/workflow/execution-inspector/AgentCallTab.js +0 -36
- package/workflow/execution-inspector/AgentCallTab.js.map +0 -1
- package/workflow/execution-inspector/ErrorTab.d.ts +0 -9
- package/workflow/execution-inspector/ErrorTab.d.ts.map +0 -1
- package/workflow/execution-inspector/ErrorTab.js +0 -29
- package/workflow/execution-inspector/ErrorTab.js.map +0 -1
- package/workflow/execution-inspector/EventLogTab.d.ts +0 -11
- package/workflow/execution-inspector/EventLogTab.d.ts.map +0 -1
- package/workflow/execution-inspector/EventLogTab.js +0 -47
- package/workflow/execution-inspector/EventLogTab.js.map +0 -1
- package/workflow/execution-inspector/ExecutionInspector.d.ts +0 -69
- package/workflow/execution-inspector/ExecutionInspector.d.ts.map +0 -1
- package/workflow/execution-inspector/ExecutionInspector.js +0 -145
- package/workflow/execution-inspector/ExecutionInspector.js.map +0 -1
- package/workflow/execution-inspector/InputOutputTab.d.ts +0 -20
- package/workflow/execution-inspector/InputOutputTab.d.ts.map +0 -1
- package/workflow/execution-inspector/InputOutputTab.js +0 -124
- package/workflow/execution-inspector/InputOutputTab.js.map +0 -1
- package/workflow/execution-inspector/RetriesTab.d.ts +0 -7
- package/workflow/execution-inspector/RetriesTab.d.ts.map +0 -1
- package/workflow/execution-inspector/RetriesTab.js +0 -11
- package/workflow/execution-inspector/RetriesTab.js.map +0 -1
- package/workflow/execution-inspector/StructuredDataViewer.d.ts.map +0 -1
- package/workflow/execution-inspector/StructuredDataViewer.js.map +0 -1
- package/workflow/execution-inspector/SummaryTab.d.ts +0 -7
- package/workflow/execution-inspector/SummaryTab.d.ts.map +0 -1
- package/workflow/execution-inspector/SummaryTab.js +0 -10
- package/workflow/execution-inspector/SummaryTab.js.map +0 -1
- package/workflow/execution-inspector/derive-task-detail.d.ts +0 -140
- package/workflow/execution-inspector/derive-task-detail.d.ts.map +0 -1
- package/workflow/execution-inspector/derive-task-detail.js +0 -366
- package/workflow/execution-inspector/derive-task-detail.js.map +0 -1
- package/workflow/execution-inspector/index.d.ts +0 -4
- package/workflow/execution-inspector/index.d.ts.map +0 -1
- package/workflow/execution-inspector/index.js +0 -4
- package/workflow/execution-inspector/index.js.map +0 -1
- package/workflow/execution-inspector/useExecutionTaskDetail.d.ts +0 -38
- package/workflow/execution-inspector/useExecutionTaskDetail.d.ts.map +0 -1
- package/workflow/execution-inspector/useExecutionTaskDetail.js +0 -37
- package/workflow/execution-inspector/useExecutionTaskDetail.js.map +0 -1
- package/workflow/inspector/ExecutionInspectorAdapter.d.ts +0 -26
- package/workflow/inspector/ExecutionInspectorAdapter.d.ts.map +0 -1
- package/workflow/inspector/ExecutionInspectorAdapter.js +0 -23
- package/workflow/inspector/ExecutionInspectorAdapter.js.map +0 -1
- package/workflow/waterfall/WaterfallBar.d.ts +0 -19
- package/workflow/waterfall/WaterfallBar.d.ts.map +0 -1
- package/workflow/waterfall/WaterfallBar.js +0 -70
- package/workflow/waterfall/WaterfallBar.js.map +0 -1
- package/workflow/waterfall/WaterfallRow.d.ts +0 -18
- package/workflow/waterfall/WaterfallRow.d.ts.map +0 -1
- package/workflow/waterfall/WaterfallRow.js +0 -45
- package/workflow/waterfall/WaterfallRow.js.map +0 -1
- package/workflow/waterfall/WaterfallScale.d.ts +0 -14
- package/workflow/waterfall/WaterfallScale.d.ts.map +0 -1
- package/workflow/waterfall/WaterfallScale.js +0 -22
- package/workflow/waterfall/WaterfallScale.js.map +0 -1
- package/workflow/waterfall/WaterfallTimeline.d.ts +0 -46
- package/workflow/waterfall/WaterfallTimeline.d.ts.map +0 -1
- package/workflow/waterfall/WaterfallTimeline.js +0 -60
- package/workflow/waterfall/WaterfallTimeline.js.map +0 -1
- package/workflow/waterfall/WaterfallTooltip.d.ts +0 -15
- package/workflow/waterfall/WaterfallTooltip.d.ts.map +0 -1
- package/workflow/waterfall/WaterfallTooltip.js +0 -20
- package/workflow/waterfall/WaterfallTooltip.js.map +0 -1
- package/workflow/waterfall/index.d.ts +0 -6
- package/workflow/waterfall/index.d.ts.map +0 -1
- package/workflow/waterfall/index.js +0 -6
- package/workflow/waterfall/index.js.map +0 -1
- /package/src/workflow/{execution-inspector → task-detail}/StructuredDataViewer.tsx +0 -0
- /package/workflow/{execution-inspector → task-detail}/StructuredDataViewer.d.ts +0 -0
- /package/workflow/{execution-inspector → task-detail}/StructuredDataViewer.js +0 -0
|
@@ -75,26 +75,6 @@ export interface FollowCenterResult {
|
|
|
75
75
|
* The shift is inversely proportional to zoom (larger zoom → smaller shift).
|
|
76
76
|
*/
|
|
77
77
|
export declare function computeFollowCenter(input: FollowCenterInput): FollowCenterResult;
|
|
78
|
-
/** Inputs for the follow-selection decision. */
|
|
79
|
-
export interface FollowSelectionInput {
|
|
80
|
-
/** Whether the follow state machine is in "following" state. */
|
|
81
|
-
readonly isFollowing: boolean;
|
|
82
|
-
/** The currently active (running/waiting) task name, or null. */
|
|
83
|
-
readonly activeTaskName: string | null;
|
|
84
|
-
/** The currently selected task name in the graph, or null. */
|
|
85
|
-
readonly currentSelectedTask: string | null;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Pure function that determines whether follow-selection should update
|
|
89
|
-
* the selected task. Returns the task name to select, or `null` when
|
|
90
|
-
* no change is needed. Extracted for testability (DD-003).
|
|
91
|
-
*
|
|
92
|
-
* Selection should update when all three conditions hold:
|
|
93
|
-
* 1. Follow is active (`isFollowing`)
|
|
94
|
-
* 2. An active task exists (`activeTaskName`)
|
|
95
|
-
* 3. The active task differs from the current selection
|
|
96
|
-
*/
|
|
97
|
-
export declare function computeFollowSelection(input: FollowSelectionInput): string | null;
|
|
98
78
|
/**
|
|
99
79
|
* Behavior hook implementing a follow-execution state machine for the
|
|
100
80
|
* workflow execution graph viewport.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFollowExecution.d.ts","sourceRoot":"","sources":["../../src/workflow/useFollowExecution.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKpD;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC;AAEpE,8CAA8C;AAC9C,MAAM,WAAW,yBAAyB;IACxC,+FAA+F;IAC/F,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,2EAA2E;IAC3E,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IAChC,wEAAwE;IACxE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,0D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AC;IACvB,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,uCAAuC;IACvC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,mCAAmC;IACnC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,gFAAgF;IAChF,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED,2CAA2C;AAC3C,MAAM,WAAW,kBAAkB;IACjC,sDAAsD;IACtD,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,kBAAkB,CAahF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,wBAAwB,CA2F/F"}
|
|
@@ -25,23 +25,6 @@ export function computeFollowCenter(input) {
|
|
|
25
25
|
zoom: Math.max(input.currentZoom, MIN_FOLLOW_ZOOM),
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Pure function that determines whether follow-selection should update
|
|
30
|
-
* the selected task. Returns the task name to select, or `null` when
|
|
31
|
-
* no change is needed. Extracted for testability (DD-003).
|
|
32
|
-
*
|
|
33
|
-
* Selection should update when all three conditions hold:
|
|
34
|
-
* 1. Follow is active (`isFollowing`)
|
|
35
|
-
* 2. An active task exists (`activeTaskName`)
|
|
36
|
-
* 3. The active task differs from the current selection
|
|
37
|
-
*/
|
|
38
|
-
export function computeFollowSelection(input) {
|
|
39
|
-
if (!input.isFollowing || !input.activeTaskName)
|
|
40
|
-
return null;
|
|
41
|
-
if (input.activeTaskName === input.currentSelectedTask)
|
|
42
|
-
return null;
|
|
43
|
-
return input.activeTaskName;
|
|
44
|
-
}
|
|
45
28
|
/**
|
|
46
29
|
* Behavior hook implementing a follow-execution state machine for the
|
|
47
30
|
* workflow execution graph viewport.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFollowExecution.js","sourceRoot":"","sources":["../../src/workflow/useFollowExecution.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAgDxE,MAAM,eAAe,GAAG,GAAG,CAAC;AAC5B,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AA4B/B;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAwB;IAC1D,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC;IAClD,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC;IAEnD,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,GAAG,CAAC;QACrC,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,WAAW;QAC/C,CAAC,CAAC,CAAC,CAAC;IAEN,OAAO;QACL,CAAC,EAAE,OAAO,GAAG,OAAO;QACpB,CAAC,EAAE,OAAO;QACV,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,eAAe,CAAC;KACnD,CAAC;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"useFollowExecution.js","sourceRoot":"","sources":["../../src/workflow/useFollowExec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W,KAAK,WAAW,EAAE,CAAC;YAClD,cAAc,CAAC,cAAc,CAAC,CAAC;QACjC,CAAC;IACH,CAAC,EACD,CAAC,WAAW,CAAC,CACd,CAAC;IAEF,MAAM,YAAY,GAAG,WAAW,CAAC,GAAG,EAAE;QACpC,cAAc,CAAC,WAAW,CAAC,CAAC;QAC5B,iBAAiB,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,sCAAsC;IAC1E,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,aAAa,GAAG,WAAW,CAAC,GAAG,EAAE;QACrC,cAAc,CAAC,cAAc,CAAC,CAAC;IACjC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,WAAW;QACX,WAAW,EAAE,WAAW,KAAK,WAAW;QACxC,YAAY;QACZ,aAAa;QACb,eAAe;KAChB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Return value of {@link useWorkflowArtifactDownload}. */
|
|
2
|
+
export interface UseWorkflowArtifactDownloadReturn {
|
|
3
|
+
/**
|
|
4
|
+
* Mint a fresh download URL for the artifact and open it. No-op when the
|
|
5
|
+
* id is empty or a download is already in flight. Resolves once the
|
|
6
|
+
* download has been initiated.
|
|
7
|
+
*
|
|
8
|
+
* @param artifactId - The `Artifact` resource id (`art_…`).
|
|
9
|
+
*/
|
|
10
|
+
readonly download: (artifactId: string) => Promise<void>;
|
|
11
|
+
/** `true` while a URL is being minted / the download is being initiated. */
|
|
12
|
+
readonly isDownloading: boolean;
|
|
13
|
+
/** Error from the last failed download attempt, or `null` when healthy. */
|
|
14
|
+
readonly error: Error | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Behavior hook that downloads an `Artifact` resource on demand via
|
|
18
|
+
* `stigmer.artifact.getDownloadUrl(id)` — mint-at-click-time so the
|
|
19
|
+
* (short-TTL, presigned in Cloud) URL is always valid.
|
|
20
|
+
*
|
|
21
|
+
* Mirrors {@link useArtifactDownload}, which serves the session's
|
|
22
|
+
* `ExecutionArtifact` model (addressed by `executionId` + `storageKey`);
|
|
23
|
+
* this one serves the workflow's first-class `Artifact` resource (addressed
|
|
24
|
+
* by artifact id). The two models are deliberately unified only at the
|
|
25
|
+
* presentational layer, so each keeps its own download mechanics.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useWorkflowArtifactDownload(): UseWorkflowArtifactDownloadReturn;
|
|
28
|
+
//# sourceMappingURL=useWorkflowArtifactDownload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWorkflowArtifactDownload.d.ts","sourceRoot":"","sources":["../../src/workflow/useWorkflowArtifactDownload.ts"],"names":[],"mappings":"AASA,2DAA2D;AAC3D,MAAM,WAAW,iCAAiC;IAChD;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,4EAA4E;IAC5E,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CAC9B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,IAAI,iCAAiC,CA+B/E"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// Behavior hook that downloads an Artifact resource on demand.
|
|
3
|
+
// Domain: workflow (the Artifact-resource counterpart of useArtifactDownload).
|
|
4
|
+
import { useCallback, useMemo, useState } from "react";
|
|
5
|
+
import { useStigmer } from "../hooks.js";
|
|
6
|
+
import { toError } from "../internal/toError.js";
|
|
7
|
+
/**
|
|
8
|
+
* Behavior hook that downloads an `Artifact` resource on demand via
|
|
9
|
+
* `stigmer.artifact.getDownloadUrl(id)` — mint-at-click-time so the
|
|
10
|
+
* (short-TTL, presigned in Cloud) URL is always valid.
|
|
11
|
+
*
|
|
12
|
+
* Mirrors {@link useArtifactDownload}, which serves the session's
|
|
13
|
+
* `ExecutionArtifact` model (addressed by `executionId` + `storageKey`);
|
|
14
|
+
* this one serves the workflow's first-class `Artifact` resource (addressed
|
|
15
|
+
* by artifact id). The two models are deliberately unified only at the
|
|
16
|
+
* presentational layer, so each keeps its own download mechanics.
|
|
17
|
+
*/
|
|
18
|
+
export function useWorkflowArtifactDownload() {
|
|
19
|
+
const stigmer = useStigmer();
|
|
20
|
+
const [isDownloading, setIsDownloading] = useState(false);
|
|
21
|
+
const [error, setError] = useState(null);
|
|
22
|
+
const download = useCallback(async (artifactId) => {
|
|
23
|
+
if (!artifactId || isDownloading)
|
|
24
|
+
return;
|
|
25
|
+
setIsDownloading(true);
|
|
26
|
+
setError(null);
|
|
27
|
+
try {
|
|
28
|
+
const result = await stigmer.artifact.getDownloadUrl(artifactId);
|
|
29
|
+
if (result.url) {
|
|
30
|
+
// New tab rather than an anchor download: the URL's disposition is
|
|
31
|
+
// owned by the server (presigned in Cloud), and the `download`
|
|
32
|
+
// attribute is ignored cross-origin anyway.
|
|
33
|
+
window.open(result.url, "_blank", "noopener,noreferrer");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
catch (err) {
|
|
37
|
+
setError(toError(err));
|
|
38
|
+
}
|
|
39
|
+
finally {
|
|
40
|
+
setIsDownloading(false);
|
|
41
|
+
}
|
|
42
|
+
}, [stigmer, isDownloading]);
|
|
43
|
+
return useMemo(() => ({ download, isDownloading, error }), [download, isDownloading, error]);
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=useWorkflowArtifactDownload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWorkflowArtifactDownload.js","sourceRoot":"","sources":["../../src/workflow/useWorkflowArtifactDownload.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,+DAA+D;AAC/D,+EAA+E;AAE/E,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OA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CAAC"}
|
|
@@ -82,8 +82,9 @@ export interface UseWorkflowExecutionActionsReturn {
|
|
|
82
82
|
readonly approvalSubmittingToolCallIds: ReadonlySet<string>;
|
|
83
83
|
/**
|
|
84
84
|
* Per-gate agent-tool approval failures, keyed by `toolCallId`. Consumed by
|
|
85
|
-
*
|
|
86
|
-
* beside the gate that failed. Cleared for a gate when it
|
|
85
|
+
* `WorkflowApprovalList` (via the shared `ApprovalCard`) to surface the
|
|
86
|
+
* failure in-card, beside the gate that failed. Cleared for a gate when it
|
|
87
|
+
* is retried.
|
|
87
88
|
*/
|
|
88
89
|
readonly approvalErrorsByToolCallId: ReadonlyMap<string, Error>;
|
|
89
90
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkflowExecutionActions.d.ts","sourceRoot":"","sources":["../../src/workflow/useWorkflowExecutionActions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gEAAgE,CAAC;AACxG,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAgBvH,OAAO,EAAmB,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE1F,uDAAuD;AACvD,MAAM,WAAW,kCAAkC;IACjD;;;;;;;;OAQG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7D;AAED,2DAA2D;AAC3D,MAAM,WAAW,iCAAiC;IAChD,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACxE,iDAAiD;IACjD,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC3E,iCAAiC;IACjC,QAAQ,CAAC,KAAK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;;;;;;;GAmBG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,MAAM,GAAG,IAAI,EAC1B,OAAO,CAAC,EAAE,kCAAkC,GAC3C,iCAAiC,CAsOnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkflowExecutionActions.js","sourceRoot":"","sources":["../../src/workflow/useWorkflowExecutionActions.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AACjG,OAAO,EAAE,MAAM,EAAmB,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACL,kCAAkC,EAClC,qCAAqC,EACrC,iCAAiC,EACjC,kCAAkC,EAClC,mCAAmC,EACnC,iCAAiC,EACjC,qCAAqC,EACrC,qCAAqC,GACtC,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,eAAe,EAA4B,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"useWorkflowExecutionActions.js","sourceRoot":"","sources":["../../src/workflow/useWorkflowExecutionActions.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AACjG,OAAO,EAAE,MAAM,EAAmB,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACL,kCAAkC,EAClC,qCAAqC,EACrC,iCAAiC,EACjC,kCAAkC,EAClC,mCAAmC,EACnC,iCAAiC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QACrB,aAAa,CAAC,cAAc;QAC5B,aAAa,CAAC,WAAW;QACzB,aAAa,CAAC,cAAc;QAC5B,aAAa,CAAC,WAAW;KAC1B,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { FileChange } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/message_pb";
|
|
2
|
+
import type { WorkflowTask } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/api_pb";
|
|
3
|
+
import type { DerivedTaskState } from "../internal/store/workflow-execution-event-store.js";
|
|
4
|
+
/** One AGENT_CALL task's child execution, as enumerated for the rollup. */
|
|
5
|
+
export interface AgentCallChild {
|
|
6
|
+
/** Name of the owning workflow task. */
|
|
7
|
+
readonly taskName: string;
|
|
8
|
+
/** The child AgentExecution id (`aex_*`). */
|
|
9
|
+
readonly childExecutionId: string;
|
|
10
|
+
/**
|
|
11
|
+
* `true` once the owning task has settled (completed/failed/skipped) — the
|
|
12
|
+
* child's file changes are final and will never change again.
|
|
13
|
+
*/
|
|
14
|
+
readonly settled: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Enumerates the AGENT_CALL children of a workflow execution in
|
|
18
|
+
* task-chronological order, deduplicated by child execution id.
|
|
19
|
+
*
|
|
20
|
+
* **Ordering is a correctness input downstream**: two agent-call tasks can
|
|
21
|
+
* edit the same path, and `deriveExecutionFileChanges` anchors each path's
|
|
22
|
+
* net diff on its first and last change — so children must be visited in the
|
|
23
|
+
* order their tasks ran.
|
|
24
|
+
*
|
|
25
|
+
* Two sources, mirroring `buildAgentCall` in the execution inspector:
|
|
26
|
+
*
|
|
27
|
+
* 1. **Event-derived task states** (primary). `DerivedTaskState.childExecutionId`
|
|
28
|
+
* is populated from `agentCallStarted`/`agentCallProgress` events, and the
|
|
29
|
+
* map's insertion order follows first-event order — i.e. task chronology.
|
|
30
|
+
* 2. **Snapshot task metadata** (fallback — load-bearing, not decorative).
|
|
31
|
+
* `execution.status.tasks[].metadata.agent_execution_id` covers tasks whose
|
|
32
|
+
* events are absent: the viewer's fallback task states (built when event
|
|
33
|
+
* persistence failed) hardcode `childExecutionId: ""`, so for those runs
|
|
34
|
+
* the snapshot is the ONLY id source. The dedupe therefore keys on tasks
|
|
35
|
+
* that actually CONTRIBUTED an id from events — an event-known task with
|
|
36
|
+
* an empty id must still resolve through its snapshot, or the fallback
|
|
37
|
+
* would never fire at all. Snapshot-resolved entries are appended after
|
|
38
|
+
* event-derived ones, ordered among themselves by `startedAt` (in the
|
|
39
|
+
* pure-fallback case that IS the chronological order; in the transient
|
|
40
|
+
* mixed case — a running task whose `agentCallStarted` event hasn't
|
|
41
|
+
* arrived yet — the tail position is an approximation the next event
|
|
42
|
+
* corrects). Settled-ness prefers the live event status when the task is
|
|
43
|
+
* known to events, falling back to the snapshot status.
|
|
44
|
+
*/
|
|
45
|
+
export declare function enumerateAgentCallChildren(taskStates: ReadonlyMap<string, DerivedTaskState>, taskSnapshots: readonly WorkflowTask[] | undefined): readonly AgentCallChild[];
|
|
46
|
+
/**
|
|
47
|
+
* The fetch-plan signature of an enumeration: one line per child,
|
|
48
|
+
* `id:settledFlag`, in rollup order. Two enumerations with the same signature
|
|
49
|
+
* need identical fetches AND produce identically-ordered rollups — so it is
|
|
50
|
+
* both the effect dependency and the memo key that shields downstream
|
|
51
|
+
* consumers from the event store's per-event `taskStates` identity churn
|
|
52
|
+
* (DD-009/DD-010: never key an effect on the map reference itself).
|
|
53
|
+
*/
|
|
54
|
+
export declare function agentCallChildrenSignature(children: readonly AgentCallChild[]): string;
|
|
55
|
+
/** Options for {@link useWorkflowExecutionFileChanges}. */
|
|
56
|
+
export interface UseWorkflowExecutionFileChangesOptions {
|
|
57
|
+
/**
|
|
58
|
+
* The workflow execution id — the reset boundary: switching executions
|
|
59
|
+
* clears fetched children so run A's changes never bleed into run B.
|
|
60
|
+
*/
|
|
61
|
+
readonly executionId: string | null;
|
|
62
|
+
/** Derived task states (pass the viewer's `effectiveTaskStates`). */
|
|
63
|
+
readonly taskStates: ReadonlyMap<string, DerivedTaskState>;
|
|
64
|
+
/** Per-task status snapshots (`execution.status.tasks`) — the fallback source. */
|
|
65
|
+
readonly taskSnapshots?: readonly WorkflowTask[];
|
|
66
|
+
}
|
|
67
|
+
/** Return value of {@link useWorkflowExecutionFileChanges}. */
|
|
68
|
+
export interface UseWorkflowExecutionFileChangesReturn {
|
|
69
|
+
/**
|
|
70
|
+
* One net {@link FileChange} per file touched across all AGENT_CALL tasks,
|
|
71
|
+
* in file-list order (see {@link deriveExecutionFileChanges}).
|
|
72
|
+
*/
|
|
73
|
+
readonly fileChanges: readonly FileChange[];
|
|
74
|
+
/** Number of distinct files changed. */
|
|
75
|
+
readonly fileChangeCount: number;
|
|
76
|
+
/** `true` while the first child fetches are in flight (no data yet). */
|
|
77
|
+
readonly isLoading: boolean;
|
|
78
|
+
/** `true` while later child fetches are in flight and stale data is shown. */
|
|
79
|
+
readonly isRefetching: boolean;
|
|
80
|
+
/** First error from the last fetch round, or `null`. Partial data still renders. */
|
|
81
|
+
readonly error: Error | null;
|
|
82
|
+
/** Re-fetch every child from scratch (manual escape hatch). */
|
|
83
|
+
readonly refetch: () => void;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Aggregates a workflow execution's file changes across all its AGENT_CALL
|
|
87
|
+
* children into one net change per file — the data source for the panel's
|
|
88
|
+
* Changes facet.
|
|
89
|
+
*
|
|
90
|
+
* **Fetch policy (bounded: ≤2 gets per child).** Each child is fetched
|
|
91
|
+
* one-shot via `agentExecution.get()` when first enumerated, and once more
|
|
92
|
+
* when its task settles (the terminal snapshot carries the final ledger —
|
|
93
|
+
* `displayFileChangeSets` folds `status.file_review_event_stream` for a
|
|
94
|
+
* terminal execution). No live child streams: the rollup refreshes at task
|
|
95
|
+
* boundaries, which is the freshness this facet promises. A failed child
|
|
96
|
+
* fetch surfaces `error` but never blocks the other children's results.
|
|
97
|
+
*
|
|
98
|
+
* **Stability.** The fetch effect and all derived memos key on the
|
|
99
|
+
* enumeration *signature*, not the `taskStates` map identity (which churns
|
|
100
|
+
* per event during a live run) — so mid-task events cause zero fetches and
|
|
101
|
+
* zero re-derivation. The returned object is memoized (DD-010).
|
|
102
|
+
*
|
|
103
|
+
* @see WorkflowChangesTab — the facet rendering this data
|
|
104
|
+
* @see useSessionFileChanges — the session-side counterpart over the same core
|
|
105
|
+
*/
|
|
106
|
+
export declare function useWorkflowExecutionFileChanges({ executionId, taskStates, taskSnapshots, }: UseWorkflowExecutionFileChangesOptions): UseWorkflowExecutionFileChangesReturn;
|
|
107
|
+
//# sourceMappingURL=useWorkflowExecutionFileChanges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWorkflowExecutionFileChanges.d.ts","sourceRoot":"","sources":["../../src/workflow/useWorkflowExecutionFileChanges.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iEAAiE,CAAC;AAClG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gEAAgE,CAAC;AAKnG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAM5F,2EAA2E;AAC3E,MAAM,WAAW,cAAc;IAC7B,wCAAwC;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,6CAA6C;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,EACjD,aAAa,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,GACjD,SAAS,cAAc,EAAE,CAgD3B;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,SAAS,cAAc,EAAE,GAClC,MAAM,CAIR;AAMD,2DAA2D;AAC3D,MAAM,WAAW,sCAAsC;IACrD;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,qEAAqE;IACrE,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC3D,kFAAkF;IAClF,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CAClD;AAED,+DAA+D;AAC/D,MAAM,WAAW,qCAAqC;IACpD;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;IAC5C,wCAAwC;IACxC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,wEAAwE;IACxE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,8EAA8E;IAC9E,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B,oFAAoF;IACpF,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,+BAA+B,CAAC,EAC9C,WAAW,EACX,UAAU,EACV,aAAa,GACd,EAAE,sCAAsC,GAAG,qCAAqC,CA6HhF"}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// Execution-level file-change rollup for the workflow panel's Changes facet.
|
|
3
|
+
// Domain: workflow (the Changes-facet analog of useWorkflowExecutionArtifacts).
|
|
4
|
+
//
|
|
5
|
+
// Unlike Artifacts (a server-side aggregate: `artifact.listByExecution`) and
|
|
6
|
+
// Usage (server-emitted budget checkpoints), file changes have NO parent-level
|
|
7
|
+
// aggregate BY DESIGN: the server keeps diffs single-sourced on each child
|
|
8
|
+
// AgentExecution and surfaces only references from the parent (see
|
|
9
|
+
// `WorkflowExecutionStatus.pending_file_reviews`). So this hook dereferences
|
|
10
|
+
// the children client-side — the same reference→dereference architecture as
|
|
11
|
+
// `WorkflowFileReviewList`, generalized from "pending gates" to the settled
|
|
12
|
+
// net rollup, with a one-shot `get()` per child instead of a live stream
|
|
13
|
+
// (the rollup needs task-boundary freshness, not token-level liveness).
|
|
14
|
+
// Should a server rollup ever land, it can replace the fan-out behind this
|
|
15
|
+
// hook's plain `FileChange[]` seam without touching consumers.
|
|
16
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
17
|
+
import { WorkflowTaskStatus } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/enum_pb";
|
|
18
|
+
import { deriveExecutionFileChanges } from "../execution/deriveExecutionFileChanges.js";
|
|
19
|
+
import { useStigmer } from "../hooks.js";
|
|
20
|
+
import { toError } from "../internal/toError.js";
|
|
21
|
+
const SETTLED_TASK_STATUSES = new Set([
|
|
22
|
+
"completed",
|
|
23
|
+
"failed",
|
|
24
|
+
"skipped",
|
|
25
|
+
]);
|
|
26
|
+
const SETTLED_SNAPSHOT_STATUSES = new Set([
|
|
27
|
+
WorkflowTaskStatus.WORKFLOW_TASK_COMPLETED,
|
|
28
|
+
WorkflowTaskStatus.WORKFLOW_TASK_FAILED,
|
|
29
|
+
WorkflowTaskStatus.WORKFLOW_TASK_SKIPPED,
|
|
30
|
+
]);
|
|
31
|
+
/**
|
|
32
|
+
* Enumerates the AGENT_CALL children of a workflow execution in
|
|
33
|
+
* task-chronological order, deduplicated by child execution id.
|
|
34
|
+
*
|
|
35
|
+
* **Ordering is a correctness input downstream**: two agent-call tasks can
|
|
36
|
+
* edit the same path, and `deriveExecutionFileChanges` anchors each path's
|
|
37
|
+
* net diff on its first and last change — so children must be visited in the
|
|
38
|
+
* order their tasks ran.
|
|
39
|
+
*
|
|
40
|
+
* Two sources, mirroring `buildAgentCall` in the execution inspector:
|
|
41
|
+
*
|
|
42
|
+
* 1. **Event-derived task states** (primary). `DerivedTaskState.childExecutionId`
|
|
43
|
+
* is populated from `agentCallStarted`/`agentCallProgress` events, and the
|
|
44
|
+
* map's insertion order follows first-event order — i.e. task chronology.
|
|
45
|
+
* 2. **Snapshot task metadata** (fallback — load-bearing, not decorative).
|
|
46
|
+
* `execution.status.tasks[].metadata.agent_execution_id` covers tasks whose
|
|
47
|
+
* events are absent: the viewer's fallback task states (built when event
|
|
48
|
+
* persistence failed) hardcode `childExecutionId: ""`, so for those runs
|
|
49
|
+
* the snapshot is the ONLY id source. The dedupe therefore keys on tasks
|
|
50
|
+
* that actually CONTRIBUTED an id from events — an event-known task with
|
|
51
|
+
* an empty id must still resolve through its snapshot, or the fallback
|
|
52
|
+
* would never fire at all. Snapshot-resolved entries are appended after
|
|
53
|
+
* event-derived ones, ordered among themselves by `startedAt` (in the
|
|
54
|
+
* pure-fallback case that IS the chronological order; in the transient
|
|
55
|
+
* mixed case — a running task whose `agentCallStarted` event hasn't
|
|
56
|
+
* arrived yet — the tail position is an approximation the next event
|
|
57
|
+
* corrects). Settled-ness prefers the live event status when the task is
|
|
58
|
+
* known to events, falling back to the snapshot status.
|
|
59
|
+
*/
|
|
60
|
+
export function enumerateAgentCallChildren(taskStates, taskSnapshots) {
|
|
61
|
+
const children = [];
|
|
62
|
+
const seenIds = new Set();
|
|
63
|
+
const tasksWithEventIds = new Set();
|
|
64
|
+
for (const state of taskStates.values()) {
|
|
65
|
+
if (!state.childExecutionId || seenIds.has(state.childExecutionId))
|
|
66
|
+
continue;
|
|
67
|
+
seenIds.add(state.childExecutionId);
|
|
68
|
+
tasksWithEventIds.add(state.taskName);
|
|
69
|
+
children.push({
|
|
70
|
+
taskName: state.taskName,
|
|
71
|
+
childExecutionId: state.childExecutionId,
|
|
72
|
+
settled: SETTLED_TASK_STATUSES.has(state.status),
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
if (!taskSnapshots || taskSnapshots.length === 0)
|
|
76
|
+
return children;
|
|
77
|
+
const fromSnapshots = [];
|
|
78
|
+
for (const task of taskSnapshots) {
|
|
79
|
+
if (!task.taskName || tasksWithEventIds.has(task.taskName))
|
|
80
|
+
continue;
|
|
81
|
+
// Only agent-call tasks carry an agent_execution_id in their metadata —
|
|
82
|
+
// presence of the id IS the discriminator (same read as the inspector's
|
|
83
|
+
// snapshot fallback).
|
|
84
|
+
const meta = task.metadata;
|
|
85
|
+
const childId = meta?.agent_execution_id;
|
|
86
|
+
if (typeof childId !== "string" || !childId || seenIds.has(childId))
|
|
87
|
+
continue;
|
|
88
|
+
seenIds.add(childId);
|
|
89
|
+
const eventState = taskStates.get(task.taskName);
|
|
90
|
+
fromSnapshots.push({
|
|
91
|
+
taskName: task.taskName,
|
|
92
|
+
childExecutionId: childId,
|
|
93
|
+
settled: eventState
|
|
94
|
+
? SETTLED_TASK_STATUSES.has(eventState.status)
|
|
95
|
+
: SETTLED_SNAPSHOT_STATUSES.has(task.status),
|
|
96
|
+
startedAt: task.startedAt ?? "",
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
// RFC 3339 UTC timestamps sort chronologically as strings; tasks without a
|
|
100
|
+
// startedAt keep their snapshot (definition) order at the end.
|
|
101
|
+
fromSnapshots.sort((a, b) => a.startedAt && b.startedAt ? a.startedAt.localeCompare(b.startedAt) : 0);
|
|
102
|
+
for (const { startedAt: _startedAt, ...child } of fromSnapshots) {
|
|
103
|
+
children.push(child);
|
|
104
|
+
}
|
|
105
|
+
return children;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The fetch-plan signature of an enumeration: one line per child,
|
|
109
|
+
* `id:settledFlag`, in rollup order. Two enumerations with the same signature
|
|
110
|
+
* need identical fetches AND produce identically-ordered rollups — so it is
|
|
111
|
+
* both the effect dependency and the memo key that shields downstream
|
|
112
|
+
* consumers from the event store's per-event `taskStates` identity churn
|
|
113
|
+
* (DD-009/DD-010: never key an effect on the map reference itself).
|
|
114
|
+
*/
|
|
115
|
+
export function agentCallChildrenSignature(children) {
|
|
116
|
+
return children
|
|
117
|
+
.map((c) => `${c.childExecutionId}:${c.settled ? "1" : "0"}`)
|
|
118
|
+
.join("\n");
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Aggregates a workflow execution's file changes across all its AGENT_CALL
|
|
122
|
+
* children into one net change per file — the data source for the panel's
|
|
123
|
+
* Changes facet.
|
|
124
|
+
*
|
|
125
|
+
* **Fetch policy (bounded: ≤2 gets per child).** Each child is fetched
|
|
126
|
+
* one-shot via `agentExecution.get()` when first enumerated, and once more
|
|
127
|
+
* when its task settles (the terminal snapshot carries the final ledger —
|
|
128
|
+
* `displayFileChangeSets` folds `status.file_review_event_stream` for a
|
|
129
|
+
* terminal execution). No live child streams: the rollup refreshes at task
|
|
130
|
+
* boundaries, which is the freshness this facet promises. A failed child
|
|
131
|
+
* fetch surfaces `error` but never blocks the other children's results.
|
|
132
|
+
*
|
|
133
|
+
* **Stability.** The fetch effect and all derived memos key on the
|
|
134
|
+
* enumeration *signature*, not the `taskStates` map identity (which churns
|
|
135
|
+
* per event during a live run) — so mid-task events cause zero fetches and
|
|
136
|
+
* zero re-derivation. The returned object is memoized (DD-010).
|
|
137
|
+
*
|
|
138
|
+
* @see WorkflowChangesTab — the facet rendering this data
|
|
139
|
+
* @see useSessionFileChanges — the session-side counterpart over the same core
|
|
140
|
+
*/
|
|
141
|
+
export function useWorkflowExecutionFileChanges({ executionId, taskStates, taskSnapshots, }) {
|
|
142
|
+
const stigmer = useStigmer();
|
|
143
|
+
const stigmerRef = useRef(stigmer);
|
|
144
|
+
stigmerRef.current = stigmer;
|
|
145
|
+
// Enumerate on every render (cheap map walk), then pin identity to the
|
|
146
|
+
// signature so the event store's per-event map churn never propagates.
|
|
147
|
+
const children = enumerateAgentCallChildren(taskStates, taskSnapshots);
|
|
148
|
+
const signature = agentCallChildrenSignature(children);
|
|
149
|
+
const stableChildrenRef = useRef({ signature, children });
|
|
150
|
+
if (stableChildrenRef.current.signature !== signature) {
|
|
151
|
+
stableChildrenRef.current = { signature, children };
|
|
152
|
+
}
|
|
153
|
+
const stableChildren = stableChildrenRef.current.children;
|
|
154
|
+
// Fetched child snapshots by id (rendered state) + the settled-ness each id
|
|
155
|
+
// was fetched at (ref — drives the ≤2-fetches policy, never rendered).
|
|
156
|
+
const [executionsById, setExecutionsById] = useState(() => new Map());
|
|
157
|
+
const fetchedSettledRef = useRef(new Map());
|
|
158
|
+
const [isFetching, setIsFetching] = useState(false);
|
|
159
|
+
const [error, setError] = useState(null);
|
|
160
|
+
const [fetchKey, setFetchKey] = useState(0);
|
|
161
|
+
const refetch = useMemo(() => () => {
|
|
162
|
+
fetchedSettledRef.current.clear();
|
|
163
|
+
setFetchKey((k) => k + 1);
|
|
164
|
+
}, []);
|
|
165
|
+
// Reset on execution switch — same identity-boundary treatment as
|
|
166
|
+
// useFetch/useWorkflowExecutionEventStream. `isFetching` must reset too:
|
|
167
|
+
// a fetch in flight for run A is cancelled by the effect cleanup, and if
|
|
168
|
+
// run B needs no fetches the effect bails before ever writing the flag —
|
|
169
|
+
// a stale `true` would report "loading" forever.
|
|
170
|
+
const prevExecutionIdRef = useRef(executionId);
|
|
171
|
+
if (prevExecutionIdRef.current !== executionId) {
|
|
172
|
+
prevExecutionIdRef.current = executionId;
|
|
173
|
+
fetchedSettledRef.current.clear();
|
|
174
|
+
setExecutionsById(new Map());
|
|
175
|
+
setIsFetching(false);
|
|
176
|
+
setError(null);
|
|
177
|
+
}
|
|
178
|
+
useEffect(() => {
|
|
179
|
+
if (!executionId)
|
|
180
|
+
return;
|
|
181
|
+
// A child needs a fetch when never fetched, or fetched live and now
|
|
182
|
+
// settled (the settle fetch picks up the final ledger).
|
|
183
|
+
const toFetch = stableChildren.filter((child) => {
|
|
184
|
+
const fetchedAs = fetchedSettledRef.current.get(child.childExecutionId);
|
|
185
|
+
return fetchedAs === undefined || (fetchedAs === false && child.settled);
|
|
186
|
+
});
|
|
187
|
+
if (toFetch.length === 0)
|
|
188
|
+
return;
|
|
189
|
+
let cancelled = false;
|
|
190
|
+
setIsFetching(true);
|
|
191
|
+
setError(null);
|
|
192
|
+
(async () => {
|
|
193
|
+
const results = await Promise.all(toFetch.map(async (child) => {
|
|
194
|
+
try {
|
|
195
|
+
const execution = await stigmerRef.current.agentExecution.get(child.childExecutionId);
|
|
196
|
+
return { child, execution, error: null };
|
|
197
|
+
}
|
|
198
|
+
catch (err) {
|
|
199
|
+
return { child, execution: null, error: toError(err) };
|
|
200
|
+
}
|
|
201
|
+
}));
|
|
202
|
+
if (cancelled)
|
|
203
|
+
return;
|
|
204
|
+
setExecutionsById((prev) => {
|
|
205
|
+
const next = new Map(prev);
|
|
206
|
+
for (const { child, execution } of results) {
|
|
207
|
+
if (!execution)
|
|
208
|
+
continue;
|
|
209
|
+
next.set(child.childExecutionId, execution);
|
|
210
|
+
fetchedSettledRef.current.set(child.childExecutionId, child.settled);
|
|
211
|
+
}
|
|
212
|
+
return next;
|
|
213
|
+
});
|
|
214
|
+
const firstError = results.find((r) => r.error)?.error ?? null;
|
|
215
|
+
setError(firstError);
|
|
216
|
+
setIsFetching(false);
|
|
217
|
+
})();
|
|
218
|
+
return () => {
|
|
219
|
+
cancelled = true;
|
|
220
|
+
};
|
|
221
|
+
// signature (not stableChildren/taskStates identity) keys the fetch plan.
|
|
222
|
+
}, [executionId, signature, fetchKey]);
|
|
223
|
+
const fileChanges = useMemo(() => {
|
|
224
|
+
const ordered = [];
|
|
225
|
+
for (const child of stableChildren) {
|
|
226
|
+
const execution = executionsById.get(child.childExecutionId);
|
|
227
|
+
if (execution)
|
|
228
|
+
ordered.push(execution);
|
|
229
|
+
}
|
|
230
|
+
return deriveExecutionFileChanges(ordered);
|
|
231
|
+
}, [stableChildren, executionsById]);
|
|
232
|
+
const hasData = executionsById.size > 0;
|
|
233
|
+
const isLoading = isFetching && !hasData;
|
|
234
|
+
const isRefetching = isFetching && hasData;
|
|
235
|
+
return useMemo(() => ({
|
|
236
|
+
fileChanges,
|
|
237
|
+
fileChangeCount: fileChanges.length,
|
|
238
|
+
isLoading,
|
|
239
|
+
isRefetching,
|
|
240
|
+
error,
|
|
241
|
+
refetch,
|
|
242
|
+
}), [fileChanges, isLoading, isRefetching, error, refetch]);
|
|
243
|
+
}
|
|
244
|
+
//# sourceMappingURL=useWorkflowExecutionFileChanges.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWorkflowExecutionFileChanges.js","sourceRoot":"","sources":["../../src/workflow/useWorkflowExecutionFileChanges.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,6EAA6E;AAC7E,gFAAgF;AAChF,EAAE;AACF,6EAA6E;AAC7E,+EAA+E;AAC/E,2EAA2E;AAC3E,mEAAmE;AACnE,6EAA6E;AAC7E,4EAA4E;AAC5E,4EAA4E;AAC5E,yEAAyE;AACzE,wEAAwE;AACxE,2EAA2E;AAC3E,+DAA+D;AAE/D,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAI7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iEAAiE,CAAC;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAoBjD,MAAM,qBAAqB,GAA4C,IAAI,GAAG,CAAC;IAC7E,WAAW;IACX,QAAQ;IACR,SAAS;CACV,CAAC,CAAC;AAEH,MAAM,yBAAyB,GAAoC,IAAI,GAAG,CAAC;IACzE,kBAAkB,CAAC,uBAAuB;IAC1C,kBAAkB,CAAC,oBAAoB;IACvC,kBAAkB,CAAC,qBAAqB;CACzC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,0BAA0B,CACxC,UAAiD,EACjD,aAAkD;IAElD,MAAM,QAAQ,GAAqB,EAAE,CAAC;IACtC,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/B,MAAM,OAAO,GAAqB,EAAE,CAAC;QACrC,KAAK,MAAM,KAAK,IAAI,cAAc,EAAE,CAAC;YACnC,MAAM,SAAS,GAAG,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;YAC7D,IAAI,SAAS;gBAAE,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC;IAErC,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,GAAG,CAAC,CAAC;IACxC,MAAM,SAAS,GAAG,UAAU,IAAI,CAAC,OAAO,CAAC;IACzC,MAAM,YAAY,GAAG,UAAU,IAAI,OAAO,CAAC;IAE3C,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,CAAC;QACL,WAAW;QACX,eAAe,EAAE,WAAW,CAAC,MAAM;QACnC,SAAS;QACT,YAAY;QACZ,KAAK;QACL,OAAO;KACR,CAAC,EACF,CAAC,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,CAAC,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -18,15 +18,6 @@ export interface UseWorkflowExecutionGraphOptions {
|
|
|
18
18
|
* call — eliminating the duplicate gRPC subscription.
|
|
19
19
|
*/
|
|
20
20
|
readonly taskStates?: ReadonlyMap<string, DerivedTaskState>;
|
|
21
|
-
/**
|
|
22
|
-
* Callback invoked once when the hook auto-selects a failed task
|
|
23
|
-
* on a terminal execution. The parent can wire this to its own
|
|
24
|
-
* `setSelectedTaskName` to keep the inspector in sync.
|
|
25
|
-
*
|
|
26
|
-
* Without this, auto-selection only affects the hook's internal
|
|
27
|
-
* `selectedTaskName` state and is invisible to sibling components.
|
|
28
|
-
*/
|
|
29
|
-
readonly onAutoSelectTask?: (taskName: string) => void;
|
|
30
21
|
/**
|
|
31
22
|
* When `true`, non-sentinel nodes are marked `draggable: true` so
|
|
32
23
|
* the parent component can allow ephemeral drag repositioning.
|
|
@@ -43,10 +34,6 @@ export interface UseWorkflowExecutionGraphReturn {
|
|
|
43
34
|
readonly edges: Edge[];
|
|
44
35
|
/** Current execution lifecycle phase. */
|
|
45
36
|
readonly executionPhase: ExecutionPhase | undefined;
|
|
46
|
-
/** Currently selected task name in the graph. */
|
|
47
|
-
readonly selectedTaskName: string | null;
|
|
48
|
-
/** Set the selected task in the graph. */
|
|
49
|
-
readonly setSelectedTaskName: (name: string | null) => void;
|
|
50
37
|
/** `true` while the graph model is being loaded (workflow fetch + parse). */
|
|
51
38
|
readonly isLoading: boolean;
|
|
52
39
|
/** Error from workflow fetch or graph building. */
|
|
@@ -62,7 +49,7 @@ export interface UseWorkflowExecutionGraphReturn {
|
|
|
62
49
|
* the current definition as a fallback but this is an imprecise view.
|
|
63
50
|
*/
|
|
64
51
|
readonly versionResolutionFailed: boolean;
|
|
65
|
-
/** Task states from the event stream (for the
|
|
52
|
+
/** Task states from the event stream (for the graph's status overlays). */
|
|
66
53
|
readonly taskStates: ReadonlyMap<string, DerivedTaskState>;
|
|
67
54
|
}
|
|
68
55
|
/**
|