@solidxai/core-ui 0.1.19-beta.0 → 0.1.19-beta.1

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.
Files changed (512) hide show
  1. package/README.md +19 -0
  2. package/dist/components/common/SolidPopupContainer.d.ts.map +1 -1
  3. package/dist/components/common/SolidPopupContainer.js +3 -2
  4. package/dist/components/common/SolidPopupContainer.js.map +1 -1
  5. package/dist/components/common/SolidPopupContainer.tsx +3 -2
  6. package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.d.ts.map +1 -1
  7. package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js +4 -1
  8. package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js.map +1 -1
  9. package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.tsx +11 -5
  10. package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
  11. package/dist/components/core/chatter/SolidChatter.js +2 -1
  12. package/dist/components/core/chatter/SolidChatter.js.map +1 -1
  13. package/dist/components/core/chatter/SolidChatter.tsx +2 -0
  14. package/dist/components/core/chatter/SolidChatterMessageBox.d.ts +2 -0
  15. package/dist/components/core/chatter/SolidChatterMessageBox.d.ts.map +1 -1
  16. package/dist/components/core/chatter/SolidChatterMessageBox.js +7 -4
  17. package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -1
  18. package/dist/components/core/chatter/SolidChatterMessageBox.tsx +8 -3
  19. package/dist/components/core/chatter/SolidChatterMessageWidget.d.ts +5 -0
  20. package/dist/components/core/chatter/SolidChatterMessageWidget.d.ts.map +1 -0
  21. package/dist/components/core/chatter/SolidChatterMessageWidget.js +85 -0
  22. package/dist/components/core/chatter/SolidChatterMessageWidget.js.map +1 -0
  23. package/dist/components/core/chatter/SolidChatterMessageWidget.tsx +59 -0
  24. package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
  25. package/dist/components/core/common/SolidGlobalSearchElement.js +6 -5
  26. package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
  27. package/dist/components/core/common/SolidGlobalSearchElement.tsx +6 -5
  28. package/dist/components/core/extension/solid-core/agentEvent/list/AgentEventOutcomeListWidget.d.ts +11 -0
  29. package/dist/components/core/extension/solid-core/agentEvent/list/AgentEventOutcomeListWidget.d.ts.map +1 -0
  30. package/dist/components/core/extension/solid-core/agentEvent/list/AgentEventOutcomeListWidget.js +102 -0
  31. package/dist/components/core/extension/solid-core/agentEvent/list/AgentEventOutcomeListWidget.js.map +1 -0
  32. package/dist/components/core/extension/solid-core/agentEvent/list/AgentEventOutcomeListWidget.tsx +129 -0
  33. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.d.ts +4 -0
  34. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.d.ts.map +1 -0
  35. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.js +29 -0
  36. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.js.map +1 -0
  37. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.module.css +226 -0
  38. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.tsx +57 -0
  39. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.d.ts +4 -0
  40. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.d.ts.map +1 -0
  41. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.js +33 -0
  42. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.js.map +1 -0
  43. package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.tsx +47 -0
  44. package/dist/components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel.d.ts +5 -0
  45. package/dist/components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel.d.ts.map +1 -0
  46. package/dist/components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel.js +59 -0
  47. package/dist/components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel.js.map +1 -0
  48. package/dist/components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel.tsx +82 -0
  49. package/dist/components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel.d.ts +17 -0
  50. package/dist/components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel.d.ts.map +1 -0
  51. package/dist/components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel.js +258 -0
  52. package/dist/components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel.js.map +1 -0
  53. package/dist/components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel.tsx +286 -0
  54. package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.d.ts.map +1 -1
  55. package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js +102 -62
  56. package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js.map +1 -1
  57. package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.tsx +116 -106
  58. package/dist/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.d.ts +6 -0
  59. package/dist/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.d.ts.map +1 -0
  60. package/dist/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.js +37 -0
  61. package/dist/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.js.map +1 -0
  62. package/dist/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.tsx +89 -0
  63. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.d.ts +3 -0
  64. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.d.ts.map +1 -0
  65. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.js +18 -0
  66. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.js.map +1 -0
  67. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.tsx +51 -0
  68. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.d.ts +10 -0
  69. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.d.ts.map +1 -0
  70. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.js +63 -0
  71. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.js.map +1 -0
  72. package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.tsx +111 -0
  73. package/dist/components/core/field/FieldListViewData.d.ts.map +1 -1
  74. package/dist/components/core/field/FieldListViewData.js +29 -9
  75. package/dist/components/core/field/FieldListViewData.js.map +1 -1
  76. package/dist/components/core/field/FieldListViewData.tsx +7 -6
  77. package/dist/components/core/form/SolidFormView.d.ts +1 -0
  78. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  79. package/dist/components/core/form/SolidFormView.js +49 -48
  80. package/dist/components/core/form/SolidFormView.js.map +1 -1
  81. package/dist/components/core/form/SolidFormView.tsx +4 -3
  82. package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
  83. package/dist/components/core/form/fields/SolidPasswordField.js +13 -1
  84. package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
  85. package/dist/components/core/form/fields/SolidPasswordField.tsx +14 -3
  86. package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
  87. package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
  88. package/dist/components/core/kanban/KanbanBoard.js +2 -2
  89. package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
  90. package/dist/components/core/kanban/KanbanBoard.tsx +5 -1
  91. package/dist/components/core/kanban/KanbanCard.d.ts +3 -0
  92. package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
  93. package/dist/components/core/kanban/KanbanCard.js +5 -4
  94. package/dist/components/core/kanban/KanbanCard.js.map +1 -1
  95. package/dist/components/core/kanban/KanbanCard.tsx +31 -11
  96. package/dist/components/core/kanban/KanbanColumn.d.ts +5 -1
  97. package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
  98. package/dist/components/core/kanban/KanbanColumn.js +14 -3
  99. package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
  100. package/dist/components/core/kanban/KanbanColumn.tsx +43 -3
  101. package/dist/components/core/kanban/SolidKanbanView.d.ts +2 -0
  102. package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
  103. package/dist/components/core/kanban/SolidKanbanView.js +90 -52
  104. package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
  105. package/dist/components/core/kanban/SolidKanbanView.tsx +93 -13
  106. package/dist/components/core/list/SolidDataTable.d.ts +2 -1
  107. package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
  108. package/dist/components/core/list/SolidDataTable.js +2 -2
  109. package/dist/components/core/list/SolidDataTable.js.map +1 -1
  110. package/dist/components/core/list/SolidDataTable.tsx +3 -0
  111. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  112. package/dist/components/core/list/SolidListView.js +114 -57
  113. package/dist/components/core/list/SolidListView.js.map +1 -1
  114. package/dist/components/core/list/SolidListView.tsx +71 -7
  115. package/dist/components/core/list/SolidListViewHeaderContextMenuButton.d.ts.map +1 -1
  116. package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js +14 -0
  117. package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js.map +1 -1
  118. package/dist/components/core/list/SolidListViewHeaderContextMenuButton.tsx +13 -0
  119. package/dist/components/core/list/widgets/AgentProcessNeedsRestartListWidget.d.ts +3 -0
  120. package/dist/components/core/list/widgets/AgentProcessNeedsRestartListWidget.d.ts.map +1 -0
  121. package/dist/components/core/list/widgets/AgentProcessNeedsRestartListWidget.js +51 -0
  122. package/dist/components/core/list/widgets/AgentProcessNeedsRestartListWidget.js.map +1 -0
  123. package/dist/components/core/list/widgets/AgentProcessNeedsRestartListWidget.tsx +60 -0
  124. package/dist/components/core/list/widgets/SolidIconNameListViewWidget.d.ts +4 -0
  125. package/dist/components/core/list/widgets/SolidIconNameListViewWidget.d.ts.map +1 -0
  126. package/dist/components/core/list/widgets/SolidIconNameListViewWidget.js +24 -0
  127. package/dist/components/core/list/widgets/SolidIconNameListViewWidget.js.map +1 -0
  128. package/dist/components/core/list/widgets/SolidIconNameListViewWidget.tsx +32 -0
  129. package/dist/components/core/model/ModelListViewData.d.ts.map +1 -1
  130. package/dist/components/core/model/ModelListViewData.js +6 -23
  131. package/dist/components/core/model/ModelListViewData.js.map +1 -1
  132. package/dist/components/core/model/ModelListViewData.tsx +1 -48
  133. package/dist/components/core/solid-agent/AgentModelIndicator.d.ts +5 -0
  134. package/dist/components/core/solid-agent/AgentModelIndicator.d.ts.map +1 -0
  135. package/dist/components/core/solid-agent/AgentModelIndicator.js +14 -0
  136. package/dist/components/core/solid-agent/AgentModelIndicator.js.map +1 -0
  137. package/dist/components/core/solid-agent/AgentModelIndicator.tsx +40 -0
  138. package/dist/components/core/solid-agent/AgentSignIn.d.ts +12 -0
  139. package/dist/components/core/solid-agent/AgentSignIn.d.ts.map +1 -0
  140. package/dist/components/core/solid-agent/AgentSignIn.js +82 -0
  141. package/dist/components/core/solid-agent/AgentSignIn.js.map +1 -0
  142. package/dist/components/core/solid-agent/AgentSignIn.tsx +91 -0
  143. package/dist/components/core/solid-agent/SolidAgent.module.css +596 -0
  144. package/dist/components/core/solid-agent/SolidAgentChat.d.ts +30 -0
  145. package/dist/components/core/solid-agent/SolidAgentChat.d.ts.map +1 -0
  146. package/dist/components/core/solid-agent/SolidAgentChat.js +300 -0
  147. package/dist/components/core/solid-agent/SolidAgentChat.js.map +1 -0
  148. package/dist/components/core/solid-agent/SolidAgentChat.tsx +451 -0
  149. package/dist/components/core/solid-agent/SolidAgentEmbedded.d.ts +44 -0
  150. package/dist/components/core/solid-agent/SolidAgentEmbedded.d.ts.map +1 -0
  151. package/dist/components/core/solid-agent/SolidAgentEmbedded.js +46 -0
  152. package/dist/components/core/solid-agent/SolidAgentEmbedded.js.map +1 -0
  153. package/dist/components/core/solid-agent/SolidAgentEmbedded.tsx +87 -0
  154. package/dist/components/core/solid-agent/SolidAgentHost.d.ts +8 -0
  155. package/dist/components/core/solid-agent/SolidAgentHost.d.ts.map +1 -0
  156. package/dist/components/core/solid-agent/SolidAgentHost.js +152 -0
  157. package/dist/components/core/solid-agent/SolidAgentHost.js.map +1 -0
  158. package/dist/components/core/solid-agent/SolidAgentHost.tsx +164 -0
  159. package/dist/components/core/solid-agent/SolidAgentMarkdown.d.ts +16 -0
  160. package/dist/components/core/solid-agent/SolidAgentMarkdown.d.ts.map +1 -0
  161. package/dist/components/core/solid-agent/SolidAgentMarkdown.js +161 -0
  162. package/dist/components/core/solid-agent/SolidAgentMarkdown.js.map +1 -0
  163. package/dist/components/core/solid-agent/SolidAgentMarkdown.tsx +133 -0
  164. package/dist/components/core/solid-agent/SolidAgentMount.d.ts +3 -0
  165. package/dist/components/core/solid-agent/SolidAgentMount.d.ts.map +1 -0
  166. package/dist/components/core/solid-agent/SolidAgentMount.js +62 -0
  167. package/dist/components/core/solid-agent/SolidAgentMount.js.map +1 -0
  168. package/dist/components/core/solid-agent/SolidAgentMount.tsx +31 -0
  169. package/dist/components/core/solid-agent/SolidXAIIcon.d.ts +5 -0
  170. package/dist/components/core/solid-agent/SolidXAIIcon.d.ts.map +1 -0
  171. package/dist/components/core/solid-agent/SolidXAIIcon.js +7 -0
  172. package/dist/components/core/solid-agent/SolidXAIIcon.js.map +1 -0
  173. package/dist/components/core/solid-agent/SolidXAIIcon.tsx +6 -0
  174. package/dist/components/core/solid-agent/agentAttachments.d.ts +20 -0
  175. package/dist/components/core/solid-agent/agentAttachments.d.ts.map +1 -0
  176. package/dist/components/core/solid-agent/agentAttachments.js +184 -0
  177. package/dist/components/core/solid-agent/agentAttachments.js.map +1 -0
  178. package/dist/components/core/solid-agent/agentAttachments.ts +119 -0
  179. package/dist/components/core/solid-agent/agentEvents.d.ts +34 -0
  180. package/dist/components/core/solid-agent/agentEvents.d.ts.map +1 -0
  181. package/dist/components/core/solid-agent/agentEvents.js +282 -0
  182. package/dist/components/core/solid-agent/agentEvents.js.map +1 -0
  183. package/dist/components/core/solid-agent/agentEvents.ts +292 -0
  184. package/dist/components/core/solid-agent/agentFormat.d.ts +18 -0
  185. package/dist/components/core/solid-agent/agentFormat.d.ts.map +1 -0
  186. package/dist/components/core/solid-agent/agentFormat.js +179 -0
  187. package/dist/components/core/solid-agent/agentFormat.js.map +1 -0
  188. package/dist/components/core/solid-agent/agentFormat.ts +160 -0
  189. package/dist/components/core/solid-agent/client/agentAttachmentMedia.d.ts +9 -0
  190. package/dist/components/core/solid-agent/client/agentAttachmentMedia.d.ts.map +1 -0
  191. package/dist/components/core/solid-agent/client/agentAttachmentMedia.js +129 -0
  192. package/dist/components/core/solid-agent/client/agentAttachmentMedia.js.map +1 -0
  193. package/dist/components/core/solid-agent/client/agentAttachmentMedia.ts +69 -0
  194. package/dist/components/core/solid-agent/client/agentAuth.d.ts +63 -0
  195. package/dist/components/core/solid-agent/client/agentAuth.d.ts.map +1 -0
  196. package/dist/components/core/solid-agent/client/agentAuth.js +307 -0
  197. package/dist/components/core/solid-agent/client/agentAuth.js.map +1 -0
  198. package/dist/components/core/solid-agent/client/agentAuth.ts +222 -0
  199. package/dist/components/core/solid-agent/client/agentRest.d.ts +30 -0
  200. package/dist/components/core/solid-agent/client/agentRest.d.ts.map +1 -0
  201. package/dist/components/core/solid-agent/client/agentRest.js +178 -0
  202. package/dist/components/core/solid-agent/client/agentRest.js.map +1 -0
  203. package/dist/components/core/solid-agent/client/agentRest.ts +100 -0
  204. package/dist/components/core/solid-agent/client/agentRuntime.d.ts +48 -0
  205. package/dist/components/core/solid-agent/client/agentRuntime.d.ts.map +1 -0
  206. package/dist/components/core/solid-agent/client/agentRuntime.js +406 -0
  207. package/dist/components/core/solid-agent/client/agentRuntime.js.map +1 -0
  208. package/dist/components/core/solid-agent/client/agentRuntime.ts +226 -0
  209. package/dist/components/core/solid-agent/client/agentSocket.d.ts +46 -0
  210. package/dist/components/core/solid-agent/client/agentSocket.d.ts.map +1 -0
  211. package/dist/components/core/solid-agent/client/agentSocket.js +535 -0
  212. package/dist/components/core/solid-agent/client/agentSocket.js.map +1 -0
  213. package/dist/components/core/solid-agent/client/agentSocket.ts +276 -0
  214. package/dist/components/core/solid-agent/client/agentUrls.d.ts +11 -0
  215. package/dist/components/core/solid-agent/client/agentUrls.d.ts.map +1 -0
  216. package/dist/components/core/solid-agent/client/agentUrls.js +18 -0
  217. package/dist/components/core/solid-agent/client/agentUrls.js.map +1 -0
  218. package/dist/components/core/solid-agent/client/agentUrls.ts +19 -0
  219. package/dist/components/core/solid-agent/composer/AgentComposer.d.ts +21 -0
  220. package/dist/components/core/solid-agent/composer/AgentComposer.d.ts.map +1 -0
  221. package/dist/components/core/solid-agent/composer/AgentComposer.js +219 -0
  222. package/dist/components/core/solid-agent/composer/AgentComposer.js.map +1 -0
  223. package/dist/components/core/solid-agent/composer/AgentComposer.tsx +241 -0
  224. package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.d.ts +8 -0
  225. package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.d.ts.map +1 -0
  226. package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.js +87 -0
  227. package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.js.map +1 -0
  228. package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.tsx +58 -0
  229. package/dist/components/core/solid-agent/embed/agentEmbedProtocol.d.ts +20 -0
  230. package/dist/components/core/solid-agent/embed/agentEmbedProtocol.d.ts.map +1 -0
  231. package/dist/components/core/solid-agent/embed/agentEmbedProtocol.js +103 -0
  232. package/dist/components/core/solid-agent/embed/agentEmbedProtocol.js.map +1 -0
  233. package/dist/components/core/solid-agent/embed/agentEmbedProtocol.ts +60 -0
  234. package/dist/components/core/solid-agent/embed/agentEmbedSamples.d.ts +11 -0
  235. package/dist/components/core/solid-agent/embed/agentEmbedSamples.d.ts.map +1 -0
  236. package/dist/components/core/solid-agent/embed/agentEmbedSamples.js +21 -0
  237. package/dist/components/core/solid-agent/embed/agentEmbedSamples.js.map +1 -0
  238. package/dist/components/core/solid-agent/embed/agentEmbedSamples.ts +266 -0
  239. package/dist/components/core/solid-agent/processes/agentHubProcessApi.d.ts +15 -0
  240. package/dist/components/core/solid-agent/processes/agentHubProcessApi.d.ts.map +1 -0
  241. package/dist/components/core/solid-agent/processes/agentHubProcessApi.js +122 -0
  242. package/dist/components/core/solid-agent/processes/agentHubProcessApi.js.map +1 -0
  243. package/dist/components/core/solid-agent/processes/agentHubProcessApi.ts +64 -0
  244. package/dist/components/core/solid-agent/sdk/solidAgent.d.ts +39 -0
  245. package/dist/components/core/solid-agent/sdk/solidAgent.d.ts.map +1 -0
  246. package/dist/components/core/solid-agent/sdk/solidAgent.js +44 -0
  247. package/dist/components/core/solid-agent/sdk/solidAgent.js.map +1 -0
  248. package/dist/components/core/solid-agent/sdk/solidAgent.ts +56 -0
  249. package/dist/components/core/solid-agent/thread/AgentThread.d.ts +17 -0
  250. package/dist/components/core/solid-agent/thread/AgentThread.d.ts.map +1 -0
  251. package/dist/components/core/solid-agent/thread/AgentThread.js +166 -0
  252. package/dist/components/core/solid-agent/thread/AgentThread.js.map +1 -0
  253. package/dist/components/core/solid-agent/thread/AgentThread.tsx +248 -0
  254. package/dist/components/core/solid-agent/thread/SolidAgentChatItem.d.ts +36 -0
  255. package/dist/components/core/solid-agent/thread/SolidAgentChatItem.d.ts.map +1 -0
  256. package/dist/components/core/solid-agent/thread/SolidAgentChatItem.js +148 -0
  257. package/dist/components/core/solid-agent/thread/SolidAgentChatItem.js.map +1 -0
  258. package/dist/components/core/solid-agent/thread/SolidAgentChatItem.tsx +116 -0
  259. package/dist/components/core/solid-agent/thread/inlineWidget.d.ts +8 -0
  260. package/dist/components/core/solid-agent/thread/inlineWidget.d.ts.map +1 -0
  261. package/dist/components/core/solid-agent/thread/inlineWidget.js +30 -0
  262. package/dist/components/core/solid-agent/thread/inlineWidget.js.map +1 -0
  263. package/dist/components/core/solid-agent/thread/inlineWidget.ts +27 -0
  264. package/dist/components/core/solid-agent/types.d.ts +155 -0
  265. package/dist/components/core/solid-agent/types.d.ts.map +1 -0
  266. package/dist/components/core/solid-agent/types.js +31 -0
  267. package/dist/components/core/solid-agent/types.js.map +1 -0
  268. package/dist/components/core/solid-agent/types.ts +148 -0
  269. package/dist/components/core/solid-agent/useAdminInputContext.d.ts +4 -0
  270. package/dist/components/core/solid-agent/useAdminInputContext.d.ts.map +1 -0
  271. package/dist/components/core/solid-agent/useAdminInputContext.js +49 -0
  272. package/dist/components/core/solid-agent/useAdminInputContext.js.map +1 -0
  273. package/dist/components/core/solid-agent/useAdminInputContext.ts +52 -0
  274. package/dist/components/core/solid-agent/useAgentAuth.d.ts +14 -0
  275. package/dist/components/core/solid-agent/useAgentAuth.d.ts.map +1 -0
  276. package/dist/components/core/solid-agent/useAgentAuth.js +88 -0
  277. package/dist/components/core/solid-agent/useAgentAuth.js.map +1 -0
  278. package/dist/components/core/solid-agent/useAgentAuth.ts +40 -0
  279. package/dist/components/core/solid-agent/useAgentAvailability.d.ts +19 -0
  280. package/dist/components/core/solid-agent/useAgentAvailability.d.ts.map +1 -0
  281. package/dist/components/core/solid-agent/useAgentAvailability.js +109 -0
  282. package/dist/components/core/solid-agent/useAgentAvailability.js.map +1 -0
  283. package/dist/components/core/solid-agent/useAgentAvailability.ts +80 -0
  284. package/dist/components/core/solid-agent/useAgentChat.d.ts +22 -0
  285. package/dist/components/core/solid-agent/useAgentChat.d.ts.map +1 -0
  286. package/dist/components/core/solid-agent/useAgentChat.js +45 -0
  287. package/dist/components/core/solid-agent/useAgentChat.js.map +1 -0
  288. package/dist/components/core/solid-agent/useAgentChat.ts +57 -0
  289. package/dist/components/core/solid-agent/widgets/DefaultAssistantMessageChatWidget.d.ts +7 -0
  290. package/dist/components/core/solid-agent/widgets/DefaultAssistantMessageChatWidget.d.ts.map +1 -0
  291. package/dist/components/core/solid-agent/widgets/DefaultAssistantMessageChatWidget.js +15 -0
  292. package/dist/components/core/solid-agent/widgets/DefaultAssistantMessageChatWidget.js.map +1 -0
  293. package/dist/components/core/solid-agent/widgets/DefaultAssistantMessageChatWidget.tsx +24 -0
  294. package/dist/components/core/solid-agent/widgets/DefaultErrorChatWidget.d.ts +7 -0
  295. package/dist/components/core/solid-agent/widgets/DefaultErrorChatWidget.d.ts.map +1 -0
  296. package/dist/components/core/solid-agent/widgets/DefaultErrorChatWidget.js +15 -0
  297. package/dist/components/core/solid-agent/widgets/DefaultErrorChatWidget.js.map +1 -0
  298. package/dist/components/core/solid-agent/widgets/DefaultErrorChatWidget.tsx +28 -0
  299. package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.d.ts +4 -0
  300. package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.d.ts.map +1 -0
  301. package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.js +20 -0
  302. package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.js.map +1 -0
  303. package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.tsx +8 -0
  304. package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.d.ts +7 -0
  305. package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.d.ts.map +1 -0
  306. package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.js +11 -0
  307. package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.js.map +1 -0
  308. package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.tsx +16 -0
  309. package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.d.ts +7 -0
  310. package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.d.ts.map +1 -0
  311. package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.js +67 -0
  312. package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.js.map +1 -0
  313. package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.tsx +135 -0
  314. package/dist/components/core/solid-agent/widgets/DefaultUnknownChatWidget.d.ts +7 -0
  315. package/dist/components/core/solid-agent/widgets/DefaultUnknownChatWidget.d.ts.map +1 -0
  316. package/dist/components/core/solid-agent/widgets/DefaultUnknownChatWidget.js +24 -0
  317. package/dist/components/core/solid-agent/widgets/DefaultUnknownChatWidget.js.map +1 -0
  318. package/dist/components/core/solid-agent/widgets/DefaultUnknownChatWidget.tsx +17 -0
  319. package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.d.ts +8 -0
  320. package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.d.ts.map +1 -0
  321. package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.js +30 -0
  322. package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.js.map +1 -0
  323. package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.tsx +77 -0
  324. package/dist/components/core/solid-agent/widgets/SolidChecklistChatWidget.d.ts +7 -0
  325. package/dist/components/core/solid-agent/widgets/SolidChecklistChatWidget.d.ts.map +1 -0
  326. package/dist/components/core/solid-agent/widgets/SolidChecklistChatWidget.js +40 -0
  327. package/dist/components/core/solid-agent/widgets/SolidChecklistChatWidget.js.map +1 -0
  328. package/dist/components/core/solid-agent/widgets/SolidChecklistChatWidget.tsx +57 -0
  329. package/dist/components/core/solid-agent/widgets/SolidCodeChatWidget.d.ts +4 -0
  330. package/dist/components/core/solid-agent/widgets/SolidCodeChatWidget.d.ts.map +1 -0
  331. package/dist/components/core/solid-agent/widgets/SolidCodeChatWidget.js +13 -0
  332. package/dist/components/core/solid-agent/widgets/SolidCodeChatWidget.js.map +1 -0
  333. package/dist/components/core/solid-agent/widgets/SolidCodeChatWidget.tsx +19 -0
  334. package/dist/components/core/solid-agent/widgets/SolidDiffListChatWidget.d.ts +7 -0
  335. package/dist/components/core/solid-agent/widgets/SolidDiffListChatWidget.d.ts.map +1 -0
  336. package/dist/components/core/solid-agent/widgets/SolidDiffListChatWidget.js +55 -0
  337. package/dist/components/core/solid-agent/widgets/SolidDiffListChatWidget.js.map +1 -0
  338. package/dist/components/core/solid-agent/widgets/SolidDiffListChatWidget.tsx +81 -0
  339. package/dist/components/core/solid-agent/widgets/SolidGalleryChatWidget.d.ts +4 -0
  340. package/dist/components/core/solid-agent/widgets/SolidGalleryChatWidget.d.ts.map +1 -0
  341. package/dist/components/core/solid-agent/widgets/SolidGalleryChatWidget.js +15 -0
  342. package/dist/components/core/solid-agent/widgets/SolidGalleryChatWidget.js.map +1 -0
  343. package/dist/components/core/solid-agent/widgets/SolidGalleryChatWidget.tsx +30 -0
  344. package/dist/components/core/solid-agent/widgets/SolidJsonChatWidget.d.ts +4 -0
  345. package/dist/components/core/solid-agent/widgets/SolidJsonChatWidget.d.ts.map +1 -0
  346. package/dist/components/core/solid-agent/widgets/SolidJsonChatWidget.js +15 -0
  347. package/dist/components/core/solid-agent/widgets/SolidJsonChatWidget.js.map +1 -0
  348. package/dist/components/core/solid-agent/widgets/SolidJsonChatWidget.tsx +21 -0
  349. package/dist/components/core/solid-agent/widgets/SolidLinkCardChatWidget.d.ts +7 -0
  350. package/dist/components/core/solid-agent/widgets/SolidLinkCardChatWidget.d.ts.map +1 -0
  351. package/dist/components/core/solid-agent/widgets/SolidLinkCardChatWidget.js +21 -0
  352. package/dist/components/core/solid-agent/widgets/SolidLinkCardChatWidget.js.map +1 -0
  353. package/dist/components/core/solid-agent/widgets/SolidLinkCardChatWidget.tsx +33 -0
  354. package/dist/components/core/solid-agent/widgets/SolidMarkdownChatWidget.d.ts +4 -0
  355. package/dist/components/core/solid-agent/widgets/SolidMarkdownChatWidget.d.ts.map +1 -0
  356. package/dist/components/core/solid-agent/widgets/SolidMarkdownChatWidget.js +11 -0
  357. package/dist/components/core/solid-agent/widgets/SolidMarkdownChatWidget.js.map +1 -0
  358. package/dist/components/core/solid-agent/widgets/SolidMarkdownChatWidget.tsx +9 -0
  359. package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.d.ts +15 -0
  360. package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.d.ts.map +1 -0
  361. package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.js +26 -0
  362. package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.js.map +1 -0
  363. package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.tsx +42 -0
  364. package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.d.ts +7 -0
  365. package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.d.ts.map +1 -0
  366. package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.js +41 -0
  367. package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.js.map +1 -0
  368. package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.tsx +69 -0
  369. package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.d.ts +7 -0
  370. package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.d.ts.map +1 -0
  371. package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.js +23 -0
  372. package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.js.map +1 -0
  373. package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.tsx +40 -0
  374. package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.d.ts +4 -0
  375. package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.d.ts.map +1 -0
  376. package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.js +32 -0
  377. package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.js.map +1 -0
  378. package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.tsx +55 -0
  379. package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.d.ts +7 -0
  380. package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.d.ts.map +1 -0
  381. package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.js +17 -0
  382. package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.js.map +1 -0
  383. package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.tsx +31 -0
  384. package/dist/components/core/solid-agent/widgets/chatWidgetUtils.d.ts +12 -0
  385. package/dist/components/core/solid-agent/widgets/chatWidgetUtils.d.ts.map +1 -0
  386. package/dist/components/core/solid-agent/widgets/chatWidgetUtils.js +17 -0
  387. package/dist/components/core/solid-agent/widgets/chatWidgetUtils.js.map +1 -0
  388. package/dist/components/core/solid-agent/widgets/chatWidgetUtils.ts +19 -0
  389. package/dist/components/core/solid-agent/widgets/solidChatWidgets.module.css +909 -0
  390. package/dist/components/core/solid-ai/SolidAiChat.js +1 -1
  391. package/dist/components/core/solid-ai/SolidAiChat.js.map +1 -1
  392. package/dist/components/core/solid-ai/SolidAiChat.tsx +2 -2
  393. package/dist/components/layout/AdminLayout.d.ts.map +1 -1
  394. package/dist/components/layout/AdminLayout.js +2 -1
  395. package/dist/components/layout/AdminLayout.js.map +1 -1
  396. package/dist/components/layout/AdminLayout.tsx +2 -0
  397. package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts.map +1 -1
  398. package/dist/components/shad-cn-ui/SolidAutocomplete.js +2 -2
  399. package/dist/components/shad-cn-ui/SolidAutocomplete.js.map +1 -1
  400. package/dist/components/shad-cn-ui/SolidAutocomplete.tsx +19 -15
  401. package/dist/components/shad-cn-ui/SolidDialog.d.ts +2 -1
  402. package/dist/components/shad-cn-ui/SolidDialog.d.ts.map +1 -1
  403. package/dist/components/shad-cn-ui/SolidDialog.js +2 -2
  404. package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -1
  405. package/dist/components/shad-cn-ui/SolidDialog.tsx +3 -0
  406. package/dist/components/shad-cn-ui/SolidIconPicker.d.ts +7 -0
  407. package/dist/components/shad-cn-ui/SolidIconPicker.d.ts.map +1 -0
  408. package/dist/components/shad-cn-ui/SolidIconPicker.js +43 -0
  409. package/dist/components/shad-cn-ui/SolidIconPicker.js.map +1 -0
  410. package/dist/components/shad-cn-ui/SolidIconPicker.tsx +73 -0
  411. package/dist/components/shad-cn-ui/index.d.ts +1 -0
  412. package/dist/components/shad-cn-ui/index.d.ts.map +1 -1
  413. package/dist/components/shad-cn-ui/index.js +1 -0
  414. package/dist/components/shad-cn-ui/index.js.map +1 -1
  415. package/dist/components/shad-cn-ui/index.ts +1 -0
  416. package/dist/constants/allowed-ai-models.d.ts +8 -0
  417. package/dist/constants/allowed-ai-models.d.ts.map +1 -0
  418. package/dist/constants/allowed-ai-models.js +33 -0
  419. package/dist/constants/allowed-ai-models.js.map +1 -0
  420. package/dist/constants/allowed-ai-models.ts +39 -0
  421. package/dist/helpers/hydrateRelationRules.d.ts.map +1 -1
  422. package/dist/helpers/hydrateRelationRules.js +3 -1
  423. package/dist/helpers/hydrateRelationRules.js.map +1 -1
  424. package/dist/helpers/hydrateRelationRules.ts +5 -1
  425. package/dist/helpers/registry.d.ts +4 -2
  426. package/dist/helpers/registry.d.ts.map +1 -1
  427. package/dist/helpers/registry.js +75 -12
  428. package/dist/helpers/registry.js.map +1 -1
  429. package/dist/helpers/registry.ts +73 -16
  430. package/dist/helpers/updatePasswordField.d.ts.map +1 -1
  431. package/dist/helpers/updatePasswordField.js +21 -15
  432. package/dist/helpers/updatePasswordField.js.map +1 -1
  433. package/dist/helpers/updatePasswordField.ts +6 -1
  434. package/dist/index.d.ts +21 -5
  435. package/dist/index.d.ts.map +1 -1
  436. package/dist/index.js +16 -3
  437. package/dist/index.js.map +1 -1
  438. package/dist/index.ts +34 -3
  439. package/dist/redux/api/fieldApi.js +1 -1
  440. package/dist/redux/api/fieldApi.js.map +1 -1
  441. package/dist/redux/api/fieldApi.ts +2 -2
  442. package/dist/redux/api/modelApi.d.ts +13 -13
  443. package/dist/redux/api/modelApi.d.ts.map +1 -1
  444. package/dist/redux/api/modelApi.js +15 -15
  445. package/dist/redux/api/modelApi.js.map +1 -1
  446. package/dist/redux/api/modelApi.ts +12 -15
  447. package/dist/redux/features/agentSlice.d.ts +34 -0
  448. package/dist/redux/features/agentSlice.d.ts.map +1 -0
  449. package/dist/redux/features/agentSlice.js +92 -0
  450. package/dist/redux/features/agentSlice.js.map +1 -0
  451. package/dist/redux/features/agentSlice.ts +119 -0
  452. package/dist/redux/store/defaultStoreConfig.d.ts +11 -10
  453. package/dist/redux/store/defaultStoreConfig.d.ts.map +1 -1
  454. package/dist/redux/store/defaultStoreConfig.js +2 -0
  455. package/dist/redux/store/defaultStoreConfig.js.map +1 -1
  456. package/dist/redux/store/defaultStoreConfig.ts +2 -0
  457. package/dist/redux/store/solidEntityApiPool.d.ts.map +1 -1
  458. package/dist/redux/store/solidEntityApiPool.js +7 -0
  459. package/dist/redux/store/solidEntityApiPool.js.map +1 -1
  460. package/dist/redux/store/solidEntityApiPool.ts +6 -0
  461. package/dist/resources/globals.css +109 -1
  462. package/dist/resources/solid-custom.css +295 -0
  463. package/dist/resources/solid-tailwind-generated.css +1 -1
  464. package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.css +47 -0
  465. package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.d.ts +12 -0
  466. package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.d.ts.map +1 -0
  467. package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.js +80 -0
  468. package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.js.map +1 -0
  469. package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.tsx +123 -0
  470. package/dist/routes/pages/admin/core/AgentRegistryEditorPage.css +110 -0
  471. package/dist/routes/pages/admin/core/AgentRegistryEditorPage.d.ts +3 -0
  472. package/dist/routes/pages/admin/core/AgentRegistryEditorPage.d.ts.map +1 -0
  473. package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js +702 -0
  474. package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js.map +1 -0
  475. package/dist/routes/pages/admin/core/AgentRegistryEditorPage.tsx +630 -0
  476. package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.css +303 -0
  477. package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.d.ts +3 -0
  478. package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.d.ts.map +1 -0
  479. package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js +330 -0
  480. package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js.map +1 -0
  481. package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.tsx +460 -0
  482. package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.css +125 -0
  483. package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.d.ts +3 -0
  484. package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.d.ts.map +1 -0
  485. package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js +295 -0
  486. package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js.map +1 -0
  487. package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.tsx +275 -0
  488. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js +11 -11
  489. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js.map +1 -1
  490. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.tsx +15 -15
  491. package/dist/routes/pages/embed/AgentEmbedPage.d.ts +3 -0
  492. package/dist/routes/pages/embed/AgentEmbedPage.d.ts.map +1 -0
  493. package/dist/routes/pages/embed/AgentEmbedPage.js +170 -0
  494. package/dist/routes/pages/embed/AgentEmbedPage.js.map +1 -0
  495. package/dist/routes/pages/embed/AgentEmbedPage.module.css +195 -0
  496. package/dist/routes/pages/embed/AgentEmbedPage.tsx +169 -0
  497. package/dist/routes/solidRoutes.d.ts.map +1 -1
  498. package/dist/routes/solidRoutes.js +8 -0
  499. package/dist/routes/solidRoutes.js.map +1 -1
  500. package/dist/routes/solidRoutes.tsx +8 -0
  501. package/dist/types/extension-registry.d.ts +4 -0
  502. package/dist/types/extension-registry.d.ts.map +1 -1
  503. package/dist/types/extension-registry.js +7 -0
  504. package/dist/types/extension-registry.js.map +1 -1
  505. package/dist/types/extension-registry.ts +7 -0
  506. package/dist/types/index.d.ts +4 -0
  507. package/dist/types/list-row-action.d.ts +2 -0
  508. package/dist/types/list-row-action.d.ts.map +1 -1
  509. package/dist/types/list-row-action.js.map +1 -1
  510. package/dist/types/list-row-action.ts +3 -0
  511. package/dist/types/solid-core.d.ts +36 -0
  512. package/package.json +1 -1
