@stigmer/react 3.41.1-dev.20261006204110.g1a74807beeb6 → 3.41.1-dev.20261007143623.gebab76ea5028
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -10
- package/access/ManageAccessButton.d.ts +4 -7
- package/access/ManageAccessButton.d.ts.map +1 -1
- package/access/ManageAccessButton.js +4 -5
- package/access/ManageAccessButton.js.map +1 -1
- package/access/ManageAccessDialog.d.ts +3 -8
- package/access/ManageAccessDialog.d.ts.map +1 -1
- package/access/ManageAccessDialog.js +2 -2
- package/access/ManageAccessDialog.js.map +1 -1
- package/access/index.d.ts +1 -1
- package/access/index.d.ts.map +1 -1
- package/access/types.d.ts +2 -16
- package/access/types.d.ts.map +1 -1
- package/access/useManageAccess.d.ts +3 -5
- package/access/useManageAccess.d.ts.map +1 -1
- package/access/useManageAccess.js +3 -3
- package/access/useManageAccess.js.map +1 -1
- package/activity/index.d.ts +2 -3
- package/activity/index.d.ts.map +1 -1
- package/activity/index.js +0 -1
- package/activity/index.js.map +1 -1
- package/activity/types.d.ts +6 -16
- package/activity/types.d.ts.map +1 -1
- package/activity/useRecentActivity.d.ts +22 -22
- package/activity/useRecentActivity.d.ts.map +1 -1
- package/activity/useRecentActivity.js +31 -43
- package/activity/useRecentActivity.js.map +1 -1
- package/approval-defaults-context.d.ts +1 -2
- package/approval-defaults-context.d.ts.map +1 -1
- package/approval-defaults-context.js +1 -2
- package/approval-defaults-context.js.map +1 -1
- package/billing/ProviderKeysSection.d.ts +1 -1
- package/billing/ProviderKeysSection.js +1 -1
- package/dashboard/DashboardFailedRuns.d.ts +4 -5
- package/dashboard/DashboardFailedRuns.d.ts.map +1 -1
- package/dashboard/DashboardFailedRuns.js +4 -7
- package/dashboard/DashboardFailedRuns.js.map +1 -1
- package/dashboard/DashboardKPICards.d.ts +3 -5
- package/dashboard/DashboardKPICards.d.ts.map +1 -1
- package/dashboard/DashboardKPICards.js +4 -33
- package/dashboard/DashboardKPICards.js.map +1 -1
- package/dashboard/OperationalDashboard.d.ts +9 -12
- package/dashboard/OperationalDashboard.d.ts.map +1 -1
- package/dashboard/OperationalDashboard.js +9 -15
- package/dashboard/OperationalDashboard.js.map +1 -1
- package/dashboard/types.d.ts +10 -21
- package/dashboard/types.d.ts.map +1 -1
- package/dashboard/useAgentRunSummary.d.ts +2 -2
- package/dashboard/useAgentRunSummary.js +2 -2
- package/dashboard/useDashboardFailedRuns.d.ts +4 -4
- package/dashboard/useDashboardFailedRuns.d.ts.map +1 -1
- package/dashboard/useDashboardFailedRuns.js +14 -47
- package/dashboard/useDashboardFailedRuns.js.map +1 -1
- package/dashboard/useDashboardSummary.d.ts +8 -9
- package/dashboard/useDashboardSummary.d.ts.map +1 -1
- package/dashboard/useDashboardSummary.js +16 -32
- package/dashboard/useDashboardSummary.js.map +1 -1
- package/index.d.ts +6 -8
- package/index.d.ts.map +1 -1
- package/index.js +4 -21
- package/index.js.map +1 -1
- package/internal/DecisionButton.d.ts +2 -3
- package/internal/DecisionButton.d.ts.map +1 -1
- package/internal/DecisionButton.js +2 -3
- package/internal/DecisionButton.js.map +1 -1
- package/internal/ResizableSplit.d.ts +1 -8
- package/internal/ResizableSplit.d.ts.map +1 -1
- package/internal/ResizableSplit.js +3 -10
- package/internal/ResizableSplit.js.map +1 -1
- package/internal/mermaid-loader.d.ts +1 -2
- package/internal/mermaid-loader.d.ts.map +1 -1
- package/internal/mermaid-loader.js +1 -2
- package/internal/mermaid-loader.js.map +1 -1
- package/internal/motion-preference.d.ts +6 -16
- package/internal/motion-preference.d.ts.map +1 -1
- package/internal/motion-preference.js +6 -18
- package/internal/motion-preference.js.map +1 -1
- package/internal/store/index.d.ts +0 -1
- package/internal/store/index.d.ts.map +1 -1
- package/internal/store/index.js +0 -1
- package/internal/store/index.js.map +1 -1
- package/internal/thread-card/ThreadCardShell.d.ts +4 -5
- package/internal/thread-card/ThreadCardShell.d.ts.map +1 -1
- package/internal/thread-card/ThreadCardShell.js.map +1 -1
- package/internal/thread-card/glyphs.d.ts +2 -3
- package/internal/thread-card/glyphs.d.ts.map +1 -1
- package/internal/thread-card/glyphs.js +2 -3
- package/internal/thread-card/glyphs.js.map +1 -1
- package/internal/useKeyedSubmission.d.ts +3 -3
- package/internal/useKeyedSubmission.js +3 -3
- package/library/ResourceVisibilityControl.d.ts +1 -1
- package/library/ResourceVisibilityControl.d.ts.map +1 -1
- package/library/ResourceVisibilityControl.js +1 -2
- package/library/ResourceVisibilityControl.js.map +1 -1
- package/library/index.d.ts +0 -1
- package/library/index.d.ts.map +1 -1
- package/library/index.js +0 -1
- package/library/index.js.map +1 -1
- package/library/useExportResource.d.ts +7 -14
- package/library/useExportResource.d.ts.map +1 -1
- package/library/useExportResource.js +7 -14
- package/library/useExportResource.js.map +1 -1
- package/library/useUpdateVisibility.d.ts +4 -4
- package/library/useUpdateVisibility.d.ts.map +1 -1
- package/library/useUpdateVisibility.js +3 -6
- package/library/useUpdateVisibility.js.map +1 -1
- package/library/visibilityLevels.d.ts +1 -1
- package/library/visibilityLevels.js +1 -1
- package/manifest/ApplyManifestDialog.d.ts +1 -1
- package/manifest/ApplyManifestDialog.js +1 -1
- package/manifest/EditResourceYamlDialog.d.ts +1 -1
- package/manifest/EditResourceYamlDialog.js +1 -1
- package/manifest/YamlEditor.d.ts +1 -1
- package/manifest/YamlEditor.js +1 -1
- package/package.json +6 -10
- package/plugin/PluginDetailView.d.ts +1 -2
- package/plugin/PluginDetailView.d.ts.map +1 -1
- package/plugin/PluginDetailView.js +4 -8
- package/plugin/PluginDetailView.js.map +1 -1
- package/plugin/PluginInstallDialog.d.ts.map +1 -1
- package/plugin/PluginInstallDialog.js +0 -1
- package/plugin/PluginInstallDialog.js.map +1 -1
- package/plugin/usePluginMembers.d.ts +2 -3
- package/plugin/usePluginMembers.d.ts.map +1 -1
- package/plugin/usePluginMembers.js +1 -2
- package/plugin/usePluginMembers.js.map +1 -1
- package/provider.d.ts +6 -40
- package/provider.d.ts.map +1 -1
- package/provider.js +2 -167
- package/provider.js.map +1 -1
- package/resource-creation/index.d.ts +0 -2
- package/resource-creation/index.d.ts.map +1 -1
- package/resource-creation/index.js +0 -1
- package/resource-creation/index.js.map +1 -1
- package/resource-creation/templates/index.d.ts +0 -2
- package/resource-creation/templates/index.d.ts.map +1 -1
- package/resource-creation/templates/index.js +0 -1
- package/resource-creation/templates/index.js.map +1 -1
- package/resource-detail/types.d.ts +1 -1
- package/resource-detail/useDeleteResource.d.ts +1 -1
- package/resource-detail/useDeleteResource.d.ts.map +1 -1
- package/resource-detail/useDeleteResource.js +0 -5
- package/resource-detail/useDeleteResource.js.map +1 -1
- package/run/ArtifactContentBody.d.ts.map +1 -1
- package/run/ArtifactContentBody.js +1 -2
- package/run/ArtifactContentBody.js.map +1 -1
- package/run/ArtifactFileContent.d.ts +3 -5
- package/run/ArtifactFileContent.d.ts.map +1 -1
- package/run/ArtifactFileContent.js +3 -5
- package/run/ArtifactFileContent.js.map +1 -1
- package/run/ArtifactRow.d.ts +1 -3
- package/run/ArtifactRow.d.ts.map +1 -1
- package/run/ArtifactRow.js +1 -3
- package/run/ArtifactRow.js.map +1 -1
- package/run/ArtifactRowView.d.ts +3 -6
- package/run/ArtifactRowView.d.ts.map +1 -1
- package/run/ArtifactRowView.js +5 -8
- package/run/ArtifactRowView.js.map +1 -1
- package/run/FileReviewCard.d.ts +2 -2
- package/run/FileReviewCard.js +1 -1
- package/run/FileReviewCard.js.map +1 -1
- package/run/artifact-document.d.ts +1 -1
- package/run/artifact-document.d.ts.map +1 -1
- package/run/artifact-document.js +5 -6
- package/run/artifact-document.js.map +1 -1
- package/run/artifact-row-item.d.ts +6 -23
- package/run/artifact-row-item.d.ts.map +1 -1
- package/run/artifact-row-item.js +2 -24
- package/run/artifact-row-item.js.map +1 -1
- package/run/deriveRunFileChanges.d.ts +2 -3
- package/run/deriveRunFileChanges.d.ts.map +1 -1
- package/run/deriveRunFileChanges.js +6 -9
- package/run/deriveRunFileChanges.js.map +1 -1
- package/run/index.d.ts +3 -4
- package/run/index.d.ts.map +1 -1
- package/run/index.js +2 -3
- package/run/index.js.map +1 -1
- package/run/useAgentRunActions.d.ts +1 -2
- package/run/useAgentRunActions.d.ts.map +1 -1
- package/run/useAgentRunActions.js +1 -2
- package/run/useAgentRunActions.js.map +1 -1
- package/run/useArtifactDownload.d.ts +1 -2
- package/run/useArtifactDownload.d.ts.map +1 -1
- package/run/useArtifactDownload.js +1 -2
- package/run/useArtifactDownload.js.map +1 -1
- package/run/useLiveAgentRun.d.ts +3 -3
- package/{workflow → run}/useResolveAgentRunSession.d.ts +14 -5
- package/run/useResolveAgentRunSession.d.ts.map +1 -0
- package/run/useResolveAgentRunSession.js +46 -0
- package/run/useResolveAgentRunSession.js.map +1 -0
- package/run/useRunStream.js +1 -1
- package/run/useRunStream.js.map +1 -1
- package/runner-adapter.d.ts +4 -10
- package/runner-adapter.d.ts.map +1 -1
- package/runner-adapter.js.map +1 -1
- package/schedule/ScheduleDetailView.d.ts.map +1 -1
- package/schedule/ScheduleDetailView.js +0 -1
- package/schedule/ScheduleDetailView.js.map +1 -1
- package/schedule/ScheduleForm.d.ts +1 -1
- package/schedule/ScheduleForm.js +1 -1
- package/session/SessionPanelChip.js +1 -1
- package/session/SessionPanelChip.js.map +1 -1
- package/session/SessionViewer.d.ts +1 -2
- package/session/SessionViewer.d.ts.map +1 -1
- package/session/SessionViewer.js +1 -2
- package/session/SessionViewer.js.map +1 -1
- package/session/index.d.ts.map +1 -1
- package/session/index.js +2 -3
- package/session/index.js.map +1 -1
- package/session/useSessionConversation.js +1 -1
- package/session/useSessionConversation.js.map +1 -1
- package/session/useSessionFileChanges.d.ts +1 -2
- package/session/useSessionFileChanges.d.ts.map +1 -1
- package/session/useSessionFileChanges.js +1 -2
- package/session/useSessionFileChanges.js.map +1 -1
- package/settings/TeamsSection.js +1 -1
- package/settings/TeamsSection.js.map +1 -1
- package/sidebar/WorkspaceSidebar.d.ts +1 -3
- package/sidebar/WorkspaceSidebar.d.ts.map +1 -1
- package/sidebar/WorkspaceSidebar.js +9 -18
- package/sidebar/WorkspaceSidebar.js.map +1 -1
- package/sidebar/types.d.ts +2 -3
- package/sidebar/types.d.ts.map +1 -1
- package/skill/useSkillUpload.d.ts +1 -1
- package/skill/useSkillUpload.js +1 -1
- package/src/access/ManageAccessButton.tsx +2 -8
- package/src/access/ManageAccessDialog.tsx +1 -17
- package/src/access/index.ts +0 -1
- package/src/access/types.ts +2 -17
- package/src/access/useManageAccess.tsx +1 -6
- package/src/activity/index.ts +0 -7
- package/src/activity/types.ts +6 -17
- package/src/activity/useRecentActivity.ts +40 -61
- package/src/approval-defaults-context.ts +1 -2
- package/src/billing/ProviderKeysSection.tsx +1 -1
- package/src/dashboard/DashboardFailedRuns.tsx +5 -16
- package/src/dashboard/DashboardKPICards.tsx +16 -48
- package/src/dashboard/OperationalDashboard.tsx +15 -39
- package/src/dashboard/types.ts +10 -21
- package/src/dashboard/useAgentRunSummary.ts +2 -2
- package/src/dashboard/useDashboardFailedRuns.ts +15 -59
- package/src/dashboard/useDashboardSummary.ts +17 -41
- package/src/index.ts +3 -300
- package/src/internal/DecisionButton.tsx +2 -3
- package/src/internal/ResizableSplit.tsx +2 -18
- package/src/internal/mermaid-loader.ts +1 -2
- package/src/internal/motion-preference.ts +6 -19
- package/src/internal/store/index.ts +0 -6
- package/src/internal/thread-card/ThreadCardShell.tsx +4 -5
- package/src/internal/thread-card/glyphs.tsx +2 -3
- package/src/internal/useKeyedSubmission.ts +3 -3
- package/src/library/ResourceVisibilityControl.tsx +1 -2
- package/src/library/index.ts +0 -2
- package/src/library/useExportResource.ts +7 -17
- package/src/library/useUpdateVisibility.ts +3 -7
- package/src/library/visibilityLevels.ts +1 -1
- package/src/manifest/ApplyManifestDialog.tsx +1 -1
- package/src/manifest/EditResourceYamlDialog.tsx +1 -1
- package/src/manifest/YamlEditor.tsx +1 -1
- package/src/plugin/PluginDetailView.tsx +1 -11
- package/src/plugin/PluginInstallDialog.tsx +0 -1
- package/src/plugin/usePluginMembers.ts +2 -4
- package/src/provider.tsx +23 -250
- package/src/resource-creation/index.ts +0 -2
- package/src/resource-creation/templates/index.ts +0 -2
- package/src/resource-detail/types.ts +1 -1
- package/src/resource-detail/useDeleteResource.ts +0 -6
- package/src/run/ArtifactContentBody.tsx +1 -2
- package/src/run/ArtifactFileContent.tsx +3 -5
- package/src/run/ArtifactRow.tsx +1 -3
- package/src/run/ArtifactRowView.tsx +5 -8
- package/src/run/FileChangesView.tsx +1 -3
- package/src/run/FileReviewCard.tsx +3 -3
- package/src/run/artifact-document.ts +5 -6
- package/src/run/artifact-row-item.ts +8 -40
- package/src/run/deriveRunFileChanges.ts +6 -9
- package/src/run/index.ts +4 -11
- package/src/run/useAgentRunActions.ts +1 -2
- package/src/run/useArtifactDownload.ts +1 -2
- package/src/run/useLiveAgentRun.ts +3 -3
- package/src/{workflow → run}/useResolveAgentRunSession.ts +25 -10
- package/src/run/useRunStream.ts +1 -1
- package/src/runner-adapter.ts +4 -10
- package/src/schedule/ScheduleDetailView.tsx +0 -1
- package/src/schedule/ScheduleForm.tsx +1 -1
- package/src/session/SessionPanelChip.tsx +1 -1
- package/src/session/SessionViewer.tsx +1 -2
- package/src/session/index.ts +2 -3
- package/src/session/useSessionConversation.ts +1 -1
- package/src/session/useSessionFileChanges.ts +1 -2
- package/src/settings/TeamsSection.tsx +1 -1
- package/src/sidebar/WorkspaceSidebar.tsx +7 -38
- package/src/sidebar/types.ts +2 -3
- package/src/skill/useSkillUpload.ts +1 -1
- package/src/styles.css +0 -6
- package/src/version-history/VersionTimeline.tsx +1 -1
- package/src/workspace/PanelChip.tsx +2 -2
- package/src/workspace/WorkspaceSurface.tsx +1 -23
- package/styles.css +1 -1
- package/version-history/VersionTimeline.d.ts +1 -1
- package/version-history/VersionTimeline.js +1 -1
- package/workspace/PanelChip.d.ts +1 -1
- package/workspace/PanelChip.js +1 -1
- package/workspace/PanelChip.js.map +1 -1
- package/workspace/WorkspaceSurface.d.ts +1 -12
- package/workspace/WorkspaceSurface.d.ts.map +1 -1
- package/workspace/WorkspaceSurface.js +0 -7
- package/workspace/WorkspaceSurface.js.map +1 -1
- package/activity/entry-status-badge.d.ts +0 -23
- package/activity/entry-status-badge.d.ts.map +0 -1
- package/activity/entry-status-badge.js +0 -18
- package/activity/entry-status-badge.js.map +0 -1
- package/internal/store/workflow-run-event-store.d.ts +0 -141
- package/internal/store/workflow-run-event-store.d.ts.map +0 -1
- package/internal/store/workflow-run-event-store.js +0 -415
- package/internal/store/workflow-run-event-store.js.map +0 -1
- package/internal/useInViewport.d.ts +0 -24
- package/internal/useInViewport.d.ts.map +0 -1
- package/internal/useInViewport.js +0 -49
- package/internal/useInViewport.js.map +0 -1
- package/resource-creation/templates/workflow-templates.d.ts +0 -26
- package/resource-creation/templates/workflow-templates.d.ts.map +0 -1
- package/resource-creation/templates/workflow-templates.js +0 -1236
- package/resource-creation/templates/workflow-templates.js.map +0 -1
- package/run/file-change-document.d.ts +0 -22
- package/run/file-change-document.d.ts.map +0 -1
- package/run/file-change-document.js +0 -34
- package/run/file-change-document.js.map +0 -1
- package/run/useArtifactContentById.d.ts +0 -61
- package/run/useArtifactContentById.d.ts.map +0 -1
- package/run/useArtifactContentById.js +0 -63
- package/run/useArtifactContentById.js.map +0 -1
- package/src/activity/entry-status-badge.ts +0 -39
- package/src/internal/store/workflow-run-event-store.ts +0 -569
- package/src/internal/useInViewport.ts +0 -63
- package/src/resource-creation/templates/workflow-templates.ts +0 -1263
- package/src/run/file-change-document.ts +0 -37
- package/src/run/useArtifactContentById.ts +0 -120
- package/src/workflow/ApprovalFormBuilder.tsx +0 -1009
- package/src/workflow/BranchConditionBuilder.tsx +0 -449
- package/src/workflow/CanvasActionsContext.ts +0 -26
- package/src/workflow/CanvasContextMenu.tsx +0 -611
- package/src/workflow/CanvasTransitionEdge.tsx +0 -245
- package/src/workflow/CostByWorkflowChart.tsx +0 -120
- package/src/workflow/FailedRunsWidget.tsx +0 -103
- package/src/workflow/PendingApprovalsWidget.tsx +0 -116
- package/src/workflow/ReviewRendererContext.ts +0 -90
- package/src/workflow/RunActiveTaskIndicator.tsx +0 -173
- package/src/workflow/RunSummaryWidget.tsx +0 -190
- package/src/workflow/RunTrendChart.tsx +0 -157
- package/src/workflow/RunVisibilityControl.tsx +0 -135
- package/src/workflow/TaskConfigForm.tsx +0 -616
- package/src/workflow/TaskKindRegistryContext.ts +0 -34
- package/src/workflow/TaskPickerPopover.tsx +0 -335
- package/src/workflow/ViewYamlDialog.tsx +0 -113
- package/src/workflow/WorkflowAgentCallTranscript.tsx +0 -278
- package/src/workflow/WorkflowApprovalList.tsx +0 -158
- package/src/workflow/WorkflowArchitectDialog.tsx +0 -479
- package/src/workflow/WorkflowArtifactDocument.tsx +0 -253
- package/src/workflow/WorkflowCanvasEditor.tsx +0 -897
- package/src/workflow/WorkflowCanvasInner.tsx +0 -174
- package/src/workflow/WorkflowCodePreviewGraph.tsx +0 -130
- package/src/workflow/WorkflowDashboard.tsx +0 -125
- package/src/workflow/WorkflowDetailView.tsx +0 -875
- package/src/workflow/WorkflowDiffGraph.tsx +0 -176
- package/src/workflow/WorkflowEditorView.tsx +0 -678
- package/src/workflow/WorkflowExplainDialog.tsx +0 -184
- package/src/workflow/WorkflowFileReviewList.tsx +0 -152
- package/src/workflow/WorkflowGraphFullscreenDialog.tsx +0 -113
- package/src/workflow/WorkflowGraphModeContext.tsx +0 -46
- package/src/workflow/WorkflowInspectorPanel.tsx +0 -175
- package/src/workflow/WorkflowNode.tsx +0 -161
- package/src/workflow/WorkflowNodePopover.tsx +0 -168
- package/src/workflow/WorkflowOverviewGraph.tsx +0 -275
- package/src/workflow/WorkflowOverviewSummary.tsx +0 -119
- package/src/workflow/WorkflowRefinePanel.tsx +0 -432
- package/src/workflow/WorkflowRepairCard.tsx +0 -439
- package/src/workflow/WorkflowRunDialog.tsx +0 -180
- package/src/workflow/WorkflowRunForm.tsx +0 -352
- package/src/workflow/WorkflowRunGraph.tsx +0 -402
- package/src/workflow/WorkflowRunHeader.tsx +0 -210
- package/src/workflow/WorkflowRunPhaseBadge.tsx +0 -188
- package/src/workflow/WorkflowRunViewer.tsx +0 -1010
- package/src/workflow/WorkflowTaskApprovalCard.tsx +0 -322
- package/src/workflow/WorkflowTaskApprovalSummary.tsx +0 -325
- package/src/workflow/WorkflowTaskList.tsx +0 -177
- package/src/workflow/WorkflowTaskPalette.tsx +0 -246
- package/src/workflow/WorkflowTaskReviewGate.tsx +0 -232
- package/src/workflow/WorkflowVersionBadge.tsx +0 -93
- package/src/workflow/WorkflowVersionDiffViewer.tsx +0 -211
- package/src/workflow/WorkflowVersionTimeline.tsx +0 -275
- package/src/workflow/WorkflowVersionsTab.tsx +0 -92
- package/src/workflow/WorkflowYamlEditor.tsx +0 -7
- package/src/workflow/architect-response-schema.ts +0 -69
- package/src/workflow/canvas-constants.ts +0 -105
- package/src/workflow/canvas-icons.tsx +0 -36
- package/src/workflow/clipboard.ts +0 -187
- package/src/workflow/cncf-yaml-to-graph.ts +0 -430
- package/src/workflow/deriveWorkflowArtifactItems.ts +0 -59
- package/src/workflow/deriveWorkflowUsageItems.ts +0 -73
- package/src/workflow/diagnosis-document.ts +0 -31
- package/src/workflow/diff/DiffSummaryBar.tsx +0 -64
- package/src/workflow/diff/build-diff-graph.ts +0 -81
- package/src/workflow/diff/graph-diff.ts +0 -211
- package/src/workflow/diff/index.ts +0 -11
- package/src/workflow/diff/types.ts +0 -36
- package/src/workflow/extract-workflow-yaml.ts +0 -87
- package/src/workflow/facets/WorkflowArtifactsTab.tsx +0 -100
- package/src/workflow/facets/WorkflowChangesTab.tsx +0 -129
- package/src/workflow/facets/WorkflowUsageTab.tsx +0 -259
- package/src/workflow/format-utils.ts +0 -120
- package/src/workflow/graph-commands.ts +0 -1774
- package/src/workflow/index.ts +0 -854
- package/src/workflow/inspector/EdgeInspector.tsx +0 -71
- package/src/workflow/inspector/InspectorHeader.tsx +0 -272
- package/src/workflow/inspector/InspectorShell.tsx +0 -246
- package/src/workflow/inspector/NestedTaskList.tsx +0 -142
- package/src/workflow/inspector/SentinelInspector.tsx +0 -33
- package/src/workflow/inspector/WorkflowSummaryPanel.tsx +0 -265
- package/src/workflow/inspector/forms/AgentCallForm.tsx +0 -588
- package/src/workflow/inspector/forms/HttpCallForm.tsx +0 -250
- package/src/workflow/inspector/index.ts +0 -57
- package/src/workflow/inspector/tabs/AdvancedTab.tsx +0 -93
- package/src/workflow/inspector/tabs/BranchesTab.tsx +0 -418
- package/src/workflow/inspector/tabs/CatchTab.tsx +0 -188
- package/src/workflow/inspector/tabs/ConfigureTab.tsx +0 -114
- package/src/workflow/inspector/tabs/DataTab.tsx +0 -57
- package/src/workflow/inspector/tabs/DocsTab.tsx +0 -73
- package/src/workflow/inspector/tabs/IterationTab.tsx +0 -239
- package/src/workflow/inspector/tabs/RuntimeTab.tsx +0 -320
- package/src/workflow/inspector/task-to-yaml.ts +0 -68
- package/src/workflow/inspector/types.ts +0 -83
- package/src/workflow/inspector/useInspectorTabs.ts +0 -117
- package/src/workflow/inspector/useNestedTaskEditor.ts +0 -106
- package/src/workflow/kind-metadata.ts +0 -108
- package/src/workflow/layout/apply-dagre-layout.ts +0 -54
- package/src/workflow/layout/dagre-layout-engine.ts +0 -93
- package/src/workflow/layout/elk-layout-engine.ts +0 -125
- package/src/workflow/layout/elkjs.d.ts +0 -35
- package/src/workflow/layout/index.ts +0 -55
- package/src/workflow/layout/layout-postprocessor.ts +0 -197
- package/src/workflow/layout/port-assignment.ts +0 -171
- package/src/workflow/layout/registry-dimensions.ts +0 -27
- package/src/workflow/layout/types.ts +0 -200
- package/src/workflow/layout/use-workflow-layout.ts +0 -163
- package/src/workflow/layout/useElkLayoutEngine.ts +0 -112
- package/src/workflow/layout/workflow-preprocessor.ts +0 -226
- package/src/workflow/node-shell/BranchBadge.tsx +0 -123
- package/src/workflow/node-shell/DiffBadge.tsx +0 -79
- package/src/workflow/node-shell/ExecutionBadge.tsx +0 -197
- package/src/workflow/node-shell/NodeActions.tsx +0 -348
- package/src/workflow/node-shell/NodeContent.tsx +0 -93
- package/src/workflow/node-shell/NodeHandles.tsx +0 -213
- package/src/workflow/node-shell/NodeShell.tsx +0 -270
- package/src/workflow/node-shell/index.ts +0 -17
- package/src/workflow/node-shell/shape-paths.ts +0 -140
- package/src/workflow/picker/BranchAddPopover.tsx +0 -238
- package/src/workflow/picker/compatibility.ts +0 -107
- package/src/workflow/picker/index.ts +0 -14
- package/src/workflow/picker/insertion-context.ts +0 -80
- package/src/workflow/picker/recents.ts +0 -89
- package/src/workflow/picker/suggestions.ts +0 -217
- package/src/workflow/picker/usePickerData.ts +0 -171
- package/src/workflow/run/derive-execution-overlays.ts +0 -253
- package/src/workflow/run/index.ts +0 -6
- package/src/workflow/run-comparison/ComparisonSummaryCards.tsx +0 -127
- package/src/workflow/run-comparison/RunComparisonPicker.tsx +0 -219
- package/src/workflow/run-comparison/RunComparisonView.tsx +0 -156
- package/src/workflow/run-comparison/TaskComparisonTable.tsx +0 -279
- package/src/workflow/run-comparison/derive-run-comparison.ts +0 -146
- package/src/workflow/run-comparison/index.ts +0 -23
- package/src/workflow/run-comparison/types.ts +0 -57
- package/src/workflow/run-comparison/useRunComparison.ts +0 -86
- package/src/workflow/run-history/FailureAnalysisPanel.tsx +0 -216
- package/src/workflow/run-history/HealthMetricsStrip.tsx +0 -161
- package/src/workflow/run-history/RunFilterBar.tsx +0 -298
- package/src/workflow/run-history/RunHistoryTable.tsx +0 -439
- package/src/workflow/run-history/WorkflowRunHistory.tsx +0 -118
- package/src/workflow/run-history/derive-failure-analysis.ts +0 -111
- package/src/workflow/run-history/derive-run-row.ts +0 -231
- package/src/workflow/run-history/index.ts +0 -47
- package/src/workflow/run-history/useRunHistoryData.ts +0 -103
- package/src/workflow/serialize-workflow-yaml.ts +0 -542
- package/src/workflow/shortcut-registry.ts +0 -138
- package/src/workflow/starter-workflow-yaml.ts +0 -30
- package/src/workflow/task-detail/StructuredDataViewer.tsx +0 -534
- package/src/workflow/task-detail/index.ts +0 -14
- package/src/workflow/task-detail/task-approval.ts +0 -259
- package/src/workflow/task-detail/task-detail-io.ts +0 -63
- package/src/workflow/task-type-visual-registry.ts +0 -223
- package/src/workflow/templates/WorkflowTemplateCard.tsx +0 -176
- package/src/workflow/templates/WorkflowTemplateGallery.tsx +0 -221
- package/src/workflow/templates/WorkflowTemplatePreview.tsx +0 -310
- package/src/workflow/templates/derive-template-metadata.ts +0 -150
- package/src/workflow/templates/index.ts +0 -20
- package/src/workflow/templates/types.ts +0 -86
- package/src/workflow/thread/WorkflowTaskThread.tsx +0 -741
- package/src/workflow/thread/project-thread-items.ts +0 -233
- package/src/workflow/thread/task-presentation.ts +0 -478
- package/src/workflow/thread/thread-presentation.ts +0 -59
- package/src/workflow/thread/useWorkflowThreadItems.ts +0 -34
- package/src/workflow/topologyFromTasks.ts +0 -134
- package/src/workflow/types.ts +0 -97
- package/src/workflow/useActiveTaskName.ts +0 -80
- package/src/workflow/useApprovalBoundary.ts +0 -72
- package/src/workflow/useCanvasKeyboardShortcuts.ts +0 -203
- package/src/workflow/useDiagnoseRunFlow.ts +0 -407
- package/src/workflow/useExecutionAnnouncements.ts +0 -62
- package/src/workflow/useExplainWorkflowFlow.ts +0 -183
- package/src/workflow/useFollowRun.ts +0 -214
- package/src/workflow/useGraphHistory.ts +0 -117
- package/src/workflow/usePendingApprovals.ts +0 -89
- package/src/workflow/useRefineWorkflowFlow.ts +0 -351
- package/src/workflow/useReviewPayload.ts +0 -115
- package/src/workflow/useRunEnvKeySources.ts +0 -144
- package/src/workflow/useRunWorkflowFlow.ts +0 -312
- package/src/workflow/useTaskKindRegistry.ts +0 -133
- package/src/workflow/useUpdateWorkflow.ts +0 -55
- package/src/workflow/useUpdateWorkflowRunVisibility.ts +0 -81
- package/src/workflow/useWorkflow.ts +0 -78
- package/src/workflow/useWorkflowArchitectFlow.ts +0 -336
- package/src/workflow/useWorkflowArtifactDownload.ts +0 -68
- package/src/workflow/useWorkflowCanvas.ts +0 -1301
- package/src/workflow/useWorkflowCount.ts +0 -59
- package/src/workflow/useWorkflowDashboardSummary.ts +0 -84
- package/src/workflow/useWorkflowDiffGraph.ts +0 -159
- package/src/workflow/useWorkflowEditor.ts +0 -115
- package/src/workflow/useWorkflowList.ts +0 -69
- package/src/workflow/useWorkflowOverviewGraph.ts +0 -93
- package/src/workflow/useWorkflowRun.ts +0 -102
- package/src/workflow/useWorkflowRunActions.ts +0 -402
- package/src/workflow/useWorkflowRunArtifacts.ts +0 -57
- package/src/workflow/useWorkflowRunEventLog.ts +0 -111
- package/src/workflow/useWorkflowRunEventStream.ts +0 -399
- package/src/workflow/useWorkflowRunFileChanges.ts +0 -341
- package/src/workflow/useWorkflowRunGraph.ts +0 -351
- package/src/workflow/useWorkflowRunList.ts +0 -183
- package/src/workflow/useWorkflowRunPanel.ts +0 -327
- package/src/workflow/useWorkflowRunRailViews.tsx +0 -173
- package/src/workflow/useWorkflowSave.ts +0 -78
- package/src/workflow/useWorkflowTopology.ts +0 -213
- package/src/workflow/useWorkflowValidation.ts +0 -327
- package/src/workflow/useWorkflowVersion.ts +0 -120
- package/src/workflow/useWorkflowVersionDiff.ts +0 -120
- package/src/workflow/useWorkflowVersions.ts +0 -162
- package/src/workflow/useWorkflowYaml.ts +0 -47
- package/src/workflow/workflow-architect.ts +0 -99
- package/src/workflow/workflow-graph-conversions.ts +0 -842
- package/src/workflow/workflow-graph-model.ts +0 -81
- package/src/workflow/workflow-uses-trigger-input.ts +0 -58
- package/src/workflow/workflow-yaml-diff.ts +0 -132
- package/workflow/ApprovalFormBuilder.d.ts +0 -23
- package/workflow/ApprovalFormBuilder.d.ts.map +0 -1
- package/workflow/ApprovalFormBuilder.js +0 -351
- package/workflow/ApprovalFormBuilder.js.map +0 -1
- package/workflow/BranchConditionBuilder.d.ts +0 -27
- package/workflow/BranchConditionBuilder.d.ts.map +0 -1
- package/workflow/BranchConditionBuilder.js +0 -168
- package/workflow/BranchConditionBuilder.js.map +0 -1
- package/workflow/CanvasActionsContext.d.ts +0 -31
- package/workflow/CanvasActionsContext.d.ts.map +0 -1
- package/workflow/CanvasActionsContext.js +0 -4
- package/workflow/CanvasActionsContext.js.map +0 -1
- package/workflow/CanvasContextMenu.d.ts +0 -84
- package/workflow/CanvasContextMenu.d.ts.map +0 -1
- package/workflow/CanvasContextMenu.js +0 -115
- package/workflow/CanvasContextMenu.js.map +0 -1
- package/workflow/CanvasTransitionEdge.d.ts +0 -25
- package/workflow/CanvasTransitionEdge.d.ts.map +0 -1
- package/workflow/CanvasTransitionEdge.js +0 -129
- package/workflow/CanvasTransitionEdge.js.map +0 -1
- package/workflow/CostByWorkflowChart.d.ts +0 -15
- package/workflow/CostByWorkflowChart.d.ts.map +0 -1
- package/workflow/CostByWorkflowChart.js +0 -45
- package/workflow/CostByWorkflowChart.js.map +0 -1
- package/workflow/FailedRunsWidget.d.ts +0 -19
- package/workflow/FailedRunsWidget.d.ts.map +0 -1
- package/workflow/FailedRunsWidget.js +0 -29
- package/workflow/FailedRunsWidget.js.map +0 -1
- package/workflow/PendingApprovalsWidget.d.ts +0 -19
- package/workflow/PendingApprovalsWidget.d.ts.map +0 -1
- package/workflow/PendingApprovalsWidget.js +0 -27
- package/workflow/PendingApprovalsWidget.js.map +0 -1
- package/workflow/ReviewRendererContext.d.ts +0 -71
- package/workflow/ReviewRendererContext.d.ts.map +0 -1
- package/workflow/ReviewRendererContext.js +0 -23
- package/workflow/ReviewRendererContext.js.map +0 -1
- package/workflow/RunActiveTaskIndicator.d.ts +0 -32
- package/workflow/RunActiveTaskIndicator.d.ts.map +0 -1
- package/workflow/RunActiveTaskIndicator.js +0 -63
- package/workflow/RunActiveTaskIndicator.js.map +0 -1
- package/workflow/RunSummaryWidget.d.ts +0 -16
- package/workflow/RunSummaryWidget.d.ts.map +0 -1
- package/workflow/RunSummaryWidget.js +0 -87
- package/workflow/RunSummaryWidget.js.map +0 -1
- package/workflow/RunTrendChart.d.ts +0 -14
- package/workflow/RunTrendChart.d.ts.map +0 -1
- package/workflow/RunTrendChart.js +0 -67
- package/workflow/RunTrendChart.js.map +0 -1
- package/workflow/RunVisibilityControl.d.ts +0 -26
- package/workflow/RunVisibilityControl.d.ts.map +0 -1
- package/workflow/RunVisibilityControl.js +0 -71
- package/workflow/RunVisibilityControl.js.map +0 -1
- package/workflow/TaskConfigForm.d.ts +0 -27
- package/workflow/TaskConfigForm.d.ts.map +0 -1
- package/workflow/TaskConfigForm.js +0 -228
- package/workflow/TaskConfigForm.js.map +0 -1
- package/workflow/TaskKindRegistryContext.d.ts +0 -22
- package/workflow/TaskKindRegistryContext.d.ts.map +0 -1
- package/workflow/TaskKindRegistryContext.js +0 -23
- package/workflow/TaskKindRegistryContext.js.map +0 -1
- package/workflow/TaskPickerPopover.d.ts +0 -37
- package/workflow/TaskPickerPopover.d.ts.map +0 -1
- package/workflow/TaskPickerPopover.js +0 -109
- package/workflow/TaskPickerPopover.js.map +0 -1
- package/workflow/ViewYamlDialog.d.ts +0 -21
- package/workflow/ViewYamlDialog.d.ts.map +0 -1
- package/workflow/ViewYamlDialog.js +0 -38
- package/workflow/ViewYamlDialog.js.map +0 -1
- package/workflow/WorkflowAgentCallTranscript.d.ts +0 -86
- package/workflow/WorkflowAgentCallTranscript.d.ts.map +0 -1
- package/workflow/WorkflowAgentCallTranscript.js +0 -98
- package/workflow/WorkflowAgentCallTranscript.js.map +0 -1
- package/workflow/WorkflowApprovalList.d.ts +0 -62
- package/workflow/WorkflowApprovalList.d.ts.map +0 -1
- package/workflow/WorkflowApprovalList.js +0 -52
- package/workflow/WorkflowApprovalList.js.map +0 -1
- package/workflow/WorkflowArchitectDialog.d.ts +0 -53
- package/workflow/WorkflowArchitectDialog.d.ts.map +0 -1
- package/workflow/WorkflowArchitectDialog.js +0 -113
- package/workflow/WorkflowArchitectDialog.js.map +0 -1
- package/workflow/WorkflowArtifactDocument.d.ts +0 -29
- package/workflow/WorkflowArtifactDocument.d.ts.map +0 -1
- package/workflow/WorkflowArtifactDocument.js +0 -86
- package/workflow/WorkflowArtifactDocument.js.map +0 -1
- package/workflow/WorkflowCanvasEditor.d.ts +0 -45
- package/workflow/WorkflowCanvasEditor.d.ts.map +0 -1
- package/workflow/WorkflowCanvasEditor.js +0 -438
- package/workflow/WorkflowCanvasEditor.js.map +0 -1
- package/workflow/WorkflowCanvasInner.d.ts +0 -34
- package/workflow/WorkflowCanvasInner.d.ts.map +0 -1
- package/workflow/WorkflowCanvasInner.js +0 -52
- package/workflow/WorkflowCanvasInner.js.map +0 -1
- package/workflow/WorkflowCodePreviewGraph.d.ts +0 -16
- package/workflow/WorkflowCodePreviewGraph.d.ts.map +0 -1
- package/workflow/WorkflowCodePreviewGraph.js +0 -64
- package/workflow/WorkflowCodePreviewGraph.js.map +0 -1
- package/workflow/WorkflowDashboard.d.ts +0 -35
- package/workflow/WorkflowDashboard.d.ts.map +0 -1
- package/workflow/WorkflowDashboard.js +0 -60
- package/workflow/WorkflowDashboard.js.map +0 -1
- package/workflow/WorkflowDetailView.d.ts +0 -90
- package/workflow/WorkflowDetailView.d.ts.map +0 -1
- package/workflow/WorkflowDetailView.js +0 -322
- package/workflow/WorkflowDetailView.js.map +0 -1
- package/workflow/WorkflowDiffGraph.d.ts +0 -24
- package/workflow/WorkflowDiffGraph.d.ts.map +0 -1
- package/workflow/WorkflowDiffGraph.js +0 -76
- package/workflow/WorkflowDiffGraph.js.map +0 -1
- package/workflow/WorkflowEditorView.d.ts +0 -48
- package/workflow/WorkflowEditorView.d.ts.map +0 -1
- package/workflow/WorkflowEditorView.js +0 -196
- package/workflow/WorkflowEditorView.js.map +0 -1
- package/workflow/WorkflowExplainDialog.d.ts +0 -22
- package/workflow/WorkflowExplainDialog.d.ts.map +0 -1
- package/workflow/WorkflowExplainDialog.js +0 -42
- package/workflow/WorkflowExplainDialog.js.map +0 -1
- package/workflow/WorkflowFileReviewList.d.ts +0 -46
- package/workflow/WorkflowFileReviewList.d.ts.map +0 -1
- package/workflow/WorkflowFileReviewList.js +0 -48
- package/workflow/WorkflowFileReviewList.js.map +0 -1
- package/workflow/WorkflowGraphFullscreenDialog.d.ts +0 -29
- package/workflow/WorkflowGraphFullscreenDialog.d.ts.map +0 -1
- package/workflow/WorkflowGraphFullscreenDialog.js +0 -35
- package/workflow/WorkflowGraphFullscreenDialog.js.map +0 -1
- package/workflow/WorkflowGraphModeContext.d.ts +0 -35
- package/workflow/WorkflowGraphModeContext.d.ts.map +0 -1
- package/workflow/WorkflowGraphModeContext.js +0 -25
- package/workflow/WorkflowGraphModeContext.js.map +0 -1
- package/workflow/WorkflowInspectorPanel.d.ts +0 -82
- package/workflow/WorkflowInspectorPanel.d.ts.map +0 -1
- package/workflow/WorkflowInspectorPanel.js +0 -62
- package/workflow/WorkflowInspectorPanel.js.map +0 -1
- package/workflow/WorkflowNode.d.ts +0 -20
- package/workflow/WorkflowNode.d.ts.map +0 -1
- package/workflow/WorkflowNode.js +0 -68
- package/workflow/WorkflowNode.js.map +0 -1
- package/workflow/WorkflowNodePopover.d.ts +0 -28
- package/workflow/WorkflowNodePopover.d.ts.map +0 -1
- package/workflow/WorkflowNodePopover.js +0 -90
- package/workflow/WorkflowNodePopover.js.map +0 -1
- package/workflow/WorkflowOverviewGraph.d.ts +0 -41
- package/workflow/WorkflowOverviewGraph.d.ts.map +0 -1
- package/workflow/WorkflowOverviewGraph.js +0 -129
- package/workflow/WorkflowOverviewGraph.js.map +0 -1
- package/workflow/WorkflowOverviewSummary.d.ts +0 -20
- package/workflow/WorkflowOverviewSummary.d.ts.map +0 -1
- package/workflow/WorkflowOverviewSummary.js +0 -54
- package/workflow/WorkflowOverviewSummary.js.map +0 -1
- package/workflow/WorkflowRefinePanel.d.ts +0 -35
- package/workflow/WorkflowRefinePanel.d.ts.map +0 -1
- package/workflow/WorkflowRefinePanel.js +0 -115
- package/workflow/WorkflowRefinePanel.js.map +0 -1
- package/workflow/WorkflowRepairCard.d.ts +0 -35
- package/workflow/WorkflowRepairCard.d.ts.map +0 -1
- package/workflow/WorkflowRepairCard.js +0 -113
- package/workflow/WorkflowRepairCard.js.map +0 -1
- package/workflow/WorkflowRunDialog.d.ts +0 -50
- package/workflow/WorkflowRunDialog.d.ts.map +0 -1
- package/workflow/WorkflowRunDialog.js +0 -63
- package/workflow/WorkflowRunDialog.js.map +0 -1
- package/workflow/WorkflowRunForm.d.ts +0 -81
- package/workflow/WorkflowRunForm.d.ts.map +0 -1
- package/workflow/WorkflowRunForm.js +0 -109
- package/workflow/WorkflowRunForm.js.map +0 -1
- package/workflow/WorkflowRunGraph.d.ts +0 -75
- package/workflow/WorkflowRunGraph.d.ts.map +0 -1
- package/workflow/WorkflowRunGraph.js +0 -179
- package/workflow/WorkflowRunGraph.js.map +0 -1
- package/workflow/WorkflowRunHeader.d.ts +0 -26
- package/workflow/WorkflowRunHeader.d.ts.map +0 -1
- package/workflow/WorkflowRunHeader.js +0 -57
- package/workflow/WorkflowRunHeader.js.map +0 -1
- package/workflow/WorkflowRunPhaseBadge.d.ts +0 -23
- package/workflow/WorkflowRunPhaseBadge.d.ts.map +0 -1
- package/workflow/WorkflowRunPhaseBadge.js +0 -99
- package/workflow/WorkflowRunPhaseBadge.js.map +0 -1
- package/workflow/WorkflowRunViewer.d.ts +0 -111
- package/workflow/WorkflowRunViewer.d.ts.map +0 -1
- package/workflow/WorkflowRunViewer.js +0 -482
- package/workflow/WorkflowRunViewer.js.map +0 -1
- package/workflow/WorkflowTaskApprovalCard.d.ts +0 -87
- package/workflow/WorkflowTaskApprovalCard.d.ts.map +0 -1
- package/workflow/WorkflowTaskApprovalCard.js +0 -105
- package/workflow/WorkflowTaskApprovalCard.js.map +0 -1
- package/workflow/WorkflowTaskApprovalSummary.d.ts +0 -57
- package/workflow/WorkflowTaskApprovalSummary.d.ts.map +0 -1
- package/workflow/WorkflowTaskApprovalSummary.js +0 -132
- package/workflow/WorkflowTaskApprovalSummary.js.map +0 -1
- package/workflow/WorkflowTaskList.d.ts +0 -25
- package/workflow/WorkflowTaskList.d.ts.map +0 -1
- package/workflow/WorkflowTaskList.js +0 -89
- package/workflow/WorkflowTaskList.js.map +0 -1
- package/workflow/WorkflowTaskPalette.d.ts +0 -20
- package/workflow/WorkflowTaskPalette.d.ts.map +0 -1
- package/workflow/WorkflowTaskPalette.js +0 -81
- package/workflow/WorkflowTaskPalette.js.map +0 -1
- package/workflow/WorkflowTaskReviewGate.d.ts +0 -54
- package/workflow/WorkflowTaskReviewGate.d.ts.map +0 -1
- package/workflow/WorkflowTaskReviewGate.js +0 -56
- package/workflow/WorkflowTaskReviewGate.js.map +0 -1
- package/workflow/WorkflowVersionBadge.d.ts +0 -32
- package/workflow/WorkflowVersionBadge.d.ts.map +0 -1
- package/workflow/WorkflowVersionBadge.js +0 -31
- package/workflow/WorkflowVersionBadge.js.map +0 -1
- package/workflow/WorkflowVersionDiffViewer.d.ts +0 -32
- package/workflow/WorkflowVersionDiffViewer.d.ts.map +0 -1
- package/workflow/WorkflowVersionDiffViewer.js +0 -74
- package/workflow/WorkflowVersionDiffViewer.js.map +0 -1
- package/workflow/WorkflowVersionTimeline.d.ts +0 -39
- package/workflow/WorkflowVersionTimeline.d.ts.map +0 -1
- package/workflow/WorkflowVersionTimeline.js +0 -80
- package/workflow/WorkflowVersionTimeline.js.map +0 -1
- package/workflow/WorkflowVersionsTab.d.ts +0 -25
- package/workflow/WorkflowVersionsTab.d.ts.map +0 -1
- package/workflow/WorkflowVersionsTab.js +0 -33
- package/workflow/WorkflowVersionsTab.js.map +0 -1
- package/workflow/WorkflowYamlEditor.d.ts +0 -3
- package/workflow/WorkflowYamlEditor.d.ts.map +0 -1
- package/workflow/WorkflowYamlEditor.js +0 -6
- package/workflow/WorkflowYamlEditor.js.map +0 -1
- package/workflow/architect-response-schema.d.ts +0 -34
- package/workflow/architect-response-schema.d.ts.map +0 -1
- package/workflow/architect-response-schema.js +0 -66
- package/workflow/architect-response-schema.js.map +0 -1
- package/workflow/canvas-constants.d.ts +0 -72
- package/workflow/canvas-constants.d.ts.map +0 -1
- package/workflow/canvas-constants.js +0 -84
- package/workflow/canvas-constants.js.map +0 -1
- package/workflow/canvas-icons.d.ts +0 -13
- package/workflow/canvas-icons.d.ts.map +0 -1
- package/workflow/canvas-icons.js +0 -21
- package/workflow/canvas-icons.js.map +0 -1
- package/workflow/clipboard.d.ts +0 -44
- package/workflow/clipboard.d.ts.map +0 -1
- package/workflow/clipboard.js +0 -131
- package/workflow/clipboard.js.map +0 -1
- package/workflow/cncf-yaml-to-graph.d.ts +0 -19
- package/workflow/cncf-yaml-to-graph.d.ts.map +0 -1
- package/workflow/cncf-yaml-to-graph.js +0 -368
- package/workflow/cncf-yaml-to-graph.js.map +0 -1
- package/workflow/deriveWorkflowArtifactItems.d.ts +0 -30
- package/workflow/deriveWorkflowArtifactItems.d.ts.map +0 -1
- package/workflow/deriveWorkflowArtifactItems.js +0 -38
- package/workflow/deriveWorkflowArtifactItems.js.map +0 -1
- package/workflow/deriveWorkflowUsageItems.d.ts +0 -36
- package/workflow/deriveWorkflowUsageItems.d.ts.map +0 -1
- package/workflow/deriveWorkflowUsageItems.js +0 -50
- package/workflow/deriveWorkflowUsageItems.js.map +0 -1
- package/workflow/diagnosis-document.d.ts +0 -17
- package/workflow/diagnosis-document.d.ts.map +0 -1
- package/workflow/diagnosis-document.js +0 -29
- package/workflow/diagnosis-document.js.map +0 -1
- package/workflow/diff/DiffSummaryBar.d.ts +0 -11
- package/workflow/diff/DiffSummaryBar.d.ts.map +0 -1
- package/workflow/diff/DiffSummaryBar.js +0 -16
- package/workflow/diff/DiffSummaryBar.js.map +0 -1
- package/workflow/diff/build-diff-graph.d.ts +0 -23
- package/workflow/diff/build-diff-graph.d.ts.map +0 -1
- package/workflow/diff/build-diff-graph.js +0 -58
- package/workflow/diff/build-diff-graph.js.map +0 -1
- package/workflow/diff/graph-diff.d.ts +0 -25
- package/workflow/diff/graph-diff.d.ts.map +0 -1
- package/workflow/diff/graph-diff.js +0 -166
- package/workflow/diff/graph-diff.js.map +0 -1
- package/workflow/diff/index.d.ts +0 -5
- package/workflow/diff/index.d.ts.map +0 -1
- package/workflow/diff/index.js +0 -4
- package/workflow/diff/index.js.map +0 -1
- package/workflow/diff/types.d.ts +0 -36
- package/workflow/diff/types.d.ts.map +0 -1
- package/workflow/diff/types.js +0 -2
- package/workflow/diff/types.js.map +0 -1
- package/workflow/extract-workflow-yaml.d.ts +0 -22
- package/workflow/extract-workflow-yaml.d.ts.map +0 -1
- package/workflow/extract-workflow-yaml.js +0 -63
- package/workflow/extract-workflow-yaml.js.map +0 -1
- package/workflow/facets/WorkflowArtifactsTab.d.ts +0 -26
- package/workflow/facets/WorkflowArtifactsTab.d.ts.map +0 -1
- package/workflow/facets/WorkflowArtifactsTab.js +0 -35
- package/workflow/facets/WorkflowArtifactsTab.js.map +0 -1
- package/workflow/facets/WorkflowChangesTab.d.ts +0 -37
- package/workflow/facets/WorkflowChangesTab.d.ts.map +0 -1
- package/workflow/facets/WorkflowChangesTab.js +0 -50
- package/workflow/facets/WorkflowChangesTab.js.map +0 -1
- package/workflow/facets/WorkflowUsageTab.d.ts +0 -27
- package/workflow/facets/WorkflowUsageTab.d.ts.map +0 -1
- package/workflow/facets/WorkflowUsageTab.js +0 -88
- package/workflow/facets/WorkflowUsageTab.js.map +0 -1
- package/workflow/format-utils.d.ts +0 -58
- package/workflow/format-utils.d.ts.map +0 -1
- package/workflow/format-utils.js +0 -124
- package/workflow/format-utils.js.map +0 -1
- package/workflow/graph-commands.d.ts +0 -449
- package/workflow/graph-commands.d.ts.map +0 -1
- package/workflow/graph-commands.js +0 -1465
- package/workflow/graph-commands.js.map +0 -1
- package/workflow/index.d.ts +0 -134
- package/workflow/index.d.ts.map +0 -1
- package/workflow/index.js +0 -191
- package/workflow/index.js.map +0 -1
- package/workflow/inspector/EdgeInspector.d.ts +0 -15
- package/workflow/inspector/EdgeInspector.d.ts.map +0 -1
- package/workflow/inspector/EdgeInspector.js +0 -14
- package/workflow/inspector/EdgeInspector.js.map +0 -1
- package/workflow/inspector/InspectorHeader.d.ts +0 -23
- package/workflow/inspector/InspectorHeader.d.ts.map +0 -1
- package/workflow/inspector/InspectorHeader.js +0 -82
- package/workflow/inspector/InspectorHeader.js.map +0 -1
- package/workflow/inspector/InspectorShell.d.ts +0 -33
- package/workflow/inspector/InspectorShell.d.ts.map +0 -1
- package/workflow/inspector/InspectorShell.js +0 -78
- package/workflow/inspector/InspectorShell.js.map +0 -1
- package/workflow/inspector/NestedTaskList.d.ts +0 -30
- package/workflow/inspector/NestedTaskList.d.ts.map +0 -1
- package/workflow/inspector/NestedTaskList.js +0 -26
- package/workflow/inspector/NestedTaskList.js.map +0 -1
- package/workflow/inspector/SentinelInspector.d.ts +0 -13
- package/workflow/inspector/SentinelInspector.d.ts.map +0 -1
- package/workflow/inspector/SentinelInspector.js +0 -16
- package/workflow/inspector/SentinelInspector.js.map +0 -1
- package/workflow/inspector/WorkflowSummaryPanel.d.ts +0 -18
- package/workflow/inspector/WorkflowSummaryPanel.d.ts.map +0 -1
- package/workflow/inspector/WorkflowSummaryPanel.js +0 -79
- package/workflow/inspector/WorkflowSummaryPanel.js.map +0 -1
- package/workflow/inspector/forms/AgentCallForm.d.ts +0 -35
- package/workflow/inspector/forms/AgentCallForm.d.ts.map +0 -1
- package/workflow/inspector/forms/AgentCallForm.js +0 -171
- package/workflow/inspector/forms/AgentCallForm.js.map +0 -1
- package/workflow/inspector/forms/HttpCallForm.d.ts +0 -15
- package/workflow/inspector/forms/HttpCallForm.d.ts.map +0 -1
- package/workflow/inspector/forms/HttpCallForm.js +0 -84
- package/workflow/inspector/forms/HttpCallForm.js.map +0 -1
- package/workflow/inspector/index.d.ts +0 -32
- package/workflow/inspector/index.d.ts.map +0 -1
- package/workflow/inspector/index.js +0 -26
- package/workflow/inspector/index.js.map +0 -1
- package/workflow/inspector/tabs/AdvancedTab.d.ts +0 -16
- package/workflow/inspector/tabs/AdvancedTab.d.ts.map +0 -1
- package/workflow/inspector/tabs/AdvancedTab.js +0 -22
- package/workflow/inspector/tabs/AdvancedTab.js.map +0 -1
- package/workflow/inspector/tabs/BranchesTab.d.ts +0 -16
- package/workflow/inspector/tabs/BranchesTab.d.ts.map +0 -1
- package/workflow/inspector/tabs/BranchesTab.js +0 -127
- package/workflow/inspector/tabs/BranchesTab.js.map +0 -1
- package/workflow/inspector/tabs/CatchTab.d.ts +0 -17
- package/workflow/inspector/tabs/CatchTab.d.ts.map +0 -1
- package/workflow/inspector/tabs/CatchTab.js +0 -60
- package/workflow/inspector/tabs/CatchTab.js.map +0 -1
- package/workflow/inspector/tabs/ConfigureTab.d.ts +0 -21
- package/workflow/inspector/tabs/ConfigureTab.d.ts.map +0 -1
- package/workflow/inspector/tabs/ConfigureTab.js +0 -37
- package/workflow/inspector/tabs/ConfigureTab.js.map +0 -1
- package/workflow/inspector/tabs/DataTab.d.ts +0 -14
- package/workflow/inspector/tabs/DataTab.d.ts.map +0 -1
- package/workflow/inspector/tabs/DataTab.js +0 -21
- package/workflow/inspector/tabs/DataTab.js.map +0 -1
- package/workflow/inspector/tabs/DocsTab.d.ts +0 -13
- package/workflow/inspector/tabs/DocsTab.d.ts.map +0 -1
- package/workflow/inspector/tabs/DocsTab.js +0 -15
- package/workflow/inspector/tabs/DocsTab.js.map +0 -1
- package/workflow/inspector/tabs/IterationTab.d.ts +0 -19
- package/workflow/inspector/tabs/IterationTab.d.ts.map +0 -1
- package/workflow/inspector/tabs/IterationTab.js +0 -79
- package/workflow/inspector/tabs/IterationTab.js.map +0 -1
- package/workflow/inspector/tabs/RuntimeTab.d.ts +0 -20
- package/workflow/inspector/tabs/RuntimeTab.d.ts.map +0 -1
- package/workflow/inspector/tabs/RuntimeTab.js +0 -90
- package/workflow/inspector/tabs/RuntimeTab.js.map +0 -1
- package/workflow/inspector/task-to-yaml.d.ts +0 -9
- package/workflow/inspector/task-to-yaml.d.ts.map +0 -1
- package/workflow/inspector/task-to-yaml.js +0 -63
- package/workflow/inspector/task-to-yaml.js.map +0 -1
- package/workflow/inspector/types.d.ts +0 -76
- package/workflow/inspector/types.d.ts.map +0 -1
- package/workflow/inspector/types.js +0 -2
- package/workflow/inspector/types.js.map +0 -1
- package/workflow/inspector/useInspectorTabs.d.ts +0 -36
- package/workflow/inspector/useInspectorTabs.d.ts.map +0 -1
- package/workflow/inspector/useInspectorTabs.js +0 -66
- package/workflow/inspector/useInspectorTabs.js.map +0 -1
- package/workflow/inspector/useNestedTaskEditor.d.ts +0 -24
- package/workflow/inspector/useNestedTaskEditor.d.ts.map +0 -1
- package/workflow/inspector/useNestedTaskEditor.js +0 -73
- package/workflow/inspector/useNestedTaskEditor.js.map +0 -1
- package/workflow/kind-metadata.d.ts +0 -23
- package/workflow/kind-metadata.d.ts.map +0 -1
- package/workflow/kind-metadata.js +0 -98
- package/workflow/kind-metadata.js.map +0 -1
- package/workflow/layout/apply-dagre-layout.d.ts +0 -15
- package/workflow/layout/apply-dagre-layout.d.ts.map +0 -1
- package/workflow/layout/apply-dagre-layout.js +0 -44
- package/workflow/layout/apply-dagre-layout.js.map +0 -1
- package/workflow/layout/dagre-layout-engine.d.ts +0 -15
- package/workflow/layout/dagre-layout-engine.d.ts.map +0 -1
- package/workflow/layout/dagre-layout-engine.js +0 -75
- package/workflow/layout/dagre-layout-engine.js.map +0 -1
- package/workflow/layout/elk-layout-engine.d.ts +0 -38
- package/workflow/layout/elk-layout-engine.d.ts.map +0 -1
- package/workflow/layout/elk-layout-engine.js +0 -68
- package/workflow/layout/elk-layout-engine.js.map +0 -1
- package/workflow/layout/index.d.ts +0 -15
- package/workflow/layout/index.d.ts.map +0 -1
- package/workflow/layout/index.js +0 -28
- package/workflow/layout/index.js.map +0 -1
- package/workflow/layout/layout-postprocessor.d.ts +0 -23
- package/workflow/layout/layout-postprocessor.d.ts.map +0 -1
- package/workflow/layout/layout-postprocessor.js +0 -147
- package/workflow/layout/layout-postprocessor.js.map +0 -1
- package/workflow/layout/port-assignment.d.ts +0 -20
- package/workflow/layout/port-assignment.d.ts.map +0 -1
- package/workflow/layout/port-assignment.js +0 -124
- package/workflow/layout/port-assignment.js.map +0 -1
- package/workflow/layout/registry-dimensions.d.ts +0 -22
- package/workflow/layout/registry-dimensions.d.ts.map +0 -1
- package/workflow/layout/registry-dimensions.js +0 -25
- package/workflow/layout/registry-dimensions.js.map +0 -1
- package/workflow/layout/types.d.ts +0 -158
- package/workflow/layout/types.d.ts.map +0 -1
- package/workflow/layout/types.js +0 -2
- package/workflow/layout/types.js.map +0 -1
- package/workflow/layout/use-workflow-layout.d.ts +0 -47
- package/workflow/layout/use-workflow-layout.d.ts.map +0 -1
- package/workflow/layout/use-workflow-layout.js +0 -95
- package/workflow/layout/use-workflow-layout.js.map +0 -1
- package/workflow/layout/useElkLayoutEngine.d.ts +0 -57
- package/workflow/layout/useElkLayoutEngine.d.ts.map +0 -1
- package/workflow/layout/useElkLayoutEngine.js +0 -64
- package/workflow/layout/useElkLayoutEngine.js.map +0 -1
- package/workflow/layout/workflow-preprocessor.d.ts +0 -30
- package/workflow/layout/workflow-preprocessor.d.ts.map +0 -1
- package/workflow/layout/workflow-preprocessor.js +0 -170
- package/workflow/layout/workflow-preprocessor.js.map +0 -1
- package/workflow/node-shell/BranchBadge.d.ts +0 -15
- package/workflow/node-shell/BranchBadge.d.ts.map +0 -1
- package/workflow/node-shell/BranchBadge.js +0 -63
- package/workflow/node-shell/BranchBadge.js.map +0 -1
- package/workflow/node-shell/DiffBadge.d.ts +0 -15
- package/workflow/node-shell/DiffBadge.d.ts.map +0 -1
- package/workflow/node-shell/DiffBadge.js +0 -39
- package/workflow/node-shell/DiffBadge.js.map +0 -1
- package/workflow/node-shell/ExecutionBadge.d.ts +0 -37
- package/workflow/node-shell/ExecutionBadge.d.ts.map +0 -1
- package/workflow/node-shell/ExecutionBadge.js +0 -75
- package/workflow/node-shell/ExecutionBadge.js.map +0 -1
- package/workflow/node-shell/NodeActions.d.ts +0 -19
- package/workflow/node-shell/NodeActions.d.ts.map +0 -1
- package/workflow/node-shell/NodeActions.js +0 -139
- package/workflow/node-shell/NodeActions.js.map +0 -1
- package/workflow/node-shell/NodeContent.d.ts +0 -20
- package/workflow/node-shell/NodeContent.d.ts.map +0 -1
- package/workflow/node-shell/NodeContent.js +0 -34
- package/workflow/node-shell/NodeContent.js.map +0 -1
- package/workflow/node-shell/NodeHandles.d.ts +0 -21
- package/workflow/node-shell/NodeHandles.d.ts.map +0 -1
- package/workflow/node-shell/NodeHandles.js +0 -103
- package/workflow/node-shell/NodeHandles.js.map +0 -1
- package/workflow/node-shell/NodeShell.d.ts +0 -30
- package/workflow/node-shell/NodeShell.d.ts.map +0 -1
- package/workflow/node-shell/NodeShell.js +0 -112
- package/workflow/node-shell/NodeShell.js.map +0 -1
- package/workflow/node-shell/index.d.ts +0 -9
- package/workflow/node-shell/index.d.ts.map +0 -1
- package/workflow/node-shell/index.js +0 -9
- package/workflow/node-shell/index.js.map +0 -1
- package/workflow/node-shell/shape-paths.d.ts +0 -51
- package/workflow/node-shell/shape-paths.d.ts.map +0 -1
- package/workflow/node-shell/shape-paths.js +0 -117
- package/workflow/node-shell/shape-paths.js.map +0 -1
- package/workflow/picker/BranchAddPopover.d.ts +0 -31
- package/workflow/picker/BranchAddPopover.d.ts.map +0 -1
- package/workflow/picker/BranchAddPopover.js +0 -89
- package/workflow/picker/BranchAddPopover.js.map +0 -1
- package/workflow/picker/compatibility.d.ts +0 -32
- package/workflow/picker/compatibility.d.ts.map +0 -1
- package/workflow/picker/compatibility.js +0 -75
- package/workflow/picker/compatibility.js.map +0 -1
- package/workflow/picker/index.d.ts +0 -11
- package/workflow/picker/index.d.ts.map +0 -1
- package/workflow/picker/index.js +0 -6
- package/workflow/picker/index.js.map +0 -1
- package/workflow/picker/insertion-context.d.ts +0 -46
- package/workflow/picker/insertion-context.d.ts.map +0 -1
- package/workflow/picker/insertion-context.js +0 -46
- package/workflow/picker/insertion-context.js.map +0 -1
- package/workflow/picker/recents.d.ts +0 -36
- package/workflow/picker/recents.d.ts.map +0 -1
- package/workflow/picker/recents.js +0 -74
- package/workflow/picker/recents.js.map +0 -1
- package/workflow/picker/suggestions.d.ts +0 -21
- package/workflow/picker/suggestions.d.ts.map +0 -1
- package/workflow/picker/suggestions.js +0 -196
- package/workflow/picker/suggestions.js.map +0 -1
- package/workflow/picker/usePickerData.d.ts +0 -50
- package/workflow/picker/usePickerData.d.ts.map +0 -1
- package/workflow/picker/usePickerData.js +0 -112
- package/workflow/picker/usePickerData.js.map +0 -1
- package/workflow/run/derive-execution-overlays.d.ts +0 -49
- package/workflow/run/derive-execution-overlays.d.ts.map +0 -1
- package/workflow/run/derive-execution-overlays.js +0 -164
- package/workflow/run/derive-execution-overlays.js.map +0 -1
- package/workflow/run/index.d.ts +0 -2
- package/workflow/run/index.d.ts.map +0 -1
- package/workflow/run/index.js +0 -2
- package/workflow/run/index.js.map +0 -1
- package/workflow/run-comparison/ComparisonSummaryCards.d.ts +0 -15
- package/workflow/run-comparison/ComparisonSummaryCards.d.ts.map +0 -1
- package/workflow/run-comparison/ComparisonSummaryCards.js +0 -66
- package/workflow/run-comparison/ComparisonSummaryCards.js.map +0 -1
- package/workflow/run-comparison/RunComparisonPicker.d.ts +0 -27
- package/workflow/run-comparison/RunComparisonPicker.d.ts.map +0 -1
- package/workflow/run-comparison/RunComparisonPicker.js +0 -90
- package/workflow/run-comparison/RunComparisonPicker.js.map +0 -1
- package/workflow/run-comparison/RunComparisonView.d.ts +0 -36
- package/workflow/run-comparison/RunComparisonView.d.ts.map +0 -1
- package/workflow/run-comparison/RunComparisonView.js +0 -51
- package/workflow/run-comparison/RunComparisonView.js.map +0 -1
- package/workflow/run-comparison/TaskComparisonTable.d.ts +0 -18
- package/workflow/run-comparison/TaskComparisonTable.d.ts.map +0 -1
- package/workflow/run-comparison/TaskComparisonTable.js +0 -82
- package/workflow/run-comparison/TaskComparisonTable.js.map +0 -1
- package/workflow/run-comparison/derive-run-comparison.d.ts +0 -14
- package/workflow/run-comparison/derive-run-comparison.d.ts.map +0 -1
- package/workflow/run-comparison/derive-run-comparison.js +0 -120
- package/workflow/run-comparison/derive-run-comparison.js.map +0 -1
- package/workflow/run-comparison/index.d.ts +0 -8
- package/workflow/run-comparison/index.d.ts.map +0 -1
- package/workflow/run-comparison/index.js +0 -7
- package/workflow/run-comparison/index.js.map +0 -1
- package/workflow/run-comparison/types.d.ts +0 -56
- package/workflow/run-comparison/types.d.ts.map +0 -1
- package/workflow/run-comparison/types.js +0 -2
- package/workflow/run-comparison/types.js.map +0 -1
- package/workflow/run-comparison/useRunComparison.d.ts +0 -42
- package/workflow/run-comparison/useRunComparison.d.ts.map +0 -1
- package/workflow/run-comparison/useRunComparison.js +0 -45
- package/workflow/run-comparison/useRunComparison.js.map +0 -1
- package/workflow/run-history/FailureAnalysisPanel.d.ts +0 -31
- package/workflow/run-history/FailureAnalysisPanel.d.ts.map +0 -1
- package/workflow/run-history/FailureAnalysisPanel.js +0 -64
- package/workflow/run-history/FailureAnalysisPanel.js.map +0 -1
- package/workflow/run-history/HealthMetricsStrip.d.ts +0 -28
- package/workflow/run-history/HealthMetricsStrip.d.ts.map +0 -1
- package/workflow/run-history/HealthMetricsStrip.js +0 -62
- package/workflow/run-history/HealthMetricsStrip.js.map +0 -1
- package/workflow/run-history/RunFilterBar.d.ts +0 -27
- package/workflow/run-history/RunFilterBar.d.ts.map +0 -1
- package/workflow/run-history/RunFilterBar.js +0 -118
- package/workflow/run-history/RunFilterBar.js.map +0 -1
- package/workflow/run-history/RunHistoryTable.d.ts +0 -44
- package/workflow/run-history/RunHistoryTable.d.ts.map +0 -1
- package/workflow/run-history/RunHistoryTable.js +0 -185
- package/workflow/run-history/RunHistoryTable.js.map +0 -1
- package/workflow/run-history/WorkflowRunHistory.d.ts +0 -42
- package/workflow/run-history/WorkflowRunHistory.d.ts.map +0 -1
- package/workflow/run-history/WorkflowRunHistory.js +0 -55
- package/workflow/run-history/WorkflowRunHistory.js.map +0 -1
- package/workflow/run-history/derive-failure-analysis.d.ts +0 -40
- package/workflow/run-history/derive-failure-analysis.d.ts.map +0 -1
- package/workflow/run-history/derive-failure-analysis.js +0 -64
- package/workflow/run-history/derive-failure-analysis.js.map +0 -1
- package/workflow/run-history/derive-run-row.d.ts +0 -71
- package/workflow/run-history/derive-run-row.d.ts.map +0 -1
- package/workflow/run-history/derive-run-row.js +0 -143
- package/workflow/run-history/derive-run-row.js.map +0 -1
- package/workflow/run-history/index.d.ts +0 -9
- package/workflow/run-history/index.d.ts.map +0 -1
- package/workflow/run-history/index.js +0 -9
- package/workflow/run-history/index.js.map +0 -1
- package/workflow/run-history/useRunHistoryData.d.ts +0 -52
- package/workflow/run-history/useRunHistoryData.d.ts.map +0 -1
- package/workflow/run-history/useRunHistoryData.js +0 -44
- package/workflow/run-history/useRunHistoryData.js.map +0 -1
- package/workflow/serialize-workflow-yaml.d.ts +0 -35
- package/workflow/serialize-workflow-yaml.d.ts.map +0 -1
- package/workflow/serialize-workflow-yaml.js +0 -409
- package/workflow/serialize-workflow-yaml.js.map +0 -1
- package/workflow/shortcut-registry.d.ts +0 -57
- package/workflow/shortcut-registry.d.ts.map +0 -1
- package/workflow/shortcut-registry.js +0 -81
- package/workflow/shortcut-registry.js.map +0 -1
- package/workflow/starter-workflow-yaml.d.ts +0 -12
- package/workflow/starter-workflow-yaml.d.ts.map +0 -1
- package/workflow/starter-workflow-yaml.js +0 -31
- package/workflow/starter-workflow-yaml.js.map +0 -1
- package/workflow/task-detail/StructuredDataViewer.d.ts +0 -25
- package/workflow/task-detail/StructuredDataViewer.d.ts.map +0 -1
- package/workflow/task-detail/StructuredDataViewer.js +0 -205
- package/workflow/task-detail/StructuredDataViewer.js.map +0 -1
- package/workflow/task-detail/index.d.ts +0 -4
- package/workflow/task-detail/index.d.ts.map +0 -1
- package/workflow/task-detail/index.js +0 -4
- package/workflow/task-detail/index.js.map +0 -1
- package/workflow/task-detail/task-approval.d.ts +0 -134
- package/workflow/task-detail/task-approval.d.ts.map +0 -1
- package/workflow/task-detail/task-approval.js +0 -135
- package/workflow/task-detail/task-approval.js.map +0 -1
- package/workflow/task-detail/task-detail-io.d.ts +0 -37
- package/workflow/task-detail/task-detail-io.d.ts.map +0 -1
- package/workflow/task-detail/task-detail-io.js +0 -40
- package/workflow/task-detail/task-detail-io.js.map +0 -1
- package/workflow/task-type-visual-registry.d.ts +0 -69
- package/workflow/task-type-visual-registry.d.ts.map +0 -1
- package/workflow/task-type-visual-registry.js +0 -131
- package/workflow/task-type-visual-registry.js.map +0 -1
- package/workflow/templates/WorkflowTemplateCard.d.ts +0 -16
- package/workflow/templates/WorkflowTemplateCard.d.ts.map +0 -1
- package/workflow/templates/WorkflowTemplateCard.js +0 -55
- package/workflow/templates/WorkflowTemplateCard.js.map +0 -1
- package/workflow/templates/WorkflowTemplateGallery.d.ts +0 -22
- package/workflow/templates/WorkflowTemplateGallery.d.ts.map +0 -1
- package/workflow/templates/WorkflowTemplateGallery.js +0 -70
- package/workflow/templates/WorkflowTemplateGallery.js.map +0 -1
- package/workflow/templates/WorkflowTemplatePreview.d.ts +0 -19
- package/workflow/templates/WorkflowTemplatePreview.d.ts.map +0 -1
- package/workflow/templates/WorkflowTemplatePreview.js +0 -112
- package/workflow/templates/WorkflowTemplatePreview.js.map +0 -1
- package/workflow/templates/derive-template-metadata.d.ts +0 -13
- package/workflow/templates/derive-template-metadata.d.ts.map +0 -1
- package/workflow/templates/derive-template-metadata.js +0 -134
- package/workflow/templates/derive-template-metadata.js.map +0 -1
- package/workflow/templates/index.d.ts +0 -10
- package/workflow/templates/index.d.ts.map +0 -1
- package/workflow/templates/index.js +0 -8
- package/workflow/templates/index.js.map +0 -1
- package/workflow/templates/types.d.ts +0 -54
- package/workflow/templates/types.d.ts.map +0 -1
- package/workflow/templates/types.js +0 -24
- package/workflow/templates/types.js.map +0 -1
- package/workflow/thread/WorkflowTaskThread.d.ts +0 -96
- package/workflow/thread/WorkflowTaskThread.d.ts.map +0 -1
- package/workflow/thread/WorkflowTaskThread.js +0 -304
- package/workflow/thread/WorkflowTaskThread.js.map +0 -1
- package/workflow/thread/project-thread-items.d.ts +0 -106
- package/workflow/thread/project-thread-items.d.ts.map +0 -1
- package/workflow/thread/project-thread-items.js +0 -124
- package/workflow/thread/project-thread-items.js.map +0 -1
- package/workflow/thread/task-presentation.d.ts +0 -73
- package/workflow/thread/task-presentation.d.ts.map +0 -1
- package/workflow/thread/task-presentation.js +0 -379
- package/workflow/thread/task-presentation.js.map +0 -1
- package/workflow/thread/thread-presentation.d.ts +0 -28
- package/workflow/thread/thread-presentation.d.ts.map +0 -1
- package/workflow/thread/thread-presentation.js +0 -28
- package/workflow/thread/thread-presentation.js.map +0 -1
- package/workflow/thread/useWorkflowThreadItems.d.ts +0 -16
- package/workflow/thread/useWorkflowThreadItems.d.ts.map +0 -1
- package/workflow/thread/useWorkflowThreadItems.js +0 -22
- package/workflow/thread/useWorkflowThreadItems.js.map +0 -1
- package/workflow/topologyFromTasks.d.ts +0 -14
- package/workflow/topologyFromTasks.d.ts.map +0 -1
- package/workflow/topologyFromTasks.js +0 -111
- package/workflow/topologyFromTasks.js.map +0 -1
- package/workflow/types.d.ts +0 -78
- package/workflow/types.d.ts.map +0 -1
- package/workflow/types.js +0 -2
- package/workflow/types.js.map +0 -1
- package/workflow/useActiveTaskName.d.ts +0 -35
- package/workflow/useActiveTaskName.d.ts.map +0 -1
- package/workflow/useActiveTaskName.js +0 -52
- package/workflow/useActiveTaskName.js.map +0 -1
- package/workflow/useApprovalBoundary.d.ts +0 -38
- package/workflow/useApprovalBoundary.d.ts.map +0 -1
- package/workflow/useApprovalBoundary.js +0 -55
- package/workflow/useApprovalBoundary.js.map +0 -1
- package/workflow/useCanvasKeyboardShortcuts.d.ts +0 -51
- package/workflow/useCanvasKeyboardShortcuts.d.ts.map +0 -1
- package/workflow/useCanvasKeyboardShortcuts.js +0 -162
- package/workflow/useCanvasKeyboardShortcuts.js.map +0 -1
- package/workflow/useDiagnoseRunFlow.d.ts +0 -88
- package/workflow/useDiagnoseRunFlow.d.ts.map +0 -1
- package/workflow/useDiagnoseRunFlow.js +0 -284
- package/workflow/useDiagnoseRunFlow.js.map +0 -1
- package/workflow/useExecutionAnnouncements.d.ts +0 -12
- package/workflow/useExecutionAnnouncements.d.ts.map +0 -1
- package/workflow/useExecutionAnnouncements.js +0 -50
- package/workflow/useExecutionAnnouncements.js.map +0 -1
- package/workflow/useExplainWorkflowFlow.d.ts +0 -39
- package/workflow/useExplainWorkflowFlow.d.ts.map +0 -1
- package/workflow/useExplainWorkflowFlow.js +0 -119
- package/workflow/useExplainWorkflowFlow.js.map +0 -1
- package/workflow/useFollowRun.d.ts +0 -94
- package/workflow/useFollowRun.d.ts.map +0 -1
- package/workflow/useFollowRun.js +0 -120
- package/workflow/useFollowRun.js.map +0 -1
- package/workflow/useGraphHistory.d.ts +0 -33
- package/workflow/useGraphHistory.d.ts.map +0 -1
- package/workflow/useGraphHistory.js +0 -90
- package/workflow/useGraphHistory.js.map +0 -1
- package/workflow/usePendingApprovals.d.ts +0 -35
- package/workflow/usePendingApprovals.d.ts.map +0 -1
- package/workflow/usePendingApprovals.js +0 -50
- package/workflow/usePendingApprovals.js.map +0 -1
- package/workflow/useRefineWorkflowFlow.d.ts +0 -75
- package/workflow/useRefineWorkflowFlow.d.ts.map +0 -1
- package/workflow/useRefineWorkflowFlow.js +0 -242
- package/workflow/useRefineWorkflowFlow.js.map +0 -1
- package/workflow/useResolveAgentRunSession.d.ts.map +0 -1
- package/workflow/useResolveAgentRunSession.js +0 -38
- package/workflow/useResolveAgentRunSession.js.map +0 -1
- package/workflow/useReviewPayload.d.ts +0 -41
- package/workflow/useReviewPayload.d.ts.map +0 -1
- package/workflow/useReviewPayload.js +0 -79
- package/workflow/useReviewPayload.js.map +0 -1
- package/workflow/useRunEnvKeySources.d.ts +0 -31
- package/workflow/useRunEnvKeySources.d.ts.map +0 -1
- package/workflow/useRunEnvKeySources.js +0 -99
- package/workflow/useRunEnvKeySources.js.map +0 -1
- package/workflow/useRunWorkflowFlow.d.ts +0 -112
- package/workflow/useRunWorkflowFlow.d.ts.map +0 -1
- package/workflow/useRunWorkflowFlow.js +0 -180
- package/workflow/useRunWorkflowFlow.js.map +0 -1
- package/workflow/useTaskKindRegistry.d.ts +0 -94
- package/workflow/useTaskKindRegistry.d.ts.map +0 -1
- package/workflow/useTaskKindRegistry.js +0 -73
- package/workflow/useTaskKindRegistry.js.map +0 -1
- package/workflow/useUpdateWorkflow.d.ts +0 -24
- package/workflow/useUpdateWorkflow.d.ts.map +0 -1
- package/workflow/useUpdateWorkflow.js +0 -35
- package/workflow/useUpdateWorkflow.js.map +0 -1
- package/workflow/useUpdateWorkflowRunVisibility.d.ts +0 -24
- package/workflow/useUpdateWorkflowRunVisibility.d.ts.map +0 -1
- package/workflow/useUpdateWorkflowRunVisibility.js +0 -44
- package/workflow/useUpdateWorkflowRunVisibility.js.map +0 -1
- package/workflow/useWorkflow.d.ts +0 -47
- package/workflow/useWorkflow.d.ts.map +0 -1
- package/workflow/useWorkflow.js +0 -53
- package/workflow/useWorkflow.js.map +0 -1
- package/workflow/useWorkflowArchitectFlow.d.ts +0 -101
- package/workflow/useWorkflowArchitectFlow.d.ts.map +0 -1
- package/workflow/useWorkflowArchitectFlow.js +0 -207
- package/workflow/useWorkflowArchitectFlow.js.map +0 -1
- package/workflow/useWorkflowArtifactDownload.d.ts +0 -28
- package/workflow/useWorkflowArtifactDownload.d.ts.map +0 -1
- package/workflow/useWorkflowArtifactDownload.js +0 -45
- package/workflow/useWorkflowArtifactDownload.js.map +0 -1
- package/workflow/useWorkflowCanvas.d.ts +0 -110
- package/workflow/useWorkflowCanvas.d.ts.map +0 -1
- package/workflow/useWorkflowCanvas.js +0 -916
- package/workflow/useWorkflowCanvas.js.map +0 -1
- package/workflow/useWorkflowCount.d.ts +0 -39
- package/workflow/useWorkflowCount.d.ts.map +0 -1
- package/workflow/useWorkflowCount.js +0 -26
- package/workflow/useWorkflowCount.js.map +0 -1
- package/workflow/useWorkflowDashboardSummary.d.ts +0 -44
- package/workflow/useWorkflowDashboardSummary.d.ts.map +0 -1
- package/workflow/useWorkflowDashboardSummary.js +0 -42
- package/workflow/useWorkflowDashboardSummary.js.map +0 -1
- package/workflow/useWorkflowDiffGraph.d.ts +0 -39
- package/workflow/useWorkflowDiffGraph.d.ts.map +0 -1
- package/workflow/useWorkflowDiffGraph.js +0 -113
- package/workflow/useWorkflowDiffGraph.js.map +0 -1
- package/workflow/useWorkflowEditor.d.ts +0 -47
- package/workflow/useWorkflowEditor.d.ts.map +0 -1
- package/workflow/useWorkflowEditor.js +0 -57
- package/workflow/useWorkflowEditor.js.map +0 -1
- package/workflow/useWorkflowList.d.ts +0 -46
- package/workflow/useWorkflowList.d.ts.map +0 -1
- package/workflow/useWorkflowList.js +0 -28
- package/workflow/useWorkflowList.js.map +0 -1
- package/workflow/useWorkflowOverviewGraph.d.ts +0 -42
- package/workflow/useWorkflowOverviewGraph.d.ts.map +0 -1
- package/workflow/useWorkflowOverviewGraph.js +0 -51
- package/workflow/useWorkflowOverviewGraph.js.map +0 -1
- package/workflow/useWorkflowRun.d.ts +0 -37
- package/workflow/useWorkflowRun.d.ts.map +0 -1
- package/workflow/useWorkflowRun.js +0 -73
- package/workflow/useWorkflowRun.js.map +0 -1
- package/workflow/useWorkflowRunActions.d.ts +0 -135
- package/workflow/useWorkflowRunActions.d.ts.map +0 -1
- package/workflow/useWorkflowRunActions.js +0 -179
- package/workflow/useWorkflowRunActions.js.map +0 -1
- package/workflow/useWorkflowRunArtifacts.d.ts +0 -26
- package/workflow/useWorkflowRunArtifacts.d.ts.map +0 -1
- package/workflow/useWorkflowRunArtifacts.js +0 -29
- package/workflow/useWorkflowRunArtifacts.js.map +0 -1
- package/workflow/useWorkflowRunEventLog.d.ts +0 -47
- package/workflow/useWorkflowRunEventLog.d.ts.map +0 -1
- package/workflow/useWorkflowRunEventLog.js +0 -59
- package/workflow/useWorkflowRunEventLog.js.map +0 -1
- package/workflow/useWorkflowRunEventStream.d.ts +0 -110
- package/workflow/useWorkflowRunEventStream.d.ts.map +0 -1
- package/workflow/useWorkflowRunEventStream.js +0 -270
- package/workflow/useWorkflowRunEventStream.js.map +0 -1
- package/workflow/useWorkflowRunFileChanges.d.ts +0 -107
- package/workflow/useWorkflowRunFileChanges.d.ts.map +0 -1
- package/workflow/useWorkflowRunFileChanges.js +0 -244
- package/workflow/useWorkflowRunFileChanges.js.map +0 -1
- package/workflow/useWorkflowRunGraph.d.ts +0 -69
- package/workflow/useWorkflowRunGraph.d.ts.map +0 -1
- package/workflow/useWorkflowRunGraph.js +0 -219
- package/workflow/useWorkflowRunGraph.js.map +0 -1
- package/workflow/useWorkflowRunList.d.ts +0 -101
- package/workflow/useWorkflowRunList.d.ts.map +0 -1
- package/workflow/useWorkflowRunList.js +0 -64
- package/workflow/useWorkflowRunList.js.map +0 -1
- package/workflow/useWorkflowRunPanel.d.ts +0 -132
- package/workflow/useWorkflowRunPanel.d.ts.map +0 -1
- package/workflow/useWorkflowRunPanel.js +0 -124
- package/workflow/useWorkflowRunPanel.js.map +0 -1
- package/workflow/useWorkflowRunRailViews.d.ts +0 -46
- package/workflow/useWorkflowRunRailViews.d.ts.map +0 -1
- package/workflow/useWorkflowRunRailViews.js +0 -81
- package/workflow/useWorkflowRunRailViews.js.map +0 -1
- package/workflow/useWorkflowSave.d.ts +0 -28
- package/workflow/useWorkflowSave.d.ts.map +0 -1
- package/workflow/useWorkflowSave.js +0 -49
- package/workflow/useWorkflowSave.js.map +0 -1
- package/workflow/useWorkflowTopology.d.ts +0 -38
- package/workflow/useWorkflowTopology.d.ts.map +0 -1
- package/workflow/useWorkflowTopology.js +0 -141
- package/workflow/useWorkflowTopology.js.map +0 -1
- package/workflow/useWorkflowValidation.d.ts +0 -25
- package/workflow/useWorkflowValidation.d.ts.map +0 -1
- package/workflow/useWorkflowValidation.js +0 -251
- package/workflow/useWorkflowValidation.js.map +0 -1
- package/workflow/useWorkflowVersion.d.ts +0 -36
- package/workflow/useWorkflowVersion.d.ts.map +0 -1
- package/workflow/useWorkflowVersion.js +0 -86
- package/workflow/useWorkflowVersion.js.map +0 -1
- package/workflow/useWorkflowVersionDiff.d.ts +0 -33
- package/workflow/useWorkflowVersionDiff.d.ts.map +0 -1
- package/workflow/useWorkflowVersionDiff.js +0 -91
- package/workflow/useWorkflowVersionDiff.js.map +0 -1
- package/workflow/useWorkflowVersions.d.ts +0 -44
- package/workflow/useWorkflowVersions.d.ts.map +0 -1
- package/workflow/useWorkflowVersions.js +0 -102
- package/workflow/useWorkflowVersions.js.map +0 -1
- package/workflow/useWorkflowYaml.d.ts +0 -24
- package/workflow/useWorkflowYaml.d.ts.map +0 -1
- package/workflow/useWorkflowYaml.js +0 -24
- package/workflow/useWorkflowYaml.js.map +0 -1
- package/workflow/workflow-architect.d.ts +0 -71
- package/workflow/workflow-architect.d.ts.map +0 -1
- package/workflow/workflow-architect.js +0 -63
- package/workflow/workflow-architect.js.map +0 -1
- package/workflow/workflow-graph-conversions.d.ts +0 -123
- package/workflow/workflow-graph-conversions.d.ts.map +0 -1
- package/workflow/workflow-graph-conversions.js +0 -627
- package/workflow/workflow-graph-conversions.js.map +0 -1
- package/workflow/workflow-graph-model.d.ts +0 -81
- package/workflow/workflow-graph-model.d.ts.map +0 -1
- package/workflow/workflow-graph-model.js +0 -5
- package/workflow/workflow-graph-model.js.map +0 -1
- package/workflow/workflow-uses-trigger-input.d.ts +0 -14
- package/workflow/workflow-uses-trigger-input.d.ts.map +0 -1
- package/workflow/workflow-uses-trigger-input.js +0 -51
- package/workflow/workflow-uses-trigger-input.js.map +0 -1
- package/workflow/workflow-yaml-diff.d.ts +0 -24
- package/workflow/workflow-yaml-diff.d.ts.map +0 -1
- package/workflow/workflow-yaml-diff.js +0 -96
- package/workflow/workflow-yaml-diff.js.map +0 -1
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ Three things are required:
|
|
|
56
56
|
| `client` | `Stigmer` | Yes | A configured `@stigmer/sdk` client instance. |
|
|
57
57
|
| `colorMode` | `"light" \| "dark" \| "system"` | No | Controls light/dark appearance. Defaults to `"light"`. |
|
|
58
58
|
| `deploymentMode` | `"local" \| "cloud"` | No | Backend deployment mode. Defaults to `"cloud"`. |
|
|
59
|
-
| `executionTarget` | `"local" \| "cloud"` | No | Default execution target for sessions
|
|
59
|
+
| `executionTarget` | `"local" \| "cloud"` | No | Default execution target for sessions created in this provider. Omit to let the server decide. See [Local Execution](#local-execution). |
|
|
60
60
|
| `runnerAdapter` | `RunnerAdapter` | No | Runner lifecycle adapter, required when `executionTarget` is `"local"`. Omit for cloud. See [Local Execution](#local-execution). |
|
|
61
61
|
| `publicBaseUrl` | `string` | No | The absolute address the Stigmer API is reached at from outside the page, for the URLs components show a user to copy (channel-app webhook URLs, the platform client snippet). Omit when the client's `baseUrl` is absolute; pass it when the client uses a relative `baseUrl` behind a same-origin proxy. Without either, those surfaces say the address is unknown. |
|
|
62
62
|
| `preset` | `ThemePresetId` | No | Built-in theme preset to apply. Omit for the default Stigmer palette. |
|
|
@@ -214,11 +214,11 @@ Two marker attributes are stable public selectors: `data-stgm-root` on the in-tr
|
|
|
214
214
|
|
|
215
215
|
## Local Execution
|
|
216
216
|
|
|
217
|
-
By default, agent
|
|
217
|
+
By default, agent runs execute in the cloud — the Stigmer server provisions a sandbox with a runner. Desktop apps, CLIs, and self-hosted deployments can instead execute runs on the client. Two provider props control this.
|
|
218
218
|
|
|
219
219
|
### `executionTarget`
|
|
220
220
|
|
|
221
|
-
Sets where sessions
|
|
221
|
+
Sets where sessions created within the provider run:
|
|
222
222
|
|
|
223
223
|
| Value | Behavior |
|
|
224
224
|
|-------|----------|
|
|
@@ -226,7 +226,7 @@ Sets where sessions and workflow runs created within the provider run:
|
|
|
226
226
|
| `"cloud"` | The server provisions a cloud sandbox automatically. |
|
|
227
227
|
| `undefined` (default) | The server decides based on deployment context — local for OSS/self-hosted, cloud for managed. |
|
|
228
228
|
|
|
229
|
-
This is an app-level setting: every session
|
|
229
|
+
This is an app-level setting: every session created in the provider tree inherits it. For one-off overrides, `@stigmer/sdk` accepts a per-call `executionTarget` on `session.create()`, which takes precedence over the provider value.
|
|
230
230
|
|
|
231
231
|
### `runnerAdapter`
|
|
232
232
|
|
|
@@ -254,23 +254,19 @@ Cloud consumers omit `runnerAdapter` entirely.
|
|
|
254
254
|
interface RunnerAdapter {
|
|
255
255
|
onSessionOpened(sessionId: string): Promise<void>;
|
|
256
256
|
onSessionClosed(sessionId: string): Promise<void>;
|
|
257
|
-
onWorkflowRunCreated(runId: string): Promise<void>;
|
|
258
|
-
onWorkflowRunTerminated(runId: string): Promise<void>;
|
|
259
257
|
}
|
|
260
258
|
```
|
|
261
259
|
|
|
262
|
-
SDK hooks call these methods at the matching lifecycle points — but only when a `runnerAdapter` is provided **and** the resolved execution target is `"local"`. A Session is a long-lived, multi-turn conversation with **no terminal phase**, so its worker is tied to whether the session is open: it is attached while the session view is open and detached when it closes.
|
|
260
|
+
SDK hooks call these methods at the matching lifecycle points — but only when a `runnerAdapter` is provided **and** the resolved execution target is `"local"`. A Session is a long-lived, multi-turn conversation with **no terminal phase**, so its worker is tied to whether the session is open: it is attached while the session view is open and detached when it closes.
|
|
263
261
|
|
|
264
262
|
| Method | Invoked by | When |
|
|
265
263
|
|--------|------------|------|
|
|
266
264
|
| `onSessionOpened` | `useSessionConversation` (and the new-session flow's eager attach) | While a local session is open — re-attaching on every open, so follow-ups always have a poller. |
|
|
267
265
|
| `onSessionClosed` | `useSessionConversation` | When the session view closes (unmount or session change). |
|
|
268
|
-
| `onWorkflowRunCreated` | `useRunWorkflowFlow` | After a local workflow run is created. |
|
|
269
|
-
| `onWorkflowRunTerminated` | `useWorkflowRun` | When the run reaches a terminal phase. |
|
|
270
266
|
|
|
271
267
|
> Implement `onSessionOpened` / `onSessionClosed` **idempotently** — `onSessionOpened` can be called again for an already-open session (e.g. on re-open), and the reference desktop adapter maps them to `addSession` / `removeSession`, which already de-duplicate. Adapter errors are swallowed for the session view so a transient runner hiccup never crashes an open conversation.
|
|
272
268
|
|
|
273
|
-
If your runner backend already exposes `addSession` / `removeSession`
|
|
269
|
+
If your runner backend already exposes `addSession` / `removeSession` (a `RunnerWorkerHost`), build the adapter in one call with `createRunnerAdapter(host)` instead of hand-writing the two methods — this is how the reference Tauri implementation wires itself. See the [runner embedding guide](https://stigmer.ai/docs/guides/runners/embedding) for the full desktop (local) and web (cloud) walkthrough.
|
|
274
270
|
|
|
275
271
|
## Exports
|
|
276
272
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { AccessResource, AccessVisibility
|
|
1
|
+
import type { AccessResource, AccessVisibility } from "./types.js";
|
|
2
2
|
/** Props for {@link ManageAccessButton}. */
|
|
3
3
|
export interface ManageAccessButtonProps {
|
|
4
4
|
/** The resource whose access is managed. */
|
|
5
5
|
readonly resource: AccessResource;
|
|
6
6
|
/** General access (visibility) axis; omit for resources without visibility. */
|
|
7
7
|
readonly visibility?: AccessVisibility;
|
|
8
|
-
/** Optional resource-specific section (e.g. run observability). */
|
|
9
|
-
readonly extraSection?: AccessExtraSection;
|
|
10
8
|
/** Button label. @default "Manage access" */
|
|
11
9
|
readonly label?: string;
|
|
12
10
|
/** Additional CSS classes for the trigger button. */
|
|
@@ -14,9 +12,8 @@ export interface ManageAccessButtonProps {
|
|
|
14
12
|
}
|
|
15
13
|
/**
|
|
16
14
|
* The single drop-in, visible trigger for the unified Manage access dialog —
|
|
17
|
-
* used by surfaces that render a button in a header or panel (session
|
|
18
|
-
*
|
|
19
|
-
* use {@link useManageAccess}).
|
|
15
|
+
* used by surfaces that render a button in a header or panel (the session
|
|
16
|
+
* viewer) rather than a kebab menu (those use {@link useManageAccess}).
|
|
20
17
|
*
|
|
21
18
|
* Self-gates on `can_view_access`: the button renders only for users who may
|
|
22
19
|
* see the access list, and the dialog's sections gate editing further. Because
|
|
@@ -43,5 +40,5 @@ export interface ManageAccessButtonProps {
|
|
|
43
40
|
* />
|
|
44
41
|
* ```
|
|
45
42
|
*/
|
|
46
|
-
export declare function ManageAccessButton({ resource, visibility,
|
|
43
|
+
export declare function ManageAccessButton({ resource, visibility, label, className, }: ManageAccessButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
47
44
|
//# sourceMappingURL=ManageAccessButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManageAccessButton.d.ts","sourceRoot":"","sources":["../src/access/ManageAccessButton.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ManageAccessButton.d.ts","sourceRoot":"","sources":["../src/access/ManageAccessButton.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,4CAA4C;IAC5C,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,+EAA+E;IAC/E,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IACvC,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,UAAU,EACV,KAAuB,EACvB,SAAS,GACV,EAAE,uBAAuB,2CA6BzB"}
|
|
@@ -6,9 +6,8 @@ import { PermissionGate } from "../iam-policy/PermissionGate.js";
|
|
|
6
6
|
import { ManageAccessDialog } from "./ManageAccessDialog.js";
|
|
7
7
|
/**
|
|
8
8
|
* The single drop-in, visible trigger for the unified Manage access dialog —
|
|
9
|
-
* used by surfaces that render a button in a header or panel (session
|
|
10
|
-
*
|
|
11
|
-
* use {@link useManageAccess}).
|
|
9
|
+
* used by surfaces that render a button in a header or panel (the session
|
|
10
|
+
* viewer) rather than a kebab menu (those use {@link useManageAccess}).
|
|
12
11
|
*
|
|
13
12
|
* Self-gates on `can_view_access`: the button renders only for users who may
|
|
14
13
|
* see the access list, and the dialog's sections gate editing further. Because
|
|
@@ -35,9 +34,9 @@ import { ManageAccessDialog } from "./ManageAccessDialog.js";
|
|
|
35
34
|
* />
|
|
36
35
|
* ```
|
|
37
36
|
*/
|
|
38
|
-
export function ManageAccessButton({ resource, visibility,
|
|
37
|
+
export function ManageAccessButton({ resource, visibility, label = "Manage access", className, }) {
|
|
39
38
|
const [open, setOpen] = useState(false);
|
|
40
|
-
return (_jsxs(PermissionGate, { resource: { kind: resource.kindString, id: resource.id }, relation: "can_view_access", children: [_jsxs("button", { type: "button", onClick: () => setOpen(true), className: cn("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium", "stg:border stg:border-border stg:text-foreground stg:hover:bg-accent-hover", "stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring", className), children: [_jsx(ShareIcon, {}), label] }), _jsx(ManageAccessDialog, { open: open, onOpenChange: setOpen, resource: resource, visibility: visibility
|
|
39
|
+
return (_jsxs(PermissionGate, { resource: { kind: resource.kindString, id: resource.id }, relation: "can_view_access", children: [_jsxs("button", { type: "button", onClick: () => setOpen(true), className: cn("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium", "stg:border stg:border-border stg:text-foreground stg:hover:bg-accent-hover", "stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring", className), children: [_jsx(ShareIcon, {}), label] }), _jsx(ManageAccessDialog, { open: open, onOpenChange: setOpen, resource: resource, visibility: visibility })] }));
|
|
41
40
|
}
|
|
42
41
|
function ShareIcon() {
|
|
43
42
|
return (_jsxs("svg", { width: "13", height: "13", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("circle", { cx: "12", cy: "3.5", r: "1.75" }), _jsx("circle", { cx: "4", cy: "8", r: "1.75" }), _jsx("circle", { cx: "12", cy: "12.5", r: "1.75" }), _jsx("path", { d: "M5.5 7.1l5-2.7M5.5 8.9l5 2.7" })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManageAccessButton.js","sourceRoot":"","sources":["../src/access/ManageAccessButton.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ManageAccessButton.js","sourceRoot":"","sources":["../src/access/ManageAccessButton.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAkB7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,kBAAkB,CAAC,EACjC,QAAQ,EACR,UAAU,EACV,KAAK,GAAG,eAAe,EACvB,SAAS,GACe;IACxB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAExC,OAAO,CACL,MAAC,cAAc,IACb,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,EACxD,QAAQ,EAAC,iBAAiB,aAE1B,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAC5B,SAAS,EAAE,EAAE,CACX,6GAA6G,EAC7G,4EAA4E,EAC5E,6DAA6D,EAC7D,SAAS,CACV,aAED,KAAC,SAAS,KAAG,EACZ,KAAK,IACC,EACT,KAAC,kBAAkB,IACjB,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,OAAO,EACrB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,GACtB,IACa,CAClB,CAAC;AACJ,CAAC;AAED,SAAS,SAAS;IAChB,OAAO,CACL,eACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,aAElB,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,CAAC,EAAC,MAAM,GAAG,EACpC,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,MAAM,GAAG,EACjC,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC,EAAC,MAAM,GAAG,EACrC,eAAM,CAAC,EAAC,8BAA8B,GAAG,IACrC,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccessResource, AccessVisibility
|
|
1
|
+
import type { AccessResource, AccessVisibility } from "./types.js";
|
|
2
2
|
/** Props for {@link ManageAccessDialog}. */
|
|
3
3
|
export interface ManageAccessDialogProps {
|
|
4
4
|
/** Whether the dialog is open. */
|
|
@@ -9,14 +9,9 @@ export interface ManageAccessDialogProps {
|
|
|
9
9
|
readonly resource: AccessResource;
|
|
10
10
|
/**
|
|
11
11
|
* General access (visibility) axis. Omit for resources without visibility
|
|
12
|
-
* (e.g. sessions
|
|
12
|
+
* (e.g. sessions).
|
|
13
13
|
*/
|
|
14
14
|
readonly visibility?: AccessVisibility;
|
|
15
|
-
/**
|
|
16
|
-
* An optional resource-specific section appended below People (e.g.
|
|
17
|
-
* a workflow's run visibility).
|
|
18
|
-
*/
|
|
19
|
-
readonly extraSection?: AccessExtraSection;
|
|
20
15
|
}
|
|
21
16
|
/**
|
|
22
17
|
* The one canonical "Manage access" dialog, mounted identically across every
|
|
@@ -58,5 +53,5 @@ export interface ManageAccessDialogProps {
|
|
|
58
53
|
* />
|
|
59
54
|
* ```
|
|
60
55
|
*/
|
|
61
|
-
export declare function ManageAccessDialog({ open, onOpenChange, resource, visibility,
|
|
56
|
+
export declare function ManageAccessDialog({ open, onOpenChange, resource, visibility, }: ManageAccessDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
62
57
|
//# sourceMappingURL=ManageAccessDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManageAccessDialog.d.ts","sourceRoot":"","sources":["../src/access/ManageAccessDialog.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ManageAccessDialog.d.ts","sourceRoot":"","sources":["../src/access/ManageAccessDialog.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,mDAAmD;IACnD,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,4CAA4C;IAC5C,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,UAAU,GACX,EAAE,uBAAuB,2CA4GzB"}
|
|
@@ -47,7 +47,7 @@ import { ResourceVisibilityControl } from "../library/ResourceVisibilityControl.
|
|
|
47
47
|
* />
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
export function ManageAccessDialog({ open, onOpenChange, resource, visibility,
|
|
50
|
+
export function ManageAccessDialog({ open, onOpenChange, resource, visibility, }) {
|
|
51
51
|
// Instance-scoped title id (oss#593): a reusable component must not
|
|
52
52
|
// hardcode DOM ids — hosts legitimately mount this dialog more than once
|
|
53
53
|
// per page (e.g. zone-cached detail pages), and duplicate ids break the
|
|
@@ -65,7 +65,7 @@ export function ManageAccessDialog({ open, onOpenChange, resource, visibility, e
|
|
|
65
65
|
kind: resource.kindString,
|
|
66
66
|
id: resource.id,
|
|
67
67
|
resourceKind: resource.kind,
|
|
68
|
-
}, resourceKindString: resource.kindString, resourceKind: resource.kind, org: resource.org }) }))
|
|
68
|
+
}, resourceKindString: resource.kindString, resourceKind: resource.kind, org: resource.org }) }))] }), _jsx("div", { className: "stg:flex stg:items-center stg:justify-end stg:border-t stg:border-border stg:px-6 stg:py-3", children: _jsx("button", { type: "button", onClick: handleClose, className: cn("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium", "stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover", "stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring stg:focus:ring-offset-2"), children: "Done" }) })] })) }));
|
|
69
69
|
}
|
|
70
70
|
// ---------------------------------------------------------------------------
|
|
71
71
|
// Internal section chrome
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManageAccessDialog.js","sourceRoot":"","sources":["../src/access/ManageAccessDialog.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,WAAW,EAAE,KAAK,EAAkB,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"ManageAccessDialog.js","sourceRoot":"","sources":["../src/access/ManageAccessDialog.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,WAAW,EAAE,KAAK,EAAkB,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAqBpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,UAAU,kBAAkB,CAAC,EACjC,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,UAAU,GACc;IACxB,oEAAoE;IACpE,yEAAyE;IACzE,wEAAwE;IACxE,8DAA8D;IAC9D,MAAM,OAAO,GAAG,KAAK,EAAE,CAAC;IAExB,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,MAAM,UAAU,GAAG,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,WAAW,GAAG,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/D,MAAM,WAAW,GACf,WAAW,IAAI,qBAAqB,CAAC,QAAQ,CAAC,IAAI,CAAC;QACjD,CAAC,CAAC,8BAA8B;QAChC,CAAC,CAAC,oBAAoB,CAAC;IAE3B,OAAO,CACL,KAAC,WAAW,IACV,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAC,IAAI,qBACO,OAAO,YAGvB,IAAI,IAAI,CACP,eAAK,SAAS,EAAC,uBAAuB,aAEpC,eAAK,SAAS,EAAC,+FAA+F,aAC5G,eAAK,SAAS,EAAC,aAAa,aAC1B,aACE,EAAE,EAAE,OAAO,EACX,SAAS,EAAC,qDAAqD,8BAG5D,EACJ,QAAQ,CAAC,IAAI,IAAI,CAChB,YAAG,SAAS,EAAC,+DAA+D,YACzE,QAAQ,CAAC,IAAI,GACZ,CACL,IACG,EACN,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,WAAW,gBACT,OAAO,EAClB,SAAS,EAAE,EAAE,CACX,kDAAkD,EAClD,qDAAqD,EACrD,6DAA6D,CAC9D,YAED,KAAC,SAAS,KAAG,GACN,IACL,EAGN,eAAK,SAAS,EAAC,sDAAsD,aAClE,UAAU,IAAI,CACb,KAAC,aAAa,IACZ,KAAK,EAAC,gBAAgB,EACtB,WAAW,EAAC,sCAAsC,YAElD,KAAC,yBAAyB,IACxB,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,UAAU,EAAE,QAAQ,CAAC,EAAE,EACvB,UAAU,EAAE,UAAU,CAAC,OAAO,EAC9B,GAAG,EAAE,UAAU,CAAC,GAAG,EACnB,SAAS,EAAE,UAAU,CAAC,SAAS,GAC/B,GACY,CACjB,EAEA,UAAU,IAAI,CACb,KAAC,aAAa,IAAC,KAAK,EAAE,WAAW,YAC/B,KAAC,gBAAgB,IACf,QAAQ,EAAE;oCACR,IAAI,EAAE,QAAQ,CAAC,UAAU;oCACzB,EAAE,EAAE,QAAQ,CAAC,EAAE;oCACf,YAAY,EAAE,QAAQ,CAAC,IAAI;iCAC5B,EACD,kBAAkB,EAAE,QAAQ,CAAC,UAAU,EACvC,YAAY,EAAE,QAAQ,CAAC,IAAI,EAC3B,GAAG,EAAE,QAAQ,CAAC,GAAG,GACjB,GACY,CACjB,IACG,EAGN,cAAK,SAAS,EAAC,4FAA4F,YACzG,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,EAAE,CACX,gEAAgE,EAChE,uEAAuE,EACvE,qFAAqF,CACtF,qBAGM,GACL,IACF,CACP,GACW,CACf,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,0BAA0B;AAC1B,8EAA8E;AAE9E,SAAS,aAAa,CAAC,EACrB,KAAK,EACL,WAAW,EACX,QAAQ,GAKT;IACC,OAAO,CACL,mBAAS,SAAS,EAAC,mBAAmB,aACpC,aAAI,SAAS,EAAC,uDAAuD,YAAE,KAAK,GAAM,EACjF,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,yDAAyD,YACnE,WAAW,GACV,CACL,EACD,cAAK,SAAS,EAAC,YAAY,YAAE,QAAQ,GAAO,IACpC,CACX,CAAC;AACJ,CAAC;AAED,SAAS,SAAS;IAChB,OAAO,CACL,cAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,iBAAa,MAAM,YAC5E,eAAM,CAAC,EAAC,oBAAoB,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,GAAG,GACzF,CACP,CAAC;AACJ,CAAC"}
|
package/access/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ManageAccessDialog, type ManageAccessDialogProps, } from "./ManageAccessDialog.js";
|
|
2
2
|
export { ManageAccessButton, type ManageAccessButtonProps, } from "./ManageAccessButton.js";
|
|
3
3
|
export { useManageAccess, type UseManageAccessArgs, type UseManageAccessReturn, } from "./useManageAccess.js";
|
|
4
|
-
export type { AccessResource, AccessVisibility,
|
|
4
|
+
export type { AccessResource, AccessVisibility, } from "./types.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/access/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/access/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/access/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
|
package/access/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
1
|
import type { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
3
2
|
import type { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
|
|
4
3
|
import type { VisibilityResourceKind } from "../library/useUpdateVisibility.js";
|
|
@@ -11,7 +10,7 @@ import type { VisibilityResourceKind } from "../library/useUpdateVisibility.js";
|
|
|
11
10
|
export interface AccessResource {
|
|
12
11
|
/** ApiResourceKind enum — drives grantable-role lookup and capability. */
|
|
13
12
|
readonly kind: ApiResourceKind;
|
|
14
|
-
/** FGA/API kind string (e.g. "mcp_server", "session", "
|
|
13
|
+
/** FGA/API kind string (e.g. "mcp_server", "session", "agent"). */
|
|
15
14
|
readonly kindString: string;
|
|
16
15
|
/** Resource id. */
|
|
17
16
|
readonly id: string;
|
|
@@ -23,7 +22,7 @@ export interface AccessResource {
|
|
|
23
22
|
/**
|
|
24
23
|
* Describes the "General access" (visibility) axis for the Manage access
|
|
25
24
|
* dialog. Optional because not every resource has visibility (e.g. sessions
|
|
26
|
-
*
|
|
25
|
+
* do not). When present, the dialog renders the
|
|
27
26
|
* shared `ResourceVisibilityControl`, which owns level selection and
|
|
28
27
|
* the `can_manage_audience` gate.
|
|
29
28
|
*/
|
|
@@ -40,17 +39,4 @@ export interface AccessVisibility {
|
|
|
40
39
|
/** Called after a successful visibility change so the host can refetch. */
|
|
41
40
|
readonly onChanged?: () => void;
|
|
42
41
|
}
|
|
43
|
-
/**
|
|
44
|
-
* A generic, resource-specific access section appended below People — the
|
|
45
|
-
* escape hatch for the rare per-kind axis (today: a workflow's run
|
|
46
|
-
* visibility) without baking that knowledge into a generic dialog.
|
|
47
|
-
*/
|
|
48
|
-
export interface AccessExtraSection {
|
|
49
|
-
/** Section heading. */
|
|
50
|
-
readonly title: string;
|
|
51
|
-
/** Optional one-line explanation under the heading. */
|
|
52
|
-
readonly description?: string;
|
|
53
|
-
/** The section body (e.g. a `<RunVisibilityControl />`). */
|
|
54
|
-
readonly content: ReactNode;
|
|
55
|
-
}
|
|
56
42
|
//# sourceMappingURL=types.d.ts.map
|
package/access/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/access/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/access/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAC3H,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AACpG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,mBAAmB;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAC;IACtC,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import type { DetailAction } from "../resource-detail/types.js";
|
|
3
|
-
import type { AccessResource, AccessVisibility
|
|
3
|
+
import type { AccessResource, AccessVisibility } from "./types.js";
|
|
4
4
|
/** Arguments for {@link useManageAccess}. */
|
|
5
5
|
export interface UseManageAccessArgs {
|
|
6
6
|
/**
|
|
@@ -11,8 +11,6 @@ export interface UseManageAccessArgs {
|
|
|
11
11
|
readonly resource: AccessResource | null;
|
|
12
12
|
/** General access (visibility) axis; omit for resources without visibility. */
|
|
13
13
|
readonly visibility?: AccessVisibility;
|
|
14
|
-
/** Optional resource-specific section (e.g. run observability). */
|
|
15
|
-
readonly extraSection?: AccessExtraSection;
|
|
16
14
|
/** Menu-item label. @default "Manage access" */
|
|
17
15
|
readonly label?: string;
|
|
18
16
|
}
|
|
@@ -34,7 +32,7 @@ export interface UseManageAccessReturn {
|
|
|
34
32
|
/**
|
|
35
33
|
* Wires the unified Manage access dialog to a kebab/overflow menu — the
|
|
36
34
|
* trigger shape used by static resource detail views (agent, skill,
|
|
37
|
-
* mcp_server,
|
|
35
|
+
* mcp_server, plugin), whose actions live in {@link ResourceActionBar}'s
|
|
38
36
|
* menu rather than as a standalone button.
|
|
39
37
|
*
|
|
40
38
|
* Owns the open-state and the `can_view_access` gate (a viewer may open the
|
|
@@ -56,5 +54,5 @@ export interface UseManageAccessReturn {
|
|
|
56
54
|
* {access.dialog}
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
|
-
export declare function useManageAccess({ resource, visibility,
|
|
57
|
+
export declare function useManageAccess({ resource, visibility, label, }: UseManageAccessArgs): UseManageAccessReturn;
|
|
60
58
|
//# sourceMappingURL=useManageAccess.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useManageAccess.d.ts","sourceRoot":"","sources":["../src/access/useManageAccess.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"useManageAccess.d.ts","sourceRoot":"","sources":["../src/access/useManageAccess.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,6CAA6C;AAC7C,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IACzC,+EAA+E;IAC/E,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IACvC,gDAAgD;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,+CAA+C;AAC/C,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IACrC,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,oCAAoC;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC;IAC1B,4CAA4C;IAC5C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,UAAU,EACV,KAAuB,GACxB,EAAE,mBAAmB,GAAG,qBAAqB,CAyB7C"}
|
|
@@ -6,7 +6,7 @@ import { ManageAccessDialog } from "./ManageAccessDialog.js";
|
|
|
6
6
|
/**
|
|
7
7
|
* Wires the unified Manage access dialog to a kebab/overflow menu — the
|
|
8
8
|
* trigger shape used by static resource detail views (agent, skill,
|
|
9
|
-
* mcp_server,
|
|
9
|
+
* mcp_server, plugin), whose actions live in {@link ResourceActionBar}'s
|
|
10
10
|
* menu rather than as a standalone button.
|
|
11
11
|
*
|
|
12
12
|
* Owns the open-state and the `can_view_access` gate (a viewer may open the
|
|
@@ -28,14 +28,14 @@ import { ManageAccessDialog } from "./ManageAccessDialog.js";
|
|
|
28
28
|
* {access.dialog}
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
export function useManageAccess({ resource, visibility,
|
|
31
|
+
export function useManageAccess({ resource, visibility, label = "Manage access", }) {
|
|
32
32
|
const [isOpen, setIsOpen] = useState(false);
|
|
33
33
|
const { allowed: canView } = useCheckPermission(resource ? { kind: resource.kindString, id: resource.id } : null, "can_view_access");
|
|
34
34
|
const open = useCallback(() => setIsOpen(true), []);
|
|
35
35
|
const action = resource && canView
|
|
36
36
|
? { id: "manage-access", label, group: "sharing", onAction: open }
|
|
37
37
|
: null;
|
|
38
|
-
const dialog = resource ? (_jsx(ManageAccessDialog, { open: isOpen, onOpenChange: setIsOpen, resource: resource, visibility: visibility
|
|
38
|
+
const dialog = resource ? (_jsx(ManageAccessDialog, { open: isOpen, onOpenChange: setIsOpen, resource: resource, visibility: visibility })) : null;
|
|
39
39
|
return { action, dialog, open, isOpen };
|
|
40
40
|
}
|
|
41
41
|
//# sourceMappingURL=useManageAccess.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useManageAccess.js","sourceRoot":"","sources":["../src/access/useManageAccess.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"useManageAccess.js","sourceRoot":"","sources":["../src/access/useManageAccess.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAoC7D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,eAAe,CAAC,EAC9B,QAAQ,EACR,UAAU,EACV,KAAK,GAAG,eAAe,GACH;IACpB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,kBAAkB,CAC7C,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAChE,iBAAiB,CAClB,CAAC;IAEF,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAEpD,MAAM,MAAM,GACV,QAAQ,IAAI,OAAO;QACjB,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;QAClE,CAAC,CAAC,IAAI,CAAC;IAEX,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CACxB,KAAC,kBAAkB,IACjB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,SAAS,EACvB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,GACtB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;IAET,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1C,CAAC"}
|
package/activity/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export { useRecentActivity, type UseRecentActivityOptions, type UseRecentActivityReturn,
|
|
1
|
+
export type { RecentActivityEntry, RecentActivityGroup, } from "./types.js";
|
|
2
|
+
export { useRecentActivity, type UseRecentActivityOptions, type UseRecentActivityReturn, } from "./useRecentActivity.js";
|
|
3
3
|
export { groupRecentActivityByTime } from "./group-activity.js";
|
|
4
4
|
export { formatRelativeTime } from "./format-relative-time.js";
|
|
5
|
-
export { recentActivityStatusBadge, type RecentActivityStatusBadge, } from "./entry-status-badge.js";
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
package/activity/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/activity/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/activity/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/activity/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { useRecentActivity, } from "./useRecentActivity.js";
|
|
2
2
|
export { groupRecentActivityByTime } from "./group-activity.js";
|
|
3
3
|
export { formatRelativeTime } from "./format-relative-time.js";
|
|
4
|
-
export { recentActivityStatusBadge, } from "./entry-status-badge.js";
|
|
5
4
|
//# sourceMappingURL=index.js.map
|
package/activity/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/activity/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/activity/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,iBAAiB,GAGlB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/activity/types.d.ts
CHANGED
|
@@ -1,29 +1,19 @@
|
|
|
1
|
-
/** Discriminator for items in the unified recents list. */
|
|
2
|
-
export type RecentActivityType = "session" | "workflow_run";
|
|
3
1
|
/**
|
|
4
|
-
* A normalized
|
|
5
|
-
*
|
|
6
|
-
* recents section.
|
|
2
|
+
* A normalized recent session, as listed by {@link useRecentActivity}
|
|
3
|
+
* and rendered in the sidebar recents section.
|
|
7
4
|
*/
|
|
8
5
|
export interface RecentActivityEntry {
|
|
9
|
-
/**
|
|
6
|
+
/** Session ID. */
|
|
10
7
|
readonly id: string;
|
|
11
|
-
/**
|
|
12
|
-
readonly type: RecentActivityType;
|
|
13
|
-
/** Human-readable label: session subject or workflow run name. */
|
|
8
|
+
/** Human-readable label: the session subject. */
|
|
14
9
|
readonly subject: string;
|
|
15
10
|
/**
|
|
16
|
-
* Last meaningful update timestamp, used for
|
|
11
|
+
* Last meaningful update timestamp, used for the recency sort.
|
|
17
12
|
* Derived from `status.audit.statusAudit.updatedAt` (bumped on every
|
|
18
13
|
* meaningful status change), with fallback to `specAudit.createdAt`
|
|
19
|
-
* for
|
|
14
|
+
* for sessions that have never been independently updated.
|
|
20
15
|
*/
|
|
21
16
|
readonly updatedAt: Date;
|
|
22
|
-
/**
|
|
23
|
-
* Run phase for workflow runs (e.g. "COMPLETED", "FAILED").
|
|
24
|
-
* `undefined` for sessions.
|
|
25
|
-
*/
|
|
26
|
-
readonly status?: string;
|
|
27
17
|
}
|
|
28
18
|
/** A time-based group of recent activity entries. */
|
|
29
19
|
export interface RecentActivityGroup {
|
package/activity/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/activity/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/activity/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,kBAAkB;IAClB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B;AAED,qDAAqD;AACrD,MAAM,WAAW,mBAAmB;IAClC,iDAAiD;IACjD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAC;CAClD"}
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import type { RecentActivityEntry
|
|
1
|
+
import type { RecentActivityEntry as ProtoEntry } from "@stigmer/protos/ai/stigmer/activity/v1/io_pb";
|
|
2
|
+
import type { RecentActivityEntry } from "./types.js";
|
|
2
3
|
/** Options for {@link useRecentActivity}. */
|
|
3
4
|
export interface UseRecentActivityOptions {
|
|
4
5
|
/**
|
|
5
|
-
* Maximum entries to return. The server
|
|
6
|
-
*
|
|
6
|
+
* Maximum entries to return. The server sorts the caller's sessions
|
|
7
|
+
* by last activity and returns at most `pageSize`.
|
|
7
8
|
*
|
|
8
9
|
* @default 30
|
|
9
10
|
*/
|
|
10
11
|
readonly pageSize?: number;
|
|
11
12
|
}
|
|
12
|
-
/** Minimal fields required to synthesize an optimistic sidebar entry. */
|
|
13
|
-
export interface OptimisticEntryInput {
|
|
14
|
-
readonly id: string;
|
|
15
|
-
readonly type: RecentActivityType;
|
|
16
|
-
readonly subject: string;
|
|
17
|
-
}
|
|
18
13
|
/** Return value of {@link useRecentActivity}. */
|
|
19
14
|
export interface UseRecentActivityReturn {
|
|
20
|
-
/**
|
|
15
|
+
/** Entries sorted by `updatedAt` descending. */
|
|
21
16
|
readonly entries: readonly RecentActivityEntry[];
|
|
22
17
|
/** `true` while the initial fetch is in flight. */
|
|
23
18
|
readonly isLoading: boolean;
|
|
@@ -25,29 +20,34 @@ export interface UseRecentActivityReturn {
|
|
|
25
20
|
readonly error: Error | null;
|
|
26
21
|
/** Re-fetch from the server. */
|
|
27
22
|
readonly refetch: () => void;
|
|
28
|
-
/**
|
|
29
|
-
* Prepend an optimistic entry to the top of the recents list.
|
|
30
|
-
* The entry is automatically replaced by server data on the next
|
|
31
|
-
* successful refetch that includes its ID.
|
|
32
|
-
*/
|
|
33
|
-
readonly prependOptimistic: (entry: OptimisticEntryInput) => void;
|
|
34
23
|
}
|
|
35
24
|
/**
|
|
36
|
-
* Fetches recent activity via the
|
|
37
|
-
*
|
|
38
|
-
*
|
|
25
|
+
* Fetches recent activity via the `listRecentActivity` RPC, which
|
|
26
|
+
* returns the caller's most recent sessions, time-sorted, in a single
|
|
27
|
+
* call.
|
|
39
28
|
*
|
|
40
29
|
* The server handles:
|
|
41
30
|
* - Per-resource authorization filtering (hosted edition: FGA `can_view`
|
|
42
31
|
* enumeration — every listed entry is openable by the caller; the org
|
|
43
32
|
* only narrows the authorized set, never widens it)
|
|
44
|
-
* -
|
|
33
|
+
* - Sorting by `statusAudit.updatedAt`
|
|
45
34
|
* - Fallback to `specAudit.createdAt` for documents without status updates
|
|
46
35
|
* - Pagination / trimming to the requested page size
|
|
47
36
|
*
|
|
48
|
-
* Both editions implement the RPC with identical
|
|
37
|
+
* Both editions implement the RPC with identical projection semantics
|
|
49
38
|
* (the OSS server since stigmer#461; it is single-tenant, so the caller sees
|
|
50
|
-
* every stored
|
|
39
|
+
* every stored session and the org filter is a no-op there).
|
|
40
|
+
*
|
|
41
|
+
* The client keeps only entries whose id carries the session prefix
|
|
42
|
+
* (`ses_`). The wire entry no longer says what kind it is, and an older
|
|
43
|
+
* server can still return workflow-run entries (`wex_` ids); listed, they
|
|
44
|
+
* would read as sessions that fail to open, so they are dropped here.
|
|
51
45
|
*/
|
|
52
46
|
export declare function useRecentActivity(options?: UseRecentActivityOptions): UseRecentActivityReturn;
|
|
47
|
+
/**
|
|
48
|
+
* Projects a wire entry onto {@link RecentActivityEntry}: an empty
|
|
49
|
+
* subject reads "Untitled session", and a missing timestamp sorts as
|
|
50
|
+
* the epoch.
|
|
51
|
+
*/
|
|
52
|
+
export declare function normalizeRecentActivityEntry(entry: ProtoEntry): RecentActivityEntry;
|
|
53
53
|
//# sourceMappingURL=useRecentActivity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRecentActivity.d.ts","sourceRoot":"","sources":["../src/activity/useRecentActivity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useRecentActivity.d.ts","sourceRoot":"","sources":["../src/activity/useRecentActivity.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAItG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,6CAA6C;AAC7C,MAAM,WAAW,wBAAwB;IACvC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,iDAAiD;AACjD,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACjD,mDAAmD;IACnD,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,gCAAgC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAWD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,CAAC,EAAE,wBAAwB,GACjC,uBAAuB,CAoBzB;AAOD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,UAAU,GAChB,mBAAmB,CAUrB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
2
|
import { timestampDate } from "@bufbuild/protobuf/wkt";
|
|
4
3
|
import { useStigmer } from "../hooks.js";
|
|
5
4
|
import { useActiveOrgId } from "../organization/OrgProvider.js";
|
|
@@ -7,21 +6,31 @@ import { useFetch } from "../internal/useFetch.js";
|
|
|
7
6
|
const DEFAULT_PAGE_SIZE = 30;
|
|
8
7
|
const EPOCH = new Date(0);
|
|
9
8
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
|
|
9
|
+
* The id prefix the server mints every session id with (`ses_` + ULID).
|
|
10
|
+
* Only entries carrying it are sessions the recents list can open.
|
|
11
|
+
*/
|
|
12
|
+
const SESSION_ID_PREFIX = "ses_";
|
|
13
|
+
/**
|
|
14
|
+
* Fetches recent activity via the `listRecentActivity` RPC, which
|
|
15
|
+
* returns the caller's most recent sessions, time-sorted, in a single
|
|
16
|
+
* call.
|
|
13
17
|
*
|
|
14
18
|
* The server handles:
|
|
15
19
|
* - Per-resource authorization filtering (hosted edition: FGA `can_view`
|
|
16
20
|
* enumeration — every listed entry is openable by the caller; the org
|
|
17
21
|
* only narrows the authorized set, never widens it)
|
|
18
|
-
* -
|
|
22
|
+
* - Sorting by `statusAudit.updatedAt`
|
|
19
23
|
* - Fallback to `specAudit.createdAt` for documents without status updates
|
|
20
24
|
* - Pagination / trimming to the requested page size
|
|
21
25
|
*
|
|
22
|
-
* Both editions implement the RPC with identical
|
|
26
|
+
* Both editions implement the RPC with identical projection semantics
|
|
23
27
|
* (the OSS server since stigmer#461; it is single-tenant, so the caller sees
|
|
24
|
-
* every stored
|
|
28
|
+
* every stored session and the org filter is a no-op there).
|
|
29
|
+
*
|
|
30
|
+
* The client keeps only entries whose id carries the session prefix
|
|
31
|
+
* (`ses_`). The wire entry no longer says what kind it is, and an older
|
|
32
|
+
* server can still return workflow-run entries (`wex_` ids); listed, they
|
|
33
|
+
* would read as sessions that fail to open, so they are dropped here.
|
|
25
34
|
*/
|
|
26
35
|
export function useRecentActivity(options) {
|
|
27
36
|
const pageSize = options?.pageSize ?? DEFAULT_PAGE_SIZE;
|
|
@@ -29,49 +38,28 @@ export function useRecentActivity(options) {
|
|
|
29
38
|
const org = useActiveOrgId();
|
|
30
39
|
const { data, isLoading, error, refetch } = useFetch(() => stigmer.activity
|
|
31
40
|
.listRecentActivity({ pageSize, org })
|
|
32
|
-
.then((resp) => resp.entries
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (data !== prevDataRef.current) {
|
|
37
|
-
prevDataRef.current = data;
|
|
38
|
-
if (optimistic.length > 0) {
|
|
39
|
-
setOptimistic([]);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}, [data, optimistic.length]);
|
|
43
|
-
const entries = useMemo(() => {
|
|
44
|
-
if (optimistic.length === 0)
|
|
45
|
-
return data;
|
|
46
|
-
const serverIds = new Set(data.map((e) => e.id));
|
|
47
|
-
const pending = optimistic.filter((e) => !serverIds.has(e.id));
|
|
48
|
-
return pending.length > 0 ? [...pending, ...data] : data;
|
|
49
|
-
}, [data, optimistic]);
|
|
50
|
-
const prependOptimistic = useCallback((input) => {
|
|
51
|
-
setOptimistic((prev) => {
|
|
52
|
-
if (prev.some((e) => e.id === input.id))
|
|
53
|
-
return prev;
|
|
54
|
-
const entry = {
|
|
55
|
-
id: input.id,
|
|
56
|
-
type: input.type,
|
|
57
|
-
subject: input.subject,
|
|
58
|
-
updatedAt: new Date(),
|
|
59
|
-
};
|
|
60
|
-
return [entry, ...prev];
|
|
61
|
-
});
|
|
62
|
-
}, []);
|
|
63
|
-
return { entries, isLoading, error, refetch, prependOptimistic };
|
|
41
|
+
.then((resp) => resp.entries
|
|
42
|
+
.filter(isSessionEntry)
|
|
43
|
+
.map(normalizeRecentActivityEntry)), [stigmer, pageSize, org], [], { cacheKey: `recent-activity:${org}` });
|
|
44
|
+
return { entries: data, isLoading, error, refetch };
|
|
64
45
|
}
|
|
65
|
-
|
|
46
|
+
/** Whether a wire entry names a session (its id carries `ses_`). */
|
|
47
|
+
function isSessionEntry(entry) {
|
|
48
|
+
return entry.id.startsWith(SESSION_ID_PREFIX);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Projects a wire entry onto {@link RecentActivityEntry}: an empty
|
|
52
|
+
* subject reads "Untitled session", and a missing timestamp sorts as
|
|
53
|
+
* the epoch.
|
|
54
|
+
*/
|
|
55
|
+
export function normalizeRecentActivityEntry(entry) {
|
|
66
56
|
const updatedAt = entry.updatedAt
|
|
67
57
|
? timestampDate(entry.updatedAt)
|
|
68
58
|
: EPOCH;
|
|
69
59
|
return {
|
|
70
60
|
id: entry.id,
|
|
71
|
-
|
|
72
|
-
subject: entry.subject || (entry.type === "session" ? "Untitled session" : "Untitled run"),
|
|
61
|
+
subject: entry.subject || "Untitled session",
|
|
73
62
|
updatedAt: updatedAt.getTime() > 0 ? updatedAt : EPOCH,
|
|
74
|
-
status: entry.status || undefined,
|
|
75
63
|
};
|
|
76
64
|
}
|
|
77
65
|
//# sourceMappingURL=useRecentActivity.js.map
|