@oxy.so/bloom 6.4.0 → 7.0.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.
- package/README.md +3 -3
- package/docs/adoption-matrix.mdx +19 -16
- package/docs/agent-avatar.mdx +24 -0
- package/docs/agent-creator.mdx +50 -0
- package/docs/button.mdx +1 -1
- package/docs/design-tokens.mdx +8 -0
- package/docs/dialog.mdx +6 -0
- package/docs/migrating-to-1.0.mdx +3 -3
- package/docs/multi-agent-chat.mdx +69 -0
- package/docs/project-board.mdx +35 -0
- package/docs/segmented-control.mdx +2 -0
- package/docs/settings-modal.mdx +2 -0
- package/docs/sidebar.mdx +8 -0
- package/docs/stat-widgets.mdx +3 -4
- package/lib/commonjs/agent-avatar/AgentAvatar.js +214 -0
- package/lib/commonjs/agent-avatar/AgentAvatar.js.map +1 -0
- package/lib/commonjs/agent-avatar/AgentFace.js +26 -0
- package/lib/commonjs/agent-avatar/AgentFace.js.map +1 -0
- package/lib/commonjs/agent-avatar/SvgDrawing.js +207 -0
- package/lib/commonjs/agent-avatar/SvgDrawing.js.map +1 -0
- package/lib/commonjs/agent-avatar/artwork.js +148 -0
- package/lib/commonjs/agent-avatar/artwork.js.map +1 -0
- package/lib/commonjs/agent-avatar/attention.js +79 -0
- package/lib/commonjs/agent-avatar/attention.js.map +1 -0
- package/lib/commonjs/agent-avatar/blink.js +46 -0
- package/lib/commonjs/agent-avatar/blink.js.map +1 -0
- package/lib/commonjs/agent-avatar/context.js +10 -0
- package/lib/commonjs/agent-avatar/context.js.map +1 -0
- package/lib/commonjs/agent-avatar/drawing.js +234 -0
- package/lib/commonjs/agent-avatar/drawing.js.map +1 -0
- package/lib/commonjs/agent-avatar/entrance.js +32 -0
- package/lib/commonjs/agent-avatar/entrance.js.map +1 -0
- package/lib/commonjs/agent-avatar/face.js +403 -0
- package/lib/commonjs/agent-avatar/face.js.map +1 -0
- package/lib/commonjs/agent-avatar/fold-outlines.js +43 -0
- package/lib/commonjs/agent-avatar/fold-outlines.js.map +1 -0
- package/lib/commonjs/agent-avatar/fold.js +322 -0
- package/lib/commonjs/agent-avatar/fold.js.map +1 -0
- package/lib/commonjs/agent-avatar/grain.js +9 -0
- package/lib/commonjs/agent-avatar/grain.js.map +1 -0
- package/lib/commonjs/agent-avatar/index.js +146 -0
- package/lib/commonjs/agent-avatar/index.js.map +1 -0
- package/lib/commonjs/agent-avatar/messages.js +11 -0
- package/lib/commonjs/agent-avatar/messages.js.map +1 -0
- package/lib/commonjs/agent-avatar/model.js +429 -0
- package/lib/commonjs/agent-avatar/model.js.map +1 -0
- package/lib/commonjs/agent-avatar/shape-morph.js +163 -0
- package/lib/commonjs/agent-avatar/shape-morph.js.map +1 -0
- package/lib/commonjs/{dot-grid-meter → agent-avatar}/types.js.map +1 -1
- package/lib/commonjs/agent-avatar/wander.js +64 -0
- package/lib/commonjs/agent-avatar/wander.js.map +1 -0
- package/lib/commonjs/agent-avatar/working.js +28 -0
- package/lib/commonjs/agent-avatar/working.js.map +1 -0
- package/lib/commonjs/agent-chat/AgentChatMessage.js +21 -0
- package/lib/commonjs/agent-chat/AgentChatMessage.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreator.js +32 -0
- package/lib/commonjs/agent-creator/AgentCreator.js.map +1 -0
- package/lib/commonjs/agent-creator/AgentCreator.web.js +32 -0
- package/lib/commonjs/agent-creator/AgentCreator.web.js.map +1 -0
- package/lib/commonjs/agent-creator/AgentCreatorBase.js +319 -0
- package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -0
- package/lib/commonjs/agent-creator/AgentPreferencesPanel.js +260 -0
- package/lib/commonjs/agent-creator/AgentPreferencesPanel.js.map +1 -0
- package/lib/commonjs/agent-creator/CustomColorPicker.js +374 -0
- package/lib/commonjs/agent-creator/CustomColorPicker.js.map +1 -0
- package/lib/commonjs/agent-creator/EmotionPicker.js +179 -0
- package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -0
- package/lib/commonjs/agent-creator/GlossArt.js +210 -0
- package/lib/commonjs/agent-creator/GlossArt.js.map +1 -0
- package/lib/commonjs/agent-creator/ScrollSurface.js +135 -0
- package/lib/commonjs/agent-creator/ScrollSurface.js.map +1 -0
- package/lib/commonjs/agent-creator/ShapeArc.js +222 -0
- package/lib/commonjs/agent-creator/ShapeArc.js.map +1 -0
- package/lib/commonjs/agent-creator/constants.js +68 -0
- package/lib/commonjs/agent-creator/constants.js.map +1 -0
- package/lib/commonjs/agent-creator/context.js +30 -0
- package/lib/commonjs/agent-creator/context.js.map +1 -0
- package/lib/commonjs/agent-creator/index.js +39 -0
- package/lib/commonjs/agent-creator/index.js.map +1 -0
- package/lib/commonjs/agent-creator/index.web.js +39 -0
- package/lib/commonjs/agent-creator/index.web.js.map +1 -0
- package/lib/commonjs/agent-creator/messages.js +104 -0
- package/lib/commonjs/agent-creator/messages.js.map +1 -0
- package/lib/commonjs/agent-creator/rainbow-artwork.js +10 -0
- package/lib/commonjs/agent-creator/rainbow-artwork.js.map +1 -0
- package/lib/commonjs/agent-creator/shared.js +83 -0
- package/lib/commonjs/agent-creator/shared.js.map +1 -0
- package/lib/commonjs/agent-creator/types.js +6 -0
- package/lib/{module/dot-grid-meter → commonjs/agent-creator}/types.js.map +1 -1
- package/lib/commonjs/agent-creator/use-agent-voices.js +59 -0
- package/lib/commonjs/agent-creator/use-agent-voices.js.map +1 -0
- package/lib/commonjs/agent-creator/use-track-events.js +43 -0
- package/lib/commonjs/agent-creator/use-track-events.js.map +1 -0
- package/lib/commonjs/button/CloseButton.js +4 -1
- package/lib/commonjs/button/CloseButton.js.map +1 -1
- package/lib/commonjs/chip/Chip.js +28 -15
- package/lib/commonjs/chip/Chip.js.map +1 -1
- package/lib/commonjs/design-tokens/component-roles.js +94 -0
- package/lib/commonjs/design-tokens/component-roles.js.map +1 -0
- package/lib/commonjs/design-tokens/tailwind-preset.js +25 -5
- package/lib/commonjs/design-tokens/tailwind-preset.js.map +1 -1
- package/lib/commonjs/design-tokens/theme-css.js +18 -0
- package/lib/commonjs/design-tokens/theme-css.js.map +1 -1
- package/lib/commonjs/design-tokens/theme.css +284 -0
- package/lib/commonjs/dialog/Dialog.js +28 -14
- package/lib/commonjs/dialog/Dialog.js.map +1 -1
- package/lib/commonjs/dialog/Dialog.web.js +24 -15
- package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
- package/lib/commonjs/dialog/DialogHeader.js +1 -1
- package/lib/commonjs/hooks/use-accessible-name-warning.js +2 -2
- package/lib/commonjs/index.js +143 -103
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +143 -103
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +363 -0
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +351 -0
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +355 -0
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +355 -0
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +355 -0
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +355 -0
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +354 -0
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +354 -0
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +355 -0
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +351 -0
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +355 -0
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +359 -0
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +354 -0
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +351 -0
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/AvatarFlightHost.js +16 -0
- package/lib/commonjs/multi-agent-chat/AvatarFlightHost.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/AvatarFlightHost.web.js +16 -0
- package/lib/commonjs/multi-agent-chat/AvatarFlightHost.web.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/AvatarHandoff.js +183 -0
- package/lib/commonjs/multi-agent-chat/AvatarHandoff.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/ChatDialogFrame.js +161 -0
- package/lib/commonjs/multi-agent-chat/ChatDialogFrame.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/ChatSidebar.js +368 -0
- package/lib/commonjs/multi-agent-chat/ChatSidebar.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/EditorRail.js +63 -0
- package/lib/commonjs/multi-agent-chat/EditorRail.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/Marketplace.js +501 -0
- package/lib/commonjs/multi-agent-chat/Marketplace.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/MarketplaceSettings.js +123 -0
- package/lib/commonjs/multi-agent-chat/MarketplaceSettings.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/MultiAgentChat.js +39 -0
- package/lib/commonjs/multi-agent-chat/MultiAgentChat.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/MultiAgentChat.web.js +39 -0
- package/lib/commonjs/multi-agent-chat/MultiAgentChat.web.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +926 -0
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/ReplyRow.js +172 -0
- package/lib/commonjs/multi-agent-chat/ReplyRow.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/ScrollSurface.js +94 -0
- package/lib/commonjs/multi-agent-chat/ScrollSurface.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +126 -0
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/WorkspaceSettingsPages.js +480 -0
- package/lib/commonjs/multi-agent-chat/WorkspaceSettingsPages.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/context.js +15 -0
- package/lib/commonjs/multi-agent-chat/context.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/data.js +423 -0
- package/lib/commonjs/multi-agent-chat/data.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/handoff.js +104 -0
- package/lib/commonjs/multi-agent-chat/handoff.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/index.js +13 -0
- package/lib/commonjs/multi-agent-chat/index.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/index.web.js +13 -0
- package/lib/commonjs/multi-agent-chat/index.web.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/marketplace-data.js +145 -0
- package/lib/commonjs/multi-agent-chat/marketplace-data.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/marketplace-logos.js +36 -0
- package/lib/commonjs/multi-agent-chat/marketplace-logos.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/messages.js +196 -0
- package/lib/commonjs/multi-agent-chat/messages.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/model-catalog.js +771 -0
- package/lib/commonjs/multi-agent-chat/model-catalog.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/stream-reply.js +41 -0
- package/lib/commonjs/multi-agent-chat/stream-reply.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/types.js +6 -0
- package/lib/commonjs/multi-agent-chat/types.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/use-replies.js +157 -0
- package/lib/commonjs/multi-agent-chat/use-replies.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/use-workspace.js +57 -0
- package/lib/commonjs/multi-agent-chat/use-workspace.js.map +1 -0
- package/lib/commonjs/project-board/BoardTooltip.js +49 -0
- package/lib/commonjs/project-board/BoardTooltip.js.map +1 -0
- package/lib/commonjs/project-board/CreateTicketDialog.js +330 -0
- package/lib/commonjs/project-board/CreateTicketDialog.js.map +1 -0
- package/lib/commonjs/project-board/ProjectBoard.js +39 -0
- package/lib/commonjs/project-board/ProjectBoard.js.map +1 -0
- package/lib/commonjs/project-board/ProjectBoard.web.js +40 -0
- package/lib/commonjs/project-board/ProjectBoard.web.js.map +1 -0
- package/lib/commonjs/project-board/ProjectBoardBase.js +768 -0
- package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -0
- package/lib/commonjs/project-board/ProjectBoardControls.js +198 -0
- package/lib/commonjs/project-board/ProjectBoardControls.js.map +1 -0
- package/lib/commonjs/project-board/ProjectBoardEmptyState.js +171 -0
- package/lib/commonjs/project-board/ProjectBoardEmptyState.js.map +1 -0
- package/lib/commonjs/project-board/ProjectBoardIcons.js +91 -0
- package/lib/commonjs/project-board/ProjectBoardIcons.js.map +1 -0
- package/lib/commonjs/project-board/RiInboxArchiveLine.js +11 -0
- package/lib/commonjs/project-board/RiInboxArchiveLine.js.map +1 -0
- package/lib/commonjs/project-board/RiMoreLine.js +11 -0
- package/lib/commonjs/project-board/RiMoreLine.js.map +1 -0
- package/lib/commonjs/project-board/RiPieChart2Line.js +11 -0
- package/lib/commonjs/project-board/RiPieChart2Line.js.map +1 -0
- package/lib/commonjs/project-board/RiRestartLine.js +11 -0
- package/lib/commonjs/project-board/RiRestartLine.js.map +1 -0
- package/lib/commonjs/project-board/SourcePrimitives.js +135 -0
- package/lib/commonjs/project-board/SourcePrimitives.js.map +1 -0
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js +338 -0
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js.map +1 -0
- package/lib/commonjs/project-board/TicketDetailDialog.js +597 -0
- package/lib/commonjs/project-board/TicketDetailDialog.js.map +1 -0
- package/lib/commonjs/project-board/TicketGenieSurface.js +76 -0
- package/lib/commonjs/project-board/TicketGenieSurface.js.map +1 -0
- package/lib/commonjs/project-board/TicketGenieSurface.web.js +193 -0
- package/lib/commonjs/project-board/TicketGenieSurface.web.js.map +1 -0
- package/lib/commonjs/project-board/animation.web.js +21 -0
- package/lib/commonjs/project-board/animation.web.js.map +1 -0
- package/lib/commonjs/project-board/constants.js +18 -0
- package/lib/commonjs/project-board/constants.js.map +1 -0
- package/lib/commonjs/project-board/context.js +15 -0
- package/lib/commonjs/project-board/context.js.map +1 -0
- package/lib/commonjs/project-board/index.js +13 -0
- package/lib/commonjs/project-board/index.js.map +1 -0
- package/lib/commonjs/project-board/index.web.js +13 -0
- package/lib/commonjs/project-board/index.web.js.map +1 -0
- package/lib/commonjs/project-board/messages.js +80 -0
- package/lib/commonjs/project-board/messages.js.map +1 -0
- package/lib/commonjs/project-board/shared.js +90 -0
- package/lib/commonjs/project-board/shared.js.map +1 -0
- package/lib/commonjs/project-board/types.js +6 -0
- package/lib/commonjs/project-board/types.js.map +1 -0
- package/lib/commonjs/segmented-control/SegmentedControl.js +36 -38
- package/lib/commonjs/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/commonjs/settings-modal/SettingsModal.js +18 -4
- package/lib/commonjs/settings-modal/SettingsModal.js.map +1 -1
- package/lib/commonjs/settings-modal/SettingsRows.js +4 -1
- package/lib/commonjs/settings-modal/SettingsRows.js.map +1 -1
- package/lib/commonjs/sidebar/Sidebar.js +21 -9
- package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarItem.js +58 -14
- package/lib/commonjs/sidebar/SidebarItem.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarTeamMenu.js +3 -3
- package/lib/commonjs/sidebar/SidebarTeamMenu.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarToolbar.js +170 -0
- package/lib/commonjs/sidebar/SidebarToolbar.js.map +1 -0
- package/lib/commonjs/sidebar/index.js +7 -0
- package/lib/commonjs/sidebar/index.js.map +1 -1
- package/lib/commonjs/sidebar/parts.js +11 -3
- package/lib/commonjs/sidebar/parts.js.map +1 -1
- package/lib/commonjs/social-button/SocialButtonBase.js +1 -0
- package/lib/commonjs/social-button/SocialButtonBase.js.map +1 -1
- package/lib/commonjs/textarea/Textarea.js +28 -14
- package/lib/commonjs/textarea/Textarea.js.map +1 -1
- package/lib/commonjs/theme/color-scope/seed-scope.js +2 -0
- package/lib/commonjs/theme/color-scope/seed-scope.js.map +1 -1
- package/lib/module/agent-avatar/AgentAvatar.js +210 -0
- package/lib/module/agent-avatar/AgentAvatar.js.map +1 -0
- package/lib/module/agent-avatar/AgentFace.js +23 -0
- package/lib/module/agent-avatar/AgentFace.js.map +1 -0
- package/lib/module/agent-avatar/SvgDrawing.js +202 -0
- package/lib/module/agent-avatar/SvgDrawing.js.map +1 -0
- package/lib/module/agent-avatar/artwork.js +144 -0
- package/lib/module/agent-avatar/artwork.js.map +1 -0
- package/lib/module/agent-avatar/attention.js +74 -0
- package/lib/module/agent-avatar/attention.js.map +1 -0
- package/lib/module/agent-avatar/blink.js +41 -0
- package/lib/module/agent-avatar/blink.js.map +1 -0
- package/lib/module/agent-avatar/context.js +6 -0
- package/lib/module/agent-avatar/context.js.map +1 -0
- package/lib/module/agent-avatar/drawing.js +226 -0
- package/lib/module/agent-avatar/drawing.js.map +1 -0
- package/lib/module/agent-avatar/entrance.js +27 -0
- package/lib/module/agent-avatar/entrance.js.map +1 -0
- package/lib/module/agent-avatar/face.js +392 -0
- package/lib/module/agent-avatar/face.js.map +1 -0
- package/lib/module/agent-avatar/fold-outlines.js +37 -0
- package/lib/module/agent-avatar/fold-outlines.js.map +1 -0
- package/lib/module/agent-avatar/fold.js +319 -0
- package/lib/module/agent-avatar/fold.js.map +1 -0
- package/lib/module/agent-avatar/grain.js +5 -0
- package/lib/module/agent-avatar/grain.js.map +1 -0
- package/lib/module/agent-avatar/index.js +5 -0
- package/lib/module/agent-avatar/index.js.map +1 -0
- package/lib/module/agent-avatar/messages.js +7 -0
- package/lib/module/agent-avatar/messages.js.map +1 -0
- package/lib/module/agent-avatar/model.js +424 -0
- package/lib/module/agent-avatar/model.js.map +1 -0
- package/lib/module/agent-avatar/shape-morph.js +155 -0
- package/lib/module/agent-avatar/shape-morph.js.map +1 -0
- package/lib/module/agent-avatar/types.js.map +1 -0
- package/lib/module/agent-avatar/wander.js +59 -0
- package/lib/module/agent-avatar/wander.js.map +1 -0
- package/lib/module/agent-avatar/working.js +23 -0
- package/lib/module/agent-avatar/working.js.map +1 -0
- package/lib/module/agent-chat/AgentChatMessage.js +20 -0
- package/lib/module/agent-chat/AgentChatMessage.js.map +1 -1
- package/lib/module/agent-creator/AgentCreator.js +28 -0
- package/lib/module/agent-creator/AgentCreator.js.map +1 -0
- package/lib/module/agent-creator/AgentCreator.web.js +28 -0
- package/lib/module/agent-creator/AgentCreator.web.js.map +1 -0
- package/lib/module/agent-creator/AgentCreatorBase.js +315 -0
- package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -0
- package/lib/module/agent-creator/AgentPreferencesPanel.js +257 -0
- package/lib/module/agent-creator/AgentPreferencesPanel.js.map +1 -0
- package/lib/module/agent-creator/CustomColorPicker.js +369 -0
- package/lib/module/agent-creator/CustomColorPicker.js.map +1 -0
- package/lib/module/agent-creator/EmotionPicker.js +174 -0
- package/lib/module/agent-creator/EmotionPicker.js.map +1 -0
- package/lib/module/agent-creator/GlossArt.js +206 -0
- package/lib/module/agent-creator/GlossArt.js.map +1 -0
- package/lib/module/agent-creator/ScrollSurface.js +130 -0
- package/lib/module/agent-creator/ScrollSurface.js.map +1 -0
- package/lib/module/agent-creator/ShapeArc.js +217 -0
- package/lib/module/agent-creator/ShapeArc.js.map +1 -0
- package/lib/module/agent-creator/constants.js +64 -0
- package/lib/module/agent-creator/constants.js.map +1 -0
- package/lib/module/agent-creator/context.js +24 -0
- package/lib/module/agent-creator/context.js.map +1 -0
- package/lib/module/agent-creator/index.js +6 -0
- package/lib/module/agent-creator/index.js.map +1 -0
- package/lib/module/agent-creator/index.web.js +11 -0
- package/lib/module/agent-creator/index.web.js.map +1 -0
- package/lib/module/agent-creator/messages.js +100 -0
- package/lib/module/agent-creator/messages.js.map +1 -0
- package/lib/module/agent-creator/rainbow-artwork.js +6 -0
- package/lib/module/agent-creator/rainbow-artwork.js.map +1 -0
- package/lib/module/agent-creator/shared.js +72 -0
- package/lib/module/agent-creator/shared.js.map +1 -0
- package/lib/module/agent-creator/types.js +4 -0
- package/lib/module/agent-creator/types.js.map +1 -0
- package/lib/module/agent-creator/use-agent-voices.js +55 -0
- package/lib/module/agent-creator/use-agent-voices.js.map +1 -0
- package/lib/module/agent-creator/use-track-events.js +40 -0
- package/lib/module/agent-creator/use-track-events.js.map +1 -0
- package/lib/module/button/CloseButton.js +5 -2
- package/lib/module/button/CloseButton.js.map +1 -1
- package/lib/module/chip/Chip.js +29 -14
- package/lib/module/chip/Chip.js.map +1 -1
- package/lib/module/design-tokens/component-roles.js +90 -0
- package/lib/module/design-tokens/component-roles.js.map +1 -0
- package/lib/module/design-tokens/tailwind-preset.js +25 -5
- package/lib/module/design-tokens/tailwind-preset.js.map +1 -1
- package/lib/module/design-tokens/theme-css.js +18 -0
- package/lib/module/design-tokens/theme-css.js.map +1 -1
- package/lib/module/design-tokens/theme.css +284 -0
- package/lib/module/dialog/Dialog.js +28 -14
- package/lib/module/dialog/Dialog.js.map +1 -1
- package/lib/module/dialog/Dialog.web.js +24 -15
- package/lib/module/dialog/Dialog.web.js.map +1 -1
- package/lib/module/dialog/DialogHeader.js +1 -1
- package/lib/module/hooks/use-accessible-name-warning.js +2 -2
- package/lib/module/index.js +4 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +4 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/locale/translations/ar.js +363 -0
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +351 -0
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +355 -0
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +355 -0
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +355 -0
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +355 -0
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +354 -0
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +354 -0
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +355 -0
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +351 -0
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +355 -0
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +359 -0
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +354 -0
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +351 -0
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/multi-agent-chat/AvatarFlightHost.js +12 -0
- package/lib/module/multi-agent-chat/AvatarFlightHost.js.map +1 -0
- package/lib/module/multi-agent-chat/AvatarFlightHost.web.js +12 -0
- package/lib/module/multi-agent-chat/AvatarFlightHost.web.js.map +1 -0
- package/lib/module/multi-agent-chat/AvatarHandoff.js +178 -0
- package/lib/module/multi-agent-chat/AvatarHandoff.js.map +1 -0
- package/lib/module/multi-agent-chat/ChatDialogFrame.js +155 -0
- package/lib/module/multi-agent-chat/ChatDialogFrame.js.map +1 -0
- package/lib/module/multi-agent-chat/ChatSidebar.js +362 -0
- package/lib/module/multi-agent-chat/ChatSidebar.js.map +1 -0
- package/lib/module/multi-agent-chat/EditorRail.js +58 -0
- package/lib/module/multi-agent-chat/EditorRail.js.map +1 -0
- package/lib/module/multi-agent-chat/Marketplace.js +496 -0
- package/lib/module/multi-agent-chat/Marketplace.js.map +1 -0
- package/lib/module/multi-agent-chat/MarketplaceSettings.js +119 -0
- package/lib/module/multi-agent-chat/MarketplaceSettings.js.map +1 -0
- package/lib/module/multi-agent-chat/MultiAgentChat.js +34 -0
- package/lib/module/multi-agent-chat/MultiAgentChat.js.map +1 -0
- package/lib/module/multi-agent-chat/MultiAgentChat.web.js +34 -0
- package/lib/module/multi-agent-chat/MultiAgentChat.web.js.map +1 -0
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js +921 -0
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -0
- package/lib/module/multi-agent-chat/ReplyRow.js +166 -0
- package/lib/module/multi-agent-chat/ReplyRow.js.map +1 -0
- package/lib/module/multi-agent-chat/ScrollSurface.js +89 -0
- package/lib/module/multi-agent-chat/ScrollSurface.js.map +1 -0
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js +121 -0
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -0
- package/lib/module/multi-agent-chat/WorkspaceSettingsPages.js +476 -0
- package/lib/module/multi-agent-chat/WorkspaceSettingsPages.js.map +1 -0
- package/lib/module/multi-agent-chat/context.js +10 -0
- package/lib/module/multi-agent-chat/context.js.map +1 -0
- package/lib/module/multi-agent-chat/data.js +412 -0
- package/lib/module/multi-agent-chat/data.js.map +1 -0
- package/lib/module/multi-agent-chat/handoff.js +94 -0
- package/lib/module/multi-agent-chat/handoff.js.map +1 -0
- package/lib/module/multi-agent-chat/index.js +4 -0
- package/lib/module/multi-agent-chat/index.js.map +1 -0
- package/lib/module/multi-agent-chat/index.web.js +9 -0
- package/lib/module/multi-agent-chat/index.web.js.map +1 -0
- package/lib/module/multi-agent-chat/marketplace-data.js +137 -0
- package/lib/module/multi-agent-chat/marketplace-data.js.map +1 -0
- package/lib/module/multi-agent-chat/marketplace-logos.js +32 -0
- package/lib/module/multi-agent-chat/marketplace-logos.js.map +1 -0
- package/lib/module/multi-agent-chat/messages.js +191 -0
- package/lib/module/multi-agent-chat/messages.js.map +1 -0
- package/lib/module/multi-agent-chat/model-catalog.js +767 -0
- package/lib/module/multi-agent-chat/model-catalog.js.map +1 -0
- package/lib/module/multi-agent-chat/stream-reply.js +36 -0
- package/lib/module/multi-agent-chat/stream-reply.js.map +1 -0
- package/lib/module/multi-agent-chat/types.js +4 -0
- package/lib/module/multi-agent-chat/types.js.map +1 -0
- package/lib/module/multi-agent-chat/use-replies.js +152 -0
- package/lib/module/multi-agent-chat/use-replies.js.map +1 -0
- package/lib/module/multi-agent-chat/use-workspace.js +53 -0
- package/lib/module/multi-agent-chat/use-workspace.js.map +1 -0
- package/lib/module/project-board/BoardTooltip.js +45 -0
- package/lib/module/project-board/BoardTooltip.js.map +1 -0
- package/lib/module/project-board/CreateTicketDialog.js +326 -0
- package/lib/module/project-board/CreateTicketDialog.js.map +1 -0
- package/lib/module/project-board/ProjectBoard.js +34 -0
- package/lib/module/project-board/ProjectBoard.js.map +1 -0
- package/lib/module/project-board/ProjectBoard.web.js +35 -0
- package/lib/module/project-board/ProjectBoard.web.js.map +1 -0
- package/lib/module/project-board/ProjectBoardBase.js +763 -0
- package/lib/module/project-board/ProjectBoardBase.js.map +1 -0
- package/lib/module/project-board/ProjectBoardControls.js +188 -0
- package/lib/module/project-board/ProjectBoardControls.js.map +1 -0
- package/lib/module/project-board/ProjectBoardEmptyState.js +166 -0
- package/lib/module/project-board/ProjectBoardEmptyState.js.map +1 -0
- package/lib/module/project-board/ProjectBoardIcons.js +83 -0
- package/lib/module/project-board/ProjectBoardIcons.js.map +1 -0
- package/lib/module/project-board/RiInboxArchiveLine.js +7 -0
- package/lib/module/project-board/RiInboxArchiveLine.js.map +1 -0
- package/lib/module/project-board/RiMoreLine.js +7 -0
- package/lib/module/project-board/RiMoreLine.js.map +1 -0
- package/lib/module/project-board/RiPieChart2Line.js +7 -0
- package/lib/module/project-board/RiPieChart2Line.js.map +1 -0
- package/lib/module/project-board/RiRestartLine.js +7 -0
- package/lib/module/project-board/RiRestartLine.js.map +1 -0
- package/lib/module/project-board/SourcePrimitives.js +125 -0
- package/lib/module/project-board/SourcePrimitives.js.map +1 -0
- package/lib/module/project-board/TicketCornerGenieSurface.web.js +334 -0
- package/lib/module/project-board/TicketCornerGenieSurface.web.js.map +1 -0
- package/lib/module/project-board/TicketDetailDialog.js +593 -0
- package/lib/module/project-board/TicketDetailDialog.js.map +1 -0
- package/lib/module/project-board/TicketGenieSurface.js +70 -0
- package/lib/module/project-board/TicketGenieSurface.js.map +1 -0
- package/lib/module/project-board/TicketGenieSurface.web.js +189 -0
- package/lib/module/project-board/TicketGenieSurface.web.js.map +1 -0
- package/lib/module/project-board/animation.web.js +17 -0
- package/lib/module/project-board/animation.web.js.map +1 -0
- package/lib/module/project-board/constants.js +13 -0
- package/lib/module/project-board/constants.js.map +1 -0
- package/lib/module/project-board/context.js +10 -0
- package/lib/module/project-board/context.js.map +1 -0
- package/lib/module/project-board/index.js +4 -0
- package/lib/module/project-board/index.js.map +1 -0
- package/lib/module/project-board/index.web.js +9 -0
- package/lib/module/project-board/index.web.js.map +1 -0
- package/lib/module/project-board/messages.js +76 -0
- package/lib/module/project-board/messages.js.map +1 -0
- package/lib/module/project-board/shared.js +82 -0
- package/lib/module/project-board/shared.js.map +1 -0
- package/lib/module/project-board/types.js +4 -0
- package/lib/module/project-board/types.js.map +1 -0
- package/lib/module/segmented-control/SegmentedControl.js +37 -39
- package/lib/module/segmented-control/SegmentedControl.js.map +1 -1
- package/lib/module/settings-modal/SettingsModal.js +18 -4
- package/lib/module/settings-modal/SettingsModal.js.map +1 -1
- package/lib/module/settings-modal/SettingsRows.js +4 -1
- package/lib/module/settings-modal/SettingsRows.js.map +1 -1
- package/lib/module/sidebar/Sidebar.js +21 -9
- package/lib/module/sidebar/Sidebar.js.map +1 -1
- package/lib/module/sidebar/SidebarItem.js +59 -15
- package/lib/module/sidebar/SidebarItem.js.map +1 -1
- package/lib/module/sidebar/SidebarTeamMenu.js +3 -3
- package/lib/module/sidebar/SidebarTeamMenu.js.map +1 -1
- package/lib/module/sidebar/SidebarToolbar.js +165 -0
- package/lib/module/sidebar/SidebarToolbar.js.map +1 -0
- package/lib/module/sidebar/index.js +1 -0
- package/lib/module/sidebar/index.js.map +1 -1
- package/lib/module/sidebar/parts.js +11 -3
- package/lib/module/sidebar/parts.js.map +1 -1
- package/lib/module/social-button/SocialButtonBase.js +1 -1
- package/lib/module/social-button/SocialButtonBase.js.map +1 -1
- package/lib/module/textarea/Textarea.js +29 -15
- package/lib/module/textarea/Textarea.js.map +1 -1
- package/lib/module/theme/color-scope/seed-scope.js +2 -0
- package/lib/module/theme/color-scope/seed-scope.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/AgentAvatar.d.ts +4 -0
- package/lib/typescript/commonjs/agent-avatar/AgentAvatar.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/AgentFace.d.ts +7 -0
- package/lib/typescript/commonjs/agent-avatar/AgentFace.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/SvgDrawing.d.ts +14 -0
- package/lib/typescript/commonjs/agent-avatar/SvgDrawing.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/artwork.d.ts +7 -0
- package/lib/typescript/commonjs/agent-avatar/artwork.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/attention.d.ts +24 -0
- package/lib/typescript/commonjs/agent-avatar/attention.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/blink.d.ts +12 -0
- package/lib/typescript/commonjs/agent-avatar/blink.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/context.d.ts +4 -0
- package/lib/typescript/commonjs/agent-avatar/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/drawing.d.ts +102 -0
- package/lib/typescript/commonjs/agent-avatar/drawing.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/entrance.d.ts +13 -0
- package/lib/typescript/commonjs/agent-avatar/entrance.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/face.d.ts +38 -0
- package/lib/typescript/commonjs/agent-avatar/face.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/fold-outlines.d.ts +13 -0
- package/lib/typescript/commonjs/agent-avatar/fold-outlines.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/fold.d.ts +7 -0
- package/lib/typescript/commonjs/agent-avatar/fold.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/grain.d.ts +3 -0
- package/lib/typescript/commonjs/agent-avatar/grain.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/index.d.ts +5 -0
- package/lib/typescript/commonjs/agent-avatar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/messages.d.ts +4 -0
- package/lib/typescript/commonjs/agent-avatar/messages.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/model.d.ts +63 -0
- package/lib/typescript/commonjs/agent-avatar/model.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/shape-morph.d.ts +39 -0
- package/lib/typescript/commonjs/agent-avatar/shape-morph.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/types.d.ts +21 -0
- package/lib/typescript/commonjs/agent-avatar/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/wander.d.ts +14 -0
- package/lib/typescript/commonjs/agent-avatar/wander.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/working.d.ts +8 -0
- package/lib/typescript/commonjs/agent-avatar/working.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-chat/AgentChatMessage.d.ts +5 -0
- package/lib/typescript/commonjs/agent-chat/AgentChatMessage.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreator.d.ts +3 -0
- package/lib/typescript/commonjs/agent-creator/AgentCreator.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/AgentCreator.web.d.ts +3 -0
- package/lib/typescript/commonjs/agent-creator/AgentCreator.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts +4 -0
- package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/AgentPreferencesPanel.d.ts +4 -0
- package/lib/typescript/commonjs/agent-creator/AgentPreferencesPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts +7 -0
- package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts +7 -0
- package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts +9 -0
- package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/ScrollSurface.d.ts +11 -0
- package/lib/typescript/commonjs/agent-creator/ScrollSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/ShapeArc.d.ts +7 -0
- package/lib/typescript/commonjs/agent-creator/ShapeArc.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/constants.d.ts +49 -0
- package/lib/typescript/commonjs/agent-creator/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/context.d.ts +64 -0
- package/lib/typescript/commonjs/agent-creator/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/index.d.ts +5 -0
- package/lib/typescript/commonjs/agent-creator/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/index.web.d.ts +5 -0
- package/lib/typescript/commonjs/agent-creator/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/messages.d.ts +53 -0
- package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts +3 -0
- package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/shared.d.ts +18 -0
- package/lib/typescript/commonjs/agent-creator/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/types.d.ts +37 -0
- package/lib/typescript/commonjs/agent-creator/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/use-agent-voices.d.ts +9 -0
- package/lib/typescript/commonjs/agent-creator/use-agent-voices.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/use-track-events.d.ts +5 -0
- package/lib/typescript/commonjs/agent-creator/use-track-events.d.ts.map +1 -0
- package/lib/typescript/commonjs/button/CloseButton.d.ts +1 -1
- package/lib/typescript/commonjs/button/CloseButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/shared.d.ts +1 -1
- package/lib/typescript/commonjs/button/types.d.ts +2 -0
- package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/chip/Chip.d.ts.map +1 -1
- package/lib/typescript/commonjs/chip/types.d.ts +3 -0
- package/lib/typescript/commonjs/chip/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/design-tokens/component-roles.d.ts +89 -0
- package/lib/typescript/commonjs/design-tokens/component-roles.d.ts.map +1 -0
- package/lib/typescript/commonjs/design-tokens/tailwind-preset.d.ts +3 -27
- package/lib/typescript/commonjs/design-tokens/tailwind-preset.d.ts.map +1 -1
- package/lib/typescript/commonjs/design-tokens/theme-css.d.ts +0 -24
- package/lib/typescript/commonjs/design-tokens/theme-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/types.d.ts +6 -0
- package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +4 -2
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +4 -2
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/types.d.ts +8 -0
- package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/AvatarFlightHost.d.ts +4 -0
- package/lib/typescript/commonjs/multi-agent-chat/AvatarFlightHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/AvatarFlightHost.web.d.ts +3 -0
- package/lib/typescript/commonjs/multi-agent-chat/AvatarFlightHost.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/AvatarHandoff.d.ts +10 -0
- package/lib/typescript/commonjs/multi-agent-chat/AvatarHandoff.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/ChatDialogFrame.d.ts +15 -0
- package/lib/typescript/commonjs/multi-agent-chat/ChatDialogFrame.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/ChatSidebar.d.ts +24 -0
- package/lib/typescript/commonjs/multi-agent-chat/ChatSidebar.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/EditorRail.d.ts +7 -0
- package/lib/typescript/commonjs/multi-agent-chat/EditorRail.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/Marketplace.d.ts +14 -0
- package/lib/typescript/commonjs/multi-agent-chat/Marketplace.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/MarketplaceSettings.d.ts +7 -0
- package/lib/typescript/commonjs/multi-agent-chat/MarketplaceSettings.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChat.d.ts +3 -0
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChat.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChat.web.d.ts +3 -0
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChat.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts +4 -0
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/ReplyRow.d.ts +18 -0
- package/lib/typescript/commonjs/multi-agent-chat/ReplyRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/ScrollSurface.d.ts +13 -0
- package/lib/typescript/commonjs/multi-agent-chat/ScrollSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/SelectedAgentPreview.d.ts +9 -0
- package/lib/typescript/commonjs/multi-agent-chat/SelectedAgentPreview.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/WorkspaceSettingsPages.d.ts +3 -0
- package/lib/typescript/commonjs/multi-agent-chat/WorkspaceSettingsPages.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/context.d.ts +20 -0
- package/lib/typescript/commonjs/multi-agent-chat/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/data.d.ts +39 -0
- package/lib/typescript/commonjs/multi-agent-chat/data.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/handoff.d.ts +42 -0
- package/lib/typescript/commonjs/multi-agent-chat/handoff.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/index.d.ts +4 -0
- package/lib/typescript/commonjs/multi-agent-chat/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/index.web.d.ts +4 -0
- package/lib/typescript/commonjs/multi-agent-chat/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/marketplace-data.d.ts +26 -0
- package/lib/typescript/commonjs/multi-agent-chat/marketplace-data.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/marketplace-logos.d.ts +30 -0
- package/lib/typescript/commonjs/multi-agent-chat/marketplace-logos.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/messages.d.ts +175 -0
- package/lib/typescript/commonjs/multi-agent-chat/messages.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/model-catalog.d.ts +3 -0
- package/lib/typescript/commonjs/multi-agent-chat/model-catalog.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/stream-reply.d.ts +5 -0
- package/lib/typescript/commonjs/multi-agent-chat/stream-reply.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/types.d.ts +21 -0
- package/lib/typescript/commonjs/multi-agent-chat/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/use-replies.d.ts +14 -0
- package/lib/typescript/commonjs/multi-agent-chat/use-replies.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/use-workspace.d.ts +9 -0
- package/lib/typescript/commonjs/multi-agent-chat/use-workspace.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/BoardTooltip.d.ts +7 -0
- package/lib/typescript/commonjs/project-board/BoardTooltip.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/CreateTicketDialog.d.ts +12 -0
- package/lib/typescript/commonjs/project-board/CreateTicketDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/ProjectBoard.d.ts +3 -0
- package/lib/typescript/commonjs/project-board/ProjectBoard.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/ProjectBoard.web.d.ts +3 -0
- package/lib/typescript/commonjs/project-board/ProjectBoard.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts +3 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardControls.d.ts +32 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardControls.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardEmptyState.d.ts +3 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardEmptyState.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardIcons.d.ts +15 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardIcons.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/RiInboxArchiveLine.d.ts +7 -0
- package/lib/typescript/commonjs/project-board/RiInboxArchiveLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/RiMoreLine.d.ts +7 -0
- package/lib/typescript/commonjs/project-board/RiMoreLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/RiPieChart2Line.d.ts +7 -0
- package/lib/typescript/commonjs/project-board/RiPieChart2Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/RiRestartLine.d.ts +7 -0
- package/lib/typescript/commonjs/project-board/RiRestartLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/SourcePrimitives.d.ts +177 -0
- package/lib/typescript/commonjs/project-board/SourcePrimitives.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts +7 -0
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts +16 -0
- package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts +9 -0
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.web.d.ts +6 -0
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/animation.web.d.ts +10 -0
- package/lib/typescript/commonjs/project-board/animation.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/constants.d.ts +7 -0
- package/lib/typescript/commonjs/project-board/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/context.d.ts +39 -0
- package/lib/typescript/commonjs/project-board/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/index.d.ts +3 -0
- package/lib/typescript/commonjs/project-board/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/index.web.d.ts +3 -0
- package/lib/typescript/commonjs/project-board/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/messages.d.ts +73 -0
- package/lib/typescript/commonjs/project-board/messages.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/shared.d.ts +18 -0
- package/lib/typescript/commonjs/project-board/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/types.d.ts +78 -0
- package/lib/typescript/commonjs/project-board/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/segmented-control/SegmentedControl.d.ts +4 -2
- package/lib/typescript/commonjs/segmented-control/SegmentedControl.d.ts.map +1 -1
- package/lib/typescript/commonjs/settings-modal/SettingsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/settings-modal/SettingsRows.d.ts +1 -1
- package/lib/typescript/commonjs/settings-modal/SettingsRows.d.ts.map +1 -1
- package/lib/typescript/commonjs/settings-modal/index.d.ts +1 -1
- package/lib/typescript/commonjs/settings-modal/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/settings-modal/types.d.ts +12 -1
- package/lib/typescript/commonjs/settings-modal/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarTeamMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarToolbar.d.ts +4 -0
- package/lib/typescript/commonjs/sidebar/SidebarToolbar.d.ts.map +1 -0
- package/lib/typescript/commonjs/sidebar/index.d.ts +2 -1
- package/lib/typescript/commonjs/sidebar/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/parts.d.ts +2 -1
- package/lib/typescript/commonjs/sidebar/parts.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts +47 -5
- package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/social-button/SocialButtonBase.d.ts +7 -0
- package/lib/typescript/commonjs/social-button/SocialButtonBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/textarea/Textarea.d.ts +1 -1
- package/lib/typescript/commonjs/textarea/Textarea.d.ts.map +1 -1
- package/lib/typescript/commonjs/textarea/types.d.ts +6 -1
- package/lib/typescript/commonjs/textarea/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/seed-scope.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/AgentAvatar.d.ts +4 -0
- package/lib/typescript/module/agent-avatar/AgentAvatar.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/AgentFace.d.ts +7 -0
- package/lib/typescript/module/agent-avatar/AgentFace.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/SvgDrawing.d.ts +14 -0
- package/lib/typescript/module/agent-avatar/SvgDrawing.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/artwork.d.ts +7 -0
- package/lib/typescript/module/agent-avatar/artwork.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/attention.d.ts +24 -0
- package/lib/typescript/module/agent-avatar/attention.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/blink.d.ts +12 -0
- package/lib/typescript/module/agent-avatar/blink.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/context.d.ts +4 -0
- package/lib/typescript/module/agent-avatar/context.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/drawing.d.ts +102 -0
- package/lib/typescript/module/agent-avatar/drawing.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/entrance.d.ts +13 -0
- package/lib/typescript/module/agent-avatar/entrance.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/face.d.ts +38 -0
- package/lib/typescript/module/agent-avatar/face.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/fold-outlines.d.ts +13 -0
- package/lib/typescript/module/agent-avatar/fold-outlines.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/fold.d.ts +7 -0
- package/lib/typescript/module/agent-avatar/fold.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/grain.d.ts +3 -0
- package/lib/typescript/module/agent-avatar/grain.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/index.d.ts +5 -0
- package/lib/typescript/module/agent-avatar/index.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/messages.d.ts +4 -0
- package/lib/typescript/module/agent-avatar/messages.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/model.d.ts +63 -0
- package/lib/typescript/module/agent-avatar/model.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/shape-morph.d.ts +39 -0
- package/lib/typescript/module/agent-avatar/shape-morph.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/types.d.ts +21 -0
- package/lib/typescript/module/agent-avatar/types.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/wander.d.ts +14 -0
- package/lib/typescript/module/agent-avatar/wander.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/working.d.ts +8 -0
- package/lib/typescript/module/agent-avatar/working.d.ts.map +1 -0
- package/lib/typescript/module/agent-chat/AgentChatMessage.d.ts +5 -0
- package/lib/typescript/module/agent-chat/AgentChatMessage.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreator.d.ts +3 -0
- package/lib/typescript/module/agent-creator/AgentCreator.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/AgentCreator.web.d.ts +3 -0
- package/lib/typescript/module/agent-creator/AgentCreator.web.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts +4 -0
- package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/AgentPreferencesPanel.d.ts +4 -0
- package/lib/typescript/module/agent-creator/AgentPreferencesPanel.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts +7 -0
- package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/EmotionPicker.d.ts +7 -0
- package/lib/typescript/module/agent-creator/EmotionPicker.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/GlossArt.d.ts +9 -0
- package/lib/typescript/module/agent-creator/GlossArt.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/ScrollSurface.d.ts +11 -0
- package/lib/typescript/module/agent-creator/ScrollSurface.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/ShapeArc.d.ts +7 -0
- package/lib/typescript/module/agent-creator/ShapeArc.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/constants.d.ts +49 -0
- package/lib/typescript/module/agent-creator/constants.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/context.d.ts +64 -0
- package/lib/typescript/module/agent-creator/context.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/index.d.ts +5 -0
- package/lib/typescript/module/agent-creator/index.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/index.web.d.ts +5 -0
- package/lib/typescript/module/agent-creator/index.web.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/messages.d.ts +53 -0
- package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts +3 -0
- package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/shared.d.ts +18 -0
- package/lib/typescript/module/agent-creator/shared.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/types.d.ts +37 -0
- package/lib/typescript/module/agent-creator/types.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/use-agent-voices.d.ts +9 -0
- package/lib/typescript/module/agent-creator/use-agent-voices.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/use-track-events.d.ts +5 -0
- package/lib/typescript/module/agent-creator/use-track-events.d.ts.map +1 -0
- package/lib/typescript/module/button/CloseButton.d.ts +1 -1
- package/lib/typescript/module/button/CloseButton.d.ts.map +1 -1
- package/lib/typescript/module/button/shared.d.ts +1 -1
- package/lib/typescript/module/button/types.d.ts +2 -0
- package/lib/typescript/module/button/types.d.ts.map +1 -1
- package/lib/typescript/module/chip/Chip.d.ts.map +1 -1
- package/lib/typescript/module/chip/types.d.ts +3 -0
- package/lib/typescript/module/chip/types.d.ts.map +1 -1
- package/lib/typescript/module/design-tokens/component-roles.d.ts +89 -0
- package/lib/typescript/module/design-tokens/component-roles.d.ts.map +1 -0
- package/lib/typescript/module/design-tokens/tailwind-preset.d.ts +3 -27
- package/lib/typescript/module/design-tokens/tailwind-preset.d.ts.map +1 -1
- package/lib/typescript/module/design-tokens/theme-css.d.ts +0 -24
- package/lib/typescript/module/design-tokens/theme-css.d.ts.map +1 -1
- package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
- package/lib/typescript/module/dialog/types.d.ts +6 -0
- package/lib/typescript/module/dialog/types.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +4 -2
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +4 -2
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/types.d.ts +8 -0
- package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/AvatarFlightHost.d.ts +4 -0
- package/lib/typescript/module/multi-agent-chat/AvatarFlightHost.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/AvatarFlightHost.web.d.ts +3 -0
- package/lib/typescript/module/multi-agent-chat/AvatarFlightHost.web.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/AvatarHandoff.d.ts +10 -0
- package/lib/typescript/module/multi-agent-chat/AvatarHandoff.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/ChatDialogFrame.d.ts +15 -0
- package/lib/typescript/module/multi-agent-chat/ChatDialogFrame.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/ChatSidebar.d.ts +24 -0
- package/lib/typescript/module/multi-agent-chat/ChatSidebar.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/EditorRail.d.ts +7 -0
- package/lib/typescript/module/multi-agent-chat/EditorRail.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/Marketplace.d.ts +14 -0
- package/lib/typescript/module/multi-agent-chat/Marketplace.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/MarketplaceSettings.d.ts +7 -0
- package/lib/typescript/module/multi-agent-chat/MarketplaceSettings.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/MultiAgentChat.d.ts +3 -0
- package/lib/typescript/module/multi-agent-chat/MultiAgentChat.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/MultiAgentChat.web.d.ts +3 -0
- package/lib/typescript/module/multi-agent-chat/MultiAgentChat.web.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts +4 -0
- package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/ReplyRow.d.ts +18 -0
- package/lib/typescript/module/multi-agent-chat/ReplyRow.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/ScrollSurface.d.ts +13 -0
- package/lib/typescript/module/multi-agent-chat/ScrollSurface.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/SelectedAgentPreview.d.ts +9 -0
- package/lib/typescript/module/multi-agent-chat/SelectedAgentPreview.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/WorkspaceSettingsPages.d.ts +3 -0
- package/lib/typescript/module/multi-agent-chat/WorkspaceSettingsPages.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/context.d.ts +20 -0
- package/lib/typescript/module/multi-agent-chat/context.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/data.d.ts +39 -0
- package/lib/typescript/module/multi-agent-chat/data.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/handoff.d.ts +42 -0
- package/lib/typescript/module/multi-agent-chat/handoff.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/index.d.ts +4 -0
- package/lib/typescript/module/multi-agent-chat/index.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/index.web.d.ts +4 -0
- package/lib/typescript/module/multi-agent-chat/index.web.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/marketplace-data.d.ts +26 -0
- package/lib/typescript/module/multi-agent-chat/marketplace-data.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/marketplace-logos.d.ts +30 -0
- package/lib/typescript/module/multi-agent-chat/marketplace-logos.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/messages.d.ts +175 -0
- package/lib/typescript/module/multi-agent-chat/messages.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/model-catalog.d.ts +3 -0
- package/lib/typescript/module/multi-agent-chat/model-catalog.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/stream-reply.d.ts +5 -0
- package/lib/typescript/module/multi-agent-chat/stream-reply.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/types.d.ts +21 -0
- package/lib/typescript/module/multi-agent-chat/types.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/use-replies.d.ts +14 -0
- package/lib/typescript/module/multi-agent-chat/use-replies.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/use-workspace.d.ts +9 -0
- package/lib/typescript/module/multi-agent-chat/use-workspace.d.ts.map +1 -0
- package/lib/typescript/module/project-board/BoardTooltip.d.ts +7 -0
- package/lib/typescript/module/project-board/BoardTooltip.d.ts.map +1 -0
- package/lib/typescript/module/project-board/CreateTicketDialog.d.ts +12 -0
- package/lib/typescript/module/project-board/CreateTicketDialog.d.ts.map +1 -0
- package/lib/typescript/module/project-board/ProjectBoard.d.ts +3 -0
- package/lib/typescript/module/project-board/ProjectBoard.d.ts.map +1 -0
- package/lib/typescript/module/project-board/ProjectBoard.web.d.ts +3 -0
- package/lib/typescript/module/project-board/ProjectBoard.web.d.ts.map +1 -0
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts +3 -0
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -0
- package/lib/typescript/module/project-board/ProjectBoardControls.d.ts +32 -0
- package/lib/typescript/module/project-board/ProjectBoardControls.d.ts.map +1 -0
- package/lib/typescript/module/project-board/ProjectBoardEmptyState.d.ts +3 -0
- package/lib/typescript/module/project-board/ProjectBoardEmptyState.d.ts.map +1 -0
- package/lib/typescript/module/project-board/ProjectBoardIcons.d.ts +15 -0
- package/lib/typescript/module/project-board/ProjectBoardIcons.d.ts.map +1 -0
- package/lib/typescript/module/project-board/RiInboxArchiveLine.d.ts +7 -0
- package/lib/typescript/module/project-board/RiInboxArchiveLine.d.ts.map +1 -0
- package/lib/typescript/module/project-board/RiMoreLine.d.ts +7 -0
- package/lib/typescript/module/project-board/RiMoreLine.d.ts.map +1 -0
- package/lib/typescript/module/project-board/RiPieChart2Line.d.ts +7 -0
- package/lib/typescript/module/project-board/RiPieChart2Line.d.ts.map +1 -0
- package/lib/typescript/module/project-board/RiRestartLine.d.ts +7 -0
- package/lib/typescript/module/project-board/RiRestartLine.d.ts.map +1 -0
- package/lib/typescript/module/project-board/SourcePrimitives.d.ts +177 -0
- package/lib/typescript/module/project-board/SourcePrimitives.d.ts.map +1 -0
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts +7 -0
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -0
- package/lib/typescript/module/project-board/TicketDetailDialog.d.ts +16 -0
- package/lib/typescript/module/project-board/TicketDetailDialog.d.ts.map +1 -0
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts +9 -0
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts.map +1 -0
- package/lib/typescript/module/project-board/TicketGenieSurface.web.d.ts +6 -0
- package/lib/typescript/module/project-board/TicketGenieSurface.web.d.ts.map +1 -0
- package/lib/typescript/module/project-board/animation.web.d.ts +10 -0
- package/lib/typescript/module/project-board/animation.web.d.ts.map +1 -0
- package/lib/typescript/module/project-board/constants.d.ts +7 -0
- package/lib/typescript/module/project-board/constants.d.ts.map +1 -0
- package/lib/typescript/module/project-board/context.d.ts +39 -0
- package/lib/typescript/module/project-board/context.d.ts.map +1 -0
- package/lib/typescript/module/project-board/index.d.ts +3 -0
- package/lib/typescript/module/project-board/index.d.ts.map +1 -0
- package/lib/typescript/module/project-board/index.web.d.ts +3 -0
- package/lib/typescript/module/project-board/index.web.d.ts.map +1 -0
- package/lib/typescript/module/project-board/messages.d.ts +73 -0
- package/lib/typescript/module/project-board/messages.d.ts.map +1 -0
- package/lib/typescript/module/project-board/shared.d.ts +18 -0
- package/lib/typescript/module/project-board/shared.d.ts.map +1 -0
- package/lib/typescript/module/project-board/types.d.ts +78 -0
- package/lib/typescript/module/project-board/types.d.ts.map +1 -0
- package/lib/typescript/module/segmented-control/SegmentedControl.d.ts +4 -2
- package/lib/typescript/module/segmented-control/SegmentedControl.d.ts.map +1 -1
- package/lib/typescript/module/settings-modal/SettingsModal.d.ts.map +1 -1
- package/lib/typescript/module/settings-modal/SettingsRows.d.ts +1 -1
- package/lib/typescript/module/settings-modal/SettingsRows.d.ts.map +1 -1
- package/lib/typescript/module/settings-modal/index.d.ts +1 -1
- package/lib/typescript/module/settings-modal/index.d.ts.map +1 -1
- package/lib/typescript/module/settings-modal/types.d.ts +12 -1
- package/lib/typescript/module/settings-modal/types.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarItem.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarTeamMenu.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarToolbar.d.ts +4 -0
- package/lib/typescript/module/sidebar/SidebarToolbar.d.ts.map +1 -0
- package/lib/typescript/module/sidebar/index.d.ts +2 -1
- package/lib/typescript/module/sidebar/index.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/parts.d.ts +2 -1
- package/lib/typescript/module/sidebar/parts.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/types.d.ts +47 -5
- package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/module/social-button/SocialButtonBase.d.ts +7 -0
- package/lib/typescript/module/social-button/SocialButtonBase.d.ts.map +1 -1
- package/lib/typescript/module/textarea/Textarea.d.ts +1 -1
- package/lib/typescript/module/textarea/Textarea.d.ts.map +1 -1
- package/lib/typescript/module/textarea/types.d.ts +6 -1
- package/lib/typescript/module/textarea/types.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/seed-scope.d.ts.map +1 -1
- package/package.json +84 -18
- package/src/agent-avatar/AgentAvatar.tsx +299 -0
- package/src/agent-avatar/AgentFace.tsx +20 -0
- package/src/agent-avatar/SvgDrawing.tsx +237 -0
- package/src/agent-avatar/artwork.ts +195 -0
- package/src/agent-avatar/attention.ts +109 -0
- package/src/agent-avatar/blink.ts +47 -0
- package/src/agent-avatar/context.ts +7 -0
- package/src/agent-avatar/drawing.ts +276 -0
- package/src/agent-avatar/entrance.ts +25 -0
- package/src/agent-avatar/face.ts +540 -0
- package/src/agent-avatar/fold-outlines.ts +90 -0
- package/src/agent-avatar/fold.ts +444 -0
- package/src/agent-avatar/grain.ts +3 -0
- package/src/agent-avatar/index.ts +27 -0
- package/src/agent-avatar/messages.ts +5 -0
- package/src/agent-avatar/model.ts +576 -0
- package/src/agent-avatar/shape-morph.ts +210 -0
- package/src/agent-avatar/types.ts +21 -0
- package/src/agent-avatar/wander.ts +97 -0
- package/src/agent-avatar/working.ts +20 -0
- package/src/agent-chat/AgentChatMessage.tsx +7 -0
- package/src/agent-creator/AgentCreator.tsx +32 -0
- package/src/agent-creator/AgentCreator.web.tsx +32 -0
- package/src/agent-creator/AgentCreatorBase.tsx +287 -0
- package/src/agent-creator/AgentPreferencesPanel.tsx +268 -0
- package/src/agent-creator/CustomColorPicker.tsx +382 -0
- package/src/agent-creator/EmotionPicker.tsx +201 -0
- package/src/agent-creator/GlossArt.tsx +165 -0
- package/src/agent-creator/ScrollSurface.tsx +144 -0
- package/src/agent-creator/ShapeArc.tsx +266 -0
- package/src/agent-creator/constants.ts +57 -0
- package/src/agent-creator/context.ts +38 -0
- package/src/agent-creator/index.ts +14 -0
- package/src/agent-creator/index.web.ts +19 -0
- package/src/agent-creator/messages.ts +198 -0
- package/src/agent-creator/rainbow-artwork.ts +5 -0
- package/src/agent-creator/shared.ts +102 -0
- package/src/agent-creator/types.ts +34 -0
- package/src/agent-creator/use-agent-voices.ts +72 -0
- package/src/agent-creator/use-track-events.ts +42 -0
- package/src/button/CloseButton.tsx +6 -3
- package/src/button/types.ts +2 -0
- package/src/chip/Chip.tsx +17 -10
- package/src/chip/types.ts +3 -0
- package/src/design-tokens/component-roles.ts +93 -0
- package/src/design-tokens/tailwind-preset.ts +12 -8
- package/src/design-tokens/theme-css.ts +18 -0
- package/src/design-tokens/theme.css +284 -0
- package/src/dialog/Dialog.tsx +25 -14
- package/src/dialog/Dialog.web.tsx +23 -16
- package/src/dialog/DialogHeader.tsx +1 -1
- package/src/dialog/types.ts +6 -0
- package/src/hooks/use-accessible-name-warning.ts +2 -2
- package/src/index.ts +5 -2
- package/src/index.web.ts +5 -2
- package/src/locale/translations/ar.ts +297 -0
- package/src/locale/translations/bn.ts +297 -0
- package/src/locale/translations/ca.ts +297 -0
- package/src/locale/translations/de.ts +297 -0
- package/src/locale/translations/es.ts +297 -0
- package/src/locale/translations/fr.ts +297 -0
- package/src/locale/translations/hi.ts +297 -0
- package/src/locale/translations/id.ts +297 -0
- package/src/locale/translations/it.ts +297 -0
- package/src/locale/translations/ja.ts +297 -0
- package/src/locale/translations/pt.ts +297 -0
- package/src/locale/translations/ru.ts +297 -0
- package/src/locale/translations/tr.ts +297 -0
- package/src/locale/translations/types.ts +8 -0
- package/src/locale/translations/zh.ts +297 -0
- package/src/multi-agent-chat/AvatarFlightHost.tsx +5 -0
- package/src/multi-agent-chat/AvatarFlightHost.web.tsx +5 -0
- package/src/multi-agent-chat/AvatarHandoff.tsx +262 -0
- package/src/multi-agent-chat/ChatDialogFrame.tsx +186 -0
- package/src/multi-agent-chat/ChatSidebar.tsx +384 -0
- package/src/multi-agent-chat/EditorRail.tsx +68 -0
- package/src/multi-agent-chat/Marketplace.tsx +649 -0
- package/src/multi-agent-chat/MarketplaceSettings.tsx +110 -0
- package/src/multi-agent-chat/MultiAgentChat.tsx +30 -0
- package/src/multi-agent-chat/MultiAgentChat.web.tsx +30 -0
- package/src/multi-agent-chat/MultiAgentChatBase.tsx +1202 -0
- package/src/multi-agent-chat/ReplyRow.tsx +188 -0
- package/src/multi-agent-chat/ScrollSurface.tsx +122 -0
- package/src/multi-agent-chat/SelectedAgentPreview.tsx +143 -0
- package/src/multi-agent-chat/WorkspaceSettingsPages.tsx +515 -0
- package/src/multi-agent-chat/context.ts +23 -0
- package/src/multi-agent-chat/data.ts +629 -0
- package/src/multi-agent-chat/handoff.ts +150 -0
- package/src/multi-agent-chat/index.ts +8 -0
- package/src/multi-agent-chat/index.web.ts +13 -0
- package/src/multi-agent-chat/marketplace-data.ts +359 -0
- package/src/multi-agent-chat/marketplace-logos.ts +29 -0
- package/src/multi-agent-chat/messages.ts +215 -0
- package/src/multi-agent-chat/model-catalog.tsx +461 -0
- package/src/multi-agent-chat/stream-reply.ts +39 -0
- package/src/multi-agent-chat/types.ts +27 -0
- package/src/multi-agent-chat/use-replies.ts +166 -0
- package/src/multi-agent-chat/use-workspace.ts +59 -0
- package/src/project-board/BoardTooltip.tsx +41 -0
- package/src/project-board/CreateTicketDialog.tsx +373 -0
- package/src/project-board/ProjectBoard.tsx +34 -0
- package/src/project-board/ProjectBoard.web.tsx +32 -0
- package/src/project-board/ProjectBoardBase.tsx +1022 -0
- package/src/project-board/ProjectBoardControls.tsx +254 -0
- package/src/project-board/ProjectBoardEmptyState.tsx +179 -0
- package/src/project-board/ProjectBoardIcons.tsx +93 -0
- package/src/project-board/RiInboxArchiveLine.tsx +4 -0
- package/src/project-board/RiMoreLine.tsx +4 -0
- package/src/project-board/RiPieChart2Line.tsx +4 -0
- package/src/project-board/RiRestartLine.tsx +4 -0
- package/src/project-board/SourcePrimitives.tsx +155 -0
- package/src/project-board/TicketCornerGenieSurface.web.tsx +401 -0
- package/src/project-board/TicketDetailDialog.tsx +730 -0
- package/src/project-board/TicketGenieSurface.tsx +73 -0
- package/src/project-board/TicketGenieSurface.web.tsx +190 -0
- package/src/project-board/animation.web.ts +22 -0
- package/src/project-board/constants.ts +20 -0
- package/src/project-board/context.ts +46 -0
- package/src/project-board/index.ts +12 -0
- package/src/project-board/index.web.ts +17 -0
- package/src/project-board/messages.ts +74 -0
- package/src/project-board/shared.ts +104 -0
- package/src/project-board/types.ts +78 -0
- package/src/segmented-control/SegmentedControl.tsx +12 -8
- package/src/settings-modal/SettingsModal.tsx +9 -6
- package/src/settings-modal/SettingsRows.tsx +4 -3
- package/src/settings-modal/index.ts +1 -0
- package/src/settings-modal/types.ts +13 -1
- package/src/sidebar/Sidebar.tsx +19 -9
- package/src/sidebar/SidebarItem.tsx +36 -11
- package/src/sidebar/SidebarTeamMenu.tsx +1 -0
- package/src/sidebar/SidebarToolbar.tsx +180 -0
- package/src/sidebar/index.ts +2 -0
- package/src/sidebar/parts.tsx +4 -2
- package/src/sidebar/types.ts +46 -5
- package/src/social-button/SocialButtonBase.tsx +1 -1
- package/src/textarea/Textarea.tsx +21 -9
- package/src/textarea/types.ts +6 -1
- package/src/theme/color-scope/seed-scope.ts +2 -0
- package/docs/dot-grid-meter.mdx +0 -66
- package/lib/commonjs/dot-grid-meter/DotGridMeter.js +0 -80
- package/lib/commonjs/dot-grid-meter/DotGridMeter.js.map +0 -1
- package/lib/commonjs/dot-grid-meter/index.js +0 -13
- package/lib/commonjs/dot-grid-meter/index.js.map +0 -1
- package/lib/module/dot-grid-meter/DotGridMeter.js +0 -75
- package/lib/module/dot-grid-meter/DotGridMeter.js.map +0 -1
- package/lib/module/dot-grid-meter/index.js +0 -4
- package/lib/module/dot-grid-meter/index.js.map +0 -1
- package/lib/typescript/commonjs/dot-grid-meter/DotGridMeter.d.ts +0 -4
- package/lib/typescript/commonjs/dot-grid-meter/DotGridMeter.d.ts.map +0 -1
- package/lib/typescript/commonjs/dot-grid-meter/index.d.ts +0 -3
- package/lib/typescript/commonjs/dot-grid-meter/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/dot-grid-meter/types.d.ts +0 -48
- package/lib/typescript/commonjs/dot-grid-meter/types.d.ts.map +0 -1
- package/lib/typescript/module/dot-grid-meter/DotGridMeter.d.ts +0 -4
- package/lib/typescript/module/dot-grid-meter/DotGridMeter.d.ts.map +0 -1
- package/lib/typescript/module/dot-grid-meter/index.d.ts +0 -3
- package/lib/typescript/module/dot-grid-meter/index.d.ts.map +0 -1
- package/lib/typescript/module/dot-grid-meter/types.d.ts +0 -48
- package/lib/typescript/module/dot-grid-meter/types.d.ts.map +0 -1
- package/src/dot-grid-meter/DotGridMeter.tsx +0 -84
- package/src/dot-grid-meter/index.ts +0 -2
- package/src/dot-grid-meter/types.ts +0 -48
- /package/lib/commonjs/{dot-grid-meter → agent-avatar}/types.js +0 -0
- /package/lib/module/{dot-grid-meter → agent-avatar}/types.js +0 -0
|
@@ -0,0 +1,1202 @@
|
|
|
1
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import type { View } from 'react-native';
|
|
3
|
+
import { Platform, ScrollView, Share, useWindowDimensions } from 'react-native';
|
|
4
|
+
import Animated, { useReducedMotion } from 'react-native-reanimated';
|
|
5
|
+
import { AgentAvatar } from '../agent-avatar';
|
|
6
|
+
import { StreamedText } from '../agent-chat/AgentChatMessage';
|
|
7
|
+
import { Button, IconButton } from '../button';
|
|
8
|
+
import { useDialogControl } from '../dialog/context';
|
|
9
|
+
import { useDirectionProps } from '../hooks/use-is-rtl';
|
|
10
|
+
import { RiCheckLine } from '../icons/remix/RiCheckLine';
|
|
11
|
+
import { RiFileCopyLine } from '../icons/remix/RiFileCopyLine';
|
|
12
|
+
import { RiGroupLine } from '../icons/remix/RiGroupLine';
|
|
13
|
+
import { RiMenuLine } from '../icons/remix/RiMenuLine';
|
|
14
|
+
import { RiMoreFill } from '../icons/remix/RiMoreFill';
|
|
15
|
+
import { RiShare2Line } from '../icons/remix/RiShare2Line';
|
|
16
|
+
import { RiThumbDownLine } from '../icons/remix/RiThumbDownLine';
|
|
17
|
+
import { RiThumbUpLine } from '../icons/remix/RiThumbUpLine';
|
|
18
|
+
import { useMessages } from '../locale/messages';
|
|
19
|
+
import { OverlayRoot, TOAST_LAYER_Z } from '../overlay';
|
|
20
|
+
import { StyledPressable, StyledView } from '../styles/styled-primitives';
|
|
21
|
+
import { TextFieldInput } from '../text-field';
|
|
22
|
+
import { useTheme } from '../theme/use-theme';
|
|
23
|
+
import { Text } from '../typography';
|
|
24
|
+
import { AvatarHandoff } from './AvatarHandoff';
|
|
25
|
+
import { ChatDialogFrame, SupportCopy } from './ChatDialogFrame';
|
|
26
|
+
import { ChatSidebar } from './ChatSidebar';
|
|
27
|
+
import { useChatComponents } from './context';
|
|
28
|
+
import {
|
|
29
|
+
conversationFor,
|
|
30
|
+
formatDemoReply,
|
|
31
|
+
nextAgentIdentity,
|
|
32
|
+
removeConversation,
|
|
33
|
+
updateConversationAgents,
|
|
34
|
+
type Agent,
|
|
35
|
+
type Conversation,
|
|
36
|
+
} from './data';
|
|
37
|
+
import { EditorRail } from './EditorRail';
|
|
38
|
+
import {
|
|
39
|
+
captureAvatars,
|
|
40
|
+
measureAvatar,
|
|
41
|
+
type AvatarHandoffState,
|
|
42
|
+
type AvatarNodes,
|
|
43
|
+
type AvatarRect,
|
|
44
|
+
} from './handoff';
|
|
45
|
+
import { Marketplace } from './Marketplace';
|
|
46
|
+
import {
|
|
47
|
+
DEFAULT_PLUGINS,
|
|
48
|
+
MARKETPLACE_ITEMS,
|
|
49
|
+
addMarketplaceBot,
|
|
50
|
+
type MarketplaceItem,
|
|
51
|
+
} from './marketplace-data';
|
|
52
|
+
import { MULTI_AGENT_CHAT_MESSAGES, formatChatMessage } from './messages';
|
|
53
|
+
import { WORKSPACE_MODELS } from './model-catalog';
|
|
54
|
+
import { ReplyHeader, ReplyRow } from './ReplyRow';
|
|
55
|
+
import { ScrollSurface } from './ScrollSurface';
|
|
56
|
+
import { SelectedAgentPreview } from './SelectedAgentPreview';
|
|
57
|
+
import type { MultiAgentChatProps } from './types';
|
|
58
|
+
import { chatId, useReplies } from './use-replies';
|
|
59
|
+
import { useWorkspace } from './use-workspace';
|
|
60
|
+
|
|
61
|
+
const AnimatedView = Animated.createAnimatedComponent(StyledView);
|
|
62
|
+
type Panel =
|
|
63
|
+
| 'picker'
|
|
64
|
+
| 'rename'
|
|
65
|
+
| 'options'
|
|
66
|
+
| 'marketplace'
|
|
67
|
+
| 'settings'
|
|
68
|
+
| 'editor'
|
|
69
|
+
| 'navigation'
|
|
70
|
+
| 'support'
|
|
71
|
+
| null;
|
|
72
|
+
|
|
73
|
+
function AgentStack({
|
|
74
|
+
agents,
|
|
75
|
+
size = 40,
|
|
76
|
+
nodes,
|
|
77
|
+
}: {
|
|
78
|
+
agents: Agent[];
|
|
79
|
+
size?: number;
|
|
80
|
+
nodes?: AvatarNodes;
|
|
81
|
+
}) {
|
|
82
|
+
return (
|
|
83
|
+
<StyledView
|
|
84
|
+
style={{ width: size, height: size }}
|
|
85
|
+
accessibilityLabel={agents.map((a) => a.name).join(', ')}
|
|
86
|
+
>
|
|
87
|
+
{agents.slice(0, 3).map((agent, i) => (
|
|
88
|
+
<StyledView
|
|
89
|
+
key={agent.id}
|
|
90
|
+
ref={(node: View | null) => {
|
|
91
|
+
if (nodes) {
|
|
92
|
+
if (node) nodes.set(agent.id, node);
|
|
93
|
+
else nodes.delete(agent.id);
|
|
94
|
+
}
|
|
95
|
+
}}
|
|
96
|
+
collapsable={false}
|
|
97
|
+
style={{
|
|
98
|
+
width: agents.length === 1 ? size : size * 0.65,
|
|
99
|
+
height: agents.length === 1 ? size : size * 0.65,
|
|
100
|
+
position: 'absolute',
|
|
101
|
+
left:
|
|
102
|
+
agents.length === 1
|
|
103
|
+
? 0
|
|
104
|
+
: i === 1
|
|
105
|
+
? size * 0.4
|
|
106
|
+
: i === 2
|
|
107
|
+
? size * 0.2
|
|
108
|
+
: 0,
|
|
109
|
+
top: i === 2 ? size * 0.4 : 0,
|
|
110
|
+
}}
|
|
111
|
+
>
|
|
112
|
+
<AgentAvatar
|
|
113
|
+
config={agent.avatar}
|
|
114
|
+
size={agents.length === 1 ? size : size * 0.65}
|
|
115
|
+
label={agent.name}
|
|
116
|
+
/>
|
|
117
|
+
</StyledView>
|
|
118
|
+
))}
|
|
119
|
+
</StyledView>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
/** Shared workspace implementation. Platform bindings select Bloom's existing surfaces only. */
|
|
123
|
+
export function MultiAgentChatBase(props: MultiAgentChatProps) {
|
|
124
|
+
const { messages } = useMessages(MULTI_AGENT_CHAT_MESSAGES);
|
|
125
|
+
const {
|
|
126
|
+
defaultEditorId = 'security',
|
|
127
|
+
onCopy,
|
|
128
|
+
voices,
|
|
129
|
+
onPreviewVoice,
|
|
130
|
+
className,
|
|
131
|
+
style,
|
|
132
|
+
testID = 'multi-agent-chat',
|
|
133
|
+
} = props;
|
|
134
|
+
const {
|
|
135
|
+
Portal,
|
|
136
|
+
Dialog,
|
|
137
|
+
ComposerPanel,
|
|
138
|
+
AgentCreator,
|
|
139
|
+
Surface,
|
|
140
|
+
Dropdown: D,
|
|
141
|
+
} = useChatComponents();
|
|
142
|
+
const { colors } = useTheme();
|
|
143
|
+
const directionProps = useDirectionProps();
|
|
144
|
+
const reduced = useReducedMotion();
|
|
145
|
+
const root = useRef<View>(null),
|
|
146
|
+
pickerAvatars = useRef<AvatarNodes>(new Map()),
|
|
147
|
+
emptyAvatars = useRef<AvatarNodes>(new Map()),
|
|
148
|
+
badgeRef = useRef<View>(null),
|
|
149
|
+
replyAvatars = useRef<AvatarNodes>(new Map());
|
|
150
|
+
const [handoff, setHandoff] = useState<AvatarHandoffState | null>(null),
|
|
151
|
+
[flightOrigin, setFlightOrigin] = useState<AvatarRect | null>(null);
|
|
152
|
+
const handoffGeneration = useRef(0),
|
|
153
|
+
sending = useRef(false),
|
|
154
|
+
starting = useRef(false);
|
|
155
|
+
const finishHandoff = useCallback(() => setHandoff(null), []);
|
|
156
|
+
const arriveAvatar = useCallback(
|
|
157
|
+
(id: string) =>
|
|
158
|
+
setHandoff((current) => {
|
|
159
|
+
if (!current || current.arrived.includes(id)) return current;
|
|
160
|
+
const arrived = [...current.arrived, id];
|
|
161
|
+
return arrived.length === current.avatars.length
|
|
162
|
+
? null
|
|
163
|
+
: { ...current, arrived };
|
|
164
|
+
}),
|
|
165
|
+
[],
|
|
166
|
+
);
|
|
167
|
+
const resolveFlightTarget = useCallback(
|
|
168
|
+
(id: string) =>
|
|
169
|
+
handoff?.kind === 'group'
|
|
170
|
+
? emptyAvatars.current.get(id)
|
|
171
|
+
: id === handoff?.responderId
|
|
172
|
+
? replyAvatars.current.get(id)
|
|
173
|
+
: (badgeRef.current ?? undefined),
|
|
174
|
+
[handoff?.kind, handoff?.responderId],
|
|
175
|
+
);
|
|
176
|
+
const { width } = useWindowDimensions();
|
|
177
|
+
const compact = width < 1100;
|
|
178
|
+
const phone = width < 768;
|
|
179
|
+
const { workspace, current, update, loaded } = useWorkspace(props);
|
|
180
|
+
const replies = useReplies(current, update, props.onRespond);
|
|
181
|
+
const [drafts, setDrafts] = useState<Record<string, string>>({});
|
|
182
|
+
const [editor, setEditor] = useState<Agent | null>(
|
|
183
|
+
() => workspace.agents.find((a) => a.id === defaultEditorId) ?? null,
|
|
184
|
+
);
|
|
185
|
+
const [panel, setPanel] = useState<Panel>(null);
|
|
186
|
+
const [selected, setSelected] = useState<string[]>([]);
|
|
187
|
+
const [editingChatId, setEditingChatId] = useState<string | null>(null);
|
|
188
|
+
const [targetChatId, setTargetChatId] = useState<string | null>(null);
|
|
189
|
+
const [rename, setRename] = useState('');
|
|
190
|
+
const [query, setQuery] = useState('');
|
|
191
|
+
const [searchOpen, setSearchOpen] = useState(false);
|
|
192
|
+
const [marketItem, setMarketItem] = useState<MarketplaceItem | null>(null);
|
|
193
|
+
const [feedback, setFeedback] = useState<Record<string, 'up' | 'down'>>({});
|
|
194
|
+
const surface = useDialogControl();
|
|
195
|
+
const scroll = useRef<ScrollView>(null);
|
|
196
|
+
const follow = useRef(true);
|
|
197
|
+
const offsets = useRef<Record<string, number>>({});
|
|
198
|
+
const chat: Conversation = workspace.chats.find(
|
|
199
|
+
(c) => c.id === workspace.activeId,
|
|
200
|
+
) ??
|
|
201
|
+
workspace.chats[0] ?? {
|
|
202
|
+
id: 'draft-chat',
|
|
203
|
+
title: '',
|
|
204
|
+
agentIds: workspace.agents[0] ? [workspace.agents[0].id] : [],
|
|
205
|
+
messages: [],
|
|
206
|
+
};
|
|
207
|
+
const participants =
|
|
208
|
+
chat?.agentIds.flatMap(
|
|
209
|
+
(id) => workspace.agents.find((a) => a.id === id) ?? [],
|
|
210
|
+
) ?? [];
|
|
211
|
+
const targetChat = workspace.chats.find((c) => c.id === targetChatId) ?? chat;
|
|
212
|
+
const open = useCallback(
|
|
213
|
+
(next: Panel) => {
|
|
214
|
+
setPanel(next);
|
|
215
|
+
surface.open();
|
|
216
|
+
},
|
|
217
|
+
[surface],
|
|
218
|
+
);
|
|
219
|
+
const restoredEditor = useRef(false);
|
|
220
|
+
useEffect(() => {
|
|
221
|
+
if (!loaded || restoredEditor.current) return;
|
|
222
|
+
restoredEditor.current = true;
|
|
223
|
+
setEditor(
|
|
224
|
+
current.current.agents.find((agent) => agent.id === defaultEditorId) ??
|
|
225
|
+
null,
|
|
226
|
+
);
|
|
227
|
+
}, [loaded, current, defaultEditorId]);
|
|
228
|
+
useEffect(() => {
|
|
229
|
+
if (Platform.OS !== 'web' || typeof window === 'undefined') return;
|
|
230
|
+
const id = new URL(window.location.href).searchParams.get('marketplace');
|
|
231
|
+
const item = MARKETPLACE_ITEMS.find((entry) => entry.id === id);
|
|
232
|
+
if (item) {
|
|
233
|
+
setMarketItem(item);
|
|
234
|
+
setPanel('marketplace');
|
|
235
|
+
}
|
|
236
|
+
}, []);
|
|
237
|
+
const initialEditorOpened = useRef(false);
|
|
238
|
+
useEffect(() => {
|
|
239
|
+
if (!initialEditorOpened.current && defaultEditorId && compact && editor) {
|
|
240
|
+
initialEditorOpened.current = true;
|
|
241
|
+
open('editor');
|
|
242
|
+
}
|
|
243
|
+
}, [defaultEditorId, compact, editor, open]);
|
|
244
|
+
const close = () => surface.close();
|
|
245
|
+
const edit = (agent: Agent) => {
|
|
246
|
+
if (!compact) close();
|
|
247
|
+
setEditor({ ...agent, avatar: { ...agent.avatar } });
|
|
248
|
+
if (compact) open('editor');
|
|
249
|
+
};
|
|
250
|
+
const saveAgent = (agent: Agent) => {
|
|
251
|
+
setEditor(agent);
|
|
252
|
+
update((s) => {
|
|
253
|
+
const previous = s.agents.find((a) => a.id === agent.id);
|
|
254
|
+
return {
|
|
255
|
+
...s,
|
|
256
|
+
agents: previous
|
|
257
|
+
? s.agents.map((a) => (a.id === agent.id ? agent : a))
|
|
258
|
+
: [...s.agents, agent],
|
|
259
|
+
chats: s.chats.map((c) =>
|
|
260
|
+
c.agentIds.length === 1 &&
|
|
261
|
+
c.agentIds[0] === agent.id &&
|
|
262
|
+
(c.title === previous?.name || c.title === previous?.label)
|
|
263
|
+
? { ...c, title: agent.name }
|
|
264
|
+
: c,
|
|
265
|
+
),
|
|
266
|
+
};
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
const createAgent = () => {
|
|
270
|
+
const agent = {
|
|
271
|
+
id: chatId('agent'),
|
|
272
|
+
...nextAgentIdentity(workspace.agents),
|
|
273
|
+
label: '',
|
|
274
|
+
description: '',
|
|
275
|
+
};
|
|
276
|
+
const created = conversationFor([agent], [agent.id], chatId('chat'));
|
|
277
|
+
update((s) => ({
|
|
278
|
+
...s,
|
|
279
|
+
agents: [...s.agents, agent],
|
|
280
|
+
chats: [created, ...s.chats],
|
|
281
|
+
activeId: created.id,
|
|
282
|
+
}));
|
|
283
|
+
edit(agent);
|
|
284
|
+
};
|
|
285
|
+
const chooseAgents = (
|
|
286
|
+
ids: string[] = [],
|
|
287
|
+
existingId: string | null = null,
|
|
288
|
+
) => {
|
|
289
|
+
handoffGeneration.current++;
|
|
290
|
+
setHandoff(null);
|
|
291
|
+
setSelected(ids);
|
|
292
|
+
setEditingChatId(existingId);
|
|
293
|
+
open('picker');
|
|
294
|
+
};
|
|
295
|
+
const startChat = async () => {
|
|
296
|
+
if (starting.current) return;
|
|
297
|
+
const ids = [...new Set(selected)].filter((id) =>
|
|
298
|
+
workspace.agents.some((a) => a.id === id),
|
|
299
|
+
);
|
|
300
|
+
if (!ids.length) return;
|
|
301
|
+
if (editingChatId) {
|
|
302
|
+
replies.stop(editingChatId);
|
|
303
|
+
update((s) => updateConversationAgents(s, editingChatId, ids));
|
|
304
|
+
close();
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
const id = chatId('chat');
|
|
308
|
+
const next = conversationFor(workspace.agents, ids, id);
|
|
309
|
+
const existing =
|
|
310
|
+
ids.length === 1
|
|
311
|
+
? workspace.chats.find(
|
|
312
|
+
(c) => c.agentIds.length === 1 && c.agentIds[0] === ids[0],
|
|
313
|
+
)
|
|
314
|
+
: undefined;
|
|
315
|
+
if (existing) {
|
|
316
|
+
selectChat(existing.id);
|
|
317
|
+
close();
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
starting.current = true;
|
|
321
|
+
const generation = ++handoffGeneration.current;
|
|
322
|
+
const selectedAgents = ids.flatMap(
|
|
323
|
+
(id) => workspace.agents.find((a) => a.id === id) ?? [],
|
|
324
|
+
);
|
|
325
|
+
const [avatars, origin] = await Promise.all([
|
|
326
|
+
ids.length > 1 && !reduced
|
|
327
|
+
? captureAvatars(selectedAgents, pickerAvatars.current)
|
|
328
|
+
: Promise.resolve([]),
|
|
329
|
+
measureAvatar(root.current ?? undefined),
|
|
330
|
+
]);
|
|
331
|
+
starting.current = false;
|
|
332
|
+
if (generation !== handoffGeneration.current) return;
|
|
333
|
+
setFlightOrigin(origin);
|
|
334
|
+
setHandoff(
|
|
335
|
+
avatars.length
|
|
336
|
+
? { chatId: id, kind: 'group', avatars, arrived: [] }
|
|
337
|
+
: null,
|
|
338
|
+
);
|
|
339
|
+
setEditor(null);
|
|
340
|
+
update((s) => ({ ...s, chats: [next, ...s.chats], activeId: id }));
|
|
341
|
+
follow.current = true;
|
|
342
|
+
close();
|
|
343
|
+
};
|
|
344
|
+
const copy = async (text: string, message = messages.copied) => {
|
|
345
|
+
try {
|
|
346
|
+
if (onCopy) await onCopy(text);
|
|
347
|
+
else if (
|
|
348
|
+
Platform.OS === 'web' &&
|
|
349
|
+
typeof navigator !== 'undefined' &&
|
|
350
|
+
navigator.clipboard
|
|
351
|
+
)
|
|
352
|
+
await navigator.clipboard.writeText(text);
|
|
353
|
+
else await Share.share({ message: text });
|
|
354
|
+
replies.setNotice(message);
|
|
355
|
+
} catch {
|
|
356
|
+
replies.setNotice(messages.couldnTCopyPleaseTryAgain);
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
const transcript = (conversation: Conversation) =>
|
|
360
|
+
conversation.messages
|
|
361
|
+
.map(
|
|
362
|
+
(m) =>
|
|
363
|
+
`${m.role === 'user' ? messages.you : (workspace.agents.find((a) => a.id === m.agentId)?.name ?? messages.agent)}: ${m.text}`,
|
|
364
|
+
)
|
|
365
|
+
.join('\n\n');
|
|
366
|
+
const selectChat = (id: string) => {
|
|
367
|
+
handoffGeneration.current++;
|
|
368
|
+
setHandoff(null);
|
|
369
|
+
update((s) => ({ ...s, activeId: id }));
|
|
370
|
+
follow.current = !offsets.current[id];
|
|
371
|
+
requestAnimationFrame(() =>
|
|
372
|
+
scroll.current?.scrollTo({
|
|
373
|
+
y: offsets.current[id] ?? 0,
|
|
374
|
+
animated: false,
|
|
375
|
+
}),
|
|
376
|
+
);
|
|
377
|
+
if (panel === 'navigation') close();
|
|
378
|
+
};
|
|
379
|
+
const removeChat = (id: string) => {
|
|
380
|
+
replies.stop(id);
|
|
381
|
+
update((s) => removeConversation(s, id));
|
|
382
|
+
setDrafts((s) => {
|
|
383
|
+
const next = { ...s };
|
|
384
|
+
delete next[id];
|
|
385
|
+
return next;
|
|
386
|
+
});
|
|
387
|
+
replies.setNotice(messages.chatRemoved);
|
|
388
|
+
};
|
|
389
|
+
const sendMessage = async (text: string) => {
|
|
390
|
+
if (!chat || !text.trim() || replies.pending[chat.id] || sending.current)
|
|
391
|
+
return;
|
|
392
|
+
sending.current = true;
|
|
393
|
+
const id = chat.id,
|
|
394
|
+
generation = ++handoffGeneration.current;
|
|
395
|
+
const [avatars, origin] = await Promise.all([
|
|
396
|
+
!chat.messages.length && participants.length > 1 && !reduced
|
|
397
|
+
? captureAvatars(participants, emptyAvatars.current)
|
|
398
|
+
: Promise.resolve([]),
|
|
399
|
+
measureAvatar(root.current ?? undefined),
|
|
400
|
+
]);
|
|
401
|
+
sending.current = false;
|
|
402
|
+
if (generation !== handoffGeneration.current) return;
|
|
403
|
+
setFlightOrigin(origin);
|
|
404
|
+
setHandoff(
|
|
405
|
+
avatars.length
|
|
406
|
+
? {
|
|
407
|
+
chatId: id,
|
|
408
|
+
kind: 'first',
|
|
409
|
+
responderId: participants[0]?.id,
|
|
410
|
+
avatars,
|
|
411
|
+
arrived: [],
|
|
412
|
+
}
|
|
413
|
+
: null,
|
|
414
|
+
);
|
|
415
|
+
setDrafts((s) => ({ ...s, [id]: '' }));
|
|
416
|
+
follow.current = true;
|
|
417
|
+
void replies.send(text, id, avatars.length ? 800 : 0, chat);
|
|
418
|
+
};
|
|
419
|
+
const editPanel = editor && (
|
|
420
|
+
<AgentCreator
|
|
421
|
+
agent={editor}
|
|
422
|
+
onChange={saveAgent}
|
|
423
|
+
voices={voices}
|
|
424
|
+
onPreviewVoice={onPreviewVoice}
|
|
425
|
+
onClose={() => {
|
|
426
|
+
setEditor(null);
|
|
427
|
+
if (panel === 'editor') close();
|
|
428
|
+
}}
|
|
429
|
+
style={{ flex: 1 }}
|
|
430
|
+
/>
|
|
431
|
+
);
|
|
432
|
+
const sortedChats = useMemo(
|
|
433
|
+
() =>
|
|
434
|
+
workspace.chats
|
|
435
|
+
.filter((c) =>
|
|
436
|
+
`${c.customTitle || c.title} ${workspace.agents
|
|
437
|
+
.filter((a) => c.agentIds.includes(a.id))
|
|
438
|
+
.map((a) => `${a.name} ${a.label}`)
|
|
439
|
+
.join(' ')} ${c.messages[c.messages.length - 1]?.text ?? ''}`
|
|
440
|
+
.toLocaleLowerCase()
|
|
441
|
+
.includes(query.toLocaleLowerCase()),
|
|
442
|
+
)
|
|
443
|
+
.sort((a, b) => Number(!!b.pinned) - Number(!!a.pinned)),
|
|
444
|
+
[workspace.chats, query],
|
|
445
|
+
);
|
|
446
|
+
const sidebar = (
|
|
447
|
+
<ChatSidebar
|
|
448
|
+
agents={workspace.agents}
|
|
449
|
+
chats={sortedChats}
|
|
450
|
+
activeId={workspace.activeId}
|
|
451
|
+
pending={replies.pending}
|
|
452
|
+
query={query}
|
|
453
|
+
searchOpen={searchOpen}
|
|
454
|
+
onQuery={setQuery}
|
|
455
|
+
onSearch={setSearchOpen}
|
|
456
|
+
onSelect={selectChat}
|
|
457
|
+
onCreate={createAgent}
|
|
458
|
+
onPicker={() => chooseAgents()}
|
|
459
|
+
onMarketplace={() => {
|
|
460
|
+
setMarketItem(null);
|
|
461
|
+
setPanel('marketplace');
|
|
462
|
+
}}
|
|
463
|
+
onSettings={() => setPanel('settings')}
|
|
464
|
+
onSupport={() => open('support')}
|
|
465
|
+
onAction={(target, action) => {
|
|
466
|
+
setTargetChatId(target.id);
|
|
467
|
+
if (action === 'pin')
|
|
468
|
+
update((s) => ({
|
|
469
|
+
...s,
|
|
470
|
+
chats: s.chats.map((c) =>
|
|
471
|
+
c.id === target.id ? { ...c, pinned: !c.pinned } : c,
|
|
472
|
+
),
|
|
473
|
+
}));
|
|
474
|
+
if (action === 'rename') {
|
|
475
|
+
setRename(target.customTitle || target.title);
|
|
476
|
+
open('rename');
|
|
477
|
+
}
|
|
478
|
+
if (action === 'edit') {
|
|
479
|
+
if (target.agentIds.length > 1)
|
|
480
|
+
chooseAgents(target.agentIds, target.id);
|
|
481
|
+
else {
|
|
482
|
+
const agent = workspace.agents.find(
|
|
483
|
+
(a) => a.id === target.agentIds[0],
|
|
484
|
+
);
|
|
485
|
+
if (agent) edit(agent);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
if (action === 'copy')
|
|
489
|
+
void copy(transcript(target), messages.conversationCopied);
|
|
490
|
+
if (action === 'copy-id')
|
|
491
|
+
void copy(target.id, messages.conversationIDCopied);
|
|
492
|
+
if (action === 'remove') removeChat(target.id);
|
|
493
|
+
}}
|
|
494
|
+
/>
|
|
495
|
+
);
|
|
496
|
+
const title =
|
|
497
|
+
panel === 'picker'
|
|
498
|
+
? editingChatId
|
|
499
|
+
? messages.editGroup
|
|
500
|
+
: messages.chatWithYourAgents
|
|
501
|
+
: panel === 'rename'
|
|
502
|
+
? messages.renameChat
|
|
503
|
+
: panel === 'marketplace'
|
|
504
|
+
? (marketItem?.name ?? messages.marketplace)
|
|
505
|
+
: panel === 'editor'
|
|
506
|
+
? messages.editAgentTitle
|
|
507
|
+
: panel === 'support'
|
|
508
|
+
? messages.aLittleHelp
|
|
509
|
+
: panel === 'settings'
|
|
510
|
+
? messages.settings
|
|
511
|
+
: panel === 'navigation'
|
|
512
|
+
? messages.conversations
|
|
513
|
+
: messages.conversationOptions;
|
|
514
|
+
const messageActions = (id: string, text: string) => (
|
|
515
|
+
<StyledView className="mt-1 flex-row items-center gap-1">
|
|
516
|
+
{(['up', 'down'] as const).map((value) => (
|
|
517
|
+
<StyledPressable
|
|
518
|
+
key={value}
|
|
519
|
+
accessibilityRole="button"
|
|
520
|
+
accessibilityLabel={
|
|
521
|
+
value === 'up'
|
|
522
|
+
? messages.helpfulResponse
|
|
523
|
+
: messages.unhelpfulResponse
|
|
524
|
+
}
|
|
525
|
+
accessibilityState={{ selected: feedback[id] === value }}
|
|
526
|
+
aria-pressed={feedback[id] === value}
|
|
527
|
+
onPress={() => setFeedback((s) => ({ ...s, [id]: value }))}
|
|
528
|
+
className="h-[22px] w-[22px] items-center justify-center rounded-md"
|
|
529
|
+
style={{ backgroundColor: colors.backgroundTertiary }}
|
|
530
|
+
>
|
|
531
|
+
{value === 'up' ? (
|
|
532
|
+
<RiThumbUpLine
|
|
533
|
+
width={12}
|
|
534
|
+
height={12}
|
|
535
|
+
fill={
|
|
536
|
+
feedback[id] === value ? colors.primary : colors.textTertiary
|
|
537
|
+
}
|
|
538
|
+
/>
|
|
539
|
+
) : (
|
|
540
|
+
<RiThumbDownLine
|
|
541
|
+
width={12}
|
|
542
|
+
height={12}
|
|
543
|
+
fill={
|
|
544
|
+
feedback[id] === value ? colors.primary : colors.textTertiary
|
|
545
|
+
}
|
|
546
|
+
/>
|
|
547
|
+
)}
|
|
548
|
+
</StyledPressable>
|
|
549
|
+
))}
|
|
550
|
+
<StyledPressable
|
|
551
|
+
accessibilityRole="button"
|
|
552
|
+
accessibilityLabel={messages.copyResponse}
|
|
553
|
+
className="flex size-[22px] items-center justify-center rounded-md bg-background-tertiary-default text-foreground-icon-tertiary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring"
|
|
554
|
+
onPress={() => {
|
|
555
|
+
void copy(text, messages.responseCopied);
|
|
556
|
+
}}
|
|
557
|
+
>
|
|
558
|
+
<RiFileCopyLine width={12} height={12} fill={colors.textTertiary} />
|
|
559
|
+
</StyledPressable>
|
|
560
|
+
</StyledView>
|
|
561
|
+
);
|
|
562
|
+
return (
|
|
563
|
+
<StyledView
|
|
564
|
+
{...directionProps}
|
|
565
|
+
ref={root}
|
|
566
|
+
collapsable={false}
|
|
567
|
+
className={`flex h-dvh min-h-0 overflow-hidden bg-background-full p-3 text-text-primary flex-row ${className ?? ''}`}
|
|
568
|
+
style={[{ flex: 1, minHeight: 0 }, style]}
|
|
569
|
+
testID={testID}
|
|
570
|
+
>
|
|
571
|
+
{!phone && (
|
|
572
|
+
<StyledView
|
|
573
|
+
className="me-4 hidden min-h-0 shrink-0 md:block"
|
|
574
|
+
style={{ width: 260 }}
|
|
575
|
+
>
|
|
576
|
+
{sidebar}
|
|
577
|
+
</StyledView>
|
|
578
|
+
)}
|
|
579
|
+
<StyledView
|
|
580
|
+
accessibilityLabel={messages.agentConversation}
|
|
581
|
+
className="flex min-h-0 min-w-0 flex-1 flex-col rounded-3xl bg-background-secondary-default"
|
|
582
|
+
>
|
|
583
|
+
<StyledView className="flex h-[55px] shrink-0 items-start gap-2 px-3 pt-3 flex-row">
|
|
584
|
+
{phone && (
|
|
585
|
+
<IconButton
|
|
586
|
+
icon={RiMenuLine}
|
|
587
|
+
accessibilityLabel={messages.openConversations}
|
|
588
|
+
size="sm"
|
|
589
|
+
onPress={() => open('navigation')}
|
|
590
|
+
/>
|
|
591
|
+
)}
|
|
592
|
+
<StyledView className="flex min-w-0 flex-1 flex-row">
|
|
593
|
+
<StyledView
|
|
594
|
+
ref={badgeRef}
|
|
595
|
+
collapsable={false}
|
|
596
|
+
className="relative z-40 min-w-0 max-w-full rounded-full"
|
|
597
|
+
>
|
|
598
|
+
<Surface
|
|
599
|
+
fill={colors.backgroundSecondary}
|
|
600
|
+
radius={999}
|
|
601
|
+
style={{ position: 'absolute', inset: 0 }}
|
|
602
|
+
pointerEvents="none"
|
|
603
|
+
/>
|
|
604
|
+
<StyledPressable
|
|
605
|
+
accessibilityRole="button"
|
|
606
|
+
accessibilityLabel={
|
|
607
|
+
participants.length === 1
|
|
608
|
+
? formatChatMessage(
|
|
609
|
+
messages.editAgent,
|
|
610
|
+
participants[0]!.name,
|
|
611
|
+
)
|
|
612
|
+
: messages.editConversationAgents
|
|
613
|
+
}
|
|
614
|
+
onPress={() =>
|
|
615
|
+
participants.length === 1
|
|
616
|
+
? edit(participants[0]!)
|
|
617
|
+
: chooseAgents(chat?.agentIds)
|
|
618
|
+
}
|
|
619
|
+
className="flex h-[31px] min-w-0 max-w-full items-center gap-2 rounded-full px-2 pe-3 text-body-2-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring flex-row"
|
|
620
|
+
>
|
|
621
|
+
<AgentStack agents={participants} size={20} />
|
|
622
|
+
<Text
|
|
623
|
+
numberOfLines={1}
|
|
624
|
+
className="truncate text-body-2-medium text-text-secondary"
|
|
625
|
+
>
|
|
626
|
+
{participants.length === 1
|
|
627
|
+
? participants[0]!.name
|
|
628
|
+
: participants
|
|
629
|
+
.slice(0, 3)
|
|
630
|
+
.map((a) => a.label || a.name)
|
|
631
|
+
.join(' + ')}
|
|
632
|
+
</Text>
|
|
633
|
+
{participants.length > 3 && (
|
|
634
|
+
<Text className="shrink-0">+{participants.length - 3}</Text>
|
|
635
|
+
)}
|
|
636
|
+
</StyledPressable>
|
|
637
|
+
</StyledView>
|
|
638
|
+
</StyledView>
|
|
639
|
+
<StyledPressable
|
|
640
|
+
accessibilityRole="button"
|
|
641
|
+
accessibilityLabel={messages.copyConversation}
|
|
642
|
+
onPress={() =>
|
|
643
|
+
chat && void copy(transcript(chat), messages.conversationCopied)
|
|
644
|
+
}
|
|
645
|
+
className="rounded p-1 text-foreground-icon-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring"
|
|
646
|
+
>
|
|
647
|
+
<RiShare2Line width={16} height={16} fill={colors.textSecondary} />
|
|
648
|
+
</StyledPressable>
|
|
649
|
+
<D.DropdownMenu>
|
|
650
|
+
<D.DropdownMenuTrigger asChild>
|
|
651
|
+
<StyledPressable
|
|
652
|
+
accessibilityRole="button"
|
|
653
|
+
accessibilityLabel={messages.conversationOptions}
|
|
654
|
+
className="rounded p-1 text-foreground-icon-secondary"
|
|
655
|
+
>
|
|
656
|
+
<RiMoreFill
|
|
657
|
+
width={16}
|
|
658
|
+
height={16}
|
|
659
|
+
fill={colors.textSecondary}
|
|
660
|
+
/>
|
|
661
|
+
</StyledPressable>
|
|
662
|
+
</D.DropdownMenuTrigger>
|
|
663
|
+
<D.DropdownMenuContent
|
|
664
|
+
label={messages.conversationOptions}
|
|
665
|
+
align="end"
|
|
666
|
+
className="rounded-[14px] p-1"
|
|
667
|
+
style={{ borderRadius: 14, padding: 4 }}
|
|
668
|
+
>
|
|
669
|
+
<D.DropdownMenuLabel>
|
|
670
|
+
{messages.inThisConversation}
|
|
671
|
+
</D.DropdownMenuLabel>
|
|
672
|
+
{participants.map((agent) => (
|
|
673
|
+
<D.DropdownMenuItem
|
|
674
|
+
key={agent.id}
|
|
675
|
+
onPress={() => edit(agent)}
|
|
676
|
+
leading={<AgentAvatar config={agent.avatar} size={20} />}
|
|
677
|
+
className="px-2 py-1.5 text-body-medium"
|
|
678
|
+
>
|
|
679
|
+
{formatChatMessage(messages.editAgent, agent.name)}
|
|
680
|
+
</D.DropdownMenuItem>
|
|
681
|
+
))}
|
|
682
|
+
<D.DropdownMenuItem
|
|
683
|
+
onPress={() => chooseAgents(chat?.agentIds)}
|
|
684
|
+
leading={<RiGroupLine width={16} height={16} />}
|
|
685
|
+
className="px-2 py-1.5 text-body-medium"
|
|
686
|
+
>
|
|
687
|
+
{messages.startAGroupChat}
|
|
688
|
+
</D.DropdownMenuItem>
|
|
689
|
+
</D.DropdownMenuContent>
|
|
690
|
+
</D.DropdownMenu>
|
|
691
|
+
</StyledView>
|
|
692
|
+
<ScrollSurface
|
|
693
|
+
scrollRef={scroll}
|
|
694
|
+
label={messages.messages}
|
|
695
|
+
className="flex-1"
|
|
696
|
+
contentClassName={
|
|
697
|
+
chat?.messages.length
|
|
698
|
+
? 'pb-4 pt-2'
|
|
699
|
+
: 'flex items-center justify-center p-4'
|
|
700
|
+
}
|
|
701
|
+
contentContainerStyle={{ flexGrow: 1 }}
|
|
702
|
+
scrollEventThrottle={16}
|
|
703
|
+
onScroll={(event) => {
|
|
704
|
+
const { contentOffset, contentSize, layoutMeasurement } =
|
|
705
|
+
event.nativeEvent;
|
|
706
|
+
follow.current =
|
|
707
|
+
contentSize.height - contentOffset.y - layoutMeasurement.height <
|
|
708
|
+
100;
|
|
709
|
+
if (chat) offsets.current[chat.id] = contentOffset.y;
|
|
710
|
+
}}
|
|
711
|
+
onContentSizeChange={() => {
|
|
712
|
+
if (follow.current)
|
|
713
|
+
scroll.current?.scrollToEnd({ animated: false });
|
|
714
|
+
}}
|
|
715
|
+
>
|
|
716
|
+
{!chat || !chat.messages.length ? (
|
|
717
|
+
<StyledView className="flex-1 items-center justify-center gap-4 px-4 py-8">
|
|
718
|
+
<SelectedAgentPreview
|
|
719
|
+
agents={participants}
|
|
720
|
+
nodes={emptyAvatars.current}
|
|
721
|
+
hidden={
|
|
722
|
+
handoff?.kind === 'group' && handoff.chatId === chat?.id
|
|
723
|
+
? handoff.avatars
|
|
724
|
+
.filter((a) => !handoff.arrived.includes(a.agent.id))
|
|
725
|
+
.map((a) => a.agent.id)
|
|
726
|
+
: []
|
|
727
|
+
}
|
|
728
|
+
/>
|
|
729
|
+
<StyledView className="flex flex-col items-center gap-1.5">
|
|
730
|
+
<Text
|
|
731
|
+
variant="title-3-semibold"
|
|
732
|
+
style={{ textAlign: 'center' }}
|
|
733
|
+
>
|
|
734
|
+
{participants.length > 1
|
|
735
|
+
? messages.aFewMindsOneConversation
|
|
736
|
+
: participants[0]
|
|
737
|
+
? formatChatMessage(
|
|
738
|
+
messages.sayHelloTo,
|
|
739
|
+
participants[0].name,
|
|
740
|
+
)
|
|
741
|
+
: messages.chatWithYourAgents}
|
|
742
|
+
</Text>
|
|
743
|
+
<Text
|
|
744
|
+
variant="body-regular"
|
|
745
|
+
style={{
|
|
746
|
+
maxWidth: 420,
|
|
747
|
+
textAlign: 'center',
|
|
748
|
+
color: colors.textSecondary,
|
|
749
|
+
}}
|
|
750
|
+
>
|
|
751
|
+
{participants.length > 1
|
|
752
|
+
? formatChatMessage(
|
|
753
|
+
messages.areHereSendAMessageToGet,
|
|
754
|
+
participants.map((a) => a.name).join(', '),
|
|
755
|
+
)
|
|
756
|
+
: (participants[0]?.description ??
|
|
757
|
+
messages.chooseAnAgentOrCreateYourOwn)}
|
|
758
|
+
</Text>
|
|
759
|
+
</StyledView>
|
|
760
|
+
{!chat && (
|
|
761
|
+
<Button onPress={() => chooseAgents()}>
|
|
762
|
+
{messages.startChat}
|
|
763
|
+
</Button>
|
|
764
|
+
)}
|
|
765
|
+
</StyledView>
|
|
766
|
+
) : (
|
|
767
|
+
<StyledView>
|
|
768
|
+
{/* DOM block margins collapse; RN flex margins add. Keep the same 16px inter-row gap. */}
|
|
769
|
+
<StyledView
|
|
770
|
+
className="mb-4 mt-3 flex justify-center items-center"
|
|
771
|
+
style={{ marginBottom: 4 }}
|
|
772
|
+
>
|
|
773
|
+
<Text className="rounded-full bg-background-tertiary-default px-[7px] py-1 text-body-2-medium text-text-secondary">
|
|
774
|
+
{messages.today}
|
|
775
|
+
</Text>
|
|
776
|
+
</StyledView>
|
|
777
|
+
{[
|
|
778
|
+
...chat.messages,
|
|
779
|
+
...(replies.thinking[chat.id]
|
|
780
|
+
? [replies.thinking[chat.id]!]
|
|
781
|
+
: []),
|
|
782
|
+
].map((message) => {
|
|
783
|
+
const agent = workspace.agents.find(
|
|
784
|
+
(a) => a.id === message.agentId,
|
|
785
|
+
);
|
|
786
|
+
const text = formatDemoReply(message.text);
|
|
787
|
+
if (message.role === 'user')
|
|
788
|
+
return (
|
|
789
|
+
<StyledView
|
|
790
|
+
key={message.id}
|
|
791
|
+
className="me-3 ms-auto mt-3 w-fit max-w-[min(520px,calc(100%-24px))] rounded-[var(--radius-2-5xl)] bg-background-primary-default p-3 text-start text-body-regular whitespace-pre-wrap break-words"
|
|
792
|
+
style={{
|
|
793
|
+
alignSelf: 'flex-end',
|
|
794
|
+
maxWidth: Platform.OS === 'web' ? undefined : '94%',
|
|
795
|
+
}}
|
|
796
|
+
>
|
|
797
|
+
<Text variant="body-regular">{message.text}</Text>
|
|
798
|
+
</StyledView>
|
|
799
|
+
);
|
|
800
|
+
const thinking = replies.thinking[chat.id]?.id === message.id;
|
|
801
|
+
return (
|
|
802
|
+
<ReplyRow
|
|
803
|
+
key={message.id}
|
|
804
|
+
header={
|
|
805
|
+
agent && (
|
|
806
|
+
<ReplyHeader
|
|
807
|
+
agent={agent}
|
|
808
|
+
thinking={thinking}
|
|
809
|
+
workingKey={replies.pending[chat.id]}
|
|
810
|
+
nodes={thinking ? replyAvatars.current : undefined}
|
|
811
|
+
arriving={
|
|
812
|
+
thinking &&
|
|
813
|
+
handoff?.kind === 'first' &&
|
|
814
|
+
handoff.chatId === chat.id &&
|
|
815
|
+
handoff.responderId === agent.id &&
|
|
816
|
+
!handoff.arrived.includes(agent.id)
|
|
817
|
+
}
|
|
818
|
+
onEdit={() => edit(agent)}
|
|
819
|
+
/>
|
|
820
|
+
)
|
|
821
|
+
}
|
|
822
|
+
actions={
|
|
823
|
+
!thinking &&
|
|
824
|
+
replies.streaming[chat.id] !== message.id &&
|
|
825
|
+
messageActions(message.id, text)
|
|
826
|
+
}
|
|
827
|
+
>
|
|
828
|
+
{!!text && (
|
|
829
|
+
<StyledView className="rounded-[var(--radius-2-5xl)] bg-background-tertiary-default p-3">
|
|
830
|
+
<StreamedText text={text} paragraphs />
|
|
831
|
+
</StyledView>
|
|
832
|
+
)}
|
|
833
|
+
</ReplyRow>
|
|
834
|
+
);
|
|
835
|
+
})}
|
|
836
|
+
</StyledView>
|
|
837
|
+
)}
|
|
838
|
+
</ScrollSurface>
|
|
839
|
+
{chat && (
|
|
840
|
+
<StyledView className="p-1">
|
|
841
|
+
<ComposerPanel
|
|
842
|
+
value={drafts[chat.id] ?? ''}
|
|
843
|
+
onValueChange={(value) =>
|
|
844
|
+
setDrafts((s) => ({ ...s, [chat.id]: value }))
|
|
845
|
+
}
|
|
846
|
+
onSubmit={(text) => {
|
|
847
|
+
void sendMessage(text);
|
|
848
|
+
}}
|
|
849
|
+
disabled={!!replies.pending[chat.id]}
|
|
850
|
+
busy={!!replies.pending[chat.id]}
|
|
851
|
+
onStop={() => replies.stop(chat.id)}
|
|
852
|
+
providers={props.providers ?? WORKSPACE_MODELS}
|
|
853
|
+
status={null}
|
|
854
|
+
defaultPermission="bypass"
|
|
855
|
+
defaultModel="anthropic/fable-5"
|
|
856
|
+
style={{ borderRadius: 20 }}
|
|
857
|
+
/>
|
|
858
|
+
</StyledView>
|
|
859
|
+
)}
|
|
860
|
+
</StyledView>
|
|
861
|
+
{!!replies.notice && (
|
|
862
|
+
<Portal>
|
|
863
|
+
<OverlayRoot
|
|
864
|
+
zIndex={TOAST_LAYER_Z}
|
|
865
|
+
style={{
|
|
866
|
+
justifyContent: 'flex-end',
|
|
867
|
+
alignItems: 'center',
|
|
868
|
+
padding: 20,
|
|
869
|
+
}}
|
|
870
|
+
>
|
|
871
|
+
<StyledView
|
|
872
|
+
pointerEvents="none"
|
|
873
|
+
className="max-w-[calc(100%-32px)] rounded-xl border border-border-button-default bg-background-primary-default px-4 py-3 shadow-lg"
|
|
874
|
+
style={{ maxWidth: '100%' }}
|
|
875
|
+
>
|
|
876
|
+
<StyledView className="flex flex-row items-center gap-2">
|
|
877
|
+
<RiCheckLine
|
|
878
|
+
width={16}
|
|
879
|
+
height={16}
|
|
880
|
+
fill={colors.textSecondary}
|
|
881
|
+
/>
|
|
882
|
+
<Text
|
|
883
|
+
accessibilityRole="alert"
|
|
884
|
+
aria-live="polite"
|
|
885
|
+
className="text-body-regular text-text-primary"
|
|
886
|
+
>
|
|
887
|
+
{replies.notice}
|
|
888
|
+
</Text>
|
|
889
|
+
</StyledView>
|
|
890
|
+
</StyledView>
|
|
891
|
+
</OverlayRoot>
|
|
892
|
+
</Portal>
|
|
893
|
+
)}
|
|
894
|
+
<EditorRail active={!!editor && !compact}>{editPanel}</EditorRail>
|
|
895
|
+
<Dialog
|
|
896
|
+
presentation="custom"
|
|
897
|
+
exitDuration={panel === 'editor' ? 280 : 240}
|
|
898
|
+
contentPadding={0}
|
|
899
|
+
scrollable={false}
|
|
900
|
+
control={surface}
|
|
901
|
+
label={title}
|
|
902
|
+
maxWidth={100000}
|
|
903
|
+
placement="center"
|
|
904
|
+
style={{
|
|
905
|
+
position: 'absolute',
|
|
906
|
+
inset: 0,
|
|
907
|
+
width: '100%',
|
|
908
|
+
height: '100%',
|
|
909
|
+
maxWidth: '100%',
|
|
910
|
+
}}
|
|
911
|
+
containerStyle={{ padding: 0, paddingHorizontal: 0 }}
|
|
912
|
+
onClose={() => {
|
|
913
|
+
setPanel(null);
|
|
914
|
+
if (compact && panel === 'editor') setEditor(null);
|
|
915
|
+
}}
|
|
916
|
+
>
|
|
917
|
+
<ChatDialogFrame
|
|
918
|
+
title={title}
|
|
919
|
+
mode={
|
|
920
|
+
panel === 'editor'
|
|
921
|
+
? 'editor'
|
|
922
|
+
: panel === 'navigation'
|
|
923
|
+
? 'navigation'
|
|
924
|
+
: 'center'
|
|
925
|
+
}
|
|
926
|
+
preview={
|
|
927
|
+
panel === 'picker' ? (
|
|
928
|
+
<SelectedAgentPreview
|
|
929
|
+
caption
|
|
930
|
+
agents={selected.flatMap(
|
|
931
|
+
(id) => workspace.agents.find((a) => a.id === id) ?? [],
|
|
932
|
+
)}
|
|
933
|
+
nodes={pickerAvatars.current}
|
|
934
|
+
hidden={
|
|
935
|
+
handoff?.kind === 'group'
|
|
936
|
+
? handoff.avatars.map((a) => a.agent.id)
|
|
937
|
+
: []
|
|
938
|
+
}
|
|
939
|
+
/>
|
|
940
|
+
) : undefined
|
|
941
|
+
}
|
|
942
|
+
footer={
|
|
943
|
+
panel === 'picker' ? (
|
|
944
|
+
<Button
|
|
945
|
+
className="w-full rounded-full"
|
|
946
|
+
style={{ width: '100%', borderRadius: 999 }}
|
|
947
|
+
onPress={() => {
|
|
948
|
+
void startChat();
|
|
949
|
+
}}
|
|
950
|
+
disabled={!selected.length}
|
|
951
|
+
>
|
|
952
|
+
{messages.pickerAction(!!editingChatId, selected.length)}
|
|
953
|
+
</Button>
|
|
954
|
+
) : panel === 'rename' ? (
|
|
955
|
+
<Button
|
|
956
|
+
className="w-full rounded-full"
|
|
957
|
+
style={{ width: '100%', borderRadius: 999 }}
|
|
958
|
+
disabled={!rename.trim()}
|
|
959
|
+
onPress={() => {
|
|
960
|
+
update((s) => ({
|
|
961
|
+
...s,
|
|
962
|
+
chats: s.chats.map((c) =>
|
|
963
|
+
c.id === targetChat?.id
|
|
964
|
+
? { ...c, customTitle: rename.trim() }
|
|
965
|
+
: c,
|
|
966
|
+
),
|
|
967
|
+
}));
|
|
968
|
+
close();
|
|
969
|
+
}}
|
|
970
|
+
>
|
|
971
|
+
{messages.saveName}
|
|
972
|
+
</Button>
|
|
973
|
+
) : undefined
|
|
974
|
+
}
|
|
975
|
+
>
|
|
976
|
+
{panel === 'navigation' && sidebar}
|
|
977
|
+
{panel === 'editor' && editPanel}
|
|
978
|
+
{panel === 'rename' && (
|
|
979
|
+
<TextFieldInput
|
|
980
|
+
label={messages.chatName}
|
|
981
|
+
autoFocus
|
|
982
|
+
value={rename}
|
|
983
|
+
onChangeText={setRename}
|
|
984
|
+
maxLength={100}
|
|
985
|
+
onSubmitEditing={() => {
|
|
986
|
+
if (!rename.trim()) return;
|
|
987
|
+
update((s) => ({
|
|
988
|
+
...s,
|
|
989
|
+
chats: s.chats.map((c) =>
|
|
990
|
+
c.id === targetChat?.id
|
|
991
|
+
? { ...c, customTitle: rename.trim() }
|
|
992
|
+
: c,
|
|
993
|
+
),
|
|
994
|
+
}));
|
|
995
|
+
close();
|
|
996
|
+
}}
|
|
997
|
+
/>
|
|
998
|
+
)}
|
|
999
|
+
{panel === 'picker' && (
|
|
1000
|
+
<StyledView
|
|
1001
|
+
className="flex flex-wrap justify-center gap-2 flex-row"
|
|
1002
|
+
role="group"
|
|
1003
|
+
accessibilityLabel={messages.chooseYourTeammates}
|
|
1004
|
+
>
|
|
1005
|
+
{workspace.agents.map((agent) => {
|
|
1006
|
+
const picked = selected.includes(agent.id);
|
|
1007
|
+
return (
|
|
1008
|
+
<Button
|
|
1009
|
+
key={agent.id}
|
|
1010
|
+
appearance="plain"
|
|
1011
|
+
tone="neutral"
|
|
1012
|
+
accessibilityLabel={agent.name}
|
|
1013
|
+
pressed={picked}
|
|
1014
|
+
onPress={() =>
|
|
1015
|
+
setSelected((ids) =>
|
|
1016
|
+
picked
|
|
1017
|
+
? ids.filter((id) => id !== agent.id)
|
|
1018
|
+
: [...ids, agent.id],
|
|
1019
|
+
)
|
|
1020
|
+
}
|
|
1021
|
+
className={`h-10 max-w-full rounded-full border px-2 shadow-none transition-colors hover:bg-background-tertiary-default active:bg-background-tertiary-hover ${picked ? 'border-foreground-icon-secondary bg-background-tertiary-default text-text-primary dark:bg-background-tertiary-hover dark:hover:bg-background-tertiary-hover dark:active:bg-background-tertiary-hover' : 'border-transparent bg-background-secondary-default text-text-secondary'}`}
|
|
1022
|
+
style={{
|
|
1023
|
+
height: 40,
|
|
1024
|
+
maxWidth: '100%',
|
|
1025
|
+
borderRadius: 999,
|
|
1026
|
+
borderWidth: 1,
|
|
1027
|
+
borderColor: picked
|
|
1028
|
+
? colors.textSecondary
|
|
1029
|
+
: 'transparent',
|
|
1030
|
+
backgroundColor: picked
|
|
1031
|
+
? colors.backgroundTertiary
|
|
1032
|
+
: colors.backgroundSecondary,
|
|
1033
|
+
boxShadow: 'none',
|
|
1034
|
+
paddingStart: 8,
|
|
1035
|
+
paddingEnd: 8,
|
|
1036
|
+
}}
|
|
1037
|
+
>
|
|
1038
|
+
<StyledView className="inline-flex items-center justify-center px-1 shrink-0 flex-row">
|
|
1039
|
+
<StyledView className="flex min-w-0 items-center gap-2 flex-row">
|
|
1040
|
+
<StyledView className="size-6 shrink-0" aria-hidden>
|
|
1041
|
+
<AgentAvatar config={agent.avatar} size={24} />
|
|
1042
|
+
</StyledView>
|
|
1043
|
+
<Text
|
|
1044
|
+
className={`truncate text-body-medium ${picked ? 'text-text-primary' : 'text-text-secondary'}`}
|
|
1045
|
+
numberOfLines={1}
|
|
1046
|
+
>
|
|
1047
|
+
{agent.name}
|
|
1048
|
+
</Text>
|
|
1049
|
+
</StyledView>
|
|
1050
|
+
</StyledView>
|
|
1051
|
+
</Button>
|
|
1052
|
+
);
|
|
1053
|
+
})}
|
|
1054
|
+
</StyledView>
|
|
1055
|
+
)}
|
|
1056
|
+
{panel === 'options' && targetChat && (
|
|
1057
|
+
<StyledView className="gap-2">
|
|
1058
|
+
<Button
|
|
1059
|
+
appearance="plain"
|
|
1060
|
+
onPress={() => {
|
|
1061
|
+
update((s) => ({
|
|
1062
|
+
...s,
|
|
1063
|
+
chats: s.chats.map((c) =>
|
|
1064
|
+
c.id === targetChat.id ? { ...c, pinned: !c.pinned } : c,
|
|
1065
|
+
),
|
|
1066
|
+
}));
|
|
1067
|
+
close();
|
|
1068
|
+
}}
|
|
1069
|
+
>
|
|
1070
|
+
{targetChat.pinned ? messages.unpinChat : messages.pinChat}
|
|
1071
|
+
</Button>
|
|
1072
|
+
<Button
|
|
1073
|
+
appearance="plain"
|
|
1074
|
+
onPress={() => {
|
|
1075
|
+
setRename(targetChat.customTitle || targetChat.title);
|
|
1076
|
+
setPanel('rename');
|
|
1077
|
+
}}
|
|
1078
|
+
>
|
|
1079
|
+
{messages.renameChat}
|
|
1080
|
+
</Button>
|
|
1081
|
+
<Button
|
|
1082
|
+
appearance="plain"
|
|
1083
|
+
leadingIcon={RiGroupLine}
|
|
1084
|
+
onPress={() => chooseAgents(targetChat.agentIds, targetChat.id)}
|
|
1085
|
+
>
|
|
1086
|
+
{messages.editGroup}
|
|
1087
|
+
</Button>
|
|
1088
|
+
{targetChat.agentIds.map((id) => {
|
|
1089
|
+
const agent = workspace.agents.find((a) => a.id === id);
|
|
1090
|
+
return (
|
|
1091
|
+
agent && (
|
|
1092
|
+
<Button
|
|
1093
|
+
key={id}
|
|
1094
|
+
appearance="plain"
|
|
1095
|
+
onPress={() => {
|
|
1096
|
+
if (!compact) close();
|
|
1097
|
+
edit(agent);
|
|
1098
|
+
}}
|
|
1099
|
+
>
|
|
1100
|
+
{formatChatMessage(messages.editAgent, agent.name)}
|
|
1101
|
+
</Button>
|
|
1102
|
+
)
|
|
1103
|
+
);
|
|
1104
|
+
})}
|
|
1105
|
+
<Button
|
|
1106
|
+
appearance="plain"
|
|
1107
|
+
onPress={() => {
|
|
1108
|
+
void copy(
|
|
1109
|
+
transcript(targetChat),
|
|
1110
|
+
messages.conversationCopied,
|
|
1111
|
+
);
|
|
1112
|
+
}}
|
|
1113
|
+
>
|
|
1114
|
+
{messages.copyConversation}
|
|
1115
|
+
</Button>
|
|
1116
|
+
<Button
|
|
1117
|
+
appearance="plain"
|
|
1118
|
+
onPress={() => {
|
|
1119
|
+
void copy(targetChat.id, messages.conversationIDCopied);
|
|
1120
|
+
}}
|
|
1121
|
+
>
|
|
1122
|
+
{messages.copyConversationID}
|
|
1123
|
+
</Button>
|
|
1124
|
+
<Button
|
|
1125
|
+
appearance="plain"
|
|
1126
|
+
onPress={() => removeChat(targetChat.id)}
|
|
1127
|
+
>
|
|
1128
|
+
{messages.removeChat}
|
|
1129
|
+
</Button>
|
|
1130
|
+
</StyledView>
|
|
1131
|
+
)}
|
|
1132
|
+
{panel === 'support' && (
|
|
1133
|
+
<StyledView
|
|
1134
|
+
className="space-y-4 text-body-regular text-text-secondary"
|
|
1135
|
+
style={{ gap: 16 }}
|
|
1136
|
+
>
|
|
1137
|
+
<SupportCopy text={messages.useToCreateABotOrStart} term="+" />
|
|
1138
|
+
<SupportCopy
|
|
1139
|
+
text={messages.openTheMarketplaceToExplorePluginsAnd}
|
|
1140
|
+
term={messages.marketplace}
|
|
1141
|
+
/>
|
|
1142
|
+
<Text className="text-body-regular text-text-secondary">
|
|
1143
|
+
{messages.sendWithEnterUseShiftEnterFor}
|
|
1144
|
+
</Text>
|
|
1145
|
+
</StyledView>
|
|
1146
|
+
)}
|
|
1147
|
+
</ChatDialogFrame>
|
|
1148
|
+
</Dialog>
|
|
1149
|
+
{(panel === 'marketplace' || panel === 'settings') && (
|
|
1150
|
+
<Marketplace
|
|
1151
|
+
initialItem={marketItem?.id}
|
|
1152
|
+
defaultPage={panel === 'settings' ? 'general' : 'marketplace'}
|
|
1153
|
+
agents={workspace.agents}
|
|
1154
|
+
installedPlugins={workspace.installedPlugins ?? DEFAULT_PLUGINS}
|
|
1155
|
+
onClose={() => setPanel(null)}
|
|
1156
|
+
onCopy={copy}
|
|
1157
|
+
onChat={(id) => {
|
|
1158
|
+
setSelected([id]);
|
|
1159
|
+
const existing = workspace.chats.find(
|
|
1160
|
+
(c) => c.agentIds.length === 1 && c.agentIds[0] === id,
|
|
1161
|
+
);
|
|
1162
|
+
if (existing) selectChat(existing.id);
|
|
1163
|
+
else {
|
|
1164
|
+
const created = conversationFor(
|
|
1165
|
+
workspace.agents,
|
|
1166
|
+
[id],
|
|
1167
|
+
chatId('chat'),
|
|
1168
|
+
);
|
|
1169
|
+
update((s) => ({
|
|
1170
|
+
...s,
|
|
1171
|
+
chats: [created, ...s.chats],
|
|
1172
|
+
activeId: created.id,
|
|
1173
|
+
}));
|
|
1174
|
+
}
|
|
1175
|
+
setPanel(null);
|
|
1176
|
+
}}
|
|
1177
|
+
onAddBot={(item) => update((s) => addMarketplaceBot(s, item))}
|
|
1178
|
+
onTogglePlugin={(id) =>
|
|
1179
|
+
update((s) => {
|
|
1180
|
+
const installed = s.installedPlugins ?? DEFAULT_PLUGINS;
|
|
1181
|
+
return {
|
|
1182
|
+
...s,
|
|
1183
|
+
installedPlugins: installed.includes(id)
|
|
1184
|
+
? installed.filter((value) => value !== id)
|
|
1185
|
+
: [...installed, id],
|
|
1186
|
+
};
|
|
1187
|
+
})
|
|
1188
|
+
}
|
|
1189
|
+
/>
|
|
1190
|
+
)}
|
|
1191
|
+
{handoff && handoff.chatId === chat?.id && (
|
|
1192
|
+
<AvatarHandoff
|
|
1193
|
+
handoff={handoff}
|
|
1194
|
+
origin={flightOrigin}
|
|
1195
|
+
resolveTarget={resolveFlightTarget}
|
|
1196
|
+
onArrive={arriveAvatar}
|
|
1197
|
+
onFinish={finishHandoff}
|
|
1198
|
+
/>
|
|
1199
|
+
)}
|
|
1200
|
+
</StyledView>
|
|
1201
|
+
);
|
|
1202
|
+
}
|