@@ -0,0 +1,303 @@
1
+ .agent-skill-editor {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 1rem;
5
+ width: 100%;
6
+ min-height: calc(100vh - 7rem);
7
+ padding: 1.5rem;
8
+ color: var(--text-color, var(--foreground));
9
+ }
10
+
11
+ .agent-skill-editor__header,
12
+ .agent-skill-editor__actions,
13
+ .agent-skill-editor__fields,
14
+ .agent-skill-editor__tag-input,
15
+ .agent-skill-editor__agent-card {
16
+ display: flex;
17
+ align-items: center;
18
+ }
19
+
20
+ .agent-skill-editor__header {
21
+ justify-content: space-between;
22
+ gap: 1rem;
23
+ }
24
+
25
+ .agent-skill-editor__header p,
26
+ .agent-skill-editor__panel header p,
27
+ .agent-skill-editor__agents > div p {
28
+ margin: 0 0 0.3rem;
29
+ color: var(--text-color-secondary, var(--muted-foreground));
30
+ font-size: 0.85rem;
31
+ }
32
+
33
+ .agent-skill-editor__header h1,
34
+ .agent-skill-editor__panel h2,
35
+ .agent-skill-editor__agents h2 {
36
+ margin: 0;
37
+ }
38
+
39
+ .agent-skill-editor__header h1 {
40
+ font-size: 1.45rem;
41
+ }
42
+
43
+ .agent-skill-editor__actions {
44
+ gap: 0.5rem;
45
+ }
46
+
47
+ .agent-skill-editor__heading-with-refresh,
48
+ .agent-skill-editor__refresh {
49
+ display: flex;
50
+ align-items: center;
51
+ }
52
+
53
+ .agent-skill-editor__heading-with-refresh { gap: 0.3rem; }
54
+ .agent-skill-editor__refresh { width: 1.25rem; height: 1.25rem; justify-content: center; padding: 0; border: 0; border-radius: 0.25rem; background: transparent; color: var(--text-color-secondary, var(--muted-foreground)); cursor: pointer; }
55
+ .agent-skill-editor__refresh:hover:not(:disabled),
56
+ .agent-skill-editor__refresh:focus-visible { color: var(--primary-color, var(--primary)); background: color-mix(in srgb, var(--primary-color, var(--primary)) 9%, transparent); }
57
+ .agent-skill-editor__refresh:focus-visible { outline: 2px solid var(--primary-color, var(--primary)); outline-offset: 1px; }
58
+ .agent-skill-editor__refresh:disabled { cursor: default; opacity: 0.55; }
59
+ .agent-skill-editor__refresh.is-loading svg { animation: agent-skill-editor-refresh-spin 0.8s linear infinite; }
60
+ @keyframes agent-skill-editor-refresh-spin { to { transform: rotate(360deg); } }
61
+ @media (prefers-reduced-motion: reduce) { .agent-skill-editor__refresh.is-loading svg { animation: none; } }
62
+
63
+ .agent-skill-editor__tabs {
64
+ overflow: hidden;
65
+ border: 1px solid var(--surface-border, var(--border));
66
+ border-radius: 0.75rem;
67
+ background: var(--surface-card, var(--card));
68
+ }
69
+
70
+ .agent-skill-editor__tab-list {
71
+ padding: 0.4rem 0.6rem 0;
72
+ border-bottom: 1px solid var(--surface-border, var(--border));
73
+ }
74
+
75
+ .agent-skill-editor__tab-panel {
76
+ min-height: 22rem;
77
+ padding: 1.25rem;
78
+ }
79
+
80
+ .agent-skill-editor__general,
81
+ .agent-skill-editor__agents {
82
+ display: flex;
83
+ flex-direction: column;
84
+ gap: 1.25rem;
85
+ }
86
+
87
+ .agent-skill-editor__fields {
88
+ align-items: flex-start;
89
+ gap: 1rem;
90
+ }
91
+
92
+ .agent-skill-editor__field {
93
+ display: flex;
94
+ flex: 1;
95
+ flex-direction: column;
96
+ gap: 0.5rem;
97
+ min-width: 0;
98
+ font-size: 0.875rem;
99
+ font-weight: 600;
100
+ }
101
+
102
+ .agent-skill-editor__field b {
103
+ color: var(--red-500, #dc2626);
104
+ }
105
+
106
+ .agent-skill-editor__field small {
107
+ color: var(--text-color-secondary, var(--muted-foreground));
108
+ font-weight: 400;
109
+ }
110
+
111
+ .agent-skill-editor__field .agent-skill-editor__field-error,
112
+ .agent-skill-editor__body-error {
113
+ margin: 2px 0 0;
114
+ color: #ef4444;
115
+ font-size: 11.5px;
116
+ font-weight: 400;
117
+ line-height: 1.3;
118
+ }
119
+
120
+ .agent-skill-editor__input--invalid {
121
+ border-color: #ef4444 !important;
122
+ box-shadow: 0 0 0 1px #fecaca inset !important;
123
+ }
124
+
125
+ .agent-skill-editor__tag-input {
126
+ flex-wrap: wrap;
127
+ gap: 0.5rem;
128
+ min-height: 3rem;
129
+ padding: 0.5rem;
130
+ border: 1px solid var(--surface-border, var(--border));
131
+ border-radius: 0.5rem;
132
+ background: var(--surface-ground, var(--background));
133
+ }
134
+
135
+ .agent-skill-editor__tag-input--invalid {
136
+ border-color: #ef4444;
137
+ box-shadow: 0 0 0 1px #fecaca inset;
138
+ }
139
+
140
+ .agent-skill-editor__tag-input > input {
141
+ flex: 1 1 12rem;
142
+ min-width: 10rem;
143
+ border: 0;
144
+ outline: 0;
145
+ color: inherit;
146
+ background: transparent;
147
+ font: inherit;
148
+ font-weight: 400;
149
+ }
150
+
151
+ .agent-skill-editor__tag {
152
+ display: inline-flex;
153
+ align-items: center;
154
+ gap: 0.35rem;
155
+ padding: 0.25rem 0.35rem 0.25rem 0.7rem;
156
+ border-radius: 999px;
157
+ color: var(--primary-color, var(--primary));
158
+ background: color-mix(in srgb, var(--primary-color, var(--primary)) 11%, transparent);
159
+ font-size: 0.78rem;
160
+ font-weight: 500;
161
+ }
162
+
163
+ .agent-skill-editor__tag button {
164
+ display: inline-grid;
165
+ width: 1.25rem;
166
+ height: 1.25rem;
167
+ place-items: center;
168
+ border: 0;
169
+ border-radius: 50%;
170
+ color: inherit;
171
+ background: transparent;
172
+ cursor: pointer;
173
+ }
174
+
175
+ .agent-skill-editor__tag button:hover {
176
+ background: color-mix(in srgb, var(--primary-color, var(--primary)) 17%, transparent);
177
+ }
178
+
179
+ .agent-skill-editor__skill {
180
+ width: 100%;
181
+ min-width: 0;
182
+ }
183
+
184
+ .agent-skill-editor__panel {
185
+ display: flex;
186
+ flex-direction: column;
187
+ min-width: 0;
188
+ overflow: hidden;
189
+ border: 1px solid var(--surface-border, var(--border));
190
+ border-radius: 0.75rem;
191
+ }
192
+
193
+ .agent-skill-editor__panel header {
194
+ padding: 0.9rem 1rem;
195
+ border-bottom: 1px solid var(--surface-border, var(--border));
196
+ }
197
+
198
+ .agent-skill-editor__panel h2,
199
+ .agent-skill-editor__agents h2 {
200
+ font-size: 1rem;
201
+ }
202
+
203
+ .agent-skill-editor__code {
204
+ flex: 1;
205
+ border: 0 !important;
206
+ border-radius: 0 !important;
207
+ }
208
+
209
+ .agent-skill-editor__code--invalid {
210
+ border: 1px solid #ef4444 !important;
211
+ box-shadow: 0 0 0 1px #fecaca inset;
212
+ }
213
+
214
+ .agent-skill-editor__agent-grid {
215
+ display: grid;
216
+ grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
217
+ gap: 0.75rem;
218
+ }
219
+
220
+ .agent-skill-editor__agent-card {
221
+ gap: 0.75rem;
222
+ min-height: 4.5rem;
223
+ padding: 0.85rem 1rem;
224
+ border: 1px solid var(--surface-border, var(--border));
225
+ border-radius: 0.7rem;
226
+ background: var(--surface-ground, var(--background));
227
+ }
228
+
229
+ .agent-skill-editor__agent-card > span {
230
+ display: grid;
231
+ width: 2.4rem;
232
+ height: 2.4rem;
233
+ flex: 0 0 auto;
234
+ place-items: center;
235
+ border-radius: 50%;
236
+ color: var(--primary-color, var(--primary));
237
+ background: color-mix(in srgb, var(--primary-color, var(--primary)) 12%, transparent);
238
+ font-weight: 700;
239
+ }
240
+
241
+ .agent-skill-editor__agent-card strong {
242
+ overflow: hidden;
243
+ text-overflow: ellipsis;
244
+ white-space: nowrap;
245
+ font-size: 0.9rem;
246
+ }
247
+
248
+ .agent-skill-editor__empty,
249
+ .agent-skill-editor__loading {
250
+ padding: 2.5rem 1rem;
251
+ border: 1px dashed var(--surface-border, var(--border));
252
+ border-radius: 0.75rem;
253
+ color: var(--text-color-secondary, var(--muted-foreground));
254
+ text-align: center;
255
+ }
256
+
257
+ @media (max-width: 900px) {
258
+ .agent-skill-editor__fields {
259
+ flex-direction: column;
260
+ }
261
+ }
262
+
263
+ @media (max-width: 600px) {
264
+ .agent-skill-editor {
265
+ padding: 1rem;
266
+ }
267
+
268
+ .agent-skill-editor__header {
269
+ align-items: flex-start;
270
+ flex-direction: column;
271
+ }
272
+
273
+ .agent-skill-editor__actions {
274
+ width: 100%;
275
+ }
276
+ }
277
+
278
+ fieldset.agent-skill-editor__general {
279
+ min-width: 0;
280
+ margin: 0;
281
+ padding: 0;
282
+ border: 0;
283
+ }
284
+
285
+ .agent-skill-editor__field select {
286
+ min-height: 2.5rem;
287
+ padding: 0.5rem 0.75rem;
288
+ border: 1px solid var(--surface-border, var(--border));
289
+ border-radius: 0.5rem;
290
+ color: inherit;
291
+ background: var(--surface-ground, var(--background));
292
+ font: inherit;
293
+ }
294
+
295
+ .agent-skill-editor__readonly-note {
296
+ margin: 0;
297
+ padding: 0.75rem 1rem;
298
+ border: 1px solid var(--surface-border, var(--border));
299
+ border-radius: 0.5rem;
300
+ color: var(--text-color-secondary, var(--muted-foreground));
301
+ background: var(--surface-ground, var(--background));
302
+ font-size: 0.875rem;
303
+ }
@@ -0,0 +1,3 @@
1
+ import "./AgentSkillRegistryEditorPage.css";
2
+ export declare function AgentSkillRegistryEditorPage(): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=AgentSkillRegistryEditorPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentSkillRegistryEditorPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/AgentSkillRegistryEditorPage.tsx"],"names":[],"mappings":"AAgBA,OAAO,oCAAoC,CAAC;AAiG5C,wBAAgB,4BAA4B,4CA0V3C"}
@@ -0,0 +1,330 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
49
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
50
+ if (ar || !(i in from)) {
51
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
52
+ ar[i] = from[i];
53
+ }
54
+ }
55
+ return to.concat(ar || Array.prototype.slice.call(from));
56
+ };
57
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
58
+ import React from "react";
59
+ import { ArrowLeft, Plus, RefreshCw, X } from "lucide-react";
60
+ import { useDispatch } from "react-redux";
61
+ import { useNavigate, useParams } from "react-router-dom";
62
+ import { createSolidEntityApi } from "../../../../redux/api/solidEntityApi";
63
+ import { showToast } from "../../../../redux/features/toastSlice";
64
+ import { AgentRegistryAuditPanel } from "./AgentRegistryAuditPanel";
65
+ import { SolidButton, SolidCodeEditor, SolidDialog, SolidDialogBody, SolidIconPicker, SolidInput, SolidTabGroup, } from "../../../../components/shad-cn-ui";
66
+ import "./AgentSkillRegistryEditorPage.css";
67
+ function extractEntityRecord(response) {
68
+ var candidate = response;
69
+ for (var depth = 0; depth < 3; depth += 1) {
70
+ if (!candidate || typeof candidate !== "object")
71
+ return undefined;
72
+ var value = candidate;
73
+ if ("id" in value || "name" in value)
74
+ return value;
75
+ candidate = value.data;
76
+ }
77
+ return candidate && typeof candidate === "object" ? candidate : undefined;
78
+ }
79
+ function parseTags(value) {
80
+ if (Array.isArray(value)) {
81
+ return value.map(function (tag) { return String(tag).trim(); }).filter(Boolean);
82
+ }
83
+ if (typeof value !== "string" || !value.trim())
84
+ return [];
85
+ try {
86
+ var parsed = JSON.parse(value);
87
+ if (Array.isArray(parsed)) {
88
+ return parsed.map(function (tag) { return String(tag).trim(); }).filter(Boolean);
89
+ }
90
+ }
91
+ catch (_a) {
92
+ return value === "{}" ? [] : value.split(",").map(function (tag) { return tag.trim(); }).filter(Boolean);
93
+ }
94
+ return [];
95
+ }
96
+ function formatErrorMessage(value) {
97
+ var _a, _b;
98
+ if (typeof value === "string")
99
+ return value.trim() || undefined;
100
+ if (Array.isArray(value)) {
101
+ var messages = value.map(formatErrorMessage).filter(function (message) { return Boolean(message); });
102
+ return messages.length ? messages.join("; ") : undefined;
103
+ }
104
+ if (value && typeof value === "object") {
105
+ var error = value;
106
+ return (_b = (_a = formatErrorMessage(error.message)) !== null && _a !== void 0 ? _a : formatErrorMessage(error.constraints)) !== null && _b !== void 0 ? _b : formatErrorMessage(error.error);
107
+ }
108
+ return undefined;
109
+ }
110
+ function getSaveErrorMessage(error) {
111
+ var _a, _b, _c, _d, _e, _f, _g, _h;
112
+ if (!error || typeof error !== "object")
113
+ return "Failed to save skill.";
114
+ var apiError = error;
115
+ // Nest validation details are nested at data.data.message; prefer them over
116
+ // the generic outer "Bad Request Exception" message.
117
+ return (_h = (_g = (_e = (_c = formatErrorMessage((_b = (_a = apiError.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message)) !== null && _c !== void 0 ? _c : formatErrorMessage((_d = apiError.data) === null || _d === void 0 ? void 0 : _d.message)) !== null && _e !== void 0 ? _e : formatErrorMessage((_f = apiError.data) === null || _f === void 0 ? void 0 : _f.error)) !== null && _g !== void 0 ? _g : formatErrorMessage(apiError.message)) !== null && _h !== void 0 ? _h : "Failed to save skill.";
118
+ }
119
+ function skillAgents(record) {
120
+ var related = record === null || record === void 0 ? void 0 : record.agentSkills;
121
+ var links = Array.isArray(related)
122
+ ? related
123
+ : related
124
+ ? [related]
125
+ : [];
126
+ var seen = new Set();
127
+ return links
128
+ .map(function (link) { return link.agentRegistry; })
129
+ .filter(function (agent) { return Boolean(agent && typeof agent === "object"); })
130
+ .filter(function (agent) {
131
+ var _a, _b, _c;
132
+ var key = String((_c = (_b = (_a = agent.id) !== null && _a !== void 0 ? _a : agent.name) !== null && _b !== void 0 ? _b : agent.title) !== null && _c !== void 0 ? _c : "");
133
+ if (!key || seen.has(key))
134
+ return false;
135
+ seen.add(key);
136
+ return true;
137
+ });
138
+ }
139
+ export function AgentSkillRegistryEditorPage() {
140
+ var _this = this;
141
+ var _a = useParams().id, id = _a === void 0 ? "" : _a;
142
+ var navigate = useNavigate();
143
+ var dispatch = useDispatch();
144
+ var entityApi = React.useMemo(function () { return createSolidEntityApi("agentSkillRegistry"); }, []);
145
+ var useCreateSolidEntityMutation = entityApi.useCreateSolidEntityMutation, useGetSolidEntityByIdQuery = entityApi.useGetSolidEntityByIdQuery, useUpdateSolidEntityMutation = entityApi.useUpdateSolidEntityMutation;
146
+ var _b = useGetSolidEntityByIdQuery({
147
+ id: id,
148
+ qs: "populate[0]=agentSkills&populate[1]=agentSkills.agentRegistry",
149
+ }, { skip: !id || id === "new" }), response = _b.data, isLoading = _b.isLoading, isFetching = _b.isFetching, refetch = _b.refetch;
150
+ var _c = useCreateSolidEntityMutation(), createSkill = _c[0], isCreating = _c[1].isLoading;
151
+ var _d = useUpdateSolidEntityMutation(), updateSkill = _d[0], isSaving = _d[1].isLoading;
152
+ var record = extractEntityRecord(response);
153
+ var _e = React.useState("general"), activeTab = _e[0], setActiveTab = _e[1];
154
+ var _f = React.useState(""), name = _f[0], setName = _f[1];
155
+ var _g = React.useState("custom"), type = _g[0], setType = _g[1];
156
+ var _h = React.useState(""), iconName = _h[0], setIconName = _h[1];
157
+ var _j = React.useState(""), description = _j[0], setDescription = _j[1];
158
+ var _k = React.useState(""), body = _k[0], setBody = _k[1];
159
+ var _l = React.useState([]), tags = _l[0], setTags = _l[1];
160
+ var _m = React.useState(""), tagDraft = _m[0], setTagDraft = _m[1];
161
+ var _o = React.useState({}), fieldErrors = _o[0], setFieldErrors = _o[1];
162
+ var _p = React.useState(0), auditRefreshVersion = _p[0], setAuditRefreshVersion = _p[1];
163
+ var _q = React.useState(false), confirmRefresh = _q[0], setConfirmRefresh = _q[1];
164
+ var baseline = React.useRef("");
165
+ var currentForm = function () { return JSON.stringify({ name: name, type: type, iconName: iconName, description: description, body: body, tags: tags, tagDraft: tagDraft }); };
166
+ React.useEffect(function () {
167
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
168
+ var nextTags = parseTags(record === null || record === void 0 ? void 0 : record.tags);
169
+ setName((_a = record === null || record === void 0 ? void 0 : record.name) !== null && _a !== void 0 ? _a : "");
170
+ setType((_b = record === null || record === void 0 ? void 0 : record.type) !== null && _b !== void 0 ? _b : "custom");
171
+ setIconName((_c = record === null || record === void 0 ? void 0 : record.iconName) !== null && _c !== void 0 ? _c : "");
172
+ setDescription((_d = record === null || record === void 0 ? void 0 : record.description) !== null && _d !== void 0 ? _d : "");
173
+ setBody((_e = record === null || record === void 0 ? void 0 : record.body) !== null && _e !== void 0 ? _e : "");
174
+ setTags(nextTags);
175
+ setTagDraft("");
176
+ baseline.current = JSON.stringify({ name: (_f = record === null || record === void 0 ? void 0 : record.name) !== null && _f !== void 0 ? _f : "", type: (_g = record === null || record === void 0 ? void 0 : record.type) !== null && _g !== void 0 ? _g : "custom", iconName: (_h = record === null || record === void 0 ? void 0 : record.iconName) !== null && _h !== void 0 ? _h : "", description: (_j = record === null || record === void 0 ? void 0 : record.description) !== null && _j !== void 0 ? _j : "", body: (_k = record === null || record === void 0 ? void 0 : record.body) !== null && _k !== void 0 ? _k : "", tags: nextTags, tagDraft: "" });
177
+ }, [record]);
178
+ var isReadOnly = (record === null || record === void 0 ? void 0 : record.type) === "solidx";
179
+ var isDirty = Boolean(record === null || record === void 0 ? void 0 : record.id) && currentForm() !== baseline.current;
180
+ var requestRefresh = function () { return isDirty ? setConfirmRefresh(true) : void refetch(); };
181
+ var addTag = function () {
182
+ var nextTag = tagDraft.trim();
183
+ if (!nextTag)
184
+ return;
185
+ if (!tags.some(function (tag) { return tag.toLowerCase() === nextTag.toLowerCase(); })) {
186
+ setTags(function (current) { return __spreadArray(__spreadArray([], current, true), [nextTag], false); });
187
+ }
188
+ setTagDraft("");
189
+ setFieldErrors(function (current) { return (__assign(__assign({}, current), { tags: "" })); });
190
+ };
191
+ var handleSave = function () { return __awaiter(_this, void 0, void 0, function () {
192
+ var nextErrors, payload, result, createdId, error_1, errorDetail, serverFieldErrors, _i, _a, field;
193
+ var _b, _c;
194
+ return __generator(this, function (_d) {
195
+ switch (_d.label) {
196
+ case 0:
197
+ nextErrors = {};
198
+ if (!name.trim())
199
+ nextErrors.name = "Name is required.";
200
+ if (!type.trim())
201
+ nextErrors.type = "Skill type is required.";
202
+ if (!description.trim())
203
+ nextErrors.description = "Description is required.";
204
+ if (!body.trim())
205
+ nextErrors.body = "Skill instructions are required.";
206
+ if (tags.length === 0)
207
+ nextErrors.tags = "At least one tag is required.";
208
+ setFieldErrors(nextErrors);
209
+ if (Object.keys(nextErrors).length > 0) {
210
+ setActiveTab(nextErrors.body ? "skill" : "general");
211
+ dispatch(showToast({
212
+ severity: "error",
213
+ summary: "Missing information",
214
+ detail: Object.values(nextErrors).join(" "),
215
+ }));
216
+ return [2 /*return*/];
217
+ }
218
+ payload = {
219
+ name: name.trim(),
220
+ type: type,
221
+ iconName: iconName || null,
222
+ description: description.trim(),
223
+ body: body,
224
+ tags: JSON.stringify(tags),
225
+ };
226
+ _d.label = 1;
227
+ case 1:
228
+ _d.trys.push([1, 6, , 7]);
229
+ if (!(record === null || record === void 0 ? void 0 : record.id)) return [3 /*break*/, 3];
230
+ return [4 /*yield*/, updateSkill({ id: record.id, data: payload }).unwrap()];
231
+ case 2:
232
+ _d.sent();
233
+ dispatch(showToast({
234
+ severity: "success",
235
+ summary: "Saved",
236
+ detail: "Skill updated successfully.",
237
+ }));
238
+ setAuditRefreshVersion(function (version) { return version + 1; });
239
+ refetch();
240
+ return [3 /*break*/, 5];
241
+ case 3: return [4 /*yield*/, createSkill(payload).unwrap()];
242
+ case 4:
243
+ result = _d.sent();
244
+ createdId = (_c = (_b = result === null || result === void 0 ? void 0 : result.data) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : result === null || result === void 0 ? void 0 : result.id;
245
+ dispatch(showToast({
246
+ severity: "success",
247
+ summary: "Created",
248
+ detail: "Skill created successfully.",
249
+ }));
250
+ if (createdId) {
251
+ navigate("/admin/core/solid-core/agent-skill-registry/editor/".concat(createdId), {
252
+ replace: true,
253
+ });
254
+ }
255
+ _d.label = 5;
256
+ case 5: return [3 /*break*/, 7];
257
+ case 6:
258
+ error_1 = _d.sent();
259
+ errorDetail = getSaveErrorMessage(error_1);
260
+ serverFieldErrors = {};
261
+ if (/required|not be empty|cannot be empty|should not be empty/i.test(errorDetail)) {
262
+ for (_i = 0, _a = ["name", "type", "description", "body", "tags"]; _i < _a.length; _i++) {
263
+ field = _a[_i];
264
+ if (!new RegExp("\\b".concat(field, "\\b"), "i").test(errorDetail))
265
+ continue;
266
+ serverFieldErrors[field] = "".concat(field === "body" ? "Skill instructions" : field[0].toUpperCase() + field.slice(1), " is required.");
267
+ }
268
+ }
269
+ if (Object.keys(serverFieldErrors).length > 0) {
270
+ setFieldErrors(serverFieldErrors);
271
+ setActiveTab(serverFieldErrors.body || serverFieldErrors.tags ? "skill" : "general");
272
+ }
273
+ dispatch(showToast({
274
+ severity: "error",
275
+ summary: "Save failed",
276
+ detail: errorDetail,
277
+ }));
278
+ return [3 /*break*/, 7];
279
+ case 7: return [2 /*return*/];
280
+ }
281
+ });
282
+ }); };
283
+ var agents = skillAgents(record);
284
+ var tabs = [
285
+ {
286
+ value: "general",
287
+ label: "General Info",
288
+ content: (_jsxs("fieldset", { className: "agent-skill-editor__general", disabled: isReadOnly, children: [isReadOnly && _jsx("p", { className: "agent-skill-editor__readonly-note", children: "SolidX skills are seeded by the AgentHub runtime and cannot be edited." }), _jsxs("div", { className: "agent-skill-editor__fields", children: [_jsxs("label", { className: "agent-skill-editor__field", children: [_jsxs("span", { children: ["Name ", _jsx("b", { children: "*" })] }), _jsx(SolidInput, { value: name, "aria-invalid": Boolean(fieldErrors.name), "aria-describedby": fieldErrors.name ? "agent-skill-name-error" : undefined, className: fieldErrors.name ? "agent-skill-editor__input--invalid" : undefined, onChange: function (event) {
289
+ setName(event.target.value);
290
+ setFieldErrors(function (current) { return (__assign(__assign({}, current), { name: "" })); });
291
+ } }), fieldErrors.name && _jsx("small", { id: "agent-skill-name-error", className: "agent-skill-editor__field-error", children: fieldErrors.name })] }), _jsxs("div", { className: "agent-skill-editor__field", children: [_jsx("span", { children: "Icon" }), _jsx(SolidIconPicker, { value: iconName, onChange: setIconName })] }), _jsxs("label", { className: "agent-skill-editor__field", children: [_jsxs("span", { children: ["Description ", _jsx("b", { children: "*" })] }), _jsx(SolidInput, { value: description, "aria-invalid": Boolean(fieldErrors.description), "aria-describedby": fieldErrors.description ? "agent-skill-description-error" : undefined, className: fieldErrors.description ? "agent-skill-editor__input--invalid" : undefined, onChange: function (event) {
292
+ setDescription(event.target.value);
293
+ setFieldErrors(function (current) { return (__assign(__assign({}, current), { description: "" })); });
294
+ } }), fieldErrors.description && _jsx("small", { id: "agent-skill-description-error", className: "agent-skill-editor__field-error", children: fieldErrors.description })] })] }), _jsxs("label", { className: "agent-skill-editor__field", children: [_jsxs("span", { children: ["Skill type ", _jsx("b", { children: "*" })] }), _jsxs("select", { value: type, "aria-invalid": Boolean(fieldErrors.type), "aria-describedby": fieldErrors.type ? "agent-skill-type-error" : undefined, className: fieldErrors.type ? "agent-skill-editor__input--invalid" : undefined, onChange: function (event) {
295
+ setType(event.target.value);
296
+ setFieldErrors(function (current) { return (__assign(__assign({}, current), { type: "" })); });
297
+ }, children: [isReadOnly && _jsx("option", { value: "solidx", children: "SolidX" }), _jsx("option", { value: "thirdparty", children: "Third Party" }), _jsx("option", { value: "custom", children: "Custom" })] }), fieldErrors.type && _jsx("small", { id: "agent-skill-type-error", className: "agent-skill-editor__field-error", children: fieldErrors.type })] }), _jsxs("div", { className: "agent-skill-editor__field", children: [_jsxs("span", { children: ["Tags ", _jsx("b", { children: "*" })] }), _jsxs("div", { className: "agent-skill-editor__tag-input".concat(fieldErrors.tags ? " agent-skill-editor__tag-input--invalid" : ""), children: [tags.map(function (tag, index) { return (_jsxs("span", { className: "agent-skill-editor__tag", children: [tag, _jsx("button", { type: "button", "aria-label": "Remove ".concat(tag), onClick: function () {
298
+ setTags(function (current) {
299
+ var nextTags = current.filter(function (_, tagIndex) { return tagIndex !== index; });
300
+ if (nextTags.length > 0)
301
+ setFieldErrors(function (errors) { return (__assign(__assign({}, errors), { tags: "" })); });
302
+ return nextTags;
303
+ });
304
+ }, children: _jsx(X, { size: 13 }) })] }, "".concat(tag, "-").concat(index))); }), _jsx("input", { value: tagDraft, "aria-label": "Add a tag", placeholder: "Type a tag and press Enter", onChange: function (event) { return setTagDraft(event.target.value); }, onKeyDown: function (event) {
305
+ if (event.key === "Enter") {
306
+ event.preventDefault();
307
+ addTag();
308
+ }
309
+ } }), _jsxs(SolidButton, { type: "button", variant: "secondary", size: "small", onClick: addTag, children: [_jsx(Plus, { size: 14 }), " Add"] })] }), fieldErrors.tags && _jsx("small", { className: "agent-skill-editor__field-error", children: fieldErrors.tags }), _jsx("small", { children: "Tags are saved as a JSON array." })] })] })),
310
+ },
311
+ {
312
+ value: "skill",
313
+ label: "Skill",
314
+ content: (_jsx("div", { className: "agent-skill-editor__skill", children: _jsxs("section", { className: "agent-skill-editor__panel", children: [_jsxs("header", { children: [_jsxs("h2", { children: ["Skill instructions ", _jsx("b", { children: "*" })] }), _jsx("p", { children: "Write the skill's Markdown body here." })] }), _jsx(SolidCodeEditor, { value: body, onChange: function (value) {
315
+ setBody(value !== null && value !== void 0 ? value : "");
316
+ setFieldErrors(function (current) { return (__assign(__assign({}, current), { body: "" })); });
317
+ }, language: "markdown", readOnly: isReadOnly, fontSize: 11, height: "max(32rem, calc(100dvh - 18rem))", className: "agent-skill-editor__code".concat(fieldErrors.body ? " agent-skill-editor__code--invalid" : "") }), fieldErrors.body && _jsx("small", { className: "agent-skill-editor__field-error agent-skill-editor__body-error", children: fieldErrors.body })] }) })),
318
+ },
319
+ {
320
+ value: "agents",
321
+ label: "Agents",
322
+ content: (_jsxs("section", { className: "agent-skill-editor__agents", children: [_jsxs("div", { children: [_jsx("h2", { children: "Associated agents" }), _jsx("p", { children: "Agents linked to this skill. Associations are read-only here." })] }), isLoading ? (_jsx("p", { children: "Loading associated agents\u2026" })) : agents.length ? (_jsx("div", { className: "agent-skill-editor__agent-grid", children: agents.map(function (agent, index) {
323
+ var _a, _b, _c, _d, _e, _f;
324
+ return (_jsxs("article", { className: "agent-skill-editor__agent-card", children: [_jsx("span", { children: ((_b = (_a = agent.name) !== null && _a !== void 0 ? _a : agent.title) !== null && _b !== void 0 ? _b : "A").slice(0, 1).toUpperCase() }), _jsx("strong", { children: (_d = (_c = agent.name) !== null && _c !== void 0 ? _c : agent.title) !== null && _d !== void 0 ? _d : "Unnamed agent" })] }, String((_f = (_e = agent.id) !== null && _e !== void 0 ? _e : agent.name) !== null && _f !== void 0 ? _f : index)));
325
+ }) })) : (_jsx("div", { className: "agent-skill-editor__empty", children: "No agents are currently associated with this skill." }))] })),
326
+ },
327
+ ];
328
+ return (_jsxs("main", { className: "agent-skill-editor", children: [_jsxs("header", { className: "agent-skill-editor__header", children: [_jsx("div", { children: _jsxs("div", { className: "agent-skill-editor__heading-with-refresh", children: [_jsx("h1", { children: record ? "Edit Skill" : "Create Skill" }), (record === null || record === void 0 ? void 0 : record.id) && _jsx("button", { type: "button", className: "agent-skill-editor__refresh".concat(isFetching ? " is-loading" : ""), "aria-label": "Refresh skill", title: "Refresh skill", disabled: isFetching || isSaving, onClick: requestRefresh, children: _jsx(RefreshCw, { size: 14 }) })] }) }), _jsxs("div", { className: "agent-skill-editor__actions", children: [_jsx(SolidButton, { variant: "secondary", leftIcon: _jsx(ArrowLeft, { size: 16 }), onClick: function () { return navigate(-1); }, children: "Back" }), !isReadOnly && (_jsx(SolidButton, { loading: isCreating || isSaving, onClick: handleSave, children: "Save Skill" }))] })] }), _jsx(SolidDialog, { open: confirmRefresh, onOpenChange: setConfirmRefresh, header: "Discard unsaved changes?", style: { width: "min(28rem, 94vw)" }, footer: _jsxs(_Fragment, { children: [_jsx(SolidButton, { type: "button", variant: "secondary", onClick: function () { return setConfirmRefresh(false); }, children: "Cancel" }), _jsx(SolidButton, { type: "button", disabled: isFetching, onClick: function () { setConfirmRefresh(false); void refetch(); }, children: "Refresh and discard" })] }), children: _jsx(SolidDialogBody, { children: _jsx("p", { children: "You have unsaved changes. Refreshing will discard them and load the latest skill content." }) }) }), isLoading ? (_jsx("div", { className: "agent-skill-editor__loading", children: "Loading skill\u2026" })) : (record === null || record === void 0 ? void 0 : record.id) ? (_jsx(AgentRegistryAuditPanel, { modelSingularName: "agentSkillRegistry", recordId: record.id, refreshVersion: auditRefreshVersion, modelUserKey: record.name, children: _jsx(SolidTabGroup, { tabs: tabs, value: activeTab, onValueChange: setActiveTab, className: "agent-skill-editor__tabs", listClassName: "agent-skill-editor__tab-list", panelClassName: "agent-skill-editor__tab-panel" }) })) : (_jsx(SolidTabGroup, { tabs: tabs, value: activeTab, onValueChange: setActiveTab, className: "agent-skill-editor__tabs", listClassName: "agent-skill-editor__tab-list", panelClassName: "agent-skill-editor__tab-panel" }))] }));
329
+ }
330
+ //# sourceMappingURL=AgentSkillRegistryEditorPage.js.map