@oxy.so/bloom 6.3.0 → 7.0.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/README.md +3 -3
- package/docs/adoption-matrix.mdx +20 -17
- 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/page-header.mdx +18 -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 +179 -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/page-header/EdgeScrim.js +7 -3
- package/lib/commonjs/page-header/EdgeScrim.js.map +1 -1
- package/lib/commonjs/page-header/index.js +13 -0
- package/lib/commonjs/page-header/index.js.map +1 -1
- 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/SidebarScrollArea.js +3 -5
- package/lib/commonjs/sidebar/SidebarScrollArea.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 +166 -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 +174 -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/page-header/EdgeScrim.js +7 -3
- package/lib/module/page-header/EdgeScrim.js.map +1 -1
- package/lib/module/page-header/index.js +1 -0
- package/lib/module/page-header/index.js.map +1 -1
- 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/SidebarScrollArea.js +3 -5
- package/lib/module/sidebar/SidebarScrollArea.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 +161 -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/page-header/EdgeScrim.d.ts +10 -1
- package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/index.d.ts +2 -0
- package/lib/typescript/commonjs/page-header/index.d.ts.map +1 -1
- 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/page-header/EdgeScrim.d.ts +10 -1
- package/lib/typescript/module/page-header/EdgeScrim.d.ts.map +1 -1
- package/lib/typescript/module/page-header/index.d.ts +2 -0
- package/lib/typescript/module/page-header/index.d.ts.map +1 -1
- 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 +258 -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/page-header/EdgeScrim.tsx +13 -3
- package/src/page-header/index.ts +2 -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/SidebarScrollArea.tsx +1 -1
- package/src/sidebar/SidebarTeamMenu.tsx +1 -0
- package/src/sidebar/SidebarToolbar.tsx +176 -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,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { DrawingPath } from "./drawing.js";
|
|
4
|
+
import { ENTRANCE_SECONDS, entrancePose } from "./entrance.js";
|
|
5
|
+
import { drawFace, drawSleepMarks } from "./face.js";
|
|
6
|
+
import { drawFold } from "./fold.js";
|
|
7
|
+
import { WORKING_SECONDS, workingPose } from "./working.js";
|
|
8
|
+
const TAU = Math.PI * 2;
|
|
9
|
+
function silhouette(c, phase) {
|
|
10
|
+
const path = new DrawingPath();
|
|
11
|
+
if (c.family === 'alien') {
|
|
12
|
+
const sx = c.alienShape === 'round' ? 1.06 : c.alienShape === 'long' ? 0.86 : 1;
|
|
13
|
+
const sy = c.alienShape === 'round' ? 0.92 : c.alienShape === 'long' ? 1.03 : 1;
|
|
14
|
+
path.moveTo(0, -86 * sy);
|
|
15
|
+
path.bezierCurveTo(49 * sx, -88 * sy, 87 * sx, -61 * sy, 82 * sx, -20 * sy);
|
|
16
|
+
path.bezierCurveTo(80 * sx, 18 * sy, 47 * sx, 52 * sy, 17 * sx, 80 * sy);
|
|
17
|
+
path.quadraticCurveTo(0, 96 * sy, -17 * sx, 80 * sy);
|
|
18
|
+
path.bezierCurveTo(-47 * sx, 52 * sy, -80 * sx, 18 * sy, -82 * sx, -20 * sy);
|
|
19
|
+
path.bezierCurveTo(-87 * sx, -61 * sy, -49 * sx, -88 * sy, 0, -86 * sy);
|
|
20
|
+
path.closePath();
|
|
21
|
+
} else if (c.shape === 'squircle') {
|
|
22
|
+
path.moveTo(-50, -82);
|
|
23
|
+
path.bezierCurveTo(-80, -82, -82, -65, -82, -40);
|
|
24
|
+
path.lineTo(-82, 45);
|
|
25
|
+
path.bezierCurveTo(-82, 76, -70, 82, -42, 82);
|
|
26
|
+
path.lineTo(45, 82);
|
|
27
|
+
path.bezierCurveTo(78, 82, 82, 67, 82, 40);
|
|
28
|
+
path.lineTo(82, -43);
|
|
29
|
+
path.bezierCurveTo(82, -75, 70, -82, 42, -82);
|
|
30
|
+
path.closePath();
|
|
31
|
+
} else if (c.shape === 'triangle') {
|
|
32
|
+
path.moveTo(-15, -78);
|
|
33
|
+
path.quadraticCurveTo(0, -103, 16, -77);
|
|
34
|
+
path.lineTo(84, 52);
|
|
35
|
+
path.quadraticCurveTo(100, 80, 67, 82);
|
|
36
|
+
path.lineTo(-68, 82);
|
|
37
|
+
path.quadraticCurveTo(-100, 80, -84, 53);
|
|
38
|
+
path.closePath();
|
|
39
|
+
} else {
|
|
40
|
+
for (let i = 0; i <= 180; i++) {
|
|
41
|
+
const a = i / 180 * TAU;
|
|
42
|
+
let radius = 83;
|
|
43
|
+
if (c.shape === 'pebble') radius += 7 * Math.sin(a * 3 + 0.7 + Math.sin(phase) * c.motion / 350) + 4 * Math.cos(a * 2 - 1);
|
|
44
|
+
if (c.shape === 'flower') radius += 10 * Math.cos(a * 5 + 0.5);
|
|
45
|
+
if (c.shape === 'diamond') radius = 83 / (Math.pow(Math.abs(Math.cos(a)), 1.35) + Math.pow(Math.abs(Math.sin(a)), 1.35)) ** (1 / 1.35);
|
|
46
|
+
const x = Math.cos(a) * radius,
|
|
47
|
+
y = Math.sin(a) * radius;
|
|
48
|
+
if (i === 0) path.moveTo(x, y);else path.lineTo(x, y);
|
|
49
|
+
}
|
|
50
|
+
path.closePath();
|
|
51
|
+
}
|
|
52
|
+
return path;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** Colors here are editable artwork, independent of the surrounding UI theme. */
|
|
56
|
+
export function drawAvatar(ctx, c, phase, rig, gaze, cssSize, entranceSeconds = ENTRANCE_SECONDS, workingSeconds = WORKING_SECONDS, shapeMorph, workingCycles = 1, backingSize = cssSize) {
|
|
57
|
+
const size = backingSize;
|
|
58
|
+
ctx.save();
|
|
59
|
+
const entrance = entrancePose(entranceSeconds);
|
|
60
|
+
const entrySide = c.family === 'fold' && c.foldDirection === 'left' ? -1 : 1;
|
|
61
|
+
ctx.translate(100 + entrance.x * entrySide, 100 + entrance.y);
|
|
62
|
+
ctx.rotate(entrance.rotation * entrySide);
|
|
63
|
+
ctx.scale(entrance.scaleX, entrance.scaleY);
|
|
64
|
+
ctx.globalAlpha = entrance.opacity;
|
|
65
|
+
ctx.translate(-100, -100);
|
|
66
|
+
ctx.translate(100 + Math.sin(phase * 23) * rig.tremble * c.motion / 28, 100 + Math.sin(phase) * c.motion / 28 - Math.cos(phase * 2) * rig.bounce * c.motion / 12);
|
|
67
|
+
ctx.rotate(Math.sin(phase) * c.motion / 2400);
|
|
68
|
+
const breath = 1 + Math.sin(phase) * c.motion / 4000;
|
|
69
|
+
ctx.scale(breath, breath);
|
|
70
|
+
if (c.family === 'fold') {
|
|
71
|
+
const work = workingPose(workingSeconds, workingCycles);
|
|
72
|
+
ctx.translate(0, work.y);
|
|
73
|
+
ctx.rotate(work.tilt * entrySide);
|
|
74
|
+
drawFold(ctx, c, phase, rig, gaze, cssSize, null, entrance.fold, entrance.faceOpacity, work.turn, shapeMorph);
|
|
75
|
+
ctx.restore();
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
ctx.save();
|
|
79
|
+
ctx.clip(silhouette(c, phase));
|
|
80
|
+
const color = (offset, light, alpha = 1) => `hsla(${c.hue + offset},${c.saturation}%,${light}%,${alpha})`;
|
|
81
|
+
ctx.fillStyle = color(0, c.material === 'solid' ? 55 : 58);
|
|
82
|
+
ctx.fillRect(-110, -110, 220, 220);
|
|
83
|
+
const drift = c.motion / 100;
|
|
84
|
+
if (c.material === 'mist') {
|
|
85
|
+
for (let i = 0; i < c.complexity + 3; i++) {
|
|
86
|
+
const a = i * 2.399 + c.seed;
|
|
87
|
+
const x = Math.cos(a + Math.sin(phase + i) * drift) * 68;
|
|
88
|
+
const y = Math.sin(a * 1.7 + Math.cos(phase + i) * drift) * 74;
|
|
89
|
+
const radius = i % 3 === 0 ? 102 : 70;
|
|
90
|
+
const g = ctx.createRadialGradient(x, y, 0, x, y, radius);
|
|
91
|
+
const light = [82, 29, 62, 88, 39][i % 5];
|
|
92
|
+
const hue = (i % 3 - 1) * c.spread;
|
|
93
|
+
g.addColorStop(0, color(hue, light, 0.95));
|
|
94
|
+
g.addColorStop(0.35, color(hue, light, 0.7));
|
|
95
|
+
g.addColorStop(1, color(hue, light, 0));
|
|
96
|
+
ctx.fillStyle = g;
|
|
97
|
+
ctx.fillRect(-110, -110, 220, 220);
|
|
98
|
+
}
|
|
99
|
+
} else if (c.material === 'ribbons' || c.material === 'prism') {
|
|
100
|
+
ctx.save();
|
|
101
|
+
ctx.rotate(c.seed * 0.12 + Math.sin(phase) * drift * 0.25);
|
|
102
|
+
const width = 240 / c.complexity;
|
|
103
|
+
for (let i = -8; i < c.complexity + 8; i++) {
|
|
104
|
+
const p = new DrawingPath();
|
|
105
|
+
for (let side = 0; side < 2; side++) {
|
|
106
|
+
for (let j = 0; j <= 50; j++) {
|
|
107
|
+
const y = (side === 0 ? j : 50 - j) / 50 * 320 - 160;
|
|
108
|
+
const bend = c.material === 'prism' ? Math.abs(y) * 0.75 : Math.sin(y / 54 + Math.sin(phase) * drift) * 34;
|
|
109
|
+
const x = -120 + (i + side) * width + bend;
|
|
110
|
+
if (side === 0 && j === 0) p.moveTo(x, y);else p.lineTo(x, y);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
p.closePath();
|
|
114
|
+
const offset = ((i % 3 + 3) % 3 - 1) * c.spread;
|
|
115
|
+
const g = ctx.createLinearGradient(-70, -100, 90, 100);
|
|
116
|
+
g.addColorStop(0, color(offset, 77));
|
|
117
|
+
g.addColorStop(0.5, color(offset + 12, 57));
|
|
118
|
+
g.addColorStop(1, color(offset, 39));
|
|
119
|
+
ctx.fillStyle = g;
|
|
120
|
+
ctx.fill(p);
|
|
121
|
+
}
|
|
122
|
+
ctx.restore();
|
|
123
|
+
}
|
|
124
|
+
if (c.grain > 0) {
|
|
125
|
+
ctx.save();
|
|
126
|
+
// Keep grain density consistent in CSS pixels at every rendered size.
|
|
127
|
+
ctx.scale(200 / size, 200 / size);
|
|
128
|
+
ctx.globalCompositeOperation = 'soft-light';
|
|
129
|
+
ctx.globalAlpha *= c.grain / 100;
|
|
130
|
+
ctx.fillStyle = ctx.createPattern(null, 'repeat');
|
|
131
|
+
ctx.fillRect(-size, -size, size * 2, size * 2);
|
|
132
|
+
ctx.restore();
|
|
133
|
+
}
|
|
134
|
+
ctx.restore();
|
|
135
|
+
if (c.face) {
|
|
136
|
+
ctx.save();
|
|
137
|
+
ctx.clip(silhouette(c, phase));
|
|
138
|
+
drawFace(ctx, c, phase, rig, gaze, cssSize);
|
|
139
|
+
ctx.restore();
|
|
140
|
+
if (c.idle) drawSleepMarks(ctx, c, phase, gaze);
|
|
141
|
+
}
|
|
142
|
+
ctx.restore();
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=artwork.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DrawingPath","ENTRANCE_SECONDS","entrancePose","drawFace","drawSleepMarks","drawFold","WORKING_SECONDS","workingPose","TAU","Math","PI","silhouette","c","phase","path","family","sx","alienShape","sy","moveTo","bezierCurveTo","quadraticCurveTo","closePath","shape","lineTo","i","a","radius","sin","motion","cos","pow","abs","x","y","drawAvatar","ctx","rig","gaze","cssSize","entranceSeconds","workingSeconds","shapeMorph","workingCycles","backingSize","size","save","entrance","entrySide","foldDirection","translate","rotate","rotation","scale","scaleX","scaleY","globalAlpha","opacity","tremble","bounce","breath","work","tilt","fold","faceOpacity","turn","restore","clip","color","offset","light","alpha","hue","saturation","fillStyle","material","fillRect","drift","complexity","seed","g","createRadialGradient","spread","addColorStop","width","p","side","j","bend","createLinearGradient","fill","grain","globalCompositeOperation","createPattern","face","idle"],"sourceRoot":"../../../src","sources":["agent-avatar/artwork.ts"],"mappings":";;AAAA,SAAyBA,WAAW,QAAQ,cAAW;AACvD,SAASC,gBAAgB,EAAEC,YAAY,QAAQ,eAAY;AAC3D,SAASC,QAAQ,EAAEC,cAAc,QAAsB,WAAQ;AAC/D,SAASC,QAAQ,QAAQ,WAAQ;AAGjC,SAASC,eAAe,EAAEC,WAAW,QAAQ,cAAW;AACxD,MAAMC,GAAG,GAAGC,IAAI,CAACC,EAAE,GAAG,CAAC;AACvB,SAASC,UAAUA,CAACC,CAAe,EAAEC,KAAa,EAAE;EAClD,MAAMC,IAAI,GAAG,IAAId,WAAW,CAAC,CAAC;EAC9B,IAAIY,CAAC,CAACG,MAAM,KAAK,OAAO,EAAE;IACxB,MAAMC,EAAE,GACNJ,CAAC,CAACK,UAAU,KAAK,OAAO,GAAG,IAAI,GAAGL,CAAC,CAACK,UAAU,KAAK,MAAM,GAAG,IAAI,GAAG,CAAC;IACtE,MAAMC,EAAE,GACNN,CAAC,CAACK,UAAU,KAAK,OAAO,GAAG,IAAI,GAAGL,CAAC,CAACK,UAAU,KAAK,MAAM,GAAG,IAAI,GAAG,CAAC;IACtEH,IAAI,CAACK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,GAAGD,EAAE,CAAC;IACxBJ,IAAI,CAACM,aAAa,CAAC,EAAE,GAAGJ,EAAE,EAAE,CAAC,EAAE,GAAGE,EAAE,EAAE,EAAE,GAAGF,EAAE,EAAE,CAAC,EAAE,GAAGE,EAAE,EAAE,EAAE,GAAGF,EAAE,EAAE,CAAC,EAAE,GAAGE,EAAE,CAAC;IAC3EJ,IAAI,CAACM,aAAa,CAAC,EAAE,GAAGJ,EAAE,EAAE,EAAE,GAAGE,EAAE,EAAE,EAAE,GAAGF,EAAE,EAAE,EAAE,GAAGE,EAAE,EAAE,EAAE,GAAGF,EAAE,EAAE,EAAE,GAAGE,EAAE,CAAC;IACxEJ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E;IAClDzD,GAAG,CAACwC,QAAQ,CAAC,CAAC/B,IAAI,EAAE,CAACA,IAAI,EAAEA,IAAI,GAAG,CAAC,EAAEA,IAAI,GAAG,CAAC,CAAC;IAC9CT,GAAG,CAAC8B,OAAO,CAAC,CAAC;EACf;EACA9B,GAAG,CAAC8B,OAAO,CAAC,CAAC;EACb,IAAItD,CAAC,CAACkF,IAAI,EAAE;IACV1D,GAAG,CAACU,IAAI,CAAC,CAAC;IACVV,GAAG,CAAC+B,IAAI,CAACxD,UAAU,CAACC,CAAC,EAAEC,KAAK,CAAC,CAAC;IAC9BV,QAAQ,CAACiC,GAAG,EAAExB,CAAC,EAAEC,KAAK,EAAEwB,GAAG,EAAEC,IAAI,EAAEC,OAAO,CAAC;IAC3CH,GAAG,CAAC8B,OAAO,CAAC,CAAC;IACb,IAAItD,CAAC,CAACmF,IAAI,EAAE3F,cAAc,CAACgC,GAAG,EAAExB,CAAC,EAAEC,KAAK,EAAEyB,IAAI,CAAC;EACjD;EACAF,GAAG,CAAC8B,OAAO,CAAC,CAAC;AACf","ignoreList":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const REST = {
|
|
4
|
+
openness: 0,
|
|
5
|
+
asymmetry: 0,
|
|
6
|
+
tilt: 0,
|
|
7
|
+
softness: 0
|
|
8
|
+
};
|
|
9
|
+
function random(state) {
|
|
10
|
+
state.seed = Math.imul(state.seed, 1664525) + 1013904223 >>> 0;
|
|
11
|
+
return state.seed / 4294967296;
|
|
12
|
+
}
|
|
13
|
+
function nextNuance(state) {
|
|
14
|
+
return {
|
|
15
|
+
openness: (random(state) - 0.5) * 0.18,
|
|
16
|
+
asymmetry: (random(state) - 0.5) * 0.22,
|
|
17
|
+
tilt: (random(state) - 0.5) * 0.07,
|
|
18
|
+
softness: random(state) * 0.14
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function createAttention(seed) {
|
|
22
|
+
const state = {
|
|
23
|
+
seed,
|
|
24
|
+
elapsed: 0,
|
|
25
|
+
duration: 2.2,
|
|
26
|
+
time: 0,
|
|
27
|
+
offset: (seed >>> 0) / 4294967296 * Math.PI * 2,
|
|
28
|
+
from: REST,
|
|
29
|
+
to: REST
|
|
30
|
+
};
|
|
31
|
+
state.to = nextNuance(state);
|
|
32
|
+
state.duration = 1.8 + random(state) * 1.8;
|
|
33
|
+
return state;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Add small changes within the chosen emotion, without cycling through moods.
|
|
37
|
+
* This clock advances only while the avatar is visibly animating.
|
|
38
|
+
*/
|
|
39
|
+
export function advanceAttention(state, seconds, base, config) {
|
|
40
|
+
if (config.idle || config.eyes === 'sleepy' || config.motion === 0) return base;
|
|
41
|
+
state.time = (state.time ?? 0) + Math.max(0, seconds);
|
|
42
|
+
state.elapsed += Math.max(0, seconds);
|
|
43
|
+
while (state.elapsed >= state.duration) {
|
|
44
|
+
state.elapsed -= state.duration;
|
|
45
|
+
state.from = state.to;
|
|
46
|
+
state.to = nextNuance(state);
|
|
47
|
+
state.duration = 1.8 + random(state) * 1.8;
|
|
48
|
+
}
|
|
49
|
+
const t = state.elapsed / state.duration;
|
|
50
|
+
const smooth = t * t * (3 - 2 * t);
|
|
51
|
+
const amount = Math.min(1, config.motion / 40);
|
|
52
|
+
const value = key => (state.from[key] + (state.to[key] - state.from[key]) * smooth) * amount;
|
|
53
|
+
const openness = value('openness'),
|
|
54
|
+
asymmetry = value('asymmetry');
|
|
55
|
+
// Overlapping rhythms keep happy lids gently changing even between glances.
|
|
56
|
+
// Each eye has its own timing; the expression blend eases this in and out.
|
|
57
|
+
const happy = Math.max(0, (base.smile - 0.2) / 0.8) * amount * Math.min(1, state.time / 0.8);
|
|
58
|
+
const clock = state.time,
|
|
59
|
+
offset = state.offset ?? 0;
|
|
60
|
+
const left = Math.sin(clock * 1.65 + offset) * 0.7 + Math.sin(clock * 1.13 + offset * 0.7) * 0.3;
|
|
61
|
+
const right = Math.sin(clock * 1.48 + offset + 0.9) * 0.7 + Math.sin(clock * 2.05 + offset * 0.4) * 0.3;
|
|
62
|
+
const soften = (1 + Math.sin(clock * 1.31 + offset + 0.4)) * 0.5;
|
|
63
|
+
return {
|
|
64
|
+
...base,
|
|
65
|
+
leftOpen: base.leftOpen * (1 + openness + asymmetry + left * happy * 0.13),
|
|
66
|
+
rightOpen: base.rightOpen * (1 + openness - asymmetry + right * happy * 0.13),
|
|
67
|
+
width: base.width * (1 + (left + right) * happy * 0.035),
|
|
68
|
+
leftAngle: base.leftAngle + value('tilt') * 0.6 + left * happy * 0.045,
|
|
69
|
+
rightAngle: base.rightAngle + value('tilt') * 0.6 - right * happy * 0.045,
|
|
70
|
+
headTilt: base.headTilt + value('tilt'),
|
|
71
|
+
smile: Math.max(0, Math.min(1, base.smile - soften * happy * 0.09 + (config.eyes === 'neutral' || config.eyes === 'curious' ? value('softness') : 0)))
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=attention.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["REST","openness","asymmetry","tilt","softness","random","state","seed","Math","imul","nextNuance","createAttention","elapsed","duration","time","offset","PI","from","to","advanceAttention","seconds","base","config","idle","eyes","motion","max","t","smooth","amount","min","value","key","happy","smile","clock","left","sin","right","soften","leftOpen","rightOpen","width","leftAngle","rightAngle","headTilt"],"sourceRoot":"../../../src","sources":["agent-avatar/attention.ts"],"mappings":";;AAkBA,MAAMA,IAAY,GAAG;EAAEC,QAAQ,EAAE,CAAC;EAAEC,SAAS,EAAE,CAAC;EAAEC,IAAI,EAAE,CAAC;EAAEC,QAAQ,EAAE;AAAE,CAAC;AACxE,SAASC,MAAMA,CAACC,KAAqB,EAAE;EACrCA,KAAK,CAACC,IAAI,GAAIC,IAAI,CAACC,IAAI,CAACH,KAAK,CAACC,IAAI,EAAE,OAAO,CAAC,GAAG,UAAU,KAAM,CAAC;EAChE,OAAOD,KAAK,CAAC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zEY,QAAQ,EAAExB,IAAI,CAACwB,QAAQ,GAAGd,KAAK,CAAC,MAAM,CAAC;IACvCG,KAAK,EAAE1B,IAAI,CAACkB,GAAG,CACb,CAAC,EACDlB,IAAI,CAACsB,GAAG,CACN,CAAC,EACDT,IAAI,CAACa,KAAK,GACRK,MAAM,GAAGN,KAAK,GAAG,IAAI,IACpBX,MAAM,CAACE,IAAI,KAAK,SAAS,IAAIF,MAAM,CAACE,IAAI,KAAK,SAAS,GACnDO,KAAK,CAAC,UAAU,CAAC,GACjB,CAAC,CACT,CACF;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/** A private clock for each mounted avatar, independent of its motion loop. */
|
|
4
|
+
|
|
5
|
+
function random(state) {
|
|
6
|
+
state.seed = Math.imul(state.seed, 1664525) + 1013904223 >>> 0;
|
|
7
|
+
return state.seed / 4294967296;
|
|
8
|
+
}
|
|
9
|
+
export function createBlink(seed) {
|
|
10
|
+
const state = {
|
|
11
|
+
seed,
|
|
12
|
+
wait: 0,
|
|
13
|
+
elapsed: 0,
|
|
14
|
+
duration: 0.18,
|
|
15
|
+
blinking: false,
|
|
16
|
+
second: false
|
|
17
|
+
};
|
|
18
|
+
state.wait = 0.4 + random(state) * 4.4;
|
|
19
|
+
return state;
|
|
20
|
+
}
|
|
21
|
+
export function advanceBlink(state, seconds) {
|
|
22
|
+
if (!state.blinking) {
|
|
23
|
+
state.wait -= seconds;
|
|
24
|
+
if (state.wait > 0) return 1;
|
|
25
|
+
state.blinking = true;
|
|
26
|
+
state.elapsed = 0;
|
|
27
|
+
state.duration = 0.14 + random(state) * 0.09;
|
|
28
|
+
}
|
|
29
|
+
state.elapsed += seconds;
|
|
30
|
+
const progress = state.elapsed / state.duration;
|
|
31
|
+
if (progress >= 1) {
|
|
32
|
+
state.blinking = false;
|
|
33
|
+
const double = !state.second && random(state) < 0.12;
|
|
34
|
+
state.second = double;
|
|
35
|
+
state.wait = double ? 0.14 + random(state) * 0.12 : 2.1 + random(state) * 5.2;
|
|
36
|
+
return 1;
|
|
37
|
+
}
|
|
38
|
+
// A quicker close and a soft reopen, with no hard frame at the seam.
|
|
39
|
+
return Math.max(0.07, 1 - Math.sin(Math.PI * progress) ** 2);
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=blink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["random","state","seed","Math","imul","createBlink","wait","elapsed","duration","blinking","second","advanceBlink","seconds","progress","double","max","sin","PI"],"sourceRoot":"../../../src","sources":["agent-avatar/blink.ts"],"mappings":";;AAAA;;AASA,SAASA,MAAMA,CAACC,KAAiB,EAAE;EACjCA,KAAK,CAACC,IAAI,GAAIC,IAAI,CAACC,IAAI,CAACH,KAAK,CAACC,IAAI,EAAE,OAAO,CAAC,GAAG,UAAU,KAAM,CAAC;EAChE,OAAOD,KAAK,CAACC,IAAI,GAAG,UAAU;AAChC;AACA,OAAO,SAASG,WAAWA,CAACH,IAAY,EAAc;EACpD,MAAMD,KAAiB,GAAG;IACxBC,IAAI;IACJI,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE,CAAC;IACVC,QAAQ,EAAE,IAAI;IACdC,QAAQ,EAAE,KAAK;IACfC,MAAM,EAAE;EACV,CAAC;EACDT,KAAK,CAACK,IAAI,GAAG,GAAG,GAAGN,MAAM,CAACC,KAAK,CAAC,GAAG,GAAG;EACtC,OAAOA,KAAK;AACd;AACA,OAAO,SAASU,YAAYA,CAACV,KAAiB,EAAEW,OAAe,EAAU;EACvE,IAAI,CAACX,KAAK,CAACQ,QAAQ,EAAE;IACnBR,KAAK,CAACK,IAAI,IAAIM,OAAO;IACrB,IAAIX,KAAK,CAACK,IAAI,GAAG,CAAC,EAAE,OAAO,CAAC;IAC5BL,KAAK,CAACQ,QAAQ,GAAG,IAAI;IACrBR,KAAK,CAACM,OAAO,GAAG,CAAC;IACjBN,KAAK,CAACO,QAAQ,GAAG,IAAI,GAAGR,MAAM,CAACC,KAAK,CAAC,GAAG,IAAI;EAC9C;EACAA,KAAK,CAACM,OAAO,IAAIK,OAAO;EACxB,MAAMC,QAAQ,GAAGZ,KAAK,CAACM,OAAO,GAAGN,KAAK,CAACO,QAAQ;EAC/C,IAAIK,QAAQ,IAAI,CAAC,EAAE;IACjBZ,KAAK,CAACQ,QAAQ,GAAG,KAAK;IACtB,MAAMK,MAAM,GAAG,CAACb,KAAK,CAACS,MAAM,IAAIV,MAAM,CAACC,KAAK,CAAC,GAAG,IAAI;IACpDA,KAAK,CAACS,MAAM,GAAGI,MAAM;IACrBb,KAAK,CAACK,IAAI,GAAGQ,MAAM,GACf,IAAI,GAAGd,MAAM,CAACC,KAAK,CAAC,GAAG,IAAI,GAC3B,GAAG,GAAGD,MAAM,CAACC,KAAK,CAAC,GAAG,GAAG;IAC7B,OAAO,CAAC;EACV;EACA;EACA,OAAOE,IAAI,CAACY,GAAG,CAAC,IAAI,EAAE,CAAC,GAAGZ,IAAI,CAACa,GAAG,CAACb,IAAI,CAACc,EAAE,GAAGJ,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9D","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","AvatarDrawingObserver"],"sourceRoot":"../../../src","sources":["agent-avatar/context.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,OAAO;AAGrC;AACA,OAAO,MAAMC,qBAAqB,gBAAGD,aAAa,CAEhD,IAAI,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/** Portable drawing commands. The artwork uses these on every platform; no DOM canvas. */
|
|
4
|
+
|
|
5
|
+
export class DrawingMatrix {
|
|
6
|
+
constructor(values = [1, 0, 0, 1, 0, 0]) {
|
|
7
|
+
[this.a, this.b, this.c, this.d, this.e, this.f] = values;
|
|
8
|
+
}
|
|
9
|
+
point(x, y) {
|
|
10
|
+
return [this.a * x + this.c * y + this.e, this.b * x + this.d * y + this.f];
|
|
11
|
+
}
|
|
12
|
+
multiply(m) {
|
|
13
|
+
return new DrawingMatrix([this.a * m.a + this.c * m.b, this.b * m.a + this.d * m.b, this.a * m.c + this.c * m.d, this.b * m.c + this.d * m.d, this.a * m.e + this.c * m.f + this.e, this.b * m.e + this.d * m.f + this.f]);
|
|
14
|
+
}
|
|
15
|
+
toString() {
|
|
16
|
+
return `matrix(${this.a} ${this.b} ${this.c} ${this.d} ${this.e} ${this.f})`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export class DrawingPath {
|
|
20
|
+
commands = [];
|
|
21
|
+
moveTo(x, y) {
|
|
22
|
+
this.commands.push({
|
|
23
|
+
kind: 'M',
|
|
24
|
+
values: [x, y]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
lineTo(x, y) {
|
|
28
|
+
this.commands.push({
|
|
29
|
+
kind: 'L',
|
|
30
|
+
values: [x, y]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
bezierCurveTo(...values) {
|
|
34
|
+
this.commands.push({
|
|
35
|
+
kind: 'C',
|
|
36
|
+
values
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
quadraticCurveTo(...values) {
|
|
40
|
+
this.commands.push({
|
|
41
|
+
kind: 'Q',
|
|
42
|
+
values
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
closePath() {
|
|
46
|
+
this.commands.push({
|
|
47
|
+
kind: 'Z',
|
|
48
|
+
values: []
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
addPath(path, matrix = new DrawingMatrix()) {
|
|
52
|
+
for (const command of path.commands) {
|
|
53
|
+
if (command.kind === 'A') {
|
|
54
|
+
const [rx, ry, degrees, large, sweep, x, y] = command.values;
|
|
55
|
+
const angle = degrees * Math.PI / 180;
|
|
56
|
+
const ux = rx * (matrix.a * Math.cos(angle) + matrix.c * Math.sin(angle));
|
|
57
|
+
const uy = rx * (matrix.b * Math.cos(angle) + matrix.d * Math.sin(angle));
|
|
58
|
+
const vx = ry * (-matrix.a * Math.sin(angle) + matrix.c * Math.cos(angle));
|
|
59
|
+
const vy = ry * (-matrix.b * Math.sin(angle) + matrix.d * Math.cos(angle));
|
|
60
|
+
const xx = ux * ux + vx * vx,
|
|
61
|
+
yy = uy * uy + vy * vy,
|
|
62
|
+
xy = ux * uy + vx * vy;
|
|
63
|
+
const difference = Math.hypot(xx - yy, 2 * xy);
|
|
64
|
+
this.commands.push({
|
|
65
|
+
kind: 'A',
|
|
66
|
+
values: [Math.sqrt((xx + yy + difference) / 2), Math.sqrt(Math.max(0, (xx + yy - difference) / 2)), Math.atan2(2 * xy, xx - yy) * 90 / Math.PI, large, matrix.a * matrix.d - matrix.b * matrix.c < 0 ? 1 - sweep : sweep, ...matrix.point(x, y)]
|
|
67
|
+
});
|
|
68
|
+
} else {
|
|
69
|
+
const values = command.values.flatMap((value, i) => i % 2 ? [] : matrix.point(value, command.values[i + 1]));
|
|
70
|
+
this.commands.push({
|
|
71
|
+
kind: command.kind,
|
|
72
|
+
values
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
ellipse(x, y, rx, ry, rotation, start, end, reverse = false) {
|
|
78
|
+
// SVG elliptical arcs retain the original profile exactly, including its
|
|
79
|
+
// winding through a rear-facing turn; a four-cubic circle is an approximation.
|
|
80
|
+
const span = Math.min(Math.PI * 2, Math.abs(end - start));
|
|
81
|
+
const segments = Math.ceil(span / Math.PI);
|
|
82
|
+
if (!segments) return;
|
|
83
|
+
const step = (reverse ? -1 : 1) * span / segments;
|
|
84
|
+
const point = angle => [x + rx * Math.cos(angle) * Math.cos(rotation) - ry * Math.sin(angle) * Math.sin(rotation), y + rx * Math.cos(angle) * Math.sin(rotation) + ry * Math.sin(angle) * Math.cos(rotation)];
|
|
85
|
+
this.moveTo(...point(start));
|
|
86
|
+
for (let i = 1; i <= segments; i++) {
|
|
87
|
+
this.commands.push({
|
|
88
|
+
kind: 'A',
|
|
89
|
+
values: [rx, ry, rotation * 180 / Math.PI, Math.abs(step) > Math.PI ? 1 : 0, reverse ? 0 : 1, ...point(start + i * step)]
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
this.closePath();
|
|
93
|
+
}
|
|
94
|
+
toString() {
|
|
95
|
+
return this.commands.map(c => `${c.kind}${c.values.join(' ')}`).join(' ');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export class DrawingGradient {
|
|
99
|
+
stops = [];
|
|
100
|
+
constructor(kind, coordinates, matrix) {
|
|
101
|
+
this.kind = kind;
|
|
102
|
+
this.coordinates = coordinates;
|
|
103
|
+
this.matrix = matrix;
|
|
104
|
+
}
|
|
105
|
+
addColorStop(offset, color) {
|
|
106
|
+
this.stops.push({
|
|
107
|
+
offset,
|
|
108
|
+
color
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export class DrawingContext {
|
|
113
|
+
matrix = new DrawingMatrix();
|
|
114
|
+
clips = [];
|
|
115
|
+
fillStyle = '#000';
|
|
116
|
+
strokeStyle = '#000';
|
|
117
|
+
globalAlpha = 1;
|
|
118
|
+
lineWidth = 1;
|
|
119
|
+
lineCap = 'butt';
|
|
120
|
+
globalCompositeOperation = 'source-over';
|
|
121
|
+
font = '10px sans-serif';
|
|
122
|
+
textAlign = 'left';
|
|
123
|
+
textBaseline = 'alphabetic';
|
|
124
|
+
nodes = [];
|
|
125
|
+
stack = [];
|
|
126
|
+
current = new DrawingPath();
|
|
127
|
+
snapshot() {
|
|
128
|
+
return {
|
|
129
|
+
matrix: this.matrix,
|
|
130
|
+
clips: [...this.clips],
|
|
131
|
+
fillStyle: this.fillStyle,
|
|
132
|
+
strokeStyle: this.strokeStyle,
|
|
133
|
+
globalAlpha: this.globalAlpha,
|
|
134
|
+
lineWidth: this.lineWidth,
|
|
135
|
+
lineCap: this.lineCap,
|
|
136
|
+
globalCompositeOperation: this.globalCompositeOperation,
|
|
137
|
+
font: this.font,
|
|
138
|
+
textAlign: this.textAlign,
|
|
139
|
+
textBaseline: this.textBaseline
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
save() {
|
|
143
|
+
this.stack.push(this.snapshot());
|
|
144
|
+
}
|
|
145
|
+
restore() {
|
|
146
|
+
const state = this.stack.pop();
|
|
147
|
+
if (state) Object.assign(this, state);
|
|
148
|
+
}
|
|
149
|
+
transform(...m) {
|
|
150
|
+
this.matrix = this.matrix.multiply(new DrawingMatrix(m));
|
|
151
|
+
}
|
|
152
|
+
translate(x, y) {
|
|
153
|
+
this.transform(1, 0, 0, 1, x, y);
|
|
154
|
+
}
|
|
155
|
+
scale(x, y) {
|
|
156
|
+
this.transform(x, 0, 0, y, 0, 0);
|
|
157
|
+
}
|
|
158
|
+
rotate(a) {
|
|
159
|
+
this.transform(Math.cos(a), Math.sin(a), -Math.sin(a), Math.cos(a), 0, 0);
|
|
160
|
+
}
|
|
161
|
+
beginPath() {
|
|
162
|
+
this.current = new DrawingPath();
|
|
163
|
+
}
|
|
164
|
+
moveTo(x, y) {
|
|
165
|
+
this.current.moveTo(x, y);
|
|
166
|
+
}
|
|
167
|
+
lineTo(x, y) {
|
|
168
|
+
this.current.lineTo(x, y);
|
|
169
|
+
}
|
|
170
|
+
bezierCurveTo(...p) {
|
|
171
|
+
this.current.bezierCurveTo(...p);
|
|
172
|
+
}
|
|
173
|
+
quadraticCurveTo(...p) {
|
|
174
|
+
this.current.quadraticCurveTo(...p);
|
|
175
|
+
}
|
|
176
|
+
closePath() {
|
|
177
|
+
this.current.closePath();
|
|
178
|
+
}
|
|
179
|
+
clip(path = this.current) {
|
|
180
|
+
const projected = new DrawingPath();
|
|
181
|
+
projected.addPath(path, this.matrix);
|
|
182
|
+
this.clips.push(projected);
|
|
183
|
+
}
|
|
184
|
+
fill(path = this.current) {
|
|
185
|
+
this.nodes.push({
|
|
186
|
+
...this.snapshot(),
|
|
187
|
+
path
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
stroke(path = this.current) {
|
|
191
|
+
this.nodes.push({
|
|
192
|
+
...this.snapshot(),
|
|
193
|
+
path,
|
|
194
|
+
stroke: true
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
fillRect(x, y, width, height) {
|
|
198
|
+
const path = new DrawingPath();
|
|
199
|
+
path.moveTo(x, y);
|
|
200
|
+
path.lineTo(x + width, y);
|
|
201
|
+
path.lineTo(x + width, y + height);
|
|
202
|
+
path.lineTo(x, y + height);
|
|
203
|
+
path.closePath();
|
|
204
|
+
this.fill(path);
|
|
205
|
+
}
|
|
206
|
+
fillText(text, x, y) {
|
|
207
|
+
this.nodes.push({
|
|
208
|
+
...this.snapshot(),
|
|
209
|
+
text,
|
|
210
|
+
x,
|
|
211
|
+
y
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
createLinearGradient(...coordinates) {
|
|
215
|
+
return new DrawingGradient('linear', coordinates, this.matrix);
|
|
216
|
+
}
|
|
217
|
+
createRadialGradient(...coordinates) {
|
|
218
|
+
return new DrawingGradient('radial', coordinates, this.matrix);
|
|
219
|
+
}
|
|
220
|
+
createPattern(_grain, _repeat) {
|
|
221
|
+
return {
|
|
222
|
+
kind: 'grain'
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
//# sourceMappingURL=drawing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DrawingMatrix","constructor","values","a","b","c","d","e","f","point","x","y","multiply","m","toString","DrawingPath","commands","moveTo","push","kind","lineTo","bezierCurveTo","quadraticCurveTo","closePath","addPath","path","matrix","command","rx","ry","degrees","large","sweep","angle","Math","PI","ux","cos","sin","uy","vx","vy","xx","yy","xy","difference","hypot","sqrt","max","atan2","flatMap","value","i","ellipse","rotation","start","end","reverse","span","min","abs","segments","ceil","step","map","join","DrawingGradient","stops","coordinates","addColorStop","offset","color","DrawingContext","clips","fillStyle","strokeStyle","globalAlpha","lineWidth","lineCap","globalCompositeOperation","font","textAlign","textBaseline","nodes","stack","current","snapshot","save","restore","state","pop","Object","assign","transform","translate","scale","rotate","beginPath","p","clip","projected","fill","stroke","fillRect","width","height","fillText","text","createLinearGradient","createRadialGradient","createPattern","_grain","_repeat"],"sourceRoot":"../../../src","sources":["agent-avatar/drawing.ts"],"mappings":";;AAAA;;AAEA,OAAO,MAAMA,aAAa,CAAC;EAOzBC,WAAWA,CAACC,MAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;IACjD,CAAC,IAAI,CAACC,CAAC,EAAE,IAAI,CAACC,CAAC,EAAE,IAAI,CAACC,CAAC,EAAE,IAAI,CAACC,CAAC,EAAE,IAAI,CAACC,CAAC,EAAE,IAAI,CAACC,CAAC,CAAC,GAAGN,MAOlD;EACH;EACAO,KAAKA,CAACC,CAAS,EAAEC,CAAS,EAAS;IACjC,OAAO,CAAC,IAAI,CAACR,CAAC,GAAGO,CAAC,GAAG,IAAI,CAACL,CAAC,GAAGM,CAAC,GAAG,IAAI,CAACJ,CAAC,EAAE,IAAI,CAACH,CAAC,GAAGM,CAAC,GAAG,IAAI,CAACJ,CAAC,GAAGK,CAAC,GAAG,IAAI,CAACH,CAAC,CAAC;EAC7E;EACAI,QAAQA,CAACC,CAAgB,EAAE;IACzB,OAAO,IAAIb,aAAa,CAAC,CACvB,IAAI,CAACG,CAAC,GAAGU,CAAC,CAACV,CAAC,GAAG,IAAI,CAACE,CAAC,GAAGQ,CAAC,CAACT,CAAC,EAC3B,IAAI,CAACA,CAAC,GAAGS,CAAC,CAACV,CAAC,GAAG,IAAI,CAACG,CAAC,GAAGO,CAAC,CAACT,CAAC,EAC3B,IAAI,CAACD,CAAC,GAAGU,CAAC,CAACR,CAAC,GAAG,IAAI,CAACA,CAAC,GAAGQ,CAAC,CAACP,CAAC,EAC3B,IAAI,CAACF,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ChB,IAAI,CAAC8E,IAAI,CAAC5E,IAAI,CAAC;EACjB;EACAiF,QAAQA,CAACC,IAAY,EAAEjG,CAAS,EAAEC,CAAS,EAAE;IAC3C,IAAI,CAACwE,KAAK,CAACjE,IAAI,CAAC;MAAE,GAAG,IAAI,CAACoE,QAAQ,CAAC,CAAC;MAAEqB,IAAI;MAAEjG,CAAC;MAAEC;IAAE,CAAC,CAAC;EACrD;EACAiG,oBAAoBA,CAAC,GAAGxC,WAA6C,EAAE;IACrE,OAAO,IAAIF,eAAe,CAAC,QAAQ,EAAEE,WAAW,EAAE,IAAI,CAAC1C,MAAM,CAAC;EAChE;EACAmF,oBAAoBA,CAClB,GAAGzC,WAA6D,EAChE;IACA,OAAO,IAAIF,eAAe,CAAC,QAAQ,EAAEE,WAAW,EAAE,IAAI,CAAC1C,MAAM,CAAC;EAChE;EACAoF,aAAaA,CAACC,MAAe,EAAEC,OAAe,EAAgB;IAC5D,OAAO;MAAE7F,IAAI,EAAE;IAAQ,CAAC;EAC1B;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const ENTRANCE_SECONDS = 1;
|
|
4
|
+
const smooth = t => {
|
|
5
|
+
const p = Math.max(0, Math.min(1, t));
|
|
6
|
+
return p * p * p * (p * (p * 6 - 15) + 10);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
/** A curled arrival: the body rises first, then its tucked edge catches up. */
|
|
10
|
+
export function entrancePose(seconds) {
|
|
11
|
+
const t = Math.max(0, Math.min(1, seconds / ENTRANCE_SECONDS));
|
|
12
|
+
const grow = 1 - (1 - t) ** 3;
|
|
13
|
+
const scale = 0.1 + 0.9 * grow;
|
|
14
|
+
const turn = 1 - smooth(t / 0.85);
|
|
15
|
+
const fold = 1 - smooth((t - 0.12) / 0.88);
|
|
16
|
+
return {
|
|
17
|
+
x: -22 * Math.sin(Math.PI * t) * (1 - t),
|
|
18
|
+
y: 46 * (1 - grow),
|
|
19
|
+
scaleX: scale,
|
|
20
|
+
scaleY: scale,
|
|
21
|
+
rotation: -0.32 * turn,
|
|
22
|
+
opacity: smooth(t / 0.2),
|
|
23
|
+
fold,
|
|
24
|
+
faceOpacity: smooth((t - 0.15) / 0.4)
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=entrance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ENTRANCE_SECONDS","smooth","t","p","Math","max","min","entrancePose","seconds","grow","scale","turn","fold","x","sin","PI","y","scaleX","scaleY","rotation","opacity","faceOpacity"],"sourceRoot":"../../../src","sources":["agent-avatar/entrance.ts"],"mappings":";;AAAA,OAAO,MAAMA,gBAAgB,GAAG,CAAC;AAEjC,MAAMC,MAAM,GAAIC,CAAS,IAAK;EAC5B,MAAMC,CAAC,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEJ,CAAC,CAAC,CAAC;EACrC,OAAOC,CAAC,GAAGA,CAAC,GAAGA,CAAC,IAAIA,CAAC,IAAIA,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;AAC5C,CAAC;;AAED;AACA,OAAO,SAASI,YAAYA,CAACC,OAAe,EAAE;EAC5C,MAAMN,CAAC,GAAGE,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEE,OAAO,GAAGR,gBAAgB,CAAC,CAAC;EAC9D,MAAMS,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,GAAGP,CAAC,KAAK,CAAC;EAC7B,MAAMQ,KAAK,GAAG,GAAG,GAAG,GAAG,GAAGD,IAAI;EAC9B,MAAME,IAAI,GAAG,CAAC,GAAGV,MAAM,CAACC,CAAC,GAAG,IAAI,CAAC;EACjC,MAAMU,IAAI,GAAG,CAAC,GAAGX,MAAM,CAAC,CAACC,CAAC,GAAG,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