@ai-matrx/chat 0.6.5 → 0.7.0

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 (274) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/README.md +1 -1
  3. package/dist/agents/components/agent-widgets/AgentChatHistorySidebar.js +16 -55
  4. package/dist/agents/components/chat/ChatHistorySidebar.d.ts +4 -4
  5. package/dist/agents/components/chat/ChatHistorySidebar.js +2 -2
  6. package/dist/agents/components/chat/ChatSidebarMenu.js +1 -1
  7. package/dist/agents/components/chat/chat-door.d.ts +67 -0
  8. package/dist/agents/components/chat/chat-door.js +100 -0
  9. package/dist/agents/components/conversation-actions/conversationActionRegistry.d.ts +8 -0
  10. package/dist/agents/components/conversation-actions/conversationActionRegistry.js +11 -4
  11. package/dist/agents/components/conversation-history/AgentConversationList.d.ts +83 -0
  12. package/dist/agents/components/conversation-history/AgentConversationList.js +252 -0
  13. package/dist/agents/components/conversation-history/ConversationArchiveSection.d.ts +11 -0
  14. package/dist/agents/components/conversation-history/{ConversationTrashSection.js → ConversationArchiveSection.js} +41 -23
  15. package/dist/agents/components/conversation-history/ConversationHistorySidebar.d.ts +29 -10
  16. package/dist/agents/components/conversation-history/ConversationHistorySidebar.js +94 -141
  17. package/dist/agents/components/conversation-history/ConversationPickerWindow.js +1 -2
  18. package/dist/agents/components/inputs/input-components/TextareaInput.js +2 -0
  19. package/dist/agents/components/inputs/input-components/VariableInputComponent.js +7 -6
  20. package/dist/agents/components/inputs/smart-input/ConversationCompanionPills.d.ts +3 -0
  21. package/dist/agents/components/inputs/smart-input/ConversationCompanionPills.js +40 -0
  22. package/dist/agents/components/inputs/smart-input/ConversationContextRail.js +6 -29
  23. package/dist/agents/components/inputs/smart-input/DeviceToolsModeRow.d.ts +3 -0
  24. package/dist/agents/components/inputs/smart-input/DeviceToolsModeRow.js +35 -0
  25. package/dist/agents/components/inputs/smart-input/InboxQueueStrip.js +0 -8
  26. package/dist/agents/components/inputs/smart-input/RunControlsTabPanel.d.ts +2 -0
  27. package/dist/agents/components/inputs/smart-input/RunControlsTabPanel.js +8 -1
  28. package/dist/agents/components/inputs/smart-input/RunToolPicker.js +17 -12
  29. package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.js +22 -0
  30. package/dist/agents/components/inputs/smart-input/rail-pill.d.ts +35 -0
  31. package/dist/agents/components/inputs/smart-input/rail-pill.js +30 -0
  32. package/dist/agents/components/inputs/variable-input-variations/AgentVariableForm.js +52 -48
  33. package/dist/agents/components/run/AgentRunHeader.js +11 -5
  34. package/dist/agents/components/run-controls/panels/shared.d.ts +1 -1
  35. package/dist/agents/components/shared/AgentHeaderMobile.js +1 -0
  36. package/dist/agents/components/shared/AgentModeController.js +91 -27
  37. package/dist/agents/components/shared/AgentSelectorIsland.js +2 -1
  38. package/dist/agents/components/shell/AgentRunSidebarMenu.js +15 -54
  39. package/dist/agents/components/working-document/documents-workspace/DocumentsListRail.js +1 -2
  40. package/dist/agents/engine.d.ts +15 -0
  41. package/dist/agents/engine.js +17 -0
  42. package/dist/agents/hooks/useModelControls.js +3 -175
  43. package/dist/agents/redux/agent-definition/run-tier-record.js +1 -0
  44. package/dist/agents/redux/agent-definition/selectors.d.ts +237 -237
  45. package/dist/agents/redux/agent-shortcut-categories/selectors.d.ts +50 -50
  46. package/dist/agents/redux/agent-shortcuts/selectors.d.ts +147 -147
  47. package/dist/agents/redux/conversation-history/history-filters.d.ts +6 -0
  48. package/dist/agents/redux/conversation-history/history-filters.js +4 -1
  49. package/dist/agents/redux/conversation-history/selectors.js +2 -3
  50. package/dist/agents/redux/conversation-history/slice.d.ts +6 -9
  51. package/dist/agents/redux/conversation-history/slice.js +14 -23
  52. package/dist/agents/redux/conversation-history/thunks.js +7 -41
  53. package/dist/agents/redux/conversation-history/types.d.ts +12 -12
  54. package/dist/agents/redux/conversation-history/types.js +4 -6
  55. package/dist/agents/redux/conversation-list/conversation-list.selectors.d.ts +7 -73
  56. package/dist/agents/redux/conversation-list/conversation-list.selectors.js +12 -36
  57. package/dist/agents/redux/conversation-list/conversation-list.slice.d.ts +7 -22
  58. package/dist/agents/redux/conversation-list/conversation-list.slice.js +7 -62
  59. package/dist/agents/redux/conversation-list/conversation-list.thunks.d.ts +0 -25
  60. package/dist/agents/redux/conversation-list/conversation-list.thunks.js +2 -58
  61. package/dist/agents/redux/conversation-list/conversation-list.types.d.ts +6 -5
  62. package/dist/agents/redux/conversation-list/conversation-row-actions.thunks.js +11 -2
  63. package/dist/agents/redux/conversation-list/conversation-rows.d.ts +16 -0
  64. package/dist/agents/redux/conversation-list/conversation-rows.js +24 -0
  65. package/dist/agents/redux/conversation-list/conversation-trash.thunks.d.ts +12 -4
  66. package/dist/agents/redux/conversation-list/conversation-trash.thunks.js +52 -36
  67. package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.d.ts +54 -54
  68. package/dist/agents/redux/execution-system/context-state/context-state.selectors.d.ts +14 -14
  69. package/dist/agents/redux/execution-system/conversations/conversations.selectors.d.ts +5 -5
  70. package/dist/agents/redux/execution-system/instance-context/instance-context.selectors.d.ts +3 -3
  71. package/dist/agents/redux/execution-system/instance-resources/instance-resources.selectors.d.ts +8 -8
  72. package/dist/agents/redux/execution-system/instance-ui-state/instance-ui-state.selectors.d.ts +5 -5
  73. package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.selectors.d.ts +7 -7
  74. package/dist/agents/redux/execution-system/message-crud/soft-delete-conversation.thunk.js +5 -2
  75. package/dist/agents/redux/execution-system/messages/messages.selectors.d.ts +1 -1
  76. package/dist/agents/redux/execution-system/observability/observability.selectors.d.ts +7 -7
  77. package/dist/agents/redux/execution-system/observational-memory/observational-memory.selectors.d.ts +1 -1
  78. package/dist/agents/redux/execution-system/selectors/aggregate.selectors.d.ts +14 -14
  79. package/dist/agents/redux/execution-system/thunks/create-instance.thunk.d.ts +10 -1
  80. package/dist/agents/redux/execution-system/thunks/create-instance.thunk.js +114 -265
  81. package/dist/agents/redux/execution-system/thunks/dispatch-matrx-extend-tool.thunk.js +18 -2
  82. package/dist/agents/redux/execution-system/thunks/dispatch-surface-client-tool.thunk.js +10 -28
  83. package/dist/agents/redux/execution-system/thunks/dispatch-surface-write.thunk.js +10 -25
  84. package/dist/agents/redux/execution-system/thunks/execute-instance.thunk.js +20 -0
  85. package/dist/agents/redux/execution-system/thunks/execute-manual-instance.thunk.js +6 -1
  86. package/dist/agents/redux/execution-system/thunks/notify-and-play-dispatcher.d.ts +58 -0
  87. package/dist/agents/redux/execution-system/thunks/notify-and-play-dispatcher.js +62 -0
  88. package/dist/agents/redux/execution-system/thunks/post-delegated-tool-outcome.d.ts +23 -0
  89. package/dist/agents/redux/execution-system/thunks/post-delegated-tool-outcome.js +37 -0
  90. package/dist/agents/redux/execution-system/thunks/resume-instance.thunk.js +10 -2
  91. package/dist/agents/redux/execution-system/utils/build-tool-injection.d.ts +7 -0
  92. package/dist/agents/redux/execution-system/utils/build-tool-injection.js +18 -6
  93. package/dist/agents/redux/execution-system/utils/host-turn.d.ts +45 -0
  94. package/dist/agents/redux/execution-system/utils/host-turn.js +119 -0
  95. package/dist/agents/redux/proposed-directives/proposedDirectivesSlice.d.ts +1 -1
  96. package/dist/agents/scribe-tools/dispatcher/dispatch-scribe-tool.thunk.d.ts +50 -20
  97. package/dist/agents/scribe-tools/dispatcher/dispatch-scribe-tool.thunk.js +9 -101
  98. package/dist/agents/types/tool-injection.types.d.ts +18 -2
  99. package/dist/agents/ui-first-tools/redux/agent-lists.selectors.d.ts +2 -2
  100. package/dist/agents/ui-first-tools/redux/pending-asks.slice.d.ts +2 -1
  101. package/dist/agents/ui-first-tools/redux/resolve-asks-with-input.thunk.js +1 -1
  102. package/dist/agents/ui-first-tools/tools/ask-response.d.ts +29 -0
  103. package/dist/agents/ui-first-tools/tools/ask-response.js +15 -0
  104. package/dist/agents/ui-first-tools/tools/schemas.d.ts +3 -25
  105. package/dist/agents/ui-first-tools/tools/schemas.js +1 -12
  106. package/dist/agents/ui-first-tools/ui/ApprovalCard.js +1 -1
  107. package/dist/agents/ui-first-tools/ui/AskWizard.d.ts +1 -1
  108. package/dist/agents/ui-first-tools/ui/AskWizard.js +1 -1
  109. package/dist/cx-chat/_legacy-stubs.d.ts +5 -5
  110. package/dist/cx-chat/components/SsrSidebarChats.js +13 -15
  111. package/dist/cx-chat/components/messages/UserMessage.d.ts +2 -2
  112. package/dist/cx-chat/types/conversation.d.ts +6 -6
  113. package/dist/cx-chat/utils/buildContentBlocksForSave.d.ts +1 -1
  114. package/dist/cx-chat/utils/cx-content-converter.d.ts +1 -1
  115. package/dist/host/bare-host-chrome.js +9 -3
  116. package/dist/host/composer-extensions.d.ts +75 -0
  117. package/dist/host/composer-extensions.js +92 -0
  118. package/dist/host/configure.js +1 -0
  119. package/dist/host/contract.d.ts +105 -13
  120. package/dist/host/defaults/confirm.d.ts +15 -0
  121. package/dist/host/defaults/confirm.js +25 -0
  122. package/dist/host/defaults/files-ui.d.ts +85 -0
  123. package/dist/host/defaults/files-ui.js +158 -0
  124. package/dist/host/defaults/gates.d.ts +27 -0
  125. package/dist/host/defaults/gates.js +72 -0
  126. package/dist/host/defaults/media-client.d.ts +15 -0
  127. package/dist/host/defaults/media-client.js +40 -0
  128. package/dist/host/defaults/voice.d.ts +81 -0
  129. package/dist/host/defaults/voice.js +239 -0
  130. package/dist/host/device-tool-handoff.d.ts +26 -0
  131. package/dist/host/device-tool-handoff.js +45 -0
  132. package/dist/host/index.d.ts +1 -0
  133. package/dist/host/index.js +4 -1
  134. package/dist/host/microphone.d.ts +11 -0
  135. package/dist/host/microphone.js +17 -0
  136. package/dist/host/ui-slots.d.ts +29 -74
  137. package/dist/host/ui-slots.js +40 -42
  138. package/dist/store/create-chat-store.d.ts +2 -2
  139. package/dist/store/middlewares.d.ts +5 -5
  140. package/dist/store/slices.d.ts +1 -1
  141. package/dist/surfaces/redux/selectors.d.ts +2 -2
  142. package/dist/tool-call-visualization/components/ToolCallVisualization.js +3 -2
  143. package/dist/tool-call-visualization/configured-rows/ConfiguredRowRenderer.d.ts +15 -0
  144. package/dist/tool-call-visualization/configured-rows/ConfiguredRowRenderer.js +36 -0
  145. package/dist/tool-call-visualization/configured-rows/ConfiguredToolRow.d.ts +40 -0
  146. package/dist/tool-call-visualization/configured-rows/ConfiguredToolRow.js +296 -0
  147. package/dist/tool-call-visualization/configured-rows/CopyToolButton.d.ts +23 -0
  148. package/dist/tool-call-visualization/configured-rows/CopyToolButton.js +62 -0
  149. package/dist/tool-call-visualization/configured-rows/ToolProgressView.d.ts +23 -0
  150. package/dist/tool-call-visualization/configured-rows/ToolProgressView.js +147 -0
  151. package/dist/tool-call-visualization/configured-rows/field-components.d.ts +15 -0
  152. package/dist/tool-call-visualization/configured-rows/field-components.js +244 -0
  153. package/dist/tool-call-visualization/configured-rows/helpers.d.ts +39 -0
  154. package/dist/tool-call-visualization/configured-rows/helpers.js +110 -0
  155. package/dist/tool-call-visualization/configured-rows/register.d.ts +25 -0
  156. package/dist/tool-call-visualization/configured-rows/register.js +51 -0
  157. package/dist/tool-call-visualization/configured-rows/registries.d.ts +27 -0
  158. package/dist/tool-call-visualization/configured-rows/registries.js +14 -0
  159. package/dist/tool-call-visualization/configured-rows/to-row-entry.d.ts +8 -0
  160. package/dist/tool-call-visualization/configured-rows/to-row-entry.js +38 -0
  161. package/dist/tool-call-visualization/configured-rows/transforms.d.ts +14 -0
  162. package/dist/tool-call-visualization/configured-rows/transforms.js +30 -0
  163. package/dist/tool-call-visualization/configured-rows/types.d.ts +140 -0
  164. package/dist/tool-call-visualization/redux/selectors.d.ts +1 -1
  165. package/dist/tool-call-visualization/registry/registry.d.ts +1 -1
  166. package/dist/tool-call-visualization/registry/registry.js +8 -1
  167. package/dist/tool-call-visualization/types.d.ts +1 -1
  168. package/dist/ui/chat-protocol-types.d.ts +0 -1
  169. package/dist/ui/ownership.d.ts +25 -0
  170. package/dist/ui/ownership.js +18 -0
  171. package/dist/voice-agent/audio/audioCapture.js +11 -6
  172. package/dist/window-panels/windows/agents/AgentRunHistoryWindow.d.ts +1 -2
  173. package/dist/window-panels/windows/agents/AgentRunHistoryWindow.js +21 -181
  174. package/dist/window-panels/windows/agents/AgentRunWindow.d.ts +1 -1
  175. package/dist/window-panels/windows/agents/AgentRunWindow.js +27 -21
  176. package/dist/window-panels/windows/agents/RunControlsWindow.js +1 -0
  177. package/package.json +4583 -121
  178. package/dist/agents/components/agent-widgets/chat-assistant/AssistantMessageCard.d.ts +0 -7
  179. package/dist/agents/components/agent-widgets/chat-assistant/AssistantMessageCard.js +0 -33
  180. package/dist/agents/components/agent-widgets/chat-assistant/StatusCard.d.ts +0 -6
  181. package/dist/agents/components/agent-widgets/chat-assistant/StatusCard.js +0 -21
  182. package/dist/agents/components/agent-widgets/chat-assistant/UserMessageCard.d.ts +0 -6
  183. package/dist/agents/components/agent-widgets/chat-assistant/UserMessageCard.js +0 -11
  184. package/dist/agents/components/agent-widgets/chat-assistant/VariableInputCard.d.ts +0 -12
  185. package/dist/agents/components/agent-widgets/chat-assistant/VariableInputCard.js +0 -7
  186. package/dist/agents/components/agent-widgets/execution-gates/PreExecutionCard.d.ts +0 -4
  187. package/dist/agents/components/agent-widgets/execution-gates/PreExecutionCard.js +0 -81
  188. package/dist/agents/components/conversation-history/ConversationTrashSection.d.ts +0 -7
  189. package/dist/agents/components/run/run-sidebar/SidebarHeader.d.ts +0 -21
  190. package/dist/agents/components/run/run-sidebar/SidebarHeader.js +0 -50
  191. package/dist/agents/components/run-controls/AdvancedRunSettings/index.d.ts +0 -6
  192. package/dist/agents/components/run-controls/AdvancedRunSettings/index.js +0 -32
  193. package/dist/agents/components/run-controls/RunSettingsModal.d.ts +0 -5
  194. package/dist/agents/components/run-controls/RunSettingsModal.js +0 -22
  195. package/dist/agents/components/shell/AgentBuildSidebarExtras.d.ts +0 -6
  196. package/dist/agents/components/shell/AgentBuildSidebarExtras.js +0 -30
  197. package/dist/agents/constants/agent-system-competitors.d.ts +0 -9
  198. package/dist/agents/constants/agent-system-competitors.js +0 -125
  199. package/dist/agents/hooks/message-crud/useMessageActions.d.ts +0 -29
  200. package/dist/agents/hooks/message-crud/useMessageActions.js +0 -119
  201. package/dist/agents/hooks/useConversationPendingCalls.d.ts +0 -30
  202. package/dist/agents/hooks/useConversationPendingCalls.js +0 -42
  203. package/dist/agents/model-registry/model-classes.d.ts +0 -1
  204. package/dist/agents/model-registry/model-classes.js +0 -1
  205. package/dist/agents/redux/conversation-history/index.d.ts +0 -18
  206. package/dist/agents/redux/conversation-history/index.js +0 -4
  207. package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.thunks.d.ts +0 -38
  208. package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.thunks.js +0 -42
  209. package/dist/agents/redux/execution-system/message-crud/server/compact-turns.thunk.d.ts +0 -58
  210. package/dist/agents/redux/execution-system/message-crud/server/compact-turns.thunk.js +0 -50
  211. package/dist/agents/redux/execution-system/message-crud/server/fork-and-run-server.thunk.d.ts +0 -76
  212. package/dist/agents/redux/execution-system/message-crud/server/fork-and-run-server.thunk.js +0 -101
  213. package/dist/agents/redux/execution-system/thunks/attach-workflow-run.d.ts +0 -38
  214. package/dist/agents/redux/execution-system/thunks/attach-workflow-run.js +0 -25
  215. package/dist/agents/redux/execution-system/utils/source-slice-helpers.d.ts +0 -45
  216. package/dist/agents/redux/execution-system/utils/source-slice-helpers.js +0 -50
  217. package/dist/agents/runtime/realtime/launchRealtimeSession.thunk.d.ts +0 -25
  218. package/dist/agents/runtime/realtime/launchRealtimeSession.thunk.js +0 -15
  219. package/dist/agents/services/agentService.d.ts +0 -12
  220. package/dist/agents/services/agentService.js +0 -92
  221. package/dist/agents/utils/escape-code-fences.d.ts +0 -15
  222. package/dist/agents/utils/escape-code-fences.js +0 -9
  223. package/dist/agents/utils/normalize-managed-options.d.ts +0 -30
  224. package/dist/agents/utils/normalize-managed-options.js +0 -29
  225. package/dist/agents/utils/processedDocumentContext.d.ts +0 -51
  226. package/dist/agents/utils/processedDocumentContext.js +0 -51
  227. package/dist/agents/utils/variable-validation.d.ts +0 -28
  228. package/dist/agents/utils/variable-validation.js +0 -54
  229. package/dist/cx-chat/components/ChatConversationSkeleton.d.ts +0 -9
  230. package/dist/cx-chat/components/ChatConversationSkeleton.js +0 -45
  231. package/dist/cx-chat/components/ChatPanelBackButton.d.ts +0 -1
  232. package/dist/cx-chat/components/ChatPanelBackButton.js +0 -26
  233. package/dist/cx-chat/components/messages/MessageErrorBoundary.d.ts +0 -20
  234. package/dist/cx-chat/components/messages/MessageErrorBoundary.js +0 -40
  235. package/dist/cx-chat/components/variable-inputs/CheckboxGroupInput.d.ts +0 -14
  236. package/dist/cx-chat/components/variable-inputs/CheckboxGroupInput.js +0 -160
  237. package/dist/cx-chat/components/variable-inputs/NumberInput.d.ts +0 -15
  238. package/dist/cx-chat/components/variable-inputs/NumberInput.js +0 -79
  239. package/dist/cx-chat/components/variable-inputs/RadioGroupInput.d.ts +0 -14
  240. package/dist/cx-chat/components/variable-inputs/RadioGroupInput.js +0 -125
  241. package/dist/cx-chat/components/variable-inputs/SelectInput.d.ts +0 -14
  242. package/dist/cx-chat/components/variable-inputs/SelectInput.js +0 -92
  243. package/dist/cx-chat/components/variable-inputs/TextareaInput.d.ts +0 -14
  244. package/dist/cx-chat/components/variable-inputs/TextareaInput.js +0 -46
  245. package/dist/cx-chat/components/variable-inputs/ToggleInput.d.ts +0 -14
  246. package/dist/cx-chat/components/variable-inputs/ToggleInput.js +0 -46
  247. package/dist/cx-chat/hooks/useChatPersistence.d.ts +0 -28
  248. package/dist/cx-chat/hooks/useChatPersistence.js +0 -180
  249. package/dist/cx-chat/hooks/useInstanceBootstrap.d.ts +0 -1
  250. package/dist/cx-chat/hooks/useInstanceBootstrap.js +0 -115
  251. package/dist/cx-chat/types/content.d.ts +0 -184
  252. package/dist/cx-chat/types/content.js +0 -91
  253. package/dist/cx-chat/types/cx-tables.d.ts +0 -176
  254. package/dist/cx-chat/utils/settings-diff.d.ts +0 -13
  255. package/dist/cx-chat/utils/settings-diff.js +0 -25
  256. package/dist/public-chat/components/AgentSelector.d.ts +0 -22
  257. package/dist/public-chat/components/AgentSelector.js +0 -80
  258. package/dist/public-chat/components/GuidedVariableInputs.d.ts +0 -25
  259. package/dist/public-chat/components/GuidedVariableInputs.js +0 -623
  260. package/dist/public-chat/components/PublicVariableInputs.d.ts +0 -29
  261. package/dist/public-chat/components/PublicVariableInputs.js +0 -172
  262. package/dist/public-chat/types/content.d.ts +0 -184
  263. package/dist/public-chat/types/content.js +0 -91
  264. package/dist/tool-call-visualization/renderers/_shared-entity/EntityOpenActions.d.ts +0 -15
  265. package/dist/tool-call-visualization/renderers/_shared-entity/EntityOpenActions.js +0 -31
  266. package/dist/tool-call-visualization/utils/toolCallBlockToLifecycleEntry.d.ts +0 -24
  267. package/dist/tool-call-visualization/utils/toolCallBlockToLifecycleEntry.js +0 -26
  268. package/dist/ui/AudioOutputBlockSkeleton.d.ts +0 -17
  269. package/dist/ui/AudioOutputBlockSkeleton.js +0 -78
  270. package/dist/ui/lazy/PublicChatVariableInputs.d.ts +0 -2
  271. package/dist/ui/lazy/PublicChatVariableInputs.js +0 -16
  272. package/dist/utils/xml/readXmlTag.d.ts +0 -12
  273. package/dist/utils/xml/readXmlTag.js +0 -66
  274. /package/dist/{cx-chat/types/cx-tables.js → tool-call-visualization/configured-rows/types.js} +0 -0
