@stigmer/react 3.9.0 → 3.11.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/access/ManageAccessButton.js +1 -1
- package/access/ManageAccessButton.js.map +1 -1
- package/access/ManageAccessDialog.js +3 -3
- package/access/ManageAccessDialog.js.map +1 -1
- package/action-menu/ActionMenu.js +3 -3
- package/action-menu/ActionMenu.js.map +1 -1
- package/activity/useRecentActivity.d.ts +6 -1
- package/activity/useRecentActivity.d.ts.map +1 -1
- package/activity/useRecentActivity.js +6 -1
- package/activity/useRecentActivity.js.map +1 -1
- package/agent/AgentDetailView.js +21 -21
- package/agent/AgentDetailView.js.map +1 -1
- package/agent/AgentPicker.js +8 -8
- package/agent/AgentPicker.js.map +1 -1
- package/agent/steps/CapabilitiesStep.js +3 -3
- package/agent/steps/CapabilitiesStep.js.map +1 -1
- package/agent/steps/IdentityStep.js +6 -6
- package/agent/steps/IdentityStep.js.map +1 -1
- package/agent/steps/ReviewStep.js +3 -3
- package/agent/steps/ReviewStep.js.map +1 -1
- package/agent-instance/AgentInstanceDetailPanel.js +2 -2
- package/agent-instance/AgentInstanceDetailPanel.js.map +1 -1
- package/agent-instance/AgentInstanceList.js +4 -4
- package/agent-instance/AgentInstanceList.js.map +1 -1
- package/agent-instance/CreateAgentInstanceDialog.js +1 -1
- package/agent-instance/CreateAgentInstanceDialog.js.map +1 -1
- package/api-key/ApiKeyCreatedAlert.js +1 -1
- package/api-key/ApiKeyCreatedAlert.js.map +1 -1
- package/api-key/ApiKeyListPanel.js +9 -9
- package/api-key/ApiKeyListPanel.js.map +1 -1
- package/api-key/CreateApiKeyForm.js +5 -5
- package/api-key/CreateApiKeyForm.js.map +1 -1
- package/attachment/AttachmentChipList.d.ts +16 -4
- package/attachment/AttachmentChipList.d.ts.map +1 -1
- package/attachment/AttachmentChipList.js +103 -37
- package/attachment/AttachmentChipList.js.map +1 -1
- package/attachment/AttachmentImageLightbox.d.ts +39 -0
- package/attachment/AttachmentImageLightbox.d.ts.map +1 -0
- package/attachment/AttachmentImageLightbox.js +57 -0
- package/attachment/AttachmentImageLightbox.js.map +1 -0
- package/attachment/attachment-utils.d.ts +8 -5
- package/attachment/attachment-utils.d.ts.map +1 -1
- package/attachment/attachment-utils.js +8 -5
- package/attachment/attachment-utils.js.map +1 -1
- package/attachment/useObjectUrl.d.ts +15 -0
- package/attachment/useObjectUrl.d.ts.map +1 -0
- package/attachment/useObjectUrl.js +25 -0
- package/attachment/useObjectUrl.js.map +1 -0
- package/billing/AutoRechargeCard.js +2 -2
- package/billing/AutoRechargeCard.js.map +1 -1
- package/billing/BillingSection.js +6 -6
- package/billing/BillingSection.js.map +1 -1
- package/billing/CreditBalanceCard.js +4 -4
- package/billing/CreditBalanceCard.js.map +1 -1
- package/billing/CreditLedgerTable.js +13 -13
- package/billing/CreditLedgerTable.js.map +1 -1
- package/billing/CreditPackGrid.js +2 -2
- package/billing/CreditPackGrid.js.map +1 -1
- package/billing/LowBalanceBanner.js +4 -4
- package/billing/LowBalanceBanner.js.map +1 -1
- package/billing/PaymentMethodCard.js +2 -2
- package/billing/PaymentMethodCard.js.map +1 -1
- package/button/Button.js +7 -7
- package/button/Button.js.map +1 -1
- package/channel/AgentChannelsPanel.js +12 -12
- package/channel/AgentChannelsPanel.js.map +1 -1
- package/channel/ChannelConversationsDialog.js +6 -6
- package/channel/ChannelConversationsDialog.js.map +1 -1
- package/channel/ChannelCredentialsDialog.js +2 -2
- package/channel/ChannelCredentialsDialog.js.map +1 -1
- package/channel/ChannelTemplatesDialog.js +13 -13
- package/channel/ChannelTemplatesDialog.js.map +1 -1
- package/channel/ChannelToolCredentials.js +3 -3
- package/channel/ChannelToolCredentials.js.map +1 -1
- package/channel/ConnectSlackDialog.js +13 -13
- package/channel/ConnectSlackDialog.js.map +1 -1
- package/channel/ConnectWhatsAppDialog.js +8 -8
- package/channel/ConnectWhatsAppDialog.js.map +1 -1
- package/channel/connect/ServingAppSection.js +5 -5
- package/channel/connect/ServingAppSection.js.map +1 -1
- package/channel/connect/ToolCredentialsSection.js +1 -1
- package/channel/connect/ToolCredentialsSection.js.map +1 -1
- package/channel/connect/VerbatimRefusal.js +1 -1
- package/channel/connect/VerbatimRefusal.js.map +1 -1
- package/channel/connect/icons.js +1 -1
- package/channel/connect/icons.js.map +1 -1
- package/channel-app/ChannelAppDetailPanel.js +3 -3
- package/channel-app/ChannelAppDetailPanel.js.map +1 -1
- package/channel-app/ChannelAppListPanel.js +5 -5
- package/channel-app/ChannelAppListPanel.js.map +1 -1
- package/channel-app/CreateChannelAppForm.js +6 -6
- package/channel-app/CreateChannelAppForm.js.map +1 -1
- package/channel-app/internal.js +7 -7
- package/channel-app/internal.js.map +1 -1
- package/composer/ComposerToolbar.js +4 -4
- package/composer/ComposerToolbar.js.map +1 -1
- package/composer/ConfigureMenu.js +4 -4
- package/composer/ConfigureMenu.js.map +1 -1
- package/composer/ContextChip.js +4 -4
- package/composer/ContextChip.js.map +1 -1
- package/composer/ContextPopover.js +4 -4
- package/composer/ContextPopover.js.map +1 -1
- package/composer/InteractionModePicker.js +5 -5
- package/composer/InteractionModePicker.js.map +1 -1
- package/composer/SessionComposer.js +8 -8
- package/composer/SessionComposer.js.map +1 -1
- package/composer/icons.js +3 -3
- package/composer/icons.js.map +1 -1
- package/conversation/ConversationAttentionBanner.js +2 -2
- package/conversation/ConversationAttentionBanner.js.map +1 -1
- package/conversation/ConversationComposer.js +2 -2
- package/conversation/ConversationComposer.js.map +1 -1
- package/conversation/ConversationControlBanner.js +5 -5
- package/conversation/ConversationControlBanner.js.map +1 -1
- package/conversation/ConversationListPane.js +12 -12
- package/conversation/ConversationListPane.js.map +1 -1
- package/conversation/ConversationMediaAttachment.d.ts +45 -0
- package/conversation/ConversationMediaAttachment.d.ts.map +1 -0
- package/conversation/ConversationMediaAttachment.js +153 -0
- package/conversation/ConversationMediaAttachment.js.map +1 -0
- package/conversation/ConversationTimelineView.d.ts +18 -1
- package/conversation/ConversationTimelineView.d.ts.map +1 -1
- package/conversation/ConversationTimelineView.js +24 -15
- package/conversation/ConversationTimelineView.js.map +1 -1
- package/conversation/ConversationsWorkbench.d.ts.map +1 -1
- package/conversation/ConversationsWorkbench.js +3 -3
- package/conversation/ConversationsWorkbench.js.map +1 -1
- package/conversation/conversationPresentation.d.ts +10 -3
- package/conversation/conversationPresentation.d.ts.map +1 -1
- package/conversation/conversationPresentation.js +10 -3
- package/conversation/conversationPresentation.js.map +1 -1
- package/conversation/index.d.ts +2 -0
- package/conversation/index.d.ts.map +1 -1
- package/conversation/index.js +1 -0
- package/conversation/index.js.map +1 -1
- package/conversation/useConversationMediaUrl.d.ts +65 -0
- package/conversation/useConversationMediaUrl.d.ts.map +1 -0
- package/conversation/useConversationMediaUrl.js +61 -0
- package/conversation/useConversationMediaUrl.js.map +1 -0
- package/cursor-accounts/CursorAccountEditor.js +1 -1
- package/cursor-accounts/CursorAccountEditor.js.map +1 -1
- package/cursor-accounts/CursorAccountsAccessNotice.js +1 -1
- package/cursor-accounts/CursorAccountsAccessNotice.js.map +1 -1
- package/cursor-accounts/CursorAccountsConsole.js +9 -9
- package/cursor-accounts/CursorAccountsConsole.js.map +1 -1
- package/cursor-accounts/MemberCoverageTable.js +7 -7
- package/cursor-accounts/MemberCoverageTable.js.map +1 -1
- package/cursor-accounts/MemberKeysPanel.js +3 -3
- package/cursor-accounts/MemberKeysPanel.js.map +1 -1
- package/cursor-accounts/badges.js +1 -1
- package/cursor-accounts/badges.js.map +1 -1
- package/dashboard/DashboardFailedRuns.js +4 -4
- package/dashboard/DashboardFailedRuns.js.map +1 -1
- package/dashboard/DashboardKPICards.js +7 -7
- package/dashboard/DashboardKPICards.js.map +1 -1
- package/dashboard/OperationalDashboard.js +1 -1
- package/dashboard/OperationalDashboard.js.map +1 -1
- package/datastore/CollectionRecordsBrowser.js +10 -10
- package/datastore/CollectionRecordsBrowser.js.map +1 -1
- package/datastore/CollectionSchemaView.js +4 -4
- package/datastore/CollectionSchemaView.js.map +1 -1
- package/datastore/DatastoreDetailView.js +4 -4
- package/datastore/DatastoreDetailView.js.map +1 -1
- package/datastore/DatastoreSyncReport.js +1 -1
- package/datastore/DatastoreSyncReport.js.map +1 -1
- package/datastore/DeleteDatastoreDialog.js +1 -1
- package/datastore/DeleteDatastoreDialog.js.map +1 -1
- package/datastore/FieldValueControl.js +2 -2
- package/datastore/FieldValueControl.js.map +1 -1
- package/datastore/RecordFilterBuilder.js +4 -4
- package/datastore/RecordFilterBuilder.js.map +1 -1
- package/datastore/RecordFormPanel.js +5 -5
- package/datastore/RecordFormPanel.js.map +1 -1
- package/dependency-graph/DependencyGraph.js +1 -1
- package/dependency-graph/DependencyGraph.js.map +1 -1
- package/dependency-graph/DependencyTreeNode.js +8 -8
- package/dependency-graph/DependencyTreeNode.js.map +1 -1
- package/empty-state/EmptyState.js +3 -3
- package/empty-state/EmptyState.js.map +1 -1
- package/empty-state/useEmptyState.js +1 -1
- package/empty-state/useEmptyState.js.map +1 -1
- package/environment/CreateEnvironmentForm.js +2 -2
- package/environment/CreateEnvironmentForm.js.map +1 -1
- package/environment/EnvVarForm.js +4 -4
- package/environment/EnvVarForm.js.map +1 -1
- package/environment/EnvironmentListPanel.js +9 -9
- package/environment/EnvironmentListPanel.js.map +1 -1
- package/environment/EnvironmentPicker.js +4 -4
- package/environment/EnvironmentPicker.js.map +1 -1
- package/environment/EnvironmentVariableEditor.js +17 -17
- package/environment/EnvironmentVariableEditor.js.map +1 -1
- package/error/ErrorMessage.js +1 -1
- package/error/ErrorMessage.js.map +1 -1
- package/error/SecretFlowErrorGuide.js +1 -1
- package/error/SecretFlowErrorGuide.js.map +1 -1
- package/execution/ApprovalCard.js +8 -8
- package/execution/ApprovalCard.js.map +1 -1
- package/execution/ArtifactApplyButton.js +4 -4
- package/execution/ArtifactApplyButton.js.map +1 -1
- package/execution/ArtifactContentBody.js +3 -3
- package/execution/ArtifactContentBody.js.map +1 -1
- package/execution/ArtifactContentRenderer.js +19 -19
- package/execution/ArtifactContentRenderer.js.map +1 -1
- package/execution/ArtifactDocument.js +10 -10
- package/execution/ArtifactDocument.js.map +1 -1
- package/execution/ArtifactFileContent.js +4 -4
- package/execution/ArtifactFileContent.js.map +1 -1
- package/execution/ArtifactPreviewModal.js +11 -11
- package/execution/ArtifactPreviewModal.js.map +1 -1
- package/execution/ArtifactRowView.js +2 -2
- package/execution/ArtifactRowView.js.map +1 -1
- package/execution/ArtifactsWidget.js +1 -1
- package/execution/ArtifactsWidget.js.map +1 -1
- package/execution/ContextGauge.js +9 -9
- package/execution/ContextGauge.js.map +1 -1
- package/execution/EmptyChangeNotice.js +1 -1
- package/execution/EmptyChangeNotice.js.map +1 -1
- package/execution/ExecutionPhaseBadge.js +10 -10
- package/execution/ExecutionPhaseBadge.js.map +1 -1
- package/execution/ExecutionProgress.js +1 -1
- package/execution/ExecutionProgress.js.map +1 -1
- package/execution/FileChangeProgressBar.js +3 -3
- package/execution/FileChangeProgressBar.js.map +1 -1
- package/execution/FileChangesView.js +5 -5
- package/execution/FileChangesView.js.map +1 -1
- package/execution/FilePathLink.js +6 -6
- package/execution/FilePathLink.js.map +1 -1
- package/execution/FileReviewAtoms.js +7 -7
- package/execution/FileReviewAtoms.js.map +1 -1
- package/execution/FileReviewCard.js +18 -18
- package/execution/FileReviewCard.js.map +1 -1
- package/execution/FileReviewDock.js +1 -1
- package/execution/FileReviewDock.js.map +1 -1
- package/execution/FollowUpInput.js +3 -3
- package/execution/FollowUpInput.js.map +1 -1
- package/execution/InteractionModeBadge.js +1 -1
- package/execution/InteractionModeBadge.js.map +1 -1
- package/execution/McpToolDetail.js +12 -12
- package/execution/McpToolDetail.js.map +1 -1
- package/execution/MessageAttachments.d.ts +52 -0
- package/execution/MessageAttachments.d.ts.map +1 -0
- package/execution/MessageAttachments.js +142 -0
- package/execution/MessageAttachments.js.map +1 -0
- package/execution/MessageEntry.d.ts +18 -0
- package/execution/MessageEntry.d.ts.map +1 -1
- package/execution/MessageEntry.js +12 -11
- package/execution/MessageEntry.js.map +1 -1
- package/execution/MessageThread.d.ts +15 -2
- package/execution/MessageThread.d.ts.map +1 -1
- package/execution/MessageThread.js +34 -17
- package/execution/MessageThread.js.map +1 -1
- package/execution/PlanArtifactCard.js +8 -8
- package/execution/PlanArtifactCard.js.map +1 -1
- package/execution/PlanCompletionCard.js +2 -2
- package/execution/PlanCompletionCard.js.map +1 -1
- package/execution/PlanDocumentMessage.js +2 -2
- package/execution/PlanDocumentMessage.js.map +1 -1
- package/execution/PlanStreamingCard.js +3 -3
- package/execution/PlanStreamingCard.js.map +1 -1
- package/execution/ResultView.js +17 -17
- package/execution/ResultView.js.map +1 -1
- package/execution/SessionVariablesInput.js +6 -6
- package/execution/SessionVariablesInput.js.map +1 -1
- package/execution/SetupProgress.js +2 -2
- package/execution/SetupProgress.js.map +1 -1
- package/execution/SubAgentSection.js +19 -19
- package/execution/SubAgentSection.js.map +1 -1
- package/execution/SummarizationBadge.js +3 -3
- package/execution/SummarizationBadge.js.map +1 -1
- package/execution/SummarizationCard.js +2 -2
- package/execution/SummarizationCard.js.map +1 -1
- package/execution/TerminalSession.js +2 -2
- package/execution/TerminalSession.js.map +1 -1
- package/execution/ThreadSkeleton.js +1 -1
- package/execution/ThreadSkeleton.js.map +1 -1
- package/execution/TodoCard.js +3 -3
- package/execution/TodoCard.js.map +1 -1
- package/execution/TodoList.js +8 -8
- package/execution/TodoList.js.map +1 -1
- package/execution/ToolArgsView.js +4 -4
- package/execution/ToolArgsView.js.map +1 -1
- package/execution/ToolCallDetail.js +4 -4
- package/execution/ToolCallDetail.js.map +1 -1
- package/execution/ToolCallGroup.js +1 -1
- package/execution/ToolCallGroup.js.map +1 -1
- package/execution/ToolCallItem.js +16 -16
- package/execution/ToolCallItem.js.map +1 -1
- package/execution/ToolRunGroup.js +9 -9
- package/execution/ToolRunGroup.js.map +1 -1
- package/execution/UsageWidget.js +3 -3
- package/execution/UsageWidget.js.map +1 -1
- package/execution/WriteBackCard.js +16 -16
- package/execution/WriteBackCard.js.map +1 -1
- package/execution/WriteBacksWidget.js +1 -1
- package/execution/WriteBacksWidget.js.map +1 -1
- package/execution/index.d.ts +2 -0
- package/execution/index.d.ts.map +1 -1
- package/execution/index.js +1 -0
- package/execution/index.js.map +1 -1
- package/execution/tool-rendering-primitives.js +5 -5
- package/execution/tool-rendering-primitives.js.map +1 -1
- package/feedback/StigmerToaster.d.ts.map +1 -1
- package/feedback/StigmerToaster.js +9 -5
- package/feedback/StigmerToaster.js.map +1 -1
- package/file-reference/FileReferenceChipList.js +3 -3
- package/file-reference/FileReferenceChipList.js.map +1 -1
- package/github/GitHubRepoPicker.js +26 -26
- package/github/GitHubRepoPicker.js.map +1 -1
- package/github/decodeGitHubContent.d.ts +10 -5
- package/github/decodeGitHubContent.d.ts.map +1 -1
- package/github/decodeGitHubContent.js +21 -7
- package/github/decodeGitHubContent.js.map +1 -1
- package/github/useGitHubFileReader.d.ts.map +1 -1
- package/github/useGitHubFileReader.js +5 -5
- package/github/useGitHubFileReader.js.map +1 -1
- package/iam-policy/GrantAccessForm.js +2 -2
- package/iam-policy/GrantAccessForm.js.map +1 -1
- package/iam-policy/OrgMembersPanel.js +11 -11
- package/iam-policy/OrgMembersPanel.js.map +1 -1
- package/iam-policy/PeopleWithAccess.js +4 -4
- package/iam-policy/PeopleWithAccess.js.map +1 -1
- package/iam-policy/PrincipalPicker.js +6 -6
- package/iam-policy/PrincipalPicker.js.map +1 -1
- package/iam-policy/ProviderBadge.js +1 -1
- package/iam-policy/ProviderBadge.js.map +1 -1
- package/iam-policy/RoleSelector.js +4 -4
- package/iam-policy/RoleSelector.js.map +1 -1
- package/iam-policy/SharePanel.js +1 -1
- package/iam-policy/SharePanel.js.map +1 -1
- package/identity-provider/CreateIdentityProviderForm.js +6 -6
- package/identity-provider/CreateIdentityProviderForm.js.map +1 -1
- package/identity-provider/IdentityProviderDetailPanel.js +11 -11
- package/identity-provider/IdentityProviderDetailPanel.js.map +1 -1
- package/identity-provider/IdentityProviderListPanel.js +8 -8
- package/identity-provider/IdentityProviderListPanel.js.map +1 -1
- package/identity-provider/IdentityProviderWizard.js +16 -16
- package/identity-provider/IdentityProviderWizard.js.map +1 -1
- package/identity-provider/ProviderPicker.js +11 -11
- package/identity-provider/ProviderPicker.js.map +1 -1
- package/identity-provider/SsoLoginPrompt.js +7 -7
- package/identity-provider/SsoLoginPrompt.js.map +1 -1
- package/index.d.ts +4 -4
- package/index.d.ts.map +1 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/inline-edit/InlineEditImage.js +5 -5
- package/inline-edit/InlineEditImage.js.map +1 -1
- package/inline-edit/InlineEditKeyValue.js +3 -3
- package/inline-edit/InlineEditKeyValue.js.map +1 -1
- package/inline-edit/InlineEditResourceList.js +8 -8
- package/inline-edit/InlineEditResourceList.js.map +1 -1
- package/inline-edit/InlineEditSelect.js +8 -8
- package/inline-edit/InlineEditSelect.js.map +1 -1
- package/inline-edit/InlineEditText.js +6 -6
- package/inline-edit/InlineEditText.js.map +1 -1
- package/inline-edit/InlineEditTextarea.js +4 -4
- package/inline-edit/InlineEditTextarea.js.map +1 -1
- package/internal/ApprovalPeekBar.js +3 -3
- package/internal/ApprovalPeekBar.js.map +1 -1
- package/internal/BoundedContent.d.ts +1 -1
- package/internal/BoundedContent.d.ts.map +1 -1
- package/internal/BoundedContent.js +2 -2
- package/internal/BoundedContent.js.map +1 -1
- package/internal/CloudFeatureNotice.js +1 -1
- package/internal/CloudFeatureNotice.js.map +1 -1
- package/internal/DecisionButton.js +6 -6
- package/internal/DecisionButton.js.map +1 -1
- package/internal/InCardDecisionError.js +1 -1
- package/internal/InCardDecisionError.js.map +1 -1
- package/internal/JumpToLatestButton.js +3 -3
- package/internal/JumpToLatestButton.js.map +1 -1
- package/internal/MermaidDiagram.js +2 -2
- package/internal/MermaidDiagram.js.map +1 -1
- package/internal/Pagination.js +2 -2
- package/internal/Pagination.js.map +1 -1
- package/internal/ResizableSplit.d.ts +28 -6
- package/internal/ResizableSplit.d.ts.map +1 -1
- package/internal/ResizableSplit.js +18 -4
- package/internal/ResizableSplit.js.map +1 -1
- package/internal/RevealToggle.js +2 -2
- package/internal/RevealToggle.js.map +1 -1
- package/internal/ScrollFade.js +2 -2
- package/internal/ScrollFade.js.map +1 -1
- package/internal/VirtualizedThread.js +2 -2
- package/internal/VirtualizedThread.js.map +1 -1
- package/internal/file-icons/index.js +2 -2
- package/internal/file-icons/index.js.map +1 -1
- package/internal/file-tree/FileTreeNode.js +3 -3
- package/internal/file-tree/FileTreeNode.js.map +1 -1
- package/internal/form-primitives.d.ts +15 -0
- package/internal/form-primitives.d.ts.map +1 -1
- package/internal/form-primitives.js +17 -2
- package/internal/form-primitives.js.map +1 -1
- package/internal/markdown-components.js +23 -23
- package/internal/markdown-components.js.map +1 -1
- package/internal/menu.js +5 -5
- package/internal/menu.js.map +1 -1
- package/internal/scroll-area.js +1 -1
- package/internal/scroll-area.js.map +1 -1
- package/internal/thread-card/ThreadCardShell.js +7 -7
- package/internal/thread-card/ThreadCardShell.js.map +1 -1
- package/internal/thread-card/glyphs.js +2 -2
- package/internal/thread-card/glyphs.js.map +1 -1
- package/internal/tooltip.d.ts.map +1 -1
- package/internal/tooltip.js +4 -6
- package/internal/tooltip.js.map +1 -1
- package/invitation/InvitationCreatedAlert.js +1 -1
- package/invitation/InvitationCreatedAlert.js.map +1 -1
- package/invitation/InvitationManager.js +23 -23
- package/invitation/InvitationManager.js.map +1 -1
- package/invitation/InvitationRedemption.js +12 -12
- package/invitation/InvitationRedemption.js.map +1 -1
- package/library/ResourceCountCard.js +4 -4
- package/library/ResourceCountCard.js.map +1 -1
- package/library/ScopeToggle.js +4 -4
- package/library/ScopeToggle.js.map +1 -1
- package/library/VisibilityOptionRow.d.ts +1 -1
- package/library/VisibilityOptionRow.d.ts.map +1 -1
- package/library/VisibilityOptionRow.js +22 -22
- package/library/VisibilityOptionRow.js.map +1 -1
- package/library/VisibilitySelector.js +5 -5
- package/library/VisibilitySelector.js.map +1 -1
- package/manifest/ApplyManifestDialog.js +6 -6
- package/manifest/ApplyManifestDialog.js.map +1 -1
- package/manifest/EditResourceYamlDialog.js +2 -2
- package/manifest/EditResourceYamlDialog.js.map +1 -1
- package/manifest/RedactedSecretsNotice.js +1 -1
- package/manifest/RedactedSecretsNotice.js.map +1 -1
- package/manifest/YamlEditor.js +1 -1
- package/manifest/YamlEditor.js.map +1 -1
- package/mcp-server/McpServerConfigPanel.js +22 -22
- package/mcp-server/McpServerConfigPanel.js.map +1 -1
- package/mcp-server/McpServerConnectDialog.js +43 -17
- package/mcp-server/McpServerConnectDialog.js.map +1 -1
- package/mcp-server/McpServerDetailView.d.ts.map +1 -1
- package/mcp-server/McpServerDetailView.js +112 -63
- package/mcp-server/McpServerDetailView.js.map +1 -1
- package/mcp-server/McpServerPicker.js +16 -16
- package/mcp-server/McpServerPicker.js.map +1 -1
- package/mcp-server/McpToolSelector.js +4 -4
- package/mcp-server/McpToolSelector.js.map +1 -1
- package/mcp-server/OAuthAppForm.js +2 -2
- package/mcp-server/OAuthAppForm.js.map +1 -1
- package/mcp-server/OAuthCallbackHandler.js +4 -4
- package/mcp-server/OAuthCallbackHandler.js.map +1 -1
- package/mcp-server/OAuthRequiredNotice.js +1 -1
- package/mcp-server/OAuthRequiredNotice.js.map +1 -1
- package/mcp-server/StdioSandboxNotice.js +1 -1
- package/mcp-server/StdioSandboxNotice.js.map +1 -1
- package/mcp-server/index.d.ts +1 -1
- package/mcp-server/index.d.ts.map +1 -1
- package/mcp-server/index.js +1 -1
- package/mcp-server/index.js.map +1 -1
- package/mcp-server/steps/EnvironmentAuthStep.js +4 -4
- package/mcp-server/steps/EnvironmentAuthStep.js.map +1 -1
- package/mcp-server/steps/IdentityTransportStep.js +8 -8
- package/mcp-server/steps/IdentityTransportStep.js.map +1 -1
- package/mcp-server/steps/ReviewStep.js +3 -3
- package/mcp-server/steps/ReviewStep.js.map +1 -1
- package/mcp-server/useMcpServerOAuthConnect.d.ts +29 -0
- package/mcp-server/useMcpServerOAuthConnect.d.ts.map +1 -1
- package/mcp-server/useMcpServerOAuthConnect.js +49 -10
- package/mcp-server/useMcpServerOAuthConnect.js.map +1 -1
- package/models/HarnessSelector.js +8 -8
- package/models/HarnessSelector.js.map +1 -1
- package/models/ModelSelector.js +11 -11
- package/models/ModelSelector.js.map +1 -1
- package/oauth-app/CreateOAuthAppForm.js +4 -4
- package/oauth-app/CreateOAuthAppForm.js.map +1 -1
- package/oauth-app/OAuthAppDetailPanel.js +8 -8
- package/oauth-app/OAuthAppDetailPanel.js.map +1 -1
- package/oauth-app/OAuthAppListPanel.js +6 -6
- package/oauth-app/OAuthAppListPanel.js.map +1 -1
- package/organization/CreateOrganizationForm.js +4 -4
- package/organization/CreateOrganizationForm.js.map +1 -1
- package/organization/OrgProfilePanel.js +10 -10
- package/organization/OrgProfilePanel.js.map +1 -1
- package/organization/OrgSwitcher.js +5 -5
- package/organization/OrgSwitcher.js.map +1 -1
- package/package.json +4 -4
- package/platform-client/CreatePlatformClientForm.js +5 -5
- package/platform-client/CreatePlatformClientForm.js.map +1 -1
- package/platform-client/PlatformClientDetailPanel.js +8 -8
- package/platform-client/PlatformClientDetailPanel.js.map +1 -1
- package/platform-client/PlatformClientListPanel.js +10 -10
- package/platform-client/PlatformClientListPanel.js.map +1 -1
- package/platform-client/PlatformClientSecretAlert.js +2 -2
- package/platform-client/PlatformClientSecretAlert.js.map +1 -1
- package/portal-container.d.ts +34 -9
- package/portal-container.d.ts.map +1 -1
- package/portal-container.js +33 -8
- package/portal-container.js.map +1 -1
- package/pricing-governance/BaselineEditor.js +5 -5
- package/pricing-governance/BaselineEditor.js.map +1 -1
- package/pricing-governance/ModelCatalogPanel.js +5 -5
- package/pricing-governance/ModelCatalogPanel.js.map +1 -1
- package/pricing-governance/ModelGovernanceDetail.js +7 -7
- package/pricing-governance/ModelGovernanceDetail.js.map +1 -1
- package/pricing-governance/OperatorAccessNotice.js +1 -1
- package/pricing-governance/OperatorAccessNotice.js.map +1 -1
- package/pricing-governance/PricingGovernanceConsole.js +8 -8
- package/pricing-governance/PricingGovernanceConsole.js.map +1 -1
- package/pricing-governance/PricingGovernancePanel.js +4 -4
- package/pricing-governance/PricingGovernancePanel.js.map +1 -1
- package/pricing-governance/RetireConfirm.js +1 -1
- package/pricing-governance/RetireConfirm.js.map +1 -1
- package/pricing-governance/governance-primitives.js +6 -6
- package/pricing-governance/governance-primitives.js.map +1 -1
- package/resource-creation/CreationPicker.js +7 -7
- package/resource-creation/CreationPicker.js.map +1 -1
- package/resource-creation/StepIndicator.js +4 -4
- package/resource-creation/StepIndicator.js.map +1 -1
- package/resource-creation/TemplateCard.js +15 -15
- package/resource-creation/TemplateCard.js.map +1 -1
- package/resource-creation/TemplateGallery.js +5 -5
- package/resource-creation/TemplateGallery.js.map +1 -1
- package/resource-creation/WizardNav.js +2 -2
- package/resource-creation/WizardNav.js.map +1 -1
- package/resource-creation/WizardShell.js +2 -2
- package/resource-creation/WizardShell.js.map +1 -1
- package/resource-detail/ConfirmDialog.js +3 -3
- package/resource-detail/ConfirmDialog.js.map +1 -1
- package/resource-detail/ResourceActionBar.js +2 -2
- package/resource-detail/ResourceActionBar.js.map +1 -1
- package/resource-detail/ResourceDetailShell.js +3 -3
- package/resource-detail/ResourceDetailShell.js.map +1 -1
- package/resource-detail/Section.js +1 -1
- package/resource-detail/Section.js.map +1 -1
- package/resource-workbench/components/BulkActionBar.js +4 -4
- package/resource-workbench/components/BulkActionBar.js.map +1 -1
- package/resource-workbench/components/ColumnHeader.js +3 -3
- package/resource-workbench/components/ColumnHeader.js.map +1 -1
- package/resource-workbench/components/FilterBar.js +3 -3
- package/resource-workbench/components/FilterBar.js.map +1 -1
- package/resource-workbench/components/ResourceAvatar.js +18 -18
- package/resource-workbench/components/ResourceAvatar.js.map +1 -1
- package/resource-workbench/components/ResourceCards.js +2 -2
- package/resource-workbench/components/ResourceCards.js.map +1 -1
- package/resource-workbench/components/ResourceInspector.js +1 -1
- package/resource-workbench/components/ResourceInspector.js.map +1 -1
- package/resource-workbench/components/ResourceList.js +2 -2
- package/resource-workbench/components/ResourceList.js.map +1 -1
- package/resource-workbench/components/ResourceTable.js +5 -5
- package/resource-workbench/components/ResourceTable.js.map +1 -1
- package/resource-workbench/components/ResourceWorkbench.js +11 -11
- package/resource-workbench/components/ResourceWorkbench.js.map +1 -1
- package/resource-workbench/components/SelectionCheckbox.js +1 -1
- package/resource-workbench/components/SelectionCheckbox.js.map +1 -1
- package/resource-workbench/components/StatusBadge.js +16 -16
- package/resource-workbench/components/StatusBadge.js.map +1 -1
- package/resource-workbench/components/ViewSwitcher.js +4 -4
- package/resource-workbench/components/ViewSwitcher.js.map +1 -1
- package/schedule/CadenceField.js +14 -14
- package/schedule/CadenceField.js.map +1 -1
- package/schedule/ScheduleDetailView.js +39 -39
- package/schedule/ScheduleDetailView.js.map +1 -1
- package/schedule/ScheduleForm.js +9 -9
- package/schedule/ScheduleForm.js.map +1 -1
- package/schedule/ScheduleRowActions.js +1 -1
- package/schedule/ScheduleRowActions.js.map +1 -1
- package/schedule/ScheduleRunsTable.js +17 -17
- package/schedule/ScheduleRunsTable.js.map +1 -1
- package/schedule/TimeZoneField.js +5 -5
- package/schedule/TimeZoneField.js.map +1 -1
- package/schedule/scheduleColumns.js +5 -5
- package/schedule/scheduleColumns.js.map +1 -1
- package/session/NewSessionViewer.js +3 -3
- package/session/NewSessionViewer.js.map +1 -1
- package/session/PlanEditor.js +9 -9
- package/session/PlanEditor.js.map +1 -1
- package/session/PlanStreamingDocument.js +2 -2
- package/session/PlanStreamingDocument.js.map +1 -1
- package/session/SessionViewer.js +21 -21
- package/session/SessionViewer.js.map +1 -1
- package/session/SessionViewerLayout.d.ts +11 -8
- package/session/SessionViewerLayout.d.ts.map +1 -1
- package/session/SessionViewerLayout.js +1 -1
- package/session/SessionViewerLayout.js.map +1 -1
- package/session/facets/ArtifactsTab.js +2 -2
- package/session/facets/ArtifactsTab.js.map +1 -1
- package/session/facets/ChangesTab.js +3 -3
- package/session/facets/ChangesTab.js.map +1 -1
- package/session/facets/SetupTab.js +11 -11
- package/session/facets/SetupTab.js.map +1 -1
- package/session/facets/UsageTab.js +1 -1
- package/session/facets/UsageTab.js.map +1 -1
- package/session/useSessionConversation.d.ts +8 -0
- package/session/useSessionConversation.d.ts.map +1 -1
- package/session/useSessionConversation.js +12 -2
- package/session/useSessionConversation.js.map +1 -1
- package/settings/ApiKeysSection.js +1 -1
- package/settings/ApiKeysSection.js.map +1 -1
- package/settings/ChannelAppsSection.js +1 -1
- package/settings/ChannelAppsSection.js.map +1 -1
- package/settings/EnvironmentsSection.js +4 -4
- package/settings/EnvironmentsSection.js.map +1 -1
- package/settings/IdentityProvidersSection.js +1 -1
- package/settings/IdentityProvidersSection.js.map +1 -1
- package/settings/InvitationsSection.js +1 -1
- package/settings/InvitationsSection.js.map +1 -1
- package/settings/MembersSection.js +1 -1
- package/settings/MembersSection.js.map +1 -1
- package/settings/OAuthAppsSection.js +1 -1
- package/settings/OAuthAppsSection.js.map +1 -1
- package/settings/OrgProfileSection.js +1 -1
- package/settings/OrgProfileSection.js.map +1 -1
- package/settings/PlatformClientsSection.js +1 -1
- package/settings/PlatformClientsSection.js.map +1 -1
- package/settings/UsageSection.js +1 -1
- package/settings/UsageSection.js.map +1 -1
- package/sharing/AgentShareList.js +5 -5
- package/sharing/AgentShareList.js.map +1 -1
- package/sharing/ShareAgentDialog.js +30 -30
- package/sharing/ShareAgentDialog.js.map +1 -1
- package/sharing/SharedAgentChat.js +6 -6
- package/sharing/SharedAgentChat.js.map +1 -1
- package/sidebar/SettingsSidebar.js +5 -5
- package/sidebar/SettingsSidebar.js.map +1 -1
- package/sidebar/WorkspaceSidebar.js +13 -13
- package/sidebar/WorkspaceSidebar.js.map +1 -1
- package/sidebar/chrome.js +5 -5
- package/sidebar/chrome.js.map +1 -1
- package/skill/SkillDetailView.js +13 -13
- package/skill/SkillDetailView.js.map +1 -1
- package/skill/SkillDiffDialog.js +2 -2
- package/skill/SkillDiffDialog.js.map +1 -1
- package/skill/SkillFileBrowser.js +4 -4
- package/skill/SkillFileBrowser.js.map +1 -1
- package/skill/SkillPicker.js +10 -10
- package/skill/SkillPicker.js.map +1 -1
- package/skill/SkillUploader.js +8 -8
- package/skill/SkillUploader.js.map +1 -1
- package/src/__tests__/helpers/compile-sdk-styles.ts +33 -0
- package/src/__tests__/portal-container.test.tsx +97 -0
- package/src/__tests__/preflight-parity.layout.test.tsx +156 -0
- package/src/__tests__/scope-unprefixed.test.ts +86 -0
- package/src/__tests__/styles-border-layer-invariant.test.ts +86 -58
- package/src/__tests__/styles-dist-isolation.test.ts +195 -0
- package/src/__tests__/styles-host-isolation.layout.test.tsx +204 -0
- package/src/access/ManageAccessButton.tsx +3 -3
- package/src/access/ManageAccessDialog.tsx +19 -19
- package/src/action-menu/ActionMenu.tsx +8 -8
- package/src/activity/useRecentActivity.ts +6 -1
- package/src/agent/AgentDetailView.tsx +112 -112
- package/src/agent/AgentPicker.tsx +26 -26
- package/src/agent/steps/CapabilitiesStep.tsx +36 -36
- package/src/agent/steps/IdentityStep.tsx +45 -45
- package/src/agent/steps/ReviewStep.tsx +18 -18
- package/src/agent-instance/AgentInstanceDetailPanel.tsx +45 -45
- package/src/agent-instance/AgentInstanceList.tsx +36 -36
- package/src/agent-instance/CreateAgentInstanceDialog.tsx +35 -35
- package/src/agent-instance/__tests__/AgentInstanceList.test.tsx +0 -6
- package/src/api-key/ApiKeyCreatedAlert.tsx +15 -15
- package/src/api-key/ApiKeyListPanel.tsx +28 -28
- package/src/api-key/CreateApiKeyForm.tsx +25 -25
- package/src/attachment/AttachmentChipList.tsx +321 -75
- package/src/attachment/AttachmentImageLightbox.tsx +154 -0
- package/src/attachment/__tests__/AttachmentChipList.test.tsx +240 -17
- package/src/attachment/attachment-utils.ts +8 -5
- package/src/attachment/useObjectUrl.ts +28 -0
- package/src/billing/AutoRechargeCard.tsx +26 -26
- package/src/billing/BillingSection.tsx +14 -14
- package/src/billing/CreditBalanceCard.tsx +7 -7
- package/src/billing/CreditLedgerTable.tsx +27 -27
- package/src/billing/CreditPackGrid.tsx +13 -13
- package/src/billing/LowBalanceBanner.tsx +6 -6
- package/src/billing/PaymentMethodCard.tsx +13 -13
- package/src/button/Button.tsx +10 -10
- package/src/button/__tests__/Button.test.tsx +9 -9
- package/src/channel/AgentChannelsPanel.tsx +33 -33
- package/src/channel/ChannelConversationsDialog.tsx +21 -21
- package/src/channel/ChannelCredentialsDialog.tsx +13 -13
- package/src/channel/ChannelTemplatesDialog.tsx +34 -34
- package/src/channel/ChannelToolCredentials.tsx +5 -5
- package/src/channel/ConnectSlackDialog.tsx +48 -48
- package/src/channel/ConnectWhatsAppDialog.tsx +42 -42
- package/src/channel/__tests__/AgentChannelsPanel.test.tsx +4 -9
- package/src/channel/connect/ServingAppSection.tsx +14 -14
- package/src/channel/connect/ToolCredentialsSection.tsx +5 -5
- package/src/channel/connect/VerbatimRefusal.tsx +1 -1
- package/src/channel/connect/icons.tsx +1 -1
- package/src/channel-app/ChannelAppDetailPanel.tsx +44 -44
- package/src/channel-app/ChannelAppListPanel.tsx +15 -15
- package/src/channel-app/CreateChannelAppForm.tsx +37 -37
- package/src/channel-app/internal.tsx +21 -21
- package/src/composer/ComposerToolbar.tsx +15 -15
- package/src/composer/ConfigureMenu.tsx +22 -22
- package/src/composer/ContextChip.tsx +12 -12
- package/src/composer/ContextPopover.tsx +8 -8
- package/src/composer/InteractionModePicker.tsx +14 -14
- package/src/composer/SessionComposer.tsx +24 -24
- package/src/composer/__tests__/SessionComposer-lockAgent.test.tsx +16 -15
- package/src/composer/__tests__/SessionComposer-serviceTier.test.tsx +2 -7
- package/src/composer/icons.tsx +5 -5
- package/src/conversation/ConversationAttentionBanner.tsx +6 -6
- package/src/conversation/ConversationComposer.tsx +13 -13
- package/src/conversation/ConversationControlBanner.tsx +11 -11
- package/src/conversation/ConversationListPane.tsx +38 -38
- package/src/conversation/ConversationMediaAttachment.tsx +308 -0
- package/src/conversation/ConversationTimelineView.tsx +102 -52
- package/src/conversation/ConversationsWorkbench.tsx +12 -10
- package/src/conversation/__tests__/ConversationComposer.test.tsx +1 -1
- package/src/conversation/__tests__/ConversationTimelineView.test.tsx +233 -6
- package/src/conversation/__tests__/a11y/conversation-surfaces.a11y.test.tsx +67 -1
- package/src/conversation/__tests__/useConversationMediaUrl.test.tsx +66 -0
- package/src/conversation/conversationPresentation.ts +10 -3
- package/src/conversation/index.ts +6 -0
- package/src/conversation/useConversationMediaUrl.ts +121 -0
- package/src/cursor-accounts/CursorAccountEditor.tsx +13 -13
- package/src/cursor-accounts/CursorAccountsAccessNotice.tsx +3 -3
- package/src/cursor-accounts/CursorAccountsConsole.tsx +35 -35
- package/src/cursor-accounts/MemberCoverageTable.tsx +29 -29
- package/src/cursor-accounts/MemberKeysPanel.tsx +17 -17
- package/src/cursor-accounts/badges.tsx +4 -4
- package/src/dashboard/DashboardFailedRuns.tsx +17 -17
- package/src/dashboard/DashboardKPICards.tsx +12 -12
- package/src/dashboard/OperationalDashboard.tsx +2 -2
- package/src/datastore/CollectionRecordsBrowser.tsx +35 -35
- package/src/datastore/CollectionSchemaView.tsx +43 -43
- package/src/datastore/DatastoreDetailView.tsx +18 -18
- package/src/datastore/DatastoreSyncReport.tsx +13 -13
- package/src/datastore/DeleteDatastoreDialog.tsx +21 -21
- package/src/datastore/FieldValueControl.tsx +7 -7
- package/src/datastore/RecordFilterBuilder.tsx +35 -35
- package/src/datastore/RecordFormPanel.tsx +35 -35
- package/src/dependency-graph/DependencyGraph.tsx +6 -6
- package/src/dependency-graph/DependencyTreeNode.tsx +21 -21
- package/src/empty-state/EmptyState.tsx +7 -7
- package/src/empty-state/useEmptyState.ts +1 -1
- package/src/environment/CreateEnvironmentForm.tsx +24 -24
- package/src/environment/EnvVarForm.tsx +40 -40
- package/src/environment/EnvironmentListPanel.tsx +19 -19
- package/src/environment/EnvironmentPicker.tsx +22 -22
- package/src/environment/EnvironmentVariableEditor.tsx +53 -53
- package/src/error/ErrorMessage.tsx +22 -22
- package/src/error/SecretFlowErrorGuide.tsx +19 -19
- package/src/execution/ApprovalCard.tsx +19 -19
- package/src/execution/ArtifactApplyButton.tsx +7 -7
- package/src/execution/ArtifactContentBody.tsx +11 -11
- package/src/execution/ArtifactContentRenderer.tsx +29 -29
- package/src/execution/ArtifactDocument.tsx +22 -22
- package/src/execution/ArtifactFileContent.tsx +6 -6
- package/src/execution/ArtifactPreviewModal.tsx +33 -33
- package/src/execution/ArtifactRowView.tsx +13 -13
- package/src/execution/ArtifactsWidget.tsx +4 -4
- package/src/execution/ContextGauge.tsx +24 -24
- package/src/execution/EmptyChangeNotice.tsx +1 -1
- package/src/execution/ExecutionPhaseBadge.tsx +12 -12
- package/src/execution/ExecutionProgress.tsx +2 -2
- package/src/execution/FileChangeProgressBar.tsx +9 -9
- package/src/execution/FileChangesView.tsx +12 -12
- package/src/execution/FilePathLink.tsx +10 -10
- package/src/execution/FileReviewAtoms.tsx +9 -9
- package/src/execution/FileReviewCard.tsx +37 -37
- package/src/execution/FileReviewDock.tsx +2 -2
- package/src/execution/FollowUpInput.tsx +9 -9
- package/src/execution/InteractionModeBadge.tsx +2 -2
- package/src/execution/McpToolDetail.tsx +28 -28
- package/src/execution/MessageAttachments.tsx +364 -0
- package/src/execution/MessageEntry.tsx +60 -22
- package/src/execution/MessageThread.tsx +72 -32
- package/src/execution/PlanArtifactCard.tsx +22 -22
- package/src/execution/PlanCompletionCard.tsx +10 -10
- package/src/execution/PlanDocumentMessage.tsx +6 -6
- package/src/execution/PlanStreamingCard.tsx +11 -11
- package/src/execution/ResultView.tsx +44 -44
- package/src/execution/SessionVariablesInput.tsx +38 -38
- package/src/execution/SetupProgress.tsx +5 -5
- package/src/execution/SubAgentSection.tsx +42 -42
- package/src/execution/SummarizationBadge.tsx +15 -15
- package/src/execution/SummarizationCard.tsx +11 -11
- package/src/execution/TerminalSession.tsx +7 -7
- package/src/execution/ThreadSkeleton.tsx +10 -10
- package/src/execution/TodoCard.tsx +11 -11
- package/src/execution/TodoList.tsx +13 -13
- package/src/execution/ToolArgsView.tsx +8 -8
- package/src/execution/ToolCallDetail.tsx +7 -7
- package/src/execution/ToolCallGroup.tsx +1 -1
- package/src/execution/ToolCallItem.tsx +28 -28
- package/src/execution/ToolRunGroup.tsx +16 -16
- package/src/execution/UsageWidget.tsx +12 -12
- package/src/execution/WriteBackCard.tsx +30 -30
- package/src/execution/WriteBacksWidget.tsx +4 -4
- package/src/execution/__tests__/ApprovalCard.test.tsx +12 -12
- package/src/execution/__tests__/ArtifactContentRenderer.test.tsx +3 -3
- package/src/execution/__tests__/FileChangesView.test.tsx +2 -2
- package/src/execution/__tests__/FilePathLink.test.tsx +1 -1
- package/src/execution/__tests__/FileReviewDock.test.tsx +1 -1
- package/src/execution/__tests__/MessageEntry-attachments.test.tsx +228 -0
- package/src/execution/__tests__/MessageThread.test.tsx +1 -1
- package/src/execution/__tests__/TerminalSession.test.tsx +1 -1
- package/src/execution/__tests__/ToolCallDetail.test.tsx +1 -1
- package/src/execution/__tests__/ToolCallGroup.test.tsx +4 -4
- package/src/execution/__tests__/ToolCallItem.test.tsx +9 -9
- package/src/execution/__tests__/ToolRunGroup.test.tsx +6 -6
- package/src/execution/__tests__/WriteBackCard.test.tsx +4 -4
- package/src/execution/__tests__/buildThreadItems-attachments.test.ts +174 -0
- package/src/execution/__tests__/message-entry.test.tsx +8 -8
- package/src/execution/__tests__/thread-memoization.test.ts +2 -2
- package/src/execution/__tests__/thread-skeleton.test.tsx +1 -1
- package/src/execution/__tests__/virtualized-thread.test.tsx +1 -1
- package/src/execution/index.ts +6 -0
- package/src/execution/tool-rendering-primitives.tsx +12 -12
- package/src/feedback/StigmerToaster.tsx +8 -5
- package/src/file-reference/FileReferenceChipList.tsx +5 -5
- package/src/github/GitHubRepoPicker.tsx +60 -60
- package/src/github/__tests__/decodeGitHubContent.test.ts +42 -1
- package/src/github/decodeGitHubContent.ts +22 -5
- package/src/github/useGitHubFileReader.ts +13 -3
- package/src/iam-policy/GrantAccessForm.tsx +11 -11
- package/src/iam-policy/OrgMembersPanel.tsx +48 -48
- package/src/iam-policy/PeopleWithAccess.tsx +23 -23
- package/src/iam-policy/PrincipalPicker.tsx +34 -34
- package/src/iam-policy/ProviderBadge.tsx +2 -2
- package/src/iam-policy/RoleSelector.tsx +9 -9
- package/src/iam-policy/SharePanel.tsx +5 -5
- package/src/identity-provider/CreateIdentityProviderForm.tsx +47 -47
- package/src/identity-provider/IdentityProviderDetailPanel.tsx +73 -73
- package/src/identity-provider/IdentityProviderListPanel.tsx +33 -33
- package/src/identity-provider/IdentityProviderWizard.tsx +72 -72
- package/src/identity-provider/ProviderPicker.tsx +17 -17
- package/src/identity-provider/SsoLoginPrompt.tsx +39 -39
- package/src/index.ts +6 -0
- package/src/inline-edit/InlineEditImage.tsx +26 -26
- package/src/inline-edit/InlineEditKeyValue.tsx +44 -44
- package/src/inline-edit/InlineEditResourceList.tsx +48 -48
- package/src/inline-edit/InlineEditSelect.tsx +22 -22
- package/src/inline-edit/InlineEditText.tsx +29 -29
- package/src/inline-edit/InlineEditTextarea.tsx +27 -27
- package/src/internal/ApprovalPeekBar.tsx +9 -9
- package/src/internal/BoundedContent.tsx +3 -3
- package/src/internal/CloudFeatureNotice.tsx +3 -3
- package/src/internal/DecisionButton.tsx +10 -10
- package/src/internal/InCardDecisionError.tsx +1 -1
- package/src/internal/JumpToLatestButton.tsx +9 -9
- package/src/internal/MermaidDiagram.tsx +5 -5
- package/src/internal/Pagination.tsx +5 -5
- package/src/internal/ResizableSplit.tsx +61 -20
- package/src/internal/RevealToggle.tsx +5 -5
- package/src/internal/ScrollFade.tsx +2 -2
- package/src/internal/VirtualizedThread.tsx +6 -6
- package/src/internal/__tests__/BoundedContent.test.tsx +1 -1
- package/src/internal/__tests__/DecisionButton.test.tsx +14 -14
- package/src/internal/__tests__/ResizableSplit.layout.test.tsx +136 -0
- package/src/internal/__tests__/ResizableSplit.test.tsx +49 -2
- package/src/internal/__tests__/ThreadCardShell.test.tsx +4 -4
- package/src/internal/__tests__/markdown-components.test.tsx +2 -2
- package/src/internal/__tests__/thread-animation.test.tsx +6 -6
- package/src/internal/file-icons/index.tsx +2 -2
- package/src/internal/file-tree/FileTreeNode.tsx +9 -9
- package/src/internal/file-tree/__tests__/FileTreeNode-explorer.test.tsx +1 -1
- package/src/internal/form-primitives.tsx +22 -6
- package/src/internal/markdown-components.tsx +24 -24
- package/src/internal/menu.tsx +18 -18
- package/src/internal/scroll-area.tsx +6 -6
- package/src/internal/thread-card/ThreadCardShell.tsx +10 -10
- package/src/internal/thread-card/glyphs.tsx +3 -3
- package/src/internal/tooltip.tsx +9 -11
- package/src/invitation/InvitationCreatedAlert.tsx +15 -15
- package/src/invitation/InvitationManager.tsx +79 -79
- package/src/invitation/InvitationRedemption.tsx +49 -49
- package/src/library/ResourceCountCard.tsx +7 -7
- package/src/library/ScopeToggle.tsx +7 -7
- package/src/library/VisibilityOptionRow.tsx +30 -30
- package/src/library/VisibilitySelector.tsx +19 -19
- package/src/library/__tests__/VisibilitySelector.test.tsx +0 -6
- package/src/manifest/ApplyManifestDialog.tsx +36 -36
- package/src/manifest/EditResourceYamlDialog.tsx +32 -32
- package/src/manifest/RedactedSecretsNotice.tsx +2 -2
- package/src/manifest/YamlEditor.tsx +1 -1
- package/src/mcp-server/McpServerConfigPanel.tsx +70 -70
- package/src/mcp-server/McpServerConnectDialog.tsx +80 -53
- package/src/mcp-server/McpServerDetailView.tsx +325 -224
- package/src/mcp-server/McpServerPicker.tsx +50 -50
- package/src/mcp-server/McpToolSelector.tsx +26 -26
- package/src/mcp-server/OAuthAppForm.tsx +32 -32
- package/src/mcp-server/OAuthCallbackHandler.tsx +11 -11
- package/src/mcp-server/OAuthRequiredNotice.tsx +3 -3
- package/src/mcp-server/StdioSandboxNotice.tsx +3 -3
- package/src/mcp-server/__tests__/McpServerDetailView.test.tsx +162 -7
- package/src/mcp-server/__tests__/useMcpServerOAuthConnect.test.tsx +159 -0
- package/src/mcp-server/index.ts +4 -1
- package/src/mcp-server/steps/EnvironmentAuthStep.tsx +71 -71
- package/src/mcp-server/steps/IdentityTransportStep.tsx +94 -94
- package/src/mcp-server/steps/ReviewStep.tsx +17 -17
- package/src/mcp-server/useMcpServerOAuthConnect.ts +65 -10
- package/src/models/HarnessSelector.tsx +8 -8
- package/src/models/ModelSelector.tsx +58 -58
- package/src/models/__tests__/ModelSelector-serviceTier.test.tsx +2 -7
- package/src/oauth-app/CreateOAuthAppForm.tsx +28 -28
- package/src/oauth-app/OAuthAppDetailPanel.tsx +51 -51
- package/src/oauth-app/OAuthAppListPanel.tsx +14 -14
- package/src/organization/CreateOrganizationForm.tsx +37 -37
- package/src/organization/OrgProfilePanel.tsx +65 -65
- package/src/organization/OrgSwitcher.tsx +33 -33
- package/src/platform-client/CreatePlatformClientForm.tsx +59 -59
- package/src/platform-client/PlatformClientDetailPanel.tsx +107 -107
- package/src/platform-client/PlatformClientListPanel.tsx +38 -38
- package/src/platform-client/PlatformClientSecretAlert.tsx +18 -18
- package/src/portal-container.ts +36 -9
- package/src/pricing-governance/BaselineEditor.tsx +29 -29
- package/src/pricing-governance/ModelCatalogPanel.tsx +28 -28
- package/src/pricing-governance/ModelGovernanceDetail.tsx +35 -35
- package/src/pricing-governance/OperatorAccessNotice.tsx +3 -3
- package/src/pricing-governance/PricingGovernanceConsole.tsx +31 -31
- package/src/pricing-governance/PricingGovernancePanel.tsx +19 -19
- package/src/pricing-governance/RetireConfirm.tsx +7 -7
- package/src/pricing-governance/governance-primitives.tsx +12 -12
- package/src/resource-creation/CreationPicker.tsx +23 -23
- package/src/resource-creation/StepIndicator.tsx +17 -17
- package/src/resource-creation/TemplateCard.tsx +23 -23
- package/src/resource-creation/TemplateGallery.tsx +13 -13
- package/src/resource-creation/WizardNav.tsx +19 -19
- package/src/resource-creation/WizardShell.tsx +7 -7
- package/src/resource-detail/ConfirmDialog.tsx +16 -16
- package/src/resource-detail/ResourceActionBar.tsx +6 -6
- package/src/resource-detail/ResourceDetailShell.tsx +14 -14
- package/src/resource-detail/Section.tsx +10 -10
- package/src/resource-workbench/components/BulkActionBar.tsx +13 -13
- package/src/resource-workbench/components/ColumnHeader.tsx +9 -9
- package/src/resource-workbench/components/FilterBar.tsx +9 -9
- package/src/resource-workbench/components/ResourceAvatar.tsx +19 -19
- package/src/resource-workbench/components/ResourceCards.tsx +8 -8
- package/src/resource-workbench/components/ResourceInspector.tsx +8 -8
- package/src/resource-workbench/components/ResourceList.tsx +7 -7
- package/src/resource-workbench/components/ResourceTable.tsx +12 -12
- package/src/resource-workbench/components/ResourceWorkbench.tsx +42 -42
- package/src/resource-workbench/components/SelectionCheckbox.tsx +2 -2
- package/src/resource-workbench/components/StatusBadge.tsx +17 -17
- package/src/resource-workbench/components/ViewSwitcher.tsx +7 -7
- package/src/schedule/CadenceField.tsx +36 -36
- package/src/schedule/ScheduleDetailView.tsx +105 -105
- package/src/schedule/ScheduleForm.tsx +49 -49
- package/src/schedule/ScheduleRowActions.tsx +4 -4
- package/src/schedule/ScheduleRunsTable.tsx +43 -43
- package/src/schedule/TimeZoneField.tsx +12 -12
- package/src/schedule/__tests__/scheduleCreation.test.tsx +0 -7
- package/src/schedule/scheduleColumns.tsx +7 -7
- package/src/session/NewSessionViewer.tsx +5 -5
- package/src/session/PlanEditor.tsx +37 -37
- package/src/session/PlanStreamingDocument.tsx +8 -8
- package/src/session/SessionViewer.tsx +49 -48
- package/src/session/SessionViewerLayout.tsx +14 -11
- package/src/session/__tests__/NewSessionViewer.test.tsx +4 -4
- package/src/session/__tests__/PlanEditor.test.tsx +2 -2
- package/src/session/__tests__/SessionViewerLayout.test.tsx +20 -8
- package/src/session/__tests__/useSessionConversation.test.tsx +62 -0
- package/src/session/facets/ArtifactsTab.tsx +3 -3
- package/src/session/facets/ChangesTab.tsx +5 -5
- package/src/session/facets/SetupTab.tsx +26 -26
- package/src/session/facets/UsageTab.tsx +2 -2
- package/src/session/useSessionConversation.ts +21 -2
- package/src/settings/ApiKeysSection.tsx +6 -6
- package/src/settings/ChannelAppsSection.tsx +6 -6
- package/src/settings/EnvironmentsSection.tsx +15 -15
- package/src/settings/IdentityProvidersSection.tsx +7 -7
- package/src/settings/InvitationsSection.tsx +4 -4
- package/src/settings/MembersSection.tsx +5 -5
- package/src/settings/OAuthAppsSection.tsx +6 -6
- package/src/settings/OrgProfileSection.tsx +3 -3
- package/src/settings/PlatformClientsSection.tsx +7 -7
- package/src/settings/UsageSection.tsx +3 -3
- package/src/sharing/AgentShareList.tsx +39 -39
- package/src/sharing/ShareAgentDialog.tsx +149 -149
- package/src/sharing/SharedAgentChat.tsx +24 -24
- package/src/sharing/__tests__/AgentShareList.test.tsx +0 -7
- package/src/sidebar/SettingsSidebar.tsx +7 -7
- package/src/sidebar/WorkspaceSidebar.tsx +25 -25
- package/src/sidebar/__tests__/SettingsSidebar.test.tsx +3 -7
- package/src/sidebar/__tests__/WorkspaceSidebar.test.tsx +4 -11
- package/src/sidebar/chrome.tsx +16 -16
- package/src/skill/SkillDetailView.tsx +54 -54
- package/src/skill/SkillDiffDialog.tsx +25 -25
- package/src/skill/SkillFileBrowser.tsx +22 -22
- package/src/skill/SkillPicker.tsx +28 -28
- package/src/skill/SkillUploader.tsx +67 -67
- package/src/styles.css +136 -15
- package/src/switch/Switch.tsx +9 -9
- package/src/switch/__tests__/Switch.test.tsx +3 -3
- package/src/tabs/Tabs.tsx +11 -11
- package/src/usage/AgentBreakdownList.tsx +18 -18
- package/src/usage/CreditRunwayIndicator.tsx +4 -4
- package/src/usage/ExportButton.tsx +8 -8
- package/src/usage/HarnessSplitCard.tsx +14 -14
- package/src/usage/OrgUsagePanel.tsx +71 -71
- package/src/user/UserMenu.tsx +13 -13
- package/src/version-history/DiffFileList.tsx +13 -13
- package/src/version-history/DiffSummary.tsx +3 -3
- package/src/version-history/DiffViewer.tsx +14 -14
- package/src/version-history/MultiFileDiffView.tsx +6 -6
- package/src/version-history/UnifiedDiffView.tsx +4 -4
- package/src/version-history/VersionTimeline.tsx +21 -21
- package/src/version-history/VersionTimelineEntry.tsx +28 -28
- package/src/version-history/__tests__/UnifiedDiffView.test.tsx +2 -2
- package/src/workflow/ApprovalFormBuilder.tsx +48 -48
- package/src/workflow/BranchConditionBuilder.tsx +21 -21
- package/src/workflow/CanvasContextMenu.tsx +10 -10
- package/src/workflow/CanvasTransitionEdge.tsx +16 -16
- package/src/workflow/CostByWorkflowChart.tsx +18 -18
- package/src/workflow/ExecutionActiveTaskIndicator.tsx +13 -13
- package/src/workflow/ExecutionSummaryWidget.tsx +29 -29
- package/src/workflow/ExecutionTrendChart.tsx +25 -25
- package/src/workflow/FailedRunsWidget.tsx +14 -14
- package/src/workflow/PendingApprovalsWidget.tsx +19 -19
- package/src/workflow/TaskConfigForm.tsx +32 -32
- package/src/workflow/TaskPickerPopover.tsx +22 -22
- package/src/workflow/ViewYamlDialog.tsx +12 -12
- package/src/workflow/WorkflowAgentCallTranscript.tsx +15 -15
- package/src/workflow/WorkflowApprovalList.tsx +3 -3
- package/src/workflow/WorkflowArchitectDialog.tsx +80 -80
- package/src/workflow/WorkflowArtifactDocument.tsx +17 -17
- package/src/workflow/WorkflowCanvasEditor.tsx +22 -22
- package/src/workflow/WorkflowCanvasInner.tsx +3 -3
- package/src/workflow/WorkflowCodePreviewGraph.tsx +2 -2
- package/src/workflow/WorkflowDashboard.tsx +2 -2
- package/src/workflow/WorkflowDetailView.tsx +50 -50
- package/src/workflow/WorkflowDiffGraph.tsx +5 -5
- package/src/workflow/WorkflowEditorView.tsx +58 -58
- package/src/workflow/WorkflowExecutionGraph.tsx +15 -15
- package/src/workflow/WorkflowExecutionHeader.tsx +14 -14
- package/src/workflow/WorkflowExecutionPhaseBadge.tsx +11 -11
- package/src/workflow/WorkflowExecutionViewer.tsx +39 -39
- package/src/workflow/WorkflowExplainDialog.tsx +30 -30
- package/src/workflow/WorkflowFileReviewList.tsx +3 -3
- package/src/workflow/WorkflowGraphFullscreenDialog.tsx +11 -11
- package/src/workflow/WorkflowNode.tsx +2 -2
- package/src/workflow/WorkflowNodePopover.tsx +15 -15
- package/src/workflow/WorkflowOverviewGraph.tsx +9 -9
- package/src/workflow/WorkflowOverviewSummary.tsx +12 -12
- package/src/workflow/WorkflowRefinePanel.tsx +49 -49
- package/src/workflow/WorkflowRepairCard.tsx +53 -53
- package/src/workflow/WorkflowRunDialog.tsx +20 -20
- package/src/workflow/WorkflowRunForm.tsx +19 -19
- package/src/workflow/WorkflowTaskApprovalCard.tsx +19 -19
- package/src/workflow/WorkflowTaskApprovalSummary.tsx +23 -23
- package/src/workflow/WorkflowTaskList.tsx +11 -11
- package/src/workflow/WorkflowTaskPalette.tsx +23 -23
- package/src/workflow/WorkflowTaskReviewGate.tsx +10 -10
- package/src/workflow/WorkflowVersionBadge.tsx +7 -7
- package/src/workflow/WorkflowVersionDiffViewer.tsx +24 -24
- package/src/workflow/WorkflowVersionTimeline.tsx +32 -32
- package/src/workflow/WorkflowVersionsTab.tsx +7 -7
- package/src/workflow/__tests__/WorkflowAgentCallTranscript.test.tsx +2 -2
- package/src/workflow/__tests__/WorkflowExecutionViewer.reconciliation.test.tsx +6 -6
- package/src/workflow/__tests__/WorkflowTaskApprovalCard.test.tsx +15 -15
- package/src/workflow/__tests__/WorkflowTaskApprovalSummary.test.tsx +1 -1
- package/src/workflow/__tests__/node-shell.test.ts +2 -0
- package/src/workflow/__tests__/task-type-visual-registry.test.ts +2 -0
- package/src/workflow/diff/DiffSummaryBar.tsx +5 -5
- package/src/workflow/execution-comparison/ComparisonSummaryCards.tsx +11 -11
- package/src/workflow/execution-comparison/ExecutionComparisonPicker.tsx +20 -20
- package/src/workflow/execution-comparison/ExecutionComparisonView.tsx +16 -16
- package/src/workflow/execution-comparison/TaskComparisonTable.tsx +44 -44
- package/src/workflow/execution-history/ExecutionFilterBar.tsx +12 -12
- package/src/workflow/execution-history/ExecutionHistoryTable.tsx +25 -25
- package/src/workflow/execution-history/FailureAnalysisPanel.tsx +18 -18
- package/src/workflow/execution-history/HealthMetricsStrip.tsx +16 -16
- package/src/workflow/execution-history/WorkflowExecutionHistory.tsx +1 -1
- package/src/workflow/facets/WorkflowArtifactsTab.tsx +3 -3
- package/src/workflow/facets/WorkflowChangesTab.tsx +8 -8
- package/src/workflow/facets/WorkflowUsageTab.tsx +24 -24
- package/src/workflow/inspector/EdgeInspector.tsx +14 -14
- package/src/workflow/inspector/InspectorHeader.tsx +18 -18
- package/src/workflow/inspector/InspectorShell.tsx +6 -6
- package/src/workflow/inspector/NestedTaskList.tsx +11 -11
- package/src/workflow/inspector/SentinelInspector.tsx +3 -3
- package/src/workflow/inspector/WorkflowSummaryPanel.tsx +33 -33
- package/src/workflow/inspector/forms/AgentCallForm.tsx +48 -48
- package/src/workflow/inspector/forms/HttpCallForm.tsx +22 -22
- package/src/workflow/inspector/tabs/AdvancedTab.tsx +12 -12
- package/src/workflow/inspector/tabs/BranchesTab.tsx +36 -36
- package/src/workflow/inspector/tabs/CatchTab.tsx +23 -23
- package/src/workflow/inspector/tabs/ConfigureTab.tsx +3 -3
- package/src/workflow/inspector/tabs/DataTab.tsx +6 -6
- package/src/workflow/inspector/tabs/DocsTab.tsx +11 -11
- package/src/workflow/inspector/tabs/IterationTab.tsx +25 -25
- package/src/workflow/inspector/tabs/RuntimeTab.tsx +16 -16
- package/src/workflow/instance/CreateWorkflowInstanceDialog.tsx +35 -35
- package/src/workflow/instance/RunVisibilityControl.tsx +10 -10
- package/src/workflow/instance/WorkflowInstanceDetailPanel.tsx +45 -45
- package/src/workflow/instance/WorkflowInstanceList.tsx +32 -32
- package/src/workflow/instance/__tests__/WorkflowInstanceList.test.tsx +0 -6
- package/src/workflow/node-shell/BranchBadge.tsx +9 -9
- package/src/workflow/node-shell/DiffBadge.tsx +4 -4
- package/src/workflow/node-shell/ExecutionBadge.tsx +17 -17
- package/src/workflow/node-shell/NodeActions.tsx +15 -15
- package/src/workflow/node-shell/NodeContent.tsx +9 -9
- package/src/workflow/node-shell/NodeHandles.tsx +5 -5
- package/src/workflow/node-shell/NodeShell.tsx +27 -27
- package/src/workflow/picker/BranchAddPopover.tsx +16 -16
- package/src/workflow/task-detail/StructuredDataViewer.tsx +34 -34
- package/src/workflow/templates/WorkflowTemplateCard.tsx +32 -32
- package/src/workflow/templates/WorkflowTemplateGallery.tsx +13 -13
- package/src/workflow/templates/WorkflowTemplatePreview.tsx +29 -29
- package/src/workflow/thread/WorkflowTaskThread.tsx +36 -36
- package/src/workspace/EditorTabs.tsx +8 -8
- package/src/workspace/ExplorerTree.tsx +17 -17
- package/src/workspace/FileViewer.tsx +139 -30
- package/src/workspace/PanelChip.tsx +4 -4
- package/src/workspace/WorkspaceContentSearch.tsx +26 -26
- package/src/workspace/WorkspaceEditor.tsx +44 -44
- package/src/workspace/WorkspaceFileReader.ts +55 -1
- package/src/workspace/WorkspaceFileSearch.tsx +22 -22
- package/src/workspace/WorkspaceSummary.tsx +6 -6
- package/src/workspace/WorkspaceSurface.tsx +42 -42
- package/src/workspace/__tests__/FileViewer.test.tsx +99 -1
- package/src/workspace/__tests__/WorkspaceContentSearch.test.tsx +5 -5
- package/src/workspace/__tests__/WorkspaceFileSearch.test.tsx +3 -3
- package/src/workspace/__tests__/WorkspaceSurface.test.tsx +6 -6
- package/src/workspace/index.ts +2 -0
- package/styles.css +1 -1
- package/switch/Switch.js +2 -2
- package/switch/Switch.js.map +1 -1
- package/tabs/Tabs.js +7 -7
- package/tabs/Tabs.js.map +1 -1
- package/usage/AgentBreakdownList.js +4 -4
- package/usage/AgentBreakdownList.js.map +1 -1
- package/usage/CreditRunwayIndicator.js +1 -1
- package/usage/CreditRunwayIndicator.js.map +1 -1
- package/usage/ExportButton.js +2 -2
- package/usage/ExportButton.js.map +1 -1
- package/usage/HarnessSplitCard.js +6 -6
- package/usage/HarnessSplitCard.js.map +1 -1
- package/usage/OrgUsagePanel.js +15 -15
- package/usage/OrgUsagePanel.js.map +1 -1
- package/user/UserMenu.js +3 -3
- package/user/UserMenu.js.map +1 -1
- package/version-history/DiffFileList.js +8 -8
- package/version-history/DiffFileList.js.map +1 -1
- package/version-history/DiffSummary.js +1 -1
- package/version-history/DiffSummary.js.map +1 -1
- package/version-history/DiffViewer.js +11 -11
- package/version-history/DiffViewer.js.map +1 -1
- package/version-history/MultiFileDiffView.js +2 -2
- package/version-history/MultiFileDiffView.js.map +1 -1
- package/version-history/UnifiedDiffView.js +1 -1
- package/version-history/UnifiedDiffView.js.map +1 -1
- package/version-history/VersionTimeline.js +4 -4
- package/version-history/VersionTimeline.js.map +1 -1
- package/version-history/VersionTimelineEntry.js +9 -9
- package/version-history/VersionTimelineEntry.js.map +1 -1
- package/workflow/ApprovalFormBuilder.js +15 -15
- package/workflow/ApprovalFormBuilder.js.map +1 -1
- package/workflow/BranchConditionBuilder.js +8 -8
- package/workflow/BranchConditionBuilder.js.map +1 -1
- package/workflow/CanvasContextMenu.js +6 -6
- package/workflow/CanvasContextMenu.js.map +1 -1
- package/workflow/CanvasTransitionEdge.js +11 -11
- package/workflow/CanvasTransitionEdge.js.map +1 -1
- package/workflow/CostByWorkflowChart.js +4 -4
- package/workflow/CostByWorkflowChart.js.map +1 -1
- package/workflow/ExecutionActiveTaskIndicator.js +8 -8
- package/workflow/ExecutionActiveTaskIndicator.js.map +1 -1
- package/workflow/ExecutionSummaryWidget.js +15 -15
- package/workflow/ExecutionSummaryWidget.js.map +1 -1
- package/workflow/ExecutionTrendChart.js +10 -10
- package/workflow/ExecutionTrendChart.js.map +1 -1
- package/workflow/FailedRunsWidget.js +3 -3
- package/workflow/FailedRunsWidget.js.map +1 -1
- package/workflow/PendingApprovalsWidget.js +3 -3
- package/workflow/PendingApprovalsWidget.js.map +1 -1
- package/workflow/TaskConfigForm.js +12 -12
- package/workflow/TaskConfigForm.js.map +1 -1
- package/workflow/TaskPickerPopover.js +5 -5
- package/workflow/TaskPickerPopover.js.map +1 -1
- package/workflow/ViewYamlDialog.js +2 -2
- package/workflow/ViewYamlDialog.js.map +1 -1
- package/workflow/WorkflowAgentCallTranscript.js +2 -2
- package/workflow/WorkflowAgentCallTranscript.js.map +1 -1
- package/workflow/WorkflowApprovalList.js +2 -2
- package/workflow/WorkflowApprovalList.js.map +1 -1
- package/workflow/WorkflowArchitectDialog.js +9 -9
- package/workflow/WorkflowArchitectDialog.js.map +1 -1
- package/workflow/WorkflowArtifactDocument.js +7 -7
- package/workflow/WorkflowArtifactDocument.js.map +1 -1
- package/workflow/WorkflowCanvasEditor.js +6 -6
- package/workflow/WorkflowCanvasEditor.js.map +1 -1
- package/workflow/WorkflowCanvasInner.js +1 -1
- package/workflow/WorkflowCanvasInner.js.map +1 -1
- package/workflow/WorkflowCodePreviewGraph.js +2 -2
- package/workflow/WorkflowCodePreviewGraph.js.map +1 -1
- package/workflow/WorkflowDashboard.js +1 -1
- package/workflow/WorkflowDashboard.js.map +1 -1
- package/workflow/WorkflowDetailView.js +15 -15
- package/workflow/WorkflowDetailView.js.map +1 -1
- package/workflow/WorkflowDiffGraph.js +3 -3
- package/workflow/WorkflowDiffGraph.js.map +1 -1
- package/workflow/WorkflowEditorView.js +13 -13
- package/workflow/WorkflowEditorView.js.map +1 -1
- package/workflow/WorkflowExecutionGraph.js +6 -6
- package/workflow/WorkflowExecutionGraph.js.map +1 -1
- package/workflow/WorkflowExecutionHeader.js +4 -4
- package/workflow/WorkflowExecutionHeader.js.map +1 -1
- package/workflow/WorkflowExecutionPhaseBadge.js +9 -9
- package/workflow/WorkflowExecutionPhaseBadge.js.map +1 -1
- package/workflow/WorkflowExecutionViewer.js +16 -16
- package/workflow/WorkflowExecutionViewer.js.map +1 -1
- package/workflow/WorkflowExplainDialog.js +2 -2
- package/workflow/WorkflowExplainDialog.js.map +1 -1
- package/workflow/WorkflowFileReviewList.js +2 -2
- package/workflow/WorkflowFileReviewList.js.map +1 -1
- package/workflow/WorkflowGraphFullscreenDialog.js +1 -1
- package/workflow/WorkflowGraphFullscreenDialog.js.map +1 -1
- package/workflow/WorkflowNode.js +1 -1
- package/workflow/WorkflowNode.js.map +1 -1
- package/workflow/WorkflowNodePopover.js +2 -2
- package/workflow/WorkflowNodePopover.js.map +1 -1
- package/workflow/WorkflowOverviewGraph.js +4 -4
- package/workflow/WorkflowOverviewGraph.js.map +1 -1
- package/workflow/WorkflowOverviewSummary.js +8 -8
- package/workflow/WorkflowOverviewSummary.js.map +1 -1
- package/workflow/WorkflowRefinePanel.js +5 -5
- package/workflow/WorkflowRefinePanel.js.map +1 -1
- package/workflow/WorkflowRepairCard.js +5 -5
- package/workflow/WorkflowRepairCard.js.map +1 -1
- package/workflow/WorkflowRunDialog.js +2 -2
- package/workflow/WorkflowRunDialog.js.map +1 -1
- package/workflow/WorkflowRunForm.js +10 -10
- package/workflow/WorkflowRunForm.js.map +1 -1
- package/workflow/WorkflowTaskApprovalCard.js +1 -1
- package/workflow/WorkflowTaskApprovalCard.js.map +1 -1
- package/workflow/WorkflowTaskApprovalSummary.js +8 -8
- package/workflow/WorkflowTaskApprovalSummary.js.map +1 -1
- package/workflow/WorkflowTaskList.js +4 -4
- package/workflow/WorkflowTaskList.js.map +1 -1
- package/workflow/WorkflowTaskPalette.js +5 -5
- package/workflow/WorkflowTaskPalette.js.map +1 -1
- package/workflow/WorkflowTaskReviewGate.js +3 -3
- package/workflow/WorkflowTaskReviewGate.js.map +1 -1
- package/workflow/WorkflowVersionBadge.js +1 -1
- package/workflow/WorkflowVersionBadge.js.map +1 -1
- package/workflow/WorkflowVersionDiffViewer.js +12 -12
- package/workflow/WorkflowVersionDiffViewer.js.map +1 -1
- package/workflow/WorkflowVersionTimeline.js +7 -7
- package/workflow/WorkflowVersionTimeline.js.map +1 -1
- package/workflow/WorkflowVersionsTab.js +1 -1
- package/workflow/WorkflowVersionsTab.js.map +1 -1
- package/workflow/diff/DiffSummaryBar.js +2 -2
- package/workflow/diff/DiffSummaryBar.js.map +1 -1
- package/workflow/execution-comparison/ComparisonSummaryCards.js +1 -1
- package/workflow/execution-comparison/ComparisonSummaryCards.js.map +1 -1
- package/workflow/execution-comparison/ExecutionComparisonPicker.js +7 -7
- package/workflow/execution-comparison/ExecutionComparisonPicker.js.map +1 -1
- package/workflow/execution-comparison/ExecutionComparisonView.js +4 -4
- package/workflow/execution-comparison/ExecutionComparisonView.js.map +1 -1
- package/workflow/execution-comparison/TaskComparisonTable.js +22 -22
- package/workflow/execution-comparison/TaskComparisonTable.js.map +1 -1
- package/workflow/execution-history/ExecutionFilterBar.js +5 -5
- package/workflow/execution-history/ExecutionFilterBar.js.map +1 -1
- package/workflow/execution-history/ExecutionHistoryTable.js +11 -11
- package/workflow/execution-history/ExecutionHistoryTable.js.map +1 -1
- package/workflow/execution-history/FailureAnalysisPanel.js +4 -4
- package/workflow/execution-history/FailureAnalysisPanel.js.map +1 -1
- package/workflow/execution-history/HealthMetricsStrip.js +8 -8
- package/workflow/execution-history/HealthMetricsStrip.js.map +1 -1
- package/workflow/execution-history/WorkflowExecutionHistory.js +1 -1
- package/workflow/execution-history/WorkflowExecutionHistory.js.map +1 -1
- package/workflow/facets/WorkflowArtifactsTab.js +2 -2
- package/workflow/facets/WorkflowArtifactsTab.js.map +1 -1
- package/workflow/facets/WorkflowChangesTab.js +5 -5
- package/workflow/facets/WorkflowChangesTab.js.map +1 -1
- package/workflow/facets/WorkflowUsageTab.js +6 -6
- package/workflow/facets/WorkflowUsageTab.js.map +1 -1
- package/workflow/inspector/EdgeInspector.js +1 -1
- package/workflow/inspector/EdgeInspector.js.map +1 -1
- package/workflow/inspector/InspectorHeader.js +7 -7
- package/workflow/inspector/InspectorHeader.js.map +1 -1
- package/workflow/inspector/InspectorShell.js +2 -2
- package/workflow/inspector/InspectorShell.js.map +1 -1
- package/workflow/inspector/NestedTaskList.js +2 -2
- package/workflow/inspector/NestedTaskList.js.map +1 -1
- package/workflow/inspector/SentinelInspector.js +1 -1
- package/workflow/inspector/SentinelInspector.js.map +1 -1
- package/workflow/inspector/WorkflowSummaryPanel.js +5 -5
- package/workflow/inspector/WorkflowSummaryPanel.js.map +1 -1
- package/workflow/inspector/forms/AgentCallForm.js +9 -9
- package/workflow/inspector/forms/AgentCallForm.js.map +1 -1
- package/workflow/inspector/forms/HttpCallForm.js +4 -4
- package/workflow/inspector/forms/HttpCallForm.js.map +1 -1
- package/workflow/inspector/tabs/AdvancedTab.js +2 -2
- package/workflow/inspector/tabs/AdvancedTab.js.map +1 -1
- package/workflow/inspector/tabs/BranchesTab.js +6 -6
- package/workflow/inspector/tabs/BranchesTab.js.map +1 -1
- package/workflow/inspector/tabs/CatchTab.js +2 -2
- package/workflow/inspector/tabs/CatchTab.js.map +1 -1
- package/workflow/inspector/tabs/ConfigureTab.js +3 -3
- package/workflow/inspector/tabs/ConfigureTab.js.map +1 -1
- package/workflow/inspector/tabs/DataTab.js +1 -1
- package/workflow/inspector/tabs/DataTab.js.map +1 -1
- package/workflow/inspector/tabs/DocsTab.js +1 -1
- package/workflow/inspector/tabs/DocsTab.js.map +1 -1
- package/workflow/inspector/tabs/IterationTab.js +3 -3
- package/workflow/inspector/tabs/IterationTab.js.map +1 -1
- package/workflow/inspector/tabs/RuntimeTab.js +9 -9
- package/workflow/inspector/tabs/RuntimeTab.js.map +1 -1
- package/workflow/instance/CreateWorkflowInstanceDialog.js +1 -1
- package/workflow/instance/CreateWorkflowInstanceDialog.js.map +1 -1
- package/workflow/instance/RunVisibilityControl.js +5 -5
- package/workflow/instance/RunVisibilityControl.js.map +1 -1
- package/workflow/instance/WorkflowInstanceDetailPanel.js +2 -2
- package/workflow/instance/WorkflowInstanceDetailPanel.js.map +1 -1
- package/workflow/instance/WorkflowInstanceList.js +4 -4
- package/workflow/instance/WorkflowInstanceList.js.map +1 -1
- package/workflow/node-shell/BranchBadge.js +3 -3
- package/workflow/node-shell/BranchBadge.js.map +1 -1
- package/workflow/node-shell/DiffBadge.js +4 -4
- package/workflow/node-shell/DiffBadge.js.map +1 -1
- package/workflow/node-shell/ExecutionBadge.js +10 -10
- package/workflow/node-shell/ExecutionBadge.js.map +1 -1
- package/workflow/node-shell/NodeActions.js +3 -3
- package/workflow/node-shell/NodeActions.js.map +1 -1
- package/workflow/node-shell/NodeContent.js +5 -5
- package/workflow/node-shell/NodeContent.js.map +1 -1
- package/workflow/node-shell/NodeHandles.js +5 -5
- package/workflow/node-shell/NodeHandles.js.map +1 -1
- package/workflow/node-shell/NodeShell.js +14 -14
- package/workflow/node-shell/NodeShell.js.map +1 -1
- package/workflow/picker/BranchAddPopover.js +2 -2
- package/workflow/picker/BranchAddPopover.js.map +1 -1
- package/workflow/task-detail/StructuredDataViewer.js +12 -12
- package/workflow/task-detail/StructuredDataViewer.js.map +1 -1
- package/workflow/templates/WorkflowTemplateCard.js +17 -17
- package/workflow/templates/WorkflowTemplateCard.js.map +1 -1
- package/workflow/templates/WorkflowTemplateGallery.js +5 -5
- package/workflow/templates/WorkflowTemplateGallery.js.map +1 -1
- package/workflow/templates/WorkflowTemplatePreview.js +5 -5
- package/workflow/templates/WorkflowTemplatePreview.js.map +1 -1
- package/workflow/thread/WorkflowTaskThread.js +16 -16
- package/workflow/thread/WorkflowTaskThread.js.map +1 -1
- package/workspace/EditorTabs.js +5 -5
- package/workspace/EditorTabs.js.map +1 -1
- package/workspace/ExplorerTree.js +6 -6
- package/workspace/ExplorerTree.js.map +1 -1
- package/workspace/FileViewer.d.ts.map +1 -1
- package/workspace/FileViewer.js +55 -17
- package/workspace/FileViewer.js.map +1 -1
- package/workspace/PanelChip.js +1 -1
- package/workspace/PanelChip.js.map +1 -1
- package/workspace/WorkspaceContentSearch.js +11 -11
- package/workspace/WorkspaceContentSearch.js.map +1 -1
- package/workspace/WorkspaceEditor.js +10 -10
- package/workspace/WorkspaceEditor.js.map +1 -1
- package/workspace/WorkspaceFileReader.d.ts +29 -1
- package/workspace/WorkspaceFileReader.d.ts.map +1 -1
- package/workspace/WorkspaceFileReader.js +42 -0
- package/workspace/WorkspaceFileReader.js.map +1 -1
- package/workspace/WorkspaceFileSearch.js +9 -9
- package/workspace/WorkspaceFileSearch.js.map +1 -1
- package/workspace/WorkspaceSummary.js +3 -3
- package/workspace/WorkspaceSummary.js.map +1 -1
- package/workspace/WorkspaceSurface.js +22 -22
- package/workspace/WorkspaceSurface.js.map +1 -1
- package/workspace/index.d.ts +1 -1
- package/workspace/index.d.ts.map +1 -1
- package/workspace/index.js +1 -1
- package/workspace/index.js.map +1 -1
|
@@ -26,10 +26,10 @@ const PHASE_LABELS = {
|
|
|
26
26
|
*/
|
|
27
27
|
export function StatusBadge({ phase, label, tooltip, className, }) {
|
|
28
28
|
const displayLabel = label ?? PHASE_LABELS[phase];
|
|
29
|
-
const badge = (_jsxs("span", { className: cn("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-medium leading-none", statusClasses(phase), className), children: [_jsx("span", { className: cn("size-1.5 shrink-0 rounded-full", dotClasses(phase)), "aria-hidden": "true" }), displayLabel] }));
|
|
29
|
+
const badge = (_jsxs("span", { className: cn("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[11px] stg:font-medium stg:leading-none", statusClasses(phase), className), children: [_jsx("span", { className: cn("stg:size-1.5 stg:shrink-0 stg:rounded-full", dotClasses(phase)), "aria-hidden": "true" }), displayLabel] }));
|
|
30
30
|
if (!tooltip)
|
|
31
31
|
return badge;
|
|
32
|
-
return (_jsx("span", { title: tooltip, className: "inline-flex", children: badge }));
|
|
32
|
+
return (_jsx("span", { title: tooltip, className: "stg:inline-flex", children: badge }));
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Maps a status phase to Tailwind classes using `--stgm-status-*` tokens.
|
|
@@ -38,38 +38,38 @@ export function StatusBadge({ phase, label, tooltip, className, }) {
|
|
|
38
38
|
function statusClasses(phase) {
|
|
39
39
|
switch (phase) {
|
|
40
40
|
case "ready":
|
|
41
|
-
return "bg-[var(--stgm-status-ready-subtle)] text-[var(--stgm-status-ready)]";
|
|
41
|
+
return "stg:bg-[var(--stgm-status-ready-subtle)] stg:text-[var(--stgm-status-ready)]";
|
|
42
42
|
case "running":
|
|
43
|
-
return "bg-[var(--stgm-status-running-subtle)] text-[var(--stgm-status-running)]";
|
|
43
|
+
return "stg:bg-[var(--stgm-status-running-subtle)] stg:text-[var(--stgm-status-running)]";
|
|
44
44
|
case "pending":
|
|
45
|
-
return "bg-[var(--stgm-status-pending-subtle)] text-[var(--stgm-status-pending)]";
|
|
45
|
+
return "stg:bg-[var(--stgm-status-pending-subtle)] stg:text-[var(--stgm-status-pending)]";
|
|
46
46
|
case "degraded":
|
|
47
|
-
return "bg-[var(--stgm-status-degraded-subtle)] text-[var(--stgm-status-degraded)]";
|
|
47
|
+
return "stg:bg-[var(--stgm-status-degraded-subtle)] stg:text-[var(--stgm-status-degraded)]";
|
|
48
48
|
case "failed":
|
|
49
|
-
return "bg-[var(--stgm-status-failed-subtle)] text-[var(--stgm-status-failed)]";
|
|
49
|
+
return "stg:bg-[var(--stgm-status-failed-subtle)] stg:text-[var(--stgm-status-failed)]";
|
|
50
50
|
case "disabled":
|
|
51
|
-
return "bg-[var(--stgm-status-disabled-subtle)] text-[var(--stgm-status-disabled)]";
|
|
51
|
+
return "stg:bg-[var(--stgm-status-disabled-subtle)] stg:text-[var(--stgm-status-disabled)]";
|
|
52
52
|
case "draft":
|
|
53
|
-
return "bg-[var(--stgm-status-draft-subtle)] text-[var(--stgm-status-draft)]";
|
|
53
|
+
return "stg:bg-[var(--stgm-status-draft-subtle)] stg:text-[var(--stgm-status-draft)]";
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
/** Maps a status phase to the dot's background color (the main token). */
|
|
57
57
|
function dotClasses(phase) {
|
|
58
58
|
switch (phase) {
|
|
59
59
|
case "ready":
|
|
60
|
-
return "bg-[var(--stgm-status-ready)]";
|
|
60
|
+
return "stg:bg-[var(--stgm-status-ready)]";
|
|
61
61
|
case "running":
|
|
62
|
-
return "bg-[var(--stgm-status-running)]";
|
|
62
|
+
return "stg:bg-[var(--stgm-status-running)]";
|
|
63
63
|
case "pending":
|
|
64
|
-
return "bg-[var(--stgm-status-pending)]";
|
|
64
|
+
return "stg:bg-[var(--stgm-status-pending)]";
|
|
65
65
|
case "degraded":
|
|
66
|
-
return "bg-[var(--stgm-status-degraded)]";
|
|
66
|
+
return "stg:bg-[var(--stgm-status-degraded)]";
|
|
67
67
|
case "failed":
|
|
68
|
-
return "bg-[var(--stgm-status-failed)]";
|
|
68
|
+
return "stg:bg-[var(--stgm-status-failed)]";
|
|
69
69
|
case "disabled":
|
|
70
|
-
return "bg-[var(--stgm-status-disabled)]";
|
|
70
|
+
return "stg:bg-[var(--stgm-status-disabled)]";
|
|
71
71
|
case "draft":
|
|
72
|
-
return "bg-[var(--stgm-status-draft)]";
|
|
72
|
+
return "stg:bg-[var(--stgm-status-draft)]";
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
//# sourceMappingURL=StatusBadge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBadge.js","sourceRoot":"","sources":["../../../src/resource-workbench/components/StatusBadge.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAkBpC,MAAM,YAAY,GAAgC;IAChD,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACf,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,KAAK,EACL,KAAK,EACL,OAAO,EACP,SAAS,GACQ;IACjB,MAAM,YAAY,GAAG,KAAK,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC;IAElD,MAAM,KAAK,GAAG,CACZ,gBACE,SAAS,EAAE,EAAE,CACX,
|
|
1
|
+
{"version":3,"file":"StatusBadge.js","sourceRoot":"","sources":["../../../src/res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F,KAAK,OAAO;YACV,OAAO,8EAA8E,CAAC;IAC1F,CAAC;AACH,CAAC;AAED,0EAA0E;AAC1E,SAAS,UAAU,CAAC,KAAkB;IACpC,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,OAAO;YACV,OAAO,mCAAmC,CAAC;QAC7C,KAAK,SAAS;YACZ,OAAO,qCAAqC,CAAC;QAC/C,KAAK,SAAS;YACZ,OAAO,qCAAqC,CAAC;QAC/C,KAAK,UAAU;YACb,OAAO,sCAAsC,CAAC;QAChD,KAAK,QAAQ;YACX,OAAO,oCAAoC,CAAC;QAC9C,KAAK,UAAU;YACb,OAAO,sCAAsC,CAAC;QAChD,KAAK,OAAO;YACV,OAAO,mCAAmC,CAAC;IAC/C,CAAC;AACH,CAAC"}
|
|
@@ -14,12 +14,12 @@ const MODE_META = {
|
|
|
14
14
|
* readers.
|
|
15
15
|
*/
|
|
16
16
|
export function ViewSwitcher({ value, onChange, modes = ["table", "cards", "list"], className, }) {
|
|
17
|
-
return (_jsx("div", { role: "radiogroup", "aria-label": "View mode", className: cn("inline-flex rounded-md border border-input", className), children: modes.map((mode) => {
|
|
17
|
+
return (_jsx("div", { role: "radiogroup", "aria-label": "View mode", className: cn("stg:inline-flex stg:rounded-md stg:border stg:border-input", className), children: modes.map((mode) => {
|
|
18
18
|
const { label, icon: Icon } = MODE_META[mode];
|
|
19
19
|
const isActive = value === mode;
|
|
20
|
-
return (_jsx("button", { type: "button", role: "radio", "aria-checked": isActive, "aria-label": label, onClick: () => onChange(mode), className: cn("inline-flex items-center justify-center px-2 py-1.5 transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:z-10", "first:rounded-l-[calc(var(--stgm-radius)-1px)] last:rounded-r-[calc(var(--stgm-radius)-1px)]", "border-r border-input last:border-r-0", isActive
|
|
21
|
-
? "bg-accent text-accent-foreground"
|
|
22
|
-
: "text-muted-foreground hover:text-foreground hover:bg-accent-hover"), children: _jsx(Icon, {}) }, mode));
|
|
20
|
+
return (_jsx("button", { type: "button", role: "radio", "aria-checked": isActive, "aria-label": label, onClick: () => onChange(mode), className: cn("stg:inline-flex stg:items-center stg:justify-center stg:px-2 stg:py-1.5 stg:transition-colors", "stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:z-10", "stg:first:rounded-l-[calc(var(--stgm-radius)-1px)] stg:last:rounded-r-[calc(var(--stgm-radius)-1px)]", "stg:border-r stg:border-input stg:last:border-r-0", isActive
|
|
21
|
+
? "stg:bg-accent stg:text-accent-foreground"
|
|
22
|
+
: "stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover"), children: _jsx(Icon, {}) }, mode));
|
|
23
23
|
}) }));
|
|
24
24
|
}
|
|
25
25
|
// ---------------------------------------------------------------------------
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewSwitcher.js","sourceRoot":"","sources":["../../../src/resource-workbench/components/ViewSwitcher.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAepC,MAAM,SAAS,GAAuE;IACpF,KAAK,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;IAC/C,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;IAC9C,IAAI,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;CAC7C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,KAAK,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAClC,SAAS,GACS;IAClB,OAAO,CACL,cACE,IAAI,EAAC,YAAY,gBACN,WAAW,EACtB,SAAS,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"ViewSwitcher.js","sourceRoot":"","sources":["../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C,GAAG,GAAG,IAChD,CACP,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ;IACf,OAAO,CACL,eACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,MAAM,EAClB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,aAElB,eAAM,CAAC,EAAC,2BAA2B,GAAG,EACtC,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,cAAc,EAAC,MAAM,EAAC,MAAM,GAAG,EACnE,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,cAAc,EAAC,MAAM,EAAC,MAAM,GAAG,EACnE,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,cAAc,EAAC,MAAM,EAAC,MAAM,GAAG,IAChE,CACP,CAAC;AACJ,CAAC"}
|
package/schedule/CadenceField.js
CHANGED
|
@@ -37,7 +37,7 @@ export function CadenceField({ value, onChange, timeZone, disabled, }) {
|
|
|
37
37
|
const cronError = value.kind === "custom" && value.cron.trim() !== ""
|
|
38
38
|
? validateCron(value.cron.trim())
|
|
39
39
|
: null;
|
|
40
|
-
return (_jsxs("div", { className: "space-y-2", children: [_jsx("div", { role: "radiogroup", "aria-label": "Cadence", "aria-disabled": disabled || undefined, className: cn("inline-flex flex-wrap rounded-md bg-muted p-0.5", disabled && "pointer-events-none opacity-50"), children: KIND_OPTIONS.map((option) => {
|
|
40
|
+
return (_jsxs("div", { className: "stg:space-y-2", children: [_jsx("div", { role: "radiogroup", "aria-label": "Cadence", "aria-disabled": disabled || undefined, className: cn("stg:inline-flex stg:flex-wrap stg:rounded-md stg:bg-muted stg:p-0.5", disabled && "stg:pointer-events-none stg:opacity-50"), children: KIND_OPTIONS.map((option) => {
|
|
41
41
|
const isSelected = value.kind === option.kind;
|
|
42
42
|
return (_jsx("button", { type: "button", role: "radio", "aria-checked": isSelected, tabIndex: isSelected ? 0 : -1, disabled: disabled, onClick: () => switchKind(option.kind), onKeyDown: (e) => {
|
|
43
43
|
if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
|
|
@@ -47,13 +47,13 @@ export function CadenceField({ value, onChange, timeZone, disabled, }) {
|
|
|
47
47
|
const next = KIND_OPTIONS[(idx + delta + KIND_OPTIONS.length) % KIND_OPTIONS.length];
|
|
48
48
|
switchKind(next.kind);
|
|
49
49
|
}
|
|
50
|
-
}, className: cn("inline-flex cursor-pointer items-center rounded-sm px-2.5 py-1 text-xs font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", isSelected
|
|
51
|
-
? "bg-background text-foreground shadow-sm"
|
|
52
|
-
: "text-muted-foreground hover:text-foreground"), children: option.label }, option.kind));
|
|
53
|
-
}) }), value.kind === "hourly" && (_jsxs("div", { className: "flex items-center gap-2 text-xs text-foreground", children: [_jsx("label", { htmlFor: `${groupId}-minute`, children: "At minute" }), _jsx("input", { id: `${groupId}-minute`, type: "number", min: 0, max: 59, value: value.minute, onChange: (e) => onChange({
|
|
50
|
+
}, className: cn("stg:inline-flex stg:cursor-pointer stg:items-center stg:rounded-sm stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium stg:transition-colors", "stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring", isSelected
|
|
51
|
+
? "stg:bg-background stg:text-foreground stg:shadow-sm"
|
|
52
|
+
: "stg:text-muted-foreground stg:hover:text-foreground"), children: option.label }, option.kind));
|
|
53
|
+
}) }), value.kind === "hourly" && (_jsxs("div", { className: "stg:flex stg:items-center stg:gap-2 stg:text-xs stg:text-foreground", children: [_jsx("label", { htmlFor: `${groupId}-minute`, children: "At minute" }), _jsx("input", { id: `${groupId}-minute`, type: "number", min: 0, max: 59, value: value.minute, onChange: (e) => onChange({
|
|
54
54
|
kind: "hourly",
|
|
55
55
|
minute: clampInt(e.target.value, 0, 59, value.minute),
|
|
56
|
-
}), disabled: disabled, className: numberInputClasses })] })), value.kind === "daily" && (_jsx(TimeInput, { id: `${groupId}-time`, hour: value.hour, minute: value.minute, disabled: disabled, onChange: (hour, minute) => onChange({ kind: "daily", hour, minute }) })), value.kind === "weekly" && (_jsxs("div", { className: "space-y-2", children: [_jsx("div", { role: "group", "aria-label": "Days of week", className: "flex flex-wrap gap-1", children: WEEKDAY_LABELS.map((label, day) => {
|
|
56
|
+
}), disabled: disabled, className: numberInputClasses })] })), value.kind === "daily" && (_jsx(TimeInput, { id: `${groupId}-time`, hour: value.hour, minute: value.minute, disabled: disabled, onChange: (hour, minute) => onChange({ kind: "daily", hour, minute }) })), value.kind === "weekly" && (_jsxs("div", { className: "stg:space-y-2", children: [_jsx("div", { role: "group", "aria-label": "Days of week", className: "stg:flex stg:flex-wrap stg:gap-1", children: WEEKDAY_LABELS.map((label, day) => {
|
|
57
57
|
const isOn = value.days.includes(day);
|
|
58
58
|
// The last selected day cannot be removed — a weekly
|
|
59
59
|
// schedule with zero days is not expressible in cron.
|
|
@@ -63,24 +63,24 @@ export function CadenceField({ value, onChange, timeZone, disabled, }) {
|
|
|
63
63
|
days: isOn
|
|
64
64
|
? value.days.filter((d) => d !== day)
|
|
65
65
|
: [...value.days, day].sort((a, b) => a - b),
|
|
66
|
-
}), className: cn("inline-flex h-7 w-9 items-center justify-center rounded-md border text-xs font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "disabled:pointer-events-none", isOn
|
|
67
|
-
? "border-primary bg-primary text-primary-foreground"
|
|
68
|
-
: "border-input bg-background text-muted-foreground hover:text-foreground", isLastSelected && "opacity-70"), children: label.slice(0, 3) }, label));
|
|
69
|
-
}) }), _jsx(TimeInput, { id: `${groupId}-time`, hour: value.hour, minute: value.minute, disabled: disabled, onChange: (hour, minute) => onChange({ ...value, hour, minute }) })] })), value.kind === "monthly" && (_jsxs("div", { className: "space-y-2", children: [_jsxs("div", { className: "flex items-center gap-2 text-xs text-foreground", children: [_jsx("label", { htmlFor: `${groupId}-day`, children: "On day" }), _jsx("input", { id: `${groupId}-day`, type: "number", min: 1, max: 31, value: value.day, onChange: (e) => onChange({
|
|
66
|
+
}), className: cn("stg:inline-flex stg:h-7 stg:w-9 stg:items-center stg:justify-center stg:rounded-md stg:border stg:text-xs stg:font-medium stg:transition-colors", "stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring", "stg:disabled:pointer-events-none", isOn
|
|
67
|
+
? "stg:border-primary stg:bg-primary stg:text-primary-foreground"
|
|
68
|
+
: "stg:border-input stg:bg-background stg:text-muted-foreground stg:hover:text-foreground", isLastSelected && "stg:opacity-70"), children: label.slice(0, 3) }, label));
|
|
69
|
+
}) }), _jsx(TimeInput, { id: `${groupId}-time`, hour: value.hour, minute: value.minute, disabled: disabled, onChange: (hour, minute) => onChange({ ...value, hour, minute }) })] })), value.kind === "monthly" && (_jsxs("div", { className: "stg:space-y-2", children: [_jsxs("div", { className: "stg:flex stg:items-center stg:gap-2 stg:text-xs stg:text-foreground", children: [_jsx("label", { htmlFor: `${groupId}-day`, children: "On day" }), _jsx("input", { id: `${groupId}-day`, type: "number", min: 1, max: 31, value: value.day, onChange: (e) => onChange({
|
|
70
70
|
...value,
|
|
71
71
|
day: clampInt(e.target.value, 1, 31, value.day),
|
|
72
|
-
}), disabled: disabled, className: numberInputClasses }), _jsx("span", { className: "text-muted-foreground", children: "of every month" })] }), value.day >= 29 && (_jsxs("p", { className: "text-[0.65rem] text-muted-foreground", children: ["Months without day ", value.day, " are skipped \u2014 February never fires a day-", value.day, " schedule", value.day === 29 ? " except in leap years" : "", "."] })), _jsx(TimeInput, { id: `${groupId}-time`, hour: value.hour, minute: value.minute, disabled: disabled, onChange: (hour, minute) => onChange({ ...value, hour, minute }) })] })), value.kind === "custom" && (_jsxs("div", { className: "space-y-1", children: [_jsx("input", { type: "text", "aria-label": "Cron expression", placeholder: "e.g. 0 9 * * MON-FRI", value: value.cron, onChange: (e) => onChange({ kind: "custom", cron: e.target.value }), disabled: disabled, className: cn("w-full rounded-md border border-input bg-background px-2.5 py-1.5 font-mono text-xs text-foreground", "placeholder:font-sans placeholder:text-muted-foreground", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-50", cronError && "border-destructive") }), cronError ? (_jsx("p", { className: "text-[0.65rem] text-destructive", role: "alert", children: cronError })) : (_jsx("p", { className: "text-[0.65rem] text-muted-foreground", children: "5 fields (minute hour day-of-month month day-of-week) or @hourly, @daily, @weekly, @monthly, @yearly." }))] })), !(value.kind === "custom" && (cronError || value.cron.trim() === "")) && (_jsx("p", { className: "text-xs text-muted-foreground", "data-testid": "cadence-summary", children: describeCadence(value, timeZone) }))] }));
|
|
72
|
+
}), disabled: disabled, className: numberInputClasses }), _jsx("span", { className: "stg:text-muted-foreground", children: "of every month" })] }), value.day >= 29 && (_jsxs("p", { className: "stg:text-[0.65rem] stg:text-muted-foreground", children: ["Months without day ", value.day, " are skipped \u2014 February never fires a day-", value.day, " schedule", value.day === 29 ? " except in leap years" : "", "."] })), _jsx(TimeInput, { id: `${groupId}-time`, hour: value.hour, minute: value.minute, disabled: disabled, onChange: (hour, minute) => onChange({ ...value, hour, minute }) })] })), value.kind === "custom" && (_jsxs("div", { className: "stg:space-y-1", children: [_jsx("input", { type: "text", "aria-label": "Cron expression", placeholder: "e.g. 0 9 * * MON-FRI", value: value.cron, onChange: (e) => onChange({ kind: "custom", cron: e.target.value }), disabled: disabled, className: cn("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:font-mono stg:text-xs stg:text-foreground", "stg:placeholder:font-sans stg:placeholder:text-muted-foreground", "stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring", "stg:disabled:pointer-events-none stg:disabled:opacity-50", cronError && "stg:border-destructive") }), cronError ? (_jsx("p", { className: "stg:text-[0.65rem] stg:text-destructive", role: "alert", children: cronError })) : (_jsx("p", { className: "stg:text-[0.65rem] stg:text-muted-foreground", children: "5 fields (minute hour day-of-month month day-of-week) or @hourly, @daily, @weekly, @monthly, @yearly." }))] })), !(value.kind === "custom" && (cronError || value.cron.trim() === "")) && (_jsx("p", { className: "stg:text-xs stg:text-muted-foreground", "data-testid": "cadence-summary", children: describeCadence(value, timeZone) }))] }));
|
|
73
73
|
}
|
|
74
74
|
// ---------------------------------------------------------------------------
|
|
75
75
|
// Private helpers
|
|
76
76
|
// ---------------------------------------------------------------------------
|
|
77
|
-
const numberInputClasses = cn("w-16 rounded-md border border-input bg-background px-2 py-1 text-xs text-foreground", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-50");
|
|
77
|
+
const numberInputClasses = cn("stg:w-16 stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2 stg:py-1 stg:text-xs stg:text-foreground", "stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring", "stg:disabled:pointer-events-none stg:disabled:opacity-50");
|
|
78
78
|
function TimeInput({ id, hour, minute, disabled, onChange, }) {
|
|
79
|
-
return (_jsxs("div", { className: "flex items-center gap-2 text-xs text-foreground", children: [_jsx("label", { htmlFor: id, children: "At" }), _jsx("input", { id: id, type: "time", value: formatTime(hour, minute), onChange: (e) => {
|
|
79
|
+
return (_jsxs("div", { className: "stg:flex stg:items-center stg:gap-2 stg:text-xs stg:text-foreground", children: [_jsx("label", { htmlFor: id, children: "At" }), _jsx("input", { id: id, type: "time", value: formatTime(hour, minute), onChange: (e) => {
|
|
80
80
|
const [h, m] = e.target.value.split(":").map(Number);
|
|
81
81
|
if (Number.isInteger(h) && Number.isInteger(m))
|
|
82
82
|
onChange(h, m);
|
|
83
|
-
}, disabled: disabled, className: cn("rounded-md border border-input bg-background px-2 py-1 text-xs text-foreground", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-50") })] }));
|
|
83
|
+
}, disabled: disabled, className: cn("stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2 stg:py-1 stg:text-xs stg:text-foreground", "stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring", "stg:disabled:pointer-events-none stg:disabled:opacity-50") })] }));
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
86
|
* Next preset when the user switches kind, carrying the time of day
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CadenceField.js","sourceRoot":"","sources":["../../src/schedule/CadenceField.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EACL,aAAa,EACb,eAAe,EACf,UAAU,EACV,YAAY,EACZ,cAAc,GAGf,MAAM,cAAc,CAAC;AActB,MAAM,YAAY,GAAoD;IACpE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;IACnC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;IACnC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACrC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE;CACzC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,GACU;IAClB,MAAM,OAAO,GAAG,KAAK,EAAE,CAAC;IAExB,MAAM,UA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Icon, { className: "size-6 text-muted-foreground" }),
|
|
297
|
+
icon: _jsx(ScheduleIcon, { className: "stg:size-6 stg:text-muted-foreground" }),
|
|
298
298
|
createdAt: specAudit?.createdAt ? timestampDate(specAudit.createdAt) : null,
|
|
299
299
|
updatedAt: specAudit?.updatedAt ? timestampDate(specAudit.updatedAt) : null,
|
|
300
300
|
status: stateInfo.phase,
|
|
301
301
|
statusLabel: stateInfo.label,
|
|
302
302
|
};
|
|
303
|
-
const headerBanner = stateInfo.state === "disabled" ? (_jsxs(StateBanner, { title: "Schedule is disabled", onAction: () => void handleToggleEnabled(), actionLabel: "Enable schedule", actionBusy: isToggling, children: ["This schedule is staged disabled (", _jsx("code", { className: "font-mono", children: "spec.enabled" }), " is off) \u2014 it will not fire on its cron cadence. Use", " ", _jsx("span", { className: "font-medium text-foreground", children: "Enable & run now" }), " ", "to enable it and start one test run, or Enable it here to hand it to the cadence.", stateInfo.isPaused && (_jsxs(_Fragment, { children: [" ", "It is also paused by the platform (", status?.pausedReason, "); after enabling, use Resume to clear the pause."] }))] })) : stateInfo.state === "paused" ? (_jsxs(StateBanner, { title: "Paused by the platform", onAction: () => void handleResume(), actionLabel: "Resume schedule", actionBusy: isResuming, children: [status?.pausedReason, " \u2014 resuming clears the pause and the failure streak. Re-applying the manifest does not."] })) : undefined;
|
|
304
|
-
const overviewContent = (_jsxs("div", { className: "flex flex-col gap-6", children: [_jsx(Section, { title: "Definition", children: _jsxs("dl", { className: "divide-y divide-border", children: [_jsx(DetailRow, { label: "Cadence", children: editable ? (_jsx(CadenceInlineEditor, { cron: spec?.cron ?? "", timeZone: spec?.timeZone ?? "", onSave: (cron, timeZone) => saveSpecField("cadence", (s) => {
|
|
303
|
+
const headerBanner = stateInfo.state === "disabled" ? (_jsxs(StateBanner, { title: "Schedule is disabled", onAction: () => void handleToggleEnabled(), actionLabel: "Enable schedule", actionBusy: isToggling, children: ["This schedule is staged disabled (", _jsx("code", { className: "stg:font-mono", children: "spec.enabled" }), " is off) \u2014 it will not fire on its cron cadence. Use", " ", _jsx("span", { className: "stg:font-medium stg:text-foreground", children: "Enable & run now" }), " ", "to enable it and start one test run, or Enable it here to hand it to the cadence.", stateInfo.isPaused && (_jsxs(_Fragment, { children: [" ", "It is also paused by the platform (", status?.pausedReason, "); after enabling, use Resume to clear the pause."] }))] })) : stateInfo.state === "paused" ? (_jsxs(StateBanner, { title: "Paused by the platform", onAction: () => void handleResume(), actionLabel: "Resume schedule", actionBusy: isResuming, children: [status?.pausedReason, " \u2014 resuming clears the pause and the failure streak. Re-applying the manifest does not."] })) : undefined;
|
|
304
|
+
const overviewContent = (_jsxs("div", { className: "stg:flex stg:flex-col stg:gap-6", children: [_jsx(Section, { title: "Definition", children: _jsxs("dl", { className: "stg:divide-y stg:divide-border", children: [_jsx(DetailRow, { label: "Cadence", children: editable ? (_jsx(CadenceInlineEditor, { cron: spec?.cron ?? "", timeZone: spec?.timeZone ?? "", onSave: (cron, timeZone) => saveSpecField("cadence", (s) => {
|
|
305
305
|
s.cron = cron;
|
|
306
306
|
s.timeZone = timeZone;
|
|
307
307
|
}), isSaving: isUpdating, error: saveError?.field === "cadence" ? saveError.message : undefined })) : (_jsx(CadenceSummary, { cron: spec?.cron ?? "", timeZone: spec?.timeZone ?? "" })) }), _jsx(DetailRow, { label: "Target agent", children: target?.agentRef ? (_jsx(ReferenceLink, { label: `${target.agentRef.org}/${target.agentRef.slug}`, onNavigate: onNavigateToAgent
|
|
308
308
|
? () => onNavigateToAgent(target.agentRef.org, target.agentRef.slug)
|
|
309
|
-
: undefined })) : (_jsx("span", { className: "text-sm text-muted-foreground", children: "\u2014" })) }), _jsx(DetailRow, { label: "Message", children: editable && target ? (_jsx(InlineEditTextarea, { value: target.message ?? "", placeholder: "The instruction the agent receives on every fire \u2014 write it for a run with no human present.", onSave: (v) => saveSpecField("message", (s) => {
|
|
309
|
+
: undefined })) : (_jsx("span", { className: "stg:text-sm stg:text-muted-foreground", children: "\u2014" })) }), _jsx(DetailRow, { label: "Message", children: editable && target ? (_jsx(InlineEditTextarea, { value: target.message ?? "", placeholder: "The instruction the agent receives on every fire \u2014 write it for a run with no human present.", onSave: (v) => saveSpecField("message", (s) => {
|
|
310
310
|
if (s.target.case === "agent") {
|
|
311
311
|
s.target.value.message = v.trim();
|
|
312
312
|
}
|
|
313
|
-
}), isSaving: isUpdating, error: saveError?.field === "message" ? saveError.message : undefined, validate: validateMessage })) : (_jsx("p", { className: "whitespace-pre-wrap break-words text-sm text-foreground", children: target?.message || "—" })) }), _jsx(DetailRow, { label: "Environments", children: editable && target ? (_jsx(EnvironmentsInlineEditor, { org: scheduleOrg, refs: target.environmentRefs ?? [], onSave: (refs) => saveSpecField("environments", (s) => {
|
|
313
|
+
}), isSaving: isUpdating, error: saveError?.field === "message" ? saveError.message : undefined, validate: validateMessage })) : (_jsx("p", { className: "stg:whitespace-pre-wrap stg:break-words stg:text-sm stg:text-foreground", children: target?.message || "—" })) }), _jsx(DetailRow, { label: "Environments", children: editable && target ? (_jsx(EnvironmentsInlineEditor, { org: scheduleOrg, refs: target.environmentRefs ?? [], onSave: (refs) => saveSpecField("environments", (s) => {
|
|
314
314
|
if (s.target.case === "agent") {
|
|
315
315
|
s.target.value.environmentRefs = refs.map((r) => create(ApiResourceReferenceSchema, {
|
|
316
316
|
org: r.org,
|
|
@@ -330,13 +330,13 @@ export function ScheduleDetailView({ org, slug, onNavigateToAgent, onNavigateToE
|
|
|
330
330
|
if (s.target.case === "agent") {
|
|
331
331
|
applyBudget(s.target.value, maxCostUsd);
|
|
332
332
|
}
|
|
333
|
-
}), isSaving: isUpdating, error: saveError?.field === "budget" ? saveError.message : undefined })) : (_jsx(BudgetSummary, { config: target?.runConfig })) })] }) }), _jsx(Section, { title: "Status", children: _jsxs("dl", { className: "divide-y divide-border", children: [_jsx(DetailRow, { label: "Next fire", children: _jsx("span", { className: "text-sm text-foreground", children: stateInfo.state === "active" && status?.nextFireAt
|
|
333
|
+
}), isSaving: isUpdating, error: saveError?.field === "budget" ? saveError.message : undefined })) : (_jsx(BudgetSummary, { config: target?.runConfig })) })] }) }), _jsx(Section, { title: "Status", children: _jsxs("dl", { className: "stg:divide-y stg:divide-border", children: [_jsx(DetailRow, { label: "Next fire", children: _jsx("span", { className: "stg:text-sm stg:text-foreground", children: stateInfo.state === "active" && status?.nextFireAt
|
|
334
334
|
? formatNextFire(timestampDate(status.nextFireAt), renderNow)
|
|
335
|
-
: "—" }) }), _jsx(DetailRow, { label: "Last fired", children: _jsx("span", { className: "text-sm text-foreground", children: status?.lastFireAt
|
|
335
|
+
: "—" }) }), _jsx(DetailRow, { label: "Last fired", children: _jsx("span", { className: "stg:text-sm stg:text-foreground", children: status?.lastFireAt
|
|
336
336
|
? formatRelativeTime(timestampDate(status.lastFireAt), renderNow)
|
|
337
337
|
: "Never" }) }), _jsx(DetailRow, { label: "Last execution", children: status?.lastExecutionId ? (_jsx(ReferenceLink, { label: status.lastExecutionId, mono: true, onNavigate: onNavigateToExecution
|
|
338
338
|
? () => onNavigateToExecution(status.lastExecutionId)
|
|
339
|
-
: undefined })) : (_jsx("span", { className: "text-sm text-muted-foreground", children: "\u2014" })) }), _jsx(DetailRow, { label: "Failure streak", children: _jsx(FailureStreak, { count: status?.consecutiveFailures ?? 0 }) })] }) }), _jsx(Section, { title: "Recent runs", headerActions: totalRunCount > recentRuns.length ? (_jsxs("button", { type: "button", onClick: () => effectiveOnTabChange(RUNS_TAB_ID), className: cn("text-xs font-medium text-primary underline-offset-2 hover:underline", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm"), children: ["View all ", totalRunCount, " runs"] })) : undefined, children: _jsx(ScheduleRunsCompactList, { runs: recentRuns, isLoading: recentRunsLoading, now: renderNow, onNavigateToExecution: onNavigateToExecution }) })] }));
|
|
339
|
+
: undefined })) : (_jsx("span", { className: "stg:text-sm stg:text-muted-foreground", children: "\u2014" })) }), _jsx(DetailRow, { label: "Failure streak", children: _jsx(FailureStreak, { count: status?.consecutiveFailures ?? 0 }) })] }) }), _jsx(Section, { title: "Recent runs", headerActions: totalRunCount > recentRuns.length ? (_jsxs("button", { type: "button", onClick: () => effectiveOnTabChange(RUNS_TAB_ID), className: cn("stg:text-xs stg:font-medium stg:text-primary stg:underline-offset-2 stg:hover:underline", "stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:rounded-sm"), children: ["View all ", totalRunCount, " runs"] })) : undefined, children: _jsx(ScheduleRunsCompactList, { runs: recentRuns, isLoading: recentRunsLoading, now: renderNow, onNavigateToExecution: onNavigateToExecution }) })] }));
|
|
340
340
|
let tabContent;
|
|
341
341
|
if (activeAdditionalTab) {
|
|
342
342
|
tabContent = activeAdditionalTab.content;
|
|
@@ -353,7 +353,7 @@ export function ScheduleDetailView({ org, slug, onNavigateToAgent, onNavigateToE
|
|
|
353
353
|
// State banner — one lever, one remedy, inline
|
|
354
354
|
// ---------------------------------------------------------------------------
|
|
355
355
|
function StateBanner({ title, children, actionLabel, onAction, actionBusy, }) {
|
|
356
|
-
return (_jsxs("div", { role: "status", className: "flex items-start gap-2.5 rounded-lg border border-warning/30 bg-warning/5 px-4 py-3", children: [_jsx(WarningIcon, { className: "mt-0.5 size-4 shrink-0 text-warning" }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("p", { className: "text-sm font-medium text-foreground", children: title }), _jsx("p", { className: "mt-0.5 text-xs text-muted-foreground", children: children })] }), _jsx("button", { type: "button", onClick: onAction, disabled: actionBusy, className: cn("shrink-0 rounded-md border border-input bg-background px-3 py-1.5 text-xs font-medium text-foreground", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-50"), children: actionLabel })] }));
|
|
356
|
+
return (_jsxs("div", { role: "status", className: "stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-warning/30 stg:bg-warning/5 stg:px-4 stg:py-3", children: [_jsx(WarningIcon, { className: "stg:mt-0.5 stg:size-4 stg:shrink-0 stg:text-warning" }), _jsxs("div", { className: "stg:min-w-0 stg:flex-1", children: [_jsx("p", { className: "stg:text-sm stg:font-medium stg:text-foreground", children: title }), _jsx("p", { className: "stg:mt-0.5 stg:text-xs stg:text-muted-foreground", children: children })] }), _jsx("button", { type: "button", onClick: onAction, disabled: actionBusy, className: cn("stg:shrink-0 stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium stg:text-foreground", "stg:hover:bg-accent stg:hover:text-accent-foreground", "stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring", "stg:disabled:pointer-events-none stg:disabled:opacity-50"), children: actionLabel })] }));
|
|
357
357
|
}
|
|
358
358
|
// ---------------------------------------------------------------------------
|
|
359
359
|
// Cadence summary — plain English first, raw cron as the precise record
|
|
@@ -371,12 +371,12 @@ function StateBanner({ title, children, actionLabel, onAction, actionBusy, }) {
|
|
|
371
371
|
*/
|
|
372
372
|
function CadenceSummary({ cron, timeZone, }) {
|
|
373
373
|
if (!cron)
|
|
374
|
-
return _jsx("span", { className: "text-sm text-muted-foreground", children: "\u2014" });
|
|
374
|
+
return _jsx("span", { className: "stg:text-sm stg:text-muted-foreground", children: "\u2014" });
|
|
375
375
|
const preset = cronToCadence(cron);
|
|
376
376
|
if (preset.kind === "custom") {
|
|
377
|
-
return (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("code", { className: "font-mono text-sm text-foreground", children: cron }), timeZone && (_jsx("span", { className: "text-xs text-muted-foreground", children: timeZone }))] }));
|
|
377
|
+
return (_jsxs("div", { className: "stg:flex stg:flex-col stg:gap-0.5", children: [_jsx("code", { className: "stg:font-mono stg:text-sm stg:text-foreground", children: cron }), timeZone && (_jsx("span", { className: "stg:text-xs stg:text-muted-foreground", children: timeZone }))] }));
|
|
378
378
|
}
|
|
379
|
-
return (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-sm text-foreground", children: describeCadence(preset, timeZone || undefined) }), _jsx("code", { className: "font-mono text-xs text-muted-foreground", children: cron })] }));
|
|
379
|
+
return (_jsxs("div", { className: "stg:flex stg:flex-col stg:gap-0.5", children: [_jsx("span", { className: "stg:text-sm stg:text-foreground", children: describeCadence(preset, timeZone || undefined) }), _jsx("code", { className: "stg:font-mono stg:text-xs stg:text-muted-foreground", children: cron })] }));
|
|
380
380
|
}
|
|
381
381
|
// ---------------------------------------------------------------------------
|
|
382
382
|
// Inline editors — per-field click-to-edit over the lossless write path
|
|
@@ -408,7 +408,7 @@ function CadenceInlineEditor({ cron, timeZone, onSave, isSaving, error, }) {
|
|
|
408
408
|
}
|
|
409
409
|
const draftCron = cadenceToCron(draftCadence).trim();
|
|
410
410
|
const canSave = draftCron !== "" && validateCron(draftCron) === null;
|
|
411
|
-
return (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(CadenceField, { value: draftCadence, onChange: setDraftCadence, timeZone: draftZone, disabled: isSaving }), _jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: editorLabelClasses, children: "Time zone" }), _jsx(TimeZoneField, { value: draftZone, onChange: setDraftZone, disabled: isSaving })] }), _jsx(InlineEditActions, { onCancel: () => setIsEditing(false), onSave: async () => {
|
|
411
|
+
return (_jsxs("div", { className: "stg:flex stg:flex-col stg:gap-2", children: [_jsx(CadenceField, { value: draftCadence, onChange: setDraftCadence, timeZone: draftZone, disabled: isSaving }), _jsxs("div", { className: "stg:space-y-1", children: [_jsx("span", { className: editorLabelClasses, children: "Time zone" }), _jsx(TimeZoneField, { value: draftZone, onChange: setDraftZone, disabled: isSaving })] }), _jsx(InlineEditActions, { onCancel: () => setIsEditing(false), onSave: async () => {
|
|
412
412
|
const ok = await onSave(draftCron, draftZone);
|
|
413
413
|
if (ok)
|
|
414
414
|
setIsEditing(false);
|
|
@@ -425,11 +425,11 @@ function EnvironmentsInlineEditor({ org, refs, onSave, isSaving, error, }) {
|
|
|
425
425
|
if (!isEditing) {
|
|
426
426
|
return (_jsx(InlineReadButton, { onEdit: startEdit, ariaLabel: "Edit environments", children: _jsx(EnvironmentRefList, { refs: refs }) }));
|
|
427
427
|
}
|
|
428
|
-
return (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(EnvironmentPicker, { org: org, value: draft, onChange: setDraft, disabled: isSaving,
|
|
428
|
+
return (_jsxs("div", { className: "stg:flex stg:flex-col stg:gap-2", children: [_jsx(EnvironmentPicker, { org: org, value: draft, onChange: setDraft, disabled: isSaving,
|
|
429
429
|
// Only org-shared environments resolve for a schedule fire (the
|
|
430
430
|
// same credential surface a channel binding uses), so offering
|
|
431
431
|
// anything else could only produce refused runs.
|
|
432
|
-
filterEnvironment: isOrgSharedEnvironment }), _jsx("p", { className: "text-[0.65rem] text-muted-foreground", children: "Bind org-shared credentials so the agent\u2019s tools work on an unattended fire. Without this, an agent whose tools need credentials will be refused every run." }), _jsx(InlineEditActions, { onCancel: () => setIsEditing(false), onSave: async () => {
|
|
432
|
+
filterEnvironment: isOrgSharedEnvironment }), _jsx("p", { className: "stg:text-[0.65rem] stg:text-muted-foreground", children: "Bind org-shared credentials so the agent\u2019s tools work on an unattended fire. Without this, an agent whose tools need credentials will be refused every run." }), _jsx(InlineEditActions, { onCancel: () => setIsEditing(false), onSave: async () => {
|
|
433
433
|
const ok = await onSave(draft);
|
|
434
434
|
if (ok)
|
|
435
435
|
setIsEditing(false);
|
|
@@ -460,10 +460,10 @@ function EngineModelInlineEditor({ invocation, onSave, isSaving, error, }) {
|
|
|
460
460
|
if (!isEditing) {
|
|
461
461
|
return (_jsx(InlineReadButton, { onEdit: startEdit, ariaLabel: "Edit engine and model", children: _jsx(EngineModelSummary, { invocation: invocation }) }));
|
|
462
462
|
}
|
|
463
|
-
return (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(ModelSelector, { value: modelName, onValueChange: setModelName, initialHarness: harness, onHarnessChange: setHarness, serviceTier: serviceTier, onServiceTierChange: setServiceTier, placeholderLabel: "Platform default", disabled: isSaving }), modelName !== "" && (_jsx("button", { type: "button", onClick: () => {
|
|
463
|
+
return (_jsxs("div", { className: "stg:flex stg:flex-col stg:gap-2", children: [_jsxs("div", { className: "stg:flex stg:items-center stg:gap-2", children: [_jsx(ModelSelector, { value: modelName, onValueChange: setModelName, initialHarness: harness, onHarnessChange: setHarness, serviceTier: serviceTier, onServiceTierChange: setServiceTier, placeholderLabel: "Platform default", disabled: isSaving }), modelName !== "" && (_jsx("button", { type: "button", onClick: () => {
|
|
464
464
|
setModelName("");
|
|
465
465
|
setServiceTier("standard");
|
|
466
|
-
}, disabled: isSaving, className: "rounded-md px-2 py-1 text-[0.65rem] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", children: "Reset to platform default" }))] }), _jsx("p", { className: "text-[0.65rem] text-muted-foreground", children: "Runs use the platform\u2019s default engine and model unless you pick one here. Picking a model pins the engine it belongs to." }), _jsx(InlineEditActions, { onCancel: () => setIsEditing(false), onSave: async () => {
|
|
466
|
+
}, disabled: isSaving, className: "stg:rounded-md stg:px-2 stg:py-1 stg:text-[0.65rem] stg:text-muted-foreground stg:hover:text-foreground stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:disabled:pointer-events-none stg:disabled:opacity-50", children: "Reset to platform default" }))] }), _jsx("p", { className: "stg:text-[0.65rem] stg:text-muted-foreground", children: "Runs use the platform\u2019s default engine and model unless you pick one here. Picking a model pins the engine it belongs to." }), _jsx(InlineEditActions, { onCancel: () => setIsEditing(false), onSave: async () => {
|
|
467
467
|
const ok = await onSave(modelName !== "" ? toProtoHarness(harness) : Harness.UNSPECIFIED, modelName, serviceTier);
|
|
468
468
|
if (ok)
|
|
469
469
|
setIsEditing(false);
|
|
@@ -482,7 +482,7 @@ function BudgetInlineEditor({ config, onSave, isSaving, error, }) {
|
|
|
482
482
|
}
|
|
483
483
|
const cost = Number.parseFloat(budgetUsd);
|
|
484
484
|
const parsedBudget = Number.isFinite(cost) && cost > 0 ? cost : undefined;
|
|
485
|
-
return (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx("input", { type: "number", min: "0", step: "any", "aria-label": "Budget per run (USD)", value: budgetUsd, onChange: (e) => setBudgetUsd(e.target.value), placeholder: "platform default", disabled: isSaving, className: cn(editorInputClasses, "sm:max-w-48") }), _jsx("p", { className: "text-[0.65rem] text-muted-foreground", children: "Each run stops when it reaches this spend. You can lower the platform\u2019s per-run cap, never raise it past the platform\u2019s ceiling. Blank inherits the platform default." }), _jsx(InlineEditActions, { onCancel: () => setIsEditing(false), onSave: async () => {
|
|
485
|
+
return (_jsxs("div", { className: "stg:flex stg:flex-col stg:gap-2", children: [_jsx("input", { type: "number", min: "0", step: "any", "aria-label": "Budget per run (USD)", value: budgetUsd, onChange: (e) => setBudgetUsd(e.target.value), placeholder: "platform default", disabled: isSaving, className: cn(editorInputClasses, "stg:sm:max-w-48") }), _jsx("p", { className: "stg:text-[0.65rem] stg:text-muted-foreground", children: "Each run stops when it reaches this spend. You can lower the platform\u2019s per-run cap, never raise it past the platform\u2019s ceiling. Blank inherits the platform default." }), _jsx(InlineEditActions, { onCancel: () => setIsEditing(false), onSave: async () => {
|
|
486
486
|
const ok = await onSave(parsedBudget);
|
|
487
487
|
if (ok)
|
|
488
488
|
setIsEditing(false);
|
|
@@ -533,28 +533,28 @@ function validateMessage(value) {
|
|
|
533
533
|
// ---------------------------------------------------------------------------
|
|
534
534
|
// Inline-edit chrome shared by the bespoke editors above
|
|
535
535
|
// ---------------------------------------------------------------------------
|
|
536
|
-
const editorLabelClasses = "block text-xs font-medium text-foreground";
|
|
537
|
-
const editorInputClasses = cn("w-full rounded-md border border-input bg-background px-2.5 py-1.5 text-xs text-foreground", "placeholder:text-muted-foreground", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-50");
|
|
536
|
+
const editorLabelClasses = "stg:block stg:text-xs stg:font-medium stg:text-foreground";
|
|
537
|
+
const editorInputClasses = cn("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground", "stg:placeholder:text-muted-foreground", "stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring", "stg:disabled:pointer-events-none stg:disabled:opacity-50");
|
|
538
538
|
/** Read-mode click target with the family's hover pencil. */
|
|
539
539
|
function InlineReadButton({ onEdit, ariaLabel, children, }) {
|
|
540
|
-
return (_jsx("div", { className: "group/inline-edit", children: _jsx("button", { type: "button", onClick: onEdit, "aria-label": ariaLabel, className: cn("
|
|
540
|
+
return (_jsx("div", { className: "stg:group/inline-edit", children: _jsx("button", { type: "button", onClick: onEdit, "aria-label": ariaLabel, className: cn("stg:-mx-2 stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors", "stg:hover:bg-accent-hover stg:cursor-pointer", "stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"), children: _jsxs("div", { className: "stg:flex stg:items-start stg:justify-between stg:gap-2", children: [_jsx("div", { className: "stg:min-w-0 stg:flex-1", children: children }), _jsx(PencilIcon, { className: "stg:mt-0.5 stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100" })] }) }) }));
|
|
541
541
|
}
|
|
542
542
|
/** Save/Cancel footer with the field-attributed error line. */
|
|
543
543
|
function InlineEditActions({ onCancel, onSave, isSaving, canSave, error, }) {
|
|
544
|
-
return (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsxs("div", { className: "flex items-center justify-end gap-1.5", children: [_jsx("button", { type: "button", onClick: onCancel, disabled: isSaving, className: cn("rounded-md px-2.5 py-1 text-xs font-medium", "border border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground", "disabled:opacity-50", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"), children: "Cancel" }), _jsxs("button", { type: "button", onClick: onSave, disabled: !canSave || isSaving, className: cn("inline-flex items-center gap-1 rounded-md px-2.5 py-1 text-xs font-medium", "bg-primary text-primary-foreground hover:bg-primary-hover", "disabled:pointer-events-none disabled:opacity-50", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"), children: [isSaving && _jsx(SpinnerIcon, {}), "Save"] })] }), error && (_jsx("p", { className: "text-xs text-destructive", role: "alert", children: error }))] }));
|
|
544
|
+
return (_jsxs("div", { className: "stg:flex stg:flex-col stg:gap-1.5", children: [_jsxs("div", { className: "stg:flex stg:items-center stg:justify-end stg:gap-1.5", children: [_jsx("button", { type: "button", onClick: onCancel, disabled: isSaving, className: cn("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium", "stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground", "stg:disabled:opacity-50", "stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"), children: "Cancel" }), _jsxs("button", { type: "button", onClick: onSave, disabled: !canSave || isSaving, className: cn("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium", "stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover", "stg:disabled:pointer-events-none stg:disabled:opacity-50", "stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"), children: [isSaving && _jsx(SpinnerIcon, {}), "Save"] })] }), error && (_jsx("p", { className: "stg:text-xs stg:text-destructive", role: "alert", children: error }))] }));
|
|
545
545
|
}
|
|
546
546
|
// ---------------------------------------------------------------------------
|
|
547
547
|
// Detail rows and references
|
|
548
548
|
// ---------------------------------------------------------------------------
|
|
549
549
|
function DetailRow({ label, children, }) {
|
|
550
|
-
return (_jsxs("div", { className: "flex items-start gap-4 px-4 py-2.5", children: [_jsx("dt", { className: "w-40 shrink-0 pt-0.5 text-xs font-medium text-muted-foreground", children: label }), _jsx("dd", { className: "min-w-0 flex-1", children: children })] }));
|
|
550
|
+
return (_jsxs("div", { className: "stg:flex stg:items-start stg:gap-4 stg:px-4 stg:py-2.5", children: [_jsx("dt", { className: "stg:w-40 stg:shrink-0 stg:pt-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground", children: label }), _jsx("dd", { className: "stg:min-w-0 stg:flex-1", children: children })] }));
|
|
551
551
|
}
|
|
552
552
|
/** The bound environment references, or the em-dash when there are none. */
|
|
553
553
|
function EnvironmentRefList({ refs, }) {
|
|
554
554
|
if (refs.length === 0) {
|
|
555
|
-
return _jsx("span", { className: "text-sm text-muted-foreground", children: "\u2014" });
|
|
555
|
+
return _jsx("span", { className: "stg:text-sm stg:text-muted-foreground", children: "\u2014" });
|
|
556
556
|
}
|
|
557
|
-
return (_jsx("ul", { className: "flex flex-col gap-0.5", children: refs.map((ref, i) => (_jsx("li", { className: "font-mono text-xs text-foreground", children: ref.org ? `${ref.org}/${ref.slug}` : ref.slug }, `${ref.org}/${ref.slug}-${i}`))) }));
|
|
557
|
+
return (_jsx("ul", { className: "stg:flex stg:flex-col stg:gap-0.5", children: refs.map((ref, i) => (_jsx("li", { className: "stg:font-mono stg:text-xs stg:text-foreground", children: ref.org ? `${ref.org}/${ref.slug}` : ref.slug }, `${ref.org}/${ref.slug}-${i}`))) }));
|
|
558
558
|
}
|
|
559
559
|
// ---------------------------------------------------------------------------
|
|
560
560
|
// Failure streak — status.consecutive_failures, explained
|
|
@@ -571,9 +571,9 @@ function EnvironmentRefList({ refs, }) {
|
|
|
571
571
|
*/
|
|
572
572
|
function FailureStreak({ count }) {
|
|
573
573
|
if (count === 0) {
|
|
574
|
-
return _jsx("span", { className: "text-sm text-foreground", children: "0" });
|
|
574
|
+
return _jsx("span", { className: "stg:text-sm stg:text-foreground", children: "0" });
|
|
575
575
|
}
|
|
576
|
-
return (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsxs("span", { className: "text-sm font-medium text-warning", children: [count, " consecutive failed ", count === 1 ? "run" : "runs"] }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Failed scheduled runs raise this streak; too many in a row and the platform pauses the schedule automatically. One successful run resets it to 0. Manual runs never count." })] }));
|
|
576
|
+
return (_jsxs("div", { className: "stg:flex stg:flex-col stg:gap-0.5", children: [_jsxs("span", { className: "stg:text-sm stg:font-medium stg:text-warning", children: [count, " consecutive failed ", count === 1 ? "run" : "runs"] }), _jsx("p", { className: "stg:text-xs stg:text-muted-foreground", children: "Failed scheduled runs raise this streak; too many in a row and the platform pauses the schedule automatically. One successful run resets it to 0. Manual runs never count." })] }));
|
|
577
577
|
}
|
|
578
578
|
// ---------------------------------------------------------------------------
|
|
579
579
|
// The invocation's run shape — engine+model, budget, workspace summaries
|
|
@@ -583,7 +583,7 @@ function EngineModelSummary({ invocation, }) {
|
|
|
583
583
|
const harness = invocation?.harness ?? Harness.UNSPECIFIED;
|
|
584
584
|
const modelName = invocation?.runConfig?.modelName ?? "";
|
|
585
585
|
if (harness === Harness.UNSPECIFIED && modelName === "") {
|
|
586
|
-
return (_jsx("span", { className: "text-sm text-muted-foreground", children: "Platform default" }));
|
|
586
|
+
return (_jsx("span", { className: "stg:text-sm stg:text-muted-foreground", children: "Platform default" }));
|
|
587
587
|
}
|
|
588
588
|
const parts = [];
|
|
589
589
|
if (harness !== Harness.UNSPECIFIED) {
|
|
@@ -593,41 +593,41 @@ function EngineModelSummary({ invocation, }) {
|
|
|
593
593
|
if (invocation?.runConfig?.serviceTier === ServiceTier.FAST) {
|
|
594
594
|
parts.push("Fast tier");
|
|
595
595
|
}
|
|
596
|
-
return _jsx("span", { className: "text-sm text-foreground", children: parts.join(" · ") });
|
|
596
|
+
return _jsx("span", { className: "stg:text-sm stg:text-foreground", children: parts.join(" · ") });
|
|
597
597
|
}
|
|
598
598
|
/** The per-run cost cap, plus the API-only tool-round bound when set. */
|
|
599
599
|
function BudgetSummary({ config, }) {
|
|
600
600
|
const maxCostUsd = config?.maxCostUsd ?? 0;
|
|
601
601
|
const maxToolRounds = config?.maxToolRounds ?? 0;
|
|
602
|
-
return (_jsxs("div", { className: "flex flex-col gap-0.5", children: [maxCostUsd > 0 ? (_jsxs("span", { className: "text-sm text-foreground", children: ["\u2264 $", maxCostUsd.toFixed(2), " per run"] })) : (_jsx("span", { className: "text-sm text-muted-foreground", children: "Platform default" })), maxToolRounds > 0 && (_jsxs("span", { className: "text-xs text-muted-foreground", children: ["\u2264 ", maxToolRounds, " tool rounds"] }))] }));
|
|
602
|
+
return (_jsxs("div", { className: "stg:flex stg:flex-col stg:gap-0.5", children: [maxCostUsd > 0 ? (_jsxs("span", { className: "stg:text-sm stg:text-foreground", children: ["\u2264 $", maxCostUsd.toFixed(2), " per run"] })) : (_jsx("span", { className: "stg:text-sm stg:text-muted-foreground", children: "Platform default" })), maxToolRounds > 0 && (_jsxs("span", { className: "stg:text-xs stg:text-muted-foreground", children: ["\u2264 ", maxToolRounds, " tool rounds"] }))] }));
|
|
603
603
|
}
|
|
604
604
|
/** The git workspace each fire clones, or the em-dash when none. */
|
|
605
605
|
function WorkspaceSummary({ entries, }) {
|
|
606
606
|
if (entries.length === 0) {
|
|
607
|
-
return _jsx("span", { className: "text-sm text-muted-foreground", children: "\u2014" });
|
|
607
|
+
return _jsx("span", { className: "stg:text-sm stg:text-muted-foreground", children: "\u2014" });
|
|
608
608
|
}
|
|
609
|
-
return (_jsx("ul", { className: "flex flex-col gap-0.5", children: entries.map((entry, i) => {
|
|
609
|
+
return (_jsx("ul", { className: "stg:flex stg:flex-col stg:gap-0.5", children: entries.map((entry, i) => {
|
|
610
610
|
const git = entry.source?.source?.case === "gitRepo"
|
|
611
611
|
? entry.source.source.value
|
|
612
612
|
: undefined;
|
|
613
|
-
return (_jsxs("li", { className: "text-xs text-foreground", children: [_jsx("span", { className: "font-medium", children: entry.name }), git?.url && (_jsxs("span", { className: "ml-1.5 font-mono text-muted-foreground", children: [git.url, git.branch ? `@${git.branch}` : ""] }))] }, `${entry.name}-${i}`));
|
|
613
|
+
return (_jsxs("li", { className: "stg:text-xs stg:text-foreground", children: [_jsx("span", { className: "stg:font-medium", children: entry.name }), git?.url && (_jsxs("span", { className: "stg:ml-1.5 stg:font-mono stg:text-muted-foreground", children: [git.url, git.branch ? `@${git.branch}` : ""] }))] }, `${entry.name}-${i}`));
|
|
614
614
|
}) }));
|
|
615
615
|
}
|
|
616
616
|
function ReferenceLink({ label, onNavigate, mono, }) {
|
|
617
|
-
const textClass = cn("text-sm", mono && "font-mono text-xs");
|
|
617
|
+
const textClass = cn("stg:text-sm", mono && "stg:font-mono stg:text-xs");
|
|
618
618
|
if (!onNavigate) {
|
|
619
|
-
return _jsx("span", { className: cn(textClass, "text-foreground"), children: label });
|
|
619
|
+
return _jsx("span", { className: cn(textClass, "stg:text-foreground"), children: label });
|
|
620
620
|
}
|
|
621
|
-
return (_jsx("button", { type: "button", onClick: onNavigate, className: cn(textClass, "text-primary underline-offset-2 hover:underline", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm"), children: label }));
|
|
621
|
+
return (_jsx("button", { type: "button", onClick: onNavigate, className: cn(textClass, "stg:text-primary stg:underline-offset-2 stg:hover:underline", "stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:rounded-sm"), children: label }));
|
|
622
622
|
}
|
|
623
623
|
// ---------------------------------------------------------------------------
|
|
624
624
|
// Non-happy states
|
|
625
625
|
// ---------------------------------------------------------------------------
|
|
626
626
|
function LoadingSkeleton({ className }) {
|
|
627
|
-
return (_jsxs("div", { className: cn("flex flex-col gap-6", className), "aria-busy": "true", "aria-label": "Loading schedule details", children: [_jsxs("div", { className: "flex items-start gap-3", children: [_jsx("div", { className: "mt-1 size-6 shrink-0 animate-pulse rounded bg-muted" }), _jsxs("div", { className: "flex-1 space-y-2", children: [_jsx("div", { className: "h-5 w-48 animate-pulse rounded bg-muted" }), _jsx("div", { className: "h-3 w-64 animate-pulse rounded bg-muted" })] })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("div", { className: "h-3 w-28 animate-pulse rounded bg-muted" }), _jsx("div", { className: "animate-pulse rounded-lg border border-border bg-muted-faint", style: { height: "160px" } })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("div", { className: "h-3 w-20 animate-pulse rounded bg-muted" }), _jsx("div", { className: "animate-pulse rounded-lg border border-border bg-muted-faint", style: { height: "160px" } })] })] }));
|
|
627
|
+
return (_jsxs("div", { className: cn("stg:flex stg:flex-col stg:gap-6", className), "aria-busy": "true", "aria-label": "Loading schedule details", children: [_jsxs("div", { className: "stg:flex stg:items-start stg:gap-3", children: [_jsx("div", { className: "stg:mt-1 stg:size-6 stg:shrink-0 stg:animate-pulse stg:rounded stg:bg-muted" }), _jsxs("div", { className: "stg:flex-1 stg:space-y-2", children: [_jsx("div", { className: "stg:h-5 stg:w-48 stg:animate-pulse stg:rounded stg:bg-muted" }), _jsx("div", { className: "stg:h-3 stg:w-64 stg:animate-pulse stg:rounded stg:bg-muted" })] })] }), _jsxs("div", { className: "stg:space-y-2", children: [_jsx("div", { className: "stg:h-3 stg:w-28 stg:animate-pulse stg:rounded stg:bg-muted" }), _jsx("div", { className: "stg:animate-pulse stg:rounded-lg stg:border stg:border-border stg:bg-muted-faint", style: { height: "160px" } })] }), _jsxs("div", { className: "stg:space-y-2", children: [_jsx("div", { className: "stg:h-3 stg:w-20 stg:animate-pulse stg:rounded stg:bg-muted" }), _jsx("div", { className: "stg:animate-pulse stg:rounded-lg stg:border stg:border-border stg:bg-muted-faint", style: { height: "160px" } })] })] }));
|
|
628
628
|
}
|
|
629
629
|
function NotFoundState({ className }) {
|
|
630
|
-
return (_jsxs("div", { role: "status", className: cn("flex flex-col items-center gap-2 py-12 text-center", className), children: [_jsx(ScheduleIcon, { className: "size-10 text-muted-foreground-faint" }), _jsx("p", { className: "text-sm font-medium text-muted-foreground", children: "Schedule not found" }), _jsx("p", { className: "text-xs text-muted-foreground-subtle", children: "This schedule doesn't exist or you don't have access to it." })] }));
|
|
630
|
+
return (_jsxs("div", { role: "status", className: cn("stg:flex stg:flex-col stg:items-center stg:gap-2 stg:py-12 stg:text-center", className), children: [_jsx(ScheduleIcon, { className: "stg:size-10 stg:text-muted-foreground-faint" }), _jsx("p", { className: "stg:text-sm stg:font-medium stg:text-muted-foreground", children: "Schedule not found" }), _jsx("p", { className: "stg:text-xs stg:text-muted-foreground-subtle", children: "This schedule doesn't exist or you don't have access to it." })] }));
|
|
631
631
|
}
|
|
632
632
|
// ---------------------------------------------------------------------------
|
|
633
633
|
// Icons (inline SVG — no icon-library dependency)
|
|
@@ -643,6 +643,6 @@ function PencilIcon({ className }) {
|
|
|
643
643
|
return (_jsx("svg", { className: className, viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z" }) }));
|
|
644
644
|
}
|
|
645
645
|
function SpinnerIcon() {
|
|
646
|
-
return (_jsx("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", className: "animate-spin", "aria-hidden": "true", children: _jsx("path", { d: "M8 2a6 6 0 1 0 6 6" }) }));
|
|
646
|
+
return (_jsx("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", className: "stg:animate-spin", "aria-hidden": "true", children: _jsx("path", { d: "M8 2a6 6 0 1 0 6 6" }) }));
|
|
647
647
|
}
|
|
648
648
|
//# sourceMappingURL=ScheduleDetailView.js.map
|