@solidxai/core-ui 0.1.22-beta.3 → 0.1.22-beta.5
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/dist/adapters/auth/adminEmbedSession.d.ts +16 -0
- package/dist/adapters/auth/adminEmbedSession.d.ts.map +1 -0
- package/dist/adapters/auth/adminEmbedSession.js +72 -0
- package/dist/adapters/auth/adminEmbedSession.js.map +1 -0
- package/dist/adapters/auth/adminEmbedSession.ts +67 -0
- package/dist/adapters/auth/getSession.d.ts.map +1 -1
- package/dist/adapters/auth/getSession.js +4 -1
- package/dist/adapters/auth/getSession.js.map +1 -1
- package/dist/adapters/auth/getSession.ts +4 -1
- package/dist/adapters/auth/storage.d.ts +1 -0
- package/dist/adapters/auth/storage.d.ts.map +1 -1
- package/dist/adapters/auth/storage.js +9 -3
- package/dist/adapters/auth/storage.js.map +1 -1
- package/dist/adapters/auth/storage.ts +10 -2
- package/dist/components/auth/AuthLayout.js +1 -1
- package/dist/components/auth/AuthLayout.js.map +1 -1
- package/dist/components/auth/AuthLayout.tsx +1 -1
- package/dist/components/common/CancelButton.js +1 -1
- package/dist/components/common/CancelButton.js.map +1 -1
- package/dist/components/common/CancelButton.tsx +3 -3
- package/dist/components/common/Link.d.ts.map +1 -1
- package/dist/components/common/Link.js +3 -2
- package/dist/components/common/Link.js.map +1 -1
- package/dist/components/common/Link.tsx +3 -2
- package/dist/components/common/SolidModuleHome.js +1 -1
- package/dist/components/common/SolidModuleHome.js.map +1 -1
- package/dist/components/common/SolidModuleHome.tsx +1 -1
- package/dist/components/core/card/SolidCardView.js.map +1 -1
- package/dist/components/core/card/SolidCardView.tsx +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.js +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.js.map +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.tsx +1 -1
- package/dist/components/core/common/SolidCreateButton.js +1 -1
- package/dist/components/core/common/SolidCreateButton.js.map +1 -1
- package/dist/components/core/common/SolidCreateButton.tsx +4 -4
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.module.css +51 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.d.ts +2 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.js +20 -5
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.tsx +32 -4
- package/dist/components/core/form/SolidFormActionHeader.js +18 -18
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.tsx +28 -28
- package/dist/components/core/form/SolidFormFooter.js +2 -2
- package/dist/components/core/form/SolidFormFooter.js.map +1 -1
- package/dist/components/core/form/SolidFormFooter.tsx +2 -2
- package/dist/components/core/form/SolidFormViewShimmerLoading.js +1 -1
- package/dist/components/core/form/SolidFormViewShimmerLoading.js.map +1 -1
- package/dist/components/core/form/SolidFormViewShimmerLoading.tsx +2 -2
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +17 -15
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +7 -5
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +13 -11
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +8 -6
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js +2 -2
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.tsx +2 -2
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +1 -1
- package/dist/components/core/list/SolidListView.js +1 -1
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +2 -2
- package/dist/components/core/list/SolidListViewConfigure.js +1 -1
- package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.tsx +2 -2
- package/dist/components/core/solid-agent/AgentWorkspaceAgentSelector.d.ts +10 -0
- package/dist/components/core/solid-agent/AgentWorkspaceAgentSelector.d.ts.map +1 -0
- package/dist/components/core/solid-agent/AgentWorkspaceAgentSelector.js +35 -0
- package/dist/components/core/solid-agent/AgentWorkspaceAgentSelector.js.map +1 -0
- package/dist/components/core/solid-agent/AgentWorkspaceAgentSelector.module.css +46 -0
- package/dist/components/core/solid-agent/AgentWorkspaceAgentSelector.tsx +57 -0
- package/dist/components/core/solid-agent/AgentWorkspaceHeaderActions.d.ts +3 -0
- package/dist/components/core/solid-agent/AgentWorkspaceHeaderActions.d.ts.map +1 -0
- package/dist/components/core/solid-agent/AgentWorkspaceHeaderActions.js +9 -0
- package/dist/components/core/solid-agent/AgentWorkspaceHeaderActions.js.map +1 -0
- package/dist/components/core/solid-agent/AgentWorkspaceHeaderActions.tsx +32 -0
- package/dist/components/core/solid-agent/SolidAgent.module.css +25 -0
- package/dist/components/core/solid-agent/SolidAgentChat.d.ts +4 -1
- package/dist/components/core/solid-agent/SolidAgentChat.d.ts.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentChat.js +53 -50
- package/dist/components/core/solid-agent/SolidAgentChat.js.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentChat.tsx +51 -64
- package/dist/components/core/solid-agent/SolidAgentEmbedded.d.ts +4 -0
- package/dist/components/core/solid-agent/SolidAgentEmbedded.d.ts.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentEmbedded.js +1 -1
- package/dist/components/core/solid-agent/SolidAgentEmbedded.js.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentEmbedded.tsx +6 -2
- package/dist/components/core/solid-agent/agentEvents.d.ts +4 -0
- package/dist/components/core/solid-agent/agentEvents.d.ts.map +1 -1
- package/dist/components/core/solid-agent/agentEvents.js +126 -32
- package/dist/components/core/solid-agent/agentEvents.js.map +1 -1
- package/dist/components/core/solid-agent/agentEvents.ts +94 -3
- package/dist/components/core/solid-agent/client/agentAuth.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentAuth.js +27 -11
- package/dist/components/core/solid-agent/client/agentAuth.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentAuth.ts +10 -3
- package/dist/components/core/solid-agent/client/agentRuntime.d.ts +2 -1
- package/dist/components/core/solid-agent/client/agentRuntime.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentRuntime.js +66 -27
- package/dist/components/core/solid-agent/client/agentRuntime.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentRuntime.ts +35 -3
- package/dist/components/core/solid-agent/client/agentSocket.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentSocket.js +6 -0
- package/dist/components/core/solid-agent/client/agentSocket.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentSocket.ts +6 -0
- package/dist/components/core/solid-agent/embed/agentWorkspace.d.ts +16 -0
- package/dist/components/core/solid-agent/embed/agentWorkspace.d.ts.map +1 -0
- package/dist/components/core/solid-agent/embed/agentWorkspace.js +16 -0
- package/dist/components/core/solid-agent/embed/agentWorkspace.js.map +1 -0
- package/dist/components/core/solid-agent/embed/agentWorkspace.ts +29 -0
- package/dist/components/core/solid-agent/humanReview.d.ts +19 -0
- package/dist/components/core/solid-agent/humanReview.d.ts.map +1 -0
- package/dist/components/core/solid-agent/humanReview.js +54 -0
- package/dist/components/core/solid-agent/humanReview.js.map +1 -0
- package/dist/components/core/solid-agent/humanReview.ts +63 -0
- package/dist/components/core/solid-agent/thread/AgentThread.d.ts +2 -1
- package/dist/components/core/solid-agent/thread/AgentThread.d.ts.map +1 -1
- package/dist/components/core/solid-agent/thread/AgentThread.js +17 -68
- package/dist/components/core/solid-agent/thread/AgentThread.js.map +1 -1
- package/dist/components/core/solid-agent/thread/AgentThread.tsx +21 -106
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.d.ts +4 -2
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.d.ts.map +1 -1
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.js +34 -12
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.js.map +1 -1
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.tsx +33 -10
- package/dist/components/core/solid-agent/types.d.ts +6 -0
- package/dist/components/core/solid-agent/types.d.ts.map +1 -1
- package/dist/components/core/solid-agent/types.js.map +1 -1
- package/dist/components/core/solid-agent/types.ts +1 -0
- package/dist/components/core/solid-agent/useAgentChat.d.ts +1 -1
- package/dist/components/core/solid-agent/useAgentChat.d.ts.map +1 -1
- package/dist/components/core/solid-agent/useAgentChat.js +3 -3
- package/dist/components/core/solid-agent/useAgentChat.js.map +1 -1
- package/dist/components/core/solid-agent/useAgentChat.ts +3 -3
- package/dist/components/core/solid-agent/widgets/DefaultAgentChatHeaderWidget.d.ts +3 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentChatHeaderWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentChatHeaderWidget.js +24 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentChatHeaderWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentChatHeaderWidget.tsx +60 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolCallWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolCallWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolCallWidget.js +39 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolCallWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolCallWidget.tsx +96 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolGroupWidget.d.ts +4 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolGroupWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolGroupWidget.js +60 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolGroupWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolGroupWidget.tsx +79 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentTurnCompletionWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentTurnCompletionWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentTurnCompletionWidget.js +18 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentTurnCompletionWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentTurnCompletionWidget.tsx +30 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentTurnCompletionWrapperWidget.d.ts +4 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentTurnCompletionWrapperWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentTurnCompletionWrapperWidget.js +8 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentTurnCompletionWrapperWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentTurnCompletionWrapperWidget.tsx +11 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentUserTurnCompletionWidget.d.ts +8 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentUserTurnCompletionWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentUserTurnCompletionWidget.js +41 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentUserTurnCompletionWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAgentUserTurnCompletionWidget.tsx +99 -0
- package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.js +2 -2
- package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.tsx +2 -2
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.d.ts.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.js +12 -5
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.tsx +31 -7
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.d.ts +1 -1
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.js +1 -1
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.tsx +1 -1
- package/dist/components/core/tree/SolidTreeView.js +1 -1
- package/dist/components/core/tree/SolidTreeView.js.map +1 -1
- package/dist/components/core/tree/SolidTreeView.tsx +2 -2
- package/dist/components/layout/AdminHeaderActions.js +1 -1
- package/dist/components/layout/AdminHeaderActions.js.map +1 -1
- package/dist/components/layout/AdminHeaderActions.tsx +1 -1
- package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
- package/dist/components/layout/user-profile-menu.js +7 -1
- package/dist/components/layout/user-profile-menu.js.map +1 -1
- package/dist/components/layout/user-profile-menu.tsx +21 -3
- package/dist/dummy.d.ts +2 -0
- package/dist/dummy.d.ts.map +1 -0
- package/dist/dummy.js +3 -0
- package/dist/dummy.js.map +1 -0
- package/dist/dummy.ts +2 -0
- package/dist/helpers/modelViewPersistence.d.ts +1 -1
- package/dist/helpers/modelViewPersistence.d.ts.map +1 -1
- package/dist/helpers/modelViewPersistence.js +5 -4
- package/dist/helpers/modelViewPersistence.js.map +1 -1
- package/dist/helpers/modelViewPersistence.ts +6 -4
- package/dist/helpers/registry.d.ts +13 -1
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +77 -25
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +75 -25
- package/dist/hooks/useRouter.d.ts.map +1 -1
- package/dist/hooks/useRouter.js +5 -3
- package/dist/hooks/useRouter.js.map +1 -1
- package/dist/hooks/useRouter.ts +5 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.ts +4 -0
- package/dist/redux/features/agentSlice.d.ts.map +1 -1
- package/dist/redux/features/agentSlice.js +4 -1
- package/dist/redux/features/agentSlice.js.map +1 -1
- package/dist/redux/features/agentSlice.ts +3 -1
- package/dist/resources/solid-custom.css +38 -1
- package/dist/resources/solid-responsive.css +13 -0
- package/dist/resources/solid-tailwind-generated.css +1 -1
- package/dist/routes/AppEventListener.js +1 -1
- package/dist/routes/AppEventListener.js.map +1 -1
- package/dist/routes/AppEventListener.tsx +1 -1
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.js +2 -2
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.tsx +3 -3
- package/dist/routes/pages/admin/core/AgentDeploymentPanel.d.ts +12 -0
- package/dist/routes/pages/admin/core/AgentDeploymentPanel.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/AgentDeploymentPanel.js +18 -0
- package/dist/routes/pages/admin/core/AgentDeploymentPanel.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentDeploymentPanel.tsx +50 -0
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.d.ts +2 -0
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.js +662 -0
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.module.css +163 -0
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.tsx +634 -0
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.css +53 -9
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js +131 -69
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.tsx +133 -29
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js +23 -20
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.tsx +4 -2
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js +25 -23
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.tsx +4 -2
- package/dist/routes/pages/embed/AdminEmbedPage.d.ts +7 -0
- package/dist/routes/pages/embed/AdminEmbedPage.d.ts.map +1 -0
- package/dist/routes/pages/embed/AdminEmbedPage.js +104 -0
- package/dist/routes/pages/embed/AdminEmbedPage.js.map +1 -0
- package/dist/routes/pages/embed/AdminEmbedPage.module.css +9 -0
- package/dist/routes/pages/embed/AdminEmbedPage.tsx +128 -0
- package/dist/routes/pages/embed/AgentEmbedPage.d.ts.map +1 -1
- package/dist/routes/pages/embed/AgentEmbedPage.js +13 -5
- package/dist/routes/pages/embed/AgentEmbedPage.js.map +1 -1
- package/dist/routes/pages/embed/AgentEmbedPage.tsx +10 -2
- package/dist/routes/solidRoutes.d.ts.map +1 -1
- package/dist/routes/solidRoutes.js +4 -0
- package/dist/routes/solidRoutes.js.map +1 -1
- package/dist/routes/solidRoutes.tsx +4 -0
- package/dist/types/extension-registry.d.ts +7 -1
- package/dist/types/extension-registry.d.ts.map +1 -1
- package/dist/types/extension-registry.js +9 -1
- package/dist/types/extension-registry.js.map +1 -1
- package/dist/types/extension-registry.ts +10 -1
- package/dist/types/index.d.ts +6 -0
- package/dist/types/solid-core.d.ts +30 -2
- package/package.json +3 -2
|
@@ -35,6 +35,12 @@
|
|
|
35
35
|
@keyframes agent-editor-version-fields-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
|
|
36
36
|
.agent-editor__section { display:flex; flex-direction:column; gap:.9rem; padding:1rem; border:1px solid var(--surface-border,var(--border)); border-radius:.75rem; }
|
|
37
37
|
.agent-editor__section h2 { margin:0; font-size:1rem; }
|
|
38
|
+
.agent-editor__deployment-help { padding:.9rem 1rem; border:1px solid color-mix(in srgb, #2563eb 22%, var(--surface-border,var(--border))); border-left:3px solid #3b82f6; border-radius:.65rem; background:color-mix(in srgb, #eff6ff 74%, var(--surface-card,var(--card))); color:var(--text-color,var(--foreground)); font-size:.82rem; line-height:1.5; }
|
|
39
|
+
.agent-editor__deployment-help>strong { display:block; margin-bottom:.2rem; color:color-mix(in srgb, #1d4ed8 78%, var(--text-color,var(--foreground))); font-size:.86rem; }
|
|
40
|
+
.agent-editor__deployment-help p { margin:.3rem 0; font-size:inherit; }
|
|
41
|
+
.agent-editor__deployment-help ul { display:grid; gap:.35rem; margin:.55rem 0; padding-left:1.2rem; }
|
|
42
|
+
.agent-editor__deployment-help li { padding-left:.1rem; }
|
|
43
|
+
.agent-editor__deployment-help code { padding:.05rem .25rem; border-radius:.25rem; background:color-mix(in srgb, #dbeafe 60%, var(--surface-card,var(--card))); font-size:.78rem; }
|
|
38
44
|
.agent-editor__linked-count { color:var(--text-color-secondary,var(--muted-foreground)); font-size:.82rem; font-weight:600; }
|
|
39
45
|
.agent-editor__workflow { gap:1.15rem; }
|
|
40
46
|
.agent-editor__workflow-stages { display:flex; align-items:stretch; gap:.55rem; }
|
|
@@ -60,7 +66,7 @@
|
|
|
60
66
|
.agent-editor__workflow-current { position:absolute; top:.55rem; right:.55rem; color:var(--primary-color,var(--primary)); font-size:.67rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
|
|
61
67
|
.agent-editor__workflow-save-hint { color:var(--text-color-secondary,var(--muted-foreground)); font-size:.76rem; }
|
|
62
68
|
.agent-editor__empty { padding:2rem 1rem; border:1px dashed var(--surface-border,var(--border)); border-radius:.65rem; text-align:center; color:var(--text-color-secondary,var(--muted-foreground)); }
|
|
63
|
-
.agent-editor__empty button
|
|
69
|
+
.agent-editor__empty button { display:inline-flex; align-items:center; gap:.35rem; margin-left:.3rem; border:0; background:none; color:var(--primary-color,var(--primary)); cursor:pointer; text-decoration:none; font:inherit; font-weight:600; }
|
|
64
70
|
.agent-editor__inputs { display:flex; flex-direction:column; gap:.55rem; }
|
|
65
71
|
.agent-editor__input-row { display:grid; grid-template-columns:1fr 1.5fr 1fr 8rem 7rem 2.5rem; gap:.5rem; align-items:center; padding:.75rem; border:1px solid var(--surface-border,var(--border)); border-radius:.6rem; }
|
|
66
72
|
.agent-editor__input-optional { display:flex; align-items:center; gap:.35rem; font-size:.8rem; white-space:nowrap; }
|
|
@@ -68,6 +74,7 @@
|
|
|
68
74
|
.agent-editor__input-row>button:hover,.agent-editor__linked-card>button:hover { color:#dc2626; }
|
|
69
75
|
.agent-editor__error { color:#dc2626!important; }
|
|
70
76
|
.agent-editor__hint { color:var(--text-color-secondary,var(--muted-foreground)); }
|
|
77
|
+
.agent-editor__field small.agent-editor__hint { font-weight:400; }
|
|
71
78
|
.agent-editor__models .solid-autocomplete,.agent-editor__models .solid-input { font-weight:400; }
|
|
72
79
|
.agent-editor__models .agent-editor__field>.solid-input { margin-top:.25rem; }
|
|
73
80
|
.agent-editor__test-dialog-overlay { z-index:1200!important; }
|
|
@@ -82,12 +89,42 @@
|
|
|
82
89
|
.agent-editor__persona-preview-toggle:focus-visible { outline:2px solid var(--primary-color,var(--primary)); outline-offset:2px; }
|
|
83
90
|
.agent-editor__persona-preview { box-sizing:border-box; min-height:max(34rem,calc(100dvh - 18rem)); padding:1.25rem; border-top:1px solid var(--surface-border,var(--border)); background:var(--surface-ground,var(--background)); }
|
|
84
91
|
.agent-editor__persona .agent-editor__error { padding:0 1rem; }
|
|
85
|
-
.agent-editor__picker {
|
|
92
|
+
.agent-editor__picker-bar { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem .75rem; }
|
|
93
|
+
.agent-editor__picker-heading { display:flex; flex:1 1 auto; flex-direction:column; gap:.15rem; min-width:0; max-width:100%; }
|
|
94
|
+
.agent-editor__picker-title { display:flex; align-items:baseline; gap:.4rem; white-space:nowrap; }
|
|
95
|
+
.agent-editor__picker-heading p { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
96
|
+
.agent-editor__picker { position:relative; flex:0 1 22rem; min-width:12rem; }
|
|
86
97
|
.agent-editor__picker-results { position:absolute; z-index:20; top:100%; left:0; right:0; max-height:18rem; overflow:auto; margin-top:.2rem; padding:.3rem; border:1px solid var(--surface-border,var(--border)); border-radius:.55rem; background:var(--surface-card,var(--card)); box-shadow:0 8px 24px #0002; }
|
|
87
98
|
.agent-editor__picker-results button { display:flex; flex-direction:column; gap:.1rem; width:100%; padding:.55rem .7rem; border:0; border-radius:.35rem; background:none; color:inherit; text-align:left; cursor:pointer; }
|
|
88
99
|
.agent-editor__picker-results button:hover { background:var(--surface-hover,#f2f3f4); }
|
|
89
100
|
.agent-editor__picker-results span { overflow:hidden; color:var(--text-color-secondary,var(--muted-foreground)); font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }
|
|
90
101
|
.agent-editor__picker-results p { padding:.5rem; }
|
|
102
|
+
.agent-editor__picker-actions { display:flex; flex:0 1 auto; align-items:center; gap:.35rem; min-width:0; }
|
|
103
|
+
.agent-editor__picker-actions .agent-editor__list-search { width:16rem; min-width:0; animation:agent-editor-search-expand .15s ease-out; }
|
|
104
|
+
@keyframes agent-editor-search-expand { from { width:0; opacity:0; } }
|
|
105
|
+
@media(prefers-reduced-motion:reduce) { .agent-editor__picker-actions .agent-editor__list-search { animation:none; } }
|
|
106
|
+
.agent-editor__icon-button { display:grid; width:2.2rem; height:2.2rem; flex:0 0 auto; place-items:center; border:1px solid var(--surface-border,var(--border)); border-radius:.5rem; background:transparent; color:var(--text-color-secondary,var(--muted-foreground)); cursor:pointer; }
|
|
107
|
+
.agent-editor__icon-button:hover { background:var(--surface-hover,#f2f3f4); color:var(--text-color,var(--foreground)); }
|
|
108
|
+
.agent-editor__icon-button[aria-expanded=true] { color:var(--primary-color,var(--primary)); }
|
|
109
|
+
.agent-editor__icon-button:focus-visible { outline:2px solid var(--primary-color,var(--primary)); outline-offset:1px; }
|
|
110
|
+
.agent-editor__add-dialog { display:flex; flex-direction:column; gap:.6rem; }
|
|
111
|
+
.agent-editor__add-options { display:flex; flex-direction:column; height:20rem; max-height:50vh; overflow:auto; padding:0 .25rem .25rem; border:1px solid var(--surface-border,var(--border)); border-radius:.55rem; }
|
|
112
|
+
.agent-editor__add-option { display:flex; flex:0 0 auto; align-items:flex-start; gap:.6rem; padding:.5rem .6rem; border-radius:.35rem; cursor:pointer; }
|
|
113
|
+
.agent-editor__add-option:hover { background:var(--surface-hover,#f2f3f4); }
|
|
114
|
+
.agent-editor__add-option input { width:1rem; height:1rem; flex:0 0 auto; margin:.15rem 0 0; accent-color:var(--primary-color,var(--primary)); }
|
|
115
|
+
.agent-editor__add-option>span { display:flex; flex-direction:column; gap:.1rem; min-width:0; }
|
|
116
|
+
.agent-editor__add-option strong { overflow:hidden; font-size:.875rem; text-overflow:ellipsis; white-space:nowrap; }
|
|
117
|
+
.agent-editor__add-option small { overflow:hidden; color:var(--text-color-secondary,var(--muted-foreground)); font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
|
|
118
|
+
.agent-editor__add-option--all { position:sticky; top:0; z-index:1; border-bottom:1px solid var(--surface-border,var(--border)); border-radius:0; background:var(--surface-card,var(--card)); }
|
|
119
|
+
.agent-editor__add-empty { margin:0; padding:.75rem; color:var(--text-color-secondary,var(--muted-foreground)); font-size:.85rem; text-align:center; }
|
|
120
|
+
.agent-editor__add-create { display:flex; flex:0 0 auto; align-items:center; gap:.45rem; padding:.55rem .6rem; border-radius:.35rem; color:var(--primary-color,var(--primary)); text-decoration:none; }
|
|
121
|
+
.agent-editor__add-create:hover { background:var(--surface-hover,#f2f3f4); }
|
|
122
|
+
.agent-editor__add-create svg { flex:0 0 auto; }
|
|
123
|
+
.agent-editor__add-create strong { flex:1 1 auto; min-width:0; overflow:hidden; font-size:.875rem; text-overflow:ellipsis; white-space:nowrap; }
|
|
124
|
+
.agent-editor__view-toggle { display:inline-flex; flex:0 0 auto; gap:.1rem; padding:.15rem; border:1px solid var(--surface-border,var(--border)); border-radius:.5rem; }
|
|
125
|
+
.agent-editor__view-toggle button { display:grid; width:1.9rem; height:1.9rem; place-items:center; border:0; border-radius:.35rem; background:transparent; color:var(--text-color-secondary,var(--muted-foreground)); cursor:pointer; }
|
|
126
|
+
.agent-editor__view-toggle button:hover { color:var(--text-color,var(--foreground)); }
|
|
127
|
+
.agent-editor__view-toggle button[aria-pressed=true] { background:var(--surface-hover,#f2f3f4); color:var(--primary-color,var(--primary)); }
|
|
91
128
|
.agent-editor__cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(16rem,1fr)); gap:.8rem; }
|
|
92
129
|
.agent-editor__linked-card { position:relative; display:flex; min-width:0; flex-direction:column; border:1px solid var(--surface-border,var(--border)); border-radius:.7rem; overflow:hidden; }
|
|
93
130
|
.agent-editor__card-content { min-width:0; }
|
|
@@ -100,19 +137,26 @@
|
|
|
100
137
|
.agent-editor__resource-menu .agent-editor__resource-delete { color:#dc2626; }
|
|
101
138
|
.agent-editor__resource-preview-body { min-height:0; max-height:72vh; overflow:auto; }
|
|
102
139
|
.agent-editor__resource-preview-body img { max-width:100%; height:auto; }
|
|
103
|
-
.agent-
|
|
104
|
-
.agent-
|
|
140
|
+
.agent-editor__linked-card--compact { flex-direction:row; align-items:center; gap:.25rem; padding-right:.5rem; }
|
|
141
|
+
.agent-editor__linked-card--compact>.agent-editor__card-content { flex:1 1 auto; }
|
|
142
|
+
.agent-editor__linked-card--compact>button { position:static; flex:0 0 auto; width:2rem; min-height:2rem; }
|
|
143
|
+
.agent-editor__list { display:flex; flex-direction:column; gap:.5rem; }
|
|
144
|
+
.agent-editor__list .agent-editor__linked-card { flex-wrap:wrap; }
|
|
145
|
+
.agent-editor__list .agent-editor__card-content { flex:1 1 14rem; }
|
|
146
|
+
.agent-editor__list .agent-editor__link-settings { flex:0 0 auto; padding:.25rem .5rem; border-top:0; background:transparent; }
|
|
147
|
+
.agent-editor__list .agent-editor__link-setting { align-items:center; white-space:nowrap; }
|
|
148
|
+
.agent-editor__list .agent-editor__link-setting input { margin:0; }
|
|
149
|
+
.agent-editor__list .agent-editor__link-setting small { display:none; }
|
|
150
|
+
.agent-editor__secret { display:flex; align-items:center; gap:.25rem; padding:.5rem 0 .5rem .85rem; }
|
|
151
|
+
.agent-editor__secret strong { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
152
|
+
.agent-editor__secret button { display:grid; width:2rem; height:2rem; flex:0 0 auto; place-items:center; border:0; border-radius:.4rem; color:var(--text-color-secondary,var(--muted-foreground)); background:transparent; cursor:pointer; }
|
|
153
|
+
.agent-editor__secret button:hover { color:var(--primary-color,var(--primary)); background:color-mix(in srgb,var(--primary-color,var(--primary)) 8%,transparent); }
|
|
105
154
|
.agent-editor__link-settings { padding:.55rem .75rem .7rem; border-top:1px solid var(--surface-border,var(--border)); background:var(--surface-ground,var(--background)); }
|
|
106
155
|
.agent-editor__link-setting { display:flex; align-items:flex-start; gap:.55rem; cursor:pointer; }
|
|
107
156
|
.agent-editor__link-setting input { width:1rem; height:1rem; flex:0 0 auto; margin:.12rem 0 0; accent-color:var(--primary-color,var(--primary)); }
|
|
108
157
|
.agent-editor__link-setting>span { display:flex; flex-direction:column; gap:.12rem; }
|
|
109
158
|
.agent-editor__link-setting strong { font-size:.76rem; }
|
|
110
159
|
.agent-editor__link-setting small { color:var(--text-color-secondary,var(--muted-foreground)); font-size:.68rem; line-height:1.35; }
|
|
111
|
-
.agent-editor__secret-env { display:flex; align-items:center; gap:.4rem; margin-top:.7rem; padding:.45rem .55rem; border:1px solid var(--surface-border,var(--border)); border-radius:.45rem; background:var(--surface-ground,var(--background)); }
|
|
112
|
-
.agent-editor__secret-env>span { flex:0 0 auto; font-size:.68rem; font-weight:600; }
|
|
113
|
-
.agent-editor__secret-env code { min-width:0; overflow:hidden; color:var(--text-color,var(--foreground)); font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
|
|
114
|
-
.agent-editor__secret-env button { display:grid; width:1.8rem; height:1.8rem; flex:0 0 auto; place-items:center; margin-left:auto; border:0; border-radius:.35rem; color:var(--text-color-secondary,var(--muted-foreground)); background:transparent; cursor:pointer; }
|
|
115
|
-
.agent-editor__secret-env button:hover { color:var(--primary-color,var(--primary)); background:color-mix(in srgb,var(--primary-color,var(--primary)) 8%,transparent); }
|
|
116
160
|
.agent-editor__secret-dialog { display:flex; flex-direction:column; gap:.9rem; padding:.3rem 0; }
|
|
117
161
|
.agent-editor__secret-dialog>p { margin:0; color:var(--text-color-secondary,var(--muted-foreground)); font-size:.86rem; line-height:1.5; }
|
|
118
162
|
.agent-editor__secret-dialog-actions { display:flex; justify-content:flex-end; gap:.5rem; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRegistryEditorPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/AgentRegistryEditorPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentRegistryEditorPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/AgentRegistryEditorPage.tsx"],"names":[],"mappings":"AA4BA,OAAO,+BAA+B,CAAC;AAwZvC,wBAAgB,uBAAuB,4CAwiBtC"}
|
|
@@ -56,7 +56,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
56
56
|
};
|
|
57
57
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
58
58
|
import React from "react";
|
|
59
|
-
import { ArrowLeft, Ellipsis, ExternalLink, Eye, FlaskConical, GitBranch, Pencil, Plus, RefreshCw, Trash2 } from "lucide-react";
|
|
59
|
+
import { ArrowLeft, Ellipsis, ExternalLink, Eye, FlaskConical, GitBranch, LayoutGrid, List, Pencil, Plus, RefreshCw, Search, Trash2 } from "lucide-react";
|
|
60
60
|
import { useDispatch } from "react-redux";
|
|
61
61
|
import { useNavigate, useParams, useSearchParams } from "react-router-dom";
|
|
62
62
|
import { createSolidEntityApi } from "../../../../redux/api/solidEntityApi";
|
|
@@ -67,11 +67,12 @@ import { useSession } from "../../../../hooks/useSession";
|
|
|
67
67
|
import { getSettingsMap } from "../../../../helpers/settingsPayload";
|
|
68
68
|
import { showToast } from "../../../../redux/features/toastSlice";
|
|
69
69
|
import { AgentRegistryAuditPanel } from "./AgentRegistryAuditPanel";
|
|
70
|
+
import { AgentDeploymentPanel } from "./AgentDeploymentPanel";
|
|
70
71
|
import { AgentPersonaHistory } from "./AgentPersonaHistory";
|
|
71
72
|
import { AgentConfigVersionsPanel } from "./AgentConfigVersionsPanel";
|
|
72
73
|
import { AgentHubTagsField, agentHubTagsFrom, agentHubTagsPayload } from "./AgentHubTagsField";
|
|
73
74
|
import { AgentHubModuleField, agentHubModuleFrom, agentHubModulePayload } from "./AgentHubModuleField";
|
|
74
|
-
import { AgentResourceCardWidget } from "../../../../components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget";
|
|
75
|
+
import { AgentResourceCardWidget, AgentResourceRowWidget } from "../../../../components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget";
|
|
75
76
|
import { AgentSessionsPanel } from "../../../../components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel";
|
|
76
77
|
import { AgentProcessesPanel } from "../../../../components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel";
|
|
77
78
|
import { SolidWorkflowStatusPill } from "../../../../components/core/form/SolidDraftPublishWorkflow";
|
|
@@ -179,6 +180,7 @@ function fieldsQuery(fields) {
|
|
|
179
180
|
var detailFields = [
|
|
180
181
|
"id", "name", "title", "description", "iconName", "systemPrompt", "requiredInputs",
|
|
181
182
|
"reasoningModelKey", "fastModelKey", "status", "stepLimit", "turnStepLimit", "costLimit", "configVersion",
|
|
183
|
+
"runner", "minProcesses", "maxProcesses", "processCpu", "processMemory",
|
|
182
184
|
];
|
|
183
185
|
var detailQuery = [
|
|
184
186
|
"agentRoles", "agentRoles.roleMetadata", "agentSecrets", "agentSecrets.secret", "tags", "module",
|
|
@@ -213,15 +215,17 @@ function recordFrom(value) {
|
|
|
213
215
|
}
|
|
214
216
|
function items(value) { return Array.isArray(value) ? value : value ? [value] : []; }
|
|
215
217
|
function agentFormFromRecord(record) {
|
|
216
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
218
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
217
219
|
var skills = items(record.agentSkills);
|
|
218
220
|
var tools = items(record.agentTools);
|
|
219
221
|
var secrets = items(record.agentSecrets);
|
|
220
222
|
return {
|
|
221
223
|
name: (_a = record.name) !== null && _a !== void 0 ? _a : "", title: (_b = record.title) !== null && _b !== void 0 ? _b : "", description: (_c = record.description) !== null && _c !== void 0 ? _c : "", iconName: (_d = record.iconName) !== null && _d !== void 0 ? _d : "",
|
|
222
224
|
inputs: parseInputs(record.requiredInputs), reasoningModelKey: (_e = record.reasoningModelKey) !== null && _e !== void 0 ? _e : "", fastModelKey: (_f = record.fastModelKey) !== null && _f !== void 0 ? _f : "",
|
|
223
|
-
systemPrompt: (_g = record.systemPrompt) !== null && _g !== void 0 ? _g : "",
|
|
224
|
-
|
|
225
|
+
systemPrompt: (_g = record.systemPrompt) !== null && _g !== void 0 ? _g : "", runner: (_h = record.runner) !== null && _h !== void 0 ? _h : null, minProcesses: (_j = record.minProcesses) !== null && _j !== void 0 ? _j : 0,
|
|
226
|
+
maxProcesses: (_k = record.maxProcesses) !== null && _k !== void 0 ? _k : null, processCpu: (_l = record.processCpu) !== null && _l !== void 0 ? _l : null, processMemory: (_m = record.processMemory) !== null && _m !== void 0 ? _m : null,
|
|
227
|
+
stepLimit: (_o = record.stepLimit) !== null && _o !== void 0 ? _o : 100, turnStepLimit: (_p = record.turnStepLimit) !== null && _p !== void 0 ? _p : 20,
|
|
228
|
+
costLimit: Number((_q = record.costLimit) !== null && _q !== void 0 ? _q : 3), tags: agentHubTagsFrom(record.tags), moduleId: (_s = (_r = agentHubModuleFrom(record.module)) === null || _r === void 0 ? void 0 : _r.id) !== null && _s !== void 0 ? _s : null, skillIds: skills.map(function (link) { var _a; return (_a = link.agentSkillRegistry) === null || _a === void 0 ? void 0 : _a.id; }).filter(Boolean),
|
|
225
229
|
toolIds: tools.map(function (link) { var _a; return (_a = link.agentToolRegistry) === null || _a === void 0 ? void 0 : _a.id; }).filter(Boolean),
|
|
226
230
|
roleIds: items(record.agentRoles).map(function (link) { var _a; return (_a = link.roleMetadata) === null || _a === void 0 ? void 0 : _a.id; }).filter(Boolean),
|
|
227
231
|
secretIds: secrets.map(function (link) { var _a; return (_a = link.secret) === null || _a === void 0 ? void 0 : _a.id; }).filter(Boolean),
|
|
@@ -318,23 +322,72 @@ function ResourcePreviewDialog(_a) {
|
|
|
318
322
|
: kind === "skill" ? _jsx(SolidAgentMarkdown, { text: content })
|
|
319
323
|
: _jsx(SolidCodeEditor, { value: content, language: "python", readOnly: true, fontSize: 12, height: "min(65vh, 42rem)" }) }) });
|
|
320
324
|
}
|
|
325
|
+
var itemLabel = function (item) { var _a, _b, _c; return String((_c = (_b = (_a = item.name) !== null && _a !== void 0 ? _a : item.displayName) !== null && _b !== void 0 ? _b : item.key) !== null && _c !== void 0 ? _c : ""); };
|
|
326
|
+
var itemMatches = function (item, query) { var _a; return "".concat(itemLabel(item), " ").concat((_a = item.description) !== null && _a !== void 0 ? _a : "").toLowerCase().includes(query); };
|
|
327
|
+
function AddLinksDialog(_a) {
|
|
328
|
+
var label = _a.label, options = _a.options, selected = _a.selected, createUrl = _a.createUrl, onClose = _a.onClose, onConfirm = _a.onConfirm;
|
|
329
|
+
var _b = React.useState(""), search = _b[0], setSearch = _b[1];
|
|
330
|
+
var _c = React.useState([]), picked = _c[0], setPicked = _c[1];
|
|
331
|
+
var plural = label.toLowerCase();
|
|
332
|
+
var singular = plural.slice(0, -1);
|
|
333
|
+
var typedName = search.trim();
|
|
334
|
+
var query = typedName.toLowerCase();
|
|
335
|
+
var linkedIds = new Set(selected.map(function (item) { return item.id; }));
|
|
336
|
+
var pickedIds = new Set(picked);
|
|
337
|
+
var visible = options.filter(function (item) { return !linkedIds.has(item.id) && itemMatches(item, query); });
|
|
338
|
+
var visiblePicked = visible.filter(function (item) { return pickedIds.has(item.id); }).length;
|
|
339
|
+
var allPicked = visible.length > 0 && visiblePicked === visible.length;
|
|
340
|
+
var canCreate = Boolean(createUrl && query) && !__spreadArray(__spreadArray([], options, true), selected, true).some(function (item) { return itemLabel(item).toLowerCase() === query; });
|
|
341
|
+
var togglePicked = function (id) { return setPicked(function (current) { return current.includes(id) ? current.filter(function (value) { return value !== id; }) : __spreadArray(__spreadArray([], current, true), [id], false); }); };
|
|
342
|
+
var toggleAll = function () {
|
|
343
|
+
var ids = visible.map(function (item) { return item.id; });
|
|
344
|
+
setPicked(function (current) { return allPicked ? current.filter(function (id) { return !ids.includes(id); }) : Array.from(new Set(__spreadArray(__spreadArray([], current, true), ids, true))); });
|
|
345
|
+
};
|
|
346
|
+
return _jsx(SolidDialog, { open: true, onOpenChange: function (next) { if (!next)
|
|
347
|
+
onClose(); }, header: "Add ".concat(plural), style: { width: "min(34rem, 94vw)" }, footer: _jsxs(_Fragment, { children: [_jsx(SolidButton, { type: "button", variant: "secondary", onClick: onClose, children: "Cancel" }), _jsx(SolidButton, { type: "button", disabled: !picked.length, onClick: function () { onConfirm(picked); onClose(); }, children: picked.length ? "Add ".concat(picked.length, " ").concat(picked.length === 1 ? singular : plural) : "Add ".concat(plural) })] }), children: _jsx(SolidDialogBody, { children: _jsxs("div", { className: "agent-editor__add-dialog", children: [_jsx(SolidInput, { autoFocus: true, value: search, placeholder: "Search ".concat(plural, "\u2026"), "aria-label": "Search ".concat(plural), onChange: function (event) { return setSearch(event.target.value); } }), _jsxs("div", { className: "agent-editor__add-options", role: "group", "aria-label": "Available ".concat(plural), children: [visible.length > 0 && _jsxs("label", { className: "agent-editor__add-option agent-editor__add-option--all", children: [_jsx("input", { type: "checkbox", checked: allPicked, ref: function (element) { if (element)
|
|
348
|
+
element.indeterminate = visiblePicked > 0 && !allPicked; }, onChange: toggleAll }), _jsx("span", { children: _jsxs("strong", { children: ["Select all (", visible.length, ")"] }) })] }), visible.map(function (item) { return _jsxs("label", { className: "agent-editor__add-option", children: [_jsx("input", { type: "checkbox", checked: pickedIds.has(item.id), onChange: function () { return togglePicked(item.id); } }), _jsxs("span", { children: [_jsx("strong", { title: itemLabel(item), children: itemLabel(item) }), item.description && _jsx("small", { title: item.description, children: item.description })] })] }, item.id); }), !visible.length && !canCreate && _jsxs("p", { className: "agent-editor__add-empty", children: ["No available ", plural, " found."] }), canCreate && _jsxs("a", { className: "agent-editor__add-create", href: "".concat(createUrl, "?name=").concat(encodeURIComponent(typedName)), target: "_blank", rel: "noopener noreferrer", children: [_jsx(Plus, { size: 16, "aria-hidden": "true" }), _jsxs("strong", { children: ["Create a new ", singular, " \"", typedName, "\""] }), _jsx(ExternalLink, { size: 14, "aria-hidden": "true" })] })] })] }) }) });
|
|
349
|
+
}
|
|
321
350
|
function LinkPicker(_a) {
|
|
322
|
-
var label = _a.label, description = _a.description, options = _a.options, selected = _a.selected, onAdd = _a.onAdd, onRemove = _a.onRemove, createUrl = _a.createUrl, render = _a.render, renderSettings = _a.renderSettings, linkFor = _a.linkFor, onView = _a.onView, editUrlFor = _a.editUrlFor;
|
|
351
|
+
var label = _a.label, description = _a.description, options = _a.options, selected = _a.selected, onAdd = _a.onAdd, onAddMany = _a.onAddMany, onRemove = _a.onRemove, createUrl = _a.createUrl, render = _a.render, renderSettings = _a.renderSettings, linkFor = _a.linkFor, onView = _a.onView, editUrlFor = _a.editUrlFor, compact = _a.compact, view = _a.view, onViewChange = _a.onViewChange, renderRow = _a.renderRow;
|
|
323
352
|
var _b = React.useState(""), search = _b[0], setSearch = _b[1];
|
|
324
353
|
var _c = React.useState(false), open = _c[0], setOpen = _c[1];
|
|
354
|
+
var _d = React.useState(false), searchOpen = _d[0], setSearchOpen = _d[1];
|
|
355
|
+
var _e = React.useState(false), addOpen = _e[0], setAddOpen = _e[1];
|
|
356
|
+
var pickerRef = React.useRef(null);
|
|
325
357
|
var showAssociatedCount = label === "Skills" || label === "Tools";
|
|
326
|
-
var
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
358
|
+
var typedName = search.trim();
|
|
359
|
+
var query = typedName.toLowerCase();
|
|
360
|
+
var available = options.filter(function (item) { return !selected.some(function (selectedItem) { return selectedItem.id === item.id; }) && itemMatches(item, query); }).slice(0, 20);
|
|
361
|
+
var visibleSelected = selected.filter(function (item) { return itemMatches(item, query); });
|
|
362
|
+
var isList = view === "list" && Boolean(renderRow);
|
|
363
|
+
var closeSearch = function () { setSearchOpen(false); setSearch(""); };
|
|
364
|
+
React.useEffect(function () {
|
|
365
|
+
if (!open)
|
|
366
|
+
return;
|
|
367
|
+
var dismiss = function (event) {
|
|
368
|
+
var _a;
|
|
369
|
+
if (!((_a = pickerRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target)))
|
|
370
|
+
setOpen(false);
|
|
371
|
+
};
|
|
372
|
+
document.addEventListener("pointerdown", dismiss);
|
|
373
|
+
document.addEventListener("focusin", dismiss);
|
|
374
|
+
return function () {
|
|
375
|
+
document.removeEventListener("pointerdown", dismiss);
|
|
376
|
+
document.removeEventListener("focusin", dismiss);
|
|
377
|
+
};
|
|
378
|
+
}, [open]);
|
|
379
|
+
return _jsxs("section", { className: "agent-editor__section", children: [_jsxs("div", { className: "agent-editor__picker-bar", children: [_jsxs("div", { className: "agent-editor__picker-heading", children: [_jsxs("div", { className: "agent-editor__picker-title", children: [_jsx("h2", { children: label }), showAssociatedCount && _jsxs("div", { className: "agent-editor__linked-count", role: "status", children: ["(", query ? "".concat(visibleSelected.length, " of ").concat(selected.length) : selected.length, ")"] })] }), _jsx("p", { title: description, children: description })] }), onAddMany ? _jsxs("div", { className: "agent-editor__picker-actions", children: [searchOpen && _jsx(SolidInput, { className: "agent-editor__list-search", autoFocus: true, value: search, placeholder: "Search linked ".concat(label.toLowerCase(), "\u2026"), "aria-label": "Search linked ".concat(label.toLowerCase()), onChange: function (event) { return setSearch(event.target.value); }, onBlur: function () { if (!search.trim())
|
|
380
|
+
closeSearch(); }, onKeyDown: function (event) { if (event.key === "Escape")
|
|
381
|
+
closeSearch(); } }), _jsx("button", { type: "button", className: "agent-editor__icon-button", "aria-label": searchOpen ? "Close search" : "Search linked ".concat(label.toLowerCase()), title: searchOpen ? "Close search" : "Search linked ".concat(label.toLowerCase()), "aria-expanded": searchOpen, onMouseDown: function (event) { return event.preventDefault(); }, onClick: function () { if (searchOpen)
|
|
382
|
+
closeSearch();
|
|
383
|
+
else
|
|
384
|
+
setSearchOpen(true); }, children: _jsx(Search, { size: 16 }) }), _jsx("button", { type: "button", className: "agent-editor__icon-button", "aria-label": "Add ".concat(label.toLowerCase()), title: "Add ".concat(label.toLowerCase()), "aria-haspopup": "dialog", onClick: function () { return setAddOpen(true); }, children: _jsx(Plus, { size: 16 }) })] }) : _jsxs("div", { className: "agent-editor__picker", ref: pickerRef, children: [_jsx(SolidInput, { value: search, placeholder: "Search and add ".concat(label.toLowerCase(), "\u2026"), "aria-label": "Search ".concat(label.toLowerCase()), onFocus: function () { return setOpen(true); }, onClick: function () { return setOpen(true); }, onChange: function (event) { setSearch(event.target.value); setOpen(true); } }), open && _jsx("div", { className: "agent-editor__picker-results", children: available.length ? available.map(function (item) {
|
|
385
|
+
var _a, _b;
|
|
386
|
+
return _jsxs("button", { type: "button", onClick: function () { onAdd === null || onAdd === void 0 ? void 0 : onAdd(item.id); setSearch(""); setOpen(false); }, children: [_jsx("strong", { children: (_b = (_a = item.name) !== null && _a !== void 0 ? _a : item.displayName) !== null && _b !== void 0 ? _b : item.key }), _jsx("span", { children: item.description })] }, item.id);
|
|
387
|
+
}) : _jsxs("p", { children: ["No available ", label.toLowerCase(), " found."] }) })] }), view && onViewChange && renderRow && _jsxs("div", { className: "agent-editor__view-toggle", role: "group", "aria-label": "".concat(label, " view"), children: [_jsx("button", { type: "button", "aria-label": "List view", title: "List view", "aria-pressed": view === "list", onClick: function () { return onViewChange("list"); }, children: _jsx(List, { size: 16 }) }), _jsx("button", { type: "button", "aria-label": "Card view", title: "Card view", "aria-pressed": view === "card", onClick: function () { return onViewChange("card"); }, children: _jsx(LayoutGrid, { size: 16 }) })] })] }), visibleSelected.length ? _jsx("div", { className: isList ? "agent-editor__list" : "agent-editor__cards", children: visibleSelected.map(function (item) {
|
|
335
388
|
var _a, _b, _c, _d;
|
|
336
|
-
return _jsxs("div", { className: "agent-editor__linked-card", children: [_jsx("div", { className: "agent-editor__card-content", children: render(item, linkFor === null || linkFor === void 0 ? void 0 : linkFor(item.id)) }), renderSettings === null || renderSettings === void 0 ? void 0 : renderSettings(item, linkFor === null || linkFor === void 0 ? void 0 : linkFor(item.id)), onView && editUrlFor ? _jsxs(SolidDropdownMenu, { children: [_jsx(SolidDropdownMenuTrigger, { asChild: true, children: _jsx("button", { type: "button", className: "agent-editor__resource-menu-trigger", "aria-label": "Actions for ".concat((_b = (_a = item.name) !== null && _a !== void 0 ? _a : item.displayName) !== null && _b !== void 0 ? _b : item.key), children: _jsx(Ellipsis, { size: 18 }) }) }), _jsxs(SolidDropdownMenuContent, { className: "agent-editor__resource-menu", children: [_jsxs(SolidDropdownMenuItem, { onSelect: function () { return onView(item); }, children: [_jsx(Eye, { size: 16 }), " View"] }), item.type !== "solidx" && _jsx(SolidDropdownMenuItem, { asChild: true, children: _jsxs("a", { href: editUrlFor(item), target: "_blank", rel: "noopener noreferrer", children: [_jsx(Pencil, { size: 16 }), " Edit"] }) }), _jsxs(SolidDropdownMenuItem, { className: "agent-editor__resource-delete", onSelect: function () { return onRemove(item.id); }, children: [_jsx(Trash2, { size: 16 }), " Delete"] })] })] }) : _jsx("button", { type: "button", "aria-label": "Remove ".concat((_d = (_c = item.name) !== null && _c !== void 0 ? _c : item.displayName) !== null && _d !== void 0 ? _d : item.key), onClick: function () { return onRemove(item.id); }, children: _jsx(Trash2, { size: 16 }) })] }, item.id);
|
|
337
|
-
}) }) :
|
|
389
|
+
return _jsxs("div", { className: "agent-editor__linked-card".concat(compact || isList ? " agent-editor__linked-card--compact" : ""), children: [_jsx("div", { className: "agent-editor__card-content", children: isList ? renderRow === null || renderRow === void 0 ? void 0 : renderRow(item) : render(item, linkFor === null || linkFor === void 0 ? void 0 : linkFor(item.id)) }), renderSettings === null || renderSettings === void 0 ? void 0 : renderSettings(item, linkFor === null || linkFor === void 0 ? void 0 : linkFor(item.id)), onView && editUrlFor ? _jsxs(SolidDropdownMenu, { children: [_jsx(SolidDropdownMenuTrigger, { asChild: true, children: _jsx("button", { type: "button", className: "agent-editor__resource-menu-trigger", "aria-label": "Actions for ".concat((_b = (_a = item.name) !== null && _a !== void 0 ? _a : item.displayName) !== null && _b !== void 0 ? _b : item.key), children: _jsx(Ellipsis, { size: 18 }) }) }), _jsxs(SolidDropdownMenuContent, { className: "agent-editor__resource-menu", children: [_jsxs(SolidDropdownMenuItem, { onSelect: function () { return onView(item); }, children: [_jsx(Eye, { size: 16 }), " View"] }), item.type !== "solidx" && _jsx(SolidDropdownMenuItem, { asChild: true, children: _jsxs("a", { href: editUrlFor(item), target: "_blank", rel: "noopener noreferrer", children: [_jsx(Pencil, { size: 16 }), " Edit"] }) }), _jsxs(SolidDropdownMenuItem, { className: "agent-editor__resource-delete", onSelect: function () { return onRemove(item.id); }, children: [_jsx(Trash2, { size: 16 }), " Delete"] })] })] }) : _jsx("button", { type: "button", "aria-label": "Remove ".concat((_d = (_c = item.name) !== null && _c !== void 0 ? _c : item.displayName) !== null && _d !== void 0 ? _d : item.key), onClick: function () { return onRemove(item.id); }, children: _jsx(Trash2, { size: 16 }) })] }, item.id);
|
|
390
|
+
}) }) : _jsx("div", { className: "agent-editor__empty", children: selected.length ? "No linked ".concat(label.toLowerCase(), " match \"").concat(typedName, "\".") : "No ".concat(label.toLowerCase(), " linked yet.") }), addOpen && onAddMany && _jsx(AddLinksDialog, { label: label, options: options, selected: selected, createUrl: createUrl, onClose: function () { return setAddOpen(false); }, onConfirm: onAddMany })] });
|
|
338
391
|
}
|
|
339
392
|
export function AgentRegistryEditorPage() {
|
|
340
393
|
var _this = this;
|
|
@@ -427,29 +480,31 @@ export function AgentRegistryEditorPage() {
|
|
|
427
480
|
var _11 = React.useState(100), stepLimit = _11[0], setStepLimit = _11[1];
|
|
428
481
|
var _12 = React.useState(20), turnStepLimit = _12[0], setTurnStepLimit = _12[1];
|
|
429
482
|
var _13 = React.useState(3), costLimit = _13[0], setCostLimit = _13[1];
|
|
430
|
-
var _14 = React.useState(
|
|
431
|
-
var _15 = React.useState(
|
|
432
|
-
var _16 = React.useState(
|
|
433
|
-
var _17 = React.useState(
|
|
434
|
-
var _18 = React.useState([]),
|
|
435
|
-
var _19 = React.useState([]),
|
|
436
|
-
var _20 = React.useState([]),
|
|
437
|
-
var _21 = React.useState(
|
|
438
|
-
var _22 = React.useState({}),
|
|
439
|
-
var _23 = React.useState({}),
|
|
440
|
-
var _24 = React.useState(
|
|
441
|
-
var _25 = React.useState(""),
|
|
442
|
-
var _26 = React.useState(
|
|
443
|
-
var _27 = React.useState(
|
|
444
|
-
var _28 = React.useState(
|
|
445
|
-
var _29 = React.useState(
|
|
446
|
-
var _30 = React.useState(
|
|
447
|
-
var _31 = React.useState(false),
|
|
448
|
-
var _32 = React.useState(
|
|
449
|
-
var _33 = React.useState(
|
|
450
|
-
var _34 = React.useState(
|
|
451
|
-
var _35 = React.useState(
|
|
452
|
-
var _36 = React.useState(
|
|
483
|
+
var _14 = React.useState({ runner: null, minProcesses: 0, maxProcesses: null, processCpu: null, processMemory: null }), deployment = _14[0], setDeployment = _14[1];
|
|
484
|
+
var _15 = React.useState([]), tags = _15[0], setTags = _15[1];
|
|
485
|
+
var _16 = React.useState(null), module = _16[0], setModule = _16[1];
|
|
486
|
+
var _17 = React.useState(false), creatingTag = _17[0], setCreatingTag = _17[1];
|
|
487
|
+
var _18 = React.useState([]), skillIds = _18[0], setSkillIds = _18[1];
|
|
488
|
+
var _19 = React.useState([]), toolIds = _19[0], setToolIds = _19[1];
|
|
489
|
+
var _20 = React.useState([]), roleIds = _20[0], setRoleIds = _20[1];
|
|
490
|
+
var _21 = React.useState([]), secretIds = _21[0], setSecretIds = _21[1];
|
|
491
|
+
var _22 = React.useState({}), alwaysIncludeValues = _22[0], setAlwaysIncludeValues = _22[1];
|
|
492
|
+
var _23 = React.useState({}), requiresApprovalValues = _23[0], setRequiresApprovalValues = _23[1];
|
|
493
|
+
var _24 = React.useState({}), secretEnvVarNames = _24[0], setSecretEnvVarNames = _24[1];
|
|
494
|
+
var _25 = React.useState("list"), resourceView = _25[0], setResourceView = _25[1];
|
|
495
|
+
var _26 = React.useState(null), pendingSecret = _26[0], setPendingSecret = _26[1];
|
|
496
|
+
var _27 = React.useState(""), secretEnvVarDraft = _27[0], setSecretEnvVarDraft = _27[1];
|
|
497
|
+
var _28 = React.useState(""), secretEnvVarError = _28[0], setSecretEnvVarError = _28[1];
|
|
498
|
+
var _29 = React.useState({}), errors = _29[0], setErrors = _29[1];
|
|
499
|
+
var _30 = React.useState(0), auditVersion = _30[0], setAuditVersion = _30[1];
|
|
500
|
+
var _31 = React.useState(false), confirmRefresh = _31[0], setConfirmRefresh = _31[1];
|
|
501
|
+
var _32 = React.useState(false), activateDialogOpen = _32[0], setActivateDialogOpen = _32[1];
|
|
502
|
+
var _33 = React.useState(false), includeVersionDetails = _33[0], setIncludeVersionDetails = _33[1];
|
|
503
|
+
var _34 = React.useState(""), versionName = _34[0], setVersionName = _34[1];
|
|
504
|
+
var _35 = React.useState(""), versionDescription = _35[0], setVersionDescription = _35[1];
|
|
505
|
+
var _36 = React.useState(false), activating = _36[0], setActivating = _36[1];
|
|
506
|
+
var _37 = React.useState(function () { return id === "new" ? null : savedActivationReadyAt(id); }), activationReadyAt = _37[0], setActivationReadyAt = _37[1];
|
|
507
|
+
var _38 = React.useState(Date.now()), countdownNow = _38[0], setCountdownNow = _38[1];
|
|
453
508
|
var baseline = React.useRef("");
|
|
454
509
|
React.useEffect(function () {
|
|
455
510
|
if (id === "new") {
|
|
@@ -478,10 +533,10 @@ export function AgentRegistryEditorPage() {
|
|
|
478
533
|
}, [activationReadyAt, id]);
|
|
479
534
|
var currentForm = function () {
|
|
480
535
|
var _a;
|
|
481
|
-
return JSON.stringify({ name: name, title: title, description: description, iconName: iconName, inputs: inputs, reasoningModelKey: reasoningModelKey, fastModelKey: fastModelKey, systemPrompt: systemPrompt, stepLimit: Number(stepLimit), turnStepLimit: Number(turnStepLimit), costLimit: Number(costLimit), tags: tags, moduleId: (_a = module === null || module === void 0 ? void 0 : module.id) !== null && _a !== void 0 ? _a : null, skillIds: skillIds, toolIds: toolIds, roleIds: roleIds, secretIds: secretIds, alwaysIncludeValues: alwaysIncludeValues, requiresApprovalValues: requiresApprovalValues, secretEnvVarNames: secretEnvVarNames });
|
|
536
|
+
return JSON.stringify(__assign(__assign({ name: name, title: title, description: description, iconName: iconName, inputs: inputs, reasoningModelKey: reasoningModelKey, fastModelKey: fastModelKey, systemPrompt: systemPrompt }, deployment), { stepLimit: Number(stepLimit), turnStepLimit: Number(turnStepLimit), costLimit: Number(costLimit), tags: tags, moduleId: (_a = module === null || module === void 0 ? void 0 : module.id) !== null && _a !== void 0 ? _a : null, skillIds: skillIds, toolIds: toolIds, roleIds: roleIds, secretIds: secretIds, alwaysIncludeValues: alwaysIncludeValues, requiresApprovalValues: requiresApprovalValues, secretEnvVarNames: secretEnvVarNames }));
|
|
482
537
|
};
|
|
483
538
|
React.useEffect(function () {
|
|
484
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
539
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
485
540
|
if (!record)
|
|
486
541
|
return;
|
|
487
542
|
baseline.current = JSON.stringify(agentFormFromRecord(record));
|
|
@@ -496,6 +551,8 @@ export function AgentRegistryEditorPage() {
|
|
|
496
551
|
setStepLimit((_h = record.stepLimit) !== null && _h !== void 0 ? _h : 100);
|
|
497
552
|
setTurnStepLimit((_j = record.turnStepLimit) !== null && _j !== void 0 ? _j : 20);
|
|
498
553
|
setCostLimit(Number((_k = record.costLimit) !== null && _k !== void 0 ? _k : 3));
|
|
554
|
+
setDeployment({ runner: (_l = record.runner) !== null && _l !== void 0 ? _l : null, minProcesses: (_m = record.minProcesses) !== null && _m !== void 0 ? _m : 0, maxProcesses: (_o = record.maxProcesses) !== null && _o !== void 0 ? _o : null,
|
|
555
|
+
processCpu: (_p = record.processCpu) !== null && _p !== void 0 ? _p : null, processMemory: (_q = record.processMemory) !== null && _q !== void 0 ? _q : null });
|
|
499
556
|
setTags(agentHubTagsFrom(record.tags));
|
|
500
557
|
setModule(agentHubModuleFrom(record.module));
|
|
501
558
|
setSkillIds(items(record.agentSkills).map(function (link) { var _a; return (_a = link.agentSkillRegistry) === null || _a === void 0 ? void 0 : _a.id; }).filter(Boolean));
|
|
@@ -543,7 +600,7 @@ export function AgentRegistryEditorPage() {
|
|
|
543
600
|
try {
|
|
544
601
|
aiConfig = (_b = (typeof configValue === "string" ? JSON.parse(configValue) : configValue)) !== null && _b !== void 0 ? _b : {};
|
|
545
602
|
}
|
|
546
|
-
catch ( /* Invalid configuration has no enabled providers. */
|
|
603
|
+
catch ( /* Invalid configuration has no enabled providers. */_39) { /* Invalid configuration has no enabled providers. */ }
|
|
547
604
|
var modelsCatalog = useModelsDevCatalog().catalog;
|
|
548
605
|
var savedModelKeys = [record === null || record === void 0 ? void 0 : record.reasoningModelKey, record === null || record === void 0 ? void 0 : record.fastModelKey].filter(function (key) { return !!key; });
|
|
549
606
|
var modelOptions = buildModelOptions((_c = aiConfig.providers) !== null && _c !== void 0 ? _c : {}, { Reasoning: (_e = (_d = aiConfig.models) === null || _d === void 0 ? void 0 : _d.default) !== null && _e !== void 0 ? _e : (_f = aiConfig.models) === null || _f === void 0 ? void 0 : _f.main, Fast: (_g = aiConfig.models) === null || _g === void 0 ? void 0 : _g.fast }, modelsCatalog, savedModelKeys);
|
|
@@ -565,6 +622,9 @@ export function AgentRegistryEditorPage() {
|
|
|
565
622
|
var toggle = function (setter, value) {
|
|
566
623
|
return setter(function (current) { return current.includes(value) ? current.filter(function (id) { return id !== value; }) : __spreadArray(__spreadArray([], current, true), [value], false); });
|
|
567
624
|
};
|
|
625
|
+
var addAll = function (setter, values) {
|
|
626
|
+
return setter(function (current) { return Array.from(new Set(__spreadArray(__spreadArray([], current, true), values, true))); });
|
|
627
|
+
};
|
|
568
628
|
var syncLinks = function (agentId, previous, selected, field, create, remove, update, extra) {
|
|
569
629
|
if (extra === void 0) { extra = {}; }
|
|
570
630
|
return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -636,9 +696,9 @@ export function AgentRegistryEditorPage() {
|
|
|
636
696
|
if (versionDetails === void 0) { versionDetails = {}; }
|
|
637
697
|
return __awaiter(_this, void 0, void 0, function () {
|
|
638
698
|
var next, normalizedInputs, payload, newlyCreatedId, scalarSaved, activationAttempted, result, _a, savedId, readyAt, error_1;
|
|
639
|
-
var _b, _c, _d;
|
|
640
|
-
return __generator(this, function (
|
|
641
|
-
switch (
|
|
699
|
+
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
700
|
+
return __generator(this, function (_k) {
|
|
701
|
+
switch (_k.label) {
|
|
642
702
|
case 0:
|
|
643
703
|
if (nextStatus === "active" && activationReadyAt && Date.now() < activationReadyAt)
|
|
644
704
|
return [2 /*return*/, false];
|
|
@@ -663,6 +723,8 @@ export function AgentRegistryEditorPage() {
|
|
|
663
723
|
next.inputs = "Input names must be unique.";
|
|
664
724
|
if (stepLimit < 1 || turnStepLimit < 1 || costLimit < 0)
|
|
665
725
|
next.limits = "Step limits must be positive and cost limit cannot be negative.";
|
|
726
|
+
if (deployment.minProcesses != null && deployment.maxProcesses != null && deployment.minProcesses > deployment.maxProcesses)
|
|
727
|
+
next.deployment = "Minimum processes cannot exceed maximum processes.";
|
|
666
728
|
setErrors(next);
|
|
667
729
|
if (Object.keys(next).length) {
|
|
668
730
|
setTab(next.systemPrompt ? "persona" : next.limits && isAdmin ? "policies" : "basics");
|
|
@@ -678,47 +740,47 @@ export function AgentRegistryEditorPage() {
|
|
|
678
740
|
setTab("basics");
|
|
679
741
|
return [2 /*return*/, false];
|
|
680
742
|
}
|
|
681
|
-
payload = __assign(__assign(__assign({ name: name.trim(), title: title.trim(), description: description.trim(), iconName: iconName, requiredInputs: JSON.stringify(normalizedInputs), reasoningModelKey: reasoningModelKey, fastModelKey: fastModelKey, systemPrompt: systemPrompt, stepLimit: Number(stepLimit), turnStepLimit: Number(turnStepLimit), costLimit: Number(costLimit) }, agentHubTagsPayload(tags)), agentHubModulePayload(module)), { status: nextStatus === "active" ? (
|
|
743
|
+
payload = __assign(__assign(__assign({ name: name.trim(), title: title.trim(), description: description.trim(), iconName: iconName, requiredInputs: JSON.stringify(normalizedInputs), reasoningModelKey: reasoningModelKey, fastModelKey: fastModelKey, systemPrompt: systemPrompt, stepLimit: Number(stepLimit), turnStepLimit: Number(turnStepLimit), costLimit: Number(costLimit), runner: (_b = deployment.runner) !== null && _b !== void 0 ? _b : null, minProcesses: Number((_c = deployment.minProcesses) !== null && _c !== void 0 ? _c : 0), maxProcesses: (_d = deployment.maxProcesses) !== null && _d !== void 0 ? _d : null, processCpu: (_e = deployment.processCpu) !== null && _e !== void 0 ? _e : null, processMemory: (_f = deployment.processMemory) !== null && _f !== void 0 ? _f : null }, agentHubTagsPayload(tags)), agentHubModulePayload(module)), { status: nextStatus === "active" ? (_g = record === null || record === void 0 ? void 0 : record.status) !== null && _g !== void 0 ? _g : "draft" : nextStatus !== null && nextStatus !== void 0 ? nextStatus : "draft" });
|
|
682
744
|
scalarSaved = false;
|
|
683
745
|
activationAttempted = false;
|
|
684
|
-
|
|
746
|
+
_k.label = 1;
|
|
685
747
|
case 1:
|
|
686
|
-
|
|
748
|
+
_k.trys.push([1, 12, , 13]);
|
|
687
749
|
if (!(record === null || record === void 0 ? void 0 : record.id)) return [3 /*break*/, 3];
|
|
688
750
|
return [4 /*yield*/, updateAgent({ id: record.id, data: payload }).unwrap()];
|
|
689
751
|
case 2:
|
|
690
|
-
_a =
|
|
752
|
+
_a = _k.sent();
|
|
691
753
|
return [3 /*break*/, 5];
|
|
692
754
|
case 3: return [4 /*yield*/, createAgent(payload).unwrap()];
|
|
693
755
|
case 4:
|
|
694
|
-
_a =
|
|
695
|
-
|
|
756
|
+
_a = _k.sent();
|
|
757
|
+
_k.label = 5;
|
|
696
758
|
case 5:
|
|
697
759
|
result = _a;
|
|
698
760
|
scalarSaved = true;
|
|
699
|
-
savedId = Number((
|
|
761
|
+
savedId = Number((_h = record === null || record === void 0 ? void 0 : record.id) !== null && _h !== void 0 ? _h : (_j = recordFrom(result)) === null || _j === void 0 ? void 0 : _j.id);
|
|
700
762
|
if (!savedId)
|
|
701
763
|
throw new Error("Agent saved, but its ID was not returned.");
|
|
702
764
|
if (!(record === null || record === void 0 ? void 0 : record.id))
|
|
703
765
|
newlyCreatedId = savedId;
|
|
704
766
|
return [4 /*yield*/, syncLinks(savedId, record === null || record === void 0 ? void 0 : record.agentSkills, skillIds, "agentSkillRegistry", createSkillLink, deleteSkillLink, updateSkillLink, function (targetId) { var _a; return ({ alwaysInclude: (_a = alwaysIncludeValues[targetId]) !== null && _a !== void 0 ? _a : true }); })];
|
|
705
767
|
case 6:
|
|
706
|
-
|
|
768
|
+
_k.sent();
|
|
707
769
|
return [4 /*yield*/, syncLinks(savedId, record === null || record === void 0 ? void 0 : record.agentTools, toolIds, "agentToolRegistry", createToolLink, deleteToolLink, updateToolLink, function (targetId) { var _a; return ({ requiresApproval: (_a = requiresApprovalValues[targetId]) !== null && _a !== void 0 ? _a : false }); })];
|
|
708
770
|
case 7:
|
|
709
|
-
|
|
771
|
+
_k.sent();
|
|
710
772
|
return [4 /*yield*/, syncLinks(savedId, record === null || record === void 0 ? void 0 : record.agentRoles, roleIds, "roleMetadata", createRoleLink, deleteRoleLink, undefined)];
|
|
711
773
|
case 8:
|
|
712
|
-
|
|
774
|
+
_k.sent();
|
|
713
775
|
return [4 /*yield*/, syncLinks(savedId, record === null || record === void 0 ? void 0 : record.agentSecrets, secretIds, "secret", createSecretLink, deleteSecretLink, updateSecretLink, function (targetId) { var _a; return ({ envVarName: (_a = secretEnvVarNames[targetId]) !== null && _a !== void 0 ? _a : "" }); })];
|
|
714
776
|
case 9:
|
|
715
|
-
|
|
777
|
+
_k.sent();
|
|
716
778
|
if (!(nextStatus === "active")) return [3 /*break*/, 11];
|
|
717
779
|
activationAttempted = true;
|
|
718
780
|
return [4 /*yield*/, solidPost("/agent-registry/".concat(savedId, "/activate"), versionDetails)];
|
|
719
781
|
case 10:
|
|
720
|
-
|
|
721
|
-
|
|
782
|
+
_k.sent();
|
|
783
|
+
_k.label = 11;
|
|
722
784
|
case 11:
|
|
723
785
|
if (!nextStatus || nextStatus === "draft") {
|
|
724
786
|
readyAt = Date.now() + ACTIVATION_WAIT_MS;
|
|
@@ -738,7 +800,7 @@ export function AgentRegistryEditorPage() {
|
|
|
738
800
|
navigate("/admin/core/solid-core/agent-registry/editor/".concat(savedId), { replace: true });
|
|
739
801
|
return [2 /*return*/, true];
|
|
740
802
|
case 12:
|
|
741
|
-
error_1 =
|
|
803
|
+
error_1 = _k.sent();
|
|
742
804
|
dispatch(showToast({ severity: "error", summary: activationAttempted ? "Agent saved; activation failed" : scalarSaved ? "Agent saved; links incomplete" : "Save failed", detail: apiError(error_1) }));
|
|
743
805
|
if (record === null || record === void 0 ? void 0 : record.id)
|
|
744
806
|
refetch();
|
|
@@ -801,7 +863,7 @@ export function AgentRegistryEditorPage() {
|
|
|
801
863
|
setSecretEnvVarError("");
|
|
802
864
|
};
|
|
803
865
|
var linkSetting = function (label, checked, onChange, hint) {
|
|
804
|
-
return _jsxs("label", { className: "agent-editor__link-setting", children: [_jsx("input", { type: "checkbox", checked: checked, onChange: function (event) { return onChange(event.target.checked); } }), _jsxs("span", { children: [_jsx("strong", { children: label }), _jsx("small", { children: hint })] })] });
|
|
866
|
+
return _jsxs("label", { className: "agent-editor__link-setting", title: hint, children: [_jsx("input", { type: "checkbox", checked: checked, onChange: function (event) { return onChange(event.target.checked); } }), _jsxs("span", { children: [_jsx("strong", { children: label }), _jsx("small", { children: hint })] })] });
|
|
805
867
|
};
|
|
806
868
|
var agentStatus = (_j = record === null || record === void 0 ? void 0 : record.status) !== null && _j !== void 0 ? _j : "draft";
|
|
807
869
|
var activationRemainingMs = Math.max(0, (activationReadyAt !== null && activationReadyAt !== void 0 ? activationReadyAt : 0) - countdownNow);
|
|
@@ -831,17 +893,17 @@ export function AgentRegistryEditorPage() {
|
|
|
831
893
|
else
|
|
832
894
|
void save(value);
|
|
833
895
|
}, children: [value === "active" && activationWaiting ? _jsxs("span", { className: "agent-editor__activation-countdown", "aria-label": "Active available in ".concat(activationRemainingSeconds, " seconds"), children: [_jsxs("svg", { viewBox: "0 0 36 36", "aria-hidden": "true", children: [_jsx("circle", { className: "agent-editor__activation-countdown-track", cx: "18", cy: "18", r: "15" }), _jsx("circle", { className: "agent-editor__activation-countdown-progress", cx: "18", cy: "18", r: "15", pathLength: "100", strokeDasharray: "100", strokeDashoffset: 100 - activationRemainingMs / ACTIVATION_WAIT_MS * 100 })] }), _jsx("span", { children: activationRemainingSeconds })] }) : _jsx("span", { className: "agent-editor__workflow-stage-mark", children: index + 1 }), _jsxs("div", { className: "agent-editor__workflow-stage-copy", children: [_jsx("strong", { children: label }), _jsx("small", { children: description }), _jsx("small", { className: "agent-editor__workflow-stage-cta", children: agentStatus === value ? "Current stage" : value === "active" && activationWaiting ? "Available in ".concat(activationRemainingSeconds, "s") : "Click to move to this stage" })] }), agentStatus === value && _jsx("span", { className: "agent-editor__workflow-current", children: "Current" })] })] }, value);
|
|
834
|
-
}) }), _jsx("small", { className: "agent-editor__workflow-save-hint", children: "Changing stage saves the current form and its linked skills, tools, roles, and secrets." })] })] }) },
|
|
896
|
+
}) }), _jsx("small", { className: "agent-editor__workflow-save-hint", children: "Changing stage saves the current form and its linked skills, tools, roles, and secrets." })] }), _jsx(AgentDeploymentPanel, { value: deployment, onChange: setDeployment })] }) },
|
|
835
897
|
{ value: "persona", label: "System Prompt", content: _jsxs("section", { className: "agent-editor__section agent-editor__persona", children: [_jsxs("div", { className: "agent-editor__section-head", children: [_jsxs("div", { children: [_jsx("h2", { children: "System prompt *" }), _jsx("p", { children: "Describe the agent's role, behavior, and instructions in Markdown." })] }), _jsxs("div", { className: "agent-editor__persona-actions", children: [_jsx("button", { type: "button", className: "agent-editor__persona-preview-toggle", "aria-pressed": previewSystemPrompt, "aria-label": previewSystemPrompt ? "Edit system prompt" : "Preview system prompt", title: previewSystemPrompt ? "Edit system prompt" : "Preview system prompt", onClick: function () { return setPreviewSystemPrompt(function (current) { return !current; }); }, children: previewSystemPrompt ? _jsx(Pencil, { size: 15, "aria-hidden": "true" }) : _jsx(Eye, { size: 15, "aria-hidden": "true" }) }), (record === null || record === void 0 ? void 0 : record.id) && _jsx(AgentPersonaHistory, { agentId: record.id, savedPrompt: (_k = record.systemPrompt) !== null && _k !== void 0 ? _k : "", refreshVersion: auditVersion })] })] }), previewSystemPrompt ? _jsx("div", { className: "agent-editor__persona-preview", role: "region", "aria-label": "System prompt preview", children: systemPrompt.trim() ? _jsx(SolidAgentMarkdown, { text: systemPrompt }) : _jsx("p", { className: "agent-editor__hint", children: "Nothing to preview yet." }) })
|
|
836
898
|
: _jsx(SolidCodeEditor, { value: systemPrompt, onChange: function (value) { setSystemPrompt(value !== null && value !== void 0 ? value : ""); setErrors(function (current) { return (__assign(__assign({}, current), { systemPrompt: "" })); }); }, language: "markdown", wordWrap: "on", fontSize: 11, height: "max(34rem, calc(100dvh - 18rem))" }), errors.systemPrompt && _jsx("small", { className: "agent-editor__error", children: errors.systemPrompt })] }) },
|
|
837
|
-
{ value: "skills", label: "Skills", content: _jsx(LinkPicker, { label: "Skills", description: "Skills available to this agent.", options: skills.records, selected: linked(skillIds, skills.records, items(record === null || record === void 0 ? void 0 : record.agentSkills).map(function (link) { return link.agentSkillRegistry; }).filter(Boolean)),
|
|
899
|
+
{ value: "skills", label: "Skills", content: _jsx(LinkPicker, { label: "Skills", description: "Skills available to this agent.", options: skills.records, selected: linked(skillIds, skills.records, items(record === null || record === void 0 ? void 0 : record.agentSkills).map(function (link) { return link.agentSkillRegistry; }).filter(Boolean)), onAddMany: function (ids) { return addAll(setSkillIds, ids); }, onRemove: function (id) { return toggle(setSkillIds, id); }, createUrl: "/admin/core/solid-core/agent-skill-registry/editor/new", onView: function (item) { return setPreview({ item: item, kind: "skill" }); }, editUrlFor: function (item) { return "/admin/core/solid-core/agent-skill-registry/editor/".concat(item.id); }, linkFor: function (id) { return linkForTarget(record === null || record === void 0 ? void 0 : record.agentSkills, "agentSkillRegistry", id); }, view: resourceView, onViewChange: setResourceView, renderRow: function (item) { return _jsx(AgentResourceRowWidget, { rowData: item }); }, render: function (item) { return _jsx(AgentResourceCardWidget, __assign({}, { rowData: item })); }, renderSettings: function (item) {
|
|
838
900
|
var _a;
|
|
839
901
|
return _jsx("div", { className: "agent-editor__link-settings", children: linkSetting("Always include", (_a = alwaysIncludeValues[item.id]) !== null && _a !== void 0 ? _a : true, function (checked) { return setAlwaysIncludeValues(function (current) {
|
|
840
902
|
var _a;
|
|
841
903
|
return (__assign(__assign({}, current), (_a = {}, _a[item.id] = checked, _a)));
|
|
842
904
|
}); }, "Add the full skill to the agent prompt. Turn off to load it on demand.") });
|
|
843
905
|
} }) },
|
|
844
|
-
{ value: "tools", label: "Tools", content: _jsx(LinkPicker, { label: "Tools", description: "Tools available to this agent.", options: tools.records, selected: linked(toolIds, tools.records, items(record === null || record === void 0 ? void 0 : record.agentTools).map(function (link) { return link.agentToolRegistry; }).filter(Boolean)),
|
|
906
|
+
{ value: "tools", label: "Tools", content: _jsx(LinkPicker, { label: "Tools", description: "Tools available to this agent.", options: tools.records, selected: linked(toolIds, tools.records, items(record === null || record === void 0 ? void 0 : record.agentTools).map(function (link) { return link.agentToolRegistry; }).filter(Boolean)), onAddMany: function (ids) { return addAll(setToolIds, ids); }, onRemove: function (id) { return toggle(setToolIds, id); }, createUrl: "/admin/core/solid-core/agent-tool-registry/editor/new", onView: function (item) { return setPreview({ item: item, kind: "tool" }); }, editUrlFor: function (item) { return "/admin/core/solid-core/agent-tool-registry/editor/".concat(item.id); }, linkFor: function (id) { return linkForTarget(record === null || record === void 0 ? void 0 : record.agentTools, "agentToolRegistry", id); }, view: resourceView, onViewChange: setResourceView, renderRow: function (item) { return _jsx(AgentResourceRowWidget, { rowData: item }); }, render: function (item) { return _jsx(AgentResourceCardWidget, __assign({}, { rowData: item })); }, renderSettings: function (item) {
|
|
845
907
|
var _a;
|
|
846
908
|
return _jsx("div", { className: "agent-editor__link-settings", children: linkSetting("Require approval", (_a = requiresApprovalValues[item.id]) !== null && _a !== void 0 ? _a : false, function (checked) { return setRequiresApprovalValues(function (current) {
|
|
847
909
|
var _a;
|
|
@@ -853,12 +915,12 @@ export function AgentRegistryEditorPage() {
|
|
|
853
915
|
return _jsxs("fieldset", { className: "agent-editor__role-group", children: [_jsx("legend", { children: groupName }), (groupRoles !== null && groupRoles !== void 0 ? groupRoles : []).map(function (role) { return _jsxs("label", { children: [_jsx("input", { type: "checkbox", checked: roleIds.includes(role.id), onChange: function () { return toggle(setRoleIds, role.id); } }), " ", role.name] }, role.id); })] }, groupName);
|
|
854
916
|
}), !roles.records.length && _jsx("div", { className: "agent-editor__empty", children: "No roles available." })] }), _jsxs("section", { className: "agent-editor__section", children: [_jsx("h2", { children: "Execution limits" }), _jsx("div", { className: "agent-editor__grid", children: [["Step limit", stepLimit, setStepLimit], ["Turn step limit", turnStepLimit, setTurnStepLimit], ["Cost limit", costLimit, setCostLimit]].map(function (_a) {
|
|
855
917
|
var label = _a[0], value = _a[1], setter = _a[2];
|
|
856
|
-
return _jsxs("label", { className: "agent-editor__field", children: [_jsx("span", { children: label }), _jsx("input", { type: "number", min: label === "Cost limit" ? 0 : 1, step: label === "Cost limit" ? 0.01 : 1, value: value, onChange: function (event) { return setter(Number(event.target.value)); } })] }, label);
|
|
918
|
+
return _jsxs("label", { className: "agent-editor__field", children: [_jsx("span", { children: label }), _jsx("input", { type: "number", min: label === "Cost limit" ? 0 : 1, step: label === "Cost limit" ? 0.01 : 1, value: value, onChange: function (event) { return setter(Number(event.target.value)); } }), label === "Cost limit" && _jsx("small", { className: "agent-editor__hint", children: "Cost is an estimate and is not guaranteed to be correct." })] }, label);
|
|
857
919
|
}) }), errors.limits && _jsx("small", { className: "agent-editor__error", children: errors.limits })] })] }) },
|
|
858
920
|
{ value: "secrets", label: "Secrets", content: _jsx(LinkPicker, { label: "Secrets", description: "Grant access to existing secrets. Secret values are never shown here.", options: secrets.records, selected: linked(secretIds, secrets.records, items(record === null || record === void 0 ? void 0 : record.agentSecrets).map(function (link) { return link.secret; }).filter(Boolean)), onAdd: function (id) { var secret = secrets.records.find(function (item) { return item.id === id; }); if (secret)
|
|
859
|
-
beginSecretEnvVarEdit(secret); }, onRemove: function (id) { return toggle(setSecretIds, id); },
|
|
860
|
-
var _a, _b, _c, _d, _e
|
|
861
|
-
return _jsxs("div", { className: "agent-editor__secret", children: [_jsx("strong", {
|
|
921
|
+
beginSecretEnvVarEdit(secret); }, onRemove: function (id) { return toggle(setSecretIds, id); }, compact: true, render: function (item) {
|
|
922
|
+
var _a, _b, _c, _d, _e;
|
|
923
|
+
return _jsxs("div", { className: "agent-editor__secret", children: [_jsx("strong", { title: (_b = (_a = item.displayName) !== null && _a !== void 0 ? _a : item.name) !== null && _b !== void 0 ? _b : item.key, children: (_d = (_c = item.displayName) !== null && _c !== void 0 ? _c : item.name) !== null && _d !== void 0 ? _d : item.key }), _jsx("button", { type: "button", "aria-label": "Edit environment variable name for ".concat((_e = item.displayName) !== null && _e !== void 0 ? _e : item.key), onClick: function () { return beginSecretEnvVarEdit(item); }, children: _jsx(Pencil, { size: 16 }) })] });
|
|
862
924
|
} }) }
|
|
863
925
|
], ((record === null || record === void 0 ? void 0 : record.id) ? [{ value: "processes", label: "Processes", content: _jsx(AgentProcessesPanel, { agentId: record.id, agentLabel: (_l = record.name) !== null && _l !== void 0 ? _l : record.title }) }] : []), true), ((record === null || record === void 0 ? void 0 : record.id) ? [
|
|
864
926
|
["jobs", "Jobs", (_m = jobs.currentData) === null || _m === void 0 ? void 0 : _m.records],
|
|
@@ -890,7 +952,7 @@ export function AgentRegistryEditorPage() {
|
|
|
890
952
|
return [2 /*return*/];
|
|
891
953
|
}
|
|
892
954
|
});
|
|
893
|
-
}); }, children: "Create version and activate" })] }), children: _jsx(SolidDialogBody, { children: _jsxs("div", { className: "agent-editor__activation-dialog", children: [_jsxs("div", { className: "agent-editor__activation-intro", children: [_jsx("span", { className: "agent-editor__activation-icon", children: _jsx(GitBranch, { size: 18 }) }), _jsxs("div", { children: [_jsx("strong", { children: "A new config version will be created" }), _jsx("p", { children: "Activating saves this agent as the next version and makes it available to users." })] })] }), _jsxs("label", { className: "agent-editor__version-details-toggle".concat(includeVersionDetails ? " is-selected" : ""), children: [_jsx("input", { type: "checkbox", checked: includeVersionDetails, onChange: function (event) { return setIncludeVersionDetails(event.target.checked); } }), _jsxs("span", { className: "agent-editor__version-details-copy", children: [_jsx("strong", { children: "Add a name and description" }), _jsx("small", { children: "Optional details help identify this version later." })] })] }), includeVersionDetails && _jsxs("div", { className: "agent-editor__version-details-fields", children: [_jsxs("label", { className: "agent-editor__field", children: [_jsxs("span", { children: ["Version name ", _jsx("small", { children: "Optional" })] }), _jsx(SolidInput, { autoFocus: true, placeholder: "e.g. Updated support workflow", value: versionName, onChange: function (event) { return setVersionName(event.target.value); } })] }), _jsxs("label", { className: "agent-editor__field", children: [_jsxs("span", { children: ["Description ", _jsx("small", { children: "Optional" })] }), _jsx("textarea", { placeholder: "What changed in this version?", value: versionDescription, rows: 3, onChange: function (event) { return setVersionDescription(event.target.value); } })] })] })] }) }) }), isLoading ? _jsx("div", { className: "agent-editor__empty", children: "Loading agent\u2026" }) : isError || (id !== "new" && !(record === null || record === void 0 ? void 0 : record.id)) ?
|
|
955
|
+
}); }, children: "Create version and activate" })] }), children: _jsx(SolidDialogBody, { children: _jsxs("div", { className: "agent-editor__activation-dialog", children: [_jsxs("div", { className: "agent-editor__activation-intro", children: [_jsx("span", { className: "agent-editor__activation-icon", children: _jsx(GitBranch, { size: 18 }) }), _jsxs("div", { children: [_jsx("strong", { children: "A new config version will be created" }), _jsx("p", { children: "Activating saves this agent as the next version and makes it available to users." })] })] }), _jsxs("label", { className: "agent-editor__version-details-toggle".concat(includeVersionDetails ? " is-selected" : ""), children: [_jsx("input", { type: "checkbox", checked: includeVersionDetails, onChange: function (event) { return setIncludeVersionDetails(event.target.checked); } }), _jsxs("span", { className: "agent-editor__version-details-copy", children: [_jsx("strong", { children: "Add a name and description" }), _jsx("small", { children: "Optional details help identify this version later." })] })] }), includeVersionDetails && _jsxs("div", { className: "agent-editor__version-details-fields", children: [_jsxs("label", { className: "agent-editor__field", children: [_jsxs("span", { children: ["Version name ", _jsx("small", { children: "Optional" })] }), _jsx(SolidInput, { autoFocus: true, placeholder: "e.g. Updated support workflow", value: versionName, onChange: function (event) { return setVersionName(event.target.value); } }), _jsx("small", { className: "agent-editor__hint", children: "A _yyyymmdd_hhmm date and time suffix is always added to the name." })] }), _jsxs("label", { className: "agent-editor__field", children: [_jsxs("span", { children: ["Description ", _jsx("small", { children: "Optional" })] }), _jsx("textarea", { placeholder: "What changed in this version?", value: versionDescription, rows: 3, onChange: function (event) { return setVersionDescription(event.target.value); } })] })] })] }) }) }), isLoading ? _jsx("div", { className: "agent-editor__empty", children: "Loading agent\u2026" }) : isError || (id !== "new" && !(record === null || record === void 0 ? void 0 : record.id)) ?
|
|
894
956
|
_jsx("div", { className: "agent-editor__empty", children: "This agent could not be loaded." }) : (record === null || record === void 0 ? void 0 : record.id) ?
|
|
895
957
|
_jsx(AgentRegistryAuditPanel, { modelSingularName: "agentRegistry", recordId: record.id, refreshVersion: auditVersion, modelUserKey: record.name, children: content }) : content, _jsx(SolidDialog, { open: Boolean(pendingSecret), onOpenChange: function (open) { if (!open) {
|
|
896
958
|
setPendingSecret(null);
|