@@ -1,7 +0,0 @@
1
- interface AssistantMessageCardProps {
2
- content: string;
3
- timestamp?: string;
4
- isStreaming?: boolean;
5
- }
6
- export declare function AssistantMessageCard({ content, timestamp, isStreaming, }: AssistantMessageCardProps): import("react").JSX.Element;
7
- export {};
@@ -1,33 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Webhook } from "lucide-react";
4
- import { RichDocument } from "@ai-matrx/rich-content/rich-document/RichDocument";
5
- function AssistantMessageCard({
6
- content,
7
- timestamp,
8
- isStreaming
9
- }) {
10
- return /* @__PURE__ */ jsxs("div", { className: "w-72 bg-card border border-border rounded-xl shadow-sm animate-in slide-in-from-bottom-2 duration-200 overflow-hidden", children: [
11
- /* @__PURE__ */ jsx("div", { className: "px-3 py-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2", children: [
12
- /* @__PURE__ */ jsx("div", { className: "p-0.5 rounded-full bg-primary/10 shrink-0 mt-0.5", children: /* @__PURE__ */ jsx(Webhook, { className: "w-3 h-3 text-primary" }) }),
13
- /* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1 text-xs leading-relaxed [&_p]:m-0 [&_pre]:text-[10px] [&_code]:text-[10px] overflow-hidden", children: /* @__PURE__ */ jsx(
14
- RichDocument,
15
- {
16
- imagePolicy: "ai",
17
- content,
18
- source: { type: "raw" },
19
- isStreamActive: isStreaming,
20
- actionsVariant: isStreaming ? "none" : "icon-only",
21
- actionsPosition: "top-right",
22
- actionsBehavior: "hover-only",
23
- actions: { exclude: ["announcements", "preferences"] },
24
- hideCopyButton: true
25
- }
26
- ) })
27
- ] }) }),
28
- timestamp && /* @__PURE__ */ jsx("div", { className: "px-3 pb-1.5", children: /* @__PURE__ */ jsx("span", { className: "text-[10px] text-muted-foreground", children: timestamp }) })
29
- ] });
30
- }
31
- export {
32
- AssistantMessageCard
33
- };
@@ -1,6 +0,0 @@
1
- type StatusPhase = "connecting" | "planning" | "streaming" | "idle";
2
- interface StatusCardProps {
3
- phase: StatusPhase;
4
- }
5
- export declare function StatusCard({ phase }: StatusCardProps): import("react").JSX.Element;
6
- export {};
@@ -1,21 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Loader2 } from "lucide-react";
4
- const PHASE_LABELS = {
5
- connecting: "Connecting...",
6
- planning: "Planning...",
7
- streaming: "Generating...",
8
- idle: "Waiting..."
9
- };
10
- function StatusCard({ phase }) {
11
- return /* @__PURE__ */ jsx("div", { className: "w-72 bg-card border border-border rounded-xl shadow-sm animate-in slide-in-from-bottom-2 duration-200 overflow-hidden", children: /* @__PURE__ */ jsxs("div", { className: "px-3 py-3 flex items-center gap-2", children: [
12
- /* @__PURE__ */ jsx(Loader2, { className: "w-3.5 h-3.5 text-primary animate-spin shrink-0" }),
13
- /* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-1.5", children: [
14
- /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: PHASE_LABELS[phase] }),
15
- /* @__PURE__ */ jsx("div", { className: "h-1 rounded-full bg-muted overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "h-full w-2/3 rounded-full bg-primary/30 animate-pulse" }) })
16
- ] })
17
- ] }) });
18
- }
19
- export {
20
- StatusCard
21
- };
@@ -1,6 +0,0 @@
1
- interface UserMessageCardProps {
2
- content: string;
3
- timestamp?: string;
4
- }
5
- export declare function UserMessageCard({ content, timestamp }: UserMessageCardProps): import("react").JSX.Element;
6
- export {};
@@ -1,11 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- function UserMessageCard({ content, timestamp }) {
4
- return /* @__PURE__ */ jsx("div", { className: "flex justify-end animate-in slide-in-from-bottom-2 duration-200", children: /* @__PURE__ */ jsxs("div", { className: "max-w-[85%] bg-primary/10 border border-primary/20 rounded-xl px-3 py-1.5", children: [
5
- /* @__PURE__ */ jsx("p", { className: "text-xs text-foreground leading-relaxed whitespace-pre-wrap break-words", children: content }),
6
- timestamp && /* @__PURE__ */ jsx("span", { className: "text-[10px] text-muted-foreground block mt-0.5 text-right", children: timestamp })
7
- ] }) });
8
- }
9
- export {
10
- UserMessageCard
11
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * @deprecated The underlying
3
- * `variable-input-variations/AgentVariableInputCard` module was removed.
4
- * Use the variations in
5
- * `@/features/agents/components/inputs/variable-input-variations` directly
6
- * (e.g. `AgentVariableCards`).
7
- *
8
- * This shim is retained as a no-op so older imports still type-check. It
9
- * renders nothing and accepts arbitrary props.
10
- */
11
- export type VariableInputCardProps = Record<string, unknown>;
12
- export declare function VariableInputCard(_props: VariableInputCardProps): null;
@@ -1,7 +0,0 @@
1
- "use client";
2
- function VariableInputCard(_props) {
3
- return null;
4
- }
5
- export {
6
- VariableInputCard
7
- };
@@ -1,4 +0,0 @@
1
- export declare function PreExecutionCard({ conversationId, onClose, }: {
2
- conversationId: string;
3
- onClose: () => void;
4
- }): import("react").ReactPortal | null;
@@ -1,81 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { useEffect, useState } from "react";
3
- import { createPortal } from "react-dom";
4
- import { Check, X } from "lucide-react";
5
- import { useAppSelector, useAppDispatch } from "../../../../store/hooks.js";
6
- import { selectPreExecutionMessage } from "../../../redux/execution-system/instance-ui-state/instance-ui-state.selectors.js";
7
- import { selectInstanceAgentName } from "../../../redux/execution-system/instance-ui-state/instance-ui-state.selectors.js";
8
- import { selectHasUserInput } from "../../../redux/execution-system/instance-user-input/instance-user-input.selectors.js";
9
- import { setPreExecutionSatisfied } from "../../../redux/execution-system/instance-ui-state/instance-ui-state.slice.js";
10
- import { destroyInstanceIfAllowed } from "../../../redux/execution-system/conversations/conversations.thunks.js";
11
- import { SmartAgentInput } from "../../inputs/smart-input/SmartAgentInput.js";
12
- import { useComposerMode } from "../../inputs/smart-input/composer/useComposerMode.js";
13
- import { cn } from "@ai-matrx/design-system";
14
- import { Button } from "@ai-matrx/design-system/controls";
15
- function PreExecutionCard({
16
- conversationId,
17
- onClose
18
- }) {
19
- const dispatch = useAppDispatch();
20
- const { mode: composerMode } = useComposerMode();
21
- const agentName = useAppSelector(selectInstanceAgentName(conversationId));
22
- const hasInput = useAppSelector(selectHasUserInput(conversationId));
23
- const preExecutionMessage = useAppSelector(
24
- selectPreExecutionMessage(conversationId)
25
- );
26
- const [portalTarget, setPortalTarget] = useState(null);
27
- useEffect(() => {
28
- setPortalTarget(document.body);
29
- }, []);
30
- const handleContinue = () => {
31
- dispatch(setPreExecutionSatisfied({ conversationId, value: true }));
32
- };
33
- const handleCancel = () => {
34
- dispatch(destroyInstanceIfAllowed(conversationId));
35
- onClose();
36
- };
37
- const card = /* @__PURE__ */ jsxs("div", { className: "fixed inset-0 z-50 flex items-start justify-center pt-[15dvh]", children: [
38
- /* @__PURE__ */ jsx(
39
- "div",
40
- {
41
- className: "absolute inset-0 bg-black/20 backdrop-blur-[2px]",
42
- onClick: handleCancel
43
- }
44
- ),
45
- /* @__PURE__ */ jsxs(
46
- "div",
47
- {
48
- className: cn(
49
- "relative z-10 w-full max-w-sm mx-4",
50
- "rounded-xl bg-card/98 backdrop-blur-md border border-border shadow-2xl",
51
- // Cap + scroll: a long pre-execution message / tall input must not push the
52
- // Cancel/Continue buttons (in the header) off-screen on mobile.
53
- "max-h-[80dvh] overflow-y-auto overscroll-contain"
54
- ),
55
- children: [
56
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 pt-3 pb-1", children: [
57
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground truncate flex-1", children: agentName ?? "Please enter details..." }),
58
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 shrink-0 ml-2", children: [
59
- /* @__PURE__ */ jsx(Button, { variant: "quiet", icon: /* @__PURE__ */ jsx(X, {}), onClick: handleCancel, title: "Cancel", "aria-label": "Cancel" }),
60
- /* @__PURE__ */ jsx(Button, { variant: "quiet", tone: "primary", icon: /* @__PURE__ */ jsx(Check, {}), onClick: handleContinue, title: hasInput ? "Continue" : "Skip", "aria-label": hasInput ? "Continue" : "Skip" })
61
- ] })
62
- ] }),
63
- preExecutionMessage && /* @__PURE__ */ jsx("div", { className: "px-4 pb-1", children: /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground leading-relaxed", children: preExecutionMessage }) }),
64
- /* @__PURE__ */ jsx("div", { className: "px-3 pt-0.5 pb-3", children: /* @__PURE__ */ jsx(
65
- SmartAgentInput,
66
- {
67
- conversationId,
68
- compact: true,
69
- composer: { size: "compact", mode: composerMode },
70
- disableSend: true
71
- }
72
- ) })
73
- ]
74
- }
75
- )
76
- ] });
77
- return portalTarget ? createPortal(card, portalTarget) : null;
78
- }
79
- export {
80
- PreExecutionCard
81
- };
@@ -1,7 +0,0 @@
1
- interface ConversationTrashSectionProps {
2
- /** `"consumer"` matches the comfortable /chat sidebar; `"dense"` the rest. */
3
- variant?: "dense" | "consumer";
4
- className?: string;
5
- }
6
- export declare function ConversationTrashSection({ variant, className, }: ConversationTrashSectionProps): import("react").JSX.Element;
7
- export default ConversationTrashSection;
@@ -1,21 +0,0 @@
1
- interface SidebarHeaderProps {
2
- agentId: string;
3
- conversationId: string;
4
- surfaceKey: string;
5
- conversationIdFromUrl?: string;
6
- onToggleSidebar: () => void;
7
- /** Base path for back-link and agent-switch routing. Defaults to `/agents`.
8
- * Admin surfaces pass `/administration/agents/system-agents/agents`. */
9
- basePath?: string;
10
- /** Optional explicit back-link href. Falls back to `basePath`. */
11
- backHref?: string;
12
- }
13
- /**
14
- * Server Component shell for the agent detail header.
15
- *
16
- * Desktop: text-based selector + labelled mode buttons + save/options.
17
- * Mobile: tap-target icons only — Webhook (agent picker) | 5-icon group | menu.
18
- * Breakpoint split via CSS hidden classes — no client hook needed.
19
- */
20
- export declare function SidebarHeader({ agentId, conversationId, surfaceKey, conversationIdFromUrl, onToggleSidebar, basePath, backHref, }: SidebarHeaderProps): import("react").JSX.Element;
21
- export {};
@@ -1,50 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Link } from "../../../../host/navigation.js";
3
- import { AgentSelectorIsland } from "../../shared/AgentSelectorIsland.js";
4
- import {
5
- PanelLeftTapButton,
6
- ChevronLeftTapButton
7
- } from "@ai-matrx/design-system/tap-target/buttons";
8
- import { PowerTapButton } from "@ai-matrx/icons/tap-buttons";
9
- import { SearchGroup, SearchGroupTrigger } from "../../../../host/ui-slots.js";
10
- import { AgentNewRunButton } from "../../shared/AgentNewRunButton.js";
11
- function SidebarHeader({
12
- agentId,
13
- conversationId,
14
- surfaceKey,
15
- conversationIdFromUrl,
16
- onToggleSidebar,
17
- basePath = "/agents",
18
- backHref
19
- }) {
20
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center shrink-0 w-full h-10", children: [
21
- /* @__PURE__ */ jsx(Link, { href: backHref ?? basePath, "aria-label": "Back to Agents", children: /* @__PURE__ */ jsx(ChevronLeftTapButton, {}) }),
22
- /* @__PURE__ */ jsxs(
23
- SearchGroup,
24
- {
25
- id: "agent-run-header-search-group",
26
- expand: false,
27
- placeholder: "Search...",
28
- fill: true,
29
- className: "flex-1",
30
- children: [
31
- /* @__PURE__ */ jsx(
32
- AgentSelectorIsland,
33
- {
34
- agentId,
35
- initialName: "Run Agent",
36
- triggerSlot: /* @__PURE__ */ jsx(PowerTapButton, { variant: "group" }),
37
- basePath
38
- }
39
- ),
40
- /* @__PURE__ */ jsx(SearchGroupTrigger, { id: "agent-run-header-search-group" }),
41
- /* @__PURE__ */ jsx(PanelLeftTapButton, { variant: "group", onClick: () => onToggleSidebar() })
42
- ]
43
- }
44
- ),
45
- /* @__PURE__ */ jsx(AgentNewRunButton, { surfaceKey })
46
- ] });
47
- }
48
- export {
49
- SidebarHeader
50
- };
@@ -1,6 +0,0 @@
1
- export { AdvancedRunSettings } from './AdvancedRunSettings.js';
2
- export type { AdvancedRunSettingsProps } from './AdvancedRunSettings.js';
3
- export { ComplexityBadge } from './ComplexityBadge.js';
4
- export { runAlgorithm, bandFor, BAND_THRESHOLDS, type AlgorithmInput, type AlgorithmResult, type ComplexityBand, type ConstraintDisable, type ConstraintRule, type ConstraintViolation, type PointContribution, type PointRule, } from './algorithm/index.js';
5
- export { DEFAULT_ADVANCED_RUN_SETTINGS, PRIMARY_OUTPUTS, INPUT_MODES, ATTRIBUTES, IMPORTANCE_ITEMS, TOOLS, ARTIFACT_SKILLS, LEVELS, } from './constants.js';
6
- export type { AdvancedRunSettingsValue, PrimaryOutput, InputMode, AttributeKey, AttributesValue, ImportanceKey, ImportanceValue, ToolKey, ArtifactSkillKey, Level, } from './constants.js';
@@ -1,32 +0,0 @@
1
- import { AdvancedRunSettings } from "./AdvancedRunSettings.js";
2
- import { ComplexityBadge } from "./ComplexityBadge.js";
3
- import {
4
- runAlgorithm,
5
- bandFor,
6
- BAND_THRESHOLDS
7
- } from "./algorithm/index.js";
8
- import {
9
- DEFAULT_ADVANCED_RUN_SETTINGS,
10
- PRIMARY_OUTPUTS,
11
- INPUT_MODES,
12
- ATTRIBUTES,
13
- IMPORTANCE_ITEMS,
14
- TOOLS,
15
- ARTIFACT_SKILLS,
16
- LEVELS
17
- } from "./constants.js";
18
- export {
19
- ARTIFACT_SKILLS,
20
- ATTRIBUTES,
21
- AdvancedRunSettings,
22
- BAND_THRESHOLDS,
23
- ComplexityBadge,
24
- DEFAULT_ADVANCED_RUN_SETTINGS,
25
- IMPORTANCE_ITEMS,
26
- INPUT_MODES,
27
- LEVELS,
28
- PRIMARY_OUTPUTS,
29
- TOOLS,
30
- bandFor,
31
- runAlgorithm
32
- };
@@ -1,5 +0,0 @@
1
- interface RunSettingsModalProps {
2
- conversationId: string;
3
- }
4
- export declare function RunSettingsModal({ conversationId }: RunSettingsModalProps): import("react").JSX.Element;
5
- export {};
@@ -1,22 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Settings2 } from "lucide-react";
4
- import {
5
- Popover,
6
- PopoverContent,
7
- PopoverTrigger
8
- } from "@ai-matrx/design-system";
9
- import { RunSettingsEditor } from "./RunSettingsEditor.js";
10
- import { Button } from "@ai-matrx/design-system/controls";
11
- function RunSettingsModal({ conversationId }) {
12
- return /* @__PURE__ */ jsxs(Popover, { children: [
13
- /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "quiet", icon: /* @__PURE__ */ jsx(Settings2, {}), title: "Test run settings", "aria-label": "Test run settings", className: "shrink-0" }) }),
14
- /* @__PURE__ */ jsxs(PopoverContent, { sizing: "content", align: "end", className: "p-3", children: [
15
- /* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-muted-foreground mb-3", children: "Test Run Settings" }),
16
- /* @__PURE__ */ jsx(RunSettingsEditor, { conversationId })
17
- ] })
18
- ] });
19
- }
20
- export {
21
- RunSettingsModal
22
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * Placeholder build-specific sidebar section injected below the main nav
3
- * when the user is on /agents/[id]/build.
4
- * All items are "coming soon" — this establishes the layout pattern.
5
- */
6
- export declare function AgentBuildSidebarExtras(): import("react").JSX.Element;
@@ -1,30 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import {
3
- TestTube2,
4
- MenuSquare,
5
- Keyboard,
6
- AppWindow,
7
- History
8
- } from "lucide-react";
9
- function SoonBadge() {
10
- return /* @__PURE__ */ jsx("span", { className: "ml-auto text-[10px] font-medium text-muted-foreground/50 bg-muted rounded px-1 py-0.5 leading-none", children: "Soon" });
11
- }
12
- function BuildNavItem({ icon: Icon, label }) {
13
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-2 py-1 text-xs text-muted-foreground cursor-not-allowed select-none rounded-md", children: [
14
- /* @__PURE__ */ jsx(Icon, { className: "w-3.5 h-3.5 shrink-0" }),
15
- /* @__PURE__ */ jsx("span", { className: "flex-1 truncate", children: label }),
16
- /* @__PURE__ */ jsx(SoonBadge, {})
17
- ] });
18
- }
19
- function AgentBuildSidebarExtras() {
20
- return /* @__PURE__ */ jsxs("div", { className: "shrink-0 border-y border-border ", children: [
21
- /* @__PURE__ */ jsx(BuildNavItem, { icon: AppWindow, label: "Agent Apps" }),
22
- /* @__PURE__ */ jsx(BuildNavItem, { icon: MenuSquare, label: "Context Menu" }),
23
- /* @__PURE__ */ jsx(BuildNavItem, { icon: Keyboard, label: "Agent Shortcuts" }),
24
- /* @__PURE__ */ jsx(BuildNavItem, { icon: TestTube2, label: "Agent Tests" }),
25
- /* @__PURE__ */ jsx(BuildNavItem, { icon: History, label: "Agent History" })
26
- ] });
27
- }
28
- export {
29
- AgentBuildSidebarExtras
30
- };
@@ -1,9 +0,0 @@
1
- export interface AIAgentSystem {
2
- id: string;
3
- name: string;
4
- category: "Framework" | "Enterprise" | "Low-Code" | "Specialized";
5
- isOpenSource: boolean;
6
- description: string;
7
- primaryLanguage: string;
8
- }
9
- export declare const agentSystems: AIAgentSystem[];
@@ -1,125 +0,0 @@
1
- const agentSystems = [
2
- {
3
- id: "langgraph",
4
- name: "LangGraph",
5
- category: "Framework",
6
- isOpenSource: true,
7
- description: "Built by LangChain, it excels at complex, stateful agents with cyclic logic.",
8
- primaryLanguage: "Python / TypeScript"
9
- },
10
- {
11
- id: "crew-ai",
12
- name: "CrewAI",
13
- category: "Framework",
14
- isOpenSource: true,
15
- description: "Orchestrates role-based autonomous agents that work together like a human team.",
16
- primaryLanguage: "Python"
17
- },
18
- {
19
- id: "autogen",
20
- name: "Microsoft AutoGen",
21
- category: "Framework",
22
- isOpenSource: true,
23
- description: "An event-driven framework for multi-agent conversations and complex task solving.",
24
- primaryLanguage: "Python / C#"
25
- },
26
- {
27
- id: "copilot-studio",
28
- name: "Microsoft Copilot Studio",
29
- category: "Enterprise",
30
- isOpenSource: false,
31
- description: "Low-code platform for building agents integrated into the Microsoft 365 ecosystem.",
32
- primaryLanguage: "Low-Code"
33
- },
34
- {
35
- id: "openai-agent-kit",
36
- name: "OpenAI AgentKit",
37
- category: "Enterprise",
38
- isOpenSource: false,
39
- description: "OpenAI's lightweight SDK for building agents with persistent memory and tool access.",
40
- primaryLanguage: "Model Agnostic"
41
- },
42
- {
43
- id: "google-vertex-adk",
44
- name: "Google Vertex ADK",
45
- category: "Enterprise",
46
- isOpenSource: false,
47
- description: "A development kit optimized for deploying Gemini-powered agents on Google Cloud.",
48
- primaryLanguage: "Python / JS"
49
- },
50
- {
51
- id: "agentforce",
52
- name: "Salesforce Agentforce",
53
- category: "Enterprise",
54
- isOpenSource: false,
55
- description: "Autonomous agents that leverage live CRM data to handle sales and service tasks.",
56
- primaryLanguage: "Apex / Low-Code"
57
- },
58
- {
59
- id: "dify",
60
- name: "Dify",
61
- category: "Low-Code",
62
- isOpenSource: true,
63
- description: "An open-source LLMOps platform with a visual workflow orchestrator.",
64
- primaryLanguage: "Python / Go"
65
- },
66
- {
67
- id: "langflow",
68
- name: "Langflow",
69
- category: "Low-Code",
70
- isOpenSource: true,
71
- description: "A drag-and-drop visual editor for building and testing agentic Knowledge workflows.",
72
- primaryLanguage: "Python"
73
- },
74
- {
75
- id: "buildship",
76
- name: "BuildShip",
77
- category: "Low-Code",
78
- isOpenSource: false,
79
- description: "A low-code visual builder for creating backends and agents with AI nodes.",
80
- primaryLanguage: "JavaScript"
81
- },
82
- {
83
- id: "pydantic-ai",
84
- name: "PydanticAI",
85
- category: "Framework",
86
- isOpenSource: true,
87
- description: "A type-safe agent framework for Python focusing on structured data and validation.",
88
- primaryLanguage: "Python"
89
- },
90
- {
91
- id: "llamaindex-workflows",
92
- name: "LlamaIndex Workflows",
93
- category: "Specialized",
94
- isOpenSource: true,
95
- description: "Event-driven orchestration specifically for data-heavy and Knowledge-focused agents.",
96
- primaryLanguage: "Python / TypeScript"
97
- },
98
- {
99
- id: "mastra",
100
- name: "Mastra",
101
- category: "Framework",
102
- isOpenSource: true,
103
- description: "The 'Next.js for Agents'\u2014a high-performance framework for TypeScript developers.",
104
- primaryLanguage: "TypeScript"
105
- },
106
- {
107
- id: "super-agi",
108
- name: "SuperAGI",
109
- category: "Specialized",
110
- isOpenSource: true,
111
- description: "An infrastructure-first platform for developing and deploying autonomous agents.",
112
- primaryLanguage: "Python"
113
- },
114
- {
115
- id: "devin",
116
- name: "Cognition Devin",
117
- category: "Specialized",
118
- isOpenSource: false,
119
- description: "An autonomous software engineering agent capable of building and deploying apps.",
120
- primaryLanguage: "Managed Service"
121
- }
122
- ];
123
- export {
124
- agentSystems
125
- };
@@ -1,29 +0,0 @@
1
- import type { Json } from "../../../host/db-types.js";
2
- import type { ConversationInvocation } from "../../types/conversation-invocation.types.js";
3
- export interface UseMessageActionsArgs {
4
- conversationId: string;
5
- messageId: string;
6
- /** Optional — the message's `position` in the conversation. Required for fork. */
7
- position?: number;
8
- /** Optional — the surface key for the fork destination (so focus jumps). */
9
- surfaceKey?: string;
10
- /**
11
- * Optional — factory that builds a `ConversationInvocation` for the
12
- * "edit and resubmit" flow. The caller owns agent id + variables +
13
- * display config; the hook only adds the forked conversationId + the
14
- * new user message.
15
- *
16
- * When omitted, `editAndResubmit` will still fork + edit but will NOT
17
- * fire a follow-up turn.
18
- */
19
- buildInvocationForResubmit?: (forkedConversationId: string) => ConversationInvocation;
20
- /** Optional — where to navigate after a fork. Default: no navigation. */
21
- onNavigateToFork?: (forkedConversationId: string) => void;
22
- }
23
- export interface UseMessageActionsReturn {
24
- saveFullContent: (newContent: Json) => Promise<void>;
25
- forkAtThisMessage: () => Promise<string | null>;
26
- editAndResubmit: (newUserInput: string) => Promise<string | null>;
27
- deleteConversation: () => Promise<boolean>;
28
- }
29
- export declare function useMessageActions({ conversationId, messageId, position, surfaceKey, buildInvocationForResubmit, onNavigateToFork, }: UseMessageActionsArgs): UseMessageActionsReturn;