@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,78 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback, useRef } from "react";
|
|
4
|
+
import { cn } from "@stigmer/theme";
|
|
5
|
+
import { TEMPLATE_CATEGORY_LABELS } from "./templates/types";
|
|
6
|
+
import { useTemplateFilter } from "./useTemplateFilter";
|
|
7
|
+
import { TemplateCard } from "./TemplateCard";
|
|
8
|
+
// ---------------------------------------------------------------------------
|
|
9
|
+
// Component
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
/**
|
|
12
|
+
* A searchable, filterable gallery of resource templates.
|
|
13
|
+
*
|
|
14
|
+
* Renders category tabs, a search input, and a responsive card grid.
|
|
15
|
+
* Uses the headless `useTemplateFilter` hook for state — platform
|
|
16
|
+
* builders who want custom rendering can use the hook directly.
|
|
17
|
+
*
|
|
18
|
+
* Keyboard navigation:
|
|
19
|
+
* - Tab moves focus between the search input, category tabs, and cards
|
|
20
|
+
* - Arrow keys (Left/Right) navigate between category tabs
|
|
21
|
+
* - Enter/Space activates the focused tab or card
|
|
22
|
+
*
|
|
23
|
+
* All structural styling via `--stgm-*` tokens. Zero Console or
|
|
24
|
+
* framework dependencies.
|
|
25
|
+
*
|
|
26
|
+
* @typeParam TData - The wizard data shape (e.g. `AgentWizardData`).
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <TemplateGallery
|
|
31
|
+
* templates={AGENT_TEMPLATES}
|
|
32
|
+
* onSelect={(template) => startWizardWithTemplate(template)}
|
|
33
|
+
* />
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export function TemplateGallery({ templates, onSelect, emptyContent, className, }) {
|
|
37
|
+
const { filtered, query, setQuery, activeCategory, setActiveCategory, availableCategories, } = useTemplateFilter({ templates });
|
|
38
|
+
const tabListRef = useRef(null);
|
|
39
|
+
const handleTabKeyDown = useCallback((e) => {
|
|
40
|
+
const tabs = tabListRef.current?.querySelectorAll('[role="tab"]');
|
|
41
|
+
if (!tabs?.length)
|
|
42
|
+
return;
|
|
43
|
+
const currentIndex = Array.from(tabs).findIndex((t) => t === document.activeElement);
|
|
44
|
+
if (currentIndex === -1)
|
|
45
|
+
return;
|
|
46
|
+
let nextIndex = null;
|
|
47
|
+
if (e.key === "ArrowRight") {
|
|
48
|
+
nextIndex = (currentIndex + 1) % tabs.length;
|
|
49
|
+
}
|
|
50
|
+
else if (e.key === "ArrowLeft") {
|
|
51
|
+
nextIndex = (currentIndex - 1 + tabs.length) % tabs.length;
|
|
52
|
+
}
|
|
53
|
+
else if (e.key === "Home") {
|
|
54
|
+
nextIndex = 0;
|
|
55
|
+
}
|
|
56
|
+
else if (e.key === "End") {
|
|
57
|
+
nextIndex = tabs.length - 1;
|
|
58
|
+
}
|
|
59
|
+
if (nextIndex !== null) {
|
|
60
|
+
e.preventDefault();
|
|
61
|
+
tabs[nextIndex].focus();
|
|
62
|
+
tabs[nextIndex].click();
|
|
63
|
+
}
|
|
64
|
+
}, []);
|
|
65
|
+
return (_jsxs("div", { className: cn("flex flex-col gap-4", className), children: [_jsxs("div", { className: "relative", children: [_jsx(SearchIcon, {}), _jsx("input", { type: "search", value: query, onChange: (e) => setQuery(e.target.value), placeholder: "Search templates\u2026", "aria-label": "Search templates", className: cn("w-full rounded-md border border-input bg-input-bg py-2 pl-9 pr-3 text-sm text-foreground", "placeholder:text-muted-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring") })] }), availableCategories.length > 1 && (_jsxs("div", { ref: tabListRef, role: "tablist", "aria-label": "Template categories", onKeyDown: handleTabKeyDown, className: "flex flex-wrap gap-1", children: [_jsx(CategoryTab, { label: "All", isActive: activeCategory === null, onClick: () => setActiveCategory(null) }), availableCategories.map((cat) => (_jsx(CategoryTab, { label: TEMPLATE_CATEGORY_LABELS[cat] ?? cat, isActive: activeCategory === cat, onClick: () => setActiveCategory(cat) }, cat)))] })), filtered.length > 0 ? (_jsx("div", { role: "list", "aria-label": "Templates", className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3", children: filtered.map((template) => (_jsx("div", { role: "listitem", children: _jsx(TemplateCard, { template: template, onSelect: onSelect }) }, template.id))) })) : ((emptyContent ?? (_jsx("div", { className: "py-8 text-center text-sm text-muted-foreground", children: "No templates match your search." }))))] }));
|
|
66
|
+
}
|
|
67
|
+
// ---------------------------------------------------------------------------
|
|
68
|
+
// Internal components
|
|
69
|
+
// ---------------------------------------------------------------------------
|
|
70
|
+
function CategoryTab({ label, isActive, onClick, }) {
|
|
71
|
+
return (_jsx("button", { type: "button", role: "tab", "aria-selected": isActive, tabIndex: isActive ? 0 : -1, onClick: onClick, className: cn("rounded-md px-2.5 py-1 text-xs font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", isActive
|
|
72
|
+
? "bg-primary text-primary-foreground"
|
|
73
|
+
: "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"), children: label }));
|
|
74
|
+
}
|
|
75
|
+
function SearchIcon() {
|
|
76
|
+
return (_jsxs("svg", { className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("circle", { cx: 11, cy: 11, r: 8 }), _jsx("path", { d: "m21 21-4.3-4.3" })] }));
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=TemplateGallery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateGallery.js","sourceRoot":"","sources":["../../src/resource-creation/TemplateGallery.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,WAAW,EAAE,MAAM,EAAkB,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAEpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAqB9C,8EAA8E;AAC9E,YAAY;AACZ,8EAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,eAAe,CAAQ,EACrC,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,SAAS,GACmB;IAC5B,MAAM,EACJ,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,mBAAmB,GACpB,GAAG,iBAAiB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;IAErC,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAEhD,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,CAAsB,EAAE,EAAE;QAC9D,MAAM,IAAI,GACR,UAAU,CAAC,OAAO,EAAE,gBAAgB,CAAoB,cAAc,CAAC,CAAC;QAC1E,IAAI,CAAC,IAAI,EAAE,MAAM;YAAE,OAAO;QAE1B,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,SAAS,CAC7C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,aAAa,CACpC,CAAC;QACF,IAAI,YAAY,KAAK,CAAC,CAAC;YAAE,OAAO;QAEhC,IAAI,SAAS,GAAkB,IAAI,CAAC;QAEpC,IAAI,CAAC,CAAC,GAAG,KAAK,YAAY,EAAE,CAAC;YAC3B,SAAS,GAAG,CAAC,YAAY,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/C,CAAC;aAAM,IAAI,CAAC,CAAC,GAAG,KAAK,WAAW,EAAE,CAAC;YACjC,SAAS,GAAG,CAAC,YAAY,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAC7D,CAAC;aAAM,IAAI,CAAC,CAAC,GAAG,KAAK,MAAM,EAAE,CAAC;YAC5B,SAAS,GAAG,CAAC,CAAC;QAChB,CAAC;aAAM,IAAI,CAAC,CAAC,GAAG,KAAK,KAAK,EAAE,CAAC;YAC3B,SAAS,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAC9B,CAAC;QAED,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACvB,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,IAAI,CAAC,SAAS,CAAE,CAAC,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,SAAS,CAAE,CAAC,KAAK,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,aAElD,eAAK,SAAS,EAAC,UAAU,aACvB,KAAC,UAAU,KAAG,EACd,gBACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,WAAW,EAAC,wBAAmB,gBACpB,kBAAkB,EAC7B,SAAS,EAAE,EAAE,CACX,0FAA0F,EAC1F,mCAAmC,EACnC,yEAAyE,CAC1E,GACD,IACE,EAGL,mBAAmB,CAAC,MAAM,GAAG,CAAC,IAAI,CACjC,eACE,GAAG,EAAE,UAAU,EACf,IAAI,EAAC,SAAS,gBACH,qBAAqB,EAChC,SAAS,EAAE,gBAAgB,EAC3B,SAAS,EAAC,sBAAsB,aAEhC,KAAC,WAAW,IACV,KAAK,EAAC,KAAK,EACX,QAAQ,EAAE,cAAc,KAAK,IAAI,EACjC,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,GACtC,EACD,mBAAmB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAChC,KAAC,WAAW,IAEV,KAAK,EAAE,wBAAwB,CAAC,GAAG,CAAC,IAAI,GAAG,EAC3C,QAAQ,EAAE,cAAc,KAAK,GAAG,EAChC,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAHhC,GAAG,CAIR,CACH,CAAC,IACE,CACP,EAGA,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACrB,cACE,IAAI,EAAC,MAAM,gBACA,WAAW,EACtB,SAAS,EAAC,sDAAsD,YAE/D,QAAQ,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAC1B,cAAuB,IAAI,EAAC,UAAU,YACpC,KAAC,YAAY,IAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,IADhD,QAAQ,CAAC,EAAE,CAEf,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,CACF,CAAC,YAAY,IAAI,CACf,cAAK,SAAS,EAAC,gDAAgD,gDAEzD,CACP,CAAC,CACH,IACG,CACP,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,SAAS,WAAW,CAAC,EACnB,KAAK,EACL,QAAQ,EACR,OAAO,GAKR;IACC,OAAO,CACL,iBACE,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,KAAK,mBACK,QAAQ,EACvB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC3B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,EAAE,CACX,8DAA8D,EAC9D,yEAAyE,EACzE,QAAQ;YACN,CAAC,CAAC,oCAAoC;YACtC,CAAC,CAAC,6EAA6E,CAClF,YAEA,KAAK,GACC,CACV,CAAC;AACJ,CAAC;AAED,SAAS,UAAU;IACjB,OAAO,CACL,eACE,SAAS,EAAC,2FAA2F,EACrG,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAE,CAAC,EACd,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,aAElB,iBAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,GAAI,EAChC,eAAM,CAAC,EAAC,gBAAgB,GAAG,IACvB,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Props for {@link WizardNav}. */
|
|
2
|
+
export interface WizardNavProps {
|
|
3
|
+
/** Whether the Back button should be displayed. */
|
|
4
|
+
readonly showBack: boolean;
|
|
5
|
+
/** Label for the primary action button. */
|
|
6
|
+
readonly nextLabel: string;
|
|
7
|
+
/** Whether the primary action is disabled. */
|
|
8
|
+
readonly nextDisabled?: boolean;
|
|
9
|
+
/** Whether the primary action is in a loading state. */
|
|
10
|
+
readonly isSubmitting?: boolean;
|
|
11
|
+
/** Called when Back is clicked. */
|
|
12
|
+
readonly onBack: () => void;
|
|
13
|
+
/** Called when Next/Submit is clicked. */
|
|
14
|
+
readonly onNext: () => void;
|
|
15
|
+
/** Called when Cancel is clicked. */
|
|
16
|
+
readonly onCancel?: () => void;
|
|
17
|
+
/** Additional CSS classes for the root container. */
|
|
18
|
+
readonly className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Navigation footer for the wizard shell.
|
|
22
|
+
*
|
|
23
|
+
* Renders Back / Next|Submit buttons in a standardized layout.
|
|
24
|
+
* The primary (right-side) button adapts its label and loading
|
|
25
|
+
* state based on whether it's the final step.
|
|
26
|
+
*
|
|
27
|
+
* Keyboard: Enter triggers the primary action when focused within
|
|
28
|
+
* the wizard content (not within text areas or other multi-line inputs).
|
|
29
|
+
*/
|
|
30
|
+
export declare function WizardNav({ showBack, nextLabel, nextDisabled, isSubmitting, onBack, onNext, onCancel, className, }: WizardNavProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=WizardNav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardNav.d.ts","sourceRoot":"","sources":["../../src/resource-creation/WizardNav.tsx"],"names":[],"mappings":"AAIA,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,2CAA2C;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,8CAA8C;IAC9C,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,wDAAwD;IACxD,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,mCAAmC;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B,qCAAqC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,qDAAqD;IACrD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GACV,EAAE,cAAc,2CA+DhB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@stigmer/theme";
|
|
4
|
+
/**
|
|
5
|
+
* Navigation footer for the wizard shell.
|
|
6
|
+
*
|
|
7
|
+
* Renders Back / Next|Submit buttons in a standardized layout.
|
|
8
|
+
* The primary (right-side) button adapts its label and loading
|
|
9
|
+
* state based on whether it's the final step.
|
|
10
|
+
*
|
|
11
|
+
* Keyboard: Enter triggers the primary action when focused within
|
|
12
|
+
* the wizard content (not within text areas or other multi-line inputs).
|
|
13
|
+
*/
|
|
14
|
+
export function WizardNav({ showBack, nextLabel, nextDisabled, isSubmitting, onBack, onNext, onCancel, className, }) {
|
|
15
|
+
return (_jsxs("div", { className: cn("flex items-center justify-between border-t border-border px-6 py-4", className), children: [_jsx("div", { className: "flex items-center gap-2", children: onCancel && (_jsx("button", { type: "button", onClick: onCancel, disabled: isSubmitting, className: cn("rounded-md px-3 py-1.5 text-sm", "text-muted-foreground transition-colors", "hover:text-foreground hover:bg-accent-hover", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-50"), children: "Cancel" })) }), _jsxs("div", { className: "flex items-center gap-2", children: [showBack && (_jsxs("button", { type: "button", onClick: onBack, disabled: isSubmitting, className: cn("inline-flex items-center gap-1.5 rounded-md border border-input bg-background px-3 py-1.5 text-sm font-medium text-foreground transition-colors", "hover:bg-accent-hover", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-50"), children: [_jsx(ArrowLeftIcon, { className: "size-3.5" }), "Back"] })), _jsxs("button", { type: "button", onClick: onNext, disabled: nextDisabled || isSubmitting, className: cn("inline-flex items-center gap-1.5 rounded-md bg-primary px-4 py-1.5 text-sm font-medium text-primary-foreground transition-colors", "hover:bg-primary-hover", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "disabled:pointer-events-none disabled:opacity-40"), children: [isSubmitting && _jsx(SpinnerIcon, {}), nextLabel, !isSubmitting && _jsx(ArrowRightIcon, { className: "size-3.5" })] })] })] }));
|
|
16
|
+
}
|
|
17
|
+
// ---------------------------------------------------------------------------
|
|
18
|
+
// Icons
|
|
19
|
+
// ---------------------------------------------------------------------------
|
|
20
|
+
function ArrowLeftIcon({ className }) {
|
|
21
|
+
return (_jsx("svg", { className: className, viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "M10 3 5 8l5 5" }) }));
|
|
22
|
+
}
|
|
23
|
+
function ArrowRightIcon({ className }) {
|
|
24
|
+
return (_jsx("svg", { className: className, viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "m6 3 5 5-5 5" }) }));
|
|
25
|
+
}
|
|
26
|
+
function SpinnerIcon() {
|
|
27
|
+
return (_jsx("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", className: "animate-spin", "aria-hidden": "true", children: _jsx("path", { d: "M8 2a6 6 0 1 0 6 6" }) }));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=WizardNav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardNav.js","sourceRoot":"","sources":["../../src/resource-creation/WizardNav.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAsBpC;;;;;;;;;GASG;AACH,MAAM,UAAU,SAAS,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,GACM;IACf,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,oEAAoE,EACpE,SAAS,CACV,aAED,cAAK,SAAS,EAAC,yBAAyB,YACrC,QAAQ,IAAI,CACX,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,EAAE,CACX,gCAAgC,EAChC,yCAAyC,EACzC,6CAA6C,EAC7C,yEAAyE,EACzE,kDAAkD,CACnD,uBAGM,CACV,GACG,EAEN,eAAK,SAAS,EAAC,yBAAyB,aACrC,QAAQ,IAAI,CACX,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,EAAE,CACX,iJAAiJ,EACjJ,uBAAuB,EACvB,yEAAyE,EACzE,kDAAkD,CACnD,aAED,KAAC,aAAa,IAAC,SAAS,EAAC,UAAU,GAAG,YAE/B,CACV,EAED,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,YAAY,IAAI,YAAY,EACtC,SAAS,EAAE,EAAE,CACX,kIAAkI,EAClI,wBAAwB,EACxB,yEAAyE,EACzE,kDAAkD,CACnD,aAEA,YAAY,IAAI,KAAC,WAAW,KAAG,EAC/B,SAAS,EACT,CAAC,YAAY,IAAI,KAAC,cAAc,IAAC,SAAS,EAAC,UAAU,GAAG,IAClD,IACL,IACF,CACP,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,QAAQ;AACR,8EAA8E;AAE9E,SAAS,aAAa,CAAC,EAAE,SAAS,EAAmC;IACnE,OAAO,CACL,cACE,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,YAElB,eAAM,CAAC,EAAC,eAAe,GAAG,GACtB,CACP,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,EAAE,SAAS,EAAmC;IACpE,OAAO,CACL,cACE,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,YAElB,eAAM,CAAC,EAAC,cAAc,GAAG,GACrB,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW;IAClB,OAAO,CACL,cACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,SAAS,EAAC,cAAc,iBACZ,MAAM,YAElB,eAAM,CAAC,EAAC,oBAAoB,GAAG,GAC3B,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { WizardShellProps } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Reusable multi-step wizard layout for resource creation flows.
|
|
4
|
+
*
|
|
5
|
+
* Renders three zones:
|
|
6
|
+
* 1. **Step indicator sidebar** — vertical progress showing all steps
|
|
7
|
+
* 2. **Content area** — the active step's form content (via `children`)
|
|
8
|
+
* 3. **Navigation footer** — Back / Next / Create buttons
|
|
9
|
+
*
|
|
10
|
+
* This component is resource-agnostic. It accepts step definitions for
|
|
11
|
+
* the indicator, delegates content rendering to the consumer, and
|
|
12
|
+
* emits navigation events. The consumer (e.g., `AgentCreationWizard`)
|
|
13
|
+
* manages form state via `useWizardState` and renders the appropriate
|
|
14
|
+
* step component as `children`.
|
|
15
|
+
*
|
|
16
|
+
* Layout:
|
|
17
|
+
* - **Desktop** (>= 640px): Sidebar (200px) + content (flex-1) side by side
|
|
18
|
+
* - **Mobile** (< 640px): Step indicator as compact top bar, content below
|
|
19
|
+
*
|
|
20
|
+
* All visual properties via `--stgm-*` tokens. Zero Console or
|
|
21
|
+
* framework dependencies — works in any React host.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <WizardShell
|
|
26
|
+
* steps={steps}
|
|
27
|
+
* currentStepIndex={wizard.currentStepIndex}
|
|
28
|
+
* submitLabel="Create agent"
|
|
29
|
+
* isSubmitting={isCreating}
|
|
30
|
+
* canGoNext={wizard.canGoNext}
|
|
31
|
+
* canGoBack={wizard.canGoBack}
|
|
32
|
+
* onNext={wizard.goNext}
|
|
33
|
+
* onBack={wizard.goBack}
|
|
34
|
+
* onCancel={handleCancel}
|
|
35
|
+
* >
|
|
36
|
+
* {renderCurrentStep()}
|
|
37
|
+
* </WizardShell>
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare function WizardShell({ steps, currentStepIndex, children, submitLabel, isSubmitting, canGoNext, canGoBack, onNext, onBack, onGoToStep, onCancel, className, }: WizardShellProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
//# sourceMappingURL=WizardShell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardShell.d.ts","sourceRoot":"","sources":["../../src/resource-creation/WizardShell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAIhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,SAAgB,EAChB,SAAiB,EACjB,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,2CA+ClB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@stigmer/theme";
|
|
4
|
+
import { StepIndicator } from "./StepIndicator";
|
|
5
|
+
import { WizardNav } from "./WizardNav";
|
|
6
|
+
/**
|
|
7
|
+
* Reusable multi-step wizard layout for resource creation flows.
|
|
8
|
+
*
|
|
9
|
+
* Renders three zones:
|
|
10
|
+
* 1. **Step indicator sidebar** — vertical progress showing all steps
|
|
11
|
+
* 2. **Content area** — the active step's form content (via `children`)
|
|
12
|
+
* 3. **Navigation footer** — Back / Next / Create buttons
|
|
13
|
+
*
|
|
14
|
+
* This component is resource-agnostic. It accepts step definitions for
|
|
15
|
+
* the indicator, delegates content rendering to the consumer, and
|
|
16
|
+
* emits navigation events. The consumer (e.g., `AgentCreationWizard`)
|
|
17
|
+
* manages form state via `useWizardState` and renders the appropriate
|
|
18
|
+
* step component as `children`.
|
|
19
|
+
*
|
|
20
|
+
* Layout:
|
|
21
|
+
* - **Desktop** (>= 640px): Sidebar (200px) + content (flex-1) side by side
|
|
22
|
+
* - **Mobile** (< 640px): Step indicator as compact top bar, content below
|
|
23
|
+
*
|
|
24
|
+
* All visual properties via `--stgm-*` tokens. Zero Console or
|
|
25
|
+
* framework dependencies — works in any React host.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <WizardShell
|
|
30
|
+
* steps={steps}
|
|
31
|
+
* currentStepIndex={wizard.currentStepIndex}
|
|
32
|
+
* submitLabel="Create agent"
|
|
33
|
+
* isSubmitting={isCreating}
|
|
34
|
+
* canGoNext={wizard.canGoNext}
|
|
35
|
+
* canGoBack={wizard.canGoBack}
|
|
36
|
+
* onNext={wizard.goNext}
|
|
37
|
+
* onBack={wizard.goBack}
|
|
38
|
+
* onCancel={handleCancel}
|
|
39
|
+
* >
|
|
40
|
+
* {renderCurrentStep()}
|
|
41
|
+
* </WizardShell>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export function WizardShell({ steps, currentStepIndex, children, submitLabel, isSubmitting, canGoNext = true, canGoBack = false, onNext, onBack, onGoToStep, onCancel, className, }) {
|
|
45
|
+
const isLastStep = currentStepIndex === steps.length - 1;
|
|
46
|
+
const nextLabel = isLastStep ? submitLabel : "Next";
|
|
47
|
+
return (_jsxs("div", { className: cn("flex min-h-0 flex-col overflow-hidden rounded-lg border border-border bg-background", className), children: [_jsxs("div", { className: "flex items-center gap-2 border-b border-border px-4 py-3 sm:hidden", children: [_jsx(MobileProgress, { current: currentStepIndex + 1, total: steps.length }), _jsx("span", { className: "text-sm font-medium text-foreground", children: steps[currentStepIndex]?.label })] }), _jsxs("div", { className: "flex min-h-0 flex-1", children: [_jsx("aside", { className: "hidden w-52 shrink-0 border-r border-border bg-muted-faint px-3 py-6 sm:block", children: _jsx(StepIndicator, { steps: steps, currentStepIndex: currentStepIndex, onStepClick: onGoToStep }) }), _jsx("main", { className: "flex-1 overflow-y-auto px-6 py-6 sm:px-8", children: children })] }), _jsx(WizardNav, { showBack: canGoBack, nextLabel: nextLabel, nextDisabled: !canGoNext, isSubmitting: isSubmitting, onBack: onBack, onNext: onNext, onCancel: onCancel })] }));
|
|
48
|
+
}
|
|
49
|
+
// ---------------------------------------------------------------------------
|
|
50
|
+
// Mobile progress (compact step display)
|
|
51
|
+
// ---------------------------------------------------------------------------
|
|
52
|
+
function MobileProgress({ current, total, }) {
|
|
53
|
+
return (_jsxs("span", { className: "inline-flex items-center justify-center rounded-full bg-primary px-2 py-0.5 text-[10px] font-semibold text-primary-foreground", children: [current, "/", total] }));
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=WizardShell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardShell.js","sourceRoot":"","sources":["../../src/resource-creation/WizardShell.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,SAAS,GAAG,IAAI,EAChB,SAAS,GAAG,KAAK,EACjB,MAAM,EACN,MAAM,EACN,UAAU,EACV,QAAQ,EACR,SAAS,GACQ;IACjB,MAAM,UAAU,GAAG,gBAAgB,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IACzD,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC;IAEpD,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,qFAAqF,EACrF,SAAS,CACV,aAGD,eAAK,SAAS,EAAC,oEAAoE,aACjF,KAAC,cAAc,IAAC,OAAO,EAAE,gBAAgB,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,GAAI,EACtE,eAAM,SAAS,EAAC,qCAAqC,YAClD,KAAK,CAAC,gBAAgB,CAAC,EAAE,KAAK,GAC1B,IACH,EAEN,eAAK,SAAS,EAAC,qBAAqB,aAElC,gBAAO,SAAS,EAAC,+EAA+E,YAC9F,KAAC,aAAa,IACZ,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,WAAW,EAAE,UAAU,GACvB,GACI,EAGR,eAAM,SAAS,EAAC,0CAA0C,YACvD,QAAQ,GACJ,IACH,EAGN,KAAC,SAAS,IACR,QAAQ,EAAE,SAAS,EACnB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,CAAC,SAAS,EACxB,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,GAClB,IACE,CACP,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,yCAAyC;AACzC,8EAA8E;AAE9E,SAAS,cAAc,CAAC,EACtB,OAAO,EACP,KAAK,GAIN;IACC,OAAO,CACL,gBAAM,SAAS,EAAC,+HAA+H,aAC5I,OAAO,OAAG,KAAK,IACX,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type { EnvVarEntry, KeyValueEntry, WizardStepDef, WizardState, WizardShellProps, } from "./types";
|
|
2
|
+
export type { ResourceTemplate, TemplateCategory } from "./templates/types";
|
|
3
|
+
export { TEMPLATE_CATEGORY_LABELS } from "./templates/types";
|
|
4
|
+
export { AGENT_TEMPLATES } from "./templates/agent-templates";
|
|
5
|
+
export { MCP_SERVER_TEMPLATES } from "./templates/mcp-server-templates";
|
|
6
|
+
export { useWizardState } from "./useWizardState";
|
|
7
|
+
export type { UseWizardStateOptions, UseWizardStateReturn, } from "./useWizardState";
|
|
8
|
+
export { useTemplateFilter } from "./useTemplateFilter";
|
|
9
|
+
export type { UseTemplateFilterOptions, UseTemplateFilterReturn, } from "./useTemplateFilter";
|
|
10
|
+
export { WizardShell } from "./WizardShell";
|
|
11
|
+
export { WizardNav } from "./WizardNav";
|
|
12
|
+
export type { WizardNavProps } from "./WizardNav";
|
|
13
|
+
export { StepIndicator } from "./StepIndicator";
|
|
14
|
+
export type { StepIndicatorProps } from "./StepIndicator";
|
|
15
|
+
export { TemplateCard } from "./TemplateCard";
|
|
16
|
+
export type { TemplateCardProps } from "./TemplateCard";
|
|
17
|
+
export { TemplateGallery } from "./TemplateGallery";
|
|
18
|
+
export type { TemplateGalleryProps } from "./TemplateGallery";
|
|
19
|
+
export { CreationPicker } from "./CreationPicker";
|
|
20
|
+
export type { CreationPickerProps, CreationPath } from "./CreationPicker";
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resource-creation/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAGjB,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EACV,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { TEMPLATE_CATEGORY_LABELS } from "./templates/types";
|
|
2
|
+
export { AGENT_TEMPLATES } from "./templates/agent-templates";
|
|
3
|
+
export { MCP_SERVER_TEMPLATES } from "./templates/mcp-server-templates";
|
|
4
|
+
// Hooks
|
|
5
|
+
export { useWizardState } from "./useWizardState";
|
|
6
|
+
export { useTemplateFilter } from "./useTemplateFilter";
|
|
7
|
+
// Components
|
|
8
|
+
export { WizardShell } from "./WizardShell";
|
|
9
|
+
export { WizardNav } from "./WizardNav";
|
|
10
|
+
export { StepIndicator } from "./StepIndicator";
|
|
11
|
+
export { TemplateCard } from "./TemplateCard";
|
|
12
|
+
export { TemplateGallery } from "./TemplateGallery";
|
|
13
|
+
export { CreationPicker } from "./CreationPicker";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resource-creation/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,QAAQ;AACR,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAMxD,aAAa;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AgentWizardData } from "../../agent/steps/types";
|
|
2
|
+
import type { ResourceTemplate } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Built-in agent templates shipped with the SDK.
|
|
5
|
+
*
|
|
6
|
+
* Each template pre-fills the agent creation wizard with a curated
|
|
7
|
+
* set of instructions, name, and description. Users can customize
|
|
8
|
+
* every field after selection — templates are starting points, not
|
|
9
|
+
* constraints.
|
|
10
|
+
*
|
|
11
|
+
* Platform builders can pass their own template arrays to the
|
|
12
|
+
* gallery; these built-in templates are a convenience default.
|
|
13
|
+
*/
|
|
14
|
+
export declare const AGENT_TEMPLATES: readonly ResourceTemplate<AgentWizardData>[];
|
|
15
|
+
//# sourceMappingURL=agent-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-templates.d.ts","sourceRoot":"","sources":["../../../src/resource-creation/templates/agent-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,gBAAgB,CAAC,eAAe,CAAC,EAiJvE,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in agent templates shipped with the SDK.
|
|
3
|
+
*
|
|
4
|
+
* Each template pre-fills the agent creation wizard with a curated
|
|
5
|
+
* set of instructions, name, and description. Users can customize
|
|
6
|
+
* every field after selection — templates are starting points, not
|
|
7
|
+
* constraints.
|
|
8
|
+
*
|
|
9
|
+
* Platform builders can pass their own template arrays to the
|
|
10
|
+
* gallery; these built-in templates are a convenience default.
|
|
11
|
+
*/
|
|
12
|
+
export const AGENT_TEMPLATES = [
|
|
13
|
+
{
|
|
14
|
+
id: "customer-support",
|
|
15
|
+
name: "Customer Support Agent",
|
|
16
|
+
description: "A support agent that handles customer inquiries with empathy, follows escalation procedures, and maintains a professional tone.",
|
|
17
|
+
category: "customer-support",
|
|
18
|
+
tags: ["support", "helpdesk", "tickets", "customer"],
|
|
19
|
+
data: {
|
|
20
|
+
name: "Customer Support Agent",
|
|
21
|
+
description: "Handles customer inquiries, troubleshoots issues, and escalates when necessary.",
|
|
22
|
+
instructions: `You are a customer support agent. Your role is to help customers resolve their issues efficiently and empathetically.
|
|
23
|
+
|
|
24
|
+
## Guidelines
|
|
25
|
+
|
|
26
|
+
- **Tone:** Professional, friendly, and patient. Acknowledge the customer's frustration before troubleshooting.
|
|
27
|
+
- **Scope:** Answer questions about the product, troubleshoot common issues, and guide customers through solutions step by step.
|
|
28
|
+
- **Escalation:** If you cannot resolve the issue within your capabilities, clearly explain what you've tried and escalate to a human agent with a summary of the conversation.
|
|
29
|
+
- **Privacy:** Never ask for or store sensitive information like passwords or payment details. Direct customers to secure channels for sensitive operations.
|
|
30
|
+
|
|
31
|
+
## Response Format
|
|
32
|
+
|
|
33
|
+
1. Acknowledge the customer's issue
|
|
34
|
+
2. Ask clarifying questions if needed
|
|
35
|
+
3. Provide a step-by-step solution
|
|
36
|
+
4. Confirm the issue is resolved or escalate`,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "code-review",
|
|
41
|
+
name: "Code Review Agent",
|
|
42
|
+
description: "Reviews pull requests and code changes with a focus on correctness, maintainability, and adherence to coding standards.",
|
|
43
|
+
category: "code-review",
|
|
44
|
+
tags: ["code", "review", "pull-request", "engineering"],
|
|
45
|
+
data: {
|
|
46
|
+
name: "Code Review Agent",
|
|
47
|
+
description: "Reviews code changes for correctness, maintainability, and style consistency.",
|
|
48
|
+
instructions: `You are a code reviewer. Your role is to review code changes and provide constructive, actionable feedback.
|
|
49
|
+
|
|
50
|
+
## Review Priorities (in order)
|
|
51
|
+
|
|
52
|
+
1. **Correctness** — Does the code do what it claims? Are there edge cases, off-by-one errors, or logic flaws?
|
|
53
|
+
2. **Security** — Are there injection vulnerabilities, auth bypasses, or data leaks?
|
|
54
|
+
3. **Maintainability** — Is the code readable? Would a new team member understand it in under 5 minutes?
|
|
55
|
+
4. **Performance** — Are there obvious performance issues (N+1 queries, unnecessary allocations, blocking calls)?
|
|
56
|
+
5. **Style** — Does it follow the project's conventions?
|
|
57
|
+
|
|
58
|
+
## Feedback Format
|
|
59
|
+
|
|
60
|
+
- Be specific: reference line numbers and variable names.
|
|
61
|
+
- Explain *why* something is a problem, not just *what* to change.
|
|
62
|
+
- Distinguish between blockers (must fix), suggestions (should consider), and nits (optional polish).
|
|
63
|
+
- Acknowledge what the author did well.`,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "data-analysis",
|
|
68
|
+
name: "Data Analysis Agent",
|
|
69
|
+
description: "Analyzes datasets, generates insights, and presents findings with clear explanations and visualizations.",
|
|
70
|
+
category: "data-analysis",
|
|
71
|
+
tags: ["data", "analytics", "insights", "reporting"],
|
|
72
|
+
data: {
|
|
73
|
+
name: "Data Analysis Agent",
|
|
74
|
+
description: "Analyzes data, identifies patterns, and presents actionable insights.",
|
|
75
|
+
instructions: `You are a data analysis agent. Your role is to help users understand their data by identifying patterns, anomalies, and actionable insights.
|
|
76
|
+
|
|
77
|
+
## Guidelines
|
|
78
|
+
|
|
79
|
+
- **Clarity over complexity:** Explain findings in plain language before diving into technical details. Not every user is a data scientist.
|
|
80
|
+
- **Statistical rigor:** When making claims about trends or correlations, state the confidence level and sample size. Distinguish correlation from causation.
|
|
81
|
+
- **Visualization:** When appropriate, suggest or generate charts and tables that make the data story clear. Choose the right chart type for the data relationship being shown.
|
|
82
|
+
- **Assumptions:** State your assumptions explicitly. If the data is incomplete or ambiguous, say so rather than guessing.
|
|
83
|
+
|
|
84
|
+
## Response Structure
|
|
85
|
+
|
|
86
|
+
1. Summary of the key finding (one sentence)
|
|
87
|
+
2. Supporting evidence with specific numbers
|
|
88
|
+
3. Recommended next steps or questions to investigate further`,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: "content-writer",
|
|
93
|
+
name: "Content Writer Agent",
|
|
94
|
+
description: "Writes and edits content with consistent style, tone, and formatting across different content types.",
|
|
95
|
+
category: "content",
|
|
96
|
+
tags: ["writing", "content", "copywriting", "editing"],
|
|
97
|
+
data: {
|
|
98
|
+
name: "Content Writer Agent",
|
|
99
|
+
description: "Creates and edits written content with consistent style and tone.",
|
|
100
|
+
instructions: `You are a content writing agent. Your role is to produce clear, engaging, and well-structured written content.
|
|
101
|
+
|
|
102
|
+
## Writing Principles
|
|
103
|
+
|
|
104
|
+
- **Audience-first:** Adapt vocabulary, depth, and tone to the target audience. Technical docs for developers differ from blog posts for general readers.
|
|
105
|
+
- **Structure:** Use headings, short paragraphs, and bullet points for scannability. Front-load the most important information.
|
|
106
|
+
- **Voice:** Active voice by default. Concise sentences. Avoid filler words and unnecessary qualifiers.
|
|
107
|
+
- **Accuracy:** Do not invent facts, statistics, or quotes. If you are uncertain, say so.
|
|
108
|
+
|
|
109
|
+
## Content Types
|
|
110
|
+
|
|
111
|
+
- Blog posts: informative, engaging, SEO-aware structure
|
|
112
|
+
- Documentation: precise, task-oriented, with code examples where relevant
|
|
113
|
+
- Marketing copy: benefit-focused, clear call-to-action
|
|
114
|
+
- Internal communications: concise, action-oriented
|
|
115
|
+
|
|
116
|
+
## Editing Mode
|
|
117
|
+
|
|
118
|
+
When editing existing content, preserve the author's voice while improving clarity and flow. Explain your changes.`,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: "devops-assistant",
|
|
123
|
+
name: "DevOps Assistant Agent",
|
|
124
|
+
description: "Assists with infrastructure operations, incident response, and deployment workflows.",
|
|
125
|
+
category: "devops",
|
|
126
|
+
tags: ["devops", "infrastructure", "deployment", "incident", "sre"],
|
|
127
|
+
data: {
|
|
128
|
+
name: "DevOps Assistant Agent",
|
|
129
|
+
description: "Assists with infrastructure operations, incident triage, and deployment workflows.",
|
|
130
|
+
instructions: `You are a DevOps assistant agent. Your role is to help engineering teams with infrastructure operations, incident response, and deployment workflows.
|
|
131
|
+
|
|
132
|
+
## Capabilities
|
|
133
|
+
|
|
134
|
+
- **Incident triage:** Analyze alerts, logs, and metrics to identify the likely root cause. Prioritize by blast radius and customer impact.
|
|
135
|
+
- **Runbook execution:** Follow documented runbooks step by step. If a step fails or produces unexpected output, pause and report rather than improvising.
|
|
136
|
+
- **Deployment support:** Guide users through deployment checklists, validate configurations, and monitor rollout health.
|
|
137
|
+
- **Infrastructure queries:** Answer questions about resource configurations, service dependencies, and architecture topology.
|
|
138
|
+
|
|
139
|
+
## Safety Rules
|
|
140
|
+
|
|
141
|
+
- **Never execute destructive operations** (delete, force-push, scale-to-zero) without explicit human confirmation.
|
|
142
|
+
- **Always verify the target environment** (staging vs production) before any operation.
|
|
143
|
+
- **Prefer read-only operations** when gathering information. Only suggest write operations when the user requests a change.
|
|
144
|
+
- **Escalate uncertainty:** If you are not confident in a diagnosis or action, say so and recommend involving a human operator.`,
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
];
|
|
148
|
+
//# sourceMappingURL=agent-templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-templates.js","sourceRoot":"","sources":["../../../src/resource-creation/templates/agent-templates.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAiD;IAC3E;QACE,EAAE,EAAE,kBAAkB;QACtB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EACT,iIAAiI;QACnI,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC;QACpD,IAAI,EAAE;YACJ,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EACT,iFAAiF;YACnF,YAAY,EAAE;;;;;;;;;;;;;;6CAcyB;SACxC;KACF;IACD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EACT,yHAAyH;QAC3H,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,CAAC;QACvD,IAAI,EAAE;YACJ,IAAI,EAAE,mBAAmB;YACzB,WAAW,EACT,+EAA+E;YACjF,YAAY,EAAE;;;;;;;;;;;;;;;wCAeoB;SACnC;KACF;IACD;QACE,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EACT,0GAA0G;QAC5G,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,CAAC;QACpD,IAAI,EAAE;YACJ,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EACT,uEAAuE;YACzE,YAAY,EAAE;;;;;;;;;;;;;8DAa0C;SACzD;KACF;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EACT,sGAAsG;QACxG,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,CAAC;QACtD,IAAI,EAAE;YACJ,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EACT,mEAAmE;YACrE,YAAY,EAAE;;;;;;;;;;;;;;;;;;mHAkB+F;SAC9G;KACF;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EACT,sFAAsF;QACxF,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,CAAC,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,CAAC;QACnE,IAAI,EAAE;YACJ,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EACT,oFAAoF;YACtF,YAAY,EAAE;;;;;;;;;;;;;;gIAc4G;SAC3H;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { ResourceTemplate, TemplateCategory } from "./types";
|
|
2
|
+
export { TEMPLATE_CATEGORY_LABELS } from "./types";
|
|
3
|
+
export { AGENT_TEMPLATES } from "./agent-templates";
|
|
4
|
+
export { MCP_SERVER_TEMPLATES } from "./mcp-server-templates";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resource-creation/templates/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resource-creation/templates/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD,uBAAuB;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { McpServerWizardData } from "../../mcp-server/steps/types";
|
|
2
|
+
import type { ResourceTemplate } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Built-in MCP server templates shipped with the SDK.
|
|
5
|
+
*
|
|
6
|
+
* Each template pre-fills the MCP server creation wizard with a
|
|
7
|
+
* curated transport configuration, environment variable declarations,
|
|
8
|
+
* and descriptive metadata. Users can customize every field after
|
|
9
|
+
* selection.
|
|
10
|
+
*
|
|
11
|
+
* Platform builders can pass their own template arrays to the
|
|
12
|
+
* gallery; these built-in templates are a convenience default.
|
|
13
|
+
*/
|
|
14
|
+
export declare const MCP_SERVER_TEMPLATES: readonly ResourceTemplate<McpServerWizardData>[];
|
|
15
|
+
//# sourceMappingURL=mcp-server-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-server-templates.d.ts","sourceRoot":"","sources":["../../../src/resource-creation/templates/mcp-server-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,gBAAgB,CAAC,mBAAmB,CAAC,EA2F9E,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in MCP server templates shipped with the SDK.
|
|
3
|
+
*
|
|
4
|
+
* Each template pre-fills the MCP server creation wizard with a
|
|
5
|
+
* curated transport configuration, environment variable declarations,
|
|
6
|
+
* and descriptive metadata. Users can customize every field after
|
|
7
|
+
* selection.
|
|
8
|
+
*
|
|
9
|
+
* Platform builders can pass their own template arrays to the
|
|
10
|
+
* gallery; these built-in templates are a convenience default.
|
|
11
|
+
*/
|
|
12
|
+
export const MCP_SERVER_TEMPLATES = [
|
|
13
|
+
{
|
|
14
|
+
id: "github",
|
|
15
|
+
name: "GitHub",
|
|
16
|
+
description: "Connect to the GitHub API for repository management, issue tracking, pull requests, and code search.",
|
|
17
|
+
category: "integration",
|
|
18
|
+
tags: ["github", "git", "repository", "api", "code"],
|
|
19
|
+
data: {
|
|
20
|
+
name: "GitHub",
|
|
21
|
+
description: "GitHub API integration for repository management, issues, pull requests, and code search.",
|
|
22
|
+
transportType: "http",
|
|
23
|
+
httpUrl: "https://api.githubcopilot.com",
|
|
24
|
+
env: [
|
|
25
|
+
{
|
|
26
|
+
key: "GITHUB_TOKEN",
|
|
27
|
+
description: "GitHub personal access token with appropriate scopes.",
|
|
28
|
+
isSecret: true,
|
|
29
|
+
optional: false,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: "slack",
|
|
36
|
+
name: "Slack",
|
|
37
|
+
description: "Connect to the Slack API for sending messages, managing channels, and reading conversation history.",
|
|
38
|
+
category: "integration",
|
|
39
|
+
tags: ["slack", "messaging", "chat", "communication"],
|
|
40
|
+
data: {
|
|
41
|
+
name: "Slack",
|
|
42
|
+
description: "Slack API integration for messaging, channel management, and conversation history.",
|
|
43
|
+
transportType: "http",
|
|
44
|
+
httpUrl: "https://slack.com/api/mcp",
|
|
45
|
+
env: [
|
|
46
|
+
{
|
|
47
|
+
key: "SLACK_BOT_TOKEN",
|
|
48
|
+
description: "Slack Bot User OAuth token (xoxb-...).",
|
|
49
|
+
isSecret: true,
|
|
50
|
+
optional: false,
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "postgresql",
|
|
57
|
+
name: "PostgreSQL",
|
|
58
|
+
description: "Connect to a PostgreSQL database for querying, schema inspection, and data management.",
|
|
59
|
+
category: "integration",
|
|
60
|
+
tags: ["postgres", "postgresql", "database", "sql", "data"],
|
|
61
|
+
data: {
|
|
62
|
+
name: "PostgreSQL",
|
|
63
|
+
description: "PostgreSQL database connection for querying, schema inspection, and data management.",
|
|
64
|
+
transportType: "stdio",
|
|
65
|
+
stdioCommand: "npx",
|
|
66
|
+
stdioArgs: "-y @modelcontextprotocol/server-postgres",
|
|
67
|
+
env: [
|
|
68
|
+
{
|
|
69
|
+
key: "DATABASE_URL",
|
|
70
|
+
description: "PostgreSQL connection string (e.g. postgresql://user:pass@host:5432/db).",
|
|
71
|
+
isSecret: true,
|
|
72
|
+
optional: false,
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: "filesystem",
|
|
79
|
+
name: "Filesystem",
|
|
80
|
+
description: "Provide read and write access to a local directory for file management and content operations.",
|
|
81
|
+
category: "general",
|
|
82
|
+
tags: ["filesystem", "files", "local", "directory"],
|
|
83
|
+
data: {
|
|
84
|
+
name: "Filesystem",
|
|
85
|
+
description: "Local filesystem access for reading, writing, and managing files within a directory.",
|
|
86
|
+
transportType: "stdio",
|
|
87
|
+
stdioCommand: "npx",
|
|
88
|
+
stdioArgs: "-y @modelcontextprotocol/server-filesystem /path/to/directory",
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
//# sourceMappingURL=mcp-server-templates.js.map
|