@solidxai/core-ui 0.1.21-beta.0 → 0.1.21-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/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/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 +164 -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 +133 -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 +15 -4
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +14 -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 +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +5 -3
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +5 -3
- 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/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 +5 -1
- package/dist/components/core/solid-agent/SolidAgentChat.d.ts.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentChat.js +557 -49
- package/dist/components/core/solid-agent/SolidAgentChat.js.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentChat.tsx +786 -49
- package/dist/components/core/solid-agent/SolidAgentEmbedded.d.ts +3 -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 +35 -11
- package/dist/components/core/solid-agent/SolidAgentHost.d.ts.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentHost.js +5 -0
- package/dist/components/core/solid-agent/SolidAgentHost.js.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentHost.tsx +6 -0
- 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 -25
- package/dist/components/core/solid-agent/agentEvents.js.map +1 -1
- package/dist/components/core/solid-agent/agentEvents.ts +100 -11
- 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/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 +22 -4
- package/dist/components/core/solid-agent/client/agentRuntime.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentRuntime.js +234 -34
- package/dist/components/core/solid-agent/client/agentRuntime.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentRuntime.ts +203 -21
- package/dist/components/core/solid-agent/client/agentSocket.d.ts +25 -6
- package/dist/components/core/solid-agent/client/agentSocket.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentSocket.js +187 -38
- package/dist/components/core/solid-agent/client/agentSocket.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentSocket.ts +142 -23
- 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/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 +66 -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 +73 -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 +68 -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 +4 -3
- package/dist/components/core/solid-agent/useAgentChat.js.map +1 -1
- package/dist/components/core/solid-agent/useAgentChat.ts +4 -3
- 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/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 +62 -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/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +6 -0
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +6 -0
- package/dist/helpers/routePaths.d.ts +3 -0
- package/dist/helpers/routePaths.d.ts.map +1 -1
- package/dist/helpers/routePaths.js +32 -0
- package/dist/helpers/routePaths.js.map +1 -1
- package/dist/helpers/routePaths.ts +27 -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 +2 -1
- package/dist/redux/features/agentSlice.d.ts.map +1 -1
- package/dist/redux/features/agentSlice.js +5 -1
- package/dist/redux/features/agentSlice.js.map +1 -1
- package/dist/redux/features/agentSlice.ts +9 -2
- 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 +94 -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/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 +252 -111
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.tsx +167 -21
- 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/agentConfigComparison.d.ts +84 -0
- package/dist/routes/pages/admin/core/agentConfigComparison.d.ts.map +1 -0
- package/dist/{components/core/kanban/SolidSelectionDynamicFilterElement.js → routes/pages/admin/core/agentConfigComparison.js} +36 -34
- 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 +1 -1
- package/dist/routes/pages/embed/AgentEmbedPage.js.map +1 -1
- package/dist/routes/pages/embed/AgentEmbedPage.tsx +3 -1
- 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
- package/dist/components/auth/SolidOTPVerify.d.ts +0 -3
- package/dist/components/auth/SolidOTPVerify.d.ts.map +0 -1
- package/dist/components/auth/SolidOTPVerify.js +0 -67
- package/dist/components/auth/SolidOTPVerify.js.map +0 -1
- package/dist/components/auth/SolidOTPVerify.tsx +0 -133
- package/dist/components/common/AuthBanner.d.ts +0 -3
- package/dist/components/common/AuthBanner.d.ts.map +0 -1
- package/dist/components/common/AuthBanner.js +0 -15
- package/dist/components/common/AuthBanner.js.map +0 -1
- package/dist/components/common/AuthBanner.tsx +0 -41
- package/dist/components/common/SingleSelectAutoCompleteField.d.ts +0 -2
- package/dist/components/common/SingleSelectAutoCompleteField.d.ts.map +0 -1
- package/dist/components/common/SingleSelectAutoCompleteField.js +0 -92
- package/dist/components/common/SingleSelectAutoCompleteField.js.map +0 -1
- package/dist/components/common/SingleSelectAutoCompleteField.tsx +0 -73
- package/dist/components/common/SolidExportStepper.d.ts +0 -12
- package/dist/components/common/SolidExportStepper.d.ts.map +0 -1
- package/dist/components/common/SolidExportStepper.js +0 -30
- package/dist/components/common/SolidExportStepper.js.map +0 -1
- package/dist/components/common/SolidExportStepper.tsx +0 -135
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +0 -2
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +0 -1
- package/dist/components/core/common/LoadDynamicJsxComponent.js +0 -50
- package/dist/components/core/common/LoadDynamicJsxComponent.js.map +0 -1
- package/dist/components/core/common/LoadDynamicJsxComponent.tsx +0 -70
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts +0 -2
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts.map +0 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js +0 -16
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js.map +0 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.tsx +0 -29
- package/dist/components/core/dashboard/DashboardFilter.d.ts +0 -13
- package/dist/components/core/dashboard/DashboardFilter.d.ts.map +0 -1
- package/dist/components/core/dashboard/DashboardFilter.js +0 -299
- package/dist/components/core/dashboard/DashboardFilter.js.map +0 -1
- package/dist/components/core/dashboard/DashboardFilter.tsx +0 -348
- package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts +0 -3
- package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts.map +0 -1
- package/dist/components/core/dashboard/PrimeDataTableWrapper.js +0 -21
- package/dist/components/core/dashboard/PrimeDataTableWrapper.js.map +0 -1
- package/dist/components/core/dashboard/PrimeDataTableWrapper.tsx +0 -40
- package/dist/components/core/dashboard/SolidDashboard.d.ts +0 -28
- package/dist/components/core/dashboard/SolidDashboard.d.ts.map +0 -1
- package/dist/components/core/dashboard/SolidDashboard.js +0 -183
- package/dist/components/core/dashboard/SolidDashboard.js.map +0 -1
- package/dist/components/core/dashboard/SolidDashboard.module.css +0 -83
- package/dist/components/core/dashboard/SolidDashboard.tsx +0 -263
- package/dist/components/core/dashboard/SolidDashboardBody.d.ts +0 -24
- package/dist/components/core/dashboard/SolidDashboardBody.d.ts.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardBody.js +0 -162
- package/dist/components/core/dashboard/SolidDashboardBody.js.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardBody.tsx +0 -168
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts +0 -2
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js +0 -11
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.tsx +0 -28
- package/dist/components/core/dashboard/SolidDashboardHeader.d.ts +0 -3
- package/dist/components/core/dashboard/SolidDashboardHeader.d.ts.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardHeader.js +0 -6
- package/dist/components/core/dashboard/SolidDashboardHeader.js.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardHeader.tsx +0 -10
- package/dist/components/core/dashboard/SolidDashboardLoading.d.ts +0 -2
- package/dist/components/core/dashboard/SolidDashboardLoading.d.ts.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardLoading.js +0 -10
- package/dist/components/core/dashboard/SolidDashboardLoading.js.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardLoading.tsx +0 -61
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts +0 -3
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.js +0 -12
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.js.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.tsx +0 -32
- package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts +0 -2
- package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardRenderError.js +0 -11
- package/dist/components/core/dashboard/SolidDashboardRenderError.js.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardRenderError.tsx +0 -28
- package/dist/components/core/dashboard/SolidDashboardVariable.d.ts +0 -19
- package/dist/components/core/dashboard/SolidDashboardVariable.d.ts.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardVariable.js +0 -171
- package/dist/components/core/dashboard/SolidDashboardVariable.js.map +0 -1
- package/dist/components/core/dashboard/SolidDashboardVariable.tsx +0 -259
- package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts +0 -9
- package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts.map +0 -1
- package/dist/components/core/dashboard/SolidQuestionRenderer.js +0 -42
- package/dist/components/core/dashboard/SolidQuestionRenderer.js.map +0 -1
- package/dist/components/core/dashboard/SolidQuestionRenderer.tsx +0 -99
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts +0 -9
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts.map +0 -1
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js +0 -35
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js.map +0 -1
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.tsx +0 -48
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts +0 -7
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts.map +0 -1
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js +0 -22
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js.map +0 -1
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.tsx +0 -51
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts +0 -2
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts.map +0 -1
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.js +0 -4
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.js.map +0 -1
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.ts +0 -25
- package/dist/components/core/dashboard/dashboard-utils.d.ts +0 -2
- package/dist/components/core/dashboard/dashboard-utils.d.ts.map +0 -1
- package/dist/components/core/dashboard/dashboard-utils.js +0 -38
- package/dist/components/core/dashboard/dashboard-utils.js.map +0 -1
- package/dist/components/core/dashboard/dashboard-utils.ts +0 -39
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts +0 -10
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts.map +0 -1
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js +0 -16
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js.map +0 -1
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.ts +0 -19
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts +0 -8
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts.map +0 -1
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js +0 -64
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js.map +0 -1
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.ts +0 -30
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts +0 -8
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts.map +0 -1
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js +0 -62
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js.map +0 -1
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.ts +0 -29
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts +0 -4
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts.map +0 -1
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js +0 -23
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js.map +0 -1
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.tsx +0 -36
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.d.ts +0 -2
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.d.ts.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.js +0 -4
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.js.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.ts +0 -3
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.d.ts +0 -8
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.d.ts.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.js +0 -9
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.js.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.ts +0 -17
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js +0 -92
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +0 -68
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js +0 -111
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.tsx +0 -122
- package/dist/components/core/kanban/SolidKanbanViewFields.d.ts +0 -12
- package/dist/components/core/kanban/SolidKanbanViewFields.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidKanbanViewFields.js +0 -145
- package/dist/components/core/kanban/SolidKanbanViewFields.js.map +0 -1
- package/dist/components/core/kanban/SolidKanbanViewFields.tsx +0 -164
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts +0 -2
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js +0 -87
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +0 -1
- package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +0 -59
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts +0 -2
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js.map +0 -1
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +0 -50
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts +0 -2
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js +0 -20
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js.map +0 -1
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.tsx +0 -32
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts +0 -12
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidVarInputsFilterElement.js +0 -81
- package/dist/components/core/kanban/SolidVarInputsFilterElement.js.map +0 -1
- package/dist/components/core/kanban/SolidVarInputsFilterElement.tsx +0 -184
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js +0 -7
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +0 -9
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +0 -16
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js +0 -21
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +0 -23
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +0 -14
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +0 -13
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js +0 -7
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +0 -9
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +0 -12
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js +0 -7
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +0 -9
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +0 -14
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js +0 -16
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +0 -20
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js +0 -7
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +0 -9
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +0 -56
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +0 -140
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +0 -42
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +0 -164
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js +0 -11
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +0 -13
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js +0 -7
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +0 -9
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +0 -14
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +0 -14
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +0 -37
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +0 -121
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +0 -12
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +0 -13
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts +0 -4
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts.map +0 -1
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js +0 -7
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +0 -16
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts +0 -2
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +0 -1
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +0 -39
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +0 -1
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +0 -40
- package/dist/components/core/list/SolidVarInputsFilterElement.d.ts +0 -12
- package/dist/components/core/list/SolidVarInputsFilterElement.d.ts.map +0 -1
- package/dist/components/core/list/SolidVarInputsFilterElement.js +0 -81
- package/dist/components/core/list/SolidVarInputsFilterElement.js.map +0 -1
- package/dist/components/core/list/SolidVarInputsFilterElement.tsx +0 -184
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +0 -3
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +0 -1
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js +0 -87
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +0 -1
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +0 -70
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts +0 -3
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts.map +0 -1
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js +0 -33
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js.map +0 -1
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.tsx +0 -50
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts +0 -3
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts.map +0 -1
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js +0 -158
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js.map +0 -1
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.tsx +0 -185
- package/dist/components/layout/DashboardHeader.d.ts +0 -3
- package/dist/components/layout/DashboardHeader.d.ts.map +0 -1
- package/dist/components/layout/DashboardHeader.js +0 -20
- package/dist/components/layout/DashboardHeader.js.map +0 -1
- package/dist/components/layout/DashboardHeader.tsx +0 -94
- package/dist/helpers/# no such endpoints exist, need to calle +0 -3
- package/dist/helpers/ToastContainer.d.ts +0 -4
- package/dist/helpers/ToastContainer.d.ts.map +0 -1
- package/dist/helpers/ToastContainer.js +0 -49
- package/dist/helpers/ToastContainer.js.map +0 -1
- package/dist/helpers/ToastContainer.tsx +0 -94
- package/dist/helpers/showToast.d.ts +0 -5
- package/dist/helpers/showToast.d.ts.map +0 -1
- package/dist/helpers/showToast.js +0 -17
- package/dist/helpers/showToast.js.map +0 -1
- package/dist/helpers/showToast.ts +0 -13
- package/dist/helpers/studioSandbox.d.ts +0 -31
- package/dist/helpers/studioSandbox.d.ts.map +0 -1
- package/dist/helpers/studioSandbox.js +0 -104
- package/dist/helpers/studioSandbox.js.map +0 -1
- package/dist/helpers/studioSandbox.ts +0 -117
- package/dist/nextAuth/authProviders.d.ts +0 -4
- package/dist/nextAuth/authProviders.d.ts.map +0 -1
- package/dist/nextAuth/authProviders.js +0 -198
- package/dist/nextAuth/authProviders.js.map +0 -1
- package/dist/nextAuth/authProviders.tsx +0 -232
- package/dist/nextAuth/handleLogout.d.ts +0 -2
- package/dist/nextAuth/handleLogout.d.ts.map +0 -1
- package/dist/nextAuth/handleLogout.js +0 -36
- package/dist/nextAuth/handleLogout.js.map +0 -1
- package/dist/nextAuth/handleLogout.tsx +0 -39
- package/dist/nextAuth/refreshAccessToken.d.ts +0 -2
- package/dist/nextAuth/refreshAccessToken.d.ts.map +0 -1
- package/dist/nextAuth/refreshAccessToken.js +0 -24
- package/dist/nextAuth/refreshAccessToken.js.map +0 -1
- package/dist/nextAuth/refreshAccessToken.tsx +0 -28
- package/dist/redux/api/dashboardApi.d.ts +0 -23
- package/dist/redux/api/dashboardApi.d.ts.map +0 -1
- package/dist/redux/api/dashboardApi.js +0 -35
- package/dist/redux/api/dashboardApi.js.map +0 -1
- package/dist/redux/api/dashboardApi.ts +0 -56
- package/dist/redux/api/dashboardLayoutApi.d.ts +0 -24
- package/dist/redux/api/dashboardLayoutApi.d.ts.map +0 -1
- package/dist/redux/api/dashboardLayoutApi.js +0 -34
- package/dist/redux/api/dashboardLayoutApi.js.map +0 -1
- package/dist/redux/api/dashboardLayoutApi.ts +0 -55
- package/dist/redux/api/dashboardQuestionApi.d.ts +0 -5
- package/dist/redux/api/dashboardQuestionApi.d.ts.map +0 -1
- package/dist/redux/api/dashboardQuestionApi.js +0 -18
- package/dist/redux/api/dashboardQuestionApi.js.map +0 -1
- package/dist/redux/api/dashboardQuestionApi.ts +0 -17
- package/dist/redux/features/settingsSlice.d.ts +0 -20
- package/dist/redux/features/settingsSlice.d.ts.map +0 -1
- package/dist/redux/features/settingsSlice.js +0 -39
- package/dist/redux/features/settingsSlice.js.map +0 -1
- package/dist/redux/features/settingsSlice.ts +0 -60
- package/dist/resources/images/Footerbg.png +0 -0
- package/dist/resources/images/LoginBanner.png +0 -0
- package/dist/resources/images/dashboard/Ellipse 1.svg +0 -10
- package/dist/resources/images/dashboard/Rectangle 17.svg +0 -10
- package/dist/resources/images/dashboard/Rectangle 25.svg +0 -11
- package/dist/resources/images/dashboard/image 5.svg +0 -9
- package/dist/resources/images/loginhero.png +0 -0
- package/dist/resources/images/logo.png +0 -0
- package/dist/resources/images/radix-logo-white.png +0 -0
- package/dist/resources/images/radix-logo.png +0 -0
- package/dist/resources/images/signupBanner.png +0 -0
- package/dist/resources/shadcn-base.css +0 -6506
- package/dist/resources/solid-primereact.css +0 -2988
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.css +0 -217
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.d.ts +0 -3
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.d.ts.map +0 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.js +0 -268
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.js.map +0 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.tsx +0 -510
|
@@ -6,6 +6,7 @@ import type { AgentRuntimeType } from "./types";
|
|
|
6
6
|
export type AgentAvailability = {
|
|
7
7
|
ready: boolean;
|
|
8
8
|
enabled: boolean;
|
|
9
|
+
loadFailed: boolean;
|
|
9
10
|
/** Backend URL of the "solidx" runtime (the floating launcher). */
|
|
10
11
|
agentUrl: string | null;
|
|
11
12
|
/** Backend URL per agent type; null when that backend is not configured. */
|
|
@@ -14,7 +15,7 @@ export type AgentAvailability = {
|
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
const NO_URLS: Record<AgentRuntimeType, string | null> = { solidx: null, agentHub: null };
|
|
17
|
-
const UNAVAILABLE: AgentAvailability = { ready: true, enabled: false, agentUrl: null, agentUrls: NO_URLS, canUse: false };
|
|
18
|
+
const UNAVAILABLE: AgentAvailability = { ready: true, enabled: false, loadFailed: true, agentUrl: null, agentUrls: NO_URLS, canUse: false };
|
|
18
19
|
|
|
19
20
|
/** Settings key holding each agent type's backend URL (see solid-core default settings). */
|
|
20
21
|
const URL_SETTING: Record<AgentRuntimeType, string> = {
|
|
@@ -39,7 +40,8 @@ function urlSetting(value: unknown): string | null {
|
|
|
39
40
|
let cached: Promise<AgentAvailability> | null = null;
|
|
40
41
|
|
|
41
42
|
async function loadAvailability(): Promise<AgentAvailability> {
|
|
42
|
-
const
|
|
43
|
+
const config = { params: { agentAvailabilityRefresh: Date.now() } };
|
|
44
|
+
const [settingsRes, meRes] = await Promise.all([solidGet("/setting/wrapped", config), solidGet("/iam/me", config)]);
|
|
43
45
|
const settings = getSettingsMap(settingsRes?.data);
|
|
44
46
|
const enabled = settings.solidAgentEnabled === true || settings.solidAgentEnabled === "true";
|
|
45
47
|
const agentUrls: Record<AgentRuntimeType, string | null> = {
|
|
@@ -47,16 +49,17 @@ async function loadAvailability(): Promise<AgentAvailability> {
|
|
|
47
49
|
agentHub: urlSetting(settings[URL_SETTING.agentHub]),
|
|
48
50
|
};
|
|
49
51
|
const canUse = unwrapUser(meRes?.data)?.canUseAgent === true;
|
|
50
|
-
return { ready: true, enabled, agentUrl: agentUrls.solidx, agentUrls, canUse };
|
|
52
|
+
return { ready: true, enabled, loadFailed: false, agentUrl: agentUrls.solidx, agentUrls, canUse };
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
/**
|
|
54
56
|
* Whether the SolidX Agent can be shown for the current user: the `solidAgentEnabled` setting,
|
|
55
57
|
* the backend URL settings (`solidxAgentBackendUrl`, `solidxAgentHubBackendUrl`), and
|
|
56
|
-
* `canUseAgent` (agent:invoke) from /iam/me.
|
|
58
|
+
* `canUseAgent` (agent:invoke) from /iam/me. Concurrent mounts share one request;
|
|
59
|
+
* later mounts get current settings and permission values.
|
|
57
60
|
*/
|
|
58
61
|
export function useAgentAvailability(enabled = true): AgentAvailability {
|
|
59
|
-
const [state, setState] = useState<AgentAvailability>({ ready: false, enabled: false, agentUrl: null, agentUrls: NO_URLS, canUse: false });
|
|
62
|
+
const [state, setState] = useState<AgentAvailability>({ ready: false, enabled: false, loadFailed: false, agentUrl: null, agentUrls: NO_URLS, canUse: false });
|
|
60
63
|
|
|
61
64
|
useEffect(() => {
|
|
62
65
|
if (!enabled) return;
|
|
@@ -65,7 +68,11 @@ export function useAgentAvailability(enabled = true): AgentAvailability {
|
|
|
65
68
|
cached = null; // retry on the next mount
|
|
66
69
|
return UNAVAILABLE;
|
|
67
70
|
});
|
|
68
|
-
|
|
71
|
+
const request = cached;
|
|
72
|
+
request.then((result) => {
|
|
73
|
+
if (cached === request) cached = null;
|
|
74
|
+
if (alive) setState(result);
|
|
75
|
+
});
|
|
69
76
|
return () => {
|
|
70
77
|
alive = false;
|
|
71
78
|
};
|
|
@@ -17,6 +17,6 @@ export type AgentChatBinding = {
|
|
|
17
17
|
* and its own runtime, opened on mount and closed on unmount. It never touches the
|
|
18
18
|
* launcher's conversation.
|
|
19
19
|
*/
|
|
20
|
-
export declare function useAgentChat(agentRuntime: AgentRuntimeType, agentUrl: string, externalEmbed?: boolean): AgentChatBinding;
|
|
20
|
+
export declare function useAgentChat(agentRuntime: AgentRuntimeType, agentUrl: string, externalEmbed?: boolean, sessionOwnerKey?: string): AgentChatBinding;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=useAgentChat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAgentChat.d.ts","sourceRoot":"","sources":["../../../../src/components/core/solid-agent/useAgentChat.ts"],"names":[],"mappings":"AAEA,OAAqB,EAAE,KAAK,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAsB,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,KAAK,QAAQ,GAAG,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;AAErC,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;IACnB,kFAAkF;IAClF,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,UAAQ,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"useAgentChat.d.ts","sourceRoot":"","sources":["../../../../src/components/core/solid-agent/useAgentChat.ts"],"names":[],"mappings":"AAEA,OAAqB,EAAE,KAAK,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAsB,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,KAAK,QAAQ,GAAG,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;AAErC,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;IACnB,kFAAkF;IAClF,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,UAAQ,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAqChJ"}
|
|
@@ -11,7 +11,7 @@ import { AgentRuntime, ensureAgentRuntime } from "./client/agentRuntime";
|
|
|
11
11
|
* and its own runtime, opened on mount and closed on unmount. It never touches the
|
|
12
12
|
* launcher's conversation.
|
|
13
13
|
*/
|
|
14
|
-
export function useAgentChat(agentRuntime, agentUrl, externalEmbed) {
|
|
14
|
+
export function useAgentChat(agentRuntime, agentUrl, externalEmbed, sessionOwnerKey) {
|
|
15
15
|
if (externalEmbed === void 0) { externalEmbed = false; }
|
|
16
16
|
var shared = agentRuntime === "solidx";
|
|
17
17
|
var storeDispatch = useDispatch();
|
|
@@ -33,13 +33,14 @@ export function useAgentChat(agentRuntime, agentUrl, externalEmbed) {
|
|
|
33
33
|
setSharedRuntime(runtime_1);
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
36
|
+
var persistSession = !externalEmbed || !!sessionOwnerKey;
|
|
37
|
+
var runtime = new AgentRuntime(agentUrl, localDispatch, function () { return localState.current; }, agentRuntime, persistSession, sessionOwnerKey);
|
|
37
38
|
setLocalRuntime(runtime);
|
|
38
39
|
return function () {
|
|
39
40
|
runtime.dispose();
|
|
40
41
|
setLocalRuntime(null);
|
|
41
42
|
};
|
|
42
|
-
}, [shared, agentUrl, agentRuntime, externalEmbed, localDispatch, store, storeDispatch]);
|
|
43
|
+
}, [shared, agentUrl, agentRuntime, externalEmbed, sessionOwnerKey, localDispatch, store, storeDispatch]);
|
|
43
44
|
if (shared) {
|
|
44
45
|
return { agent: sharedState, dispatch: storeDispatch, runtime: (sharedRuntime === null || sharedRuntime === void 0 ? void 0 : sharedRuntime.agentUrl) === agentUrl ? sharedRuntime : null };
|
|
45
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAgentChat.js","sourceRoot":"","sources":["../../../../src/components/core/solid-agent/useAgentChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,YAAiC,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAYzE;;;;;;;;GAQG;AACH,MAAM,UAAU,YAAY,CAAC,YAA8B,EAAE,QAAgB,EAAE,aAAqB;
|
|
1
|
+
{"version":3,"file":"useAgentChat.js","sourceRoot":"","sources":["../../../../src/components/core/solid-agent/useAgentChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,YAAiC,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAYzE;;;;;;;;GAQG;AACH,MAAM,UAAU,YAAY,CAAC,YAA8B,EAAE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IAAI,CAAC,CAAC,eAAe,CAAC;QAC3D,IAAM,OAAO,GAAG,IAAI,YAAY,CAAC,QAAQ,EAAE,aAAa,EAAE,cAAM,OAAA,UAAU,CAAC,OAAO,EAAlB,CAAkB,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC;QACnI,eAAe,CAAC,OAAO,CAAC,CAAC;QACzB,OAAO;YACH,OAAO,CAAC,OAAO,EAAE,CAAC;YAClB,eAAe,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC;IAE1G,IAAI,MAAM,EAAE;QACR,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,QAAQ,MAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KAChI;IACD,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;AACzF,CAAC","sourcesContent":["import { useCallback, useEffect, useReducer, useRef, useState } from \"react\";\nimport { useDispatch, useSelector, useStore } from \"react-redux\";\nimport agentReducer, { type AgentState } from \"../../../redux/features/agentSlice\";\nimport { AgentRuntime, ensureAgentRuntime } from \"./client/agentRuntime\";\nimport type { AgentRuntimeType } from \"./types\";\n\ntype Dispatch = (action: any) => any;\n\nexport type AgentChatBinding = {\n agent: AgentState;\n dispatch: Dispatch;\n /** Null during the first render while the runtime is initialized after commit. */\n runtime: AgentRuntime | null;\n};\n\n/**\n * The state and connection a chat renders from.\n *\n * - \"solidx\": the store's `solidAgent` slice and the shared runtime, so the floating launcher\n * and any embedded \"solidx\" chat show the same conversation.\n * - \"agentHub\": a private thread, reduced by the same agentSlice reducer,\n * and its own runtime, opened on mount and closed on unmount. It never touches the\n * launcher's conversation.\n */\nexport function useAgentChat(agentRuntime: AgentRuntimeType, agentUrl: string, externalEmbed = false, sessionOwnerKey?: string): AgentChatBinding {\n const shared = agentRuntime === \"solidx\";\n\n const storeDispatch = useDispatch();\n const store = useStore();\n const sharedState = useSelector((state: any) => state.solidAgent as AgentState);\n\n // Private thread: kept in a ref so the runtime reads the latest state synchronously.\n const localState = useRef<AgentState>(agentReducer(undefined, { type: \"solidAgent/@@init\" }));\n const [, rerender] = useReducer((count: number) => count + 1, 0);\n const localDispatch = useCallback((action: any) => {\n localState.current = agentReducer(localState.current, action);\n rerender();\n return action;\n }, []);\n\n const [localRuntime, setLocalRuntime] = useState<AgentRuntime | null>(null);\n const [sharedRuntime, setSharedRuntime] = useState<AgentRuntime | null>(null);\n useEffect(() => {\n if (shared) {\n const runtime = ensureAgentRuntime(agentUrl, storeDispatch, () => (store.getState() as any).solidAgent);\n setSharedRuntime(runtime);\n return;\n }\n const persistSession = !externalEmbed || !!sessionOwnerKey;\n const runtime = new AgentRuntime(agentUrl, localDispatch, () => localState.current, agentRuntime, persistSession, sessionOwnerKey);\n setLocalRuntime(runtime);\n return () => {\n runtime.dispose();\n setLocalRuntime(null);\n };\n }, [shared, agentUrl, agentRuntime, externalEmbed, sessionOwnerKey, localDispatch, store, storeDispatch]);\n\n if (shared) {\n return { agent: sharedState, dispatch: storeDispatch, runtime: sharedRuntime?.agentUrl === agentUrl ? sharedRuntime : null };\n }\n return { agent: localState.current, dispatch: localDispatch, runtime: localRuntime };\n}\n"]}
|
|
@@ -22,7 +22,7 @@ export type AgentChatBinding = {
|
|
|
22
22
|
* and its own runtime, opened on mount and closed on unmount. It never touches the
|
|
23
23
|
* launcher's conversation.
|
|
24
24
|
*/
|
|
25
|
-
export function useAgentChat(agentRuntime: AgentRuntimeType, agentUrl: string, externalEmbed = false): AgentChatBinding {
|
|
25
|
+
export function useAgentChat(agentRuntime: AgentRuntimeType, agentUrl: string, externalEmbed = false, sessionOwnerKey?: string): AgentChatBinding {
|
|
26
26
|
const shared = agentRuntime === "solidx";
|
|
27
27
|
|
|
28
28
|
const storeDispatch = useDispatch();
|
|
@@ -46,13 +46,14 @@ export function useAgentChat(agentRuntime: AgentRuntimeType, agentUrl: string, e
|
|
|
46
46
|
setSharedRuntime(runtime);
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const persistSession = !externalEmbed || !!sessionOwnerKey;
|
|
50
|
+
const runtime = new AgentRuntime(agentUrl, localDispatch, () => localState.current, agentRuntime, persistSession, sessionOwnerKey);
|
|
50
51
|
setLocalRuntime(runtime);
|
|
51
52
|
return () => {
|
|
52
53
|
runtime.dispose();
|
|
53
54
|
setLocalRuntime(null);
|
|
54
55
|
};
|
|
55
|
-
}, [shared, agentUrl, agentRuntime, externalEmbed, localDispatch, store, storeDispatch]);
|
|
56
|
+
}, [shared, agentUrl, agentRuntime, externalEmbed, sessionOwnerKey, localDispatch, store, storeDispatch]);
|
|
56
57
|
|
|
57
58
|
if (shared) {
|
|
58
59
|
return { agent: sharedState, dispatch: storeDispatch, runtime: sharedRuntime?.agentUrl === agentUrl ? sharedRuntime : null };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SolidChatWidgetProps } from "../../../../types/solid-core";
|
|
2
2
|
/**
|
|
3
|
-
* Default widget for `ToolCalling`:
|
|
3
|
+
* Default widget for `ToolCalling`: clean borderless row. `ToolProgress` sub-steps show under the
|
|
4
4
|
* header; `ToolResult` sets the status and duration. Expanding shows the Arguments and Result.
|
|
5
5
|
*/
|
|
6
6
|
export declare const DefaultToolCallChatWidget: ({ eventData, live }: SolidChatWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultToolCallChatWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/DefaultToolCallChatWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DefaultToolCallChatWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/DefaultToolCallChatWidget.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAkBpE;;;GAGG;AACH,eAAO,MAAM,yBAAyB,wBAAyB,oBAAoB,4CA8DlF,CAAC"}
|
|
@@ -1,35 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { ChevronRight, Loader2, XCircle, } from "lucide-react";
|
|
4
4
|
import styles from "./solidChatWidgets.module.css";
|
|
5
|
-
import {
|
|
6
|
-
/** Icon for a tool, by name / filesystem action / category (same mapping as the agent-ui). */
|
|
7
|
-
function getToolIcon(name, args) {
|
|
8
|
-
if (name === "bash")
|
|
9
|
-
return Terminal;
|
|
10
|
-
if (name === "filesystem_tool" && typeof (args === null || args === void 0 ? void 0 : args.action) === "string") {
|
|
11
|
-
if (args.action === "read")
|
|
12
|
-
return File;
|
|
13
|
-
if (args.action === "search")
|
|
14
|
-
return Search;
|
|
15
|
-
if (args.action === "edit")
|
|
16
|
-
return Pencil;
|
|
17
|
-
if (args.action === "write")
|
|
18
|
-
return FilePlus;
|
|
19
|
-
}
|
|
20
|
-
switch (toolCategory(name)) {
|
|
21
|
-
case "Context":
|
|
22
|
-
return Search;
|
|
23
|
-
case "Build":
|
|
24
|
-
return FilePen;
|
|
25
|
-
case "Deploy":
|
|
26
|
-
return CloudUpload;
|
|
27
|
-
case "Files":
|
|
28
|
-
return Folder;
|
|
29
|
-
default:
|
|
30
|
-
return Cog;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
5
|
+
import { toolDisplayName } from "../agentFormat";
|
|
33
6
|
var CARD_CLASS = {
|
|
34
7
|
running: styles.ToolCardRunning,
|
|
35
8
|
success: styles.ToolCardDone,
|
|
@@ -38,16 +11,12 @@ var CARD_CLASS = {
|
|
|
38
11
|
};
|
|
39
12
|
function StatusIcon(_a) {
|
|
40
13
|
var status = _a.status;
|
|
41
|
-
if (status === "running")
|
|
42
|
-
return _jsx(Loader2, { size: 13, className: "".concat(styles.ToolCardStatusIcon, " ").concat(styles.Spin) });
|
|
43
|
-
if (status === "warning")
|
|
44
|
-
return _jsx(AlertTriangle, { size: 13, className: styles.ToolCardStatusWarning });
|
|
45
14
|
if (status === "error")
|
|
46
|
-
return _jsx(XCircle, { size:
|
|
47
|
-
return
|
|
15
|
+
return _jsx(XCircle, { size: 12, className: styles.ToolCardStatusError });
|
|
16
|
+
return null;
|
|
48
17
|
}
|
|
49
18
|
/**
|
|
50
|
-
* Default widget for `ToolCalling`:
|
|
19
|
+
* Default widget for `ToolCalling`: clean borderless row. `ToolProgress` sub-steps show under the
|
|
51
20
|
* header; `ToolResult` sets the status and duration. Expanding shows the Arguments and Result.
|
|
52
21
|
*/
|
|
53
22
|
export var DefaultToolCallChatWidget = function (_a) {
|
|
@@ -61,8 +30,8 @@ export var DefaultToolCallChatWidget = function (_a) {
|
|
|
61
30
|
var output = (_d = eventData.output_raw) !== null && _d !== void 0 ? _d : eventData.output;
|
|
62
31
|
var hasArgs = !!args && Object.keys(args).length > 0;
|
|
63
32
|
var expandable = (hasArgs || !!output) && status !== "running";
|
|
64
|
-
var
|
|
65
|
-
return (_jsxs("div", { className: "".concat(styles.ToolCard, " ").concat((_e = CARD_CLASS[status]) !== null && _e !== void 0 ? _e : styles.ToolCardDone), children: [_jsxs("button", { type: "button", className: styles.ToolCardHeaderBtn, onClick: expandable ? function () { return setExpanded(function (value) { return !value; }); } : undefined, "data-expandable": expandable ? "true" : undefined, "aria-expanded": expandable ? expanded : undefined, children: [_jsx(StatusIcon, { status: status }), _jsx(
|
|
33
|
+
var isRunning = live || status === "running";
|
|
34
|
+
return (_jsxs("div", { className: "".concat(styles.ToolCard, " ").concat((_e = CARD_CLASS[status]) !== null && _e !== void 0 ? _e : styles.ToolCardDone), children: [_jsxs("button", { type: "button", className: styles.ToolCardHeaderBtn, onClick: expandable ? function () { return setExpanded(function (value) { return !value; }); } : undefined, "data-expandable": expandable ? "true" : undefined, "aria-expanded": expandable ? expanded : undefined, children: [_jsx(StatusIcon, { status: status }), _jsx("span", { className: styles.ToolCardName, children: live ? "Invoking ".concat(toolDisplayName(toolName, args), "\u2026") : toolDisplayName(toolName, args) }), eventData.summary && _jsx("span", { className: styles.ToolCardDesc, title: eventData.summary, children: eventData.summary }), expandable && _jsx(ChevronRight, { size: 11, className: "".concat(styles.ToolCardChevron, " ").concat(expanded ? styles.ToolCardChevronOpen : "") })] }), isRunning && progress.length > 0 && (_jsx("div", { className: styles.ToolCardProgress, children: progress.map(function (step, index) { return (_jsxs("div", { className: "".concat(styles.ToolProgressItem, " ").concat(step.status === "running" ? styles.ToolProgressRunning : styles.ToolProgressDone), children: [step.status === "running" && _jsx(Loader2, { size: 10, className: styles.Spin }), _jsx("span", { className: styles.ToolProgressLabel, children: step.label })] }, index)); }) })), expanded && (_jsxs("div", { className: styles.ToolCardExpandable, children: [hasArgs && (_jsxs("div", { className: styles.ToolCardOutput, children: [_jsx("div", { className: styles.ToolOutputHeader, children: _jsx("span", { children: "Arguments" }) }), _jsx("pre", { className: styles.ToolOutputText, children: JSON.stringify(args, null, 2) })] })), output && (_jsxs("div", { className: styles.ToolCardOutput, children: [_jsx("div", { className: styles.ToolOutputHeader, children: _jsx("span", { children: "Result" }) }), _jsx("pre", { className: "".concat(styles.ToolOutputText, " ").concat(status === "warning" ? styles.ToolOutputWarning : status === "error" ? styles.ToolOutputError : ""), children: output })] }))] }))] }));
|
|
66
35
|
};
|
|
67
36
|
Object.assign(DefaultToolCallChatWidget, { getExtensionMetadata: function () { return ({
|
|
68
37
|
chatInteraction: { role: "event-renderer", agentSelectable: false },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultToolCallChatWidget.js","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/DefaultToolCallChatWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EACH,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,GAAG,EACH,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,GAEV,MAAM,cAAc,CAAC;AACtB,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAK/E,8FAA8F;AAC9F,SAAS,WAAW,CAAC,IAAY,EAAE,IAA8B;IAC7D,IAAI,IAAI,KAAK,MAAM;QAAE,OAAO,QAAQ,CAAC;IACrC,IAAI,IAAI,KAAK,iBAAiB,IAAI,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,CAAA,KAAK,QAAQ,EAAE;QAChE,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;YAAE,OAAO,IAAI,CAAC;QACxC,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ;YAAE,OAAO,MAAM,CAAC;QAC5C,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;YAAE,OAAO,MAAM,CAAC;QAC1C,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO;YAAE,OAAO,QAAQ,CAAC;KAChD;IACD,QAAQ,YAAY,CAAC,IAAI,CAAC,EAAE;QACxB,KAAK,SAAS;YACV,OAAO,MAAM,CAAC;QAClB,KAAK,OAAO;YACR,OAAO,OAAO,CAAC;QACnB,KAAK,QAAQ;YACT,OAAO,WAAW,CAAC;QACvB,KAAK,OAAO;YACR,OAAO,MAAM,CAAC;QAClB;YACI,OAAO,GAAG,CAAC;KAClB;AACL,CAAC;AAED,I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,KAAK,MAAM,IAAI,CACnD,eAAM,SAAS,EAAE,MAAM,CAAC,oBAAoB,YAAG,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,GAAQ,CAC1F,KALK,KAAK,CAMT,CACT,EAR8B,CAQ9B,CAAC,GACA,CACT,EAEA,QAAQ,IAAI,CACT,eAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,aACpC,OAAO,IAAI,CACR,eAAK,SAAS,EAAE,MAAM,CAAC,cAAc,aACjC,cAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,YACnC,uCAAsB,GACpB,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,GAAO,IAC1E,CACT,EACA,MAAM,IAAI,CACP,eAAK,SAAS,EAAE,MAAM,CAAC,cAAc,aACjC,cAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,YACnC,oCAAmB,GACjB,EACN,cAAK,SAAS,EAAE,UAAG,MAAM,CAAC,cAAc,cAAI,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAE,YAC3I,MAAM,GACL,IACJ,CACT,IACC,CACT,IACC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,yBAAyB,EAAE,EAAE,oBAAoB,EAAE,cAAM,OAAA,CAAC;QACpE,eAAe,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,eAAe,EAAE,KAAK,EAAE;KACtE,CAAC,EAFqE,CAErE,EAAE,CAAC,CAAC","sourcesContent":["import { useState } from \"react\";\nimport {\n AlertTriangle,\n CheckCircle2,\n ChevronRight,\n CloudUpload,\n Cog,\n File,\n FilePen,\n FilePlus,\n Folder,\n Loader2,\n Pencil,\n Search,\n Terminal,\n XCircle,\n type LucideIcon,\n} from \"lucide-react\";\nimport styles from \"./solidChatWidgets.module.css\";\nimport { SolidChatWidgetProps } from \"../../../../types/solid-core\";\nimport { formatDuration, toolCategory, toolDisplayName } from \"../agentFormat\";\n\ntype ToolStatus = \"running\" | \"success\" | \"warning\" | \"error\";\ntype ToolProgressStep = { label: string; status: \"running\" | \"done\"; duration_ms?: number };\n\n/** Icon for a tool, by name / filesystem action / category (same mapping as the agent-ui). */\nfunction getToolIcon(name: string, args?: Record<string, unknown>): LucideIcon {\n if (name === \"bash\") return Terminal;\n if (name === \"filesystem_tool\" && typeof args?.action === \"string\") {\n if (args.action === \"read\") return File;\n if (args.action === \"search\") return Search;\n if (args.action === \"edit\") return Pencil;\n if (args.action === \"write\") return FilePlus;\n }\n switch (toolCategory(name)) {\n case \"Context\":\n return Search;\n case \"Build\":\n return FilePen;\n case \"Deploy\":\n return CloudUpload;\n case \"Files\":\n return Folder;\n default:\n return Cog;\n }\n}\n\nconst CARD_CLASS: Record<ToolStatus, string> = {\n running: styles.ToolCardRunning,\n success: styles.ToolCardDone,\n warning: styles.ToolCardWarning,\n error: styles.ToolCardError,\n};\n\nfunction StatusIcon({ status }: { status: ToolStatus }) {\n if (status === \"running\") return <Loader2 size={13} className={`${styles.ToolCardStatusIcon} ${styles.Spin}`} />;\n if (status === \"warning\") return <AlertTriangle size={13} className={styles.ToolCardStatusWarning} />;\n if (status === \"error\") return <XCircle size={13} className={styles.ToolCardStatusError} />;\n return <CheckCircle2 size={13} className={styles.ToolCardStatusDone} />;\n}\n\n/**\n * Default widget for `ToolCalling`: the tool card. `ToolProgress` sub-steps show under the\n * header; `ToolResult` sets the status and duration. Expanding shows the Arguments and Result.\n */\nexport const DefaultToolCallChatWidget = ({ eventData, live }: SolidChatWidgetProps) => {\n const [expanded, setExpanded] = useState(false);\n const toolName: string = eventData.tool_name ?? \"tool\";\n const args: Record<string, unknown> | undefined = eventData.arguments;\n const progress: ToolProgressStep[] = Array.isArray(eventData.progress) ? eventData.progress : [];\n const status: ToolStatus = live ? \"running\" : (eventData.status as ToolStatus) ?? \"success\";\n const output: string | undefined = eventData.output_raw ?? eventData.output;\n const hasArgs = !!args && Object.keys(args).length > 0;\n const expandable = (hasArgs || !!output) && status !== \"running\";\n const ToolIcon = getToolIcon(toolName, args);\n\n return (\n <div className={`${styles.ToolCard} ${CARD_CLASS[status] ?? styles.ToolCardDone}`}>\n <button\n type=\"button\"\n className={styles.ToolCardHeaderBtn}\n onClick={expandable ? () => setExpanded((value) => !value) : undefined}\n data-expandable={expandable ? \"true\" : undefined}\n aria-expanded={expandable ? expanded : undefined}\n >\n <StatusIcon status={status} />\n <ToolIcon size={12} className={styles.ToolCardToolIcon} />\n <span className={styles.ToolCardName}>{live ? `Invoking ${toolDisplayName(toolName, args)}…` : toolDisplayName(toolName, args)}</span>\n {eventData.summary && <span className={styles.ToolCardDesc} title={eventData.summary}>{eventData.summary}</span>}\n <span className={styles.ToolCardBadge}>{toolCategory(toolName)}</span>\n {eventData.duration_ms != null && <span className={styles.ToolCardDuration}>{formatDuration(eventData.duration_ms)}</span>}\n {expandable && <ChevronRight size={11} className={`${styles.ToolCardChevron} ${expanded ? styles.ToolCardChevronOpen : \"\"}`} />}\n </button>\n\n {/* Progress sub-steps: always visible */}\n {progress.length > 0 && (\n <div className={styles.ToolCardProgress}>\n {progress.map((step, index) => (\n <div key={index} className={`${styles.ToolProgressItem} ${step.status === \"running\" ? styles.ToolProgressRunning : styles.ToolProgressDone}`}>\n {step.status === \"running\" ? <Loader2 size={10} className={styles.Spin} /> : <CheckCircle2 size={10} />}\n <span className={styles.ToolProgressLabel}>{step.label}</span>\n {step.duration_ms != null && step.status === \"done\" && (\n <span className={styles.ToolProgressDuration}>{formatDuration(step.duration_ms)}</span>\n )}\n </div>\n ))}\n </div>\n )}\n\n {expanded && (\n <div className={styles.ToolCardExpandable}>\n {hasArgs && (\n <div className={styles.ToolCardOutput}>\n <div className={styles.ToolOutputHeader}>\n <span>Arguments</span>\n </div>\n <pre className={styles.ToolOutputText}>{JSON.stringify(args, null, 2)}</pre>\n </div>\n )}\n {output && (\n <div className={styles.ToolCardOutput}>\n <div className={styles.ToolOutputHeader}>\n <span>Result</span>\n </div>\n <pre className={`${styles.ToolOutputText} ${status === \"warning\" ? styles.ToolOutputWarning : status === \"error\" ? styles.ToolOutputError : \"\"}`}>\n {output}\n </pre>\n </div>\n )}\n </div>\n )}\n </div>\n );\n};\n\nObject.assign(DefaultToolCallChatWidget, { getExtensionMetadata: () => ({\n chatInteraction: { role: \"event-renderer\", agentSelectable: false },\n}) });\n"]}
|
|
1
|
+
{"version":3,"file":"DefaultToolCallChatWidget.js","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/DefaultToolCallChatWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EACH,YAAY,EACZ,OAAO,EACP,OAAO,GACV,MAAM,cAAc,CAAC;AACtB,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKjD,IAAM,UAAU,GAA+B;IAC3C,OAAO,EAAE,MAAM,CAAC,eAAe;IAC/B,OAAO,EAAE,MAAM,CAAC,YAAY;IAC5B,OAAO,EAAE,MAAM,CAAC,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC,aAAa;CAC9B,CAAC;AAEF,SAAS,UAAU,CAAC,EAAkC;QAAhC,MAAM,YAAA;IACxB,IAAI,MAAM,KAAK,OAAO;QAAE,OAAO,KAAC,OAAO,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,mBAAmB,GAAI,CAAC;IAC5F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,IAAM,yBAAyB,GAAG,UAAC,EAAyC;;QAAvC,SAAS,eAAA,EAAE,IAAI,UAAA;IACjD,IAAA,KAA0B,Q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,SAAS,EAAE,MAAM,CAAC,kBAAkB,aACpC,OAAO,IAAI,CACR,eAAK,SAAS,EAAE,MAAM,CAAC,cAAc,aACjC,cAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,YACnC,uCAAsB,GACpB,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,cAAc,YAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,GAAO,IAC1E,CACT,EACA,MAAM,IAAI,CACP,eAAK,SAAS,EAAE,MAAM,CAAC,cAAc,aACjC,cAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,YACnC,oCAAmB,GACjB,EACN,cAAK,SAAS,EAAE,UAAG,MAAM,CAAC,cAAc,cAAI,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAE,YAC3I,MAAM,GACL,IACJ,CACT,IACC,CACT,IACC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,yBAAyB,EAAE,EAAE,oBAAoB,EAAE,cAAM,OAAA,CAAC;QACpE,eAAe,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,eAAe,EAAE,KAAK,EAAE;KACtE,CAAC,EAFqE,CAErE,EAAE,CAAC,CAAC","sourcesContent":["import { useState } from \"react\";\nimport {\n ChevronRight,\n Loader2,\n XCircle,\n} from \"lucide-react\";\nimport styles from \"./solidChatWidgets.module.css\";\nimport { SolidChatWidgetProps } from \"../../../../types/solid-core\";\nimport { toolDisplayName } from \"../agentFormat\";\n\ntype ToolStatus = \"running\" | \"success\" | \"warning\" | \"error\";\ntype ToolProgressStep = { label: string; status: \"running\" | \"done\"; duration_ms?: number };\n\nconst CARD_CLASS: Record<ToolStatus, string> = {\n running: styles.ToolCardRunning,\n success: styles.ToolCardDone,\n warning: styles.ToolCardWarning,\n error: styles.ToolCardError,\n};\n\nfunction StatusIcon({ status }: { status: ToolStatus }) {\n if (status === \"error\") return <XCircle size={12} className={styles.ToolCardStatusError} />;\n return null;\n}\n\n/**\n * Default widget for `ToolCalling`: clean borderless row. `ToolProgress` sub-steps show under the\n * header; `ToolResult` sets the status and duration. Expanding shows the Arguments and Result.\n */\nexport const DefaultToolCallChatWidget = ({ eventData, live }: SolidChatWidgetProps) => {\n const [expanded, setExpanded] = useState(false);\n const toolName: string = eventData.tool_name ?? \"tool\";\n const args: Record<string, unknown> | undefined = eventData.arguments;\n const progress: ToolProgressStep[] = Array.isArray(eventData.progress) ? eventData.progress : [];\n const status: ToolStatus = live ? \"running\" : (eventData.status as ToolStatus) ?? \"success\";\n const output: string | undefined = eventData.output_raw ?? eventData.output;\n const hasArgs = !!args && Object.keys(args).length > 0;\n const expandable = (hasArgs || !!output) && status !== \"running\";\n const isRunning = live || status === \"running\";\n\n return (\n <div className={`${styles.ToolCard} ${CARD_CLASS[status] ?? styles.ToolCardDone}`}>\n <button\n type=\"button\"\n className={styles.ToolCardHeaderBtn}\n onClick={expandable ? () => setExpanded((value) => !value) : undefined}\n data-expandable={expandable ? \"true\" : undefined}\n aria-expanded={expandable ? expanded : undefined}\n >\n <StatusIcon status={status} />\n <span className={styles.ToolCardName}>{live ? `Invoking ${toolDisplayName(toolName, args)}…` : toolDisplayName(toolName, args)}</span>\n {eventData.summary && <span className={styles.ToolCardDesc} title={eventData.summary}>{eventData.summary}</span>}\n {expandable && <ChevronRight size={11} className={`${styles.ToolCardChevron} ${expanded ? styles.ToolCardChevronOpen : \"\"}`} />}\n </button>\n\n {/* Progress sub-steps: visible only while running */}\n {isRunning && progress.length > 0 && (\n <div className={styles.ToolCardProgress}>\n {progress.map((step, index) => (\n <div key={index} className={`${styles.ToolProgressItem} ${step.status === \"running\" ? styles.ToolProgressRunning : styles.ToolProgressDone}`}>\n {step.status === \"running\" && <Loader2 size={10} className={styles.Spin} />}\n <span className={styles.ToolProgressLabel}>{step.label}</span>\n </div>\n ))}\n </div>\n )}\n\n {expanded && (\n <div className={styles.ToolCardExpandable}>\n {hasArgs && (\n <div className={styles.ToolCardOutput}>\n <div className={styles.ToolOutputHeader}>\n <span>Arguments</span>\n </div>\n <pre className={styles.ToolOutputText}>{JSON.stringify(args, null, 2)}</pre>\n </div>\n )}\n {output && (\n <div className={styles.ToolCardOutput}>\n <div className={styles.ToolOutputHeader}>\n <span>Result</span>\n </div>\n <pre className={`${styles.ToolOutputText} ${status === \"warning\" ? styles.ToolOutputWarning : status === \"error\" ? styles.ToolOutputError : \"\"}`}>\n {output}\n </pre>\n </div>\n )}\n </div>\n )}\n </div>\n );\n};\n\nObject.assign(DefaultToolCallChatWidget, { getExtensionMetadata: () => ({\n chatInteraction: { role: \"event-renderer\", agentSelectable: false },\n}) });\n"]}
|
|
@@ -1,51 +1,16 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
import {
|
|
3
|
-
AlertTriangle,
|
|
4
|
-
CheckCircle2,
|
|
5
3
|
ChevronRight,
|
|
6
|
-
CloudUpload,
|
|
7
|
-
Cog,
|
|
8
|
-
File,
|
|
9
|
-
FilePen,
|
|
10
|
-
FilePlus,
|
|
11
|
-
Folder,
|
|
12
4
|
Loader2,
|
|
13
|
-
Pencil,
|
|
14
|
-
Search,
|
|
15
|
-
Terminal,
|
|
16
5
|
XCircle,
|
|
17
|
-
type LucideIcon,
|
|
18
6
|
} from "lucide-react";
|
|
19
7
|
import styles from "./solidChatWidgets.module.css";
|
|
20
8
|
import { SolidChatWidgetProps } from "../../../../types/solid-core";
|
|
21
|
-
import {
|
|
9
|
+
import { toolDisplayName } from "../agentFormat";
|
|
22
10
|
|
|
23
11
|
type ToolStatus = "running" | "success" | "warning" | "error";
|
|
24
12
|
type ToolProgressStep = { label: string; status: "running" | "done"; duration_ms?: number };
|
|
25
13
|
|
|
26
|
-
/** Icon for a tool, by name / filesystem action / category (same mapping as the agent-ui). */
|
|
27
|
-
function getToolIcon(name: string, args?: Record<string, unknown>): LucideIcon {
|
|
28
|
-
if (name === "bash") return Terminal;
|
|
29
|
-
if (name === "filesystem_tool" && typeof args?.action === "string") {
|
|
30
|
-
if (args.action === "read") return File;
|
|
31
|
-
if (args.action === "search") return Search;
|
|
32
|
-
if (args.action === "edit") return Pencil;
|
|
33
|
-
if (args.action === "write") return FilePlus;
|
|
34
|
-
}
|
|
35
|
-
switch (toolCategory(name)) {
|
|
36
|
-
case "Context":
|
|
37
|
-
return Search;
|
|
38
|
-
case "Build":
|
|
39
|
-
return FilePen;
|
|
40
|
-
case "Deploy":
|
|
41
|
-
return CloudUpload;
|
|
42
|
-
case "Files":
|
|
43
|
-
return Folder;
|
|
44
|
-
default:
|
|
45
|
-
return Cog;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
14
|
const CARD_CLASS: Record<ToolStatus, string> = {
|
|
50
15
|
running: styles.ToolCardRunning,
|
|
51
16
|
success: styles.ToolCardDone,
|
|
@@ -54,14 +19,12 @@ const CARD_CLASS: Record<ToolStatus, string> = {
|
|
|
54
19
|
};
|
|
55
20
|
|
|
56
21
|
function StatusIcon({ status }: { status: ToolStatus }) {
|
|
57
|
-
if (status === "
|
|
58
|
-
|
|
59
|
-
if (status === "error") return <XCircle size={13} className={styles.ToolCardStatusError} />;
|
|
60
|
-
return <CheckCircle2 size={13} className={styles.ToolCardStatusDone} />;
|
|
22
|
+
if (status === "error") return <XCircle size={12} className={styles.ToolCardStatusError} />;
|
|
23
|
+
return null;
|
|
61
24
|
}
|
|
62
25
|
|
|
63
26
|
/**
|
|
64
|
-
* Default widget for `ToolCalling`:
|
|
27
|
+
* Default widget for `ToolCalling`: clean borderless row. `ToolProgress` sub-steps show under the
|
|
65
28
|
* header; `ToolResult` sets the status and duration. Expanding shows the Arguments and Result.
|
|
66
29
|
*/
|
|
67
30
|
export const DefaultToolCallChatWidget = ({ eventData, live }: SolidChatWidgetProps) => {
|
|
@@ -73,7 +36,7 @@ export const DefaultToolCallChatWidget = ({ eventData, live }: SolidChatWidgetPr
|
|
|
73
36
|
const output: string | undefined = eventData.output_raw ?? eventData.output;
|
|
74
37
|
const hasArgs = !!args && Object.keys(args).length > 0;
|
|
75
38
|
const expandable = (hasArgs || !!output) && status !== "running";
|
|
76
|
-
const
|
|
39
|
+
const isRunning = live || status === "running";
|
|
77
40
|
|
|
78
41
|
return (
|
|
79
42
|
<div className={`${styles.ToolCard} ${CARD_CLASS[status] ?? styles.ToolCardDone}`}>
|
|
@@ -85,24 +48,18 @@ export const DefaultToolCallChatWidget = ({ eventData, live }: SolidChatWidgetPr
|
|
|
85
48
|
aria-expanded={expandable ? expanded : undefined}
|
|
86
49
|
>
|
|
87
50
|
<StatusIcon status={status} />
|
|
88
|
-
<ToolIcon size={12} className={styles.ToolCardToolIcon} />
|
|
89
51
|
<span className={styles.ToolCardName}>{live ? `Invoking ${toolDisplayName(toolName, args)}…` : toolDisplayName(toolName, args)}</span>
|
|
90
52
|
{eventData.summary && <span className={styles.ToolCardDesc} title={eventData.summary}>{eventData.summary}</span>}
|
|
91
|
-
<span className={styles.ToolCardBadge}>{toolCategory(toolName)}</span>
|
|
92
|
-
{eventData.duration_ms != null && <span className={styles.ToolCardDuration}>{formatDuration(eventData.duration_ms)}</span>}
|
|
93
53
|
{expandable && <ChevronRight size={11} className={`${styles.ToolCardChevron} ${expanded ? styles.ToolCardChevronOpen : ""}`} />}
|
|
94
54
|
</button>
|
|
95
55
|
|
|
96
|
-
{/* Progress sub-steps:
|
|
97
|
-
{progress.length > 0 && (
|
|
56
|
+
{/* Progress sub-steps: visible only while running */}
|
|
57
|
+
{isRunning && progress.length > 0 && (
|
|
98
58
|
<div className={styles.ToolCardProgress}>
|
|
99
59
|
{progress.map((step, index) => (
|
|
100
60
|
<div key={index} className={`${styles.ToolProgressItem} ${step.status === "running" ? styles.ToolProgressRunning : styles.ToolProgressDone}`}>
|
|
101
|
-
{step.status === "running"
|
|
61
|
+
{step.status === "running" && <Loader2 size={10} className={styles.Spin} />}
|
|
102
62
|
<span className={styles.ToolProgressLabel}>{step.label}</span>
|
|
103
|
-
{step.duration_ms != null && step.status === "done" && (
|
|
104
|
-
<span className={styles.ToolProgressDuration}>{formatDuration(step.duration_ms)}</span>
|
|
105
|
-
)}
|
|
106
63
|
</div>
|
|
107
64
|
))}
|
|
108
65
|
</div>
|
|
@@ -17,9 +17,10 @@ export var SolidProgressStepIcon = function (_a) {
|
|
|
17
17
|
* Send later events with the same widgetId to update it in place.
|
|
18
18
|
*/
|
|
19
19
|
export var SolidProgressChatWidget = function (_a) {
|
|
20
|
+
var _b;
|
|
20
21
|
var eventData = _a.eventData;
|
|
21
22
|
var data = getChatWidgetData(eventData);
|
|
22
|
-
var steps = asArray(data.steps);
|
|
23
|
+
var steps = asArray((_b = data.steps) !== null && _b !== void 0 ? _b : data.items);
|
|
23
24
|
var percent = typeof data.percent === "number" ? Math.max(0, Math.min(100, data.percent)) : null;
|
|
24
25
|
return (_jsxs("div", { className: styles.card, children: [data.title && _jsx("div", { className: styles.cardHead, children: data.title }), _jsxs("div", { className: styles.cardBody, children: [percent != null && (_jsx("div", { className: styles.progressBar, role: "progressbar", "aria-valuenow": percent, "aria-valuemin": 0, "aria-valuemax": 100, children: _jsx("div", { className: styles.progressFill, style: { width: "".concat(percent, "%") } }) })), steps.map(function (step, index) { return (_jsxs("div", { className: styles.stepRow, children: [_jsx(SolidProgressStepIcon, { status: step.status }), _jsx("span", { children: step.label })] }, index)); })] })] }));
|
|
25
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidProgressChatWidget.js","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/SolidProgressChatWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAK/D,MAAM,CAAC,IAAM,qBAAqB,GAAG,UAAC,EAA+C;QAA7C,MAAM,YAAA;IAC1C,IAAI,MAAM,KAAK,MAAM;QAAE,OAAO,KAAC,YAAY,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,CAAC;IACnF,IAAI,MAAM,KAAK,OAAO;QAAE,OAAO,KAAC,OAAO,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,CAAC;IAChF,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,KAAC,OAAO,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAI,CAAC;IACnF,OAAO,eAAM,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,gCAAgC,EAAE,OAAO,EAAE,cAAc,EAAE,GAAI,CAAC;AAC5I,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAC,EAAmC
|
|
1
|
+
{"version":3,"file":"SolidProgressChatWidget.js","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/SolidProgressChatWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAK/D,MAAM,CAAC,IAAM,qBAAqB,GAAG,UAAC,EAA+C;QAA7C,MAAM,YAAA;IAC1C,IAAI,MAAM,KAAK,MAAM;QAAE,OAAO,KAAC,YAAY,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,C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GAAG,YAC/G,cAAK,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,OAAO,MAAG,EAAE,GAAI,GACtE,CACT,EACA,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,CACxB,eAAiB,SAAS,EAAE,MAAM,CAAC,OAAO,aACtC,KAAC,qBAAqB,IAAC,MAAM,EAAE,IAAI,CAAC,MAAM,GAAI,EAC9C,yBAAO,IAAI,CAAC,KAAK,GAAQ,KAFnB,KAAK,CAGT,CACT,EAL2B,CAK3B,CAAC,IACA,IACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,uBAAuB,EAAE,EAAE,oBAAoB,EAAE,cAAM,OAAA,CAAC;QAClE,WAAW,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,kDAAkD,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;KAC9Y,CAAC,EAFmE,CAEnE,EAAE,CAAC,CAAC","sourcesContent":["import { CheckCircle2, CircleX, Loader2 } from \"lucide-react\";\nimport styles from \"../SolidAgent.module.css\";\nimport { SolidChatWidgetProps } from \"../../../../types/solid-core\";\nimport { asArray, getChatWidgetData } from \"./chatWidgetUtils\";\n\ntype ProgressStep = { label: string; status?: \"pending\" | \"running\" | \"done\" | \"error\" };\ntype ProgressData = { title?: string; percent?: number; steps?: ProgressStep[] };\n\nexport const SolidProgressStepIcon = ({ status }: { status?: ProgressStep[\"status\"] }) => {\n if (status === \"done\") return <CheckCircle2 size={14} className={styles.okIcon} />;\n if (status === \"error\") return <CircleX size={14} className={styles.errIcon} />;\n if (status === \"running\") return <Loader2 size={14} className={styles.spinIcon} />;\n return <span style={{ width: 14, height: 14, borderRadius: 999, border: \"2px dashed var(--agent-border)\", display: \"inline-block\" }} />;\n};\n\n/**\n * `event_data: { widget: \"progress\", widgetId, title?, percent?, steps?: [{ label, status }] }`.\n * Send later events with the same widgetId to update it in place.\n */\nexport const SolidProgressChatWidget = ({ eventData }: SolidChatWidgetProps) => {\n const data = getChatWidgetData<ProgressData & { items?: ProgressStep[] }>(eventData);\n const steps = asArray<ProgressStep>(data.steps ?? data.items);\n const percent = typeof data.percent === \"number\" ? Math.max(0, Math.min(100, data.percent)) : null;\n return (\n <div className={styles.card}>\n {data.title && <div className={styles.cardHead}>{data.title}</div>}\n <div className={styles.cardBody}>\n {percent != null && (\n <div className={styles.progressBar} role=\"progressbar\" aria-valuenow={percent} aria-valuemin={0} aria-valuemax={100}>\n <div className={styles.progressFill} style={{ width: `${percent}%` }} />\n </div>\n )}\n {steps.map((step, index) => (\n <div key={index} className={styles.stepRow}>\n <SolidProgressStepIcon status={step.status} />\n <span>{step.label}</span>\n </div>\n ))}\n </div>\n </div>\n );\n};\n\nObject.assign(SolidProgressChatWidget, { getExtensionMetadata: () => ({\n agentWidget: { name: \"progress\", description: \"Show steps and their status for multi-step work.\", propsSchema: { type: \"object\", properties: { title: { type: \"string\" }, percent: { type: \"number\" }, steps: { type: \"array\", items: { type: \"object\", properties: { label: { type: \"string\" }, status: { type: \"string\", enum: [\"pending\", \"running\", \"done\", \"error\"] } }, required: [\"label\"] } } } } },\n}) });\n"]}
|
|
@@ -18,8 +18,8 @@ export const SolidProgressStepIcon = ({ status }: { status?: ProgressStep["statu
|
|
|
18
18
|
* Send later events with the same widgetId to update it in place.
|
|
19
19
|
*/
|
|
20
20
|
export const SolidProgressChatWidget = ({ eventData }: SolidChatWidgetProps) => {
|
|
21
|
-
const data = getChatWidgetData<ProgressData>(eventData);
|
|
22
|
-
const steps = asArray<ProgressStep>(data.steps);
|
|
21
|
+
const data = getChatWidgetData<ProgressData & { items?: ProgressStep[] }>(eventData);
|
|
22
|
+
const steps = asArray<ProgressStep>(data.steps ?? data.items);
|
|
23
23
|
const percent = typeof data.percent === "number" ? Math.max(0, Math.min(100, data.percent)) : null;
|
|
24
24
|
return (
|
|
25
25
|
<div className={styles.card}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidStatusChatWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/SolidStatusChatWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAepE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,8BAA+B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"SolidStatusChatWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/SolidStatusChatWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAepE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,8BAA+B,oBAAoB,4CAmBpF,CAAC"}
|
|
@@ -14,9 +14,11 @@ var TONE_ICON = { success: CheckCircle2, warning: AlertTriangle, error: CircleX,
|
|
|
14
14
|
* The optional action posts `prompt` as a new user message.
|
|
15
15
|
*/
|
|
16
16
|
export var SolidStatusChatWidget = function (_a) {
|
|
17
|
+
var _b, _c, _d;
|
|
17
18
|
var eventData = _a.eventData, sendPrompt = _a.sendPrompt;
|
|
18
19
|
var data = getChatWidgetData(eventData);
|
|
19
|
-
var
|
|
20
|
+
var rawTone = String((_d = (_c = (_b = data.tone) !== null && _b !== void 0 ? _b : data.status) !== null && _c !== void 0 ? _c : data.state) !== null && _d !== void 0 ? _d : "").toLowerCase();
|
|
21
|
+
var tone = rawTone in TONE_CLASS ? rawTone : "info";
|
|
20
22
|
var Icon = TONE_ICON[tone];
|
|
21
23
|
return (_jsxs("div", { className: "".concat(styles.status, " ").concat(TONE_CLASS[tone]), role: tone === "error" ? "alert" : "status", children: [_jsx(Icon, { size: 16, style: { flex: "0 0 auto", marginTop: 2 } }), _jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 6 }, children: [data.title && _jsx("strong", { children: data.title }), data.message && _jsx("span", { children: data.message }), data.action && (_jsx("button", { type: "button", className: styles.btn, style: { alignSelf: "flex-start" }, onClick: function () { return sendPrompt(data.action.prompt); }, children: data.action.label }))] })] }));
|
|
22
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidStatusChatWidget.js","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/SolidStatusChatWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAKtD,IAAM,UAAU,GAAyB;IACrC,OAAO,EAAE,MAAM,CAAC,aAAa;IAC7B,OAAO,EAAE,MAAM,CAAC,aAAa;IAC7B,KAAK,EAAE,MAAM,CAAC,WAAW;IACzB,IAAI,EAAE,MAAM,CAAC,UAAU;CAC1B,CAAC;AAEF,IAAM,SAAS,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAEhG;;;GAGG;AACH,MAAM,CAAC,I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AQ,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE;KAC1a,CAAC,EAFiE,CAEjE,EAAE,CAAC,CAAC","sourcesContent":["import { AlertTriangle, CheckCircle2, CircleX, Info } from \"lucide-react\";\nimport styles from \"../SolidAgent.module.css\";\nimport { SolidChatWidgetProps } from \"../../../../types/solid-core\";\nimport { getChatWidgetData } from \"./chatWidgetUtils\";\n\ntype Tone = \"success\" | \"warning\" | \"error\" | \"info\";\ntype StatusData = { tone?: Tone; title?: string; message?: string; action?: { label: string; prompt: string } };\n\nconst TONE_CLASS: Record<Tone, string> = {\n success: styles.statusSuccess,\n warning: styles.statusWarning,\n error: styles.statusError,\n info: styles.statusInfo,\n};\n\nconst TONE_ICON = { success: CheckCircle2, warning: AlertTriangle, error: CircleX, info: Info };\n\n/**\n * `event_data: { widget: \"status\", tone, title?, message?, action?: { label, prompt } }`.\n * The optional action posts `prompt` as a new user message.\n */\nexport const SolidStatusChatWidget = ({ eventData, sendPrompt }: SolidChatWidgetProps) => {\n const data = getChatWidgetData<StatusData & { status?: string; state?: string }>(eventData);\n const rawTone = String(data.tone ?? data.status ?? data.state ?? \"\").toLowerCase() as Tone;\n const tone: Tone = rawTone in TONE_CLASS ? rawTone : \"info\";\n const Icon = TONE_ICON[tone];\n return (\n <div className={`${styles.status} ${TONE_CLASS[tone]}`} role={tone === \"error\" ? \"alert\" : \"status\"}>\n <Icon size={16} style={{ flex: \"0 0 auto\", marginTop: 2 }} />\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: 6 }}>\n {data.title && <strong>{data.title}</strong>}\n {data.message && <span>{data.message}</span>}\n {data.action && (\n <button type=\"button\" className={styles.btn} style={{ alignSelf: \"flex-start\" }} onClick={() => sendPrompt(data.action!.prompt)}>\n {data.action.label}\n </button>\n )}\n </div>\n </div>\n );\n};\n\nObject.assign(SolidStatusChatWidget, { getExtensionMetadata: () => ({\n agentWidget: { name: \"status\", description: \"Show the outcome of one operation with a status, title, and detail.\", propsSchema: { type: \"object\", properties: { tone: { type: \"string\", enum: [\"success\", \"warning\", \"error\", \"info\"] }, title: { type: \"string\" }, message: { type: \"string\" }, action: { type: \"object\", properties: { label: { type: \"string\" }, prompt: { type: \"string\" } }, required: [\"label\", \"prompt\"] } } } },\n}) });\n"]}
|
|
@@ -20,8 +20,9 @@ const TONE_ICON = { success: CheckCircle2, warning: AlertTriangle, error: Circle
|
|
|
20
20
|
* The optional action posts `prompt` as a new user message.
|
|
21
21
|
*/
|
|
22
22
|
export const SolidStatusChatWidget = ({ eventData, sendPrompt }: SolidChatWidgetProps) => {
|
|
23
|
-
const data = getChatWidgetData<StatusData>(eventData);
|
|
24
|
-
const
|
|
23
|
+
const data = getChatWidgetData<StatusData & { status?: string; state?: string }>(eventData);
|
|
24
|
+
const rawTone = String(data.tone ?? data.status ?? data.state ?? "").toLowerCase() as Tone;
|
|
25
|
+
const tone: Tone = rawTone in TONE_CLASS ? rawTone : "info";
|
|
25
26
|
const Icon = TONE_ICON[tone];
|
|
26
27
|
return (
|
|
27
28
|
<div className={`${styles.status} ${TONE_CLASS[tone]}`} role={tone === "error" ? "alert" : "status"}>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SolidChatWidgetProps } from "../../../../types/solid-core";
|
|
2
|
-
/** `event_data: { widget: "table", title?, columns?, rows }` —
|
|
2
|
+
/** `event_data: { widget: "table", title?, columns?, rows }` — sortable table with support for array rows, object rows, and flexible columns. */
|
|
3
3
|
export declare const SolidTableChatWidget: ({ eventData }: SolidChatWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=SolidTableChatWidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidTableChatWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/SolidTableChatWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"SolidTableChatWidget.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/solid-agent/widgets/SolidTableChatWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAuCpE,iJAAiJ;AACjJ,eAAO,MAAM,oBAAoB,kBAAmB,oBAAoB,4CA0FvE,CAAC"}
|