@oxy.so/bloom 7.0.1 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/character-runtime/README.md +55 -0
- package/assets/character-runtime/appearance-codec.mjs +149 -0
- package/assets/character-runtime/integrity.json +6 -0
- package/assets/character-runtime/legacy-engine.mjs +105 -0
- package/assets/character-runtime/legacy-geometry.mjs +166 -0
- package/assets/character-runtime/legacy-worker.mjs +85 -0
- package/assets/character-runtime/orbit-characters.data +0 -0
- package/assets/character-runtime/orbit-characters.mjs +30 -0
- package/assets/character-runtime/orbit-characters.wasm +0 -0
- package/assets/character-runtime/preparation-worker.mjs +19 -0
- package/assets/character-runtime/runtime.mjs +820 -0
- package/assets/character-runtime/thumbnails/eyes/crescent_inset.png +0 -0
- package/assets/character-runtime/thumbnails/eyes/dots.png +0 -0
- package/assets/character-runtime/thumbnails/eyes/double_highlights.png +0 -0
- package/assets/character-runtime/thumbnails/eyes/highlight_capsules.png +0 -0
- package/assets/character-runtime/thumbnails/eyes/oval.png +0 -0
- package/assets/character-runtime/thumbnails/eyes/round_inset.png +0 -0
- package/assets/character-runtime/thumbnails/eyes/sleepy_lids.png +0 -0
- package/assets/character-runtime/thumbnails/eyes/sparkle_capsules.png +0 -0
- package/assets/character-runtime/thumbnails/eyes/swept_lids.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/capsule.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/circle.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/circle_two_ears.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/four_lobed_butterfly.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/heart.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/rounded_cube.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/rounded_diamond.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/rounded_head_two_ears.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/rounded_triangle.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/six_lobed_flower.png +0 -0
- package/assets/character-runtime/thumbnails/shapes/twelve_scalloped_rosette.png +0 -0
- package/docs/adoption-matrix.mdx +9 -9
- package/docs/agent-avatar.mdx +35 -10
- package/docs/agent-creator.mdx +12 -4
- package/docs/multi-agent-chat.mdx +12 -0
- package/docs/project-board.mdx +3 -3
- package/lib/commonjs/agent-avatar/AgentAvatar.js +15 -203
- package/lib/commonjs/agent-avatar/AgentAvatar.js.map +1 -1
- package/lib/commonjs/agent-avatar/AgentAvatarProvider.js +64 -0
- package/lib/commonjs/agent-avatar/AgentAvatarProvider.js.map +1 -0
- package/lib/commonjs/agent-avatar/CharacterAvatar.js +211 -0
- package/lib/commonjs/agent-avatar/CharacterAvatar.js.map +1 -0
- package/lib/commonjs/agent-avatar/ProceduralAvatar.js +216 -0
- package/lib/commonjs/agent-avatar/ProceduralAvatar.js.map +1 -0
- package/lib/commonjs/agent-avatar/artwork.js +4 -3
- package/lib/commonjs/agent-avatar/artwork.js.map +1 -1
- package/lib/commonjs/agent-avatar/avatar-color.js +16 -0
- package/lib/commonjs/agent-avatar/avatar-color.js.map +1 -0
- package/lib/commonjs/agent-avatar/character-html.js +25 -0
- package/lib/commonjs/agent-avatar/character-html.js.map +1 -0
- package/lib/commonjs/agent-avatar/character-runtime-module.js +39 -0
- package/lib/commonjs/agent-avatar/character-runtime-module.js.map +1 -0
- package/lib/commonjs/agent-avatar/character-webview.js +18 -0
- package/lib/commonjs/agent-avatar/character-webview.js.map +1 -0
- package/lib/commonjs/agent-avatar/config-character.js +36 -0
- package/lib/commonjs/agent-avatar/config-character.js.map +1 -0
- package/lib/commonjs/agent-avatar/context.js +3 -1
- package/lib/commonjs/agent-avatar/context.js.map +1 -1
- package/lib/commonjs/agent-avatar/index.js +7 -0
- package/lib/commonjs/agent-avatar/index.js.map +1 -1
- package/lib/commonjs/agent-avatar/legacy-contours.js +57 -0
- package/lib/commonjs/agent-avatar/legacy-contours.js.map +1 -0
- package/lib/commonjs/agent-avatar/legacy-recipe.js +112 -0
- package/lib/commonjs/agent-avatar/legacy-recipe.js.map +1 -0
- package/lib/commonjs/agent-avatar/messages.js +2 -1
- package/lib/commonjs/agent-avatar/messages.js.map +1 -1
- package/lib/commonjs/agent-avatar/model.js +2 -0
- package/lib/commonjs/agent-avatar/model.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreatorBase.js +245 -21
- package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -1
- package/lib/commonjs/agent-creator/CharacterControls.js +113 -0
- package/lib/commonjs/agent-creator/CharacterControls.js.map +1 -0
- package/lib/commonjs/agent-creator/EmotionPicker.js +51 -18
- package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/commonjs/agent-creator/ShapeArc.js +56 -26
- package/lib/commonjs/agent-creator/ShapeArc.js.map +1 -1
- package/lib/commonjs/agent-creator/ShapeSilhouette.js +62 -0
- package/lib/commonjs/agent-creator/ShapeSilhouette.js.map +1 -0
- package/lib/commonjs/agent-creator/constants.js +48 -1
- package/lib/commonjs/agent-creator/constants.js.map +1 -1
- package/lib/commonjs/agent-creator/messages.js +9 -0
- package/lib/commonjs/agent-creator/messages.js.map +1 -1
- package/lib/commonjs/agent-creator/shared.js +7 -10
- package/lib/commonjs/agent-creator/shared.js.map +1 -1
- package/lib/commonjs/agent-thinking/AgentThinking.js +4 -62
- package/lib/commonjs/agent-thinking/AgentThinking.js.map +1 -1
- package/lib/commonjs/agent-thinking/ThinkingLabel.js +77 -0
- package/lib/commonjs/agent-thinking/ThinkingLabel.js.map +1 -0
- package/lib/commonjs/chart-cards/TokensChartCard.js +20 -5
- package/lib/commonjs/chart-cards/TokensChartCard.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +11 -1
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +11 -1
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +11 -1
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +11 -1
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +11 -1
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +11 -1
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +11 -1
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +11 -1
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +11 -1
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +11 -1
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +11 -1
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +11 -1
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +11 -1
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +11 -1
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/AvatarHandoff.js +2 -4
- package/lib/commonjs/multi-agent-chat/AvatarHandoff.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/ChatAgentProfile.js +97 -0
- package/lib/commonjs/multi-agent-chat/ChatAgentProfile.js.map +1 -0
- package/lib/commonjs/multi-agent-chat/EditorRail.js +4 -0
- package/lib/commonjs/multi-agent-chat/EditorRail.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +89 -126
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/ReplyRow.js +8 -11
- package/lib/commonjs/multi-agent-chat/ReplyRow.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/handoff.js +5 -5
- package/lib/commonjs/multi-agent-chat/handoff.js.map +1 -1
- package/lib/commonjs/project-board/CreateTicketDialog.js +33 -2
- package/lib/commonjs/project-board/CreateTicketDialog.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardBase.js +137 -38
- package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js +34 -28
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js.map +1 -1
- package/lib/commonjs/project-board/TicketDetailDialog.js +6 -3
- package/lib/commonjs/project-board/TicketDetailDialog.js.map +1 -1
- package/lib/commonjs/project-board/TicketGenieSurface.js +17 -7
- package/lib/commonjs/project-board/TicketGenieSurface.js.map +1 -1
- package/lib/commonjs/project-board/TicketGenieSurface.web.js +1 -1
- package/lib/commonjs/project-board/TicketGenieSurface.web.js.map +1 -1
- package/lib/commonjs/project-board/TicketPresence.js +125 -0
- package/lib/commonjs/project-board/TicketPresence.js.map +1 -0
- package/lib/commonjs/project-board/TicketTokenChart.js +23 -0
- package/lib/commonjs/project-board/TicketTokenChart.js.map +1 -0
- package/lib/commonjs/project-board/context.js +3 -1
- package/lib/commonjs/project-board/context.js.map +1 -1
- package/lib/commonjs/search/Search.js +12 -3
- package/lib/commonjs/search/Search.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarToolbar.js +28 -14
- package/lib/commonjs/sidebar/SidebarToolbar.js.map +1 -1
- package/lib/commonjs/text-field/TextField.js +13 -7
- package/lib/commonjs/text-field/TextField.js.map +1 -1
- package/lib/module/agent-avatar/AgentAvatar.js +16 -204
- package/lib/module/agent-avatar/AgentAvatar.js.map +1 -1
- package/lib/module/agent-avatar/AgentAvatarProvider.js +60 -0
- package/lib/module/agent-avatar/AgentAvatarProvider.js.map +1 -0
- package/lib/module/agent-avatar/CharacterAvatar.js +207 -0
- package/lib/module/agent-avatar/CharacterAvatar.js.map +1 -0
- package/lib/module/agent-avatar/ProceduralAvatar.js +212 -0
- package/lib/module/agent-avatar/ProceduralAvatar.js.map +1 -0
- package/lib/module/agent-avatar/artwork.js +3 -3
- package/lib/module/agent-avatar/artwork.js.map +1 -1
- package/lib/module/agent-avatar/avatar-color.js +12 -0
- package/lib/module/agent-avatar/avatar-color.js.map +1 -0
- package/lib/module/agent-avatar/character-html.js +19 -0
- package/lib/module/agent-avatar/character-html.js.map +1 -0
- package/lib/module/agent-avatar/character-runtime-module.js +35 -0
- package/lib/module/agent-avatar/character-runtime-module.js.map +1 -0
- package/lib/module/agent-avatar/character-webview.js +14 -0
- package/lib/module/agent-avatar/character-webview.js.map +1 -0
- package/lib/module/agent-avatar/config-character.js +32 -0
- package/lib/module/agent-avatar/config-character.js.map +1 -0
- package/lib/module/agent-avatar/context.js +2 -0
- package/lib/module/agent-avatar/context.js.map +1 -1
- package/lib/module/agent-avatar/index.js +1 -0
- package/lib/module/agent-avatar/index.js.map +1 -1
- package/lib/module/agent-avatar/legacy-contours.js +53 -0
- package/lib/module/agent-avatar/legacy-contours.js.map +1 -0
- package/lib/module/agent-avatar/legacy-recipe.js +104 -0
- package/lib/module/agent-avatar/legacy-recipe.js.map +1 -0
- package/lib/module/agent-avatar/messages.js +2 -1
- package/lib/module/agent-avatar/messages.js.map +1 -1
- package/lib/module/agent-avatar/model.js +2 -0
- package/lib/module/agent-avatar/model.js.map +1 -1
- package/lib/module/agent-creator/AgentCreatorBase.js +242 -18
- package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -1
- package/lib/module/agent-creator/CharacterControls.js +110 -0
- package/lib/module/agent-creator/CharacterControls.js.map +1 -0
- package/lib/module/agent-creator/EmotionPicker.js +52 -19
- package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/module/agent-creator/ShapeArc.js +58 -28
- package/lib/module/agent-creator/ShapeArc.js.map +1 -1
- package/lib/module/agent-creator/ShapeSilhouette.js +57 -0
- package/lib/module/agent-creator/ShapeSilhouette.js.map +1 -0
- package/lib/module/agent-creator/constants.js +47 -0
- package/lib/module/agent-creator/constants.js.map +1 -1
- package/lib/module/agent-creator/messages.js +9 -0
- package/lib/module/agent-creator/messages.js.map +1 -1
- package/lib/module/agent-creator/shared.js +1 -9
- package/lib/module/agent-creator/shared.js.map +1 -1
- package/lib/module/agent-thinking/AgentThinking.js +5 -63
- package/lib/module/agent-thinking/AgentThinking.js.map +1 -1
- package/lib/module/agent-thinking/ThinkingLabel.js +73 -0
- package/lib/module/agent-thinking/ThinkingLabel.js.map +1 -0
- package/lib/module/chart-cards/TokensChartCard.js +20 -5
- package/lib/module/chart-cards/TokensChartCard.js.map +1 -1
- package/lib/module/locale/translations/ar.js +11 -1
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +11 -1
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +11 -1
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +11 -1
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +11 -1
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +11 -1
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +11 -1
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +11 -1
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +11 -1
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +11 -1
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +11 -1
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +11 -1
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +11 -1
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +11 -1
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/multi-agent-chat/AvatarHandoff.js +3 -5
- package/lib/module/multi-agent-chat/AvatarHandoff.js.map +1 -1
- package/lib/module/multi-agent-chat/ChatAgentProfile.js +94 -0
- package/lib/module/multi-agent-chat/ChatAgentProfile.js.map +1 -0
- package/lib/module/multi-agent-chat/EditorRail.js +4 -0
- package/lib/module/multi-agent-chat/EditorRail.js.map +1 -1
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js +89 -126
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/module/multi-agent-chat/ReplyRow.js +9 -12
- package/lib/module/multi-agent-chat/ReplyRow.js.map +1 -1
- package/lib/module/multi-agent-chat/handoff.js +4 -4
- package/lib/module/multi-agent-chat/handoff.js.map +1 -1
- package/lib/module/project-board/CreateTicketDialog.js +33 -2
- package/lib/module/project-board/CreateTicketDialog.js.map +1 -1
- package/lib/module/project-board/ProjectBoardBase.js +138 -39
- package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/module/project-board/TicketCornerGenieSurface.web.js +35 -29
- package/lib/module/project-board/TicketCornerGenieSurface.web.js.map +1 -1
- package/lib/module/project-board/TicketDetailDialog.js +7 -4
- package/lib/module/project-board/TicketDetailDialog.js.map +1 -1
- package/lib/module/project-board/TicketGenieSurface.js +17 -7
- package/lib/module/project-board/TicketGenieSurface.js.map +1 -1
- package/lib/module/project-board/TicketGenieSurface.web.js +1 -1
- package/lib/module/project-board/TicketGenieSurface.web.js.map +1 -1
- package/lib/module/project-board/TicketPresence.js +119 -0
- package/lib/module/project-board/TicketPresence.js.map +1 -0
- package/lib/module/project-board/TicketTokenChart.js +20 -0
- package/lib/module/project-board/TicketTokenChart.js.map +1 -0
- package/lib/module/project-board/context.js +2 -0
- package/lib/module/project-board/context.js.map +1 -1
- package/lib/module/search/Search.js +12 -3
- package/lib/module/search/Search.js.map +1 -1
- package/lib/module/sidebar/SidebarToolbar.js +29 -15
- package/lib/module/sidebar/SidebarToolbar.js.map +1 -1
- package/lib/module/text-field/TextField.js +13 -7
- package/lib/module/text-field/TextField.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/AgentAvatar.d.ts +2 -2
- package/lib/typescript/commonjs/agent-avatar/AgentAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/AgentAvatarProvider.d.ts +4 -0
- package/lib/typescript/commonjs/agent-avatar/AgentAvatarProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/CharacterAvatar.d.ts +4 -0
- package/lib/typescript/commonjs/agent-avatar/CharacterAvatar.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/ProceduralAvatar.d.ts +6 -0
- package/lib/typescript/commonjs/agent-avatar/ProceduralAvatar.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/artwork.d.ts +2 -1
- package/lib/typescript/commonjs/agent-avatar/artwork.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/avatar-color.d.ts +3 -0
- package/lib/typescript/commonjs/agent-avatar/avatar-color.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/character-html.d.ts +4 -0
- package/lib/typescript/commonjs/agent-avatar/character-html.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/character-runtime-module.d.ts +2 -0
- package/lib/typescript/commonjs/agent-avatar/character-runtime-module.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/character-webview.d.ts +24 -0
- package/lib/typescript/commonjs/agent-avatar/character-webview.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/config-character.d.ts +11 -0
- package/lib/typescript/commonjs/agent-avatar/config-character.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/context.d.ts +12 -0
- package/lib/typescript/commonjs/agent-avatar/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/index.d.ts +3 -1
- package/lib/typescript/commonjs/agent-avatar/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/legacy-contours.d.ts +5 -0
- package/lib/typescript/commonjs/agent-avatar/legacy-contours.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/legacy-recipe.d.ts +40 -0
- package/lib/typescript/commonjs/agent-avatar/legacy-recipe.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/messages.d.ts +1 -0
- package/lib/typescript/commonjs/agent-avatar/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/model.d.ts +3 -0
- package/lib/typescript/commonjs/agent-avatar/model.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/types.d.ts +10 -1
- package/lib/typescript/commonjs/agent-avatar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/CharacterControls.d.ts +8 -0
- package/lib/typescript/commonjs/agent-creator/CharacterControls.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts +12 -1
- package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/ShapeArc.d.ts +11 -2
- package/lib/typescript/commonjs/agent-creator/ShapeArc.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/ShapeSilhouette.d.ts +6 -0
- package/lib/typescript/commonjs/agent-creator/ShapeSilhouette.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/constants.d.ts +44 -0
- package/lib/typescript/commonjs/agent-creator/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/context.d.ts +9 -0
- package/lib/typescript/commonjs/agent-creator/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/messages.d.ts +10 -0
- package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/shared.d.ts +1 -1
- package/lib/typescript/commonjs/agent-creator/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-thinking/AgentThinking.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-thinking/ThinkingLabel.d.ts +7 -0
- package/lib/typescript/commonjs/agent-thinking/ThinkingLabel.d.ts.map +1 -0
- package/lib/typescript/commonjs/chart-cards/TokensChartCard.d.ts +3 -1
- package/lib/typescript/commonjs/chart-cards/TokensChartCard.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/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/AvatarHandoff.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/ChatAgentProfile.d.ts +11 -0
- package/lib/typescript/commonjs/multi-agent-chat/ChatAgentProfile.d.ts.map +1 -0
- package/lib/typescript/commonjs/multi-agent-chat/EditorRail.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/ReplyRow.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/handoff.d.ts +2 -2
- package/lib/typescript/commonjs/multi-agent-chat/handoff.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/CreateTicketDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketPresence.d.ts +17 -0
- package/lib/typescript/commonjs/project-board/TicketPresence.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/TicketTokenChart.d.ts +5 -0
- package/lib/typescript/commonjs/project-board/TicketTokenChart.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/context.d.ts +2 -0
- package/lib/typescript/commonjs/project-board/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/search/Search.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarToolbar.d.ts.map +1 -1
- package/lib/typescript/commonjs/text-field/TextField.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/AgentAvatar.d.ts +2 -2
- package/lib/typescript/module/agent-avatar/AgentAvatar.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/AgentAvatarProvider.d.ts +4 -0
- package/lib/typescript/module/agent-avatar/AgentAvatarProvider.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/CharacterAvatar.d.ts +4 -0
- package/lib/typescript/module/agent-avatar/CharacterAvatar.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/ProceduralAvatar.d.ts +6 -0
- package/lib/typescript/module/agent-avatar/ProceduralAvatar.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/artwork.d.ts +2 -1
- package/lib/typescript/module/agent-avatar/artwork.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/avatar-color.d.ts +3 -0
- package/lib/typescript/module/agent-avatar/avatar-color.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/character-html.d.ts +4 -0
- package/lib/typescript/module/agent-avatar/character-html.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/character-runtime-module.d.ts +2 -0
- package/lib/typescript/module/agent-avatar/character-runtime-module.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/character-webview.d.ts +24 -0
- package/lib/typescript/module/agent-avatar/character-webview.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/config-character.d.ts +11 -0
- package/lib/typescript/module/agent-avatar/config-character.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/context.d.ts +12 -0
- package/lib/typescript/module/agent-avatar/context.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/index.d.ts +3 -1
- package/lib/typescript/module/agent-avatar/index.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/legacy-contours.d.ts +5 -0
- package/lib/typescript/module/agent-avatar/legacy-contours.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/legacy-recipe.d.ts +40 -0
- package/lib/typescript/module/agent-avatar/legacy-recipe.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/messages.d.ts +1 -0
- package/lib/typescript/module/agent-avatar/messages.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/model.d.ts +3 -0
- package/lib/typescript/module/agent-avatar/model.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/types.d.ts +10 -1
- package/lib/typescript/module/agent-avatar/types.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/CharacterControls.d.ts +8 -0
- package/lib/typescript/module/agent-creator/CharacterControls.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/EmotionPicker.d.ts +12 -1
- package/lib/typescript/module/agent-creator/EmotionPicker.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/ShapeArc.d.ts +11 -2
- package/lib/typescript/module/agent-creator/ShapeArc.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/ShapeSilhouette.d.ts +6 -0
- package/lib/typescript/module/agent-creator/ShapeSilhouette.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/constants.d.ts +44 -0
- package/lib/typescript/module/agent-creator/constants.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/context.d.ts +9 -0
- package/lib/typescript/module/agent-creator/context.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/messages.d.ts +10 -0
- package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/shared.d.ts +1 -1
- package/lib/typescript/module/agent-creator/shared.d.ts.map +1 -1
- package/lib/typescript/module/agent-thinking/AgentThinking.d.ts.map +1 -1
- package/lib/typescript/module/agent-thinking/ThinkingLabel.d.ts +7 -0
- package/lib/typescript/module/agent-thinking/ThinkingLabel.d.ts.map +1 -0
- package/lib/typescript/module/chart-cards/TokensChartCard.d.ts +3 -1
- package/lib/typescript/module/chart-cards/TokensChartCard.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/zh.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/AvatarHandoff.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/ChatAgentProfile.d.ts +11 -0
- package/lib/typescript/module/multi-agent-chat/ChatAgentProfile.d.ts.map +1 -0
- package/lib/typescript/module/multi-agent-chat/EditorRail.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/ReplyRow.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/handoff.d.ts +2 -2
- package/lib/typescript/module/multi-agent-chat/handoff.d.ts.map +1 -1
- package/lib/typescript/module/project-board/CreateTicketDialog.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketDetailDialog.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketPresence.d.ts +17 -0
- package/lib/typescript/module/project-board/TicketPresence.d.ts.map +1 -0
- package/lib/typescript/module/project-board/TicketTokenChart.d.ts +5 -0
- package/lib/typescript/module/project-board/TicketTokenChart.d.ts.map +1 -0
- package/lib/typescript/module/project-board/context.d.ts +2 -0
- package/lib/typescript/module/project-board/context.d.ts.map +1 -1
- package/lib/typescript/module/search/Search.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarToolbar.d.ts.map +1 -1
- package/lib/typescript/module/text-field/TextField.d.ts.map +1 -1
- package/package.json +8 -3
- package/src/agent-avatar/AgentAvatar.tsx +16 -296
- package/src/agent-avatar/AgentAvatarProvider.tsx +72 -0
- package/src/agent-avatar/CharacterAvatar.tsx +255 -0
- package/src/agent-avatar/ProceduralAvatar.tsx +303 -0
- package/src/agent-avatar/artwork.ts +3 -3
- package/src/agent-avatar/avatar-color.ts +17 -0
- package/src/agent-avatar/character-html.ts +21 -0
- package/src/agent-avatar/character-runtime-module.ts +37 -0
- package/src/agent-avatar/character-webview.ts +24 -0
- package/src/agent-avatar/config-character.ts +40 -0
- package/src/agent-avatar/context.ts +13 -0
- package/src/agent-avatar/index.ts +4 -1
- package/src/agent-avatar/legacy-contours.ts +76 -0
- package/src/agent-avatar/legacy-recipe.ts +123 -0
- package/src/agent-avatar/messages.ts +1 -0
- package/src/agent-avatar/model.ts +5 -0
- package/src/agent-avatar/types.ts +12 -1
- package/src/agent-creator/AgentCreatorBase.tsx +329 -38
- package/src/agent-creator/CharacterControls.tsx +146 -0
- package/src/agent-creator/EmotionPicker.tsx +43 -21
- package/src/agent-creator/ShapeArc.tsx +83 -29
- package/src/agent-creator/ShapeSilhouette.tsx +65 -0
- package/src/agent-creator/constants.ts +30 -0
- package/src/agent-creator/messages.ts +19 -0
- package/src/agent-creator/shared.ts +1 -15
- package/src/agent-thinking/AgentThinking.tsx +7 -70
- package/src/agent-thinking/ThinkingLabel.tsx +74 -0
- package/src/chart-cards/TokensChartCard.tsx +10 -6
- package/src/locale/translations/ar.ts +10 -1
- package/src/locale/translations/bn.ts +10 -1
- package/src/locale/translations/ca.ts +10 -1
- package/src/locale/translations/de.ts +10 -1
- package/src/locale/translations/es.ts +10 -1
- package/src/locale/translations/fr.ts +10 -1
- package/src/locale/translations/hi.ts +10 -1
- package/src/locale/translations/id.ts +10 -1
- package/src/locale/translations/it.ts +10 -1
- package/src/locale/translations/ja.ts +10 -1
- package/src/locale/translations/pt.ts +10 -1
- package/src/locale/translations/ru.ts +10 -1
- package/src/locale/translations/tr.ts +10 -1
- package/src/locale/translations/zh.ts +10 -1
- package/src/multi-agent-chat/AvatarHandoff.tsx +2 -5
- package/src/multi-agent-chat/ChatAgentProfile.tsx +116 -0
- package/src/multi-agent-chat/EditorRail.tsx +2 -0
- package/src/multi-agent-chat/MultiAgentChatBase.tsx +123 -175
- package/src/multi-agent-chat/ReplyRow.tsx +10 -9
- package/src/multi-agent-chat/handoff.ts +4 -4
- package/src/project-board/CreateTicketDialog.tsx +28 -4
- package/src/project-board/ProjectBoardBase.tsx +115 -21
- package/src/project-board/TicketCornerGenieSurface.web.tsx +11 -6
- package/src/project-board/TicketDetailDialog.tsx +5 -4
- package/src/project-board/TicketGenieSurface.tsx +9 -0
- package/src/project-board/TicketGenieSurface.web.tsx +1 -1
- package/src/project-board/TicketPresence.tsx +137 -0
- package/src/project-board/TicketTokenChart.tsx +14 -0
- package/src/project-board/context.ts +2 -0
- package/src/search/Search.tsx +6 -5
- package/src/sidebar/SidebarToolbar.tsx +27 -15
- package/src/text-field/TextField.tsx +12 -7
|
@@ -5,11 +5,10 @@ import { Platform, useWindowDimensions } from 'react-native';
|
|
|
5
5
|
import Animated, { cancelAnimation, Easing, runOnJS, useAnimatedStyle, useReducedMotion, useSharedValue, withDelay, withTiming } from 'react-native-reanimated';
|
|
6
6
|
import { AgentAvatar } from "../agent-avatar/index.js";
|
|
7
7
|
import { Drawing } from "../agent-avatar/SvgDrawing.js";
|
|
8
|
-
import { useIsRtl } from "../hooks/use-is-rtl.js";
|
|
9
8
|
import { OverlayRoot } from "../overlay/index.js";
|
|
10
9
|
import { StyledView } from "../styles/styled-primitives.js";
|
|
11
10
|
import { useChatComponents } from "./context.js";
|
|
12
|
-
import { avatarFlightPoint,
|
|
11
|
+
import { avatarFlightPoint, profileFlightTarget, measureAvatar } from "./handoff.js";
|
|
13
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
13
|
const AnimatedView = Animated.createAnimatedComponent(StyledView);
|
|
15
14
|
function FlyingAvatar({
|
|
@@ -89,7 +88,6 @@ export function AvatarHandoff({
|
|
|
89
88
|
const {
|
|
90
89
|
FlightHost
|
|
91
90
|
} = useChatComponents();
|
|
92
|
-
const rtl = useIsRtl();
|
|
93
91
|
const [destinations, setDestinations] = useState({});
|
|
94
92
|
const {
|
|
95
93
|
width,
|
|
@@ -102,7 +100,7 @@ export function AvatarHandoff({
|
|
|
102
100
|
const measure = async () => {
|
|
103
101
|
const values = await Promise.all(handoff.avatars.map(async avatar => {
|
|
104
102
|
const rect = await measureAvatar(resolveTarget(avatar.agent.id));
|
|
105
|
-
return [avatar.agent.id, rect && handoff.kind === 'first' && avatar.agent.id !== handoff.responderId ?
|
|
103
|
+
return [avatar.agent.id, rect && handoff.kind === 'first' && avatar.agent.id !== handoff.responderId ? profileFlightTarget(rect) : rect];
|
|
106
104
|
}));
|
|
107
105
|
if (disposed) return;
|
|
108
106
|
const next = Object.fromEntries(values.filter(pair => pair[1] !== null));
|
|
@@ -119,7 +117,7 @@ export function AvatarHandoff({
|
|
|
119
117
|
disposed = true;
|
|
120
118
|
cancelAnimationFrame(frame);
|
|
121
119
|
};
|
|
122
|
-
}, [handoff.chatId, handoff.kind, resolveTarget, onFinish, width, height
|
|
120
|
+
}, [handoff.chatId, handoff.kind, resolveTarget, onFinish, width, height]);
|
|
123
121
|
const relative = rect => Platform.OS === 'web' || !origin ? rect : {
|
|
124
122
|
...rect,
|
|
125
123
|
x: rect.x - origin.x,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useState","Platform","useWindowDimensions","Animated","cancelAnimation","Easing","runOnJS","useAnimatedStyle","useReducedMotion","useSharedValue","withDelay","withTiming","AgentAvatar","Drawing","
|
|
1
|
+
{"version":3,"names":["useEffect","useState","Platform","useWindowDimensions","Animated","cancelAnimation","Easing","runOnJS","useAnimatedStyle","useReducedMotion","useSharedValue","withDelay","withTiming","AgentAvatar","Drawing","OverlayRoot","StyledView","useChatComponents","avatarFlightPoint","profileFlightTarget","measureAvatar","jsx","_jsx","AnimatedView","createAnimatedComponent","FlyingAvatar","avatar","target","index","kind","answering","onArrive","reduced","progress","from","agentId","agent","id","duration","delay","value","easing","bezier","linear","finished","animated","point","t","transform","translateX","x","translateY","y","scaleX","width","scaleY","height","opacity","Math","max","pointerEvents","accessibilityElementsHidden","importantForAccessibility","testID","style","position","left","top","transformOrigin","children","drawing","context","size","config","paused","AvatarHandoff","handoff","resolveTarget","origin","onFinish","FlightHost","destinations","setDestinations","disposed","frame","attempts","measure","values","Promise","all","avatars","map","rect","responderId","next","Object","fromEntries","filter","pair","previous","JSON","stringify","keys","length","requestAnimationFrame","cancelAnimationFrame","chatId","relative","OS","waiting","a","right","bottom","arrived","includes","destination","undefined","traveling","findIndex"],"sourceRoot":"../../../src","sources":["multi-agent-chat/AvatarHandoff.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,QAAQ,EAAEC,mBAAmB,QAAQ,cAAc;AAC5D,OAAOC,QAAQ,IACbC,eAAe,EACfC,MAAM,EACNC,OAAO,EACPC,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAc,EACdC,SAAS,EACTC,UAAU,QACL,yBAAyB;AAChC,SAASC,WAAW,QAAQ,0BAAiB;AAC7C,SAASC,OAAO,QAAQ,+BAA4B;AACpD,SAASC,WAAW,QAAQ,qBAAY;AACxC,SAASC,UAAU,QAAQ,gCAA6B;AACxD,SAASC,iBAAiB,QAAQ,cAAW;AAC7C,SACEC,iBAAiB,EACjBC,mBAAmB,EACnBC,aAAa,QAIR,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AACnB,MAAMC,YAAY,GAAGnB,QAAQ,CAACoB,uBAAuB,CAACR,UAAU,CAAC;AACjE,SAASS,YAAYA,CAAC;EACpBC,MAAM;EACNC,MAAM;EACNC,KAAK;EACLC,IAAI;EACJC,SAAS;EACTC;AAQF,CAAC,EAAE;EACD,MAAMC,OAAO,GAAGvB,gBAAgB,CAAC,CAAC;IAChCwB,QAAQ,GAAGvB,cAAc,CAAC,CAAC,CAAC;EAC9B;EACA;EACA,MAAMwB,IAAI,GAAGR,MAAM,CAACQ,IAAI;EACxB,MAAMC,OAAO,GAAGT,MAAM,CAACU,KAAK,CAACC,EAAE;EAC/B,MAAMC,QAAQ,GAAGT,IAAI,KAAK,OAAO,GAAG,GAAG,GAAGC,SAAS,GAAG,GAAG,GAAG,GAAG;IAC7DS,KAAK,GAAGV,IAAI,KAAK,OAAO,GAAGD,KAAK,GAAG,EAAE,GAAGE,SAAS,GAAG,CAAC,GAAGF,KAAK,GAAG,GAAG;EACrE5B,SAAS,CAAC,MAAM;IACdiC,Q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AAE;YAAAa,QAAA,EAED3C,MAAM,CAAC4C,OAAO,gBACbhD,IAAA,CAACR,OAAO;cACNyD,OAAO,EAAE7C,MAAM,CAAC4C,OAAQ;cACxBE,IAAI,EAAE9C,MAAM,CAACQ,IAAI,CAACoB;YAAM,CACzB,CAAC,gBAEFhC,IAAA,CAACT,WAAW;cACV4D,MAAM,EAAE/C,MAAM,CAACU,KAAK,CAACV,MAAO;cAC5B8C,IAAI,EAAE9C,MAAM,CAACQ,IAAI,CAACoB,KAAM;cACxBoB,MAAM;YAAA,CACP;UACF,GArBIhD,MAAM,CAACU,KAAK,CAACC,EAsBR,CACb;QACH,CAAC;MAAC,CACM;IAAC,CACF;EAAC,CACJ,CAAC;AAEjB","ignoreList":[]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
5
|
+
import { useReducedMotion } from 'react-native-reanimated';
|
|
6
|
+
import { AgentAvatar } from "../agent-avatar/index.js";
|
|
7
|
+
import { useMessages } from "../locale/messages.js";
|
|
8
|
+
import { StyledPressable, StyledView } from "../styles/styled-primitives.js";
|
|
9
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
10
|
+
import { Text } from "../typography/index.js";
|
|
11
|
+
import { MULTI_AGENT_CHAT_MESSAGES, formatChatMessage } from "./messages.js";
|
|
12
|
+
|
|
13
|
+
/** One profile target: animated artwork above an intrinsically sized name pill. */
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
export function ChatAgentProfile({
|
|
16
|
+
agents,
|
|
17
|
+
avatarRef,
|
|
18
|
+
expanded,
|
|
19
|
+
onPress
|
|
20
|
+
}) {
|
|
21
|
+
const {
|
|
22
|
+
messages
|
|
23
|
+
} = useMessages(MULTI_AGENT_CHAT_MESSAGES);
|
|
24
|
+
const {
|
|
25
|
+
colors
|
|
26
|
+
} = useTheme();
|
|
27
|
+
const reduced = useReducedMotion();
|
|
28
|
+
const [pressed, setPressed] = useState(false);
|
|
29
|
+
const [hovered, setHovered] = useState(false);
|
|
30
|
+
const name = agents.length === 1 ? agents[0].name : agents.slice(0, 3).map(agent => agent.label || agent.name).join(' + ');
|
|
31
|
+
const label = name || messages.chooseYourTeammates;
|
|
32
|
+
return /*#__PURE__*/_jsxs(StyledPressable, {
|
|
33
|
+
accessibilityRole: "button",
|
|
34
|
+
accessibilityLabel: agents.length === 1 ? formatChatMessage(messages.editAgent, agents[0].name) : messages.editConversationAgents,
|
|
35
|
+
"aria-expanded": expanded,
|
|
36
|
+
onPress: onPress,
|
|
37
|
+
onPressIn: () => setPressed(true),
|
|
38
|
+
onPressOut: () => setPressed(false),
|
|
39
|
+
onHoverIn: () => setHovered(true),
|
|
40
|
+
onHoverOut: () => setHovered(false),
|
|
41
|
+
className: `group/chat-profile relative min-w-0 max-w-full select-none items-center outline-none ${Platform.OS === 'web' ? 'motion-safe:active:scale-95' : ''}`,
|
|
42
|
+
style: Platform.OS === 'web' ? undefined : {
|
|
43
|
+
transform: [{
|
|
44
|
+
scale: pressed && !reduced ? 0.95 : 1
|
|
45
|
+
}]
|
|
46
|
+
},
|
|
47
|
+
testID: "chat-agent-profile",
|
|
48
|
+
children: [/*#__PURE__*/_jsx(StyledView, {
|
|
49
|
+
ref: avatarRef,
|
|
50
|
+
collapsable: false,
|
|
51
|
+
pointerEvents: "none",
|
|
52
|
+
"aria-hidden": true,
|
|
53
|
+
className: "relative z-10 -mb-0.5 size-14",
|
|
54
|
+
style: {
|
|
55
|
+
width: 56,
|
|
56
|
+
height: 56,
|
|
57
|
+
marginBottom: -2
|
|
58
|
+
},
|
|
59
|
+
children: agents.slice(0, 3).map((agent, index) => {
|
|
60
|
+
const single = agents.length === 1;
|
|
61
|
+
const size = single ? 56 : 36;
|
|
62
|
+
return /*#__PURE__*/_jsx(StyledView, {
|
|
63
|
+
style: {
|
|
64
|
+
position: 'absolute',
|
|
65
|
+
width: size,
|
|
66
|
+
height: size,
|
|
67
|
+
insetInlineStart: single ? 0 : index === 1 ? 20 : index === 2 ? 10 : 0,
|
|
68
|
+
top: index === 2 ? 20 : 0
|
|
69
|
+
},
|
|
70
|
+
children: /*#__PURE__*/_jsx(AgentAvatar, {
|
|
71
|
+
config: agent.avatar,
|
|
72
|
+
size: size
|
|
73
|
+
})
|
|
74
|
+
}, agent.id);
|
|
75
|
+
})
|
|
76
|
+
}), /*#__PURE__*/_jsxs(StyledView, {
|
|
77
|
+
pointerEvents: "none",
|
|
78
|
+
className: "relative min-w-0 max-w-full items-center justify-center rounded-[14px] px-2.5 py-1",
|
|
79
|
+
children: [/*#__PURE__*/_jsx(StyledView, {
|
|
80
|
+
className: "absolute inset-0 rounded-[14px] group-focus-visible/chat-profile:ring-2 group-focus-visible/chat-profile:ring-border-focus-ring",
|
|
81
|
+
style: {
|
|
82
|
+
backgroundColor: hovered ? colors.backgroundTertiary : colors.backgroundSecondary,
|
|
83
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
84
|
+
borderColor: colors.border
|
|
85
|
+
}
|
|
86
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
87
|
+
numberOfLines: 1,
|
|
88
|
+
className: "max-w-full truncate text-[16px] leading-5 font-medium text-text-primary",
|
|
89
|
+
children: [label, agents.length > 3 ? ` +${agents.length - 3}` : '']
|
|
90
|
+
})]
|
|
91
|
+
})]
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=ChatAgentProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","Platform","StyleSheet","useReducedMotion","AgentAvatar","useMessages","StyledPressable","StyledView","useTheme","Text","MULTI_AGENT_CHAT_MESSAGES","formatChatMessage","jsx","_jsx","jsxs","_jsxs","ChatAgentProfile","agents","avatarRef","expanded","onPress","messages","colors","reduced","pressed","setPressed","hovered","setHovered","name","length","slice","map","agent","label","join","chooseYourTeammates","accessibilityRole","accessibilityLabel","editAgent","editConversationAgents","onPressIn","onPressOut","onHoverIn","onHoverOut","className","OS","style","undefined","transform","scale","testID","children","ref","collapsable","pointerEvents","width","height","marginBottom","index","single","size","position","insetInlineStart","top","config","avatar","id","backgroundColor","backgroundTertiary","backgroundSecondary","borderWidth","hairlineWidth","borderColor","border","numberOfLines"],"sourceRoot":"../../../src","sources":["multi-agent-chat/ChatAgentProfile.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAkB,OAAO;AAC1C,SAASC,QAAQ,EAAEC,UAAU,QAAmB,cAAc;AAC9D,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,WAAW,QAAQ,0BAAiB;AAC7C,SAASC,WAAW,QAAQ,uBAAoB;AAChD,SAASC,eAAe,EAAEC,UAAU,QAAQ,gCAA6B;AACzE,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AAEpC,SAASC,yBAAyB,EAAEC,iBAAiB,QAAQ,eAAY;;AAEzE;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,OAAO,SAASC,gBAAgBA,CAAC;EAC/BC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC;AAMF,CAAC,EAAE;EACD,MAAM;IAAEC;EAAS,CAAC,GAAGhB,WAAW,CAACK,yBAAyB,CAAC;EAC3D,MAAM;IAAEY;EAAO,CAAC,GAAGd,QAAQ,CAAC,CAAC;EAC7B,MAAMe,OAAO,GAAGpB,gBAAgB,CAAC,CAAC;EAClC,MAAM,CAACqB,OAAO,EAAEC,UAAU,CAAC,GAAGzB,QAAQ,CAAC,KAAK,CAAC;EAC7C,MAAM,CAAC0B,OAAO,EAAEC,UAAU,CAAC,GAAG3B,QAAQ,CAAC,KAAK,CAAC;EAC7C,MAAM4B,IAAI,GACRX,MAAM,CAACY,MAAM,KAAK,CAAC,GACfZ,MAAM,CAAC,CAAC,CAAC,CAAEW,IAAI,G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AAE,CAAE;QACjB9B,SAAS,EAAC,yEAAyE;QAAAO,QAAA,GAElFlB,KAAK,EACLhB,MAAM,CAACY,MAAM,GAAG,CAAC,GAAG,KAAKZ,MAAM,CAACY,MAAM,GAAG,CAAC,EAAE,GAAG,EAAE;MAAA,CAC9C,CAAC;IAAA,CACG,CAAC;EAAA,CACE,CAAC;AAEtB","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useEffect, useRef, useState } from 'react';
|
|
4
|
+
import { Platform } from 'react-native';
|
|
4
5
|
import Animated, { Easing, runOnJS, useAnimatedStyle, useReducedMotion, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
5
6
|
import { useIsRtl } from "../hooks/use-is-rtl.js";
|
|
6
7
|
import { StyledView } from "../styles/styled-primitives.js";
|
|
@@ -36,6 +37,9 @@ export function EditorRail({
|
|
|
36
37
|
}]
|
|
37
38
|
}), [progress, sign]);
|
|
38
39
|
return /*#__PURE__*/_jsx(AnimatedView, {
|
|
40
|
+
...(Platform.OS === 'web' && !active ? {
|
|
41
|
+
inert: true
|
|
42
|
+
} : {}),
|
|
39
43
|
pointerEvents: active ? 'auto' : 'none',
|
|
40
44
|
"aria-hidden": !active,
|
|
41
45
|
accessibilityElementsHidden: !active,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useRef","useState","Animated","Easing","runOnJS","useAnimatedStyle","useReducedMotion","useSharedValue","withTiming","useIsRtl","StyledView","jsx","_jsx","AnimatedView","createAnimatedComponent","EditorRail","active","children","sign","reduced","progress","content","mounted","setMounted","current","value","duration","easing","bezier","finished","outer","width","inner","opacity","transform","translateX","pointerEvents","accessibilityElementsHidden","importantForAccessibility","style","minHeight","flexShrink","overflow","height","paddingInlineStart"],"sourceRoot":"../../../src","sources":["multi-agent-chat/EditorRail.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAwB,OAAO;AACnE,OAAOC,QAAQ,IACbC,MAAM,EACNC,OAAO,EACPC,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAChC,SAASC,QAAQ,QAAQ,wBAAqB;AAC9C,SAASC,UAAU,QAAQ,gCAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AACzD,MAAMC,YAAY,GAAGX,QAAQ,CAACY,uBAAuB,CAACJ,UAAU,CAAC;AACjE;AACA,OAAO,SAASK,UAAUA,CAAC;EACzBC,MAAM;EACNC;AAIF,CAAC,EAAE;EACD,MAAMC,IAAI,GAAGT,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC;IAC9BU,OAAO,GAAGb,gBAAgB,CAAC,CAAC;EAC9B,MAAMc,QAAQ,GAAGb,cAAc,CAACS,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7CK,OAAO,
|
|
1
|
+
{"version":3,"names":["useEffect","useRef","useState","Platform","Animated","Easing","runOnJS","useAnimatedStyle","useReducedMotion","useSharedValue","withTiming","useIsRtl","StyledView","jsx","_jsx","AnimatedView","createAnimatedComponent","EditorRail","active","children","sign","reduced","progress","content","mounted","setMounted","current","value","duration","easing","bezier","finished","outer","width","inner","opacity","transform","translateX","OS","inert","pointerEvents","accessibilityElementsHidden","importantForAccessibility","style","minHeight","flexShrink","overflow","height","paddingInlineStart"],"sourceRoot":"../../../src","sources":["multi-agent-chat/EditorRail.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAwB,OAAO;AACnE,SAASC,QAAQ,QAAQ,cAAc;AACvC,OAAOC,QAAQ,IACbC,MAAM,EACNC,OAAO,EACPC,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAChC,SAASC,QAAQ,QAAQ,wBAAqB;AAC9C,SAASC,UAAU,QAAQ,gCAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA;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B,OAAO,EAAEb,QAAQ,CAACK,KAAK;IACvBS,SAAS,EAAE,CAAC;MAAEC,UAAU,EAAE,EAAE,GAAGjB,IAAI,IAAI,CAAC,GAAGE,QAAQ,CAACK,KAAK;IAAE,CAAC;EAC9D,CAAC,CAAC,EACF,CAACL,QAAQ,EAAEF,IAAI,CACjB,CAAC;EACD,oBACEN,IAAA,CAACC,YAAY;IAAA,IACNZ,QAAQ,CAACmC,EAAE,KAAK,KAAK,IAAI,CAACpB,MAAM,GAAG;MAAEqB,KAAK,EAAE;IAAK,CAAC,GAAG,CAAC,CAAC;IAC5DC,aAAa,EAAEtB,MAAM,GAAG,MAAM,GAAG,MAAO;IACxC,eAAa,CAACA,MAAO;IACrBuB,2BAA2B,EAAE,CAACvB,MAAO;IACrCwB,yBAAyB,EAAExB,MAAM,GAAG,MAAM,GAAG,qBAAsB;IACnEyB,KAAK,EAAE,CAAC;MAAEC,SAAS,EAAE,CAAC;MAAEC,UAAU,EAAE,CAAC;MAAEC,QAAQ,EAAE;IAAS,CAAC,EAAEd,KAAK,CAAE;IAAAb,QAAA,EAEnEK,OAAO,iBACNV,IAAA,CAACC,YAAY;MACX4B,KAAK,EAAE,CACL;QAAEI,MAAM,EAAE,MAAM;QAAEd,KAAK,EAAE,GAAG;QAAEe,kBAAkB,EAAE;MAAG,CAAC,EACtDd,KAAK,CACL;MAAAf,QAAA,EAEDI,OAAO,CAACG;IAAO,CACJ;EACf,CACW,CAAC;AAEnB","ignoreList":[]}
|
|
@@ -25,6 +25,7 @@ import { Text } from "../typography/index.js";
|
|
|
25
25
|
import { AvatarHandoff } from "./AvatarHandoff.js";
|
|
26
26
|
import { ChatDialogFrame, SupportCopy } from "./ChatDialogFrame.js";
|
|
27
27
|
import { ChatSidebar } from "./ChatSidebar.js";
|
|
28
|
+
import { ChatAgentProfile } from "./ChatAgentProfile.js";
|
|
28
29
|
import { useChatComponents } from "./context.js";
|
|
29
30
|
import { conversationFor, formatDemoReply, nextAgentIdentity, removeConversation, updateConversationAgents } from "./data.js";
|
|
30
31
|
import { EditorRail } from "./EditorRail.js";
|
|
@@ -40,39 +41,6 @@ import { chatId, useReplies } from "./use-replies.js";
|
|
|
40
41
|
import { useWorkspace } from "./use-workspace.js";
|
|
41
42
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
42
43
|
const AnimatedView = Animated.createAnimatedComponent(StyledView);
|
|
43
|
-
function AgentStack({
|
|
44
|
-
agents,
|
|
45
|
-
size = 40,
|
|
46
|
-
nodes
|
|
47
|
-
}) {
|
|
48
|
-
return /*#__PURE__*/_jsx(StyledView, {
|
|
49
|
-
style: {
|
|
50
|
-
width: size,
|
|
51
|
-
height: size
|
|
52
|
-
},
|
|
53
|
-
accessibilityLabel: agents.map(a => a.name).join(', '),
|
|
54
|
-
children: agents.slice(0, 3).map((agent, i) => /*#__PURE__*/_jsx(StyledView, {
|
|
55
|
-
ref: node => {
|
|
56
|
-
if (nodes) {
|
|
57
|
-
if (node) nodes.set(agent.id, node);else nodes.delete(agent.id);
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
collapsable: false,
|
|
61
|
-
style: {
|
|
62
|
-
width: agents.length === 1 ? size : size * 0.65,
|
|
63
|
-
height: agents.length === 1 ? size : size * 0.65,
|
|
64
|
-
position: 'absolute',
|
|
65
|
-
left: agents.length === 1 ? 0 : i === 1 ? size * 0.4 : i === 2 ? size * 0.2 : 0,
|
|
66
|
-
top: i === 2 ? size * 0.4 : 0
|
|
67
|
-
},
|
|
68
|
-
children: /*#__PURE__*/_jsx(AgentAvatar, {
|
|
69
|
-
config: agent.avatar,
|
|
70
|
-
size: agents.length === 1 ? size : size * 0.65,
|
|
71
|
-
label: agent.name
|
|
72
|
-
})
|
|
73
|
-
}, agent.id))
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
44
|
/** Shared workspace implementation. Platform bindings select Bloom's existing surfaces only. */
|
|
77
45
|
export function MultiAgentChatBase(props) {
|
|
78
46
|
const {
|
|
@@ -92,7 +60,6 @@ export function MultiAgentChatBase(props) {
|
|
|
92
60
|
Dialog,
|
|
93
61
|
ComposerPanel,
|
|
94
62
|
AgentCreator,
|
|
95
|
-
Surface,
|
|
96
63
|
Dropdown: D
|
|
97
64
|
} = useChatComponents();
|
|
98
65
|
const {
|
|
@@ -103,7 +70,7 @@ export function MultiAgentChatBase(props) {
|
|
|
103
70
|
const root = useRef(null),
|
|
104
71
|
pickerAvatars = useRef(new Map()),
|
|
105
72
|
emptyAvatars = useRef(new Map()),
|
|
106
|
-
|
|
73
|
+
profileAvatarRef = useRef(null),
|
|
107
74
|
replyAvatars = useRef(new Map());
|
|
108
75
|
const [handoff, setHandoff] = useState(null),
|
|
109
76
|
[flightOrigin, setFlightOrigin] = useState(null);
|
|
@@ -119,7 +86,7 @@ export function MultiAgentChatBase(props) {
|
|
|
119
86
|
arrived
|
|
120
87
|
};
|
|
121
88
|
}), []);
|
|
122
|
-
const resolveFlightTarget = useCallback(id => handoff?.kind === 'group' ? emptyAvatars.current.get(id) : id === handoff?.responderId ? replyAvatars.current.get(id) :
|
|
89
|
+
const resolveFlightTarget = useCallback(id => handoff?.kind === 'group' ? emptyAvatars.current.get(id) : id === handoff?.responderId ? replyAvatars.current.get(id) : profileAvatarRef.current ?? undefined, [handoff?.kind, handoff?.responderId]);
|
|
123
90
|
const {
|
|
124
91
|
width
|
|
125
92
|
} = useWindowDimensions();
|
|
@@ -192,7 +159,7 @@ export function MultiAgentChatBase(props) {
|
|
|
192
159
|
});
|
|
193
160
|
if (compact) open('editor');
|
|
194
161
|
};
|
|
195
|
-
const saveAgent = agent => {
|
|
162
|
+
const saveAgent = useCallback(agent => {
|
|
196
163
|
setEditor(agent);
|
|
197
164
|
update(s => {
|
|
198
165
|
const previous = s.agents.find(a => a.id === agent.id);
|
|
@@ -205,7 +172,7 @@ export function MultiAgentChatBase(props) {
|
|
|
205
172
|
} : c)
|
|
206
173
|
};
|
|
207
174
|
});
|
|
208
|
-
};
|
|
175
|
+
}, [update]);
|
|
209
176
|
const createAgent = () => {
|
|
210
177
|
const agent = {
|
|
211
178
|
id: chatId('agent'),
|
|
@@ -329,20 +296,20 @@ export function MultiAgentChatBase(props) {
|
|
|
329
296
|
follow.current = true;
|
|
330
297
|
void replies.send(text, id, avatars.length ? 800 : 0, chat);
|
|
331
298
|
};
|
|
332
|
-
const editPanel = editor && /*#__PURE__*/_jsx(AgentCreator, {
|
|
299
|
+
const editPanel = useMemo(() => editor && /*#__PURE__*/_jsx(AgentCreator, {
|
|
333
300
|
agent: editor,
|
|
334
301
|
onChange: saveAgent,
|
|
335
302
|
voices: voices,
|
|
336
303
|
onPreviewVoice: onPreviewVoice,
|
|
337
304
|
onClose: () => {
|
|
338
305
|
setEditor(null);
|
|
339
|
-
if (panel === 'editor') close();
|
|
306
|
+
if (panel === 'editor') surface.close();
|
|
340
307
|
},
|
|
341
308
|
style: {
|
|
342
309
|
flex: 1
|
|
343
310
|
}
|
|
344
|
-
});
|
|
345
|
-
const sortedChats = useMemo(() => workspace.chats.filter(c => `${c.customTitle || c.title} ${workspace.agents.filter(a => c.agentIds.includes(a.id)).map(a => `${a.name} ${a.label}`).join(' ')} ${c.messages[c.messages.length - 1]?.text ?? ''}`.toLocaleLowerCase().includes(query.toLocaleLowerCase())).sort((a, b) => Number(!!b.pinned) - Number(!!a.pinned)), [workspace.chats, query]);
|
|
311
|
+
}), [AgentCreator, editor, saveAgent, voices, onPreviewVoice, panel, surface]);
|
|
312
|
+
const sortedChats = useMemo(() => workspace.chats.filter(c => `${c.customTitle || c.title} ${workspace.agents.filter(a => c.agentIds.includes(a.id)).map(a => `${a.name} ${a.label}`).join(' ')} ${c.messages[c.messages.length - 1]?.text ?? ''}`.toLocaleLowerCase().includes(query.toLocaleLowerCase())).sort((a, b) => Number(!!b.pinned) - Number(!!a.pinned)), [workspace.chats, workspace.agents, query]);
|
|
346
313
|
const sidebar = /*#__PURE__*/_jsx(ChatSidebar, {
|
|
347
314
|
agents: workspace.agents,
|
|
348
315
|
chats: sortedChats,
|
|
@@ -446,93 +413,89 @@ export function MultiAgentChatBase(props) {
|
|
|
446
413
|
accessibilityLabel: messages.agentConversation,
|
|
447
414
|
className: "flex min-h-0 min-w-0 flex-1 flex-col rounded-3xl bg-background-secondary-default",
|
|
448
415
|
children: [/*#__PURE__*/_jsxs(StyledView, {
|
|
449
|
-
className: "
|
|
450
|
-
children: [
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
fill: colors.backgroundSecondary,
|
|
463
|
-
radius: 999,
|
|
464
|
-
style: {
|
|
465
|
-
position: 'absolute',
|
|
466
|
-
inset: 0
|
|
467
|
-
},
|
|
468
|
-
pointerEvents: "none"
|
|
469
|
-
}), /*#__PURE__*/_jsxs(StyledPressable, {
|
|
470
|
-
accessibilityRole: "button",
|
|
471
|
-
accessibilityLabel: participants.length === 1 ? formatChatMessage(messages.editAgent, participants[0].name) : messages.editConversationAgents,
|
|
472
|
-
onPress: () => participants.length === 1 ? edit(participants[0]) : chooseAgents(chat?.agentIds),
|
|
473
|
-
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",
|
|
474
|
-
children: [/*#__PURE__*/_jsx(AgentStack, {
|
|
475
|
-
agents: participants,
|
|
476
|
-
size: 20
|
|
477
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
478
|
-
numberOfLines: 1,
|
|
479
|
-
className: "truncate text-body-2-medium text-text-secondary",
|
|
480
|
-
children: participants.length === 1 ? participants[0].name : participants.slice(0, 3).map(a => a.label || a.name).join(' + ')
|
|
481
|
-
}), participants.length > 3 && /*#__PURE__*/_jsxs(Text, {
|
|
482
|
-
className: "shrink-0",
|
|
483
|
-
children: ["+", participants.length - 3]
|
|
484
|
-
})]
|
|
485
|
-
})]
|
|
416
|
+
className: "relative h-[100px] shrink-0",
|
|
417
|
+
children: [/*#__PURE__*/_jsx(StyledView, {
|
|
418
|
+
pointerEvents: "box-none",
|
|
419
|
+
className: "absolute inset-0 flex-row justify-center px-16 pt-1.5",
|
|
420
|
+
children: /*#__PURE__*/_jsx(StyledView, {
|
|
421
|
+
pointerEvents: "box-none",
|
|
422
|
+
className: "min-w-0 max-w-full items-center self-start",
|
|
423
|
+
children: /*#__PURE__*/_jsx(ChatAgentProfile, {
|
|
424
|
+
agents: participants,
|
|
425
|
+
avatarRef: profileAvatarRef,
|
|
426
|
+
expanded: participants.length === 1 ? editor?.id === participants[0].id : panel === 'picker',
|
|
427
|
+
onPress: () => participants.length === 1 ? edit(participants[0]) : chooseAgents(chat?.agentIds)
|
|
428
|
+
})
|
|
486
429
|
})
|
|
487
|
-
}), /*#__PURE__*/_jsx(
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
430
|
+
}), phone && /*#__PURE__*/_jsx(StyledView, {
|
|
431
|
+
style: {
|
|
432
|
+
position: 'absolute',
|
|
433
|
+
top: 12,
|
|
434
|
+
insetInlineStart: 12
|
|
435
|
+
},
|
|
436
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
|
437
|
+
icon: RiMenuLine,
|
|
438
|
+
accessibilityLabel: messages.openConversations,
|
|
439
|
+
size: "sm",
|
|
440
|
+
onPress: () => open('navigation')
|
|
496
441
|
})
|
|
497
|
-
}), /*#__PURE__*/_jsxs(
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
442
|
+
}), /*#__PURE__*/_jsxs(StyledView, {
|
|
443
|
+
className: "flex-row items-center gap-2",
|
|
444
|
+
style: {
|
|
445
|
+
position: 'absolute',
|
|
446
|
+
top: 12,
|
|
447
|
+
insetInlineEnd: 12
|
|
448
|
+
},
|
|
449
|
+
children: [/*#__PURE__*/_jsx(StyledPressable, {
|
|
450
|
+
accessibilityRole: "button",
|
|
451
|
+
accessibilityLabel: messages.copyConversation,
|
|
452
|
+
onPress: () => chat && void copy(transcript(chat), messages.conversationCopied),
|
|
453
|
+
className: "rounded p-1 text-foreground-icon-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
|
|
454
|
+
children: /*#__PURE__*/_jsx(RiShare2Line, {
|
|
455
|
+
width: 16,
|
|
456
|
+
height: 16,
|
|
457
|
+
fill: colors.textSecondary
|
|
509
458
|
})
|
|
510
|
-
}), /*#__PURE__*/_jsxs(D.
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
className: "
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}),
|
|
534
|
-
|
|
535
|
-
|
|
459
|
+
}), /*#__PURE__*/_jsxs(D.DropdownMenu, {
|
|
460
|
+
children: [/*#__PURE__*/_jsx(D.DropdownMenuTrigger, {
|
|
461
|
+
asChild: true,
|
|
462
|
+
children: /*#__PURE__*/_jsx(StyledPressable, {
|
|
463
|
+
accessibilityRole: "button",
|
|
464
|
+
accessibilityLabel: messages.conversationOptions,
|
|
465
|
+
className: "rounded p-1 text-foreground-icon-secondary",
|
|
466
|
+
children: /*#__PURE__*/_jsx(RiMoreFill, {
|
|
467
|
+
width: 16,
|
|
468
|
+
height: 16,
|
|
469
|
+
fill: colors.textSecondary
|
|
470
|
+
})
|
|
471
|
+
})
|
|
472
|
+
}), /*#__PURE__*/_jsxs(D.DropdownMenuContent, {
|
|
473
|
+
label: messages.conversationOptions,
|
|
474
|
+
align: "end",
|
|
475
|
+
className: "rounded-[14px] p-1",
|
|
476
|
+
style: {
|
|
477
|
+
borderRadius: 14,
|
|
478
|
+
padding: 4
|
|
479
|
+
},
|
|
480
|
+
children: [/*#__PURE__*/_jsx(D.DropdownMenuLabel, {
|
|
481
|
+
children: messages.inThisConversation
|
|
482
|
+
}), participants.map(agent => /*#__PURE__*/_jsx(D.DropdownMenuItem, {
|
|
483
|
+
onPress: () => edit(agent),
|
|
484
|
+
leading: /*#__PURE__*/_jsx(AgentAvatar, {
|
|
485
|
+
config: agent.avatar,
|
|
486
|
+
size: 20
|
|
487
|
+
}),
|
|
488
|
+
className: "px-2 py-1.5 text-body-medium",
|
|
489
|
+
children: formatChatMessage(messages.editAgent, agent.name)
|
|
490
|
+
}, agent.id)), /*#__PURE__*/_jsx(D.DropdownMenuItem, {
|
|
491
|
+
onPress: () => chooseAgents(chat?.agentIds),
|
|
492
|
+
leading: /*#__PURE__*/_jsx(RiGroupLine, {
|
|
493
|
+
width: 16,
|
|
494
|
+
height: 16
|
|
495
|
+
}),
|
|
496
|
+
className: "px-2 py-1.5 text-body-medium",
|
|
497
|
+
children: messages.startAGroupChat
|
|
498
|
+
})]
|
|
536
499
|
})]
|
|
537
500
|
})]
|
|
538
501
|
})]
|