@ai-matrx/chat 0.6.6 → 0.7.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 (249) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +1 -1
  3. package/dist/agents/components/agent-widgets/AgentChatHistorySidebar.js +16 -55
  4. package/dist/agents/components/chat/chat-door.d.ts +67 -0
  5. package/dist/agents/components/chat/chat-door.js +100 -0
  6. package/dist/agents/components/conversation-history/AgentConversationList.d.ts +83 -0
  7. package/dist/agents/components/conversation-history/AgentConversationList.js +252 -0
  8. package/dist/agents/components/conversation-history/ConversationArchiveSection.d.ts +5 -1
  9. package/dist/agents/components/conversation-history/ConversationArchiveSection.js +22 -4
  10. package/dist/agents/components/conversation-history/ConversationHistorySidebar.js +20 -65
  11. package/dist/agents/components/inputs/input-components/TextareaInput.js +2 -0
  12. package/dist/agents/components/inputs/input-components/VariableInputComponent.js +7 -6
  13. package/dist/agents/components/inputs/smart-input/ConversationCompanionPills.d.ts +3 -0
  14. package/dist/agents/components/inputs/smart-input/ConversationCompanionPills.js +40 -0
  15. package/dist/agents/components/inputs/smart-input/ConversationContextRail.js +6 -29
  16. package/dist/agents/components/inputs/smart-input/DeviceToolsModeRow.d.ts +3 -0
  17. package/dist/agents/components/inputs/smart-input/DeviceToolsModeRow.js +35 -0
  18. package/dist/agents/components/inputs/smart-input/InboxQueueStrip.js +0 -8
  19. package/dist/agents/components/inputs/smart-input/RunToolPicker.js +15 -11
  20. package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.js +22 -0
  21. package/dist/agents/components/inputs/smart-input/rail-pill.d.ts +35 -0
  22. package/dist/agents/components/inputs/smart-input/rail-pill.js +30 -0
  23. package/dist/agents/components/inputs/variable-input-variations/AgentVariableForm.js +52 -48
  24. package/dist/agents/components/run-controls/panels/shared.d.ts +1 -1
  25. package/dist/agents/components/shared/AgentModeController.js +3 -2
  26. package/dist/agents/components/shell/AgentRunSidebarMenu.js +15 -54
  27. package/dist/agents/components/working-document/documents-workspace/DocumentsListRail.js +1 -2
  28. package/dist/agents/engine.d.ts +15 -0
  29. package/dist/agents/engine.js +17 -0
  30. package/dist/agents/hooks/useModelControls.js +3 -175
  31. package/dist/agents/redux/agent-definition/selectors.d.ts +237 -237
  32. package/dist/agents/redux/agent-shortcut-categories/selectors.d.ts +50 -50
  33. package/dist/agents/redux/agent-shortcuts/selectors.d.ts +147 -147
  34. package/dist/agents/redux/conversation-history/thunks.js +6 -18
  35. package/dist/agents/redux/conversation-list/conversation-list.selectors.d.ts +1 -73
  36. package/dist/agents/redux/conversation-list/conversation-list.selectors.js +2 -36
  37. package/dist/agents/redux/conversation-list/conversation-list.slice.d.ts +7 -22
  38. package/dist/agents/redux/conversation-list/conversation-list.slice.js +7 -62
  39. package/dist/agents/redux/conversation-list/conversation-list.thunks.d.ts +0 -25
  40. package/dist/agents/redux/conversation-list/conversation-list.thunks.js +2 -58
  41. package/dist/agents/redux/conversation-list/conversation-list.types.d.ts +0 -5
  42. package/dist/agents/redux/conversation-list/conversation-rows.d.ts +16 -0
  43. package/dist/agents/redux/conversation-list/conversation-rows.js +24 -0
  44. package/dist/agents/redux/conversation-list/conversation-trash.thunks.d.ts +1 -0
  45. package/dist/agents/redux/conversation-list/conversation-trash.thunks.js +13 -18
  46. package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.d.ts +54 -54
  47. package/dist/agents/redux/execution-system/context-state/context-state.selectors.d.ts +14 -14
  48. package/dist/agents/redux/execution-system/conversations/conversations.selectors.d.ts +5 -5
  49. package/dist/agents/redux/execution-system/instance-context/instance-context.selectors.d.ts +3 -3
  50. package/dist/agents/redux/execution-system/instance-resources/instance-resources.selectors.d.ts +8 -8
  51. package/dist/agents/redux/execution-system/instance-ui-state/instance-ui-state.selectors.d.ts +5 -5
  52. package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.selectors.d.ts +7 -7
  53. package/dist/agents/redux/execution-system/messages/messages.selectors.d.ts +1 -1
  54. package/dist/agents/redux/execution-system/observability/observability.selectors.d.ts +7 -7
  55. package/dist/agents/redux/execution-system/observational-memory/observational-memory.selectors.d.ts +1 -1
  56. package/dist/agents/redux/execution-system/selectors/aggregate.selectors.d.ts +14 -14
  57. package/dist/agents/redux/execution-system/thunks/create-instance.thunk.d.ts +10 -1
  58. package/dist/agents/redux/execution-system/thunks/create-instance.thunk.js +114 -265
  59. package/dist/agents/redux/execution-system/thunks/dispatch-matrx-extend-tool.thunk.js +18 -2
  60. package/dist/agents/redux/execution-system/thunks/dispatch-surface-client-tool.thunk.js +10 -28
  61. package/dist/agents/redux/execution-system/thunks/dispatch-surface-write.thunk.js +10 -25
  62. package/dist/agents/redux/execution-system/thunks/execute-instance.thunk.js +20 -0
  63. package/dist/agents/redux/execution-system/thunks/execute-manual-instance.thunk.js +6 -1
  64. package/dist/agents/redux/execution-system/thunks/notify-and-play-dispatcher.d.ts +58 -0
  65. package/dist/agents/redux/execution-system/thunks/notify-and-play-dispatcher.js +62 -0
  66. package/dist/agents/redux/execution-system/thunks/post-delegated-tool-outcome.d.ts +23 -0
  67. package/dist/agents/redux/execution-system/thunks/post-delegated-tool-outcome.js +37 -0
  68. package/dist/agents/redux/execution-system/thunks/resume-instance.thunk.js +10 -2
  69. package/dist/agents/redux/execution-system/utils/build-tool-injection.d.ts +7 -0
  70. package/dist/agents/redux/execution-system/utils/build-tool-injection.js +18 -6
  71. package/dist/agents/redux/execution-system/utils/host-turn.d.ts +45 -0
  72. package/dist/agents/redux/execution-system/utils/host-turn.js +119 -0
  73. package/dist/agents/redux/proposed-directives/proposedDirectivesSlice.d.ts +1 -1
  74. package/dist/agents/scribe-tools/dispatcher/dispatch-scribe-tool.thunk.d.ts +50 -20
  75. package/dist/agents/scribe-tools/dispatcher/dispatch-scribe-tool.thunk.js +9 -101
  76. package/dist/agents/types/tool-injection.types.d.ts +18 -2
  77. package/dist/agents/ui-first-tools/redux/agent-lists.selectors.d.ts +2 -2
  78. package/dist/agents/ui-first-tools/redux/pending-asks.slice.d.ts +2 -1
  79. package/dist/agents/ui-first-tools/redux/resolve-asks-with-input.thunk.js +1 -1
  80. package/dist/agents/ui-first-tools/tools/ask-response.d.ts +29 -0
  81. package/dist/agents/ui-first-tools/tools/ask-response.js +15 -0
  82. package/dist/agents/ui-first-tools/tools/schemas.d.ts +3 -25
  83. package/dist/agents/ui-first-tools/tools/schemas.js +1 -12
  84. package/dist/agents/ui-first-tools/ui/ApprovalCard.js +1 -1
  85. package/dist/agents/ui-first-tools/ui/AskWizard.d.ts +1 -1
  86. package/dist/agents/ui-first-tools/ui/AskWizard.js +1 -1
  87. package/dist/cx-chat/_legacy-stubs.d.ts +5 -5
  88. package/dist/cx-chat/components/SsrSidebarChats.js +13 -15
  89. package/dist/cx-chat/components/messages/UserMessage.d.ts +2 -2
  90. package/dist/cx-chat/types/conversation.d.ts +6 -6
  91. package/dist/cx-chat/utils/buildContentBlocksForSave.d.ts +1 -1
  92. package/dist/cx-chat/utils/cx-content-converter.d.ts +1 -1
  93. package/dist/host/bare-host-chrome.js +9 -3
  94. package/dist/host/composer-extensions.d.ts +75 -0
  95. package/dist/host/composer-extensions.js +92 -0
  96. package/dist/host/configure.js +1 -0
  97. package/dist/host/contract.d.ts +105 -13
  98. package/dist/host/defaults/confirm.d.ts +15 -0
  99. package/dist/host/defaults/confirm.js +25 -0
  100. package/dist/host/defaults/files-ui.d.ts +85 -0
  101. package/dist/host/defaults/files-ui.js +158 -0
  102. package/dist/host/defaults/gates.d.ts +27 -0
  103. package/dist/host/defaults/gates.js +72 -0
  104. package/dist/host/defaults/media-client.d.ts +15 -0
  105. package/dist/host/defaults/media-client.js +40 -0
  106. package/dist/host/defaults/voice.d.ts +81 -0
  107. package/dist/host/defaults/voice.js +239 -0
  108. package/dist/host/device-tool-handoff.d.ts +26 -0
  109. package/dist/host/device-tool-handoff.js +45 -0
  110. package/dist/host/index.d.ts +1 -0
  111. package/dist/host/index.js +4 -1
  112. package/dist/host/microphone.d.ts +11 -0
  113. package/dist/host/microphone.js +17 -0
  114. package/dist/host/ui-slots.d.ts +29 -74
  115. package/dist/host/ui-slots.js +40 -42
  116. package/dist/store/create-chat-store.d.ts +2 -2
  117. package/dist/store/middlewares.d.ts +5 -5
  118. package/dist/store/slices.d.ts +1 -1
  119. package/dist/surfaces/redux/selectors.d.ts +2 -2
  120. package/dist/tool-call-visualization/components/ToolCallVisualization.js +3 -2
  121. package/dist/tool-call-visualization/configured-rows/ConfiguredRowRenderer.d.ts +15 -0
  122. package/dist/tool-call-visualization/configured-rows/ConfiguredRowRenderer.js +36 -0
  123. package/dist/tool-call-visualization/configured-rows/ConfiguredToolRow.d.ts +40 -0
  124. package/dist/tool-call-visualization/configured-rows/ConfiguredToolRow.js +296 -0
  125. package/dist/tool-call-visualization/configured-rows/CopyToolButton.d.ts +23 -0
  126. package/dist/tool-call-visualization/configured-rows/CopyToolButton.js +62 -0
  127. package/dist/tool-call-visualization/configured-rows/ToolProgressView.d.ts +23 -0
  128. package/dist/tool-call-visualization/configured-rows/ToolProgressView.js +147 -0
  129. package/dist/tool-call-visualization/configured-rows/field-components.d.ts +15 -0
  130. package/dist/tool-call-visualization/configured-rows/field-components.js +244 -0
  131. package/dist/tool-call-visualization/configured-rows/helpers.d.ts +39 -0
  132. package/dist/tool-call-visualization/configured-rows/helpers.js +110 -0
  133. package/dist/tool-call-visualization/configured-rows/register.d.ts +25 -0
  134. package/dist/tool-call-visualization/configured-rows/register.js +51 -0
  135. package/dist/tool-call-visualization/configured-rows/registries.d.ts +27 -0
  136. package/dist/tool-call-visualization/configured-rows/registries.js +14 -0
  137. package/dist/tool-call-visualization/configured-rows/to-row-entry.d.ts +8 -0
  138. package/dist/tool-call-visualization/configured-rows/to-row-entry.js +38 -0
  139. package/dist/tool-call-visualization/configured-rows/transforms.d.ts +14 -0
  140. package/dist/tool-call-visualization/configured-rows/transforms.js +30 -0
  141. package/dist/tool-call-visualization/configured-rows/types.d.ts +140 -0
  142. package/dist/tool-call-visualization/redux/selectors.d.ts +1 -1
  143. package/dist/tool-call-visualization/registry/registry.d.ts +1 -1
  144. package/dist/tool-call-visualization/registry/registry.js +8 -1
  145. package/dist/tool-call-visualization/types.d.ts +1 -1
  146. package/dist/ui/chat-protocol-types.d.ts +0 -1
  147. package/dist/ui/ownership.d.ts +25 -0
  148. package/dist/ui/ownership.js +18 -0
  149. package/dist/voice-agent/audio/audioCapture.js +11 -6
  150. package/dist/window-panels/windows/agents/AgentRunHistoryWindow.d.ts +1 -2
  151. package/dist/window-panels/windows/agents/AgentRunHistoryWindow.js +21 -181
  152. package/dist/window-panels/windows/agents/AgentRunWindow.js +26 -13
  153. package/package.json +4627 -125
  154. package/dist/agents/components/agent-widgets/chat-assistant/AssistantMessageCard.d.ts +0 -7
  155. package/dist/agents/components/agent-widgets/chat-assistant/AssistantMessageCard.js +0 -33
  156. package/dist/agents/components/agent-widgets/chat-assistant/StatusCard.d.ts +0 -6
  157. package/dist/agents/components/agent-widgets/chat-assistant/StatusCard.js +0 -21
  158. package/dist/agents/components/agent-widgets/chat-assistant/UserMessageCard.d.ts +0 -6
  159. package/dist/agents/components/agent-widgets/chat-assistant/UserMessageCard.js +0 -11
  160. package/dist/agents/components/agent-widgets/chat-assistant/VariableInputCard.d.ts +0 -12
  161. package/dist/agents/components/agent-widgets/chat-assistant/VariableInputCard.js +0 -7
  162. package/dist/agents/components/agent-widgets/execution-gates/PreExecutionCard.d.ts +0 -4
  163. package/dist/agents/components/agent-widgets/execution-gates/PreExecutionCard.js +0 -81
  164. package/dist/agents/components/run/run-sidebar/SidebarHeader.d.ts +0 -21
  165. package/dist/agents/components/run/run-sidebar/SidebarHeader.js +0 -50
  166. package/dist/agents/components/run-controls/AdvancedRunSettings/index.d.ts +0 -6
  167. package/dist/agents/components/run-controls/AdvancedRunSettings/index.js +0 -32
  168. package/dist/agents/components/run-controls/RunSettingsModal.d.ts +0 -5
  169. package/dist/agents/components/run-controls/RunSettingsModal.js +0 -22
  170. package/dist/agents/components/shell/AgentBuildSidebarExtras.d.ts +0 -6
  171. package/dist/agents/components/shell/AgentBuildSidebarExtras.js +0 -30
  172. package/dist/agents/constants/agent-system-competitors.d.ts +0 -9
  173. package/dist/agents/constants/agent-system-competitors.js +0 -125
  174. package/dist/agents/hooks/message-crud/useMessageActions.d.ts +0 -29
  175. package/dist/agents/hooks/message-crud/useMessageActions.js +0 -119
  176. package/dist/agents/hooks/useConversationPendingCalls.d.ts +0 -30
  177. package/dist/agents/hooks/useConversationPendingCalls.js +0 -42
  178. package/dist/agents/model-registry/model-classes.d.ts +0 -1
  179. package/dist/agents/model-registry/model-classes.js +0 -1
  180. package/dist/agents/redux/conversation-history/index.d.ts +0 -18
  181. package/dist/agents/redux/conversation-history/index.js +0 -4
  182. package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.thunks.d.ts +0 -38
  183. package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.thunks.js +0 -42
  184. package/dist/agents/redux/execution-system/message-crud/server/compact-turns.thunk.d.ts +0 -58
  185. package/dist/agents/redux/execution-system/message-crud/server/compact-turns.thunk.js +0 -50
  186. package/dist/agents/redux/execution-system/message-crud/server/fork-and-run-server.thunk.d.ts +0 -76
  187. package/dist/agents/redux/execution-system/message-crud/server/fork-and-run-server.thunk.js +0 -101
  188. package/dist/agents/redux/execution-system/thunks/attach-workflow-run.d.ts +0 -38
  189. package/dist/agents/redux/execution-system/thunks/attach-workflow-run.js +0 -25
  190. package/dist/agents/redux/execution-system/utils/source-slice-helpers.d.ts +0 -45
  191. package/dist/agents/redux/execution-system/utils/source-slice-helpers.js +0 -50
  192. package/dist/agents/runtime/realtime/launchRealtimeSession.thunk.d.ts +0 -25
  193. package/dist/agents/runtime/realtime/launchRealtimeSession.thunk.js +0 -15
  194. package/dist/agents/services/agentService.d.ts +0 -12
  195. package/dist/agents/services/agentService.js +0 -92
  196. package/dist/agents/utils/escape-code-fences.d.ts +0 -15
  197. package/dist/agents/utils/escape-code-fences.js +0 -9
  198. package/dist/agents/utils/normalize-managed-options.d.ts +0 -30
  199. package/dist/agents/utils/normalize-managed-options.js +0 -29
  200. package/dist/agents/utils/processedDocumentContext.d.ts +0 -51
  201. package/dist/agents/utils/processedDocumentContext.js +0 -51
  202. package/dist/agents/utils/variable-validation.d.ts +0 -28
  203. package/dist/agents/utils/variable-validation.js +0 -54
  204. package/dist/cx-chat/components/ChatConversationSkeleton.d.ts +0 -9
  205. package/dist/cx-chat/components/ChatConversationSkeleton.js +0 -45
  206. package/dist/cx-chat/components/ChatPanelBackButton.d.ts +0 -1
  207. package/dist/cx-chat/components/ChatPanelBackButton.js +0 -26
  208. package/dist/cx-chat/components/messages/MessageErrorBoundary.d.ts +0 -20
  209. package/dist/cx-chat/components/messages/MessageErrorBoundary.js +0 -40
  210. package/dist/cx-chat/components/variable-inputs/CheckboxGroupInput.d.ts +0 -14
  211. package/dist/cx-chat/components/variable-inputs/CheckboxGroupInput.js +0 -160
  212. package/dist/cx-chat/components/variable-inputs/NumberInput.d.ts +0 -15
  213. package/dist/cx-chat/components/variable-inputs/NumberInput.js +0 -79
  214. package/dist/cx-chat/components/variable-inputs/RadioGroupInput.d.ts +0 -14
  215. package/dist/cx-chat/components/variable-inputs/RadioGroupInput.js +0 -125
  216. package/dist/cx-chat/components/variable-inputs/SelectInput.d.ts +0 -14
  217. package/dist/cx-chat/components/variable-inputs/SelectInput.js +0 -92
  218. package/dist/cx-chat/components/variable-inputs/TextareaInput.d.ts +0 -14
  219. package/dist/cx-chat/components/variable-inputs/TextareaInput.js +0 -46
  220. package/dist/cx-chat/components/variable-inputs/ToggleInput.d.ts +0 -14
  221. package/dist/cx-chat/components/variable-inputs/ToggleInput.js +0 -46
  222. package/dist/cx-chat/hooks/useChatPersistence.d.ts +0 -28
  223. package/dist/cx-chat/hooks/useChatPersistence.js +0 -180
  224. package/dist/cx-chat/hooks/useInstanceBootstrap.d.ts +0 -1
  225. package/dist/cx-chat/hooks/useInstanceBootstrap.js +0 -115
  226. package/dist/cx-chat/types/content.d.ts +0 -184
  227. package/dist/cx-chat/types/content.js +0 -91
  228. package/dist/cx-chat/types/cx-tables.d.ts +0 -176
  229. package/dist/cx-chat/utils/settings-diff.d.ts +0 -13
  230. package/dist/cx-chat/utils/settings-diff.js +0 -25
  231. package/dist/public-chat/components/AgentSelector.d.ts +0 -22
  232. package/dist/public-chat/components/AgentSelector.js +0 -80
  233. package/dist/public-chat/components/GuidedVariableInputs.d.ts +0 -25
  234. package/dist/public-chat/components/GuidedVariableInputs.js +0 -623
  235. package/dist/public-chat/components/PublicVariableInputs.d.ts +0 -29
  236. package/dist/public-chat/components/PublicVariableInputs.js +0 -172
  237. package/dist/public-chat/types/content.d.ts +0 -184
  238. package/dist/public-chat/types/content.js +0 -91
  239. package/dist/tool-call-visualization/renderers/_shared-entity/EntityOpenActions.d.ts +0 -15
  240. package/dist/tool-call-visualization/renderers/_shared-entity/EntityOpenActions.js +0 -31
  241. package/dist/tool-call-visualization/utils/toolCallBlockToLifecycleEntry.d.ts +0 -24
  242. package/dist/tool-call-visualization/utils/toolCallBlockToLifecycleEntry.js +0 -26
  243. package/dist/ui/AudioOutputBlockSkeleton.d.ts +0 -17
  244. package/dist/ui/AudioOutputBlockSkeleton.js +0 -78
  245. package/dist/ui/lazy/PublicChatVariableInputs.d.ts +0 -2
  246. package/dist/ui/lazy/PublicChatVariableInputs.js +0 -16
  247. package/dist/utils/xml/readXmlTag.d.ts +0 -12
  248. package/dist/utils/xml/readXmlTag.js +0 -66
  249. /package/dist/{cx-chat/types/cx-tables.js → tool-call-visualization/configured-rows/types.js} +0 -0
