@solidxai/core-ui 0.1.22-beta.2 → 0.1.22-beta.4
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/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/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/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/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.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +27 -24
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +15 -8
- 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/module/ModulePackageDialog.d.ts.map +1 -1
- package/dist/components/core/module/ModulePackageDialog.js +28 -22
- package/dist/components/core/module/ModulePackageDialog.js.map +1 -1
- package/dist/components/core/module/ModulePackageDialog.tsx +24 -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 +10 -4
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.tsx +28 -5
- 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/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/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/globals.css +10 -1
- package/dist/resources/solid-custom.css +24 -0
- package/dist/resources/solid-responsive.css +13 -0
- package/dist/resources/solid-tailwind-generated.css +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 +13 -0
- package/dist/routes/pages/admin/core/AgentDeploymentPanel.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/AgentDeploymentPanel.js +88 -0
- package/dist/routes/pages/admin/core/AgentDeploymentPanel.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentDeploymentPanel.tsx +71 -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 +539 -0
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.module.css +87 -0
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.tsx +422 -0
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.css +52 -9
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js +144 -79
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.tsx +139 -33
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.css +29 -0
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js +26 -21
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.tsx +14 -7
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js +42 -27
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.tsx +12 -5
- 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 +2 -0
- package/dist/routes/solidRoutes.js.map +1 -1
- package/dist/routes/solidRoutes.tsx +2 -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
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
.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
61
|
.agent-editor__workflow-save-hint { color:var(--text-color-secondary,var(--muted-foreground)); font-size:.76rem; }
|
|
62
62
|
.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
|
|
63
|
+
.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
64
|
.agent-editor__inputs { display:flex; flex-direction:column; gap:.55rem; }
|
|
65
65
|
.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
66
|
.agent-editor__input-optional { display:flex; align-items:center; gap:.35rem; font-size:.8rem; white-space:nowrap; }
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
.agent-editor__input-row>button:hover,.agent-editor__linked-card>button:hover { color:#dc2626; }
|
|
69
69
|
.agent-editor__error { color:#dc2626!important; }
|
|
70
70
|
.agent-editor__hint { color:var(--text-color-secondary,var(--muted-foreground)); }
|
|
71
|
+
.agent-editor__field small.agent-editor__hint { font-weight:400; }
|
|
71
72
|
.agent-editor__models .solid-autocomplete,.agent-editor__models .solid-input { font-weight:400; }
|
|
72
73
|
.agent-editor__models .agent-editor__field>.solid-input { margin-top:.25rem; }
|
|
73
74
|
.agent-editor__test-dialog-overlay { z-index:1200!important; }
|
|
@@ -76,13 +77,48 @@
|
|
|
76
77
|
.agent-editor__test-chat { width:100%; height:100%!important; border:0!important; border-radius:0!important; }
|
|
77
78
|
.agent-editor__persona { padding:0; overflow:hidden; }
|
|
78
79
|
.agent-editor__persona .agent-editor__section-head { padding:1rem; }
|
|
80
|
+
.agent-editor__persona-actions { display:flex; align-items:center; gap:.4rem; flex:0 0 auto; }
|
|
81
|
+
.agent-editor__persona-preview-toggle { display:inline-flex; align-items:center; justify-content:center; width:2.15rem; height:2.15rem; padding:0; border:1px solid var(--surface-border,var(--border)); border-radius:.6rem; background:var(--surface-card,var(--card)); color:var(--text-color-secondary,var(--muted-foreground)); cursor:pointer; }
|
|
82
|
+
.agent-editor__persona-preview-toggle:hover,.agent-editor__persona-preview-toggle[aria-pressed="true"] { border-color:color-mix(in srgb,var(--primary-color,var(--primary)) 42%,var(--surface-border,var(--border))); background:color-mix(in srgb,var(--primary-color,var(--primary)) 7%,var(--surface-card,var(--card))); color:var(--primary-color,var(--primary)); }
|
|
83
|
+
.agent-editor__persona-preview-toggle:focus-visible { outline:2px solid var(--primary-color,var(--primary)); outline-offset:2px; }
|
|
84
|
+
.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)); }
|
|
79
85
|
.agent-editor__persona .agent-editor__error { padding:0 1rem; }
|
|
80
|
-
.agent-editor__picker {
|
|
86
|
+
.agent-editor__picker-bar { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem .75rem; }
|
|
87
|
+
.agent-editor__picker-heading { display:flex; flex:1 1 auto; flex-direction:column; gap:.15rem; min-width:0; max-width:100%; }
|
|
88
|
+
.agent-editor__picker-title { display:flex; align-items:baseline; gap:.4rem; white-space:nowrap; }
|
|
89
|
+
.agent-editor__picker-heading p { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
90
|
+
.agent-editor__picker { position:relative; flex:0 1 22rem; min-width:12rem; }
|
|
81
91
|
.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; }
|
|
82
92
|
.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; }
|
|
83
93
|
.agent-editor__picker-results button:hover { background:var(--surface-hover,#f2f3f4); }
|
|
84
94
|
.agent-editor__picker-results span { overflow:hidden; color:var(--text-color-secondary,var(--muted-foreground)); font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }
|
|
85
95
|
.agent-editor__picker-results p { padding:.5rem; }
|
|
96
|
+
.agent-editor__picker-actions { display:flex; flex:0 1 auto; align-items:center; gap:.35rem; min-width:0; }
|
|
97
|
+
.agent-editor__picker-actions .agent-editor__list-search { width:16rem; min-width:0; animation:agent-editor-search-expand .15s ease-out; }
|
|
98
|
+
@keyframes agent-editor-search-expand { from { width:0; opacity:0; } }
|
|
99
|
+
@media(prefers-reduced-motion:reduce) { .agent-editor__picker-actions .agent-editor__list-search { animation:none; } }
|
|
100
|
+
.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; }
|
|
101
|
+
.agent-editor__icon-button:hover { background:var(--surface-hover,#f2f3f4); color:var(--text-color,var(--foreground)); }
|
|
102
|
+
.agent-editor__icon-button[aria-expanded=true] { color:var(--primary-color,var(--primary)); }
|
|
103
|
+
.agent-editor__icon-button:focus-visible { outline:2px solid var(--primary-color,var(--primary)); outline-offset:1px; }
|
|
104
|
+
.agent-editor__add-dialog { display:flex; flex-direction:column; gap:.6rem; }
|
|
105
|
+
.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; }
|
|
106
|
+
.agent-editor__add-option { display:flex; flex:0 0 auto; align-items:flex-start; gap:.6rem; padding:.5rem .6rem; border-radius:.35rem; cursor:pointer; }
|
|
107
|
+
.agent-editor__add-option:hover { background:var(--surface-hover,#f2f3f4); }
|
|
108
|
+
.agent-editor__add-option input { width:1rem; height:1rem; flex:0 0 auto; margin:.15rem 0 0; accent-color:var(--primary-color,var(--primary)); }
|
|
109
|
+
.agent-editor__add-option>span { display:flex; flex-direction:column; gap:.1rem; min-width:0; }
|
|
110
|
+
.agent-editor__add-option strong { overflow:hidden; font-size:.875rem; text-overflow:ellipsis; white-space:nowrap; }
|
|
111
|
+
.agent-editor__add-option small { overflow:hidden; color:var(--text-color-secondary,var(--muted-foreground)); font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
|
|
112
|
+
.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)); }
|
|
113
|
+
.agent-editor__add-empty { margin:0; padding:.75rem; color:var(--text-color-secondary,var(--muted-foreground)); font-size:.85rem; text-align:center; }
|
|
114
|
+
.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; }
|
|
115
|
+
.agent-editor__add-create:hover { background:var(--surface-hover,#f2f3f4); }
|
|
116
|
+
.agent-editor__add-create svg { flex:0 0 auto; }
|
|
117
|
+
.agent-editor__add-create strong { flex:1 1 auto; min-width:0; overflow:hidden; font-size:.875rem; text-overflow:ellipsis; white-space:nowrap; }
|
|
118
|
+
.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; }
|
|
119
|
+
.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; }
|
|
120
|
+
.agent-editor__view-toggle button:hover { color:var(--text-color,var(--foreground)); }
|
|
121
|
+
.agent-editor__view-toggle button[aria-pressed=true] { background:var(--surface-hover,#f2f3f4); color:var(--primary-color,var(--primary)); }
|
|
86
122
|
.agent-editor__cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(16rem,1fr)); gap:.8rem; }
|
|
87
123
|
.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; }
|
|
88
124
|
.agent-editor__card-content { min-width:0; }
|
|
@@ -95,19 +131,26 @@
|
|
|
95
131
|
.agent-editor__resource-menu .agent-editor__resource-delete { color:#dc2626; }
|
|
96
132
|
.agent-editor__resource-preview-body { min-height:0; max-height:72vh; overflow:auto; }
|
|
97
133
|
.agent-editor__resource-preview-body img { max-width:100%; height:auto; }
|
|
98
|
-
.agent-
|
|
99
|
-
.agent-
|
|
134
|
+
.agent-editor__linked-card--compact { flex-direction:row; align-items:center; gap:.25rem; padding-right:.5rem; }
|
|
135
|
+
.agent-editor__linked-card--compact>.agent-editor__card-content { flex:1 1 auto; }
|
|
136
|
+
.agent-editor__linked-card--compact>button { position:static; flex:0 0 auto; width:2rem; min-height:2rem; }
|
|
137
|
+
.agent-editor__list { display:flex; flex-direction:column; gap:.5rem; }
|
|
138
|
+
.agent-editor__list .agent-editor__linked-card { flex-wrap:wrap; }
|
|
139
|
+
.agent-editor__list .agent-editor__card-content { flex:1 1 14rem; }
|
|
140
|
+
.agent-editor__list .agent-editor__link-settings { flex:0 0 auto; padding:.25rem .5rem; border-top:0; background:transparent; }
|
|
141
|
+
.agent-editor__list .agent-editor__link-setting { align-items:center; white-space:nowrap; }
|
|
142
|
+
.agent-editor__list .agent-editor__link-setting input { margin:0; }
|
|
143
|
+
.agent-editor__list .agent-editor__link-setting small { display:none; }
|
|
144
|
+
.agent-editor__secret { display:flex; align-items:center; gap:.25rem; padding:.5rem 0 .5rem .85rem; }
|
|
145
|
+
.agent-editor__secret strong { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
146
|
+
.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; }
|
|
147
|
+
.agent-editor__secret button:hover { color:var(--primary-color,var(--primary)); background:color-mix(in srgb,var(--primary-color,var(--primary)) 8%,transparent); }
|
|
100
148
|
.agent-editor__link-settings { padding:.55rem .75rem .7rem; border-top:1px solid var(--surface-border,var(--border)); background:var(--surface-ground,var(--background)); }
|
|
101
149
|
.agent-editor__link-setting { display:flex; align-items:flex-start; gap:.55rem; cursor:pointer; }
|
|
102
150
|
.agent-editor__link-setting input { width:1rem; height:1rem; flex:0 0 auto; margin:.12rem 0 0; accent-color:var(--primary-color,var(--primary)); }
|
|
103
151
|
.agent-editor__link-setting>span { display:flex; flex-direction:column; gap:.12rem; }
|
|
104
152
|
.agent-editor__link-setting strong { font-size:.76rem; }
|
|
105
153
|
.agent-editor__link-setting small { color:var(--text-color-secondary,var(--muted-foreground)); font-size:.68rem; line-height:1.35; }
|
|
106
|
-
.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)); }
|
|
107
|
-
.agent-editor__secret-env>span { flex:0 0 auto; font-size:.68rem; font-weight:600; }
|
|
108
|
-
.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; }
|
|
109
|
-
.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; }
|
|
110
|
-
.agent-editor__secret-env button:hover { color:var(--primary-color,var(--primary)); background:color-mix(in srgb,var(--primary-color,var(--primary)) 8%,transparent); }
|
|
111
154
|
.agent-editor__secret-dialog { display:flex; flex-direction:column; gap:.9rem; padding:.3rem 0; }
|
|
112
155
|
.agent-editor__secret-dialog>p { margin:0; color:var(--text-color-secondary,var(--muted-foreground)); font-size:.86rem; line-height:1.5; }
|
|
113
156
|
.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;AAsZvC,wBAAgB,uBAAuB,4CAmiBtC"}
|
|
@@ -56,20 +56,23 @@ 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";
|
|
63
63
|
import { solidPost } from "../../../../http/solidHttp";
|
|
64
64
|
import { useGetSolidSettingsQuery } from "../../../../redux/api/solidSettingsApi";
|
|
65
|
+
import { hasAnyRole } from "../../../../helpers/rolesHelper";
|
|
66
|
+
import { useSession } from "../../../../hooks/useSession";
|
|
65
67
|
import { getSettingsMap } from "../../../../helpers/settingsPayload";
|
|
66
68
|
import { showToast } from "../../../../redux/features/toastSlice";
|
|
67
69
|
import { AgentRegistryAuditPanel } from "./AgentRegistryAuditPanel";
|
|
70
|
+
import { AgentDeploymentPanel } from "./AgentDeploymentPanel";
|
|
68
71
|
import { AgentPersonaHistory } from "./AgentPersonaHistory";
|
|
69
72
|
import { AgentConfigVersionsPanel } from "./AgentConfigVersionsPanel";
|
|
70
73
|
import { AgentHubTagsField, agentHubTagsFrom, agentHubTagsPayload } from "./AgentHubTagsField";
|
|
71
74
|
import { AgentHubModuleField, agentHubModuleFrom, agentHubModulePayload } from "./AgentHubModuleField";
|
|
72
|
-
import { AgentResourceCardWidget } from "../../../../components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget";
|
|
75
|
+
import { AgentResourceCardWidget, AgentResourceRowWidget } from "../../../../components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget";
|
|
73
76
|
import { AgentSessionsPanel } from "../../../../components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel";
|
|
74
77
|
import { AgentProcessesPanel } from "../../../../components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel";
|
|
75
78
|
import { SolidWorkflowStatusPill } from "../../../../components/core/form/SolidDraftPublishWorkflow";
|
|
@@ -177,6 +180,7 @@ function fieldsQuery(fields) {
|
|
|
177
180
|
var detailFields = [
|
|
178
181
|
"id", "name", "title", "description", "iconName", "systemPrompt", "requiredInputs",
|
|
179
182
|
"reasoningModelKey", "fastModelKey", "status", "stepLimit", "turnStepLimit", "costLimit", "configVersion",
|
|
183
|
+
"runner", "minProcesses", "maxProcesses", "processCpu", "processMemory",
|
|
180
184
|
];
|
|
181
185
|
var detailQuery = [
|
|
182
186
|
"agentRoles", "agentRoles.roleMetadata", "agentSecrets", "agentSecrets.secret", "tags", "module",
|
|
@@ -316,28 +320,79 @@ function ResourcePreviewDialog(_a) {
|
|
|
316
320
|
: kind === "skill" ? _jsx(SolidAgentMarkdown, { text: content })
|
|
317
321
|
: _jsx(SolidCodeEditor, { value: content, language: "python", readOnly: true, fontSize: 12, height: "min(65vh, 42rem)" }) }) });
|
|
318
322
|
}
|
|
323
|
+
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 : ""); };
|
|
324
|
+
var itemMatches = function (item, query) { var _a; return "".concat(itemLabel(item), " ").concat((_a = item.description) !== null && _a !== void 0 ? _a : "").toLowerCase().includes(query); };
|
|
325
|
+
function AddLinksDialog(_a) {
|
|
326
|
+
var label = _a.label, options = _a.options, selected = _a.selected, createUrl = _a.createUrl, onClose = _a.onClose, onConfirm = _a.onConfirm;
|
|
327
|
+
var _b = React.useState(""), search = _b[0], setSearch = _b[1];
|
|
328
|
+
var _c = React.useState([]), picked = _c[0], setPicked = _c[1];
|
|
329
|
+
var plural = label.toLowerCase();
|
|
330
|
+
var singular = plural.slice(0, -1);
|
|
331
|
+
var typedName = search.trim();
|
|
332
|
+
var query = typedName.toLowerCase();
|
|
333
|
+
var linkedIds = new Set(selected.map(function (item) { return item.id; }));
|
|
334
|
+
var pickedIds = new Set(picked);
|
|
335
|
+
var visible = options.filter(function (item) { return !linkedIds.has(item.id) && itemMatches(item, query); });
|
|
336
|
+
var visiblePicked = visible.filter(function (item) { return pickedIds.has(item.id); }).length;
|
|
337
|
+
var allPicked = visible.length > 0 && visiblePicked === visible.length;
|
|
338
|
+
var canCreate = Boolean(createUrl && query) && !__spreadArray(__spreadArray([], options, true), selected, true).some(function (item) { return itemLabel(item).toLowerCase() === query; });
|
|
339
|
+
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); }); };
|
|
340
|
+
var toggleAll = function () {
|
|
341
|
+
var ids = visible.map(function (item) { return item.id; });
|
|
342
|
+
setPicked(function (current) { return allPicked ? current.filter(function (id) { return !ids.includes(id); }) : Array.from(new Set(__spreadArray(__spreadArray([], current, true), ids, true))); });
|
|
343
|
+
};
|
|
344
|
+
return _jsx(SolidDialog, { open: true, onOpenChange: function (next) { if (!next)
|
|
345
|
+
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)
|
|
346
|
+
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" })] })] })] }) }) });
|
|
347
|
+
}
|
|
319
348
|
function LinkPicker(_a) {
|
|
320
|
-
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;
|
|
349
|
+
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;
|
|
321
350
|
var _b = React.useState(""), search = _b[0], setSearch = _b[1];
|
|
322
351
|
var _c = React.useState(false), open = _c[0], setOpen = _c[1];
|
|
352
|
+
var _d = React.useState(false), searchOpen = _d[0], setSearchOpen = _d[1];
|
|
353
|
+
var _e = React.useState(false), addOpen = _e[0], setAddOpen = _e[1];
|
|
354
|
+
var pickerRef = React.useRef(null);
|
|
323
355
|
var showAssociatedCount = label === "Skills" || label === "Tools";
|
|
324
|
-
var
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
356
|
+
var typedName = search.trim();
|
|
357
|
+
var query = typedName.toLowerCase();
|
|
358
|
+
var available = options.filter(function (item) { return !selected.some(function (selectedItem) { return selectedItem.id === item.id; }) && itemMatches(item, query); }).slice(0, 20);
|
|
359
|
+
var visibleSelected = selected.filter(function (item) { return itemMatches(item, query); });
|
|
360
|
+
var isList = view === "list" && Boolean(renderRow);
|
|
361
|
+
var closeSearch = function () { setSearchOpen(false); setSearch(""); };
|
|
362
|
+
React.useEffect(function () {
|
|
363
|
+
if (!open)
|
|
364
|
+
return;
|
|
365
|
+
var dismiss = function (event) {
|
|
366
|
+
var _a;
|
|
367
|
+
if (!((_a = pickerRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target)))
|
|
368
|
+
setOpen(false);
|
|
369
|
+
};
|
|
370
|
+
document.addEventListener("pointerdown", dismiss);
|
|
371
|
+
document.addEventListener("focusin", dismiss);
|
|
372
|
+
return function () {
|
|
373
|
+
document.removeEventListener("pointerdown", dismiss);
|
|
374
|
+
document.removeEventListener("focusin", dismiss);
|
|
375
|
+
};
|
|
376
|
+
}, [open]);
|
|
377
|
+
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())
|
|
378
|
+
closeSearch(); }, onKeyDown: function (event) { if (event.key === "Escape")
|
|
379
|
+
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)
|
|
380
|
+
closeSearch();
|
|
381
|
+
else
|
|
382
|
+
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) {
|
|
383
|
+
var _a, _b;
|
|
384
|
+
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);
|
|
385
|
+
}) : _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) {
|
|
333
386
|
var _a, _b, _c, _d;
|
|
334
|
-
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);
|
|
335
|
-
}) }) :
|
|
387
|
+
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);
|
|
388
|
+
}) }) : _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 })] });
|
|
336
389
|
}
|
|
337
390
|
export function AgentRegistryEditorPage() {
|
|
338
391
|
var _this = this;
|
|
339
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
340
|
-
var
|
|
392
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
393
|
+
var _u = useParams().id, id = _u === void 0 ? "new" : _u;
|
|
394
|
+
var session = useSession().data;
|
|
395
|
+
var isAdmin = hasAnyRole((_a = session === null || session === void 0 ? void 0 : session.user) === null || _a === void 0 ? void 0 : _a.roles, ["Admin"]);
|
|
341
396
|
var searchParams = useSearchParams()[0];
|
|
342
397
|
var navigate = useNavigate();
|
|
343
398
|
var dispatch = useDispatch();
|
|
@@ -353,13 +408,13 @@ export function AgentRegistryEditorPage() {
|
|
|
353
408
|
return undefined;
|
|
354
409
|
return __assign(__assign({}, agent), { agentSkills: resourceLinksFrom(skillLinks.currentData, "agentSkills", "agentSkillRegistry", "alwaysInclude", skillFields), agentTools: resourceLinksFrom(toolLinks.currentData, "agentTools", "agentToolRegistry", "requiresApproval", toolFields) });
|
|
355
410
|
}, [agentResult.currentData, skillLinks.currentData, toolLinks.currentData]);
|
|
356
|
-
var
|
|
411
|
+
var _v = useGetSolidSettingsQuery(undefined), settings = _v.data, settingsError = _v.isError;
|
|
357
412
|
var skills = useCatalog(skillApi, "offset=0&limit=1000&populate[0]=tags&".concat(fieldsQuery(skillFields)));
|
|
358
413
|
var tools = useCatalog(toolApi, "offset=0&limit=1000&populate[0]=tags&".concat(fieldsQuery(toolFields)));
|
|
359
414
|
var roles = useCatalog(roleApi, "offset=0&limit=1000&populate[0]=module");
|
|
360
415
|
var secrets = useCatalog(secretApi, "offset=0&limit=1000&fields[0]=id&fields[1]=key&fields[2]=displayName&fields[3]=description");
|
|
361
|
-
var
|
|
362
|
-
var
|
|
416
|
+
var _w = entityApi.useCreateSolidEntityMutation(), createAgent = _w[0], creating = _w[1].isLoading;
|
|
417
|
+
var _x = entityApi.useUpdateSolidEntityMutation(), updateAgent = _x[0], updating = _x[1].isLoading;
|
|
363
418
|
var createSkillLink = agentSkillApi.useCreateSolidEntityMutation()[0];
|
|
364
419
|
var deleteSkillLink = agentSkillApi.useDeleteSolidEntityMutation()[0];
|
|
365
420
|
var updateSkillLink = agentSkillApi.useUpdateSolidEntityMutation()[0];
|
|
@@ -372,7 +427,8 @@ export function AgentRegistryEditorPage() {
|
|
|
372
427
|
var deleteSecretLink = agentSecretApi.useDeleteSolidEntityMutation()[0];
|
|
373
428
|
var updateSecretLink = agentSecretApi.useUpdateSolidEntityMutation()[0];
|
|
374
429
|
var record = recordFrom(response);
|
|
375
|
-
var
|
|
430
|
+
var _y = React.useState(searchParams.get("tab") === "config-versions" ? "config-versions" : "basics"), tab = _y[0], setTab = _y[1];
|
|
431
|
+
var _z = React.useState(false), previewSystemPrompt = _z[0], setPreviewSystemPrompt = _z[1];
|
|
376
432
|
var jobs = jobApi.useGetSolidEntitiesQuery("offset=0&limit=1000&filters[agent][id][$eq]=".concat(encodeURIComponent(id), "&").concat(fieldsQuery(["id", "status"])), { skip: id === "new" || tab !== "jobs" });
|
|
377
433
|
var refetch = function () {
|
|
378
434
|
void agentResult.refetch();
|
|
@@ -408,43 +464,44 @@ export function AgentRegistryEditorPage() {
|
|
|
408
464
|
// ignore
|
|
409
465
|
}
|
|
410
466
|
};
|
|
411
|
-
var
|
|
412
|
-
var
|
|
413
|
-
var
|
|
414
|
-
var
|
|
415
|
-
var
|
|
416
|
-
var
|
|
417
|
-
var
|
|
418
|
-
var
|
|
419
|
-
var
|
|
420
|
-
var
|
|
421
|
-
var
|
|
422
|
-
var
|
|
423
|
-
var
|
|
424
|
-
var
|
|
425
|
-
var
|
|
426
|
-
var
|
|
427
|
-
var
|
|
428
|
-
var
|
|
429
|
-
var
|
|
430
|
-
var
|
|
431
|
-
var
|
|
432
|
-
var
|
|
433
|
-
var
|
|
434
|
-
var
|
|
435
|
-
var
|
|
436
|
-
var
|
|
437
|
-
var
|
|
438
|
-
var
|
|
439
|
-
var
|
|
440
|
-
var
|
|
441
|
-
var
|
|
442
|
-
var
|
|
443
|
-
var
|
|
444
|
-
var
|
|
445
|
-
var
|
|
446
|
-
var
|
|
447
|
-
var
|
|
467
|
+
var _0 = React.useState(function () { return readTestAgentPrefs(id).open; }), testAgentOpen = _0[0], setTestAgentOpen = _0[1];
|
|
468
|
+
var _1 = React.useState(null), preview = _1[0], setPreview = _1[1];
|
|
469
|
+
var _2 = React.useState(function () { return readTestAgentPrefs(id).mode; }), testAgentWindowMode = _2[0], setTestAgentWindowMode = _2[1];
|
|
470
|
+
var _3 = React.useState(""), name = _3[0], setName = _3[1];
|
|
471
|
+
var _4 = React.useState(""), title = _4[0], setTitle = _4[1];
|
|
472
|
+
var _5 = React.useState(""), description = _5[0], setDescription = _5[1];
|
|
473
|
+
var _6 = React.useState(""), iconName = _6[0], setIconName = _6[1];
|
|
474
|
+
var _7 = React.useState([]), inputs = _7[0], setInputs = _7[1];
|
|
475
|
+
var _8 = React.useState(""), reasoningModelKey = _8[0], setReasoningModelKey = _8[1];
|
|
476
|
+
var _9 = React.useState(""), fastModelKey = _9[0], setFastModelKey = _9[1];
|
|
477
|
+
var _10 = React.useState(""), systemPrompt = _10[0], setSystemPrompt = _10[1];
|
|
478
|
+
var _11 = React.useState(100), stepLimit = _11[0], setStepLimit = _11[1];
|
|
479
|
+
var _12 = React.useState(20), turnStepLimit = _12[0], setTurnStepLimit = _12[1];
|
|
480
|
+
var _13 = React.useState(3), costLimit = _13[0], setCostLimit = _13[1];
|
|
481
|
+
var _14 = React.useState([]), tags = _14[0], setTags = _14[1];
|
|
482
|
+
var _15 = React.useState(null), module = _15[0], setModule = _15[1];
|
|
483
|
+
var _16 = React.useState(false), creatingTag = _16[0], setCreatingTag = _16[1];
|
|
484
|
+
var _17 = React.useState([]), skillIds = _17[0], setSkillIds = _17[1];
|
|
485
|
+
var _18 = React.useState([]), toolIds = _18[0], setToolIds = _18[1];
|
|
486
|
+
var _19 = React.useState([]), roleIds = _19[0], setRoleIds = _19[1];
|
|
487
|
+
var _20 = React.useState([]), secretIds = _20[0], setSecretIds = _20[1];
|
|
488
|
+
var _21 = React.useState({}), alwaysIncludeValues = _21[0], setAlwaysIncludeValues = _21[1];
|
|
489
|
+
var _22 = React.useState({}), requiresApprovalValues = _22[0], setRequiresApprovalValues = _22[1];
|
|
490
|
+
var _23 = React.useState({}), secretEnvVarNames = _23[0], setSecretEnvVarNames = _23[1];
|
|
491
|
+
var _24 = React.useState("list"), resourceView = _24[0], setResourceView = _24[1];
|
|
492
|
+
var _25 = React.useState(null), pendingSecret = _25[0], setPendingSecret = _25[1];
|
|
493
|
+
var _26 = React.useState(""), secretEnvVarDraft = _26[0], setSecretEnvVarDraft = _26[1];
|
|
494
|
+
var _27 = React.useState(""), secretEnvVarError = _27[0], setSecretEnvVarError = _27[1];
|
|
495
|
+
var _28 = React.useState({}), errors = _28[0], setErrors = _28[1];
|
|
496
|
+
var _29 = React.useState(0), auditVersion = _29[0], setAuditVersion = _29[1];
|
|
497
|
+
var _30 = React.useState(false), confirmRefresh = _30[0], setConfirmRefresh = _30[1];
|
|
498
|
+
var _31 = React.useState(false), activateDialogOpen = _31[0], setActivateDialogOpen = _31[1];
|
|
499
|
+
var _32 = React.useState(false), includeVersionDetails = _32[0], setIncludeVersionDetails = _32[1];
|
|
500
|
+
var _33 = React.useState(""), versionName = _33[0], setVersionName = _33[1];
|
|
501
|
+
var _34 = React.useState(""), versionDescription = _34[0], setVersionDescription = _34[1];
|
|
502
|
+
var _35 = React.useState(false), activating = _35[0], setActivating = _35[1];
|
|
503
|
+
var _36 = React.useState(function () { return id === "new" ? null : savedActivationReadyAt(id); }), activationReadyAt = _36[0], setActivationReadyAt = _36[1];
|
|
504
|
+
var _37 = React.useState(Date.now()), countdownNow = _37[0], setCountdownNow = _37[1];
|
|
448
505
|
var baseline = React.useRef("");
|
|
449
506
|
React.useEffect(function () {
|
|
450
507
|
if (id === "new") {
|
|
@@ -536,13 +593,13 @@ export function AgentRegistryEditorPage() {
|
|
|
536
593
|
var configValue = getSettingsMap(settings).solidXGenAiCodeBuilderConfig;
|
|
537
594
|
var aiConfig = {};
|
|
538
595
|
try {
|
|
539
|
-
aiConfig = (
|
|
596
|
+
aiConfig = (_b = (typeof configValue === "string" ? JSON.parse(configValue) : configValue)) !== null && _b !== void 0 ? _b : {};
|
|
540
597
|
}
|
|
541
|
-
catch ( /* Invalid configuration has no enabled providers. */
|
|
598
|
+
catch ( /* Invalid configuration has no enabled providers. */_38) { /* Invalid configuration has no enabled providers. */ }
|
|
542
599
|
var modelsCatalog = useModelsDevCatalog().catalog;
|
|
543
600
|
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; });
|
|
544
|
-
var modelOptions = buildModelOptions((
|
|
545
|
-
var providerOptions = Object.entries((
|
|
601
|
+
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);
|
|
602
|
+
var providerOptions = Object.entries((_h = aiConfig.providers) !== null && _h !== void 0 ? _h : {})
|
|
546
603
|
.filter(function (_a) {
|
|
547
604
|
var entry = _a[1];
|
|
548
605
|
return typeof (entry === null || entry === void 0 ? void 0 : entry.apiKey) === "string" && entry.apiKey.trim().length > 0;
|
|
@@ -560,6 +617,9 @@ export function AgentRegistryEditorPage() {
|
|
|
560
617
|
var toggle = function (setter, value) {
|
|
561
618
|
return setter(function (current) { return current.includes(value) ? current.filter(function (id) { return id !== value; }) : __spreadArray(__spreadArray([], current, true), [value], false); });
|
|
562
619
|
};
|
|
620
|
+
var addAll = function (setter, values) {
|
|
621
|
+
return setter(function (current) { return Array.from(new Set(__spreadArray(__spreadArray([], current, true), values, true))); });
|
|
622
|
+
};
|
|
563
623
|
var syncLinks = function (agentId, previous, selected, field, create, remove, update, extra) {
|
|
564
624
|
if (extra === void 0) { extra = {}; }
|
|
565
625
|
return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -660,7 +720,7 @@ export function AgentRegistryEditorPage() {
|
|
|
660
720
|
next.limits = "Step limits must be positive and cost limit cannot be negative.";
|
|
661
721
|
setErrors(next);
|
|
662
722
|
if (Object.keys(next).length) {
|
|
663
|
-
setTab(next.systemPrompt ? "persona" : next.limits ? "policies" : "basics");
|
|
723
|
+
setTab(next.systemPrompt ? "persona" : next.limits && isAdmin ? "policies" : "basics");
|
|
664
724
|
dispatch(showToast({ severity: "error", summary: "Missing information", detail: Object.values(next).join(" ") }));
|
|
665
725
|
return [2 /*return*/, false];
|
|
666
726
|
}
|
|
@@ -796,9 +856,9 @@ export function AgentRegistryEditorPage() {
|
|
|
796
856
|
setSecretEnvVarError("");
|
|
797
857
|
};
|
|
798
858
|
var linkSetting = function (label, checked, onChange, hint) {
|
|
799
|
-
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 })] })] });
|
|
859
|
+
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 })] })] });
|
|
800
860
|
};
|
|
801
|
-
var agentStatus = (
|
|
861
|
+
var agentStatus = (_j = record === null || record === void 0 ? void 0 : record.status) !== null && _j !== void 0 ? _j : "draft";
|
|
802
862
|
var activationRemainingMs = Math.max(0, (activationReadyAt !== null && activationReadyAt !== void 0 ? activationReadyAt : 0) - countdownNow);
|
|
803
863
|
var activationRemainingSeconds = Math.ceil(activationRemainingMs / 1000);
|
|
804
864
|
var activationWaiting = agentStatus === "draft" && activationRemainingSeconds > 0;
|
|
@@ -827,15 +887,16 @@ export function AgentRegistryEditorPage() {
|
|
|
827
887
|
void save(value);
|
|
828
888
|
}, 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);
|
|
829
889
|
}) }), _jsx("small", { className: "agent-editor__workflow-save-hint", children: "Changing stage saves the current form and its linked skills, tools, roles, and secrets." })] })] }) },
|
|
830
|
-
{ 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." })] }), (
|
|
831
|
-
|
|
890
|
+
{ 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." }) })
|
|
891
|
+
: _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 })] }) },
|
|
892
|
+
{ 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) {
|
|
832
893
|
var _a;
|
|
833
894
|
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) {
|
|
834
895
|
var _a;
|
|
835
896
|
return (__assign(__assign({}, current), (_a = {}, _a[item.id] = checked, _a)));
|
|
836
897
|
}); }, "Add the full skill to the agent prompt. Turn off to load it on demand.") });
|
|
837
898
|
} }) },
|
|
838
|
-
{ 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)),
|
|
899
|
+
{ 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) {
|
|
839
900
|
var _a;
|
|
840
901
|
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) {
|
|
841
902
|
var _a;
|
|
@@ -847,23 +908,27 @@ export function AgentRegistryEditorPage() {
|
|
|
847
908
|
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);
|
|
848
909
|
}), !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) {
|
|
849
910
|
var label = _a[0], value = _a[1], setter = _a[2];
|
|
850
|
-
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);
|
|
911
|
+
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);
|
|
851
912
|
}) }), errors.limits && _jsx("small", { className: "agent-editor__error", children: errors.limits })] })] }) },
|
|
852
913
|
{ 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)
|
|
853
|
-
beginSecretEnvVarEdit(secret); }, onRemove: function (id) { return toggle(setSecretIds, id); },
|
|
854
|
-
var _a, _b, _c, _d, _e
|
|
855
|
-
return _jsxs("div", { className: "agent-editor__secret", children: [_jsx("strong", {
|
|
914
|
+
beginSecretEnvVarEdit(secret); }, onRemove: function (id) { return toggle(setSecretIds, id); }, compact: true, render: function (item) {
|
|
915
|
+
var _a, _b, _c, _d, _e;
|
|
916
|
+
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 }) })] });
|
|
856
917
|
} }) }
|
|
857
|
-
], ((record === null || record === void 0 ? void 0 : record.id) ? [{ value: "processes", label: "Processes", content: _jsx(AgentProcessesPanel, { agentId: record.id, agentLabel: (
|
|
858
|
-
["jobs", "Jobs", (
|
|
918
|
+
], ((record === null || record === void 0 ? void 0 : record.id) ? [{ value: "processes", label: "Processes", content: _jsxs("div", { className: "agent-editor__stack", children: [_jsx(AgentDeploymentPanel, { agentId: record.id, current: record, onSaved: function () { return void agentResult.refetch(); } }, record.id), _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) ? [
|
|
919
|
+
["jobs", "Jobs", (_m = jobs.currentData) === null || _m === void 0 ? void 0 : _m.records],
|
|
859
920
|
] : []).map(function (_a) {
|
|
860
921
|
var value = _a[0], label = _a[1], related = _a[2];
|
|
861
922
|
return ({ value: value, label: label, content: _jsxs("section", { className: "agent-editor__section", children: [_jsx("h2", { children: label }), jobs.isLoading || jobs.isFetching ? _jsx("div", { className: "agent-editor__empty", children: "Loading jobs\u2026" })
|
|
862
923
|
: jobs.isError ? _jsx("div", { className: "agent-editor__empty", children: "Jobs could not be loaded." })
|
|
863
924
|
: items(related).length ? _jsx("div", { className: "agent-editor__related", children: items(related).map(function (item) { var _a, _b, _c; return _jsxs("article", { children: [_jsx("strong", { children: (_b = (_a = item.name) !== null && _a !== void 0 ? _a : item.title) !== null && _b !== void 0 ? _b : "#".concat(item.id) }), _jsx("span", { children: (_c = item.status) !== null && _c !== void 0 ? _c : "" })] }, item.id); }) })
|
|
864
925
|
: _jsxs("div", { className: "agent-editor__empty", children: ["No ", label.toLowerCase(), " for this agent yet."] })] }) });
|
|
865
|
-
}), true), ((record === null || record === void 0 ? void 0 : record.id) ? [{ value: "sessions", label: "Sessions", content: _jsx(AgentSessionsPanel, { agentId: record.id, agentLabel: (
|
|
866
|
-
var
|
|
926
|
+
}), true), ((record === null || record === void 0 ? void 0 : record.id) ? [{ value: "sessions", label: "Sessions", content: _jsx(AgentSessionsPanel, { agentId: record.id, agentLabel: (_o = record.name) !== null && _o !== void 0 ? _o : record.title }) }] : []), true), ((record === null || record === void 0 ? void 0 : record.id) ? [{ value: "config-versions", label: "Version History", content: _jsx(AgentConfigVersionsPanel, { agentId: record.id, active: tab === "config-versions" }) }] : []), true), ((record === null || record === void 0 ? void 0 : record.id) ? [{ value: "embedding", label: "Embedding", content: _jsx(AgentEmbeddingPanel, { agentId: record.id, fields: parseInputs(record.requiredInputs), active: record.status === "active", hubUrl: String((_p = getSettingsMap(settings).solidxAgentHubBackendUrl) !== null && _p !== void 0 ? _p : "") }) }] : []), true);
|
|
927
|
+
var visibleTabs = isAdmin ? tabs : tabs.filter(function (_a) {
|
|
928
|
+
var value = _a.value;
|
|
929
|
+
return !["policies", "processes", "jobs", "sessions", "embedding"].includes(value);
|
|
930
|
+
});
|
|
931
|
+
var content = _jsx(SolidTabGroup, { tabs: visibleTabs, value: tab, onValueChange: setTab, className: "agent-editor__tabs", listClassName: "agent-editor__tab-list", panelClassName: "agent-editor__tab-panel" });
|
|
867
932
|
return _jsxs("main", { className: "agent-editor", children: [_jsxs("header", { className: "agent-editor__header", children: [_jsxs("div", { className: "agent-editor__heading-with-refresh", children: [_jsx("h1", { children: (record === null || record === void 0 ? void 0 : record.id) ? "Edit Agent" : "Create Agent" }), (record === null || record === void 0 ? void 0 : record.id) && _jsx("button", { type: "button", className: "agent-editor__refresh".concat(isFetching ? " is-loading" : ""), "aria-label": "Refresh agent", title: "Refresh agent", disabled: isFetching || updating, onClick: requestRefresh, children: _jsx(RefreshCw, { size: 14 }) })] }), _jsxs("div", { className: "agent-editor__actions", children: [_jsx(SolidButton, { variant: "secondary", leftIcon: _jsx(ArrowLeft, { size: 16 }), onClick: function () { return navigate(-1); }, children: "Back" }), (record === null || record === void 0 ? void 0 : record.id) && _jsx(SolidButton, { variant: "secondary", leftIcon: _jsx(FlaskConical, { size: 16 }), onClick: openAgentTest, children: "Test Agent" }), _jsx(SolidButton, { loading: creating || updating, disabled: creatingTag || isLoading || isFetching || isError || (id !== "new" && !(record === null || record === void 0 ? void 0 : record.id)), onClick: function () { return void save(); }, children: "Save Agent" })] })] }), preview && _jsx(ResourcePreviewDialog, { item: preview.item, kind: preview.kind, onClose: function () { return setPreview(null); } }), _jsx(SolidDialog, { open: confirmRefresh, onOpenChange: setConfirmRefresh, header: "Discard unsaved changes?", style: { width: "min(28rem, 94vw)" }, footer: _jsxs(_Fragment, { children: [_jsx(SolidButton, { type: "button", variant: "secondary", onClick: function () { return setConfirmRefresh(false); }, children: "Cancel" }), _jsx(SolidButton, { type: "button", disabled: isFetching, onClick: function () { setConfirmRefresh(false); void refetch(); }, children: "Refresh and discard" })] }), children: _jsx(SolidDialogBody, { children: _jsx("p", { children: "You have unsaved changes. Refreshing will discard them and load the latest agent content." }) }) }), _jsx(SolidDialog, { open: activateDialogOpen, onOpenChange: function (open) { if (!activating)
|
|
868
933
|
setActivateDialogOpen(open); }, header: "Activate agent with a new config version?", style: { width: "min(34rem, 94vw)" }, footer: _jsxs(_Fragment, { children: [_jsx(SolidButton, { type: "button", variant: "secondary", disabled: activating, onClick: function () { return setActivateDialogOpen(false); }, children: "Cancel" }), _jsx(SolidButton, { type: "button", loading: activating || creating || updating, disabled: creatingTag || creating || updating || activating || activationWaiting, onClick: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
869
934
|
var saved;
|
|
@@ -880,20 +945,20 @@ export function AgentRegistryEditorPage() {
|
|
|
880
945
|
return [2 /*return*/];
|
|
881
946
|
}
|
|
882
947
|
});
|
|
883
|
-
}); }, 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)) ?
|
|
948
|
+
}); }, 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)) ?
|
|
884
949
|
_jsx("div", { className: "agent-editor__empty", children: "This agent could not be loaded." }) : (record === null || record === void 0 ? void 0 : record.id) ?
|
|
885
950
|
_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) {
|
|
886
951
|
setPendingSecret(null);
|
|
887
952
|
setSecretEnvVarError("");
|
|
888
|
-
} }, header: "Set secret environment variable", style: { width: "min(34rem, 94vw)" }, footer: _jsxs("div", { className: "agent-editor__secret-dialog-actions", children: [_jsx(SolidButton, { type: "button", variant: "secondary", onClick: function () { setPendingSecret(null); setSecretEnvVarError(""); }, children: "Cancel" }), _jsx(SolidButton, { type: "button", onClick: commitSecretEnvVar, children: "Use secret" })] }), children: _jsx(SolidDialogBody, { className: "agent-editor__secret-dialog-body", children: _jsxs("div", { className: "agent-editor__secret-dialog", children: [_jsxs("p", { children: ["Choose the environment variable name AgentHub will set for ", _jsx("strong", { children: (
|
|
953
|
+
} }, header: "Set secret environment variable", style: { width: "min(34rem, 94vw)" }, footer: _jsxs("div", { className: "agent-editor__secret-dialog-actions", children: [_jsx(SolidButton, { type: "button", variant: "secondary", onClick: function () { setPendingSecret(null); setSecretEnvVarError(""); }, children: "Cancel" }), _jsx(SolidButton, { type: "button", onClick: commitSecretEnvVar, children: "Use secret" })] }), children: _jsx(SolidDialogBody, { className: "agent-editor__secret-dialog-body", children: _jsxs("div", { className: "agent-editor__secret-dialog", children: [_jsxs("p", { children: ["Choose the environment variable name AgentHub will set for ", _jsx("strong", { children: (_r = (_q = pendingSecret === null || pendingSecret === void 0 ? void 0 : pendingSecret.displayName) !== null && _q !== void 0 ? _q : pendingSecret === null || pendingSecret === void 0 ? void 0 : pendingSecret.name) !== null && _r !== void 0 ? _r : pendingSecret === null || pendingSecret === void 0 ? void 0 : pendingSecret.key }), ". The default is the secret name."] }), _jsxs("label", { className: "agent-editor__field", children: [_jsx("span", { children: "Environment variable name" }), _jsx(SolidInput, { autoFocus: true, value: secretEnvVarDraft, "aria-invalid": Boolean(secretEnvVarError), onChange: function (event) { setSecretEnvVarDraft(event.target.value); setSecretEnvVarError(""); } }), secretEnvVarError && _jsx("small", { className: "agent-editor__error", children: secretEnvVarError })] })] }) }) }), (record === null || record === void 0 ? void 0 : record.id) && _jsx(SolidDialog, { open: testAgentOpen, dismissible: false, onOpenChange: function (open) {
|
|
889
954
|
setTestAgentOpen(open);
|
|
890
955
|
writeTestAgentPrefs(record.id, { open: open });
|
|
891
956
|
}, onHide: function () {
|
|
892
957
|
setTestAgentOpen(false);
|
|
893
958
|
writeTestAgentPrefs(record.id, { open: false });
|
|
894
|
-
}, showHeader: false, overlayClassName: "agent-editor__test-dialog-overlay", ariaLabel: "Test ".concat((
|
|
959
|
+
}, showHeader: false, overlayClassName: "agent-editor__test-dialog-overlay", ariaLabel: "Test ".concat((_s = record.name) !== null && _s !== void 0 ? _s : "SolidX Agent"), className: "agent-editor__test-dialog", style: testAgentWindowMode === "maximized"
|
|
895
960
|
? { position: "fixed", inset: 16, width: "auto", maxWidth: "none", height: "auto", maxHeight: "none", transform: "none", borderRadius: 14, padding: 0, display: "flex", flexDirection: "column", overflow: "hidden" }
|
|
896
|
-
: { position: "fixed", top: 16, right: 16, bottom: 16, left: "auto", width: "min(28rem, calc(100vw - 32px))", maxWidth: "none", height: "auto", maxHeight: "none", transform: "none", borderRadius: 14, padding: 0, display: "flex", flexDirection: "column", overflow: "hidden" }, children: _jsx("div", { className: "agent-editor__test-dialog-body", children: _jsx(SolidAgentEmbedded, { agentRuntime: "agentHub", agentId: record.id, agentVersion: record.configVersion, title: (
|
|
961
|
+
: { position: "fixed", top: 16, right: 16, bottom: 16, left: "auto", width: "min(28rem, calc(100vw - 32px))", maxWidth: "none", height: "auto", maxHeight: "none", transform: "none", borderRadius: 14, padding: 0, display: "flex", flexDirection: "column", overflow: "hidden" }, children: _jsx("div", { className: "agent-editor__test-dialog-body", children: _jsx(SolidAgentEmbedded, { agentRuntime: "agentHub", agentId: record.id, agentVersion: record.configVersion, title: (_t = record.name) !== null && _t !== void 0 ? _t : "SolidX Agent", requiredInputs: parseInputs(record.requiredInputs), height: "100%", className: "agent-editor__test-chat", windowControls: {
|
|
897
962
|
mode: testAgentWindowMode,
|
|
898
963
|
onDock: function () { setTestAgentWindowMode("docked"); writeTestAgentPrefs(record.id, { mode: "docked" }); },
|
|
899
964
|
onMaximize: function () { setTestAgentWindowMode("maximized"); writeTestAgentPrefs(record.id, { mode: "maximized" }); },
|