@solidxai/core-ui 0.1.20 → 0.1.21-beta.2
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/common/FileReaderExt.d.ts.map +1 -1
- package/dist/components/common/FileReaderExt.js +22 -11
- package/dist/components/common/FileReaderExt.js.map +1 -1
- package/dist/components/common/FileReaderExt.tsx +27 -14
- package/dist/components/common/SocialMediaLogin.d.ts.map +1 -1
- package/dist/components/common/SocialMediaLogin.js +1 -1
- package/dist/components/common/SocialMediaLogin.js.map +1 -1
- package/dist/components/common/SocialMediaLogin.tsx +50 -19
- package/dist/components/common/SolidPopupContainer.js +1 -1
- package/dist/components/common/SolidPopupContainer.js.map +1 -1
- package/dist/components/common/SolidPopupContainer.tsx +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.d.ts +1 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.d.ts.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js +46 -19
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.tsx +69 -14
- package/dist/components/common/solid-export.css +75 -0
- package/dist/components/core/card/CardItem.d.ts.map +1 -1
- package/dist/components/core/card/CardItem.js +13 -2
- package/dist/components/core/card/CardItem.js.map +1 -1
- package/dist/components/core/card/CardItem.tsx +13 -2
- package/dist/components/core/card/SolidCardView.js +2 -2
- package/dist/components/core/card/SolidCardView.js.map +1 -1
- package/dist/components/core/card/SolidCardView.tsx +2 -2
- package/dist/components/core/chatter/SolidChatterAuditMessage.css +68 -0
- package/dist/components/core/chatter/SolidChatterAuditMessage.d.ts +1 -0
- package/dist/components/core/chatter/SolidChatterAuditMessage.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterAuditMessage.js +20 -2
- package/dist/components/core/chatter/SolidChatterAuditMessage.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterAuditMessage.tsx +49 -12
- package/dist/components/core/common/SolidGenericImport/SolidImport.module.css +71 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.js +83 -1
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.module.css +45 -1
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.tsx +106 -2
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionChatFormWidget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionChatFormWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionChatFormWidget.js +163 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionChatFormWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionChatFormWidget.module.css +86 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionChatFormWidget.tsx +129 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionComparisonHeaderAction.d.ts +23 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionComparisonHeaderAction.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionComparisonHeaderAction.js +270 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionComparisonHeaderAction.js.map +1 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionComparisonHeaderAction.module.css +167 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionComparisonHeaderAction.tsx +270 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionConfigVersionListWidget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionConfigVersionListWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionConfigVersionListWidget.js +67 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionConfigVersionListWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionConfigVersionListWidget.module.css +68 -0
- package/dist/components/core/extension/solid-core/agentSession/AgentSessionConfigVersionListWidget.tsx +107 -0
- package/dist/components/core/form/SolidFormFieldRender.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormFieldRender.js +2 -1
- package/dist/components/core/form/SolidFormFieldRender.js.map +1 -1
- package/dist/components/core/form/SolidFormFieldRender.tsx +6 -3
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +29 -4
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +27 -5
- package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.js +4 -4
- package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.tsx +15 -3
- package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.js +1 -1
- package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.tsx +5 -4
- package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.js +3 -5
- package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.tsx +7 -8
- package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.js +2 -1
- package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.tsx +6 -1
- package/dist/components/core/form/fields/SolidEmailField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.js +2 -1
- package/dist/components/core/form/fields/SolidEmailField.js.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.tsx +6 -1
- package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +3 -3
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.tsx +11 -5
- package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.js +1 -1
- package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.tsx +5 -3
- package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.js +2 -2
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.tsx +10 -4
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +4 -4
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +8 -6
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +3 -3
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +7 -5
- package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.js +4 -3
- package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.tsx +21 -4
- package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.js +2 -1
- package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.tsx +5 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js +2 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.tsx +6 -3
- package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.js +6 -5
- package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.tsx +26 -7
- package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.js +3 -2
- package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.tsx +11 -2
- package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.js +1 -1
- package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.tsx +5 -3
- package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanCard.js +13 -2
- package/dist/components/core/kanban/KanbanCard.js.map +1 -1
- package/dist/components/core/kanban/KanbanCard.tsx +13 -2
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +18 -11
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +10 -6
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +49 -38
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +20 -21
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +2 -2
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +4 -4
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +3 -3
- package/dist/components/core/solid-agent/AgentContextPill.d.ts +9 -0
- package/dist/components/core/solid-agent/AgentContextPill.d.ts.map +1 -0
- package/dist/components/core/solid-agent/AgentContextPill.js +92 -0
- package/dist/components/core/solid-agent/AgentContextPill.js.map +1 -0
- package/dist/components/core/solid-agent/AgentContextPill.tsx +175 -0
- package/dist/components/core/solid-agent/AgentModelIndicator.d.ts +29 -3
- package/dist/components/core/solid-agent/AgentModelIndicator.d.ts.map +1 -1
- package/dist/components/core/solid-agent/AgentModelIndicator.js +279 -4
- package/dist/components/core/solid-agent/AgentModelIndicator.js.map +1 -1
- package/dist/components/core/solid-agent/AgentModelIndicator.tsx +546 -18
- package/dist/components/core/solid-agent/SolidAgent.module.css +1271 -128
- package/dist/components/core/solid-agent/SolidAgentChat.d.ts +6 -1
- package/dist/components/core/solid-agent/SolidAgentChat.d.ts.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentChat.js +693 -68
- package/dist/components/core/solid-agent/SolidAgentChat.js.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentChat.tsx +832 -62
- 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 +19 -13
- package/dist/components/core/solid-agent/SolidAgentEmbedded.js.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentEmbedded.tsx +40 -12
- package/dist/components/core/solid-agent/SolidAgentHost.d.ts.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentHost.js +84 -1
- package/dist/components/core/solid-agent/SolidAgentHost.js.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentHost.tsx +75 -2
- package/dist/components/core/solid-agent/agentEvents.d.ts +4 -1
- package/dist/components/core/solid-agent/agentEvents.d.ts.map +1 -1
- package/dist/components/core/solid-agent/agentEvents.js +108 -27
- package/dist/components/core/solid-agent/agentEvents.js.map +1 -1
- package/dist/components/core/solid-agent/agentEvents.ts +105 -14
- package/dist/components/core/solid-agent/agentFormat.d.ts.map +1 -1
- package/dist/components/core/solid-agent/agentFormat.js +80 -9
- package/dist/components/core/solid-agent/agentFormat.js.map +1 -1
- package/dist/components/core/solid-agent/agentFormat.ts +85 -8
- package/dist/components/core/solid-agent/client/agentPublicEvents.d.ts +88 -0
- package/dist/components/core/solid-agent/client/agentPublicEvents.d.ts.map +1 -0
- package/dist/components/core/solid-agent/client/agentPublicEvents.js +26 -0
- package/dist/components/core/solid-agent/client/agentPublicEvents.js.map +1 -0
- package/dist/components/core/solid-agent/client/agentPublicEvents.ts +66 -0
- package/dist/components/core/solid-agent/client/agentRest.d.ts +23 -2
- package/dist/components/core/solid-agent/client/agentRest.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentRest.js +223 -1
- package/dist/components/core/solid-agent/client/agentRest.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentRest.ts +173 -5
- package/dist/components/core/solid-agent/client/agentRuntime.d.ts +38 -5
- package/dist/components/core/solid-agent/client/agentRuntime.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentRuntime.js +400 -59
- package/dist/components/core/solid-agent/client/agentRuntime.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentRuntime.ts +322 -32
- package/dist/components/core/solid-agent/client/agentSocket.d.ts +28 -6
- package/dist/components/core/solid-agent/client/agentSocket.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentSocket.js +206 -39
- package/dist/components/core/solid-agent/client/agentSocket.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentSocket.ts +153 -24
- package/dist/components/core/solid-agent/client/beforeUserMessageSend.d.ts +9 -0
- package/dist/components/core/solid-agent/client/beforeUserMessageSend.d.ts.map +1 -0
- package/dist/components/core/solid-agent/client/beforeUserMessageSend.js +53 -0
- package/dist/components/core/solid-agent/client/beforeUserMessageSend.js.map +1 -0
- package/dist/components/core/solid-agent/client/beforeUserMessageSend.ts +26 -0
- package/dist/components/core/solid-agent/composer/AgentComposer.d.ts +3 -1
- package/dist/components/core/solid-agent/composer/AgentComposer.d.ts.map +1 -1
- package/dist/components/core/solid-agent/composer/AgentComposer.js +37 -21
- package/dist/components/core/solid-agent/composer/AgentComposer.js.map +1 -1
- package/dist/components/core/solid-agent/composer/AgentComposer.tsx +113 -71
- package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.d.ts.map +1 -1
- package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.js +4 -3
- package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.js.map +1 -1
- package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.tsx +4 -2
- package/dist/components/core/solid-agent/embed/agentEmbedProtocol.d.ts +29 -0
- package/dist/components/core/solid-agent/embed/agentEmbedProtocol.d.ts.map +1 -1
- package/dist/components/core/solid-agent/embed/agentEmbedProtocol.js +45 -2
- package/dist/components/core/solid-agent/embed/agentEmbedProtocol.js.map +1 -1
- package/dist/components/core/solid-agent/embed/agentEmbedProtocol.ts +49 -2
- package/dist/components/core/solid-agent/embed/agentEmbedSamples.d.ts +1 -0
- package/dist/components/core/solid-agent/embed/agentEmbedSamples.d.ts.map +1 -1
- package/dist/components/core/solid-agent/embed/agentEmbedSamples.js +2 -1
- package/dist/components/core/solid-agent/embed/agentEmbedSamples.js.map +1 -1
- package/dist/components/core/solid-agent/embed/agentEmbedSamples.ts +15 -1
- package/dist/components/core/solid-agent/sdk/solidAgent.d.ts +4 -1
- package/dist/components/core/solid-agent/sdk/solidAgent.d.ts.map +1 -1
- package/dist/components/core/solid-agent/sdk/solidAgent.js.map +1 -1
- package/dist/components/core/solid-agent/sdk/solidAgent.ts +2 -2
- 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 +46 -36
- package/dist/components/core/solid-agent/thread/AgentThread.js.map +1 -1
- package/dist/components/core/solid-agent/thread/AgentThread.tsx +65 -62
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.d.ts +2 -2
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.d.ts.map +1 -1
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.js +9 -3
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.js.map +1 -1
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.tsx +12 -3
- package/dist/components/core/solid-agent/thread/inlineWidget.d.ts +15 -0
- package/dist/components/core/solid-agent/thread/inlineWidget.d.ts.map +1 -1
- package/dist/components/core/solid-agent/thread/inlineWidget.js +170 -19
- package/dist/components/core/solid-agent/thread/inlineWidget.js.map +1 -1
- package/dist/components/core/solid-agent/thread/inlineWidget.ts +164 -15
- package/dist/components/core/solid-agent/types.d.ts +86 -4
- package/dist/components/core/solid-agent/types.d.ts.map +1 -1
- package/dist/components/core/solid-agent/types.js +2 -0
- package/dist/components/core/solid-agent/types.js.map +1 -1
- package/dist/components/core/solid-agent/types.ts +76 -4
- package/dist/components/core/solid-agent/useAgentAvailability.d.ts +3 -1
- package/dist/components/core/solid-agent/useAgentAvailability.d.ts.map +1 -1
- package/dist/components/core/solid-agent/useAgentAvailability.js +16 -7
- package/dist/components/core/solid-agent/useAgentAvailability.js.map +1 -1
- package/dist/components/core/solid-agent/useAgentAvailability.ts +13 -6
- 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 +7 -4
- package/dist/components/core/solid-agent/useAgentChat.js.map +1 -1
- package/dist/components/core/solid-agent/useAgentChat.ts +9 -5
- package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.d.ts +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.d.ts.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.js +7 -38
- package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.tsx +8 -51
- package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.d.ts.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.js +12 -4
- package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.tsx +18 -0
- package/dist/components/core/solid-agent/widgets/SolidNavigationIntentChatWidget.d.ts +4 -0
- package/dist/components/core/solid-agent/widgets/SolidNavigationIntentChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidNavigationIntentChatWidget.js +30 -0
- package/dist/components/core/solid-agent/widgets/SolidNavigationIntentChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidNavigationIntentChatWidget.tsx +41 -0
- package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.js +2 -1
- package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.tsx +2 -2
- package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.d.ts.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.js +3 -1
- package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.tsx +3 -2
- package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.d.ts +1 -1
- package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.d.ts.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.js +77 -10
- package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.tsx +96 -18
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.d.ts.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.js +1 -2
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.tsx +1 -3
- package/dist/components/core/solid-agent/widgets/solidChatWidgets.module.css +101 -76
- package/dist/components/core/solid-ai/SolidAiChat.d.ts.map +1 -1
- package/dist/components/core/solid-ai/SolidAiChat.js +2 -2
- package/dist/components/core/solid-ai/SolidAiChat.js.map +1 -1
- package/dist/components/core/solid-ai/SolidAiChat.tsx +12 -10
- package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
- package/dist/components/core/tree/SolidTreeView.js +42 -44
- package/dist/components/core/tree/SolidTreeView.js.map +1 -1
- package/dist/components/core/tree/SolidTreeView.tsx +2 -20
- package/dist/components/layout/AdminTopHeader.d.ts.map +1 -1
- package/dist/components/layout/AdminTopHeader.js +20 -4
- package/dist/components/layout/AdminTopHeader.js.map +1 -1
- package/dist/components/layout/AdminTopHeader.tsx +19 -4
- package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
- package/dist/components/layout/user-profile-menu.js +12 -8
- package/dist/components/layout/user-profile-menu.js.map +1 -1
- package/dist/components/layout/user-profile-menu.tsx +26 -7
- package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts +2 -1
- package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidCodeEditor.js +3 -2
- package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +3 -0
- package/dist/helpers/adminViewRefresh.d.ts +13 -0
- package/dist/helpers/adminViewRefresh.d.ts.map +1 -0
- package/dist/helpers/adminViewRefresh.js +14 -0
- package/dist/helpers/adminViewRefresh.js.map +1 -0
- package/dist/helpers/adminViewRefresh.ts +26 -0
- package/dist/helpers/eventBus.d.ts +1 -0
- package/dist/helpers/eventBus.d.ts.map +1 -1
- package/dist/helpers/eventBus.js +1 -0
- package/dist/helpers/eventBus.js.map +1 -1
- package/dist/helpers/eventBus.ts +1 -0
- package/dist/helpers/fileTypeIcon.d.ts.map +1 -1
- package/dist/helpers/fileTypeIcon.js +4 -1
- package/dist/helpers/fileTypeIcon.js.map +1 -1
- package/dist/helpers/fileTypeIcon.tsx +15 -0
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +8 -0
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +8 -0
- package/dist/helpers/routePaths.d.ts +16 -0
- package/dist/helpers/routePaths.d.ts.map +1 -1
- package/dist/helpers/routePaths.js +71 -0
- package/dist/helpers/routePaths.js.map +1 -1
- package/dist/helpers/routePaths.ts +75 -0
- package/dist/redux/api/solidEntityApi.d.ts +1 -1
- package/dist/redux/api/solidEntityApi.js +5 -2
- package/dist/redux/api/solidEntityApi.js.map +1 -1
- package/dist/redux/api/solidEntityApi.tsx +5 -2
- package/dist/redux/features/agentSlice.d.ts +3 -1
- package/dist/redux/features/agentSlice.d.ts.map +1 -1
- package/dist/redux/features/agentSlice.js +7 -3
- package/dist/redux/features/agentSlice.js.map +1 -1
- package/dist/redux/features/agentSlice.ts +17 -5
- package/dist/redux/store/StoreProvider.d.ts.map +1 -1
- package/dist/redux/store/StoreProvider.js +46 -5
- package/dist/redux/store/StoreProvider.js.map +1 -1
- package/dist/redux/store/StoreProvider.tsx +48 -5
- package/dist/redux/store/createSolidStore.d.ts +3 -1
- package/dist/redux/store/createSolidStore.d.ts.map +1 -1
- package/dist/redux/store/createSolidStore.js +2 -1
- package/dist/redux/store/createSolidStore.js.map +1 -1
- package/dist/redux/store/createSolidStore.ts +2 -1
- package/dist/resources/globals.css +31 -4
- package/dist/resources/solid-custom.css +136 -0
- package/dist/resources/solid-tailwind-generated.css +1 -1
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.css +124 -0
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.d.ts +3 -0
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.js +144 -0
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.tsx +164 -0
- package/dist/routes/pages/admin/core/AgentConfigVersionsPanel.d.ts +6 -0
- package/dist/routes/pages/admin/core/AgentConfigVersionsPanel.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/AgentConfigVersionsPanel.js +52 -0
- package/dist/routes/pages/admin/core/AgentConfigVersionsPanel.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentConfigVersionsPanel.tsx +53 -0
- package/dist/routes/pages/admin/core/AgentHubModuleField.css +15 -0
- package/dist/routes/pages/admin/core/AgentHubModuleField.d.ts +22 -0
- package/dist/routes/pages/admin/core/AgentHubModuleField.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/AgentHubModuleField.js +42 -0
- package/dist/routes/pages/admin/core/AgentHubModuleField.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentHubModuleField.tsx +54 -0
- package/dist/routes/pages/admin/core/AgentHubTagsField.d.ts +3 -1
- package/dist/routes/pages/admin/core/AgentHubTagsField.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentHubTagsField.js +3 -3
- package/dist/routes/pages/admin/core/AgentHubTagsField.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentHubTagsField.tsx +7 -3
- package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.js +6 -2
- package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.tsx +5 -3
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.css +23 -2
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js +284 -135
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.tsx +179 -27
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js +22 -15
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.tsx +17 -7
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js +21 -15
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.tsx +16 -9
- package/dist/routes/pages/admin/core/ArchivedChatterMessagesPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/ArchivedChatterMessagesPage.js +149 -37
- package/dist/routes/pages/admin/core/ArchivedChatterMessagesPage.js.map +1 -1
- package/dist/routes/pages/admin/core/ArchivedChatterMessagesPage.tsx +283 -73
- package/dist/routes/pages/admin/core/CardPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/CardPage.js +9 -1
- package/dist/routes/pages/admin/core/CardPage.js.map +1 -1
- package/dist/routes/pages/admin/core/CardPage.tsx +9 -1
- package/dist/routes/pages/admin/core/DatasourceIntrospectionPage.css +361 -37
- package/dist/routes/pages/admin/core/DatasourceIntrospectionPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/DatasourceIntrospectionPage.js +1 -1
- package/dist/routes/pages/admin/core/DatasourceIntrospectionPage.js.map +1 -1
- package/dist/routes/pages/admin/core/DatasourceIntrospectionPage.tsx +2 -0
- package/dist/routes/pages/admin/core/KanbanPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/KanbanPage.js +9 -1
- package/dist/routes/pages/admin/core/KanbanPage.js.map +1 -1
- package/dist/routes/pages/admin/core/KanbanPage.tsx +9 -1
- package/dist/routes/pages/admin/core/ListPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/ListPage.js +10 -1
- package/dist/routes/pages/admin/core/ListPage.js.map +1 -1
- package/dist/routes/pages/admin/core/ListPage.tsx +10 -1
- package/dist/routes/pages/admin/core/TreePage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/TreePage.js +9 -1
- package/dist/routes/pages/admin/core/TreePage.js.map +1 -1
- package/dist/routes/pages/admin/core/TreePage.tsx +9 -1
- package/dist/routes/pages/admin/core/agentConfigComparison.d.ts +84 -0
- package/dist/routes/pages/admin/core/agentConfigComparison.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/agentConfigComparison.js +75 -0
- package/dist/routes/pages/admin/core/agentConfigComparison.js.map +1 -0
- package/dist/routes/pages/admin/core/agentConfigComparison.ts +40 -0
- package/dist/routes/pages/embed/AgentEmbedPage.d.ts.map +1 -1
- package/dist/routes/pages/embed/AgentEmbedPage.js +67 -4
- package/dist/routes/pages/embed/AgentEmbedPage.js.map +1 -1
- package/dist/routes/pages/embed/AgentEmbedPage.tsx +61 -4
- 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/package.json +1 -1
|
@@ -2170,6 +2170,7 @@ export function DatasourceIntrospectionPage() {
|
|
|
2170
2170
|
value={drawerDraft.userKeyField}
|
|
2171
2171
|
options={drawerUserKeyOptions}
|
|
2172
2172
|
placeholder="Select user key field"
|
|
2173
|
+
native={false}
|
|
2173
2174
|
onChange={(event) => changeUserKeyField(event.value)}
|
|
2174
2175
|
/>
|
|
2175
2176
|
</div>
|
|
@@ -2227,6 +2228,7 @@ export function DatasourceIntrospectionPage() {
|
|
|
2227
2228
|
id="sdix-legacy-type"
|
|
2228
2229
|
value={drawerDraft.legacyTableType}
|
|
2229
2230
|
options={mappingStrategyOptions}
|
|
2231
|
+
native={false}
|
|
2230
2232
|
onChange={(event) => updateLegacyTableType(event.value)}
|
|
2231
2233
|
/>
|
|
2232
2234
|
<small className="sdix-inline-note">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/KanbanPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KanbanPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/KanbanPage.tsx"],"names":[],"mappings":"AAYA,wBAAgB,UAAU,4CAiCzB"}
|
|
@@ -11,13 +11,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { SolidKanbanView } from "../../../../components/core/kanban/SolidKanbanView";
|
|
14
|
-
import { registerKanbanView, unregisterKanbanView } from "../../../../components/core/kanban/kanbanViewRegistry";
|
|
14
|
+
import { getKanbanView, registerKanbanView, unregisterKanbanView } from "../../../../components/core/kanban/kanbanViewRegistry";
|
|
15
15
|
import { camelCase } from "lodash";
|
|
16
16
|
import { useCallback, useEffect } from "react";
|
|
17
17
|
import { useParams } from "react-router-dom";
|
|
18
18
|
import { storeCurrentModelViewContext } from "../../../../helpers/modelViewPersistence";
|
|
19
19
|
import { usePathname } from "../../../../hooks/usePathname";
|
|
20
20
|
import { useSearchParams } from "../../../../hooks/useSearchParams";
|
|
21
|
+
import { isMatchingAdminViewRefresh, ADMIN_VIEW_REFRESH_REQUESTED } from "../../../../helpers/adminViewRefresh";
|
|
22
|
+
import { eventBus } from "../../../../helpers/eventBus";
|
|
21
23
|
export function KanbanPage() {
|
|
22
24
|
var params = useParams();
|
|
23
25
|
var pathname = usePathname();
|
|
@@ -41,6 +43,12 @@ export function KanbanPage() {
|
|
|
41
43
|
var currentUrl = search ? "".concat(pathname, "?").concat(search) : pathname;
|
|
42
44
|
storeCurrentModelViewContext(currentUrl);
|
|
43
45
|
}, [pathname, search]);
|
|
46
|
+
useEffect(function () { return eventBus.on(ADMIN_VIEW_REFRESH_REQUESTED, function (request) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (isMatchingAdminViewRefresh(request, { moduleName: moduleName, modelName: modelName, viewName: "kanban" })) {
|
|
49
|
+
(_a = getKanbanView(kanbanId)) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
50
|
+
}
|
|
51
|
+
}); }, [kanbanId, moduleName, modelName]);
|
|
44
52
|
return _jsx(SolidKanbanView, __assign({ ref: setKanbanRef }, params, { embeded: false, moduleName: moduleName, modelName: modelName }), kanbanId);
|
|
45
53
|
}
|
|
46
54
|
//# sourceMappingURL=KanbanPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanPage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/KanbanPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AAErF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"KanbanPage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/KanbanPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AAErF,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAChI,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,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AAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,UAAG,QAAQ,cAAI,MAAM,CAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC/D,4BAA4B,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAEvB,SAAS,CAAC,cAAM,OAAA,QAAQ,CAAC,EAAE,CAA0B,4BAA4B,EAAE,UAAC,OAAO;;QACzF,IAAI,0BAA0B,CAAC,OAAO,EAAE,EAAE,UAAU,YAAA,EAAE,SAAS,WAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE;YACtF,MAAA,aAAa,CAAC,QAAQ,CAAC,0CAAE,OAAO,EAAE,CAAC;SACpC;IACH,CAAC,CAAC,EAJc,CAId,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;IAEvC,OAAO,KAAC,eAAe,aAAC,GAAG,EAAE,YAAY,IAAqB,MAAM,IAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,KAAlF,QAAQ,CAA8E,CAAC;AACzI,CAAC","sourcesContent":["import { SolidKanbanView } from \"../../../../components/core/kanban/SolidKanbanView\";\nimport type { SolidKanbanViewHandle } from \"../../../../components/core/kanban/SolidKanbanView\";\nimport { getKanbanView, registerKanbanView, unregisterKanbanView } from \"../../../../components/core/kanban/kanbanViewRegistry\";\nimport { camelCase } from \"lodash\";\nimport { useCallback, useEffect } from \"react\";\nimport { useParams } from \"react-router-dom\";\nimport { storeCurrentModelViewContext } from \"../../../../helpers/modelViewPersistence\";\nimport { usePathname } from \"../../../../hooks/usePathname\";\nimport { useSearchParams } from \"../../../../hooks/useSearchParams\";\nimport { isMatchingAdminViewRefresh, ADMIN_VIEW_REFRESH_REQUESTED, type AdminViewRefreshRequest } from \"../../../../helpers/adminViewRefresh\";\nimport { eventBus } from \"../../../../helpers/eventBus\";\n\nexport function KanbanPage() {\n const params = useParams();\n const pathname = usePathname();\n const searchParams = useSearchParams();\n const search = searchParams.toString();\n const moduleName = params.moduleName || \"\";\n const modelName = params.modelName ? camelCase(params.modelName) : \"\";\n const menuItemId = searchParams.get(\"menuItemId\") || \"\";\n const menuItemName = searchParams.get(\"menuItemName\") || \"\";\n const actionId = searchParams.get(\"actionId\") || \"\";\n const actionName = searchParams.get(\"actionName\") || \"\";\n const kanbanId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;\n\n const setKanbanRef = useCallback((handle: SolidKanbanViewHandle | null) => {\n if (handle) {\n registerKanbanView(kanbanId, handle);\n return;\n }\n unregisterKanbanView(kanbanId);\n }, [kanbanId]);\n\n useEffect(() => {\n const currentUrl = search ? `${pathname}?${search}` : pathname;\n storeCurrentModelViewContext(currentUrl);\n }, [pathname, search]);\n\n useEffect(() => eventBus.on<AdminViewRefreshRequest>(ADMIN_VIEW_REFRESH_REQUESTED, (request) => {\n if (isMatchingAdminViewRefresh(request, { moduleName, modelName, viewName: \"kanban\" })) {\n getKanbanView(kanbanId)?.refresh();\n }\n }), [kanbanId, moduleName, modelName]);\n\n return <SolidKanbanView ref={setKanbanRef} key={kanbanId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;\n}\n"]}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { SolidKanbanView } from "../../../../components/core/kanban/SolidKanbanView";
|
|
2
2
|
import type { SolidKanbanViewHandle } from "../../../../components/core/kanban/SolidKanbanView";
|
|
3
|
-
import { registerKanbanView, unregisterKanbanView } from "../../../../components/core/kanban/kanbanViewRegistry";
|
|
3
|
+
import { getKanbanView, registerKanbanView, unregisterKanbanView } from "../../../../components/core/kanban/kanbanViewRegistry";
|
|
4
4
|
import { camelCase } from "lodash";
|
|
5
5
|
import { useCallback, useEffect } from "react";
|
|
6
6
|
import { useParams } from "react-router-dom";
|
|
7
7
|
import { storeCurrentModelViewContext } from "../../../../helpers/modelViewPersistence";
|
|
8
8
|
import { usePathname } from "../../../../hooks/usePathname";
|
|
9
9
|
import { useSearchParams } from "../../../../hooks/useSearchParams";
|
|
10
|
+
import { isMatchingAdminViewRefresh, ADMIN_VIEW_REFRESH_REQUESTED, type AdminViewRefreshRequest } from "../../../../helpers/adminViewRefresh";
|
|
11
|
+
import { eventBus } from "../../../../helpers/eventBus";
|
|
10
12
|
|
|
11
13
|
export function KanbanPage() {
|
|
12
14
|
const params = useParams();
|
|
@@ -34,5 +36,11 @@ export function KanbanPage() {
|
|
|
34
36
|
storeCurrentModelViewContext(currentUrl);
|
|
35
37
|
}, [pathname, search]);
|
|
36
38
|
|
|
39
|
+
useEffect(() => eventBus.on<AdminViewRefreshRequest>(ADMIN_VIEW_REFRESH_REQUESTED, (request) => {
|
|
40
|
+
if (isMatchingAdminViewRefresh(request, { moduleName, modelName, viewName: "kanban" })) {
|
|
41
|
+
getKanbanView(kanbanId)?.refresh();
|
|
42
|
+
}
|
|
43
|
+
}), [kanbanId, moduleName, modelName]);
|
|
44
|
+
|
|
37
45
|
return <SolidKanbanView ref={setKanbanRef} key={kanbanId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;
|
|
38
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/ListPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/ListPage.tsx"],"names":[],"mappings":"AAYA,wBAAgB,QAAQ,4CA4CvB"}
|
|
@@ -14,10 +14,12 @@ import { SolidListView } from "../../../../components/core/list/SolidListView";
|
|
|
14
14
|
import { camelCase } from "lodash";
|
|
15
15
|
import { useCallback, useEffect } from "react";
|
|
16
16
|
import { useParams, useSearchParams } from "react-router-dom";
|
|
17
|
-
import { registerListView, unregisterListView } from "../../../../components/core/list/listViewRegistry";
|
|
17
|
+
import { getListView, registerListView, unregisterListView } from "../../../../components/core/list/listViewRegistry";
|
|
18
18
|
import { usePathname } from "../../../../hooks/usePathname";
|
|
19
19
|
import { useRouter } from "../../../../hooks/useRouter";
|
|
20
20
|
import { resolveRetainedModelViewRoute, storeCurrentModelViewContext } from "../../../../helpers/modelViewPersistence";
|
|
21
|
+
import { isMatchingAdminViewRefresh, ADMIN_VIEW_REFRESH_REQUESTED } from "../../../../helpers/adminViewRefresh";
|
|
22
|
+
import { eventBus } from "../../../../helpers/eventBus";
|
|
21
23
|
export function ListPage() {
|
|
22
24
|
var params = useParams();
|
|
23
25
|
var searchParams = useSearchParams()[0];
|
|
@@ -47,6 +49,13 @@ export function ListPage() {
|
|
|
47
49
|
}
|
|
48
50
|
storeCurrentModelViewContext(currentUrl);
|
|
49
51
|
}, [pathname, search]);
|
|
52
|
+
useEffect(function () { return eventBus.on(ADMIN_VIEW_REFRESH_REQUESTED, function (request) {
|
|
53
|
+
var _a;
|
|
54
|
+
if (isMatchingAdminViewRefresh(request, { moduleName: moduleName, modelName: modelName, viewName: "list" })) {
|
|
55
|
+
// The registered handle is the page's active list view; its refresh retains current filters.
|
|
56
|
+
(_a = getListView(listId)) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
57
|
+
}
|
|
58
|
+
}); }, [listId, moduleName, modelName]);
|
|
50
59
|
return _jsx(SolidListView, __assign({ ref: setListRef }, params, { embeded: false, moduleName: moduleName, modelName: modelName }), listId);
|
|
51
60
|
}
|
|
52
61
|
//# sourceMappingURL=ListPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListPage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/ListPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,O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E,EAAE,UAAU,YAAA,EAAE,SAAS,WAAA,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE;YACpF,6FAA6F;YAC7F,MAAA,WAAW,CAAC,MAAM,CAAC,0CAAE,OAAO,EAAE,CAAC;SAChC;IACH,CAAC,CAAC,EALc,CAKd,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;IAErC,OAAO,KAAC,aAAa,aAAC,GAAG,EAAE,UAAU,IAAmB,MAAM,IAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,KAAhF,MAAM,CAA8E,CAAC;AACnI,CAAC","sourcesContent":["import { SolidListView } from \"../../../../components/core/list/SolidListView\";\nimport { camelCase } from \"lodash\";\nimport { useCallback, useEffect } from \"react\";\nimport { useParams, useSearchParams } from \"react-router-dom\";\nimport type { SolidListViewHandle } from \"../../../../components/core/list/SolidListView\";\nimport { getListView, registerListView, unregisterListView } from \"../../../../components/core/list/listViewRegistry\";\nimport { usePathname } from \"../../../../hooks/usePathname\";\nimport { useRouter } from \"../../../../hooks/useRouter\";\nimport { resolveRetainedModelViewRoute, storeCurrentModelViewContext } from \"../../../../helpers/modelViewPersistence\";\nimport { isMatchingAdminViewRefresh, ADMIN_VIEW_REFRESH_REQUESTED, type AdminViewRefreshRequest } from \"../../../../helpers/adminViewRefresh\";\nimport { eventBus } from \"../../../../helpers/eventBus\";\n\nexport function ListPage() {\n const params = useParams();\n const [searchParams] = useSearchParams();\n const pathname = usePathname();\n const router = useRouter();\n const search = searchParams.toString();\n\n const moduleName = params.moduleName || \"\";\n const modelName = params.modelName ? camelCase(params.modelName) : \"\";\n\n const menuItemId = searchParams.get(\"menuItemId\") || \"\";\n const menuItemName = searchParams.get(\"menuItemName\") || \"\";\n const actionId = searchParams.get(\"actionId\") || \"\";\n const actionName = searchParams.get(\"actionName\") || \"\";\n\n const listId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;\n\n const setListRef = useCallback((handle: SolidListViewHandle | null) => {\n if (handle) {\n registerListView(listId, handle);\n return;\n }\n unregisterListView(listId);\n }, [listId]);\n\n useEffect(() => {\n const currentUrl = search ? `${pathname}?${search}` : pathname;\n const retainedUrl = resolveRetainedModelViewRoute(currentUrl);\n if (retainedUrl !== currentUrl) {\n router.replace(retainedUrl);\n return;\n }\n\n storeCurrentModelViewContext(currentUrl);\n }, [pathname, search]);\n\n useEffect(() => eventBus.on<AdminViewRefreshRequest>(ADMIN_VIEW_REFRESH_REQUESTED, (request) => {\n if (isMatchingAdminViewRefresh(request, { moduleName, modelName, viewName: \"list\" })) {\n // The registered handle is the page's active list view; its refresh retains current filters.\n getListView(listId)?.refresh();\n }\n }), [listId, moduleName, modelName]);\n\n return <SolidListView ref={setListRef} key={listId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;\n}\n"]}
|
|
@@ -3,10 +3,12 @@ import { camelCase } from "lodash";
|
|
|
3
3
|
import { useCallback, useEffect } from "react";
|
|
4
4
|
import { useParams, useSearchParams } from "react-router-dom";
|
|
5
5
|
import type { SolidListViewHandle } from "../../../../components/core/list/SolidListView";
|
|
6
|
-
import { registerListView, unregisterListView } from "../../../../components/core/list/listViewRegistry";
|
|
6
|
+
import { getListView, registerListView, unregisterListView } from "../../../../components/core/list/listViewRegistry";
|
|
7
7
|
import { usePathname } from "../../../../hooks/usePathname";
|
|
8
8
|
import { useRouter } from "../../../../hooks/useRouter";
|
|
9
9
|
import { resolveRetainedModelViewRoute, storeCurrentModelViewContext } from "../../../../helpers/modelViewPersistence";
|
|
10
|
+
import { isMatchingAdminViewRefresh, ADMIN_VIEW_REFRESH_REQUESTED, type AdminViewRefreshRequest } from "../../../../helpers/adminViewRefresh";
|
|
11
|
+
import { eventBus } from "../../../../helpers/eventBus";
|
|
10
12
|
|
|
11
13
|
export function ListPage() {
|
|
12
14
|
const params = useParams();
|
|
@@ -44,5 +46,12 @@ export function ListPage() {
|
|
|
44
46
|
storeCurrentModelViewContext(currentUrl);
|
|
45
47
|
}, [pathname, search]);
|
|
46
48
|
|
|
49
|
+
useEffect(() => eventBus.on<AdminViewRefreshRequest>(ADMIN_VIEW_REFRESH_REQUESTED, (request) => {
|
|
50
|
+
if (isMatchingAdminViewRefresh(request, { moduleName, modelName, viewName: "list" })) {
|
|
51
|
+
// The registered handle is the page's active list view; its refresh retains current filters.
|
|
52
|
+
getListView(listId)?.refresh();
|
|
53
|
+
}
|
|
54
|
+
}), [listId, moduleName, modelName]);
|
|
55
|
+
|
|
47
56
|
return <SolidListView ref={setListRef} key={listId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;
|
|
48
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreePage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/TreePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TreePage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/TreePage.tsx"],"names":[],"mappings":"AAWA,wBAAgB,QAAQ,4CAmCvB"}
|
|
@@ -13,10 +13,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import { camelCase } from "lodash";
|
|
14
14
|
import { useCallback, useEffect } from "react";
|
|
15
15
|
import { useParams, useSearchParams } from "react-router-dom";
|
|
16
|
-
import { registerTree, unregisterTree } from "../../../../components/core/tree/treeViewRegistry";
|
|
16
|
+
import { getTree, registerTree, unregisterTree } from "../../../../components/core/tree/treeViewRegistry";
|
|
17
17
|
import { SolidTreeView } from "../../../../components/core/tree/SolidTreeView";
|
|
18
18
|
import { storeCurrentModelViewContext } from "../../../../helpers/modelViewPersistence";
|
|
19
19
|
import { usePathname } from "../../../../hooks/usePathname";
|
|
20
|
+
import { isMatchingAdminViewRefresh, ADMIN_VIEW_REFRESH_REQUESTED } from "../../../../helpers/adminViewRefresh";
|
|
21
|
+
import { eventBus } from "../../../../helpers/eventBus";
|
|
20
22
|
export function TreePage() {
|
|
21
23
|
var params = useParams();
|
|
22
24
|
var searchParams = useSearchParams()[0];
|
|
@@ -40,6 +42,12 @@ export function TreePage() {
|
|
|
40
42
|
var currentUrl = search ? "".concat(pathname, "?").concat(search) : pathname;
|
|
41
43
|
storeCurrentModelViewContext(currentUrl);
|
|
42
44
|
}, [pathname, search]);
|
|
45
|
+
useEffect(function () { return eventBus.on(ADMIN_VIEW_REFRESH_REQUESTED, function (request) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (isMatchingAdminViewRefresh(request, { moduleName: moduleName, modelName: modelName, viewName: "tree" })) {
|
|
48
|
+
(_a = getTree(treeId)) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
49
|
+
}
|
|
50
|
+
}); }, [treeId, moduleName, modelName]);
|
|
43
51
|
return _jsx(SolidTreeView, __assign({ ref: setTreeRef }, params, { embeded: false, moduleName: moduleName, modelName: modelName }), moduleName + modelName + menuItemId + menuItemName + actionId + actionName);
|
|
44
52
|
}
|
|
45
53
|
//# sourceMappingURL=TreePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreePage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/TreePage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"TreePage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/TreePage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,M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AI,QAAQ,cAAI,UAAU,CAAE,CAAC;IAEzG,IAAM,UAAU,GAAG,WAAW,CAAC,UAAC,MAAkC;QAChE,IAAI,MAAM,EAAE;YACV,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAC7B,OAAO;SACR;QACD,cAAc,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,SAAS,CAAC;QACR,IAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,UAAG,QAAQ,cAAI,MAAM,CAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC/D,4BAA4B,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAEvB,SAAS,CAAC,cAAM,OAAA,QAAQ,CAAC,EAAE,CAA0B,4BAA4B,EAAE,UAAC,OAAO;;QACzF,IAAI,0BAA0B,CAAC,OAAO,EAAE,EAAE,UAAU,YAAA,EAAE,SAAS,WAAA,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE;YACpF,MAAA,OAAO,CAAC,MAAM,CAAC,0CAAE,OAAO,EAAE,CAAC;SAC5B;IACH,CAAC,CAAC,EAJc,CAId,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;IAErC,OAAO,KAAC,aAAa,aAAC,GAAG,EAAE,UAAU,IAAuF,MAAM,IAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,KAApJ,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAA8E,CAAC;AACvM,CAAC","sourcesContent":["import { camelCase } from \"lodash\";\nimport { useCallback, useEffect } from \"react\";\nimport { useParams, useSearchParams } from \"react-router-dom\";\nimport type { SolidTreeViewHandle } from \"../../../../components/core/tree/SolidTreeView\";\nimport { getTree, registerTree, unregisterTree } from \"../../../../components/core/tree/treeViewRegistry\";\nimport { SolidTreeView } from \"../../../../components/core/tree/SolidTreeView\";\nimport { storeCurrentModelViewContext } from \"../../../../helpers/modelViewPersistence\";\nimport { usePathname } from \"../../../../hooks/usePathname\";\nimport { isMatchingAdminViewRefresh, ADMIN_VIEW_REFRESH_REQUESTED, type AdminViewRefreshRequest } from \"../../../../helpers/adminViewRefresh\";\nimport { eventBus } from \"../../../../helpers/eventBus\";\n\nexport function TreePage() {\n const params = useParams();\n const [searchParams] = useSearchParams();\n const pathname = usePathname();\n const search = searchParams.toString();\n\n const moduleName = params.moduleName || \"\";\n const modelName = params.modelName ? camelCase(params.modelName) : \"\";\n const menuItemId = searchParams.get(\"menuItemId\") || \"\";\n const menuItemName = searchParams.get(\"menuItemName\") || \"\";\n const actionId = searchParams.get(\"actionId\") || \"\";\n const actionName = searchParams.get(\"actionName\") || \"\";\n\n const treeId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;\n\n const setTreeRef = useCallback((handle: SolidTreeViewHandle | null) => {\n if (handle) {\n registerTree(treeId, handle);\n return;\n }\n unregisterTree(treeId);\n }, [treeId]);\n\n useEffect(() => {\n const currentUrl = search ? `${pathname}?${search}` : pathname;\n storeCurrentModelViewContext(currentUrl);\n }, [pathname, search]);\n\n useEffect(() => eventBus.on<AdminViewRefreshRequest>(ADMIN_VIEW_REFRESH_REQUESTED, (request) => {\n if (isMatchingAdminViewRefresh(request, { moduleName, modelName, viewName: \"tree\" })) {\n getTree(treeId)?.refresh();\n }\n }), [treeId, moduleName, modelName]);\n\n return <SolidTreeView ref={setTreeRef} key={moduleName + modelName + menuItemId + menuItemName + actionId + actionName} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;\n}\n"]}
|
|
@@ -2,10 +2,12 @@ import { camelCase } from "lodash";
|
|
|
2
2
|
import { useCallback, useEffect } from "react";
|
|
3
3
|
import { useParams, useSearchParams } from "react-router-dom";
|
|
4
4
|
import type { SolidTreeViewHandle } from "../../../../components/core/tree/SolidTreeView";
|
|
5
|
-
import { registerTree, unregisterTree } from "../../../../components/core/tree/treeViewRegistry";
|
|
5
|
+
import { getTree, registerTree, unregisterTree } from "../../../../components/core/tree/treeViewRegistry";
|
|
6
6
|
import { SolidTreeView } from "../../../../components/core/tree/SolidTreeView";
|
|
7
7
|
import { storeCurrentModelViewContext } from "../../../../helpers/modelViewPersistence";
|
|
8
8
|
import { usePathname } from "../../../../hooks/usePathname";
|
|
9
|
+
import { isMatchingAdminViewRefresh, ADMIN_VIEW_REFRESH_REQUESTED, type AdminViewRefreshRequest } from "../../../../helpers/adminViewRefresh";
|
|
10
|
+
import { eventBus } from "../../../../helpers/eventBus";
|
|
9
11
|
|
|
10
12
|
export function TreePage() {
|
|
11
13
|
const params = useParams();
|
|
@@ -35,5 +37,11 @@ export function TreePage() {
|
|
|
35
37
|
storeCurrentModelViewContext(currentUrl);
|
|
36
38
|
}, [pathname, search]);
|
|
37
39
|
|
|
40
|
+
useEffect(() => eventBus.on<AdminViewRefreshRequest>(ADMIN_VIEW_REFRESH_REQUESTED, (request) => {
|
|
41
|
+
if (isMatchingAdminViewRefresh(request, { moduleName, modelName, viewName: "tree" })) {
|
|
42
|
+
getTree(treeId)?.refresh();
|
|
43
|
+
}
|
|
44
|
+
}), [treeId, moduleName, modelName]);
|
|
45
|
+
|
|
38
46
|
return <SolidTreeView ref={setTreeRef} key={moduleName + modelName + menuItemId + menuItemName + actionId + actionName} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;
|
|
39
47
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export type ConfigVersion = {
|
|
2
|
+
id: number;
|
|
3
|
+
versionNumber: number;
|
|
4
|
+
name: string | null;
|
|
5
|
+
description: string | null;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
};
|
|
8
|
+
export type ComparisonStatus = "matched" | "changed" | "added" | "removed";
|
|
9
|
+
export type ComparisonSide = {
|
|
10
|
+
label: string;
|
|
11
|
+
summary?: string;
|
|
12
|
+
};
|
|
13
|
+
export type ComparisonRow = {
|
|
14
|
+
id?: string;
|
|
15
|
+
status: ComparisonStatus;
|
|
16
|
+
diffKey: string | null;
|
|
17
|
+
left: ComparisonSide | null;
|
|
18
|
+
right: ComparisonSide | null;
|
|
19
|
+
};
|
|
20
|
+
export type ConfigComparison = {
|
|
21
|
+
schemaVersion: number;
|
|
22
|
+
agent: {
|
|
23
|
+
id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
};
|
|
27
|
+
versions: {
|
|
28
|
+
left: ConfigVersion;
|
|
29
|
+
right: ConfigVersion;
|
|
30
|
+
};
|
|
31
|
+
sections: {
|
|
32
|
+
systemPrompt: ComparisonRow & {
|
|
33
|
+
title: string;
|
|
34
|
+
};
|
|
35
|
+
skills?: {
|
|
36
|
+
title: string;
|
|
37
|
+
status: ComparisonStatus;
|
|
38
|
+
rows: ComparisonRow[];
|
|
39
|
+
};
|
|
40
|
+
modelConfiguration: {
|
|
41
|
+
title: string;
|
|
42
|
+
status: ComparisonStatus;
|
|
43
|
+
groups: {
|
|
44
|
+
id: string;
|
|
45
|
+
title: string;
|
|
46
|
+
status: ComparisonStatus;
|
|
47
|
+
fields: {
|
|
48
|
+
key: string;
|
|
49
|
+
label: string;
|
|
50
|
+
status: ComparisonStatus;
|
|
51
|
+
left: string | number | null;
|
|
52
|
+
right: string | number | null;
|
|
53
|
+
}[];
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export type ConfigDiff = {
|
|
59
|
+
diffKey: string;
|
|
60
|
+
title: string;
|
|
61
|
+
language: string;
|
|
62
|
+
oldValue: string;
|
|
63
|
+
newValue: string;
|
|
64
|
+
rows?: {
|
|
65
|
+
id: string;
|
|
66
|
+
title: string;
|
|
67
|
+
oldValue: string;
|
|
68
|
+
newValue: string;
|
|
69
|
+
}[];
|
|
70
|
+
};
|
|
71
|
+
export declare const CONFIG_COMPARE_PATH = "/admin/core/solid-core/agent-registry/editor/compare-config";
|
|
72
|
+
export declare function formatConfigDate(value: string): string;
|
|
73
|
+
export declare function loadConfigComparison(request: {
|
|
74
|
+
agentId: number;
|
|
75
|
+
leftVersionId: number;
|
|
76
|
+
rightVersionId: number;
|
|
77
|
+
}, signal?: AbortSignal): Promise<ConfigComparison>;
|
|
78
|
+
export declare function loadConfigDiff(request: {
|
|
79
|
+
agentId: number;
|
|
80
|
+
leftVersionId: number;
|
|
81
|
+
rightVersionId: number;
|
|
82
|
+
diffKey: string;
|
|
83
|
+
}, signal?: AbortSignal): Promise<ConfigDiff>;
|
|
84
|
+
//# sourceMappingURL=agentConfigComparison.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentConfigComparison.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/agentConfigComparison.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AACtI,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAC3E,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAA;CAAE,CAAC;AACzJ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AC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,CAAC;AAE/E,eAAO,MAAM,mBAAmB,gEAAgE,CAAC;AAEjG,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,UAG7C;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAIvK;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAI5K"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { solidGet } from "../../../../http/solidHttp";
|
|
38
|
+
export var CONFIG_COMPARE_PATH = "/admin/core/solid-core/agent-registry/editor/compare-config";
|
|
39
|
+
export function formatConfigDate(value) {
|
|
40
|
+
var date = new Date(value);
|
|
41
|
+
return Number.isNaN(date.getTime()) ? "Date unavailable" : new Intl.DateTimeFormat(undefined, { dateStyle: "medium", timeStyle: "short" }).format(date);
|
|
42
|
+
}
|
|
43
|
+
export function loadConfigComparison(request, signal) {
|
|
44
|
+
var _a;
|
|
45
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
+
var response;
|
|
47
|
+
return __generator(this, function (_b) {
|
|
48
|
+
switch (_b.label) {
|
|
49
|
+
case 0: return [4 /*yield*/, solidGet("/agent-config-version/compare", { params: request, signal: signal })];
|
|
50
|
+
case 1:
|
|
51
|
+
response = _b.sent();
|
|
52
|
+
if (!((_a = response.data.data) === null || _a === void 0 ? void 0 : _a.sections))
|
|
53
|
+
throw new Error("The server returned an invalid comparison.");
|
|
54
|
+
return [2 /*return*/, response.data.data];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export function loadConfigDiff(request, signal) {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
62
|
+
var response;
|
|
63
|
+
return __generator(this, function (_c) {
|
|
64
|
+
switch (_c.label) {
|
|
65
|
+
case 0: return [4 /*yield*/, solidGet("/agent-config-version/compare/diff", { params: request, signal: signal })];
|
|
66
|
+
case 1:
|
|
67
|
+
response = _c.sent();
|
|
68
|
+
if (typeof ((_a = response.data.data) === null || _a === void 0 ? void 0 : _a.oldValue) !== "string" || typeof ((_b = response.data.data) === null || _b === void 0 ? void 0 : _b.newValue) !== "string")
|
|
69
|
+
throw new Error("The server returned an invalid diff.");
|
|
70
|
+
return [2 /*return*/, response.data.data];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=agentConfigComparison.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentConfigComparison.js","sourceRoot":"","sources":["../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,QAAQ,IAAI,OAAO,CAAA,MAAA,QAAQ,CAAC,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAA,KAAK,QAAQ;wBAAE,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;oBAClK,sBAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAC;;;;CAC3B","sourcesContent":["import { solidGet } from \"../../../../http/solidHttp\";\n\nexport type ConfigVersion = { id: number; versionNumber: number; name: string | null; description: string | null; createdAt: string };\nexport type ComparisonStatus = \"matched\" | \"changed\" | \"added\" | \"removed\";\nexport type ComparisonSide = { label: string; summary?: string };\nexport type ComparisonRow = { id?: string; status: ComparisonStatus; diffKey: string | null; left: ComparisonSide | null; right: ComparisonSide | null };\nexport type ConfigComparison = {\n schemaVersion: number;\n agent: { id: number; name: string; title?: string };\n versions: { left: ConfigVersion; right: ConfigVersion };\n sections: {\n systemPrompt: ComparisonRow & { title: string };\n skills?: { title: string; status: ComparisonStatus; rows: ComparisonRow[] };\n modelConfiguration: { title: string; status: ComparisonStatus; groups: {\n id: string; title: string; status: ComparisonStatus;\n fields: { key: string; label: string; status: ComparisonStatus; left: string | number | null; right: string | number | null }[];\n }[] };\n };\n};\nexport type ConfigDiff = { diffKey: string; title: string; language: string; oldValue: string; newValue: string;\n rows?: { id: string; title: string; oldValue: string; newValue: string }[] };\n\nexport const CONFIG_COMPARE_PATH = \"/admin/core/solid-core/agent-registry/editor/compare-config\";\n\nexport function formatConfigDate(value: string) {\n const date = new Date(value);\n return Number.isNaN(date.getTime()) ? \"Date unavailable\" : new Intl.DateTimeFormat(undefined, { dateStyle: \"medium\", timeStyle: \"short\" }).format(date);\n}\n\nexport async function loadConfigComparison(request: { agentId: number; leftVersionId: number; rightVersionId: number }, signal?: AbortSignal): Promise<ConfigComparison> {\n const response = await solidGet<{ data: ConfigComparison }>(\"/agent-config-version/compare\", { params: request, signal });\n if (!response.data.data?.sections) throw new Error(\"The server returned an invalid comparison.\");\n return response.data.data;\n}\n\nexport async function loadConfigDiff(request: { agentId: number; leftVersionId: number; rightVersionId: number; diffKey: string }, signal?: AbortSignal): Promise<ConfigDiff> {\n const response = await solidGet<{ data: ConfigDiff }>(\"/agent-config-version/compare/diff\", { params: request, signal });\n if (typeof response.data.data?.oldValue !== \"string\" || typeof response.data.data?.newValue !== \"string\") throw new Error(\"The server returned an invalid diff.\");\n return response.data.data;\n}\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { solidGet } from "../../../../http/solidHttp";
|
|
2
|
+
|
|
3
|
+
export type ConfigVersion = { id: number; versionNumber: number; name: string | null; description: string | null; createdAt: string };
|
|
4
|
+
export type ComparisonStatus = "matched" | "changed" | "added" | "removed";
|
|
5
|
+
export type ComparisonSide = { label: string; summary?: string };
|
|
6
|
+
export type ComparisonRow = { id?: string; status: ComparisonStatus; diffKey: string | null; left: ComparisonSide | null; right: ComparisonSide | null };
|
|
7
|
+
export type ConfigComparison = {
|
|
8
|
+
schemaVersion: number;
|
|
9
|
+
agent: { id: number; name: string; title?: string };
|
|
10
|
+
versions: { left: ConfigVersion; right: ConfigVersion };
|
|
11
|
+
sections: {
|
|
12
|
+
systemPrompt: ComparisonRow & { title: string };
|
|
13
|
+
skills?: { title: string; status: ComparisonStatus; rows: ComparisonRow[] };
|
|
14
|
+
modelConfiguration: { title: string; status: ComparisonStatus; groups: {
|
|
15
|
+
id: string; title: string; status: ComparisonStatus;
|
|
16
|
+
fields: { key: string; label: string; status: ComparisonStatus; left: string | number | null; right: string | number | null }[];
|
|
17
|
+
}[] };
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type ConfigDiff = { diffKey: string; title: string; language: string; oldValue: string; newValue: string;
|
|
21
|
+
rows?: { id: string; title: string; oldValue: string; newValue: string }[] };
|
|
22
|
+
|
|
23
|
+
export const CONFIG_COMPARE_PATH = "/admin/core/solid-core/agent-registry/editor/compare-config";
|
|
24
|
+
|
|
25
|
+
export function formatConfigDate(value: string) {
|
|
26
|
+
const date = new Date(value);
|
|
27
|
+
return Number.isNaN(date.getTime()) ? "Date unavailable" : new Intl.DateTimeFormat(undefined, { dateStyle: "medium", timeStyle: "short" }).format(date);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export async function loadConfigComparison(request: { agentId: number; leftVersionId: number; rightVersionId: number }, signal?: AbortSignal): Promise<ConfigComparison> {
|
|
31
|
+
const response = await solidGet<{ data: ConfigComparison }>("/agent-config-version/compare", { params: request, signal });
|
|
32
|
+
if (!response.data.data?.sections) throw new Error("The server returned an invalid comparison.");
|
|
33
|
+
return response.data.data;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export async function loadConfigDiff(request: { agentId: number; leftVersionId: number; rightVersionId: number; diffKey: string }, signal?: AbortSignal): Promise<ConfigDiff> {
|
|
37
|
+
const response = await solidGet<{ data: ConfigDiff }>("/agent-config-version/compare/diff", { params: request, signal });
|
|
38
|
+
if (typeof response.data.data?.oldValue !== "string" || typeof response.data.data?.newValue !== "string") throw new Error("The server returned an invalid diff.");
|
|
39
|
+
return response.data.data;
|
|
40
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentEmbedPage.d.ts","sourceRoot":"","sources":["../../../../src/routes/pages/embed/AgentEmbedPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentEmbedPage.d.ts","sourceRoot":"","sources":["../../../../src/routes/pages/embed/AgentEmbedPage.tsx"],"names":[],"mappings":"AAiBA,4GAA4G;AAC5G,wBAAgB,cAAc,4CA+M7B"}
|