@stigmer/react 0.4.7 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-menu/ActionMenu.d.ts +64 -0
- package/action-menu/ActionMenu.d.ts.map +1 -0
- package/action-menu/ActionMenu.js +78 -0
- package/action-menu/ActionMenu.js.map +1 -0
- package/action-menu/index.d.ts +3 -0
- package/action-menu/index.d.ts.map +1 -0
- package/action-menu/index.js +2 -0
- package/action-menu/index.js.map +1 -0
- package/action-menu/types.d.ts +65 -0
- package/action-menu/types.d.ts.map +1 -0
- package/action-menu/types.js +2 -0
- package/action-menu/types.js.map +1 -0
- package/agent/AgentCreationWizard.d.ts +55 -0
- package/agent/AgentCreationWizard.d.ts.map +1 -0
- package/agent/AgentCreationWizard.js +115 -0
- package/agent/AgentCreationWizard.js.map +1 -0
- package/agent/AgentDetailView.d.ts +77 -9
- package/agent/AgentDetailView.d.ts.map +1 -1
- package/agent/AgentDetailView.js +265 -87
- package/agent/AgentDetailView.js.map +1 -1
- package/agent/index.d.ts +8 -0
- package/agent/index.d.ts.map +1 -1
- package/agent/index.js +4 -0
- package/agent/index.js.map +1 -1
- package/agent/internal/agentToInput.d.ts +12 -0
- package/agent/internal/agentToInput.d.ts.map +1 -0
- package/agent/internal/agentToInput.js +72 -0
- package/agent/internal/agentToInput.js.map +1 -0
- package/agent/steps/CapabilitiesStep.d.ts +16 -0
- package/agent/steps/CapabilitiesStep.d.ts.map +1 -0
- package/agent/steps/CapabilitiesStep.js +80 -0
- package/agent/steps/CapabilitiesStep.js.map +1 -0
- package/agent/steps/IdentityStep.d.ts +18 -0
- package/agent/steps/IdentityStep.d.ts.map +1 -0
- package/agent/steps/IdentityStep.js +43 -0
- package/agent/steps/IdentityStep.js.map +1 -0
- package/agent/steps/ReviewStep.d.ts +23 -0
- package/agent/steps/ReviewStep.d.ts.map +1 -0
- package/agent/steps/ReviewStep.js +73 -0
- package/agent/steps/ReviewStep.js.map +1 -0
- package/agent/steps/types.d.ts +35 -0
- package/agent/steps/types.d.ts.map +1 -0
- package/agent/steps/types.js +16 -0
- package/agent/steps/types.js.map +1 -0
- package/agent/useCreateAgent.d.ts +45 -0
- package/agent/useCreateAgent.d.ts.map +1 -0
- package/agent/useCreateAgent.js +50 -0
- package/agent/useCreateAgent.js.map +1 -0
- package/agent/useUpdateAgent.d.ts +24 -0
- package/agent/useUpdateAgent.d.ts.map +1 -0
- package/agent/useUpdateAgent.js +35 -0
- package/agent/useUpdateAgent.js.map +1 -0
- package/dependency-graph/DependencyGraph.d.ts +37 -0
- package/dependency-graph/DependencyGraph.d.ts.map +1 -0
- package/dependency-graph/DependencyGraph.js +88 -0
- package/dependency-graph/DependencyGraph.js.map +1 -0
- package/dependency-graph/DependencyTreeNode.d.ts +23 -0
- package/dependency-graph/DependencyTreeNode.d.ts.map +1 -0
- package/dependency-graph/DependencyTreeNode.js +99 -0
- package/dependency-graph/DependencyTreeNode.js.map +1 -0
- package/dependency-graph/index.d.ts +4 -0
- package/dependency-graph/index.d.ts.map +1 -0
- package/dependency-graph/index.js +5 -0
- package/dependency-graph/index.js.map +1 -0
- package/dependency-graph/types.d.ts +130 -0
- package/dependency-graph/types.d.ts.map +1 -0
- package/dependency-graph/types.js +2 -0
- package/dependency-graph/types.js.map +1 -0
- package/dependency-graph/useDependencyGraph.d.ts +27 -0
- package/dependency-graph/useDependencyGraph.d.ts.map +1 -0
- package/dependency-graph/useDependencyGraph.js +129 -0
- package/dependency-graph/useDependencyGraph.js.map +1 -0
- package/empty-state/EmptyState.d.ts +29 -0
- package/empty-state/EmptyState.d.ts.map +1 -0
- package/empty-state/EmptyState.js +45 -0
- package/empty-state/EmptyState.js.map +1 -0
- package/empty-state/index.d.ts +4 -0
- package/empty-state/index.d.ts.map +1 -0
- package/empty-state/index.js +3 -0
- package/empty-state/index.js.map +1 -0
- package/empty-state/types.d.ts +73 -0
- package/empty-state/types.d.ts.map +1 -0
- package/empty-state/types.js +2 -0
- package/empty-state/types.js.map +1 -0
- package/empty-state/useEmptyState.d.ts +18 -0
- package/empty-state/useEmptyState.d.ts.map +1 -0
- package/empty-state/useEmptyState.js +72 -0
- package/empty-state/useEmptyState.js.map +1 -0
- package/execution/MessageThread.d.ts +1 -0
- package/execution/MessageThread.d.ts.map +1 -1
- package/execution/MessageThread.js +22 -12
- package/execution/MessageThread.js.map +1 -1
- package/execution/SetupProgress.d.ts +23 -9
- package/execution/SetupProgress.d.ts.map +1 -1
- package/execution/SetupProgress.js +30 -14
- package/execution/SetupProgress.js.map +1 -1
- package/execution/__tests__/thread-keys.test.js +82 -0
- package/execution/__tests__/thread-keys.test.js.map +1 -1
- package/feedback/StigmerToaster.d.ts +18 -0
- package/feedback/StigmerToaster.d.ts.map +1 -0
- package/feedback/StigmerToaster.js +31 -0
- package/feedback/StigmerToaster.js.map +1 -0
- package/feedback/index.d.ts +4 -0
- package/feedback/index.d.ts.map +1 -0
- package/feedback/index.js +3 -0
- package/feedback/index.js.map +1 -0
- package/feedback/toast.d.ts +14 -0
- package/feedback/toast.d.ts.map +1 -0
- package/feedback/toast.js +14 -0
- package/feedback/toast.js.map +1 -0
- package/feedback/types.d.ts +4 -0
- package/feedback/types.d.ts.map +1 -0
- package/feedback/types.js +2 -0
- package/feedback/types.js.map +1 -0
- package/index.d.ts +30 -10
- package/index.d.ts.map +1 -1
- package/index.js +29 -9
- package/index.js.map +1 -1
- package/inline-edit/InlineEditImage.d.ts +20 -0
- package/inline-edit/InlineEditImage.d.ts.map +1 -0
- package/inline-edit/InlineEditImage.js +85 -0
- package/inline-edit/InlineEditImage.js.map +1 -0
- package/inline-edit/InlineEditKeyValue.d.ts +29 -0
- package/inline-edit/InlineEditKeyValue.d.ts.map +1 -0
- package/inline-edit/InlineEditKeyValue.js +67 -0
- package/inline-edit/InlineEditKeyValue.js.map +1 -0
- package/inline-edit/InlineEditResourceList.d.ts +34 -0
- package/inline-edit/InlineEditResourceList.d.ts.map +1 -0
- package/inline-edit/InlineEditResourceList.js +99 -0
- package/inline-edit/InlineEditResourceList.js.map +1 -0
- package/inline-edit/InlineEditSelect.d.ts +18 -0
- package/inline-edit/InlineEditSelect.d.ts.map +1 -0
- package/inline-edit/InlineEditSelect.js +54 -0
- package/inline-edit/InlineEditSelect.js.map +1 -0
- package/inline-edit/InlineEditText.d.ts +23 -0
- package/inline-edit/InlineEditText.d.ts.map +1 -0
- package/inline-edit/InlineEditText.js +79 -0
- package/inline-edit/InlineEditText.js.map +1 -0
- package/inline-edit/InlineEditTextarea.d.ts +22 -0
- package/inline-edit/InlineEditTextarea.d.ts.map +1 -0
- package/inline-edit/InlineEditTextarea.js +83 -0
- package/inline-edit/InlineEditTextarea.js.map +1 -0
- package/inline-edit/index.d.ts +16 -0
- package/inline-edit/index.d.ts.map +1 -0
- package/inline-edit/index.js +8 -0
- package/inline-edit/index.js.map +1 -0
- package/inline-edit/types.d.ts +42 -0
- package/inline-edit/types.d.ts.map +1 -0
- package/inline-edit/types.js +2 -0
- package/inline-edit/types.js.map +1 -0
- package/inline-edit/useInlineFieldSave.d.ts +23 -0
- package/inline-edit/useInlineFieldSave.d.ts.map +1 -0
- package/inline-edit/useInlineFieldSave.js +44 -0
- package/inline-edit/useInlineFieldSave.js.map +1 -0
- package/internal/Tabs.d.ts +4 -38
- package/internal/Tabs.d.ts.map +1 -1
- package/internal/Tabs.js +3 -62
- package/internal/Tabs.js.map +1 -1
- package/library/ImportResourceDialog.d.ts +43 -0
- package/library/ImportResourceDialog.d.ts.map +1 -0
- package/library/ImportResourceDialog.js +90 -0
- package/library/ImportResourceDialog.js.map +1 -0
- package/library/index.d.ts +7 -4
- package/library/index.d.ts.map +1 -1
- package/library/index.js +4 -2
- package/library/index.js.map +1 -1
- package/library/serialize-resource-yaml.d.ts +53 -0
- package/library/serialize-resource-yaml.d.ts.map +1 -1
- package/library/serialize-resource-yaml.js +275 -0
- package/library/serialize-resource-yaml.js.map +1 -1
- package/library/useExportResource.d.ts +56 -0
- package/library/useExportResource.d.ts.map +1 -0
- package/library/useExportResource.js +137 -0
- package/library/useExportResource.js.map +1 -0
- package/library/useImportResource.d.ts +84 -0
- package/library/useImportResource.d.ts.map +1 -0
- package/library/useImportResource.js +188 -0
- package/library/useImportResource.js.map +1 -0
- package/mcp-server/McpServerCreationWizard.d.ts +55 -0
- package/mcp-server/McpServerCreationWizard.d.ts.map +1 -0
- package/mcp-server/McpServerCreationWizard.js +121 -0
- package/mcp-server/McpServerCreationWizard.js.map +1 -0
- package/mcp-server/McpServerDetailView.d.ts +21 -1
- package/mcp-server/McpServerDetailView.d.ts.map +1 -1
- package/mcp-server/McpServerDetailView.js +113 -20
- package/mcp-server/McpServerDetailView.js.map +1 -1
- package/mcp-server/index.d.ts +8 -0
- package/mcp-server/index.d.ts.map +1 -1
- package/mcp-server/index.js +4 -0
- package/mcp-server/index.js.map +1 -1
- package/mcp-server/internal/mcpServerToInput.d.ts +12 -0
- package/mcp-server/internal/mcpServerToInput.d.ts.map +1 -0
- package/mcp-server/internal/mcpServerToInput.js +81 -0
- package/mcp-server/internal/mcpServerToInput.js.map +1 -0
- package/mcp-server/steps/EnvironmentAuthStep.d.ts +15 -0
- package/mcp-server/steps/EnvironmentAuthStep.d.ts.map +1 -0
- package/mcp-server/steps/EnvironmentAuthStep.js +55 -0
- package/mcp-server/steps/EnvironmentAuthStep.js.map +1 -0
- package/mcp-server/steps/IdentityTransportStep.d.ts +19 -0
- package/mcp-server/steps/IdentityTransportStep.d.ts.map +1 -0
- package/mcp-server/steps/IdentityTransportStep.js +73 -0
- package/mcp-server/steps/IdentityTransportStep.js.map +1 -0
- package/mcp-server/steps/ReviewStep.d.ts +23 -0
- package/mcp-server/steps/ReviewStep.d.ts.map +1 -0
- package/mcp-server/steps/ReviewStep.js +137 -0
- package/mcp-server/steps/ReviewStep.js.map +1 -0
- package/mcp-server/steps/types.d.ts +56 -0
- package/mcp-server/steps/types.d.ts.map +1 -0
- package/mcp-server/steps/types.js +27 -0
- package/mcp-server/steps/types.js.map +1 -0
- package/mcp-server/useCreateMcpServer.d.ts +45 -0
- package/mcp-server/useCreateMcpServer.d.ts.map +1 -0
- package/mcp-server/useCreateMcpServer.js +50 -0
- package/mcp-server/useCreateMcpServer.js.map +1 -0
- package/mcp-server/useUpdateMcpServer.d.ts +24 -0
- package/mcp-server/useUpdateMcpServer.d.ts.map +1 -0
- package/mcp-server/useUpdateMcpServer.js +35 -0
- package/mcp-server/useUpdateMcpServer.js.map +1 -0
- package/models/registry.d.ts +4 -1
- package/models/registry.d.ts.map +1 -1
- package/models/registry.js +6 -2
- package/models/registry.js.map +1 -1
- package/package.json +8 -4
- package/provider.js +1 -1
- package/provider.js.map +1 -1
- package/resource-creation/CreationPicker.d.ts +60 -0
- package/resource-creation/CreationPicker.d.ts.map +1 -0
- package/resource-creation/CreationPicker.js +74 -0
- package/resource-creation/CreationPicker.js.map +1 -0
- package/resource-creation/StepIndicator.d.ts +28 -0
- package/resource-creation/StepIndicator.d.ts.map +1 -0
- package/resource-creation/StepIndicator.js +40 -0
- package/resource-creation/StepIndicator.js.map +1 -0
- package/resource-creation/TemplateCard.d.ts +24 -0
- package/resource-creation/TemplateCard.d.ts.map +1 -0
- package/resource-creation/TemplateCard.js +68 -0
- package/resource-creation/TemplateCard.js.map +1 -0
- package/resource-creation/TemplateGallery.d.ts +43 -0
- package/resource-creation/TemplateGallery.d.ts.map +1 -0
- package/resource-creation/TemplateGallery.js +78 -0
- package/resource-creation/TemplateGallery.js.map +1 -0
- package/resource-creation/WizardNav.d.ts +31 -0
- package/resource-creation/WizardNav.d.ts.map +1 -0
- package/resource-creation/WizardNav.js +29 -0
- package/resource-creation/WizardNav.js.map +1 -0
- package/resource-creation/WizardShell.d.ts +41 -0
- package/resource-creation/WizardShell.d.ts.map +1 -0
- package/resource-creation/WizardShell.js +55 -0
- package/resource-creation/WizardShell.js.map +1 -0
- package/resource-creation/index.d.ts +21 -0
- package/resource-creation/index.d.ts.map +1 -0
- package/resource-creation/index.js +14 -0
- package/resource-creation/index.js.map +1 -0
- package/resource-creation/templates/agent-templates.d.ts +15 -0
- package/resource-creation/templates/agent-templates.d.ts.map +1 -0
- package/resource-creation/templates/agent-templates.js +148 -0
- package/resource-creation/templates/agent-templates.js.map +1 -0
- package/resource-creation/templates/index.d.ts +5 -0
- package/resource-creation/templates/index.d.ts.map +1 -0
- package/resource-creation/templates/index.js +5 -0
- package/resource-creation/templates/index.js.map +1 -0
- package/resource-creation/templates/mcp-server-templates.d.ts +15 -0
- package/resource-creation/templates/mcp-server-templates.d.ts.map +1 -0
- package/resource-creation/templates/mcp-server-templates.js +92 -0
- package/resource-creation/templates/mcp-server-templates.js.map +1 -0
- package/resource-creation/templates/types.d.ts +48 -0
- package/resource-creation/templates/types.d.ts.map +1 -0
- package/resource-creation/templates/types.js +16 -0
- package/resource-creation/templates/types.js.map +1 -0
- package/resource-creation/types.d.ts +88 -0
- package/resource-creation/types.d.ts.map +1 -0
- package/resource-creation/types.js +2 -0
- package/resource-creation/types.js.map +1 -0
- package/resource-creation/useTemplateFilter.d.ts +43 -0
- package/resource-creation/useTemplateFilter.d.ts.map +1 -0
- package/resource-creation/useTemplateFilter.js +73 -0
- package/resource-creation/useTemplateFilter.js.map +1 -0
- package/resource-creation/useWizardState.d.ts +67 -0
- package/resource-creation/useWizardState.d.ts.map +1 -0
- package/resource-creation/useWizardState.js +143 -0
- package/resource-creation/useWizardState.js.map +1 -0
- package/resource-detail/ConfirmDialog.d.ts +44 -0
- package/resource-detail/ConfirmDialog.d.ts.map +1 -0
- package/resource-detail/ConfirmDialog.js +62 -0
- package/resource-detail/ConfirmDialog.js.map +1 -0
- package/resource-detail/ResourceActionBar.d.ts +42 -0
- package/resource-detail/ResourceActionBar.d.ts.map +1 -0
- package/resource-detail/ResourceActionBar.js +64 -0
- package/resource-detail/ResourceActionBar.js.map +1 -0
- package/resource-detail/ResourceDetailShell.d.ts +36 -0
- package/resource-detail/ResourceDetailShell.d.ts.map +1 -0
- package/resource-detail/ResourceDetailShell.js +65 -0
- package/resource-detail/ResourceDetailShell.js.map +1 -0
- package/resource-detail/Section.d.ts +18 -0
- package/resource-detail/Section.d.ts.map +1 -0
- package/resource-detail/Section.js +18 -0
- package/resource-detail/Section.js.map +1 -0
- package/resource-detail/index.d.ts +15 -0
- package/resource-detail/index.d.ts.map +1 -0
- package/resource-detail/index.js +10 -0
- package/resource-detail/index.js.map +1 -0
- package/resource-detail/types.d.ts +146 -0
- package/resource-detail/types.d.ts.map +1 -0
- package/resource-detail/types.js +2 -0
- package/resource-detail/types.js.map +1 -0
- package/resource-detail/useConfirmAction.d.ts +41 -0
- package/resource-detail/useConfirmAction.d.ts.map +1 -0
- package/resource-detail/useConfirmAction.js +30 -0
- package/resource-detail/useConfirmAction.js.map +1 -0
- package/resource-detail/useCopyResource.d.ts +28 -0
- package/resource-detail/useCopyResource.d.ts.map +1 -0
- package/resource-detail/useCopyResource.js +46 -0
- package/resource-detail/useCopyResource.js.map +1 -0
- package/resource-detail/useDeleteResource.d.ts +40 -0
- package/resource-detail/useDeleteResource.d.ts.map +1 -0
- package/resource-detail/useDeleteResource.js +83 -0
- package/resource-detail/useDeleteResource.js.map +1 -0
- package/resource-detail/useDetailTabs.d.ts +46 -0
- package/resource-detail/useDetailTabs.d.ts.map +1 -0
- package/resource-detail/useDetailTabs.js +47 -0
- package/resource-detail/useDetailTabs.js.map +1 -0
- package/resource-workbench/components/BulkActionBar.d.ts +36 -0
- package/resource-workbench/components/BulkActionBar.d.ts.map +1 -0
- package/resource-workbench/components/BulkActionBar.js +35 -0
- package/resource-workbench/components/BulkActionBar.js.map +1 -0
- package/resource-workbench/components/ColumnHeader.d.ts +23 -0
- package/resource-workbench/components/ColumnHeader.d.ts.map +1 -0
- package/resource-workbench/components/ColumnHeader.js +25 -0
- package/resource-workbench/components/ColumnHeader.js.map +1 -0
- package/resource-workbench/components/FilterBar.d.ts +33 -0
- package/resource-workbench/components/FilterBar.d.ts.map +1 -0
- package/resource-workbench/components/FilterBar.js +72 -0
- package/resource-workbench/components/FilterBar.js.map +1 -0
- package/resource-workbench/components/ResourceAvatar.d.ts +29 -0
- package/resource-workbench/components/ResourceAvatar.d.ts.map +1 -0
- package/resource-workbench/components/ResourceAvatar.js +51 -0
- package/resource-workbench/components/ResourceAvatar.js.map +1 -0
- package/resource-workbench/components/ResourceCards.d.ts +39 -0
- package/resource-workbench/components/ResourceCards.d.ts.map +1 -0
- package/resource-workbench/components/ResourceCards.js +41 -0
- package/resource-workbench/components/ResourceCards.js.map +1 -0
- package/resource-workbench/components/ResourceInspector.d.ts +26 -0
- package/resource-workbench/components/ResourceInspector.d.ts.map +1 -0
- package/resource-workbench/components/ResourceInspector.js +22 -0
- package/resource-workbench/components/ResourceInspector.js.map +1 -0
- package/resource-workbench/components/ResourceList.d.ts +39 -0
- package/resource-workbench/components/ResourceList.d.ts.map +1 -0
- package/resource-workbench/components/ResourceList.js +41 -0
- package/resource-workbench/components/ResourceList.js.map +1 -0
- package/resource-workbench/components/ResourceTable.d.ts +47 -0
- package/resource-workbench/components/ResourceTable.d.ts.map +1 -0
- package/resource-workbench/components/ResourceTable.js +78 -0
- package/resource-workbench/components/ResourceTable.js.map +1 -0
- package/resource-workbench/components/ResourceWorkbench.d.ts +131 -0
- package/resource-workbench/components/ResourceWorkbench.d.ts.map +1 -0
- package/resource-workbench/components/ResourceWorkbench.js +170 -0
- package/resource-workbench/components/ResourceWorkbench.js.map +1 -0
- package/resource-workbench/components/SelectionCheckbox.d.ts +24 -0
- package/resource-workbench/components/SelectionCheckbox.d.ts.map +1 -0
- package/resource-workbench/components/SelectionCheckbox.js +16 -0
- package/resource-workbench/components/SelectionCheckbox.js.map +1 -0
- package/resource-workbench/components/StatusBadge.d.ts +31 -0
- package/resource-workbench/components/StatusBadge.d.ts.map +1 -0
- package/resource-workbench/components/StatusBadge.js +75 -0
- package/resource-workbench/components/StatusBadge.js.map +1 -0
- package/resource-workbench/components/ViewSwitcher.d.ts +21 -0
- package/resource-workbench/components/ViewSwitcher.d.ts.map +1 -0
- package/resource-workbench/components/ViewSwitcher.js +37 -0
- package/resource-workbench/components/ViewSwitcher.js.map +1 -0
- package/resource-workbench/hooks/useResourceCollection.d.ts +93 -0
- package/resource-workbench/hooks/useResourceCollection.d.ts.map +1 -0
- package/resource-workbench/hooks/useResourceCollection.js +133 -0
- package/resource-workbench/hooks/useResourceCollection.js.map +1 -0
- package/resource-workbench/hooks/useResourceFilters.d.ts +73 -0
- package/resource-workbench/hooks/useResourceFilters.d.ts.map +1 -0
- package/resource-workbench/hooks/useResourceFilters.js +105 -0
- package/resource-workbench/hooks/useResourceFilters.js.map +1 -0
- package/resource-workbench/hooks/useResourceSelection.d.ts +44 -0
- package/resource-workbench/hooks/useResourceSelection.d.ts.map +1 -0
- package/resource-workbench/hooks/useResourceSelection.js +123 -0
- package/resource-workbench/hooks/useResourceSelection.js.map +1 -0
- package/resource-workbench/hooks/useViewPreference.d.ts +32 -0
- package/resource-workbench/hooks/useViewPreference.d.ts.map +1 -0
- package/resource-workbench/hooks/useViewPreference.js +60 -0
- package/resource-workbench/hooks/useViewPreference.js.map +1 -0
- package/resource-workbench/index.d.ts +34 -0
- package/resource-workbench/index.d.ts.map +1 -0
- package/resource-workbench/index.js +19 -0
- package/resource-workbench/index.js.map +1 -0
- package/resource-workbench/types.d.ts +165 -0
- package/resource-workbench/types.d.ts.map +1 -0
- package/resource-workbench/types.js +2 -0
- package/resource-workbench/types.js.map +1 -0
- package/runner/RunnerDetailView.d.ts +44 -0
- package/runner/RunnerDetailView.d.ts.map +1 -0
- package/runner/RunnerDetailView.js +154 -0
- package/runner/RunnerDetailView.js.map +1 -0
- package/runner/RunnerListPanel.d.ts +26 -1
- package/runner/RunnerListPanel.d.ts.map +1 -1
- package/runner/RunnerListPanel.js +68 -46
- package/runner/RunnerListPanel.js.map +1 -1
- package/runner/index.d.ts +7 -1
- package/runner/index.d.ts.map +1 -1
- package/runner/index.js +3 -0
- package/runner/index.js.map +1 -1
- package/runner/shared.d.ts +31 -0
- package/runner/shared.d.ts.map +1 -0
- package/runner/shared.js +55 -0
- package/runner/shared.js.map +1 -0
- package/runner/useRunner.d.ts +37 -0
- package/runner/useRunner.d.ts.map +1 -0
- package/runner/useRunner.js +24 -0
- package/runner/useRunner.js.map +1 -0
- package/session/__tests__/group-sessions.test.js +3 -3
- package/session/__tests__/group-sessions.test.js.map +1 -1
- package/skill/SkillDetailView.d.ts +70 -7
- package/skill/SkillDetailView.d.ts.map +1 -1
- package/skill/SkillDetailView.js +107 -39
- package/skill/SkillDetailView.js.map +1 -1
- package/skill/SkillDiffDialog.d.ts +42 -0
- package/skill/SkillDiffDialog.d.ts.map +1 -0
- package/skill/SkillDiffDialog.js +72 -0
- package/skill/SkillDiffDialog.js.map +1 -0
- package/skill/SkillFileBrowser.d.ts +31 -0
- package/skill/SkillFileBrowser.d.ts.map +1 -0
- package/skill/SkillFileBrowser.js +105 -0
- package/skill/SkillFileBrowser.js.map +1 -0
- package/skill/SkillUploader.d.ts +39 -0
- package/skill/SkillUploader.d.ts.map +1 -0
- package/skill/SkillUploader.js +141 -0
- package/skill/SkillUploader.js.map +1 -0
- package/skill/index.d.ts +18 -0
- package/skill/index.d.ts.map +1 -1
- package/skill/index.js +9 -0
- package/skill/index.js.map +1 -1
- package/skill/internal/computeArtifactHash.d.ts +9 -0
- package/skill/internal/computeArtifactHash.d.ts.map +1 -0
- package/skill/internal/computeArtifactHash.js +14 -0
- package/skill/internal/computeArtifactHash.js.map +1 -0
- package/skill/internal/fetchAndUnpackArtifact.d.ts +16 -0
- package/skill/internal/fetchAndUnpackArtifact.d.ts.map +1 -0
- package/skill/internal/fetchAndUnpackArtifact.js +34 -0
- package/skill/internal/fetchAndUnpackArtifact.js.map +1 -0
- package/skill/usePushSkill.d.ts +53 -0
- package/skill/usePushSkill.d.ts.map +1 -0
- package/skill/usePushSkill.js +57 -0
- package/skill/usePushSkill.js.map +1 -0
- package/skill/useSkillArtifact.d.ts +37 -0
- package/skill/useSkillArtifact.d.ts.map +1 -0
- package/skill/useSkillArtifact.js +76 -0
- package/skill/useSkillArtifact.js.map +1 -0
- package/skill/useSkillDiff.d.ts +31 -0
- package/skill/useSkillDiff.d.ts.map +1 -0
- package/skill/useSkillDiff.js +97 -0
- package/skill/useSkillDiff.js.map +1 -0
- package/skill/useSkillDuplicateCheck.d.ts +34 -0
- package/skill/useSkillDuplicateCheck.d.ts.map +1 -0
- package/skill/useSkillDuplicateCheck.js +58 -0
- package/skill/useSkillDuplicateCheck.js.map +1 -0
- package/skill/useSkillUpload.d.ts +69 -0
- package/skill/useSkillUpload.d.ts.map +1 -0
- package/skill/useSkillUpload.js +157 -0
- package/skill/useSkillUpload.js.map +1 -0
- package/skill/useSkillVersions.d.ts +46 -0
- package/skill/useSkillVersions.d.ts.map +1 -0
- package/skill/useSkillVersions.js +104 -0
- package/skill/useSkillVersions.js.map +1 -0
- package/src/action-menu/ActionMenu.tsx +151 -0
- package/src/action-menu/index.ts +9 -0
- package/src/action-menu/types.ts +70 -0
- package/src/agent/AgentCreationWizard.tsx +201 -0
- package/src/agent/AgentDetailView.tsx +817 -321
- package/src/agent/index.ts +16 -0
- package/src/agent/internal/agentToInput.ts +95 -0
- package/src/agent/steps/CapabilitiesStep.tsx +363 -0
- package/src/agent/steps/IdentityStep.tsx +259 -0
- package/src/agent/steps/ReviewStep.tsx +211 -0
- package/src/agent/steps/types.ts +53 -0
- package/src/agent/useCreateAgent.ts +76 -0
- package/src/agent/useUpdateAgent.ts +55 -0
- package/src/dependency-graph/DependencyGraph.tsx +153 -0
- package/src/dependency-graph/DependencyTreeNode.tsx +282 -0
- package/src/dependency-graph/index.ts +15 -0
- package/src/dependency-graph/types.ts +131 -0
- package/src/dependency-graph/useDependencyGraph.ts +158 -0
- package/src/empty-state/EmptyState.tsx +90 -0
- package/src/empty-state/index.ts +9 -0
- package/src/empty-state/types.ts +81 -0
- package/src/empty-state/useEmptyState.ts +85 -0
- package/src/execution/MessageThread.tsx +26 -15
- package/src/execution/SetupProgress.tsx +35 -14
- package/src/execution/__tests__/thread-keys.test.ts +101 -0
- package/src/feedback/StigmerToaster.tsx +45 -0
- package/src/feedback/index.ts +3 -0
- package/src/feedback/toast.ts +13 -0
- package/src/feedback/types.ts +7 -0
- package/src/index.ts +270 -8
- package/src/inline-edit/InlineEditImage.tsx +208 -0
- package/src/inline-edit/InlineEditKeyValue.tsx +278 -0
- package/src/inline-edit/InlineEditResourceList.tsx +325 -0
- package/src/inline-edit/InlineEditSelect.tsx +150 -0
- package/src/inline-edit/InlineEditText.tsx +211 -0
- package/src/inline-edit/InlineEditTextarea.tsx +209 -0
- package/src/inline-edit/index.ts +28 -0
- package/src/inline-edit/types.ts +47 -0
- package/src/inline-edit/useInlineFieldSave.ts +62 -0
- package/src/internal/Tabs.tsx +4 -164
- package/src/library/ImportResourceDialog.tsx +227 -0
- package/src/library/index.ts +18 -8
- package/src/library/serialize-resource-yaml.ts +356 -0
- package/src/library/useExportResource.ts +183 -0
- package/src/library/useImportResource.ts +253 -0
- package/src/mcp-server/McpServerCreationWizard.tsx +206 -0
- package/src/mcp-server/McpServerDetailView.tsx +392 -105
- package/src/mcp-server/index.ts +16 -0
- package/src/mcp-server/internal/mcpServerToInput.ts +95 -0
- package/src/mcp-server/steps/EnvironmentAuthStep.tsx +462 -0
- package/src/mcp-server/steps/IdentityTransportStep.tsx +531 -0
- package/src/mcp-server/steps/ReviewStep.tsx +297 -0
- package/src/mcp-server/steps/types.ts +85 -0
- package/src/mcp-server/useCreateMcpServer.ts +76 -0
- package/src/mcp-server/useUpdateMcpServer.ts +55 -0
- package/src/models/registry.ts +10 -2
- package/src/provider.tsx +1 -1
- package/src/resource-creation/CreationPicker.tsx +292 -0
- package/src/resource-creation/StepIndicator.tsx +156 -0
- package/src/resource-creation/TemplateCard.tsx +143 -0
- package/src/resource-creation/TemplateGallery.tsx +222 -0
- package/src/resource-creation/WizardNav.tsx +163 -0
- package/src/resource-creation/WizardShell.tsx +124 -0
- package/src/resource-creation/index.ts +45 -0
- package/src/resource-creation/templates/agent-templates.ts +160 -0
- package/src/resource-creation/templates/index.ts +7 -0
- package/src/resource-creation/templates/mcp-server-templates.ts +106 -0
- package/src/resource-creation/templates/types.ts +64 -0
- package/src/resource-creation/types.ts +105 -0
- package/src/resource-creation/useTemplateFilter.ts +117 -0
- package/src/resource-creation/useWizardState.ts +223 -0
- package/src/resource-detail/ConfirmDialog.tsx +127 -0
- package/src/resource-detail/ResourceActionBar.tsx +157 -0
- package/src/resource-detail/ResourceDetailShell.tsx +184 -0
- package/src/resource-detail/Section.tsx +78 -0
- package/src/resource-detail/index.ts +34 -0
- package/src/resource-detail/types.ts +177 -0
- package/src/resource-detail/useConfirmAction.ts +70 -0
- package/src/resource-detail/useCopyResource.ts +74 -0
- package/src/resource-detail/useDeleteResource.ts +110 -0
- package/src/resource-detail/useDetailTabs.ts +93 -0
- package/src/resource-workbench/components/BulkActionBar.tsx +122 -0
- package/src/resource-workbench/components/ColumnHeader.tsx +105 -0
- package/src/resource-workbench/components/FilterBar.tsx +173 -0
- package/src/resource-workbench/components/ResourceAvatar.tsx +109 -0
- package/src/resource-workbench/components/ResourceCards.tsx +126 -0
- package/src/resource-workbench/components/ResourceInspector.tsx +88 -0
- package/src/resource-workbench/components/ResourceList.tsx +121 -0
- package/src/resource-workbench/components/ResourceTable.tsx +222 -0
- package/src/resource-workbench/components/ResourceWorkbench.tsx +695 -0
- package/src/resource-workbench/components/SelectionCheckbox.tsx +52 -0
- package/src/resource-workbench/components/StatusBadge.tsx +119 -0
- package/src/resource-workbench/components/ViewSwitcher.tsx +135 -0
- package/src/resource-workbench/hooks/useResourceCollection.ts +261 -0
- package/src/resource-workbench/hooks/useResourceFilters.ts +216 -0
- package/src/resource-workbench/hooks/useResourceSelection.ts +178 -0
- package/src/resource-workbench/hooks/useViewPreference.ts +75 -0
- package/src/resource-workbench/index.ts +73 -0
- package/src/resource-workbench/types.ts +220 -0
- package/src/runner/RunnerDetailView.tsx +410 -0
- package/src/runner/RunnerListPanel.tsx +126 -111
- package/src/runner/index.ts +13 -1
- package/src/runner/shared.tsx +124 -0
- package/src/runner/useRunner.ts +59 -0
- package/src/session/__tests__/group-sessions.test.ts +5 -3
- package/src/skill/SkillDetailView.tsx +371 -165
- package/src/skill/SkillDiffDialog.tsx +213 -0
- package/src/skill/SkillFileBrowser.tsx +289 -0
- package/src/skill/SkillUploader.tsx +481 -0
- package/src/skill/index.ts +34 -0
- package/src/skill/internal/computeArtifactHash.ts +13 -0
- package/src/skill/internal/fetchAndUnpackArtifact.ts +48 -0
- package/src/skill/usePushSkill.ts +101 -0
- package/src/skill/useSkillArtifact.ts +107 -0
- package/src/skill/useSkillDiff.ts +128 -0
- package/src/skill/useSkillDuplicateCheck.ts +92 -0
- package/src/skill/useSkillUpload.ts +231 -0
- package/src/skill/useSkillVersions.ts +165 -0
- package/src/styles.css +28 -0
- package/src/tabs/Tabs.tsx +184 -0
- package/src/tabs/index.ts +2 -0
- package/src/version-history/DiffFileList.tsx +111 -0
- package/src/version-history/DiffSummary.tsx +61 -0
- package/src/version-history/DiffViewer.tsx +163 -0
- package/src/version-history/MultiFileDiffView.tsx +114 -0
- package/src/version-history/VersionTimeline.tsx +232 -0
- package/src/version-history/VersionTimelineEntry.tsx +254 -0
- package/src/version-history/computeDiff.ts +61 -0
- package/src/version-history/computeMultiFileDiff.ts +97 -0
- package/src/version-history/index.ts +22 -0
- package/src/version-history/types.ts +129 -0
- package/styles.css +1 -1
- package/tabs/Tabs.d.ts +58 -0
- package/tabs/Tabs.d.ts.map +1 -0
- package/tabs/Tabs.js +80 -0
- package/tabs/Tabs.js.map +1 -0
- package/tabs/index.d.ts +3 -0
- package/tabs/index.d.ts.map +1 -0
- package/tabs/index.js +2 -0
- package/tabs/index.js.map +1 -0
- package/version-history/DiffFileList.d.ts +22 -0
- package/version-history/DiffFileList.d.ts.map +1 -0
- package/version-history/DiffFileList.js +37 -0
- package/version-history/DiffFileList.js.map +1 -0
- package/version-history/DiffSummary.d.ts +21 -0
- package/version-history/DiffSummary.d.ts.map +1 -0
- package/version-history/DiffSummary.js +16 -0
- package/version-history/DiffSummary.js.map +1 -0
- package/version-history/DiffViewer.d.ts +31 -0
- package/version-history/DiffViewer.d.ts.map +1 -0
- package/version-history/DiffViewer.js +60 -0
- package/version-history/DiffViewer.js.map +1 -0
- package/version-history/MultiFileDiffView.d.ts +30 -0
- package/version-history/MultiFileDiffView.d.ts.map +1 -0
- package/version-history/MultiFileDiffView.js +40 -0
- package/version-history/MultiFileDiffView.js.map +1 -0
- package/version-history/VersionTimeline.d.ts +29 -0
- package/version-history/VersionTimeline.d.ts.map +1 -0
- package/version-history/VersionTimeline.js +87 -0
- package/version-history/VersionTimeline.js.map +1 -0
- package/version-history/VersionTimelineEntry.d.ts +22 -0
- package/version-history/VersionTimelineEntry.d.ts.map +1 -0
- package/version-history/VersionTimelineEntry.js +98 -0
- package/version-history/VersionTimelineEntry.js.map +1 -0
- package/version-history/computeDiff.d.ts +16 -0
- package/version-history/computeDiff.d.ts.map +1 -0
- package/version-history/computeDiff.js +54 -0
- package/version-history/computeDiff.js.map +1 -0
- package/version-history/computeMultiFileDiff.d.ts +15 -0
- package/version-history/computeMultiFileDiff.d.ts.map +1 -0
- package/version-history/computeMultiFileDiff.js +83 -0
- package/version-history/computeMultiFileDiff.js.map +1 -0
- package/version-history/index.d.ts +14 -0
- package/version-history/index.d.ts.map +1 -0
- package/version-history/index.js +9 -0
- package/version-history/index.js.map +1 -0
- package/version-history/types.d.ts +106 -0
- package/version-history/types.d.ts.map +1 -0
- package/version-history/types.js +2 -0
- package/version-history/types.js.map +1 -0
- package/library/ResourceListView.d.ts +0 -174
- package/library/ResourceListView.d.ts.map +0 -1
- package/library/ResourceListView.js +0 -318
- package/library/ResourceListView.js.map +0 -1
- package/src/library/ResourceListView.tsx +0 -956
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resource-workbench/index.ts"],"names":[],"mappings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ACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Hooks
|
|
2
|
+
export { useViewPreference } from "./hooks/useViewPreference";
|
|
3
|
+
export { useResourceCollection } from "./hooks/useResourceCollection";
|
|
4
|
+
export { useResourceSelection } from "./hooks/useResourceSelection";
|
|
5
|
+
export { useResourceFilters } from "./hooks/useResourceFilters";
|
|
6
|
+
// Components
|
|
7
|
+
export { StatusBadge } from "./components/StatusBadge";
|
|
8
|
+
export { ColumnHeader } from "./components/ColumnHeader";
|
|
9
|
+
export { SelectionCheckbox } from "./components/SelectionCheckbox";
|
|
10
|
+
export { ResourceTable } from "./components/ResourceTable";
|
|
11
|
+
export { ResourceCards } from "./components/ResourceCards";
|
|
12
|
+
export { ResourceList } from "./components/ResourceList";
|
|
13
|
+
export { BulkActionBar } from "./components/BulkActionBar";
|
|
14
|
+
export { FilterBar } from "./components/FilterBar";
|
|
15
|
+
export { ViewSwitcher } from "./components/ViewSwitcher";
|
|
16
|
+
export { ResourceInspector } from "./components/ResourceInspector";
|
|
17
|
+
export { ResourceWorkbench } from "./components/ResourceWorkbench";
|
|
18
|
+
export { ResourceAvatar } from "./components/ResourceAvatar";
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resource-workbench/index.ts"],"names":[],"mappings":"AAiBA,QAAQ;AACR,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAMtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAOhE,aAAa;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGnE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { SearchResult } from "@stigmer/protos/ai/stigmer/search/v1/io_pb";
|
|
3
|
+
/** Available layout modes for the resource workbench. */
|
|
4
|
+
export type ViewMode = "table" | "cards" | "list";
|
|
5
|
+
/**
|
|
6
|
+
* Resource status phases that map to `--stgm-status-*` design tokens.
|
|
7
|
+
*
|
|
8
|
+
* Each phase corresponds to a token group defined in `@stigmer/theme`
|
|
9
|
+
* (e.g. `--stgm-status-ready`, `--stgm-status-failed-subtle`).
|
|
10
|
+
*/
|
|
11
|
+
export type StatusPhase = "ready" | "running" | "pending" | "degraded" | "failed" | "disabled" | "draft";
|
|
12
|
+
/**
|
|
13
|
+
* Defines a single column in the {@link ResourceTable}.
|
|
14
|
+
*
|
|
15
|
+
* Generic over `TData` so platform builders can use richer item types
|
|
16
|
+
* beyond `SearchResult` while the Console uses `SearchResult` directly.
|
|
17
|
+
*/
|
|
18
|
+
export interface WorkbenchColumnDef<TData = SearchResult> {
|
|
19
|
+
/** Stable column identifier (used for visibility persistence and URL state). */
|
|
20
|
+
readonly id: string;
|
|
21
|
+
/** Column header label. */
|
|
22
|
+
readonly header: string;
|
|
23
|
+
/**
|
|
24
|
+
* Accessor function that extracts the cell value from a row item.
|
|
25
|
+
* Return a `ReactNode` for custom cell rendering.
|
|
26
|
+
*/
|
|
27
|
+
readonly cell: (item: TData) => ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Whether this column is sortable. When `true`, clicking the header
|
|
30
|
+
* toggles sort direction.
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
readonly sortable?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether this column is visible by default.
|
|
36
|
+
* Users can toggle visibility via column preferences.
|
|
37
|
+
* @default true
|
|
38
|
+
*/
|
|
39
|
+
readonly defaultVisible?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Minimum column width in pixels. The table uses this as a CSS
|
|
42
|
+
* `min-width` to prevent content collapse.
|
|
43
|
+
*/
|
|
44
|
+
readonly minWidth?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Relative flex weight for distributing remaining horizontal space.
|
|
47
|
+
* Columns with higher weight receive more space.
|
|
48
|
+
* @default 1
|
|
49
|
+
*/
|
|
50
|
+
readonly flex?: number;
|
|
51
|
+
}
|
|
52
|
+
/** Operator for a single filter expression. */
|
|
53
|
+
export type FilterOperator = "eq" | "neq" | "contains" | "gt" | "lt" | "gte" | "lte" | "in";
|
|
54
|
+
/** A single active filter value applied to the collection. */
|
|
55
|
+
export interface FilterValue {
|
|
56
|
+
/** The filter definition ID this value applies to. */
|
|
57
|
+
readonly filterId: string;
|
|
58
|
+
/** Comparison operator. */
|
|
59
|
+
readonly operator: FilterOperator;
|
|
60
|
+
/**
|
|
61
|
+
* Filter value(s). A string for scalar operators, an array for `in`.
|
|
62
|
+
*/
|
|
63
|
+
readonly value: string | readonly string[];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Defines a filterable property for the {@link FilterBar}.
|
|
67
|
+
*
|
|
68
|
+
* Platform builders declare which properties are filterable and how
|
|
69
|
+
* they appear in the filter UI.
|
|
70
|
+
*/
|
|
71
|
+
export interface FilterDef {
|
|
72
|
+
/** Stable filter identifier (used in URL state serialization). */
|
|
73
|
+
readonly id: string;
|
|
74
|
+
/** Human-readable label shown in the filter picker and chips. */
|
|
75
|
+
readonly label: string;
|
|
76
|
+
/** Filter input type. */
|
|
77
|
+
readonly type: "text" | "select" | "multi-select" | "date";
|
|
78
|
+
/**
|
|
79
|
+
* Available options for `select` and `multi-select` types.
|
|
80
|
+
* Ignored for `text` and `date`.
|
|
81
|
+
*/
|
|
82
|
+
readonly options?: readonly FilterOption[];
|
|
83
|
+
/**
|
|
84
|
+
* Allowed operators. Defaults to `["eq"]` for selects,
|
|
85
|
+
* `["contains"]` for text, and `["gte", "lte"]` for dates.
|
|
86
|
+
*/
|
|
87
|
+
readonly operators?: readonly FilterOperator[];
|
|
88
|
+
}
|
|
89
|
+
/** A selectable option within a `select` or `multi-select` filter. */
|
|
90
|
+
export interface FilterOption {
|
|
91
|
+
/** The value sent in the filter expression. */
|
|
92
|
+
readonly value: string;
|
|
93
|
+
/** Display label. */
|
|
94
|
+
readonly label: string;
|
|
95
|
+
/** Optional icon rendered before the label. */
|
|
96
|
+
readonly icon?: ReactNode;
|
|
97
|
+
}
|
|
98
|
+
/** Sort direction. */
|
|
99
|
+
export type SortDirection = "asc" | "desc";
|
|
100
|
+
/** A single active sort applied to the collection. */
|
|
101
|
+
export interface SortValue {
|
|
102
|
+
/** Column or property ID to sort by. */
|
|
103
|
+
readonly id: string;
|
|
104
|
+
/** Sort direction. */
|
|
105
|
+
readonly direction: SortDirection;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Defines a sortable property. Used by hooks to validate incoming sort
|
|
109
|
+
* state and by the UI to render sort options in column headers and
|
|
110
|
+
* sort dropdowns.
|
|
111
|
+
*/
|
|
112
|
+
export interface SortDef {
|
|
113
|
+
/** Stable identifier matching a column ID or virtual sort key. */
|
|
114
|
+
readonly id: string;
|
|
115
|
+
/** Human-readable label (e.g. "Name", "Last updated"). */
|
|
116
|
+
readonly label: string;
|
|
117
|
+
/** Default direction when this sort is first activated. @default "asc" */
|
|
118
|
+
readonly defaultDirection?: SortDirection;
|
|
119
|
+
}
|
|
120
|
+
/** A single action available for a resource item (shown in context menus). */
|
|
121
|
+
export interface ResourceAction<TData = SearchResult> {
|
|
122
|
+
/** Stable action identifier. */
|
|
123
|
+
readonly id: string;
|
|
124
|
+
/** Display label. */
|
|
125
|
+
readonly label: string;
|
|
126
|
+
/** Icon rendered before the label. */
|
|
127
|
+
readonly icon?: ReactNode;
|
|
128
|
+
/** Keyboard shortcut hint displayed in the menu. */
|
|
129
|
+
readonly shortcut?: string;
|
|
130
|
+
/** Visual variant. @default "default" */
|
|
131
|
+
readonly variant?: "default" | "destructive";
|
|
132
|
+
/** Called when the action is selected. Receives the target item. */
|
|
133
|
+
readonly onAction: (item: TData) => void;
|
|
134
|
+
/** When `true`, the action is shown but non-interactive. */
|
|
135
|
+
readonly disabled?: boolean;
|
|
136
|
+
}
|
|
137
|
+
/** A bulk action available when multiple items are selected. */
|
|
138
|
+
export interface BulkAction<TData = SearchResult> {
|
|
139
|
+
/** Stable action identifier. */
|
|
140
|
+
readonly id: string;
|
|
141
|
+
/** Display label (e.g. "Delete", "Change visibility"). */
|
|
142
|
+
readonly label: string;
|
|
143
|
+
/** Icon rendered before the label. */
|
|
144
|
+
readonly icon?: ReactNode;
|
|
145
|
+
/** Visual variant. @default "default" */
|
|
146
|
+
readonly variant?: "default" | "destructive";
|
|
147
|
+
/** Called with the full set of selected items. */
|
|
148
|
+
readonly onAction: (items: readonly TData[]) => void;
|
|
149
|
+
/** When `true`, the action is shown but non-interactive. */
|
|
150
|
+
readonly disabled?: boolean;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Serializable snapshot of the workbench's filter, sort, pagination,
|
|
154
|
+
* and view state. Passed to `onStateChange` so consumers can sync
|
|
155
|
+
* this state to URL search params or other persistence layers.
|
|
156
|
+
*/
|
|
157
|
+
export interface WorkbenchState {
|
|
158
|
+
readonly filters: readonly FilterValue[];
|
|
159
|
+
readonly sort: SortValue | null;
|
|
160
|
+
readonly page: number;
|
|
161
|
+
readonly pageSize: number;
|
|
162
|
+
readonly query: string;
|
|
163
|
+
readonly viewMode: ViewMode;
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/resource-workbench/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAM/E,yDAAyD;AACzD,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AAMlD;;;;;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CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IAC7C,oEAAoE;IACpE,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC;IACzC,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,gEAAgE;AAChE,MAAM,WAAW,UAAU,CAAC,KAAK,GAAG,YAAY;IAC9C,gCAAgC;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAC1B,yCAAyC;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IAC7C,kDAAkD;IAClD,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,EAAE,KAAK,IAAI,CAAC;IACrD,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAMD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IACzC,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/resource-workbench/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { DetailAction } from "../resource-detail/types";
|
|
2
|
+
/** Props for {@link RunnerDetailView}. */
|
|
3
|
+
export interface RunnerDetailViewProps {
|
|
4
|
+
/** Runner ID. */
|
|
5
|
+
readonly id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Called once when the runner resource has been fetched successfully.
|
|
8
|
+
* Provides the resource display name for use cases like breadcrumbs
|
|
9
|
+
* or document titles.
|
|
10
|
+
*/
|
|
11
|
+
readonly onResourceLoad?: (meta: {
|
|
12
|
+
name: string;
|
|
13
|
+
id: string;
|
|
14
|
+
}) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Primary action rendered as a visible button in the header area.
|
|
17
|
+
*/
|
|
18
|
+
readonly primaryAction?: DetailAction;
|
|
19
|
+
/**
|
|
20
|
+
* Secondary actions rendered in the kebab overflow menu.
|
|
21
|
+
*/
|
|
22
|
+
readonly actions?: readonly DetailAction[];
|
|
23
|
+
/** Additional CSS classes for the root container. */
|
|
24
|
+
readonly className?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Operational detail view for a Runner.
|
|
28
|
+
*
|
|
29
|
+
* Fetches the runner via {@link useRunner} internally and renders its
|
|
30
|
+
* status, connection information, and machine details inside a
|
|
31
|
+
* {@link ResourceDetailShell}. Polls automatically when the runner is
|
|
32
|
+
* in a transitional phase (Starting, Pending).
|
|
33
|
+
*
|
|
34
|
+
* Handles loading, error, and not-found states automatically.
|
|
35
|
+
* Zero Console dependencies — safe for platform builder embedding.
|
|
36
|
+
* All visual properties flow through `--stgm-*` design tokens.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <RunnerDetailView id={runnerId} />
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare function RunnerDetailView({ id, onResourceLoad, primaryAction, actions, className, }: RunnerDetailViewProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
//# sourceMappingURL=RunnerDetailView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunnerDetailView.d.ts","sourceRoot":"","sources":["../../src/runner/RunnerDetailView.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAsB,MAAM,0BAA0B,CAAC;AAGjF,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC,iBAAiB;IACjB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACvE;;OAEG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IAC3C,qDAAqD;IACrD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAID;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,cAAc,EACd,aAAa,EACb,OAAO,EACP,SAAS,GACV,EAAE,qBAAqB,2CA4EvB"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useRef } from "react";
|
|
4
|
+
import { cn } from "@stigmer/theme";
|
|
5
|
+
import { timestampDate } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
import { RunnerPhase } from "@stigmer/protos/ai/stigmer/agentic/runner/v1/enum_pb";
|
|
7
|
+
import { useRunner } from "./useRunner";
|
|
8
|
+
import { phaseLabel, phaseDotColor, isTransitionalPhase } from "./phase";
|
|
9
|
+
import { ErrorMessage } from "../error/ErrorMessage";
|
|
10
|
+
import { ResourceDetailShell } from "../resource-detail/ResourceDetailShell";
|
|
11
|
+
const TRANSITIONAL_POLL_MS = 5_000;
|
|
12
|
+
/**
|
|
13
|
+
* Operational detail view for a Runner.
|
|
14
|
+
*
|
|
15
|
+
* Fetches the runner via {@link useRunner} internally and renders its
|
|
16
|
+
* status, connection information, and machine details inside a
|
|
17
|
+
* {@link ResourceDetailShell}. Polls automatically when the runner is
|
|
18
|
+
* in a transitional phase (Starting, Pending).
|
|
19
|
+
*
|
|
20
|
+
* Handles loading, error, and not-found states automatically.
|
|
21
|
+
* Zero Console dependencies — safe for platform builder embedding.
|
|
22
|
+
* All visual properties flow through `--stgm-*` design tokens.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <RunnerDetailView id={runnerId} />
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export function RunnerDetailView({ id, onResourceLoad, primaryAction, actions, className, }) {
|
|
30
|
+
const phase = useRef(RunnerPhase.UNSPECIFIED);
|
|
31
|
+
const opts = {
|
|
32
|
+
refetchInterval: isTransitionalPhase(phase.current)
|
|
33
|
+
? TRANSITIONAL_POLL_MS
|
|
34
|
+
: false,
|
|
35
|
+
};
|
|
36
|
+
const { runner, isLoading, error, refetch } = useRunner(id, opts);
|
|
37
|
+
if (runner?.status?.phase != null) {
|
|
38
|
+
phase.current = runner.status.phase;
|
|
39
|
+
}
|
|
40
|
+
const onResourceLoadRef = useRef(onResourceLoad);
|
|
41
|
+
onResourceLoadRef.current = onResourceLoad;
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (runner?.metadata?.name) {
|
|
44
|
+
onResourceLoadRef.current?.({
|
|
45
|
+
name: runner.metadata.name,
|
|
46
|
+
id: runner.metadata.id,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}, [runner]);
|
|
50
|
+
if (isLoading)
|
|
51
|
+
return _jsx(LoadingSkeleton, { className: className });
|
|
52
|
+
if (error)
|
|
53
|
+
return _jsx(ErrorMessage, { error: error, retry: refetch, className: className });
|
|
54
|
+
if (!runner)
|
|
55
|
+
return _jsx(NotFoundState, { className: className });
|
|
56
|
+
const meta = runner.metadata;
|
|
57
|
+
const status = runner.status;
|
|
58
|
+
const info = status?.connectionInfo;
|
|
59
|
+
const runnerPhase = status?.phase ?? RunnerPhase.UNSPECIFIED;
|
|
60
|
+
const headerMeta = {
|
|
61
|
+
name: meta?.name || meta?.id || "Unnamed Runner",
|
|
62
|
+
id: meta?.id || id,
|
|
63
|
+
org: meta?.org,
|
|
64
|
+
icon: _jsx(RunnerIcon, { className: "size-6 text-muted-foreground" }),
|
|
65
|
+
status: phaseToStatusPhase(runnerPhase),
|
|
66
|
+
statusLabel: phaseLabel(runnerPhase),
|
|
67
|
+
};
|
|
68
|
+
return (_jsx(ResourceDetailShell, { header: headerMeta, primaryAction: primaryAction, actions: actions, className: className, children: _jsxs("div", { className: "flex flex-col gap-6 pt-2", children: [_jsx(StatusSection, { phase: runnerPhase, lastHeartbeat: status?.lastHeartbeatAt
|
|
69
|
+
? timestampDate(status.lastHeartbeatAt)
|
|
70
|
+
: null, currentExecutions: status?.currentExecutions ?? 0, taskQueue: status?.taskQueue }), info && (_jsx(ConnectionInfoSection, { hostname: info.hostname, os: info.os, arch: info.arch, runnerVersion: info.runnerVersion }))] }) }));
|
|
71
|
+
}
|
|
72
|
+
// ---------------------------------------------------------------------------
|
|
73
|
+
// Phase → StatusPhase mapping
|
|
74
|
+
// ---------------------------------------------------------------------------
|
|
75
|
+
function phaseToStatusPhase(phase) {
|
|
76
|
+
switch (phase) {
|
|
77
|
+
case RunnerPhase.READY:
|
|
78
|
+
return "ready";
|
|
79
|
+
case RunnerPhase.BUSY:
|
|
80
|
+
return "running";
|
|
81
|
+
case RunnerPhase.STARTING:
|
|
82
|
+
case RunnerPhase.PENDING:
|
|
83
|
+
return "pending";
|
|
84
|
+
case RunnerPhase.FAILED:
|
|
85
|
+
return "failed";
|
|
86
|
+
case RunnerPhase.STOPPED:
|
|
87
|
+
return "disabled";
|
|
88
|
+
default:
|
|
89
|
+
return "draft";
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
// Sections
|
|
94
|
+
// ---------------------------------------------------------------------------
|
|
95
|
+
function StatusSection({ phase, lastHeartbeat, currentExecutions, taskQueue, }) {
|
|
96
|
+
return (_jsx(Section, { title: "Status", children: _jsxs("div", { className: "grid grid-cols-2 gap-4 p-4 sm:grid-cols-4", children: [_jsx(StatusItem, { label: "Phase", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: cn("size-2 shrink-0 rounded-full", phaseDotColor(phase)), "aria-hidden": "true" }), _jsx("span", { className: "text-sm font-medium text-foreground", children: phaseLabel(phase) })] }) }), _jsx(StatusItem, { label: "Executions", children: _jsx("span", { className: "text-sm font-medium text-foreground", children: currentExecutions }) }), _jsx(StatusItem, { label: "Last heartbeat", children: _jsx("span", { className: "text-sm text-foreground", children: lastHeartbeat ? formatRelativeTime(lastHeartbeat) : "—" }) }), taskQueue && (_jsx(StatusItem, { label: "Task queue", children: _jsx("code", { className: "rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-foreground", children: taskQueue }) }))] }) }));
|
|
97
|
+
}
|
|
98
|
+
function StatusItem({ label, children, }) {
|
|
99
|
+
return (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx("span", { className: "text-[11px] font-medium text-muted-foreground", children: label }), children] }));
|
|
100
|
+
}
|
|
101
|
+
function ConnectionInfoSection({ hostname, os, arch, runnerVersion, }) {
|
|
102
|
+
const osArch = os && arch ? `${os}/${arch}` : os || arch || undefined;
|
|
103
|
+
const hasAnyInfo = hostname || osArch || runnerVersion;
|
|
104
|
+
if (!hasAnyInfo)
|
|
105
|
+
return null;
|
|
106
|
+
return (_jsx(Section, { title: "Machine", children: _jsxs("div", { className: "flex flex-col divide-y divide-border", children: [hostname && (_jsx(InfoRow, { label: "Hostname", value: hostname })), osArch && (_jsx(InfoRow, { label: "Platform", value: osArch, mono: true })), runnerVersion && (_jsx(InfoRow, { label: "Runner version", value: runnerVersion, mono: true }))] }) }));
|
|
107
|
+
}
|
|
108
|
+
function InfoRow({ label, value, mono, }) {
|
|
109
|
+
return (_jsxs("div", { className: "flex items-baseline justify-between px-4 py-2.5", children: [_jsx("span", { className: "text-xs font-medium text-muted-foreground", children: label }), _jsx("span", { className: cn("text-sm text-foreground", mono && "font-mono text-xs"), children: value })] }));
|
|
110
|
+
}
|
|
111
|
+
// ---------------------------------------------------------------------------
|
|
112
|
+
// Shared layout primitives
|
|
113
|
+
// ---------------------------------------------------------------------------
|
|
114
|
+
function Section({ title, children, }) {
|
|
115
|
+
return (_jsxs("section", { children: [_jsx("h3", { className: "mb-2 text-xs font-medium uppercase tracking-wider text-muted-foreground", children: title }), _jsx("div", { className: "overflow-hidden rounded-lg border border-border", children: children })] }));
|
|
116
|
+
}
|
|
117
|
+
// ---------------------------------------------------------------------------
|
|
118
|
+
// Non-happy states
|
|
119
|
+
// ---------------------------------------------------------------------------
|
|
120
|
+
function LoadingSkeleton({ className }) {
|
|
121
|
+
return (_jsxs("div", { className: cn("flex flex-col gap-6", className), "aria-busy": "true", "aria-label": "Loading runner details", children: [_jsxs("div", { className: "flex items-start gap-3", children: [_jsx("div", { className: "mt-1 size-6 shrink-0 animate-pulse rounded bg-muted" }), _jsxs("div", { className: "flex-1 space-y-2", children: [_jsx("div", { className: "h-5 w-48 animate-pulse rounded bg-muted" }), _jsx("div", { className: "h-3 w-32 animate-pulse rounded bg-muted" })] })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("div", { className: "h-3 w-16 animate-pulse rounded bg-muted" }), _jsx("div", { className: "animate-pulse rounded-lg border border-border bg-muted-faint", style: { height: "96px" } })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("div", { className: "h-3 w-20 animate-pulse rounded bg-muted" }), _jsx("div", { className: "animate-pulse rounded-lg border border-border bg-muted-faint", style: { height: "96px" } })] })] }));
|
|
122
|
+
}
|
|
123
|
+
function NotFoundState({ className }) {
|
|
124
|
+
return (_jsxs("div", { role: "status", className: cn("flex flex-col items-center gap-2 py-12 text-center", className), children: [_jsx(RunnerIcon, { className: "size-10 text-muted-foreground-faint" }), _jsx("p", { className: "text-sm font-medium text-muted-foreground", children: "Runner not found" }), _jsx("p", { className: "text-xs text-muted-foreground-subtle", children: "This runner doesn't exist or has been removed." })] }));
|
|
125
|
+
}
|
|
126
|
+
// ---------------------------------------------------------------------------
|
|
127
|
+
// Utilities
|
|
128
|
+
// ---------------------------------------------------------------------------
|
|
129
|
+
function formatRelativeTime(date) {
|
|
130
|
+
const now = Date.now();
|
|
131
|
+
const diffMs = now - date.getTime();
|
|
132
|
+
const diffSec = Math.floor(diffMs / 1000);
|
|
133
|
+
if (diffSec < 10)
|
|
134
|
+
return "Just now";
|
|
135
|
+
if (diffSec < 60)
|
|
136
|
+
return `${diffSec}s ago`;
|
|
137
|
+
const diffMin = Math.floor(diffSec / 60);
|
|
138
|
+
if (diffMin < 60)
|
|
139
|
+
return `${diffMin}m ago`;
|
|
140
|
+
const diffHour = Math.floor(diffMin / 60);
|
|
141
|
+
if (diffHour < 24)
|
|
142
|
+
return `${diffHour}h ago`;
|
|
143
|
+
return date.toLocaleDateString("en-US", {
|
|
144
|
+
month: "short",
|
|
145
|
+
day: "numeric",
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
// ---------------------------------------------------------------------------
|
|
149
|
+
// Icon
|
|
150
|
+
// ---------------------------------------------------------------------------
|
|
151
|
+
function RunnerIcon({ className }) {
|
|
152
|
+
return (_jsxs("svg", { className: className, viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("rect", { x: "2", y: "4", width: "12", height: "9", rx: "1.5" }), _jsx("path", { d: "M5 1v3M11 1v3M5 8.5h6" })] }));
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=RunnerDetailView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunnerDetailView.js","source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E,OAAO,GAAG,OAAO,OAAO,CAAC;IAC3C,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;IAC1C,IAAI,QAAQ,GAAG,EAAE;QAAE,OAAO,GAAG,QAAQ,OAAO,CAAC;IAC7C,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE;QACtC,KAAK,EAAE,OAAO;QACd,GAAG,EAAE,SAAS;KACf,CAAC,CAAC;AACL,CAAC;AAED,8EAA8E;AAC9E,OAAO;AACP,8EAA8E;AAE9E,SAAS,UAAU,CAAC,EAAE,SAAS,EAAmC;IAChE,OAAO,CACL,eACE,SAAS,EAAE,SAAS,EACpB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,aAElB,eAAM,CAAC,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,EAAE,EAAC,KAAK,GAAG,EACnD,eAAM,CAAC,EAAC,uBAAuB,GAAG,IAC9B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { RunnerPhase } from "@stigmer/protos/ai/stigmer/agentic/runner/v1/enum_pb";
|
|
1
2
|
import type { Runner } from "@stigmer/protos/ai/stigmer/agentic/runner/v1/api_pb";
|
|
3
|
+
/** Sort key for the runner list. */
|
|
4
|
+
export type RunnerSortKey = "phase" | "name" | "heartbeat" | "executions";
|
|
2
5
|
/** Props for {@link RunnerListPanel}. */
|
|
3
6
|
export interface RunnerListPanelProps {
|
|
4
7
|
/** Organization slug to scope the runner list. */
|
|
@@ -14,6 +17,28 @@ export interface RunnerListPanelProps {
|
|
|
14
17
|
* @default false
|
|
15
18
|
*/
|
|
16
19
|
readonly includeSystemManaged?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Restrict the list to runners in the specified phases.
|
|
22
|
+
*
|
|
23
|
+
* When provided, only runners whose phase is in this array are shown.
|
|
24
|
+
* When omitted or empty, all phases are included.
|
|
25
|
+
*/
|
|
26
|
+
readonly filterPhases?: readonly RunnerPhase[];
|
|
27
|
+
/**
|
|
28
|
+
* Client-side text filter. When provided, only runners whose name
|
|
29
|
+
* or hostname contains this substring (case-insensitive) are shown.
|
|
30
|
+
*/
|
|
31
|
+
readonly searchQuery?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Sort key for ordering the runner list.
|
|
34
|
+
* @default "phase"
|
|
35
|
+
*/
|
|
36
|
+
readonly sortBy?: RunnerSortKey;
|
|
37
|
+
/**
|
|
38
|
+
* Sort direction.
|
|
39
|
+
* @default "asc"
|
|
40
|
+
*/
|
|
41
|
+
readonly sortDirection?: "asc" | "desc";
|
|
17
42
|
/** Expose refetch so parent components can trigger a list refresh. */
|
|
18
43
|
readonly onRefetchRef?: (refetch: () => void) => void;
|
|
19
44
|
/**
|
|
@@ -66,5 +91,5 @@ export interface RunnerListPanelProps {
|
|
|
66
91
|
* />
|
|
67
92
|
* ```
|
|
68
93
|
*/
|
|
69
|
-
export declare function RunnerListPanel({ org, includeSystemManaged, onRefetchRef, onStopped, onDeleted, className, }: RunnerListPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
export declare function RunnerListPanel({ org, includeSystemManaged, filterPhases, searchQuery, sortBy, sortDirection, onRefetchRef, onStopped, onDeleted, className, }: RunnerListPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
70
95
|
//# sourceMappingURL=RunnerListPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunnerListPanel.d.ts","sourceRoot":"","sources":["../../src/runner/RunnerListPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RunnerListPanel.d.ts","sourceRoot":"","sources":["../../src/runner/RunnerListPanel.ts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