@@ -1,10 +1,12 @@
1
- import { Component, type ComponentType, type ChangeEvent, type ReactNode } from "react";
1
+ import { Component, type ComponentProps, type ComponentType, type ChangeEvent, type ReactNode } from "react";
2
2
  import type { EditableContextMenuProps, NonEditableContextMenuProps } from "../context-menu/types.js";
3
+ import { ConfirmDialog as PackageConfirmDialog, ErrorNotice as PackageErrorNotice, IconButton as PackageIconButton, StaleDataNotice as PackageStaleDataNotice, ReadFailure as PackageReadFailure, TextInputDialog as PackageTextInputDialog, UntrustedCount as PackageUntrustedCount } from "@ai-matrx/design-system";
4
+ import { AspectRatioSelect as PackageAspectRatioSelect, ClampedNumberInput as PackageClampedNumberInput, ConfigurationTable as PackageConfigurationTable, ConfigurationTableRow as PackageConfigurationTableRow, FieldHelp as PackageFieldHelp, OptionCombobox as PackageOptionCombobox, NumberStepper as PackageNumberStepper } from "@ai-matrx/design-system/controls";
3
5
  /** The host context menu's props (its registration is typed against them). */
4
6
  export type { EditableContextMenuProps, NonEditableContextMenuProps };
