@stigmer/react 3.1.16 → 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/README.md +16 -1
- 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/provider.d.ts +32 -0
- package/provider.d.ts.map +1 -1
- package/provider.js +25 -1
- package/provider.js.map +1 -1
- 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/__tests__/provider-container.layout.test.tsx +165 -0
- package/src/__tests__/provider-theme-scope.test.tsx +31 -0
- 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/provider.tsx +42 -0
- 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/styles.css +14 -0
- 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 +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,EAAC,iDAAiD,eAAW,QAAQ,aACjF,KAAC,OAAO,IAAC,SAAS,EAAC,mBAAmB,GAAG,gDAErC,CACP,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,yEAAyE;AACzE,8EAA8E;AAE9E,SAAS,gBAAgB,CAAC,EACxB,OAAO,EACP,SAAS,GAIV;IACC,MAAM,QAAQ,GACZ,OAAO,CAAC,MAAM,EAAE,cAAc,EAAE,IAAI,KAAK,UAAU;QACjD,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK;QACrC,CAAC,CAAC,IAAI,CAAC;IACX,MAAM,MAAM,GAAG,QAAQ,EAAE,kBAAkB,IAAI,QAAQ,EAAE,aAAa,IAAI,IAAI,CAAC;IAE/E,OAAO,CACL,eAAK,SAAS,EAAC,WAAW,EAAC,IAAI,EAAC,QAAQ,aACtC,eAAK,SAAS,EAAC,6DAA6D,aAC1E,KAAC,SAAS,IAAC,SAAS,EAAC,qBAAqB,GAAG,eACnC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EACtC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,EAAE,IACxD,EACN,aAAG,SAAS,EAAC,+BAA+B,2CACf,GAAG,EAC9B,eAAM,SAAS,EAAC,6BAA6B,YAC1C,MAAM,IAAI,sBAAsB,GAC5B,EAAC,GAAG,oDAC+B,GAAG,EAC7C,eAAM,SAAS,EAAC,6BAA6B,YAAE,SAAS,GAAQ,SAC9D,IACA,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monochrome Slack mark (the four-lobe glyph) as an inline SVG.
|
|
3
|
+
*
|
|
4
|
+
* Renders in `currentColor` so it follows the surrounding text token —
|
|
5
|
+
* the SDK never hardcodes brand colors (theme-token compliance). Shared
|
|
6
|
+
* by the channel components; not exported from the public barrel.
|
|
7
|
+
*/
|
|
8
|
+
export declare function SlackMarkIcon({ className }: {
|
|
9
|
+
readonly className?: string;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=SlackMarkIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlackMarkIcon.d.ts","sourceRoot":"","sources":["../../src/channel/SlackMarkIcon.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAW3E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* Monochrome Slack mark (the four-lobe glyph) as an inline SVG.
|
|
5
|
+
*
|
|
6
|
+
* Renders in `currentColor` so it follows the surrounding text token —
|
|
7
|
+
* the SDK never hardcodes brand colors (theme-token compliance). Shared
|
|
8
|
+
* by the channel components; not exported from the public barrel.
|
|
9
|
+
*/
|
|
10
|
+
export function SlackMarkIcon({ className }) {
|
|
11
|
+
return (_jsx("svg", { className: className, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: _jsx("path", { d: "M5.04 15.17a2.52 2.52 0 1 1-2.52-2.52h2.52v2.52zM6.31 15.17a2.52 2.52 0 0 1 5.04 0v6.31a2.52 2.52 0 1 1-5.04 0v-6.31zM8.83 5.04a2.52 2.52 0 1 1 2.52-2.52v2.52H8.83zM8.83 6.31a2.52 2.52 0 0 1 0 5.04H2.52a2.52 2.52 0 1 1 0-5.04h6.31zM18.96 8.83a2.52 2.52 0 1 1 2.52 2.52h-2.52V8.83zM17.69 8.83a2.52 2.52 0 0 1-5.04 0V2.52a2.52 2.52 0 1 1 5.04 0v6.31zM15.17 18.96a2.52 2.52 0 1 1-2.52 2.52v-2.52h2.52zM15.17 17.69a2.52 2.52 0 0 1 0-5.04h6.31a2.52 2.52 0 1 1 0 5.04h-6.31z" }) }));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=SlackMarkIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlackMarkIcon.js","sourceRoot":"","sources":["../../src/channel/SlackMarkIcon.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,EAAE,SAAS,EAAmC;IAC1E,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,iBACP,MAAM,YAElB,eAAM,CAAC,EAAC,sdAAsd,GAAG,GAC7d,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monochrome WhatsApp mark (the speech-bubble-with-handset glyph) as an
|
|
3
|
+
* inline SVG.
|
|
4
|
+
*
|
|
5
|
+
* Renders in `currentColor` so it follows the surrounding text token —
|
|
6
|
+
* the SDK never hardcodes brand colors (theme-token compliance). Shared
|
|
7
|
+
* by the channel components; not exported from the public barrel.
|
|
8
|
+
*/
|
|
9
|
+
export declare function WhatsAppMarkIcon({ className }: {
|
|
10
|
+
readonly className?: string;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=WhatsAppMarkIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WhatsAppMarkIcon.d.ts","sourceRoot":"","sources":["../../src/channel/WhatsAppMarkIcon.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAW9E"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* Monochrome WhatsApp mark (the speech-bubble-with-handset glyph) as an
|
|
5
|
+
* inline SVG.
|
|
6
|
+
*
|
|
7
|
+
* Renders in `currentColor` so it follows the surrounding text token —
|
|
8
|
+
* the SDK never hardcodes brand colors (theme-token compliance). Shared
|
|
9
|
+
* by the channel components; not exported from the public barrel.
|
|
10
|
+
*/
|
|
11
|
+
export function WhatsAppMarkIcon({ className }) {
|
|
12
|
+
return (_jsx("svg", { className: className, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: _jsx("path", { d: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z" }) }));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=WhatsAppMarkIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WhatsAppMarkIcon.js","sourceRoot":"","sources":["../../src/channel/WhatsAppMarkIcon.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAAE,SAAS,EAAmC;IAC7E,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,iBACP,MAAM,YAElB,eAAM,CAAC,EAAC,2lCAA2lC,GAAG,GAClmC,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ResourceRef } from "@stigmer/sdk";
|
|
3
|
+
import type { ChannelApp } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/api_pb";
|
|
4
|
+
/**
|
|
5
|
+
* "Connect as whom" for the channel connect dialogs (T04 item 2): the
|
|
6
|
+
* provider's platform app (when the provider has one — Slack) or one of
|
|
7
|
+
* the org's own channel apps (BYO — the bot carries that app's brand,
|
|
8
|
+
* and each app is its own bot identity).
|
|
9
|
+
*
|
|
10
|
+
* Provider variance is prop-shaped, never branched:
|
|
11
|
+
*
|
|
12
|
+
* - `platformOption` present (Slack): "no selection" means the platform
|
|
13
|
+
* app, and with zero registered apps the section states that default
|
|
14
|
+
* plainly instead of a one-option radio group (which would be noise).
|
|
15
|
+
* - `platformOption` absent (WhatsApp, BYO-only per DD-WA-2): an app
|
|
16
|
+
* selection is required, and with zero registered apps the section
|
|
17
|
+
* renders the caller's `emptyBody` — a blocking register-first state,
|
|
18
|
+
* because a channel without an app binding could never install.
|
|
19
|
+
*
|
|
20
|
+
* Both shapes carry the register affordance: a link when the host
|
|
21
|
+
* provided `channelAppsHref`, plain guidance text otherwise.
|
|
22
|
+
*/
|
|
23
|
+
export declare function ServingAppSection({ org, apps, value, onChange, disabled, channelAppsHref, idPrefix, platformOption, appHint, emptyBody, }: {
|
|
24
|
+
readonly org: string;
|
|
25
|
+
/** The org's channel apps, already filtered to this provider. */
|
|
26
|
+
readonly apps: readonly ChannelApp[];
|
|
27
|
+
readonly value: ResourceRef | null;
|
|
28
|
+
readonly onChange: (ref: ResourceRef | null) => void;
|
|
29
|
+
readonly disabled: boolean;
|
|
30
|
+
readonly channelAppsHref?: string;
|
|
31
|
+
/** Option id prefix + radio-group name, unique per dialog (e.g. "stgm-slack-app"). */
|
|
32
|
+
readonly idPrefix: string;
|
|
33
|
+
/**
|
|
34
|
+
* The provider's shared platform app as a selectable option
|
|
35
|
+
* (`value === null`). Omit for BYO-only providers.
|
|
36
|
+
*/
|
|
37
|
+
readonly platformOption?: {
|
|
38
|
+
readonly label: string;
|
|
39
|
+
readonly hint: string;
|
|
40
|
+
};
|
|
41
|
+
/** Hint line under each of the org's own apps. */
|
|
42
|
+
readonly appHint: string;
|
|
43
|
+
/** Section body when the org has no apps for this provider. */
|
|
44
|
+
readonly emptyBody: ReactNode;
|
|
45
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
/**
|
|
47
|
+
* The path from the connect flow to Channel App registration. A link
|
|
48
|
+
* when the host told us where registration lives; otherwise the label
|
|
49
|
+
* plus the console location, so embedded hosts without the route still
|
|
50
|
+
* leave the user oriented. Children are the label ("Register a channel
|
|
51
|
+
* app" / "register a channel app") so each call site reads as a sentence.
|
|
52
|
+
*/
|
|
53
|
+
export declare function RegisterChannelAppAffordance({ channelAppsHref, children, }: {
|
|
54
|
+
readonly channelAppsHref?: string;
|
|
55
|
+
readonly children: ReactNode;
|
|
56
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
//# sourceMappingURL=ServingAppSection.d.ts.map
|
|
@@ -0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AAE;IACD,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B,2CAgBA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@stigmer/theme";
|
|
4
|
+
/**
|
|
5
|
+
* "Connect as whom" for the channel connect dialogs (T04 item 2): the
|
|
6
|
+
* provider's platform app (when the provider has one — Slack) or one of
|
|
7
|
+
* the org's own channel apps (BYO — the bot carries that app's brand,
|
|
8
|
+
* and each app is its own bot identity).
|
|
9
|
+
*
|
|
10
|
+
* Provider variance is prop-shaped, never branched:
|
|
11
|
+
*
|
|
12
|
+
* - `platformOption` present (Slack): "no selection" means the platform
|
|
13
|
+
* app, and with zero registered apps the section states that default
|
|
14
|
+
* plainly instead of a one-option radio group (which would be noise).
|
|
15
|
+
* - `platformOption` absent (WhatsApp, BYO-only per DD-WA-2): an app
|
|
16
|
+
* selection is required, and with zero registered apps the section
|
|
17
|
+
* renders the caller's `emptyBody` — a blocking register-first state,
|
|
18
|
+
* because a channel without an app binding could never install.
|
|
19
|
+
*
|
|
20
|
+
* Both shapes carry the register affordance: a link when the host
|
|
21
|
+
* provided `channelAppsHref`, plain guidance text otherwise.
|
|
22
|
+
*/
|
|
23
|
+
export function ServingAppSection({ org, apps, value, onChange, disabled, channelAppsHref, idPrefix, platformOption, appHint, emptyBody, }) {
|
|
24
|
+
if (apps.length === 0) {
|
|
25
|
+
return (_jsxs("section", { "aria-label": "Connect as", children: [_jsx("h3", { className: "mb-1.5 text-xs font-medium text-foreground", children: "Connect as" }), emptyBody] }));
|
|
26
|
+
}
|
|
27
|
+
return (_jsxs("fieldset", { children: [_jsx("legend", { className: "mb-1.5 block text-xs font-medium text-foreground", children: "Connect as" }), _jsxs("div", { role: "radiogroup", className: "space-y-1.5", children: [platformOption && (_jsx(ServingAppOption, { id: `${idPrefix}-platform`, name: idPrefix, label: platformOption.label, hint: platformOption.hint, checked: value === null, onSelect: () => onChange(null), disabled: disabled })), apps.map((app) => {
|
|
28
|
+
const slug = app.metadata?.slug ?? "";
|
|
29
|
+
const checked = value?.slug === slug;
|
|
30
|
+
return (_jsx(ServingAppOption, { id: `${idPrefix}-${slug}`, name: idPrefix, label: app.metadata?.name ?? slug, hint: appHint, checked: checked, onSelect: () => onChange({ org, slug }), disabled: disabled }, app.metadata?.id ?? slug));
|
|
31
|
+
})] }), _jsxs("p", { className: "mt-1.5 text-xs text-muted-foreground", children: [_jsx(RegisterChannelAppAffordance, { channelAppsHref: channelAppsHref, children: "Register a channel app" }), "."] })] }));
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The path from the connect flow to Channel App registration. A link
|
|
35
|
+
* when the host told us where registration lives; otherwise the label
|
|
36
|
+
* plus the console location, so embedded hosts without the route still
|
|
37
|
+
* leave the user oriented. Children are the label ("Register a channel
|
|
38
|
+
* app" / "register a channel app") so each call site reads as a sentence.
|
|
39
|
+
*/
|
|
40
|
+
export function RegisterChannelAppAffordance({ channelAppsHref, children, }) {
|
|
41
|
+
if (!channelAppsHref) {
|
|
42
|
+
return _jsxs(_Fragment, { children: [children, " under Settings \u2192 Channel Apps"] });
|
|
43
|
+
}
|
|
44
|
+
return (_jsx("a", { href: channelAppsHref, className: cn("font-medium underline underline-offset-2", "hover:no-underline", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded"), children: children }));
|
|
45
|
+
}
|
|
46
|
+
function ServingAppOption({ id, name, label, hint, checked, onSelect, disabled, }) {
|
|
47
|
+
return (_jsxs("label", { htmlFor: id, className: cn("flex cursor-pointer items-start gap-2 rounded-md border px-2.5 py-1.5", checked ? "border-ring bg-accent" : "border-border hover:bg-accent-hover", disabled && "pointer-events-none opacity-50"), children: [_jsx("input", { id: id, type: "radio", name: name, checked: checked, onChange: onSelect, disabled: disabled, className: "mt-0.5 accent-current" }), _jsxs("span", { className: "min-w-0", children: [_jsx("span", { className: "block text-xs font-medium text-foreground", children: label }), _jsx("span", { className: "block text-[0.65rem] text-muted-foreground", children: hint })] })] }));
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=ServingAppSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServingAppSection.js","sourceRoot":"","sources":["../../../src/channel/connect/ServingAppSection.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAIpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAChC,GAAG,EACH,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,cAAc,EACd,OAAO,EACP,SAAS,GAoBV;IACC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,CACL,iCAAoB,YAAY,aAC9B,aAAI,SAAS,EAAC,4CAA4C,2BAErD,EACJ,SAAS,IACF,CACX,CAAC;IACJ,CAAC;IAED,OAAO,CACL,+BACE,iBAAQ,SAAS,EAAC,kDAAkD,2BAE3D,EACT,eAAK,IAAI,EAAC,YAAY,EAAC,SAAS,EAAC,aAAa,aAC3C,cAAc,IAAI,CACjB,KAAC,gBAAgB,IACf,EAAE,EAAE,GAAG,QAAQ,WAAW,EAC1B,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,cAAc,CAAC,KAAK,EAC3B,IAAI,EAAE,cAAc,CAAC,IAAI,EACzB,OAAO,EAAE,KAAK,KAAK,IAAI,EACvB,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAC9B,QAAQ,EAAE,QAAQ,GAClB,CACH,EACA,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;wBAChB,MAAM,IAAI,GAAG,GAA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,IAAI,gCAAgC,CAC7C,aAED,gBACE,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,uBAAuB,GACjC,EACF,gBAAM,SAAS,EAAC,SAAS,aACvB,eAAM,SAAS,EAAC,2CAA2C,YAAE,KAAK,GAAQ,EAC1E,eAAM,SAAS,EAAC,4CAA4C,YAAE,IAAI,GAAQ,IACrE,IACD,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ResourceRef } from "@stigmer/sdk";
|
|
2
|
+
import type { Agent } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb";
|
|
3
|
+
/**
|
|
4
|
+
* Collapsible credential-binding section for the connect dialogs' create
|
|
5
|
+
* mode (the ShareAgentDialog ToolCredentialsSection pattern). Expanded by
|
|
6
|
+
* default when the agent uses MCP tools — for those agents this is
|
|
7
|
+
* essential configuration, not an advanced option: without a binding,
|
|
8
|
+
* every channel message that needs a tool is refused.
|
|
9
|
+
*
|
|
10
|
+
* Provider-agnostic by construction: bindings are agent + environment
|
|
11
|
+
* facts, so both connect dialogs render this section unchanged.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ToolCredentialsSection({ agent, org, value, onChange, disabled, }: {
|
|
14
|
+
readonly agent: Agent;
|
|
15
|
+
readonly org: string;
|
|
16
|
+
readonly value: readonly ResourceRef[];
|
|
17
|
+
readonly onChange: (refs: ResourceRef[]) => void;
|
|
18
|
+
readonly disabled: boolean;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=ToolCredentialsSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolCredentialsSection.d.ts","sourceRoot":"","sources":["../../../src/channel/connect/ToolCredentialsSection.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oDAAoD,CAAC;AAIhF;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,GAAG,EACH,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B,2CAmCA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { cn } from "@stigmer/theme";
|
|
5
|
+
import { ChannelToolCredentials } from "../ChannelToolCredentials.js";
|
|
6
|
+
import { ChevronIcon } from "./icons.js";
|
|
7
|
+
/**
|
|
8
|
+
* Collapsible credential-binding section for the connect dialogs' create
|
|
9
|
+
* mode (the ShareAgentDialog ToolCredentialsSection pattern). Expanded by
|
|
10
|
+
* default when the agent uses MCP tools — for those agents this is
|
|
11
|
+
* essential configuration, not an advanced option: without a binding,
|
|
12
|
+
* every channel message that needs a tool is refused.
|
|
13
|
+
*
|
|
14
|
+
* Provider-agnostic by construction: bindings are agent + environment
|
|
15
|
+
* facts, so both connect dialogs render this section unchanged.
|
|
16
|
+
*/
|
|
17
|
+
export function ToolCredentialsSection({ agent, org, value, onChange, disabled, }) {
|
|
18
|
+
const hasMcpTools = (agent.spec?.mcpServerUsages?.length ?? 0) > 0;
|
|
19
|
+
const [expanded, setExpanded] = useState(hasMcpTools || value.length > 0);
|
|
20
|
+
return (_jsxs("section", { children: [_jsxs("button", { type: "button", onClick: () => setExpanded((v) => !v), "aria-expanded": expanded, className: cn("inline-flex items-center gap-1 text-xs font-medium text-muted-foreground", "hover:text-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded"), children: [_jsx(ChevronIcon, { className: cn("size-3 transition-transform", expanded && "rotate-90") }), "Tool credentials"] }), expanded && (_jsx("div", { className: "mt-2", children: _jsx(ChannelToolCredentials, { agent: agent, org: org, value: value, onChange: onChange, disabled: disabled }) }))] }));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ToolCredentialsSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolCredentialsSection.js","sourceRoot":"","sources":["../../../src/channel/connect/ToolCredentialsSection.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAGpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC;;;;;;;;;GASG;AACH,MAAM,UAAU,sBAAsB,CAAC,EACrC,KAAK,EACL,GAAG,EACH,KAAK,EACL,QAAQ,EACR,QAAQ,GAOT;IACC,MAAM,WAAW,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACnE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,WAAW,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAE1E,OAAO,CACL,8BACE,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,mBACtB,QAAQ,EACvB,SAAS,EAAE,EAAE,CACX,0EAA0E,EAC1E,uBAAuB,EACvB,iFAAiF,CAClF,aAED,KAAC,WAAW,IACV,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,QAAQ,IAAI,WAAW,CAAC,GACrE,wBAEK,EAER,QAAQ,IAAI,CACX,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,sBAAsB,IACrB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,GACE,CACP,IACO,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The plain install-refusal alert: the server's copy rendered verbatim —
|
|
4
|
+
* the server owns that vocabulary. Both connect dialogs fall back to
|
|
5
|
+
* this for any refusal they don't recognize; provider-guided refusals
|
|
6
|
+
* (a known ErrorInfo reason with actionable copy) stay provider-local
|
|
7
|
+
* and reuse {@link RefusalBox} for the chrome.
|
|
8
|
+
*/
|
|
9
|
+
export declare function VerbatimRefusal({ error }: {
|
|
10
|
+
readonly error: Error;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/** The refusal alert chrome, shared by verbatim and guided refusals. */
|
|
13
|
+
export declare function RefusalBox({ children }: {
|
|
14
|
+
readonly children: ReactNode;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=VerbatimRefusal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerbatimRefusal.d.ts","sourceRoot":"","sources":["../../../src/channel/connect/VerbatimRefusal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;CAAE,2CAEnE;AAED,wEAAwE;AACxE,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,2CASxE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { getUserMessage } from "@stigmer/sdk";
|
|
4
|
+
/**
|
|
5
|
+
* The plain install-refusal alert: the server's copy rendered verbatim —
|
|
6
|
+
* the server owns that vocabulary. Both connect dialogs fall back to
|
|
7
|
+
* this for any refusal they don't recognize; provider-guided refusals
|
|
8
|
+
* (a known ErrorInfo reason with actionable copy) stay provider-local
|
|
9
|
+
* and reuse {@link RefusalBox} for the chrome.
|
|
10
|
+
*/
|
|
11
|
+
export function VerbatimRefusal({ error }) {
|
|
12
|
+
return _jsx(RefusalBox, { children: getUserMessage(error) });
|
|
13
|
+
}
|
|
14
|
+
/** The refusal alert chrome, shared by verbatim and guided refusals. */
|
|
15
|
+
export function RefusalBox({ children }) {
|
|
16
|
+
return (_jsx("div", { role: "alert", className: "space-y-1 rounded-md border border-destructive/30 bg-destructive-subtle px-3 py-2 text-xs text-destructive", children: children }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=VerbatimRefusal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerbatimRefusal.js","sourceRoot":"","sources":["../../../src/channel/connect/VerbatimRefusal.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,EAAE,KAAK,EAA6B;IAClE,OAAO,KAAC,UAAU,cAAE,cAAc,CAAC,KAAK,CAAC,GAAc,CAAC;AAC1D,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,UAAU,CAAC,EAAE,QAAQ,EAAoC;IACvE,OAAO,CACL,cACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,4GAA4G,YAErH,QAAQ,GACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inline icons shared by the channel connect dialogs. Package-internal:
|
|
3
|
+
* content-level pieces stay domain-local (the channel-app/internal.tsx
|
|
4
|
+
* convention).
|
|
5
|
+
*/
|
|
6
|
+
export declare function CloseIcon(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function CheckIcon({ className }: {
|
|
8
|
+
readonly className?: string;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function ChevronIcon({ className }: {
|
|
11
|
+
readonly className?: string;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function Spinner({ className }: {
|
|
14
|
+
readonly className?: string;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/channel/connect/icons.tsx"],"names":[],"mappings":"AAIA;;;;GAIG;AAEH,wBAAgB,SAAS,4CAMxB;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAMvE;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAMzE;AAED,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAOrE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@stigmer/theme";
|
|
4
|
+
/**
|
|
5
|
+
* Inline icons shared by the channel connect dialogs. Package-internal:
|
|
6
|
+
* content-level pieces stay domain-local (the channel-app/internal.tsx
|
|
7
|
+
* convention).
|
|
8
|
+
*/
|
|
9
|
+
export function CloseIcon() {
|
|
10
|
+
return (_jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", "aria-hidden": "true", children: _jsx("path", { d: "m3 3 8 8M11 3l-8 8" }) }));
|
|
11
|
+
}
|
|
12
|
+
export function CheckIcon({ className }) {
|
|
13
|
+
return (_jsx("svg", { className: className, viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "m3 8.5 3.5 3.5L13 5" }) }));
|
|
14
|
+
}
|
|
15
|
+
export function ChevronIcon({ className }) {
|
|
16
|
+
return (_jsx("svg", { className: className, viewBox: "0 0 12 12", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "m4.5 2.5 3.5 3.5-3.5 3.5" }) }));
|
|
17
|
+
}
|
|
18
|
+
export function Spinner({ className }) {
|
|
19
|
+
return (_jsxs("svg", { className: cn("animate-spin", className), viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [_jsx("circle", { cx: "8", cy: "8", r: "6.5", stroke: "currentColor", strokeOpacity: "0.25", strokeWidth: "2" }), _jsx("path", { d: "M14.5 8A6.5 6.5 0 0 0 8 1.5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })] }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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AC,MAAM,iBAAa,MAAM,aAC/F,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,KAAK,EAAC,MAAM,EAAC,cAAc,EAAC,aAAa,EAAC,MAAM,EAAC,WAAW,EAAC,GAAG,GAAG,EAC3F,eAAM,CAAC,EAAC,6BAA6B,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAC,aAAa,EAAC,OAAO,GAAG,IAChG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export { useAgentChannelList } from "./useAgentChannelList.js";
|
|
2
|
+
export type { UseAgentChannelListReturn } from "./useAgentChannelList.js";
|
|
3
|
+
export { useOrgAgentChannelList } from "./useOrgAgentChannelList.js";
|
|
4
|
+
export type { UseOrgAgentChannelListReturn } from "./useOrgAgentChannelList.js";
|
|
5
|
+
export { CHANNEL_PROVIDERS, channelProviderOf } from "./providers.js";
|
|
6
|
+
export type { ChannelProviderDescriptor, ChannelProviderId, ChannelInstallStyle, } from "./providers.js";
|
|
7
|
+
export { channelPresentationOf, DEFAULT_CHANNEL_PRESENTATION, } from "./providerPresentation.js";
|
|
8
|
+
export type { ChannelProviderPresentation } from "./providerPresentation.js";
|
|
9
|
+
export { useAgentChannel } from "./useAgentChannel.js";
|
|
10
|
+
export type { UseAgentChannelReturn } from "./useAgentChannel.js";
|
|
11
|
+
export { useSaveAgentChannel, agentChannelToInput } from "./useSaveAgentChannel.js";
|
|
12
|
+
export type { UseSaveAgentChannelReturn } from "./useSaveAgentChannel.js";
|
|
13
|
+
export { useCreateAgentChannel } from "./useCreateAgentChannel.js";
|
|
14
|
+
export type { UseCreateAgentChannelReturn } from "./useCreateAgentChannel.js";
|
|
15
|
+
export { useDeleteAgentChannel } from "./useDeleteAgentChannel.js";
|
|
16
|
+
export type { UseDeleteAgentChannelReturn } from "./useDeleteAgentChannel.js";
|
|
17
|
+
export { useConnectSlackChannel } from "./useConnectSlackChannel.js";
|
|
18
|
+
export type { UseConnectSlackChannelReturn, SlackConnectPhase, } from "./useConnectSlackChannel.js";
|
|
19
|
+
export { useInstallChannel } from "./useInstallChannel.js";
|
|
20
|
+
export type { UseInstallChannelReturn, InstallChannelPhase, } from "./useInstallChannel.js";
|
|
21
|
+
export { useChannelToolReadiness } from "./useChannelToolReadiness.js";
|
|
22
|
+
export { useChannelSessions } from "./useChannelSessions.js";
|
|
23
|
+
export type { UseChannelSessionsReturn } from "./useChannelSessions.js";
|
|
24
|
+
export { AgentChannelsPanel } from "./AgentChannelsPanel.js";
|
|
25
|
+
export type { AgentChannelsPanelProps } from "./AgentChannelsPanel.js";
|
|
26
|
+
export { ConnectSlackDialog } from "./ConnectSlackDialog.js";
|
|
27
|
+
export type { ConnectSlackDialogProps } from "./ConnectSlackDialog.js";
|
|
28
|
+
export { ConnectWhatsAppDialog } from "./ConnectWhatsAppDialog.js";
|
|
29
|
+
export type { ConnectWhatsAppDialogProps } from "./ConnectWhatsAppDialog.js";
|
|
30
|
+
export { ChannelCredentialsDialog } from "./ChannelCredentialsDialog.js";
|
|
31
|
+
export type { ChannelCredentialsDialogProps } from "./ChannelCredentialsDialog.js";
|
|
32
|
+
export { ChannelToolCredentials } from "./ChannelToolCredentials.js";
|
|
33
|
+
export type { ChannelToolCredentialsProps } from "./ChannelToolCredentials.js";
|
|
34
|
+
export { ChannelConversationsDialog } from "./ChannelConversationsDialog.js";
|
|
35
|
+
export type { ChannelConversationsDialogProps } from "./ChannelConversationsDialog.js";
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/channel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,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;AAC7D,YAAY,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,YAAY,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,YAAY,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAEnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,YAAY,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,YAAY,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC"}
|
package/channel/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { useAgentChannelList } from "./useAgentChannelList.js";
|
|
2
|
+
export { useOrgAgentChannelList } from "./useOrgAgentChannelList.js";
|
|
3
|
+
export { CHANNEL_PROVIDERS, channelProviderOf } from "./providers.js";
|
|
4
|
+
export { channelPresentationOf, DEFAULT_CHANNEL_PRESENTATION, } from "./providerPresentation.js";
|
|
5
|
+
export { useAgentChannel } from "./useAgentChannel.js";
|
|
6
|
+
export { useSaveAgentChannel, agentChannelToInput } from "./useSaveAgentChannel.js";
|
|
7
|
+
export { useCreateAgentChannel } from "./useCreateAgentChannel.js";
|
|
8
|
+
export { useDeleteAgentChannel } from "./useDeleteAgentChannel.js";
|
|
9
|
+
export { useConnectSlackChannel } from "./useConnectSlackChannel.js";
|
|
10
|
+
export { useInstallChannel } from "./useInstallChannel.js";
|
|
11
|
+
export { useChannelToolReadiness } from "./useChannelToolReadiness.js";
|
|
12
|
+
export { useChannelSessions } from "./useChannelSessions.js";
|
|
13
|
+
export { AgentChannelsPanel } from "./AgentChannelsPanel.js";
|
|
14
|
+
export { ConnectSlackDialog } from "./ConnectSlackDialog.js";
|
|
15
|
+
export { ConnectWhatsAppDialog } from "./ConnectWhatsAppDialog.js";
|
|
16
|
+
export { ChannelCredentialsDialog } from "./ChannelCredentialsDialog.js";
|
|
17
|
+
export { ChannelToolCredentials } from "./ChannelToolCredentials.js";
|
|
18
|
+
export { ChannelConversationsDialog } from "./ChannelConversationsDialog.js";
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/channel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAOtE,OAAO,EACL,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAMrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAM3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { AgentChannel } from "@stigmer/protos/ai/stigmer/agentic/agentchannel/v1/api_pb";
|
|
2
|
+
import type { ChannelProviderId } from "./providers.js";
|
|
3
|
+
/**
|
|
4
|
+
* Per-provider copy for the channel management surfaces.
|
|
5
|
+
*
|
|
6
|
+
* Split from {@link ChannelProviderDescriptor} deliberately: the registry
|
|
7
|
+
* carries a provider's *identity* (id, label, icon, install style) —
|
|
8
|
+
* stable facts every surface needs — while this module carries the
|
|
9
|
+
* *prose* the channels panel renders per provider. Keeping prose out of
|
|
10
|
+
* the descriptor keeps the registry declaration-shaped, and keeping it
|
|
11
|
+
* here keeps `AgentChannelsPanel` free of provider `if` branches.
|
|
12
|
+
*/
|
|
13
|
+
export interface ChannelProviderPresentation {
|
|
14
|
+
readonly id: ChannelProviderId;
|
|
15
|
+
/**
|
|
16
|
+
* One-line install facts under the channel name (the card's second
|
|
17
|
+
* line): where the channel is installed, since when, or why it isn't
|
|
18
|
+
* serving yet.
|
|
19
|
+
*/
|
|
20
|
+
readonly describeChannel: (channel: AgentChannel) => string;
|
|
21
|
+
/**
|
|
22
|
+
* The card's serving-app line: which provider app serves the channel
|
|
23
|
+
* and how members reach the agent through it. `servingAppName` is the
|
|
24
|
+
* resolved ChannelApp name, or `null` for the platform app (Slack
|
|
25
|
+
* only — WhatsApp is BYO-only and always has one).
|
|
26
|
+
*/
|
|
27
|
+
readonly servingLine: (servingAppName: string | null) => string;
|
|
28
|
+
/** Body copy of the disconnect confirmation prompt. */
|
|
29
|
+
readonly disconnectDescription: (channelName: string) => string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Fallback presentation for provider cases this UI doesn't know yet (a
|
|
33
|
+
* newer server) — the first registered provider, mirroring the panel's
|
|
34
|
+
* icon fallback to `CHANNEL_PROVIDERS[0]` so an unknown provider renders
|
|
35
|
+
* consistently rather than half-known.
|
|
36
|
+
*/
|
|
37
|
+
export declare const DEFAULT_CHANNEL_PRESENTATION: ChannelProviderPresentation;
|
|
38
|
+
/**
|
|
39
|
+
* Resolve a provider's presentation from a `provider_config` oneof case
|
|
40
|
+
* name. Returns `null` for unknown cases — callers fall back the same
|
|
41
|
+
* way they do for {@link channelProviderOf}.
|
|
42
|
+
*/
|
|
43
|
+
export declare function channelPresentationOf(providerCase: string | undefined): ChannelProviderPresentation | null;
|
|
44
|
+
//# sourceMappingURL=providerPresentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerPresentation.d.ts","sourceRoot":"","sources":["../../src/channel/providerPresentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2DAA2D,CAAC;AAE9F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD;;;;;;;;;GASG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,EAAE,EAAE,iBAAiB,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;IAC5D;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC;IAChE,uDAAuD;IACvD,QAAQ,CAAC,qBAAqB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;CACjE;AAwFD;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,EAAE,2BACxB,CAAC;AAEpB;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,2BAA2B,GAAG,IAAI,CAEpC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { timestampDate } from "@bufbuild/protobuf/wkt";
|
|
2
|
+
import { AgentChannelInstallState } from "@stigmer/protos/ai/stigmer/agentic/agentchannel/v1/status_pb";
|
|
3
|
+
const slackPresentation = {
|
|
4
|
+
id: "slack",
|
|
5
|
+
describeChannel: (channel) => {
|
|
6
|
+
const slack = channel.status?.providerStatus?.case === "slack"
|
|
7
|
+
? channel.status.providerStatus.value
|
|
8
|
+
: null;
|
|
9
|
+
const installedAt = slack?.installedAt
|
|
10
|
+
? timestampDate(slack.installedAt)
|
|
11
|
+
: null;
|
|
12
|
+
switch (installStateOf(channel)) {
|
|
13
|
+
case AgentChannelInstallState.installed:
|
|
14
|
+
return [
|
|
15
|
+
slack?.teamName ? `Workspace: ${slack.teamName}` : "Workspace connected",
|
|
16
|
+
installedAt ? `since ${formatDate(installedAt)}` : null,
|
|
17
|
+
]
|
|
18
|
+
.filter(Boolean)
|
|
19
|
+
.join(" \u00b7 ");
|
|
20
|
+
case AgentChannelInstallState.revoked:
|
|
21
|
+
return slack?.teamName
|
|
22
|
+
? `The Slack app was removed from ${slack.teamName} — reconnect to resume.`
|
|
23
|
+
: "The Slack app was removed from the workspace — reconnect to resume.";
|
|
24
|
+
default:
|
|
25
|
+
return "The Slack install hasn't been completed yet.";
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
servingLine: (servingAppName) => servingAppName
|
|
29
|
+
? `Serving app: ${servingAppName} (your app) — members @mention ${servingAppName}`
|
|
30
|
+
: "Serving app: Stigmer — members @mention Stigmer",
|
|
31
|
+
disconnectDescription: (channelName) => `"${channelName}" stops serving immediately and its stored Slack ` +
|
|
32
|
+
"install (including credentials) is removed. Members of the " +
|
|
33
|
+
"workspace can no longer reach the agent. To pause without " +
|
|
34
|
+
"disconnecting, turn the channel off instead.",
|
|
35
|
+
};
|
|
36
|
+
const whatsappPresentation = {
|
|
37
|
+
id: "whatsapp",
|
|
38
|
+
describeChannel: (channel) => {
|
|
39
|
+
const whatsapp = channel.status?.providerStatus?.case === "whatsapp"
|
|
40
|
+
? channel.status.providerStatus.value
|
|
41
|
+
: null;
|
|
42
|
+
const installedAt = whatsapp?.installedAt
|
|
43
|
+
? timestampDate(whatsapp.installedAt)
|
|
44
|
+
: null;
|
|
45
|
+
switch (installStateOf(channel)) {
|
|
46
|
+
case AgentChannelInstallState.installed: {
|
|
47
|
+
const number = whatsapp?.displayPhoneNumber || whatsapp?.phoneNumberId || null;
|
|
48
|
+
return [
|
|
49
|
+
number ? `Number: ${number}` : "Number connected",
|
|
50
|
+
whatsapp?.verifiedName ? `(${whatsapp.verifiedName})` : null,
|
|
51
|
+
installedAt ? `since ${formatDate(installedAt)}` : null,
|
|
52
|
+
]
|
|
53
|
+
.filter(Boolean)
|
|
54
|
+
.join(" \u00b7 ");
|
|
55
|
+
}
|
|
56
|
+
// Meta emits no revocation events (DD-010), so WhatsApp channels
|
|
57
|
+
// never transition to revoked today — handled anyway so a future
|
|
58
|
+
// server that learns to observe revocation degrades sensibly.
|
|
59
|
+
case AgentChannelInstallState.revoked:
|
|
60
|
+
return "The WhatsApp connection was revoked — reconnect to resume.";
|
|
61
|
+
default:
|
|
62
|
+
return "The WhatsApp connection hasn't been completed yet.";
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
servingLine: (servingAppName) => servingAppName
|
|
66
|
+
? `Serving app: ${servingAppName} (your Meta app) — people message the connected number`
|
|
67
|
+
: "Serving app: your Meta app — people message the connected number",
|
|
68
|
+
disconnectDescription: (channelName) =>
|
|
69
|
+
// No "(including credentials)" arm: WhatsApp credentials live on the
|
|
70
|
+
// shared ChannelApp (DD-WA-3) and outlive any one channel.
|
|
71
|
+
`"${channelName}" stops serving immediately and its WhatsApp ` +
|
|
72
|
+
"number binding is removed. People can no longer reach the agent " +
|
|
73
|
+
"on that number. To pause without disconnecting, turn the channel " +
|
|
74
|
+
"off instead.",
|
|
75
|
+
};
|
|
76
|
+
const PRESENTATIONS = [
|
|
77
|
+
slackPresentation,
|
|
78
|
+
whatsappPresentation,
|
|
79
|
+
];
|
|
80
|
+
/**
|
|
81
|
+
* Fallback presentation for provider cases this UI doesn't know yet (a
|
|
82
|
+
* newer server) — the first registered provider, mirroring the panel's
|
|
83
|
+
* icon fallback to `CHANNEL_PROVIDERS[0]` so an unknown provider renders
|
|
84
|
+
* consistently rather than half-known.
|
|
85
|
+
*/
|
|
86
|
+
export const DEFAULT_CHANNEL_PRESENTATION = slackPresentation;
|
|
87
|
+
/**
|
|
88
|
+
* Resolve a provider's presentation from a `provider_config` oneof case
|
|
89
|
+
* name. Returns `null` for unknown cases — callers fall back the same
|
|
90
|
+
* way they do for {@link channelProviderOf}.
|
|
91
|
+
*/
|
|
92
|
+
export function channelPresentationOf(providerCase) {
|
|
93
|
+
return PRESENTATIONS.find((p) => p.id === providerCase) ?? null;
|
|
94
|
+
}
|
|
95
|
+
function installStateOf(channel) {
|
|
96
|
+
return (channel.status?.installState ??
|
|
97
|
+
AgentChannelInstallState.agent_channel_install_state_unspecified);
|
|
98
|
+
}
|
|
99
|
+
function formatDate(date) {
|
|
100
|
+
return date.toLocaleDateString(undefined, {
|
|
101
|
+
year: "numeric",
|
|
102
|
+
month: "short",
|
|
103
|
+
day: "numeric",
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=providerPresentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerPresentation.js","sourceRoot":"","sources":["../../src/channel/providerPresentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AAgCxG,MAAM,iBAAiB,GAAgC;IACrD,EAAE,EAAE,OAAO;IACX,eAAe,EAAE,CAAC,OAAO,EAAE,EAAE;QAC3B,MAAM,KAAK,G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