5
7
  import type { DecodedDirective } from "@ai-matrx/content-ir";
6
8
  import type { AudioSessionControls, AudioSessionSource, PlaybackSessionHandle } from "../ui/audio-session-types.js";
7
- import type { ItemRowProps } from "../ui/item-types.js";
9
+ import { ItemMenu as PackageItemMenu, ItemRow as PackageItemRow } from "@ai-matrx/design-system/item";
8
10
  import type { ResourcePickerViewId } from "../agents/resources/picker-view-id.js";
9
11
  import type { CxContentBlock } from "../public-chat/types/cx-tables.js";
10
12
  /** The fields of a canvas item row chat reads (the host's canvas store owns the row). */
@@ -22,17 +24,6 @@ interface PicklistItem {
22
24
  group_name: string | null;
23
25
  icon_name: string | null;
24
26
  }
25
- /**
26
- * Prop shapes for the slots whose call sites pass callbacks. A slot typed `ComponentType<any>`
27
- * gives its callbacks no contextual type (every `(e) =>` is an implicit any), so these declare
28
- * the callbacks the package passes. The index signature keeps every other prop the host
29
- * component accepts passable without the package restating the host's whole prop surface.
30
- */
31
- interface OpenChangeProps {
32
- open?: boolean;
33
- onOpenChange?: (open: boolean) => void;
34
- [extra: string]: any;
35
- }
36
27
  interface TextareaSlotProps {
37
28
  onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;
38
29
  onTranscriptionComplete?: (text: string) => void;
@@ -43,13 +34,6 @@ interface InputSlotProps {
43
34
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
44
35
  [extra: string]: any;
45
36
  }
46
- interface TextInputDialogProps extends OpenChangeProps {
47
- onConfirm?: (value: string) => void | Promise<void>;
48
- }
49
- interface ItemMenuProps {
50
- onCloseAutoFocus?: (event: Event) => void;
51
- [extra: string]: any;
52
- }
53
37
  interface TemplatePickerProps {
54
38
  onSelect?: (templateText: string) => void;
55
39
  [extra: string]: any;
@@ -73,10 +57,6 @@ interface AgentsListProps {
73
57
  onRunAgent?: (agentId: string) => void;
74
58
  [extra: string]: any;
75
59
  }
76
- interface ValueChangeProps<T> {
77
- onChange?: (value: T) => void;
78
- [extra: string]: any;
79
- }
80
60
  type AnyComponent = ComponentType<any>;
81
61
  export interface CanvasItemCardProps {
82
62
  /** `canvas_items.id` of the version to show. */
@@ -123,8 +103,6 @@ export interface ChatUiSlots {
123
103
  WebpageSnapshotView: AnyComponent;
124
104
  AttachedResourcesSection: AnyComponent;
125
105
  ConnectorPromptHost: AnyComponent;
126
- /** The inline error card (title, sentence, actions); the host's carries the Alchemy menu. */
127
- ErrorNotice: AnyComponent;
128
106
  NoteBody: AnyComponent;
129
107
  NoteFooter: AnyComponent;
130
108
  NoteTitleActions: AnyComponent;
@@ -205,12 +183,10 @@ export interface ChatUiSlots {
205
183
  toastDoor: AnyFn;
206
184
  currentPointsRate: AnyFn;
207
185
  useCostDisplay: AnyFn;
208
- ReadFailure: AnyComponent;
209
186
  HtmlPreviewFullScreenEditor: AnyComponent;
210
187
  AgentEditAccessBadge: AnyComponent;
211
188
  DataRefPreviewContent: AnyComponent;
212
189
  BlockHoverPreview: AnyComponent;
213
- ConversationHoverPreview: AnyComponent;
214
190
  NoteEditorCore: AnyComponent;
215
191
  ToolResultCanvasOpener: AnyComponent;
216
192
  CloudBrowserHandoffCanvasOpener: AnyComponent;
@@ -285,28 +261,18 @@ export interface ChatUiSlots {
285
261
  selectActiveContentBlocks: AnyFn;
286
262
  LibraryPreviewPage: AnyComponent;
287
263
  NoteVersionHistoryPanel: AnyComponent;
288
- ItemRow: ComponentType<ItemRowProps>;
289
- UntrustedCount: AnyComponent;
290
- StaleDataNotice: AnyComponent;
291
264
  WorkspaceGate: AnyComponent;
292
265
  OrganizationContextNotice: AnyComponent;
293
266
  JsonInspector: AnyComponent;
294
- ConfirmDialog: SlotComponent<OpenChangeProps>;
295
267
  TextWithDoors: AnyComponent;
296
268
  EntityDoorControls: AnyComponent;
297
269
  StructuredValueView: AnyComponent;
298
270
  KindValueFrontDoor: AnyComponent;
299
271
  KindDataGate: AnyComponent;
300
272
  ServerNotes: AnyComponent;
301
- OptionCombobox: AnyComponent;
302
- NumberStepper: SlotComponent<ValueChangeProps<number>>;
303
273
  MatrxFloatingFrame: AnyComponent;
304
- ItemMenu: SlotComponent<ItemMenuProps>;
305
- ClampedNumberInput: SlotComponent<ValueChangeProps<number>>;
306
- AspectRatioSelect: AnyComponent;
307
274
  AnswerTextPreview: AnyComponent;
308
275
  AccessGate: AnyComponent;
309
- ReferenceCopyMenuItem: AnyComponent;
310
276
  ReferenceCopyButton: AnyComponent;
311
277
  MandateNotesPanel: AnyComponent;
312
278
  SurfaceBoundAgentsList: SlotComponent<AgentsListProps>;
@@ -314,25 +280,16 @@ export interface ChatUiSlots {
314
280
  EntityCommentPopover: AnyComponent;
315
281
  ProTextarea: SlotComponent<TextareaSlotProps>;
316
282
  VoiceTextarea: SlotComponent<TextareaSlotProps>;
317
- FloatingSheet: AnyComponent;
318
283
  AppLink: AnyComponent;
319
- IconButton: AnyComponent;
320
- LightSwitchToggle: SlotComponent<ValueChangeProps<boolean>>;
321
284
  CitationChip: AnyComponent;
322
285
  MatrxEnvelopeBlock: AnyComponent;
323
286
  ErrorBoundaryWithCapture: AnyComponent;
324
- ConfigurationTable: AnyComponent;
325
- ConfigurationTableRow: AnyComponent;
326
- FieldHelp: AnyComponent;
327
287
  useOrganizationRequired: AnyFn;
328
288
  useAuthGuardedAction: AnyFn;
329
289
  readOf: AnyFn;
330
290
  pushAppHref: AnyFn;
331
291
  replaceAppHref: AnyFn;
332
- announceComingSoon: AnyFn;
333
292
  peekSystemOrgId: AnyFn;
334
- toGlobalOwnershipRecord: AnyFn;
335
- fromGlobalOwnershipRecord: AnyFn;
336
293
  peekMandateCatalogueEntry: AnyFn;
337
294
  invalidateMandateCatalogueCache: AnyFn;
338
295
  useLoginHref: AnyFn;
@@ -354,7 +311,6 @@ export interface ChatUiSlots {
354
311
  reason: string;
355
312
  cause: "no-selection" | "unreadable";
356
313
  }>;
357
- publishedToWebPatch: AnyFn;
358
314
  isUuidValue: AnyFn;
359
315
  /**
360
316
  * Agent BUILDER contributions (B1, AGENT-CORE-PLAN): the builder owns these controls and
@@ -386,7 +342,6 @@ export interface ChatUiSlots {
386
342
  }>;
387
343
  CustomDataBindingSummary: AnyComponent;
388
344
  CustomDataBindingPreview: AnyComponent;
389
- TextInputDialog: SlotComponent<TextInputDialogProps>;
390
345
  ProInput: SlotComponent<InputSlotProps>;
391
346
  MatrxDynamicPanelHost: AnyComponent;
392
347
  useClippedContentGuard: AnyFn;
@@ -440,7 +395,7 @@ export declare const AnswerValueView: AnyComponent;
440
395
  /** A host with no error menu draws one labelled line; the error sentence itself is already on screen. */
441
396
  export declare const ErrorAlchemyMenu: AnyComponent;
442
397
  /** THE inline error card is design-system's ErrorNotice (moved from matrx-frontend, host-slot batch 2). */
443
- export declare const ErrorNotice: AnyComponent;
398
+ export declare const ErrorNotice: typeof PackageErrorNotice;
444
399
  export declare const EntityRef: AnyComponent;
445
400
  export declare const AdvancedMenu: AnyComponent;
446
401
  export declare const AuthGateDialog: AnyComponent;
@@ -455,6 +410,7 @@ export declare const MessageFilesStrip: AnyComponent;
455
410
  export declare const CanvasItemCard: SlotComponent<CanvasItemCardProps>;
456
411
  export declare const RulebookNudge: AnyComponent;
457
412
  export declare const NegativeVerdictFollowUp: AnyComponent;
413
+ /** Read-aloud: the package's own (media's ReadAloudButton over THE one speech engine). */
458
414
  export declare const SpeakerButton: AnyComponent;
459
415
  export declare const GmailReviewCard: AnyComponent;
460
416
  export declare const ShareButton: AnyComponent;
@@ -532,7 +488,7 @@ export declare const emitFullScreenEditorSave: AnyFn;
532
488
  export declare const FileRagBadge: AnyComponent;
533
489
  export declare const MediaAttachmentThumbnail: AnyComponent;
534
490
  export declare const UnifiedImageBlockRenderer: AnyComponent;
535
- /** A host with no recorder offers no microphone (reported once). */
491
+ /** Voice input: the package's own recorder over @ai-matrx/browser-audio (defaults/voice). */
536
492
  export declare const MicrophoneIconButton: AnyComponent;
537
493
  export declare const TranscriptionLoader: AnyComponent;
538
494
  export declare const MicDeviceMenu: AnyComponent;
@@ -543,6 +499,7 @@ export declare const ChangeDiff: AnyComponent;
543
499
  /** A host with no search toolbar lays the group's buttons out in a plain row. */
544
500
  export declare const SearchGroup: AnyComponent;
545
501
  export declare const SearchGroupTrigger: AnyComponent;
502
+ /** File reads and actions over the files engine (defaults/files-ui). */
546
503
  export declare const useFileDocument: AnyFn;
547
504
  export declare const useFileResourceFamily: AnyFn;
548
505
  export declare const useFileActions: AnyFn;
@@ -551,15 +508,16 @@ export declare const useRecordAndTranscribe: AnyFn;
551
508
  export declare const requestScribeAudioSeek: AnyFn;
552
509
  export declare const resolvePdfSurfaceIds: AnyFn;
553
510
  export declare const readListRpc: AnyFn;
554
- export declare const ReadFailure: AnyComponent;
555
- export declare const ItemRow: ComponentType<ItemRowProps>;
556
- export declare const UntrustedCount: AnyComponent;
557
- export declare const StaleDataNotice: AnyComponent;
511
+ export declare const ReadFailure: typeof PackageReadFailure;
512
+ export declare const ItemRow: typeof PackageItemRow;
513
+ export declare const UntrustedCount: typeof PackageUntrustedCount;
514
+ export declare const StaleDataNotice: typeof PackageStaleDataNotice;
558
515
  /** A bare host gets the package's own organization picker (`defaults/workspace-gate`). */
559
516
  export declare const WorkspaceGate: AnyComponent;
560
517
  export declare const OrganizationContextNotice: AnyComponent;
561
518
  export declare const JsonInspector: AnyComponent;
562
- export declare const ConfirmDialog: SlotComponent<OpenChangeProps>;
519
+ /** THE confirm dialog (design-system), portalled into the host's popout window when chat is popped out. */
520
+ export declare function ConfirmDialog(props: ComponentProps<typeof PackageConfirmDialog>): import("react").FunctionComponentElement<import("@ai-matrx/design-system").ConfirmDialogProps>;
563
521
  /**
564
522
  * THE model picker is the agents package's own (`@ai-matrx/agents/models/react`), not a slot: a
565
523
  * bare host gets the real list (`BareHostChrome` mounts the catalog over `host.db`), a host with
@@ -572,15 +530,14 @@ export declare const StructuredValueView: AnyComponent;
572
530
  export declare const KindValueFrontDoor: AnyComponent;
573
531
  export declare const KindDataGate: AnyComponent;
574
532
  export declare const ServerNotes: AnyComponent;
575
- export declare const OptionCombobox: AnyComponent;
576
- export declare const NumberStepper: SlotComponent<ValueChangeProps<number>>;
533
+ export declare const OptionCombobox: typeof PackageOptionCombobox;
534
+ export declare const NumberStepper: typeof PackageNumberStepper;
577
535
  export declare const MatrxFloatingFrame: AnyComponent;
578
- export declare const ItemMenu: SlotComponent<ItemMenuProps>;
579
- export declare const ClampedNumberInput: SlotComponent<ValueChangeProps<number>>;
580
- export declare const AspectRatioSelect: AnyComponent;
536
+ export declare const ItemMenu: typeof PackageItemMenu;
537
+ export declare const ClampedNumberInput: typeof PackageClampedNumberInput;
538
+ export declare const AspectRatioSelect: typeof PackageAspectRatioSelect;
581
539
  export declare const AnswerTextPreview: AnyComponent;
582
540
  export declare const AccessGate: AnyComponent;
583
- export declare const ReferenceCopyMenuItem: AnyComponent;
584
541
  export declare const ReferenceCopyButton: AnyComponent;
585
542
  export declare const MandateNotesPanel: AnyComponent;
586
543
  export declare const SurfaceBoundAgentsList: SlotComponent<AgentsListProps>;
@@ -588,21 +545,20 @@ export declare const ProposedDirectivesZone: AnyComponent;
588
545
  export declare const EntityCommentPopover: AnyComponent;
589
546
  export declare const ProTextarea: SlotComponent<TextareaSlotProps>;
590
547
  export declare const VoiceTextarea: SlotComponent<TextareaSlotProps>;
591
- export declare const FloatingSheet: AnyComponent;
548
+ export declare const FloatingSheet: import("react").FC<import("@ai-matrx/design-system").FloatingSheetProps>;
592
549
  export declare const AppLink: AnyComponent;
593
- export declare const IconButton: AnyComponent;
594
- export declare const LightSwitchToggle: SlotComponent<ValueChangeProps<boolean>>;
550
+ export declare const IconButton: typeof PackageIconButton;
551
+ export declare const LightSwitchToggle: import("react").ForwardRefExoticComponent<import("@ai-matrx/design-system/controls").LightSwitchToggleProps & import("react").RefAttributes<HTMLDivElement>>;
595
552
  export declare const CitationChip: AnyComponent;
596
553
  export declare const MatrxEnvelopeBlock: AnyComponent;
597
554
  export declare const ErrorBoundaryWithCapture: AnyComponent;
598
- export declare const ConfigurationTable: AnyComponent;
599
- export declare const ConfigurationTableRow: AnyComponent;
600
- export declare const FieldHelp: AnyComponent;
555
+ export declare const ConfigurationTable: typeof PackageConfigurationTable;
556
+ export declare const ConfigurationTableRow: typeof PackageConfigurationTableRow;
557
+ export declare const FieldHelp: typeof PackageFieldHelp;
601
558
  export declare const HtmlPreviewFullScreenEditor: AnyComponent;
602
559
  export declare const AgentEditAccessBadge: AnyComponent;
603
560
  export declare const DataRefPreviewContent: AnyComponent;
604
561
  export declare const BlockHoverPreview: AnyComponent;
605
- export declare const ConversationHoverPreview: AnyComponent;
606
562
  export declare const NoteEditorCore: AnyComponent;
607
563
  export declare const ToolResultCanvasOpener: AnyComponent;
608
564
  export declare const CloudBrowserHandoffCanvasOpener: AnyComponent;
@@ -675,15 +631,15 @@ export declare const selectContentBlocksByScopeRef: AnyFn;
675
631
  export declare const selectActiveContentBlocks: AnyFn;
676
632
  export declare const LibraryPreviewPage: AnyComponent;
677
633
  export declare const NoteVersionHistoryPanel: AnyComponent;
634
+ /** The host's active organization (defaults/gates); a host with Redux boot state registers its own. */
678
635
  export declare const useOrganizationRequired: AnyFn;
679
636
  export declare const useAuthGuardedAction: AnyFn;
680
637
  export declare const readOf: AnyFn;
681
638
  export declare const pushAppHref: AnyFn;
682
639
  export declare const replaceAppHref: AnyFn;
683
- export declare const announceComingSoon: AnyFn;
684
640
  export declare const peekSystemOrgId: AnyFn;
685
- export declare const toGlobalOwnershipRecord: AnyFn;
686
- export declare const fromGlobalOwnershipRecord: AnyFn;
641
+ /** Pure package transforms (`ui/ownership`), never slots: a wrong answer would corrupt a write. */
642
+ export { toGlobalOwnershipRecord, fromGlobalOwnershipRecord, publishedToWebPatch } from "../ui/ownership.js";
687
643
  export declare const peekMandateCatalogueEntry: AnyFn;
688
644
  export declare const invalidateMandateCatalogueCache: AnyFn;
689
645
  export declare const useLoginHref: AnyFn;
@@ -705,7 +661,6 @@ export declare const awaitEffectiveOrganizationId: () => Promise<{
705
661
  reason: string;
706
662
  cause: "no-selection" | "unreadable";
707
663
  }>;
708
- export declare const publishedToWebPatch: AnyFn;
709
664
  export declare const isUuidValue: AnyFn;
710
665
  export declare const AgentOptionsMenu: SlotComponent<{
711
666
  agentId: string;
@@ -732,7 +687,7 @@ export declare const CreatorRunPanel: SlotComponent<{
732
687
  }>;
733
688
  export declare const CustomDataBindingSummary: AnyComponent;
734
689
  export declare const CustomDataBindingPreview: AnyComponent;
735
- export declare const TextInputDialog: SlotComponent<TextInputDialogProps>;
690
+ export declare const TextInputDialog: typeof PackageTextInputDialog;
736
691
  export declare const ProInput: SlotComponent<InputSlotProps>;
737
692
  export declare const MatrxDynamicPanelHost: AnyComponent;
738
693
  export declare const useClippedContentGuard: AnyFn;
@@ -9,6 +9,10 @@ import { DefaultWebpageSnapshotView } from "./defaults/webpage-snapshot-view.js"
9
9
  import { DefaultWorkspaceGate } from "./defaults/workspace-gate.js";
10
10
  import { DefaultFullScreenOverlay, DefaultWindowPanel } from "./defaults/window-panel.js";
11
11
  import { DefaultResourcePickerMenu } from "./defaults/resource-picker-menu.js";
12
+ import { defaultConfirm } from "./defaults/confirm.js";
13
+ import { DefaultMicDeviceMenu, DefaultMicrophoneIconButton, DefaultSpeakerButton, DefaultTranscriptionLoader, useDefaultRecordAndTranscribe } from "./defaults/voice.js";
14
+ import { DefaultFileResourceChip, DefaultMediaAttachmentThumbnail, useDefaultFileActions, useDefaultFileDocument, useDefaultFileResourceFamily } from "./defaults/files-ui.js";
15
+ import { defaultEnsureOrgAvailability, useDefaultAccess, useDefaultOrganizationRequired } from "./defaults/gates.js";
12
16
  import { captureReactRenderError } from "./diagnostics.js";
13
17
  import {
14
18
  ConfirmDialog as PackageConfirmDialog,
@@ -118,7 +122,7 @@ const failingThunk = (name) => () => () => {
118
122
  return p;
119
123
  };
120
124
  const STAND_INS = {
121
- confirm: async () => false,
125
+ confirm: defaultConfirm,
122
126
  useTablesEverywhere: () => NONE,
123
127
  useCenterControlFit: () => true,
124
128
  connectorDefinitionFromMcp: () => null,
@@ -174,7 +178,6 @@ const STAND_INS = {
174
178
  }),
175
179
  pushAppHref: (router, href) => router.push(href),
176
180
  replaceAppHref: (router, href) => router.replace(href),
177
- announceComingSoon: async () => void 0,
178
181
  peekSystemOrgId: () => null,
179
182
  peekMandateCatalogueEntry: () => null,
180
183
  invalidateMandateCatalogueCache: () => void 0,
@@ -210,7 +213,7 @@ const CopyButtons = slotComponent("CopyButtons");
210
213
  const InfoHint = slotComponent("InfoHint");
211
214
  const AnswerValueView = slotComponent("AnswerValueView");
212
215
  const ErrorAlchemyMenu = slotComponent("ErrorAlchemyMenu", optionalWidget("ErrorAlchemyMenu"));
213
- const ErrorNotice = slotComponent("ErrorNotice", withPackageDefault(PackageErrorNotice));
216
+ const ErrorNotice = PackageErrorNotice;
214
217
  const EntityRef = slotComponent("EntityRef");
215
218
  const AdvancedMenu = slotComponent("AdvancedMenu");
216
219
  const AuthGateDialog = slotComponent("AuthGateDialog");
@@ -224,13 +227,13 @@ function contentWithoutMenu(name) {
224
227
  const EditableContextMenu = slotComponent("EditableContextMenu", contentWithoutMenu("EditableContextMenu"));
225
228
  const NonEditableContextMenu = slotComponent("NonEditableContextMenu", contentWithoutMenu("NonEditableContextMenu"));
226
229
  const TableChooser = slotComponent("TableChooser");
227
- const FileResourceChip = slotComponent("FileResourceChip");
230
+ const FileResourceChip = slotComponent("FileResourceChip", withPackageDefault(DefaultFileResourceChip));
228
231
  const ConnectorMark = slotComponent("ConnectorMark");
229
232
  const MessageFilesStrip = slotComponent("MessageFilesStrip", optionalWidget("MessageFilesStrip"));
230
233
  const CanvasItemCard = slotComponent("CanvasItemCard", optionalWidget("CanvasItemCard"));
231
234
  const RulebookNudge = slotComponent("RulebookNudge", optionalWidget("RulebookNudge"));
232
235
  const NegativeVerdictFollowUp = slotComponent("NegativeVerdictFollowUp", optionalWidget("NegativeVerdictFollowUp"));
233
- const SpeakerButton = slotComponent("SpeakerButton", optionalWidget("SpeakerButton"));
236
+ const SpeakerButton = slotComponent("SpeakerButton", withPackageDefault(DefaultSpeakerButton));
234
237
  const GmailReviewCard = slotComponent("GmailReviewCard", optionalWidget("GmailReviewCard"));
235
238
  const ShareButton = slotComponent("ShareButton", optionalWidget("ShareButton"));
236
239
  const ShareModal = slotComponent("ShareModal", optionalWidget("ShareModal"));
@@ -291,11 +294,11 @@ const emitFullScreenEditorSave = slotFn(
291
294
  () => Promise.reject(new Error("This host has no full-screen editor save target"))
292
295
  );
293
296
  const FileRagBadge = slotComponent("FileRagBadge");
294
- const MediaAttachmentThumbnail = slotComponent("MediaAttachmentThumbnail", optionalWidget("MediaAttachmentThumbnail"));
297
+ const MediaAttachmentThumbnail = slotComponent("MediaAttachmentThumbnail", withPackageDefault(DefaultMediaAttachmentThumbnail));
295
298
  const UnifiedImageBlockRenderer = slotComponent("UnifiedImageBlockRenderer", optionalWidget("UnifiedImageBlockRenderer"));
296
- const MicrophoneIconButton = slotComponent("MicrophoneIconButton");
297
- const TranscriptionLoader = slotComponent("TranscriptionLoader");
298
- const MicDeviceMenu = slotComponent("MicDeviceMenu");
299
+ const MicrophoneIconButton = slotComponent("MicrophoneIconButton", withPackageDefault(DefaultMicrophoneIconButton));
300
+ const TranscriptionLoader = slotComponent("TranscriptionLoader", withPackageDefault(DefaultTranscriptionLoader));
301
+ const MicDeviceMenu = slotComponent("MicDeviceMenu", withPackageDefault(DefaultMicDeviceMenu));
299
302
  const PdfNamedSurfaceSwitcher = slotComponent("PdfNamedSurfaceSwitcher");
300
303
  const ChangeDiff = slotComponent(
301
304
  "ChangeDiff",
@@ -312,21 +315,24 @@ const SearchGroup = slotComponent(
312
315
  ({ children, className }) => createElement("div", { className: `flex items-center ${className ?? ""}`, "data-chat-slot-fallback": "SearchGroup" }, children ?? null)
313
316
  );
314
317
  const SearchGroupTrigger = slotComponent("SearchGroupTrigger");
315
- const useFileDocument = slotFn("useFileDocument");
316
- const useFileResourceFamily = slotFn("useFileResourceFamily");
317
- const useFileActions = slotFn("useFileActions");
318
- const useRecordAndTranscribe = slotFn("useRecordAndTranscribe");
318
+ const useFileDocument = slotFn("useFileDocument", useDefaultFileDocument);
319
+ const useFileResourceFamily = slotFn("useFileResourceFamily", useDefaultFileResourceFamily);
320
+ const useFileActions = slotFn("useFileActions", useDefaultFileActions);
321
+ const useRecordAndTranscribe = slotFn("useRecordAndTranscribe", useDefaultRecordAndTranscribe);
319
322
  const requestScribeAudioSeek = slotFn("requestScribeAudioSeek", () => void 0);
320
323
  const resolvePdfSurfaceIds = slotFn("resolvePdfSurfaceIds");
321
324
  const readListRpc = slotFn("readListRpc");
322
- const ReadFailure = slotComponent("ReadFailure", withPackageDefault(PackageReadFailure));
323
- const ItemRow = slotComponent("ItemRow", withPackageDefault(PackageItemRow));
324
- const UntrustedCount = slotComponent("UntrustedCount", withPackageDefault(PackageUntrustedCount));
325
- const StaleDataNotice = slotComponent("StaleDataNotice", withPackageDefault(PackageStaleDataNotice));
325
+ const ReadFailure = PackageReadFailure;
326
+ const ItemRow = PackageItemRow;
327
+ const UntrustedCount = PackageUntrustedCount;
328
+ const StaleDataNotice = PackageStaleDataNotice;
326
329
  const WorkspaceGate = slotComponent("WorkspaceGate", DefaultWorkspaceGate);
327
330
  const OrganizationContextNotice = slotComponent("OrganizationContextNotice", unregisteredWidget("OrganizationContextNotice"));
328
331
  const JsonInspector = slotComponent("JsonInspector", unregisteredWidget("JsonInspector"));
329
- const ConfirmDialog = slotComponent("ConfirmDialog", withPackageDefault(PackageConfirmDialog));
332
+ function ConfirmDialog(props) {
333
+ const portalContainer = usePopoutContainer();
334
+ return createElement(PackageConfirmDialog, { ...portalContainer ? { portalContainer } : {}, ...props });
335
+ }
330
336
  import { ModelListDropdown } from "@ai-matrx/agents/models/react";
331
337
  const TextWithDoors = slotComponent("TextWithDoors", unregisteredWidget("TextWithDoors"));
332
338
  const EntityDoorControls = slotComponent("EntityDoorControls", unregisteredWidget("EntityDoorControls"));
@@ -334,15 +340,14 @@ const StructuredValueView = slotComponent("StructuredValueView", unregisteredWid
334
340
  const KindValueFrontDoor = slotComponent("KindValueFrontDoor", unregisteredWidget("KindValueFrontDoor"));
335
341
  const KindDataGate = slotComponent("KindDataGate", unregisteredWidget("KindDataGate"));
336
342
  const ServerNotes = slotComponent("ServerNotes", unregisteredWidget("ServerNotes"));
337
- const OptionCombobox = slotComponent("OptionCombobox", withPackageDefault(PackageOptionCombobox));
338
- const NumberStepper = slotComponent("NumberStepper", withPackageDefault(PackageNumberStepper));
343
+ const OptionCombobox = PackageOptionCombobox;
344
+ const NumberStepper = PackageNumberStepper;
339
345
  const MatrxFloatingFrame = slotComponent("MatrxFloatingFrame", unregisteredWidget("MatrxFloatingFrame"));
340
- const ItemMenu = slotComponent("ItemMenu", withPackageDefault(PackageItemMenu));
341
- const ClampedNumberInput = slotComponent("ClampedNumberInput", withPackageDefault(PackageClampedNumberInput));
342
- const AspectRatioSelect = slotComponent("AspectRatioSelect", withPackageDefault(PackageAspectRatioSelect));
346
+ const ItemMenu = PackageItemMenu;
347
+ const ClampedNumberInput = PackageClampedNumberInput;
348
+ const AspectRatioSelect = PackageAspectRatioSelect;
343
349
  const AnswerTextPreview = slotComponent("AnswerTextPreview", unregisteredWidget("AnswerTextPreview"));
344
350
  const AccessGate = slotComponent("AccessGate", unregisteredWidget("AccessGate"));
345
- const ReferenceCopyMenuItem = slotComponent("ReferenceCopyMenuItem", unregisteredWidget("ReferenceCopyMenuItem"));
346
351
  const ReferenceCopyButton = slotComponent("ReferenceCopyButton", unregisteredWidget("ReferenceCopyButton"));
347
352
  const MandateNotesPanel = slotComponent("MandateNotesPanel", unregisteredWidget("MandateNotesPanel"));
348
353
  const SurfaceBoundAgentsList = slotComponent("SurfaceBoundAgentsList", unregisteredWidget("SurfaceBoundAgentsList"));
@@ -356,21 +361,20 @@ const VoiceTextarea = slotComponent("VoiceTextarea", (props) => {
356
361
  const { onChange, value, className, placeholder, rows, id, ref, autoFocus, disabled } = props;
357
362
  return createElement("textarea", { ref, id, value, onChange, className, placeholder, rows, autoFocus, disabled, "data-chat-slot-fallback": "textarea" });
358
363
  });
359
- const FloatingSheet = slotComponent("FloatingSheet", withPackageDefault(PackageFloatingSheet));
364
+ const FloatingSheet = PackageFloatingSheet;
360
365
  const AppLink = slotComponent("AppLink", ({ href, children, className, ...rest }) => createElement("a", { href, className, ...rest }, children));
361
- const IconButton = slotComponent("IconButton", withPackageDefault(PackageIconButton));
362
- const LightSwitchToggle = slotComponent("LightSwitchToggle", withPackageDefault(PackageLightSwitchToggle));
366
+ const IconButton = PackageIconButton;
367
+ const LightSwitchToggle = PackageLightSwitchToggle;
363
368
  const CitationChip = slotComponent("CitationChip", unregisteredWidget("CitationChip"));
364
369
  const MatrxEnvelopeBlock = slotComponent("MatrxEnvelopeBlock", unregisteredWidget("MatrxEnvelopeBlock"));
365
370
  const ErrorBoundaryWithCapture = slotComponent("ErrorBoundaryWithCapture", ({ children }) => children ?? null);
366
- const ConfigurationTable = slotComponent("ConfigurationTable", withPackageDefault(PackageConfigurationTable));
367
- const ConfigurationTableRow = slotComponent("ConfigurationTableRow", withPackageDefault(PackageConfigurationTableRow));
368
- const FieldHelp = slotComponent("FieldHelp", withPackageDefault(PackageFieldHelp));
371
+ const ConfigurationTable = PackageConfigurationTable;
372
+ const ConfigurationTableRow = PackageConfigurationTableRow;
373
+ const FieldHelp = PackageFieldHelp;
369
374
  const HtmlPreviewFullScreenEditor = slotComponent("HtmlPreviewFullScreenEditor", unregisteredWidget("HtmlPreviewFullScreenEditor"));
370
375
  const AgentEditAccessBadge = slotComponent("AgentEditAccessBadge", unregisteredWidget("AgentEditAccessBadge"));
371
376
  const DataRefPreviewContent = slotComponent("DataRefPreviewContent", unregisteredWidget("DataRefPreviewContent"));
372
377
  const BlockHoverPreview = slotComponent("BlockHoverPreview", ({ children }) => children ?? null);
373
- const ConversationHoverPreview = slotComponent("ConversationHoverPreview", ({ children }) => children ?? null);
374
378
  const NoteEditorCore = slotComponent("NoteEditorCore", unregisteredWidget("NoteEditorCore"));
375
379
  const ToolResultCanvasOpener = slotComponent("ToolResultCanvasOpener");
376
380
  const CloudBrowserHandoffCanvasOpener = slotComponent("CloudBrowserHandoffCanvasOpener");
@@ -442,30 +446,27 @@ const selectContentBlocksByScopeRef = slotFn("selectContentBlocksByScopeRef");
442
446
  const selectActiveContentBlocks = slotFn("selectActiveContentBlocks");
443
447
  const LibraryPreviewPage = slotComponent("LibraryPreviewPage", unregisteredWidget("LibraryPreviewPage"));
444
448
  const NoteVersionHistoryPanel = slotComponent("NoteVersionHistoryPanel", unregisteredWidget("NoteVersionHistoryPanel"));
445
- const useOrganizationRequired = slotFn("useOrganizationRequired");
449
+ const useOrganizationRequired = slotFn("useOrganizationRequired", useDefaultOrganizationRequired);
446
450
  const useAuthGuardedAction = slotFn("useAuthGuardedAction");
447
451
  const readOf = slotFn("readOf");
448
452
  const pushAppHref = slotFn("pushAppHref");
449
453
  const replaceAppHref = slotFn("replaceAppHref");
450
- const announceComingSoon = slotFn("announceComingSoon");
451
454
  const peekSystemOrgId = slotFn("peekSystemOrgId");
452
- const toGlobalOwnershipRecord = slotFn("toGlobalOwnershipRecord");
453
- const fromGlobalOwnershipRecord = slotFn("fromGlobalOwnershipRecord");
455
+ import { toGlobalOwnershipRecord, fromGlobalOwnershipRecord, publishedToWebPatch } from "../ui/ownership.js";
454
456
  const peekMandateCatalogueEntry = slotFn("peekMandateCatalogueEntry");
455
457
  const invalidateMandateCatalogueCache = slotFn("invalidateMandateCatalogueCache");
456
458
  const useLoginHref = slotFn("useLoginHref");
457
- const useAccess = slotFn("useAccess");
459
+ const useAccess = slotFn("useAccess", useDefaultAccess);
458
460
  const selectShouldPromptForOrganization = slotFn("selectShouldPromptForOrganization");
459
461
  const resolveEntityToken = slotFn("resolveEntityToken");
460
462
  const entityTitleFallback = slotFn("entityTitleFallback");
461
463
  const fetchEntityTitles = slotFn("fetchEntityTitles");
462
464
  const getCachedEntityTitle = slotFn("getCachedEntityTitle");
463
465
  const bookmarksToReferenceDirectives = slotFn("bookmarksToReferenceDirectives");
464
- const ensureOrgAvailability = slotFn("ensureOrgAvailability");
466
+ const ensureOrgAvailability = slotFn("ensureOrgAvailability", defaultEnsureOrgAvailability);
465
467
  const requireAuthenticatedSupabaseSession = slotFn("requireAuthenticatedSupabaseSession");
466
468
  const notifyPrintOutcome = slotFn("notifyPrintOutcome");
467
469
  const awaitEffectiveOrganizationId = slotFn("awaitEffectiveOrganizationId");
468
- const publishedToWebPatch = slotFn("publishedToWebPatch");
469
470
  const isUuidValue = slotFn("isUuidValue");
470
471
  const AgentOptionsMenu = slotComponent("AgentOptionsMenu");
471
472
  const AgentSaveStatus = slotComponent("AgentSaveStatus");
@@ -474,7 +475,7 @@ const AgentPeekDuplicateButton = slotComponent("AgentPeekDuplicateButton");
474
475
  const CreatorRunPanel = slotComponent("CreatorRunPanel");
475
476
  const CustomDataBindingSummary = slotComponent("CustomDataBindingSummary", unregisteredWidget("CustomDataBindingSummary"));
476
477
  const CustomDataBindingPreview = slotComponent("CustomDataBindingPreview", unregisteredWidget("CustomDataBindingPreview"));
477
- const TextInputDialog = slotComponent("TextInputDialog", withPackageDefault(PackageTextInputDialog));
478
+ const TextInputDialog = PackageTextInputDialog;
478
479
  const ProInput = slotComponent("ProInput", (props) => createElement("input", { ...props, "data-chat-slot-fallback": "input" }));
479
480
  const MatrxDynamicPanelHost = slotComponent("MatrxDynamicPanelHost", unregisteredWidget("MatrxDynamicPanelHost"));
480
481
  const useClippedContentGuard = slotFn("useClippedContentGuard");
@@ -516,7 +517,6 @@ export {
516
517
  ConfirmDialog,
517
518
  ConnectorMark,
518
519
  ConnectorPromptHost,
519
- ConversationHoverPreview,
520
520
  CopyButtons,
521
521
  Cost,
522
522
  CreatorRunPanel,
@@ -573,7 +573,6 @@ export {
573
573
  ReadFailure,
574
574
  RecordChangeApprovalCard,
575
575
  ReferenceCopyButton,
576
- ReferenceCopyMenuItem,
577
576
  ResourcePickerMenu,
578
577
  ResourcePickerWindow,
579
578
  ReviewAnswersLink,
@@ -603,7 +602,6 @@ export {
603
602
  WindowPanel,
604
603
  WorkspaceGate,
605
604
  adoptCloudBrowserRunFromStream,
606
- announceComingSoon,
607
605
  answerPreviewText,
608
606
  attachConversationResource,
609
607
  awaitEffectiveOrganizationId,
@@ -13,7 +13,7 @@ export declare function createChatStore(preloadedState?: Partial<ChatState>, opt
13
13
  voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
14
14
  agentDefinition: import("../agents/types/agent-definition.types.js").AgentDefinitionSliceState;
15
15
  conversationList: import("../agents/redux/conversation-list/conversation-list.types.js").ConversationListState;
16
- conversationHistory: import("../agents/redux/conversation-history/index.js").ConversationHistoryState;
16
+ conversationHistory: import("../agents/redux/conversation-history/types.js").ConversationHistoryState;
17
17
  agentShortcut: import("../agents/redux/agent-shortcuts/types.js").AgentShortcutSliceState;
18
18
  agentShortcutCategory: import("../agents/redux/agent-shortcut-categories/types.js").AgentShortcutCategorySliceState;
19
19
  surfaceUserState: import("../surfaces/redux/userStateSlice.js").SurfaceUserStateSlice;
@@ -57,7 +57,7 @@ export declare function createChatStore(preloadedState?: Partial<ChatState>, opt
57
57
  voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
58
58
  agentDefinition: import("../agents/types/agent-definition.types.js").AgentDefinitionSliceState;
59
59
  conversationList: import("../agents/redux/conversation-list/conversation-list.types.js").ConversationListState;
60
- conversationHistory: import("../agents/redux/conversation-history/index.js").ConversationHistoryState;
60
+ conversationHistory: import("../agents/redux/conversation-history/types.js").ConversationHistoryState;
61
61
  agentShortcut: import("../agents/redux/agent-shortcuts/types.js").AgentShortcutSliceState;
62
62
  agentShortcutCategory: import("../agents/redux/agent-shortcut-categories/types.js").AgentShortcutCategorySliceState;
63
63
  surfaceUserState: import("../surfaces/redux/userStateSlice.js").SurfaceUserStateSlice;
@@ -3,7 +3,7 @@ export declare function chatMiddlewares(): readonly [Middleware<{}, any, import(
3
3
  voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
4
4
  agentDefinition: import("../agents/types/agent-definition.types.js").AgentDefinitionSliceState;
5
5
  conversationList: import("../agents/redux/conversation-list/conversation-list.types.js").ConversationListState;
6
- conversationHistory: import("../agents/redux/conversation-history/index.js").ConversationHistoryState;
6
+ conversationHistory: import("../agents/redux/conversation-history/types.js").ConversationHistoryState;
7
7
  agentShortcut: import("../agents/redux/agent-shortcuts/types.js").AgentShortcutSliceState;
8
8
  agentShortcutCategory: import("../agents/redux/agent-shortcut-categories/types.js").AgentShortcutCategorySliceState;
9
9
  surfaceUserState: import("../surfaces/redux/userStateSlice.js").SurfaceUserStateSlice;
@@ -45,7 +45,7 @@ export declare function chatMiddlewares(): readonly [Middleware<{}, any, import(
45
45
  voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
46
46
  agentDefinition: import("../agents/types/agent-definition.types.js").AgentDefinitionSliceState;
47
47
  conversationList: import("../agents/redux/conversation-list/conversation-list.types.js").ConversationListState;
48
- conversationHistory: import("../agents/redux/conversation-history/index.js").ConversationHistoryState;
48
+ conversationHistory: import("../agents/redux/conversation-history/types.js").ConversationHistoryState;
49
49
  agentShortcut: import("../agents/redux/agent-shortcuts/types.js").AgentShortcutSliceState;
50
50
  agentShortcutCategory: import("../agents/redux/agent-shortcut-categories/types.js").AgentShortcutCategorySliceState;
51
51
  surfaceUserState: import("../surfaces/redux/userStateSlice.js").SurfaceUserStateSlice;
@@ -87,7 +87,7 @@ export declare function chatMiddlewares(): readonly [Middleware<{}, any, import(
87
87
  voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
88
88
  agentDefinition: import("../agents/types/agent-definition.types.js").AgentDefinitionSliceState;
89
89
  conversationList: import("../agents/redux/conversation-list/conversation-list.types.js").ConversationListState;
90
- conversationHistory: import("../agents/redux/conversation-history/index.js").ConversationHistoryState;
90
+ conversationHistory: import("../agents/redux/conversation-history/types.js").ConversationHistoryState;
91
91
  agentShortcut: import("../agents/redux/agent-shortcuts/types.js").AgentShortcutSliceState;
92
92
  agentShortcutCategory: import("../agents/redux/agent-shortcut-categories/types.js").AgentShortcutCategorySliceState;
93
93
  surfaceUserState: import("../surfaces/redux/userStateSlice.js").SurfaceUserStateSlice;
@@ -129,7 +129,7 @@ export declare function chatMiddlewares(): readonly [Middleware<{}, any, import(
129
129
  voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
130
130
  agentDefinition: import("../agents/types/agent-definition.types.js").AgentDefinitionSliceState;
131
131
  conversationList: import("../agents/redux/conversation-list/conversation-list.types.js").ConversationListState;
132
- conversationHistory: import("../agents/redux/conversation-history/index.js").ConversationHistoryState;
132
+ conversationHistory: import("../agents/redux/conversation-history/types.js").ConversationHistoryState;
133
133
  agentShortcut: import("../agents/redux/agent-shortcuts/types.js").AgentShortcutSliceState;
134
134
  agentShortcutCategory: import("../agents/redux/agent-shortcut-categories/types.js").AgentShortcutCategorySliceState;
135
135
  surfaceUserState: import("../surfaces/redux/userStateSlice.js").SurfaceUserStateSlice;
@@ -171,7 +171,7 @@ export declare function chatMiddlewares(): readonly [Middleware<{}, any, import(
171
171
  voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
172
172
  agentDefinition: import("../agents/types/agent-definition.types.js").AgentDefinitionSliceState;
173
173
  conversationList: import("../agents/redux/conversation-list/conversation-list.types.js").ConversationListState;
174
- conversationHistory: import("../agents/redux/conversation-history/index.js").ConversationHistoryState;
174
+ conversationHistory: import("../agents/redux/conversation-history/types.js").ConversationHistoryState;
175
175
  agentShortcut: import("../agents/redux/agent-shortcuts/types.js").AgentShortcutSliceState;
176
176
  agentShortcutCategory: import("../agents/redux/agent-shortcut-categories/types.js").AgentShortcutCategorySliceState;
177
177
  surfaceUserState: import("../surfaces/redux/userStateSlice.js").SurfaceUserStateSlice;
@@ -2,7 +2,7 @@ export declare const chatReducers: {
2
2
  voiceAgent: import("redux").Reducer<import("../voice-agent/types.js").VoiceAgentState>;
3
3
  agentDefinition: import("redux").Reducer<import("../agents/types/agent-definition.types.js").AgentDefinitionSliceState>;
4
4
  conversationList: import("redux").Reducer<import("../agents/redux/conversation-list/conversation-list.types.js").ConversationListState>;
5
- conversationHistory: import("redux").Reducer<import("../agents/redux/conversation-history/index.js").ConversationHistoryState>;
5
+ conversationHistory: import("redux").Reducer<import("../agents/redux/conversation-history/types.js").ConversationHistoryState>;
6
6
  agentShortcut: import("redux").Reducer<import("../agents/redux/agent-shortcuts/types.js").AgentShortcutSliceState>;
7
7
  agentShortcutCategory: import("redux").Reducer<import("../agents/redux/agent-shortcut-categories/types.js").AgentShortcutCategorySliceState>;
8
8
  surfaceUserState: import("redux").Reducer<import("../surfaces/redux/userStateSlice.js").SurfaceUserStateSlice>;
@@ -9,7 +9,7 @@ export declare const selectActiveSurfaces: ((state: {
9
9
  voiceAgent: import("../../voice-agent/types.js").VoiceAgentState;
10
10
  agentDefinition: import("../../agents/types/agent-definition.types.js").AgentDefinitionSliceState;
11
11
  conversationList: import("../../agents/redux/conversation-list/conversation-list.types.js").ConversationListState;
12
- conversationHistory: import("../../agents/redux/conversation-history/index.js").ConversationHistoryState;
12
+ conversationHistory: import("../../agents/redux/conversation-history/types.js").ConversationHistoryState;
13
13
  agentShortcut: import("../../agents/redux/agent-shortcuts/types.js").AgentShortcutSliceState;
14
14
  agentShortcutCategory: import("../../agents/redux/agent-shortcut-categories/types.js").AgentShortcutCategorySliceState;
15
15
  surfaceUserState: import("./userStateSlice.js").SurfaceUserStateSlice;
@@ -80,7 +80,7 @@ export declare const makeSelectBindingsForAgent: (agentId: string) => ((state: {
80
80
  voiceAgent: import("../../voice-agent/types.js").VoiceAgentState;
81
81
  agentDefinition: import("../../agents/types/agent-definition.types.js").AgentDefinitionSliceState;
82
82
  conversationList: import("../../agents/redux/conversation-list/conversation-list.types.js").ConversationListState;
83
- conversationHistory: import("../../agents/redux/conversation-history/index.js").ConversationHistoryState;
83
+ conversationHistory: import("../../agents/redux/conversation-history/types.js").ConversationHistoryState;
84
84
  agentShortcut: import("../../agents/redux/agent-shortcuts/types.js").AgentShortcutSliceState;
85
85
  agentShortcutCategory: import("../../agents/redux/agent-shortcut-categories/types.js").AgentShortcutCategorySliceState;
86
86
  surfaceUserState: import("./userStateSlice.js").SurfaceUserStateSlice;
@@ -116,8 +116,9 @@ const ToolCallVisualizationInner = ({
116
116
  const heldTableName = useHeldWriteTableName(heldWait);
117
117
  const guardRouting = settled.length === 1 && headerTool?.status === "error" ? guardRoutingOf(headerTool) : null;
118
118
  const legacyHeld = settled.length === 1 && headerTool?.status === "error" && isHeldForApprovalError(headerTool);
119
- const HeaderInline = headerTool && headerTool.status !== "error" ? getInlineRenderer(headerTool.toolName) : null;
120
- const cardMode = !heldWait && getToolChrome(headerTool?.toolName ?? null) === "card" && allTerminal && phase !== "error" && settled.length === 1 && !!HeaderInline;
119
+ const toolChrome = getToolChrome(headerTool?.toolName ?? null);
120
+ const HeaderInline = headerTool && (headerTool.status !== "error" || toolChrome === "row") ? getInlineRenderer(headerTool.toolName) : null;
121
+ const cardMode = !heldWait && settled.length === 1 && !!HeaderInline && (toolChrome === "row" || toolChrome === "card" && allTerminal && phase !== "error");
121
122
  const primaryCallId = headerTool?.callId ?? null;
122
123
  const [userChoice, setUserChoiceState] = useState(
123
124
  () => getToolCardUserChoice(primaryCallId)
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The renderer body a configured row mounts through the package registry: folds the lifecycle
3
+ * entry into the row shape and draws it with the config-driven `ConfiguredToolRow`. A config that
4
+ * throws falls back to the universal `GenericRenderer`, so a malformed config never blanks a call.
5
+ */
6
+ import React from "react";
7
+ import type { ToolRendererProps } from "../types.js";
8
+ import type { ToolDisplayEntry } from "./types.js";
9
+ export declare function ConfiguredRowRenderer({ props, bare, cfg: given, load, stripPrefix, }: {
10
+ props: ToolRendererProps;
11
+ bare: string;
12
+ cfg?: ToolDisplayEntry;
13
+ load?: () => Promise<Record<string, ToolDisplayEntry>>;
14
+ stripPrefix?: RegExp;
15
+ }): React.JSX.Element;