@oxy.so/bloom 6.4.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1196) hide show
  1. package/README.md +3 -3
  2. package/docs/adoption-matrix.mdx +19 -16
  3. package/docs/agent-avatar.mdx +24 -0
  4. package/docs/agent-creator.mdx +50 -0
  5. package/docs/button.mdx +1 -1
  6. package/docs/design-tokens.mdx +8 -0
  7. package/docs/dialog.mdx +6 -0
  8. package/docs/migrating-to-1.0.mdx +3 -3
  9. package/docs/multi-agent-chat.mdx +69 -0
  10. package/docs/project-board.mdx +35 -0
  11. package/docs/segmented-control.mdx +2 -0
  12. package/docs/settings-modal.mdx +2 -0
  13. package/docs/sidebar.mdx +8 -0
  14. package/docs/stat-widgets.mdx +3 -4
  15. package/lib/commonjs/agent-avatar/AgentAvatar.js +214 -0
  16. package/lib/commonjs/agent-avatar/AgentAvatar.js.map +1 -0
  17. package/lib/commonjs/agent-avatar/AgentFace.js +26 -0
  18. package/lib/commonjs/agent-avatar/AgentFace.js.map +1 -0
  19. package/lib/commonjs/agent-avatar/SvgDrawing.js +207 -0
  20. package/lib/commonjs/agent-avatar/SvgDrawing.js.map +1 -0
  21. package/lib/commonjs/agent-avatar/artwork.js +148 -0
  22. package/lib/commonjs/agent-avatar/artwork.js.map +1 -0
  23. package/lib/commonjs/agent-avatar/attention.js +79 -0
  24. package/lib/commonjs/agent-avatar/attention.js.map +1 -0
  25. package/lib/commonjs/agent-avatar/blink.js +46 -0
  26. package/lib/commonjs/agent-avatar/blink.js.map +1 -0
  27. package/lib/commonjs/agent-avatar/context.js +10 -0
  28. package/lib/commonjs/agent-avatar/context.js.map +1 -0
  29. package/lib/commonjs/agent-avatar/drawing.js +234 -0
  30. package/lib/commonjs/agent-avatar/drawing.js.map +1 -0
  31. package/lib/commonjs/agent-avatar/entrance.js +32 -0
  32. package/lib/commonjs/agent-avatar/entrance.js.map +1 -0
  33. package/lib/commonjs/agent-avatar/face.js +403 -0
  34. package/lib/commonjs/agent-avatar/face.js.map +1 -0
  35. package/lib/commonjs/agent-avatar/fold-outlines.js +43 -0
  36. package/lib/commonjs/agent-avatar/fold-outlines.js.map +1 -0
  37. package/lib/commonjs/agent-avatar/fold.js +322 -0
  38. package/lib/commonjs/agent-avatar/fold.js.map +1 -0
  39. package/lib/commonjs/agent-avatar/grain.js +9 -0
  40. package/lib/commonjs/agent-avatar/grain.js.map +1 -0
  41. package/lib/commonjs/agent-avatar/index.js +146 -0
  42. package/lib/commonjs/agent-avatar/index.js.map +1 -0
  43. package/lib/commonjs/agent-avatar/messages.js +11 -0
  44. package/lib/commonjs/agent-avatar/messages.js.map +1 -0
  45. package/lib/commonjs/agent-avatar/model.js +429 -0
  46. package/lib/commonjs/agent-avatar/model.js.map +1 -0
  47. package/lib/commonjs/agent-avatar/shape-morph.js +163 -0
  48. package/lib/commonjs/agent-avatar/shape-morph.js.map +1 -0
  49. package/lib/commonjs/{dot-grid-meter → agent-avatar}/types.js.map +1 -1
  50. package/lib/commonjs/agent-avatar/wander.js +64 -0
  51. package/lib/commonjs/agent-avatar/wander.js.map +1 -0
  52. package/lib/commonjs/agent-avatar/working.js +28 -0
  53. package/lib/commonjs/agent-avatar/working.js.map +1 -0
  54. package/lib/commonjs/agent-chat/AgentChatMessage.js +21 -0
  55. package/lib/commonjs/agent-chat/AgentChatMessage.js.map +1 -1
  56. package/lib/commonjs/agent-creator/AgentCreator.js +32 -0
  57. package/lib/commonjs/agent-creator/AgentCreator.js.map +1 -0
  58. package/lib/commonjs/agent-creator/AgentCreator.web.js +32 -0
  59. package/lib/commonjs/agent-creator/AgentCreator.web.js.map +1 -0
  60. package/lib/commonjs/agent-creator/AgentCreatorBase.js +319 -0
  61. package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -0
  62. package/lib/commonjs/agent-creator/AgentPreferencesPanel.js +260 -0
  63. package/lib/commonjs/agent-creator/AgentPreferencesPanel.js.map +1 -0
  64. package/lib/commonjs/agent-creator/CustomColorPicker.js +374 -0
  65. package/lib/commonjs/agent-creator/CustomColorPicker.js.map +1 -0
  66. package/lib/commonjs/agent-creator/EmotionPicker.js +179 -0
  67. package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -0
  68. package/lib/commonjs/agent-creator/GlossArt.js +210 -0
  69. package/lib/commonjs/agent-creator/GlossArt.js.map +1 -0
  70. package/lib/commonjs/agent-creator/ScrollSurface.js +135 -0
  71. package/lib/commonjs/agent-creator/ScrollSurface.js.map +1 -0
  72. package/lib/commonjs/agent-creator/ShapeArc.js +222 -0
  73. package/lib/commonjs/agent-creator/ShapeArc.js.map +1 -0
  74. package/lib/commonjs/agent-creator/constants.js +68 -0
  75. package/lib/commonjs/agent-creator/constants.js.map +1 -0
  76. package/lib/commonjs/agent-creator/context.js +30 -0
  77. package/lib/commonjs/agent-creator/context.js.map +1 -0
  78. package/lib/commonjs/agent-creator/index.js +39 -0
  79. package/lib/commonjs/agent-creator/index.js.map +1 -0
  80. package/lib/commonjs/agent-creator/index.web.js +39 -0
  81. package/lib/commonjs/agent-creator/index.web.js.map +1 -0
  82. package/lib/commonjs/agent-creator/messages.js +104 -0
  83. package/lib/commonjs/agent-creator/messages.js.map +1 -0
  84. package/lib/commonjs/agent-creator/rainbow-artwork.js +10 -0
  85. package/lib/commonjs/agent-creator/rainbow-artwork.js.map +1 -0
  86. package/lib/commonjs/agent-creator/shared.js +83 -0
  87. package/lib/commonjs/agent-creator/shared.js.map +1 -0
  88. package/lib/commonjs/agent-creator/types.js +6 -0
  89. package/lib/{module/dot-grid-meter → commonjs/agent-creator}/types.js.map +1 -1
  90. package/lib/commonjs/agent-creator/use-agent-voices.js +59 -0
  91. package/lib/commonjs/agent-creator/use-agent-voices.js.map +1 -0
  92. package/lib/commonjs/agent-creator/use-track-events.js +43 -0
  93. package/lib/commonjs/agent-creator/use-track-events.js.map +1 -0
  94. package/lib/commonjs/button/CloseButton.js +4 -1
  95. package/lib/commonjs/button/CloseButton.js.map +1 -1
  96. package/lib/commonjs/chip/Chip.js +28 -15
  97. package/lib/commonjs/chip/Chip.js.map +1 -1
  98. package/lib/commonjs/design-tokens/component-roles.js +94 -0
  99. package/lib/commonjs/design-tokens/component-roles.js.map +1 -0
  100. package/lib/commonjs/design-tokens/tailwind-preset.js +25 -5
  101. package/lib/commonjs/design-tokens/tailwind-preset.js.map +1 -1
  102. package/lib/commonjs/design-tokens/theme-css.js +18 -0
  103. package/lib/commonjs/design-tokens/theme-css.js.map +1 -1
  104. package/lib/commonjs/design-tokens/theme.css +284 -0
  105. package/lib/commonjs/dialog/Dialog.js +28 -14
  106. package/lib/commonjs/dialog/Dialog.js.map +1 -1
  107. package/lib/commonjs/dialog/Dialog.web.js +24 -15
  108. package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
  109. package/lib/commonjs/dialog/DialogHeader.js +1 -1
  110. package/lib/commonjs/hooks/use-accessible-name-warning.js +2 -2
  111. package/lib/commonjs/index.js +143 -103
  112. package/lib/commonjs/index.js.map +1 -1
  113. package/lib/commonjs/index.web.js +143 -103
  114. package/lib/commonjs/index.web.js.map +1 -1
  115. package/lib/commonjs/locale/translations/ar.js +363 -0
  116. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  117. package/lib/commonjs/locale/translations/bn.js +351 -0
  118. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  119. package/lib/commonjs/locale/translations/ca.js +355 -0
  120. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  121. package/lib/commonjs/locale/translations/de.js +355 -0
  122. package/lib/commonjs/locale/translations/de.js.map +1 -1
  123. package/lib/commonjs/locale/translations/es.js +355 -0
  124. package/lib/commonjs/locale/translations/es.js.map +1 -1
  125. package/lib/commonjs/locale/translations/fr.js +355 -0
  126. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  127. package/lib/commonjs/locale/translations/hi.js +354 -0
  128. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  129. package/lib/commonjs/locale/translations/id.js +354 -0
  130. package/lib/commonjs/locale/translations/id.js.map +1 -1
  131. package/lib/commonjs/locale/translations/it.js +355 -0
  132. package/lib/commonjs/locale/translations/it.js.map +1 -1
  133. package/lib/commonjs/locale/translations/ja.js +351 -0
  134. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  135. package/lib/commonjs/locale/translations/pt.js +355 -0
  136. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  137. package/lib/commonjs/locale/translations/ru.js +359 -0
  138. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  139. package/lib/commonjs/locale/translations/tr.js +354 -0
  140. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  141. package/lib/commonjs/locale/translations/zh.js +351 -0
  142. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  143. package/lib/commonjs/multi-agent-chat/AvatarFlightHost.js +16 -0
  144. package/lib/commonjs/multi-agent-chat/AvatarFlightHost.js.map +1 -0
  145. package/lib/commonjs/multi-agent-chat/AvatarFlightHost.web.js +16 -0
  146. package/lib/commonjs/multi-agent-chat/AvatarFlightHost.web.js.map +1 -0
  147. package/lib/commonjs/multi-agent-chat/AvatarHandoff.js +183 -0
  148. package/lib/commonjs/multi-agent-chat/AvatarHandoff.js.map +1 -0
  149. package/lib/commonjs/multi-agent-chat/ChatDialogFrame.js +161 -0
  150. package/lib/commonjs/multi-agent-chat/ChatDialogFrame.js.map +1 -0
  151. package/lib/commonjs/multi-agent-chat/ChatSidebar.js +368 -0
  152. package/lib/commonjs/multi-agent-chat/ChatSidebar.js.map +1 -0
  153. package/lib/commonjs/multi-agent-chat/EditorRail.js +63 -0
  154. package/lib/commonjs/multi-agent-chat/EditorRail.js.map +1 -0
  155. package/lib/commonjs/multi-agent-chat/Marketplace.js +501 -0
  156. package/lib/commonjs/multi-agent-chat/Marketplace.js.map +1 -0
  157. package/lib/commonjs/multi-agent-chat/MarketplaceSettings.js +123 -0
  158. package/lib/commonjs/multi-agent-chat/MarketplaceSettings.js.map +1 -0
  159. package/lib/commonjs/multi-agent-chat/MultiAgentChat.js +39 -0
  160. package/lib/commonjs/multi-agent-chat/MultiAgentChat.js.map +1 -0
  161. package/lib/commonjs/multi-agent-chat/MultiAgentChat.web.js +39 -0
  162. package/lib/commonjs/multi-agent-chat/MultiAgentChat.web.js.map +1 -0
  163. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +926 -0
  164. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -0
  165. package/lib/commonjs/multi-agent-chat/ReplyRow.js +172 -0
  166. package/lib/commonjs/multi-agent-chat/ReplyRow.js.map +1 -0
  167. package/lib/commonjs/multi-agent-chat/ScrollSurface.js +94 -0
  168. package/lib/commonjs/multi-agent-chat/ScrollSurface.js.map +1 -0
  169. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +126 -0
  170. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -0
  171. package/lib/commonjs/multi-agent-chat/WorkspaceSettingsPages.js +480 -0
  172. package/lib/commonjs/multi-agent-chat/WorkspaceSettingsPages.js.map +1 -0
  173. package/lib/commonjs/multi-agent-chat/context.js +15 -0
  174. package/lib/commonjs/multi-agent-chat/context.js.map +1 -0
  175. package/lib/commonjs/multi-agent-chat/data.js +423 -0
  176. package/lib/commonjs/multi-agent-chat/data.js.map +1 -0
  177. package/lib/commonjs/multi-agent-chat/handoff.js +104 -0
  178. package/lib/commonjs/multi-agent-chat/handoff.js.map +1 -0
  179. package/lib/commonjs/multi-agent-chat/index.js +13 -0
  180. package/lib/commonjs/multi-agent-chat/index.js.map +1 -0
  181. package/lib/commonjs/multi-agent-chat/index.web.js +13 -0
  182. package/lib/commonjs/multi-agent-chat/index.web.js.map +1 -0
  183. package/lib/commonjs/multi-agent-chat/marketplace-data.js +145 -0
  184. package/lib/commonjs/multi-agent-chat/marketplace-data.js.map +1 -0
  185. package/lib/commonjs/multi-agent-chat/marketplace-logos.js +36 -0
  186. package/lib/commonjs/multi-agent-chat/marketplace-logos.js.map +1 -0
  187. package/lib/commonjs/multi-agent-chat/messages.js +196 -0
  188. package/lib/commonjs/multi-agent-chat/messages.js.map +1 -0
  189. package/lib/commonjs/multi-agent-chat/model-catalog.js +771 -0
  190. package/lib/commonjs/multi-agent-chat/model-catalog.js.map +1 -0
  191. package/lib/commonjs/multi-agent-chat/stream-reply.js +41 -0
  192. package/lib/commonjs/multi-agent-chat/stream-reply.js.map +1 -0
  193. package/lib/commonjs/multi-agent-chat/types.js +6 -0
  194. package/lib/commonjs/multi-agent-chat/types.js.map +1 -0
  195. package/lib/commonjs/multi-agent-chat/use-replies.js +157 -0
  196. package/lib/commonjs/multi-agent-chat/use-replies.js.map +1 -0
  197. package/lib/commonjs/multi-agent-chat/use-workspace.js +57 -0
  198. package/lib/commonjs/multi-agent-chat/use-workspace.js.map +1 -0
  199. package/lib/commonjs/project-board/BoardTooltip.js +49 -0
  200. package/lib/commonjs/project-board/BoardTooltip.js.map +1 -0
  201. package/lib/commonjs/project-board/CreateTicketDialog.js +330 -0
  202. package/lib/commonjs/project-board/CreateTicketDialog.js.map +1 -0
  203. package/lib/commonjs/project-board/ProjectBoard.js +39 -0
  204. package/lib/commonjs/project-board/ProjectBoard.js.map +1 -0
  205. package/lib/commonjs/project-board/ProjectBoard.web.js +40 -0
  206. package/lib/commonjs/project-board/ProjectBoard.web.js.map +1 -0
  207. package/lib/commonjs/project-board/ProjectBoardBase.js +768 -0
  208. package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -0
  209. package/lib/commonjs/project-board/ProjectBoardControls.js +198 -0
  210. package/lib/commonjs/project-board/ProjectBoardControls.js.map +1 -0
  211. package/lib/commonjs/project-board/ProjectBoardEmptyState.js +171 -0
  212. package/lib/commonjs/project-board/ProjectBoardEmptyState.js.map +1 -0
  213. package/lib/commonjs/project-board/ProjectBoardIcons.js +91 -0
  214. package/lib/commonjs/project-board/ProjectBoardIcons.js.map +1 -0
  215. package/lib/commonjs/project-board/RiInboxArchiveLine.js +11 -0
  216. package/lib/commonjs/project-board/RiInboxArchiveLine.js.map +1 -0
  217. package/lib/commonjs/project-board/RiMoreLine.js +11 -0
  218. package/lib/commonjs/project-board/RiMoreLine.js.map +1 -0
  219. package/lib/commonjs/project-board/RiPieChart2Line.js +11 -0
  220. package/lib/commonjs/project-board/RiPieChart2Line.js.map +1 -0
  221. package/lib/commonjs/project-board/RiRestartLine.js +11 -0
  222. package/lib/commonjs/project-board/RiRestartLine.js.map +1 -0
  223. package/lib/commonjs/project-board/SourcePrimitives.js +135 -0
  224. package/lib/commonjs/project-board/SourcePrimitives.js.map +1 -0
  225. package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js +338 -0
  226. package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js.map +1 -0
  227. package/lib/commonjs/project-board/TicketDetailDialog.js +597 -0
  228. package/lib/commonjs/project-board/TicketDetailDialog.js.map +1 -0
  229. package/lib/commonjs/project-board/TicketGenieSurface.js +76 -0
  230. package/lib/commonjs/project-board/TicketGenieSurface.js.map +1 -0
  231. package/lib/commonjs/project-board/TicketGenieSurface.web.js +193 -0
  232. package/lib/commonjs/project-board/TicketGenieSurface.web.js.map +1 -0
  233. package/lib/commonjs/project-board/animation.web.js +21 -0
  234. package/lib/commonjs/project-board/animation.web.js.map +1 -0
  235. package/lib/commonjs/project-board/constants.js +18 -0
  236. package/lib/commonjs/project-board/constants.js.map +1 -0
  237. package/lib/commonjs/project-board/context.js +15 -0
  238. package/lib/commonjs/project-board/context.js.map +1 -0
  239. package/lib/commonjs/project-board/index.js +13 -0
  240. package/lib/commonjs/project-board/index.js.map +1 -0
  241. package/lib/commonjs/project-board/index.web.js +13 -0
  242. package/lib/commonjs/project-board/index.web.js.map +1 -0
  243. package/lib/commonjs/project-board/messages.js +80 -0
  244. package/lib/commonjs/project-board/messages.js.map +1 -0
  245. package/lib/commonjs/project-board/shared.js +90 -0
  246. package/lib/commonjs/project-board/shared.js.map +1 -0
  247. package/lib/commonjs/project-board/types.js +6 -0
  248. package/lib/commonjs/project-board/types.js.map +1 -0
  249. package/lib/commonjs/segmented-control/SegmentedControl.js +36 -38
  250. package/lib/commonjs/segmented-control/SegmentedControl.js.map +1 -1
  251. package/lib/commonjs/settings-modal/SettingsModal.js +18 -4
  252. package/lib/commonjs/settings-modal/SettingsModal.js.map +1 -1
  253. package/lib/commonjs/settings-modal/SettingsRows.js +4 -1
  254. package/lib/commonjs/settings-modal/SettingsRows.js.map +1 -1
  255. package/lib/commonjs/sidebar/Sidebar.js +21 -9
  256. package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
  257. package/lib/commonjs/sidebar/SidebarItem.js +58 -14
  258. package/lib/commonjs/sidebar/SidebarItem.js.map +1 -1
  259. package/lib/commonjs/sidebar/SidebarTeamMenu.js +3 -3
  260. package/lib/commonjs/sidebar/SidebarTeamMenu.js.map +1 -1
  261. package/lib/commonjs/sidebar/SidebarToolbar.js +170 -0
  262. package/lib/commonjs/sidebar/SidebarToolbar.js.map +1 -0
  263. package/lib/commonjs/sidebar/index.js +7 -0
  264. package/lib/commonjs/sidebar/index.js.map +1 -1
  265. package/lib/commonjs/sidebar/parts.js +11 -3
  266. package/lib/commonjs/sidebar/parts.js.map +1 -1
  267. package/lib/commonjs/social-button/SocialButtonBase.js +1 -0
  268. package/lib/commonjs/social-button/SocialButtonBase.js.map +1 -1
  269. package/lib/commonjs/textarea/Textarea.js +28 -14
  270. package/lib/commonjs/textarea/Textarea.js.map +1 -1
  271. package/lib/commonjs/theme/color-scope/seed-scope.js +2 -0
  272. package/lib/commonjs/theme/color-scope/seed-scope.js.map +1 -1
  273. package/lib/module/agent-avatar/AgentAvatar.js +210 -0
  274. package/lib/module/agent-avatar/AgentAvatar.js.map +1 -0
  275. package/lib/module/agent-avatar/AgentFace.js +23 -0
  276. package/lib/module/agent-avatar/AgentFace.js.map +1 -0
  277. package/lib/module/agent-avatar/SvgDrawing.js +202 -0
  278. package/lib/module/agent-avatar/SvgDrawing.js.map +1 -0
  279. package/lib/module/agent-avatar/artwork.js +144 -0
  280. package/lib/module/agent-avatar/artwork.js.map +1 -0
  281. package/lib/module/agent-avatar/attention.js +74 -0
  282. package/lib/module/agent-avatar/attention.js.map +1 -0
  283. package/lib/module/agent-avatar/blink.js +41 -0
  284. package/lib/module/agent-avatar/blink.js.map +1 -0
  285. package/lib/module/agent-avatar/context.js +6 -0
  286. package/lib/module/agent-avatar/context.js.map +1 -0
  287. package/lib/module/agent-avatar/drawing.js +226 -0
  288. package/lib/module/agent-avatar/drawing.js.map +1 -0
  289. package/lib/module/agent-avatar/entrance.js +27 -0
  290. package/lib/module/agent-avatar/entrance.js.map +1 -0
  291. package/lib/module/agent-avatar/face.js +392 -0
  292. package/lib/module/agent-avatar/face.js.map +1 -0
  293. package/lib/module/agent-avatar/fold-outlines.js +37 -0
  294. package/lib/module/agent-avatar/fold-outlines.js.map +1 -0
  295. package/lib/module/agent-avatar/fold.js +319 -0
  296. package/lib/module/agent-avatar/fold.js.map +1 -0
  297. package/lib/module/agent-avatar/grain.js +5 -0
  298. package/lib/module/agent-avatar/grain.js.map +1 -0
  299. package/lib/module/agent-avatar/index.js +5 -0
  300. package/lib/module/agent-avatar/index.js.map +1 -0
  301. package/lib/module/agent-avatar/messages.js +7 -0
  302. package/lib/module/agent-avatar/messages.js.map +1 -0
  303. package/lib/module/agent-avatar/model.js +424 -0
  304. package/lib/module/agent-avatar/model.js.map +1 -0
  305. package/lib/module/agent-avatar/shape-morph.js +155 -0
  306. package/lib/module/agent-avatar/shape-morph.js.map +1 -0
  307. package/lib/module/agent-avatar/types.js.map +1 -0
  308. package/lib/module/agent-avatar/wander.js +59 -0
  309. package/lib/module/agent-avatar/wander.js.map +1 -0
  310. package/lib/module/agent-avatar/working.js +23 -0
  311. package/lib/module/agent-avatar/working.js.map +1 -0
  312. package/lib/module/agent-chat/AgentChatMessage.js +20 -0
  313. package/lib/module/agent-chat/AgentChatMessage.js.map +1 -1
  314. package/lib/module/agent-creator/AgentCreator.js +28 -0
  315. package/lib/module/agent-creator/AgentCreator.js.map +1 -0
  316. package/lib/module/agent-creator/AgentCreator.web.js +28 -0
  317. package/lib/module/agent-creator/AgentCreator.web.js.map +1 -0
  318. package/lib/module/agent-creator/AgentCreatorBase.js +315 -0
  319. package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -0
  320. package/lib/module/agent-creator/AgentPreferencesPanel.js +257 -0
  321. package/lib/module/agent-creator/AgentPreferencesPanel.js.map +1 -0
  322. package/lib/module/agent-creator/CustomColorPicker.js +369 -0
  323. package/lib/module/agent-creator/CustomColorPicker.js.map +1 -0
  324. package/lib/module/agent-creator/EmotionPicker.js +174 -0
  325. package/lib/module/agent-creator/EmotionPicker.js.map +1 -0
  326. package/lib/module/agent-creator/GlossArt.js +206 -0
  327. package/lib/module/agent-creator/GlossArt.js.map +1 -0
  328. package/lib/module/agent-creator/ScrollSurface.js +130 -0
  329. package/lib/module/agent-creator/ScrollSurface.js.map +1 -0
  330. package/lib/module/agent-creator/ShapeArc.js +217 -0
  331. package/lib/module/agent-creator/ShapeArc.js.map +1 -0
  332. package/lib/module/agent-creator/constants.js +64 -0
  333. package/lib/module/agent-creator/constants.js.map +1 -0
  334. package/lib/module/agent-creator/context.js +24 -0
  335. package/lib/module/agent-creator/context.js.map +1 -0
  336. package/lib/module/agent-creator/index.js +6 -0
  337. package/lib/module/agent-creator/index.js.map +1 -0
  338. package/lib/module/agent-creator/index.web.js +11 -0
  339. package/lib/module/agent-creator/index.web.js.map +1 -0
  340. package/lib/module/agent-creator/messages.js +100 -0
  341. package/lib/module/agent-creator/messages.js.map +1 -0
  342. package/lib/module/agent-creator/rainbow-artwork.js +6 -0
  343. package/lib/module/agent-creator/rainbow-artwork.js.map +1 -0
  344. package/lib/module/agent-creator/shared.js +72 -0
  345. package/lib/module/agent-creator/shared.js.map +1 -0
  346. package/lib/module/agent-creator/types.js +4 -0
  347. package/lib/module/agent-creator/types.js.map +1 -0
  348. package/lib/module/agent-creator/use-agent-voices.js +55 -0
  349. package/lib/module/agent-creator/use-agent-voices.js.map +1 -0
  350. package/lib/module/agent-creator/use-track-events.js +40 -0
  351. package/lib/module/agent-creator/use-track-events.js.map +1 -0
  352. package/lib/module/button/CloseButton.js +5 -2
  353. package/lib/module/button/CloseButton.js.map +1 -1
  354. package/lib/module/chip/Chip.js +29 -14
  355. package/lib/module/chip/Chip.js.map +1 -1
  356. package/lib/module/design-tokens/component-roles.js +90 -0
  357. package/lib/module/design-tokens/component-roles.js.map +1 -0
  358. package/lib/module/design-tokens/tailwind-preset.js +25 -5
  359. package/lib/module/design-tokens/tailwind-preset.js.map +1 -1
  360. package/lib/module/design-tokens/theme-css.js +18 -0
  361. package/lib/module/design-tokens/theme-css.js.map +1 -1
  362. package/lib/module/design-tokens/theme.css +284 -0
  363. package/lib/module/dialog/Dialog.js +28 -14
  364. package/lib/module/dialog/Dialog.js.map +1 -1
  365. package/lib/module/dialog/Dialog.web.js +24 -15
  366. package/lib/module/dialog/Dialog.web.js.map +1 -1
  367. package/lib/module/dialog/DialogHeader.js +1 -1
  368. package/lib/module/hooks/use-accessible-name-warning.js +2 -2
  369. package/lib/module/index.js +4 -1
  370. package/lib/module/index.js.map +1 -1
  371. package/lib/module/index.web.js +4 -1
  372. package/lib/module/index.web.js.map +1 -1
  373. package/lib/module/locale/translations/ar.js +363 -0
  374. package/lib/module/locale/translations/ar.js.map +1 -1
  375. package/lib/module/locale/translations/bn.js +351 -0
  376. package/lib/module/locale/translations/bn.js.map +1 -1
  377. package/lib/module/locale/translations/ca.js +355 -0
  378. package/lib/module/locale/translations/ca.js.map +1 -1
  379. package/lib/module/locale/translations/de.js +355 -0
  380. package/lib/module/locale/translations/de.js.map +1 -1
  381. package/lib/module/locale/translations/es.js +355 -0
  382. package/lib/module/locale/translations/es.js.map +1 -1
  383. package/lib/module/locale/translations/fr.js +355 -0
  384. package/lib/module/locale/translations/fr.js.map +1 -1
  385. package/lib/module/locale/translations/hi.js +354 -0
  386. package/lib/module/locale/translations/hi.js.map +1 -1
  387. package/lib/module/locale/translations/id.js +354 -0
  388. package/lib/module/locale/translations/id.js.map +1 -1
  389. package/lib/module/locale/translations/it.js +355 -0
  390. package/lib/module/locale/translations/it.js.map +1 -1
  391. package/lib/module/locale/translations/ja.js +351 -0
  392. package/lib/module/locale/translations/ja.js.map +1 -1
  393. package/lib/module/locale/translations/pt.js +355 -0
  394. package/lib/module/locale/translations/pt.js.map +1 -1
  395. package/lib/module/locale/translations/ru.js +359 -0
  396. package/lib/module/locale/translations/ru.js.map +1 -1
  397. package/lib/module/locale/translations/tr.js +354 -0
  398. package/lib/module/locale/translations/tr.js.map +1 -1
  399. package/lib/module/locale/translations/zh.js +351 -0
  400. package/lib/module/locale/translations/zh.js.map +1 -1
  401. package/lib/module/multi-agent-chat/AvatarFlightHost.js +12 -0
  402. package/lib/module/multi-agent-chat/AvatarFlightHost.js.map +1 -0
  403. package/lib/module/multi-agent-chat/AvatarFlightHost.web.js +12 -0
  404. package/lib/module/multi-agent-chat/AvatarFlightHost.web.js.map +1 -0
  405. package/lib/module/multi-agent-chat/AvatarHandoff.js +178 -0
  406. package/lib/module/multi-agent-chat/AvatarHandoff.js.map +1 -0
  407. package/lib/module/multi-agent-chat/ChatDialogFrame.js +155 -0
  408. package/lib/module/multi-agent-chat/ChatDialogFrame.js.map +1 -0
  409. package/lib/module/multi-agent-chat/ChatSidebar.js +362 -0
  410. package/lib/module/multi-agent-chat/ChatSidebar.js.map +1 -0
  411. package/lib/module/multi-agent-chat/EditorRail.js +58 -0
  412. package/lib/module/multi-agent-chat/EditorRail.js.map +1 -0
  413. package/lib/module/multi-agent-chat/Marketplace.js +496 -0
  414. package/lib/module/multi-agent-chat/Marketplace.js.map +1 -0
  415. package/lib/module/multi-agent-chat/MarketplaceSettings.js +119 -0
  416. package/lib/module/multi-agent-chat/MarketplaceSettings.js.map +1 -0
  417. package/lib/module/multi-agent-chat/MultiAgentChat.js +34 -0
  418. package/lib/module/multi-agent-chat/MultiAgentChat.js.map +1 -0
  419. package/lib/module/multi-agent-chat/MultiAgentChat.web.js +34 -0
  420. package/lib/module/multi-agent-chat/MultiAgentChat.web.js.map +1 -0
  421. package/lib/module/multi-agent-chat/MultiAgentChatBase.js +921 -0
  422. package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -0
  423. package/lib/module/multi-agent-chat/ReplyRow.js +166 -0
  424. package/lib/module/multi-agent-chat/ReplyRow.js.map +1 -0
  425. package/lib/module/multi-agent-chat/ScrollSurface.js +89 -0
  426. package/lib/module/multi-agent-chat/ScrollSurface.js.map +1 -0
  427. package/lib/module/multi-agent-chat/SelectedAgentPreview.js +121 -0
  428. package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -0
  429. package/lib/module/multi-agent-chat/WorkspaceSettingsPages.js +476 -0
  430. package/lib/module/multi-agent-chat/WorkspaceSettingsPages.js.map +1 -0
  431. package/lib/module/multi-agent-chat/context.js +10 -0
  432. package/lib/module/multi-agent-chat/context.js.map +1 -0
  433. package/lib/module/multi-agent-chat/data.js +412 -0
  434. package/lib/module/multi-agent-chat/data.js.map +1 -0
  435. package/lib/module/multi-agent-chat/handoff.js +94 -0
  436. package/lib/module/multi-agent-chat/handoff.js.map +1 -0
  437. package/lib/module/multi-agent-chat/index.js +4 -0
  438. package/lib/module/multi-agent-chat/index.js.map +1 -0
  439. package/lib/module/multi-agent-chat/index.web.js +9 -0
  440. package/lib/module/multi-agent-chat/index.web.js.map +1 -0
  441. package/lib/module/multi-agent-chat/marketplace-data.js +137 -0
  442. package/lib/module/multi-agent-chat/marketplace-data.js.map +1 -0
  443. package/lib/module/multi-agent-chat/marketplace-logos.js +32 -0
  444. package/lib/module/multi-agent-chat/marketplace-logos.js.map +1 -0
  445. package/lib/module/multi-agent-chat/messages.js +191 -0
  446. package/lib/module/multi-agent-chat/messages.js.map +1 -0
  447. package/lib/module/multi-agent-chat/model-catalog.js +767 -0
  448. package/lib/module/multi-agent-chat/model-catalog.js.map +1 -0
  449. package/lib/module/multi-agent-chat/stream-reply.js +36 -0
  450. package/lib/module/multi-agent-chat/stream-reply.js.map +1 -0
  451. package/lib/module/multi-agent-chat/types.js +4 -0
  452. package/lib/module/multi-agent-chat/types.js.map +1 -0
  453. package/lib/module/multi-agent-chat/use-replies.js +152 -0
  454. package/lib/module/multi-agent-chat/use-replies.js.map +1 -0
  455. package/lib/module/multi-agent-chat/use-workspace.js +53 -0
  456. package/lib/module/multi-agent-chat/use-workspace.js.map +1 -0
  457. package/lib/module/project-board/BoardTooltip.js +45 -0
  458. package/lib/module/project-board/BoardTooltip.js.map +1 -0
  459. package/lib/module/project-board/CreateTicketDialog.js +326 -0
  460. package/lib/module/project-board/CreateTicketDialog.js.map +1 -0
  461. package/lib/module/project-board/ProjectBoard.js +34 -0
  462. package/lib/module/project-board/ProjectBoard.js.map +1 -0
  463. package/lib/module/project-board/ProjectBoard.web.js +35 -0
  464. package/lib/module/project-board/ProjectBoard.web.js.map +1 -0
  465. package/lib/module/project-board/ProjectBoardBase.js +763 -0
  466. package/lib/module/project-board/ProjectBoardBase.js.map +1 -0
  467. package/lib/module/project-board/ProjectBoardControls.js +188 -0
  468. package/lib/module/project-board/ProjectBoardControls.js.map +1 -0
  469. package/lib/module/project-board/ProjectBoardEmptyState.js +166 -0
  470. package/lib/module/project-board/ProjectBoardEmptyState.js.map +1 -0
  471. package/lib/module/project-board/ProjectBoardIcons.js +83 -0
  472. package/lib/module/project-board/ProjectBoardIcons.js.map +1 -0
  473. package/lib/module/project-board/RiInboxArchiveLine.js +7 -0
  474. package/lib/module/project-board/RiInboxArchiveLine.js.map +1 -0
  475. package/lib/module/project-board/RiMoreLine.js +7 -0
  476. package/lib/module/project-board/RiMoreLine.js.map +1 -0
  477. package/lib/module/project-board/RiPieChart2Line.js +7 -0
  478. package/lib/module/project-board/RiPieChart2Line.js.map +1 -0
  479. package/lib/module/project-board/RiRestartLine.js +7 -0
  480. package/lib/module/project-board/RiRestartLine.js.map +1 -0
  481. package/lib/module/project-board/SourcePrimitives.js +125 -0
  482. package/lib/module/project-board/SourcePrimitives.js.map +1 -0
  483. package/lib/module/project-board/TicketCornerGenieSurface.web.js +334 -0
  484. package/lib/module/project-board/TicketCornerGenieSurface.web.js.map +1 -0
  485. package/lib/module/project-board/TicketDetailDialog.js +593 -0
  486. package/lib/module/project-board/TicketDetailDialog.js.map +1 -0
  487. package/lib/module/project-board/TicketGenieSurface.js +70 -0
  488. package/lib/module/project-board/TicketGenieSurface.js.map +1 -0
  489. package/lib/module/project-board/TicketGenieSurface.web.js +189 -0
  490. package/lib/module/project-board/TicketGenieSurface.web.js.map +1 -0
  491. package/lib/module/project-board/animation.web.js +17 -0
  492. package/lib/module/project-board/animation.web.js.map +1 -0
  493. package/lib/module/project-board/constants.js +13 -0
  494. package/lib/module/project-board/constants.js.map +1 -0
  495. package/lib/module/project-board/context.js +10 -0
  496. package/lib/module/project-board/context.js.map +1 -0
  497. package/lib/module/project-board/index.js +4 -0
  498. package/lib/module/project-board/index.js.map +1 -0
  499. package/lib/module/project-board/index.web.js +9 -0
  500. package/lib/module/project-board/index.web.js.map +1 -0
  501. package/lib/module/project-board/messages.js +76 -0
  502. package/lib/module/project-board/messages.js.map +1 -0
  503. package/lib/module/project-board/shared.js +82 -0
  504. package/lib/module/project-board/shared.js.map +1 -0
  505. package/lib/module/project-board/types.js +4 -0
  506. package/lib/module/project-board/types.js.map +1 -0
  507. package/lib/module/segmented-control/SegmentedControl.js +37 -39
  508. package/lib/module/segmented-control/SegmentedControl.js.map +1 -1
  509. package/lib/module/settings-modal/SettingsModal.js +18 -4
  510. package/lib/module/settings-modal/SettingsModal.js.map +1 -1
  511. package/lib/module/settings-modal/SettingsRows.js +4 -1
  512. package/lib/module/settings-modal/SettingsRows.js.map +1 -1
  513. package/lib/module/sidebar/Sidebar.js +21 -9
  514. package/lib/module/sidebar/Sidebar.js.map +1 -1
  515. package/lib/module/sidebar/SidebarItem.js +59 -15
  516. package/lib/module/sidebar/SidebarItem.js.map +1 -1
  517. package/lib/module/sidebar/SidebarTeamMenu.js +3 -3
  518. package/lib/module/sidebar/SidebarTeamMenu.js.map +1 -1
  519. package/lib/module/sidebar/SidebarToolbar.js +165 -0
  520. package/lib/module/sidebar/SidebarToolbar.js.map +1 -0
  521. package/lib/module/sidebar/index.js +1 -0
  522. package/lib/module/sidebar/index.js.map +1 -1
  523. package/lib/module/sidebar/parts.js +11 -3
  524. package/lib/module/sidebar/parts.js.map +1 -1
  525. package/lib/module/social-button/SocialButtonBase.js +1 -1
  526. package/lib/module/social-button/SocialButtonBase.js.map +1 -1
  527. package/lib/module/textarea/Textarea.js +29 -15
  528. package/lib/module/textarea/Textarea.js.map +1 -1
  529. package/lib/module/theme/color-scope/seed-scope.js +2 -0
  530. package/lib/module/theme/color-scope/seed-scope.js.map +1 -1
  531. package/lib/typescript/commonjs/agent-avatar/AgentAvatar.d.ts +4 -0
  532. package/lib/typescript/commonjs/agent-avatar/AgentAvatar.d.ts.map +1 -0
  533. package/lib/typescript/commonjs/agent-avatar/AgentFace.d.ts +7 -0
  534. package/lib/typescript/commonjs/agent-avatar/AgentFace.d.ts.map +1 -0
  535. package/lib/typescript/commonjs/agent-avatar/SvgDrawing.d.ts +14 -0
  536. package/lib/typescript/commonjs/agent-avatar/SvgDrawing.d.ts.map +1 -0
  537. package/lib/typescript/commonjs/agent-avatar/artwork.d.ts +7 -0
  538. package/lib/typescript/commonjs/agent-avatar/artwork.d.ts.map +1 -0
  539. package/lib/typescript/commonjs/agent-avatar/attention.d.ts +24 -0
  540. package/lib/typescript/commonjs/agent-avatar/attention.d.ts.map +1 -0
  541. package/lib/typescript/commonjs/agent-avatar/blink.d.ts +12 -0
  542. package/lib/typescript/commonjs/agent-avatar/blink.d.ts.map +1 -0
  543. package/lib/typescript/commonjs/agent-avatar/context.d.ts +4 -0
  544. package/lib/typescript/commonjs/agent-avatar/context.d.ts.map +1 -0
  545. package/lib/typescript/commonjs/agent-avatar/drawing.d.ts +102 -0
  546. package/lib/typescript/commonjs/agent-avatar/drawing.d.ts.map +1 -0
  547. package/lib/typescript/commonjs/agent-avatar/entrance.d.ts +13 -0
  548. package/lib/typescript/commonjs/agent-avatar/entrance.d.ts.map +1 -0
  549. package/lib/typescript/commonjs/agent-avatar/face.d.ts +38 -0
  550. package/lib/typescript/commonjs/agent-avatar/face.d.ts.map +1 -0
  551. package/lib/typescript/commonjs/agent-avatar/fold-outlines.d.ts +13 -0
  552. package/lib/typescript/commonjs/agent-avatar/fold-outlines.d.ts.map +1 -0
  553. package/lib/typescript/commonjs/agent-avatar/fold.d.ts +7 -0
  554. package/lib/typescript/commonjs/agent-avatar/fold.d.ts.map +1 -0
  555. package/lib/typescript/commonjs/agent-avatar/grain.d.ts +3 -0
  556. package/lib/typescript/commonjs/agent-avatar/grain.d.ts.map +1 -0
  557. package/lib/typescript/commonjs/agent-avatar/index.d.ts +5 -0
  558. package/lib/typescript/commonjs/agent-avatar/index.d.ts.map +1 -0
  559. package/lib/typescript/commonjs/agent-avatar/messages.d.ts +4 -0
  560. package/lib/typescript/commonjs/agent-avatar/messages.d.ts.map +1 -0
  561. package/lib/typescript/commonjs/agent-avatar/model.d.ts +63 -0
  562. package/lib/typescript/commonjs/agent-avatar/model.d.ts.map +1 -0
  563. package/lib/typescript/commonjs/agent-avatar/shape-morph.d.ts +39 -0
  564. package/lib/typescript/commonjs/agent-avatar/shape-morph.d.ts.map +1 -0
  565. package/lib/typescript/commonjs/agent-avatar/types.d.ts +21 -0
  566. package/lib/typescript/commonjs/agent-avatar/types.d.ts.map +1 -0
  567. package/lib/typescript/commonjs/agent-avatar/wander.d.ts +14 -0
  568. package/lib/typescript/commonjs/agent-avatar/wander.d.ts.map +1 -0
  569. package/lib/typescript/commonjs/agent-avatar/working.d.ts +8 -0
  570. package/lib/typescript/commonjs/agent-avatar/working.d.ts.map +1 -0
  571. package/lib/typescript/commonjs/agent-chat/AgentChatMessage.d.ts +5 -0
  572. package/lib/typescript/commonjs/agent-chat/AgentChatMessage.d.ts.map +1 -1
  573. package/lib/typescript/commonjs/agent-creator/AgentCreator.d.ts +3 -0
  574. package/lib/typescript/commonjs/agent-creator/AgentCreator.d.ts.map +1 -0
  575. package/lib/typescript/commonjs/agent-creator/AgentCreator.web.d.ts +3 -0
  576. package/lib/typescript/commonjs/agent-creator/AgentCreator.web.d.ts.map +1 -0
  577. package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts +4 -0
  578. package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -0
  579. package/lib/typescript/commonjs/agent-creator/AgentPreferencesPanel.d.ts +4 -0
  580. package/lib/typescript/commonjs/agent-creator/AgentPreferencesPanel.d.ts.map +1 -0
  581. package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts +7 -0
  582. package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts.map +1 -0
  583. package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts +7 -0
  584. package/lib/typescript/commonjs/agent-creator/EmotionPicker.d.ts.map +1 -0
  585. package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts +9 -0
  586. package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts.map +1 -0
  587. package/lib/typescript/commonjs/agent-creator/ScrollSurface.d.ts +11 -0
  588. package/lib/typescript/commonjs/agent-creator/ScrollSurface.d.ts.map +1 -0
  589. package/lib/typescript/commonjs/agent-creator/ShapeArc.d.ts +7 -0
  590. package/lib/typescript/commonjs/agent-creator/ShapeArc.d.ts.map +1 -0
  591. package/lib/typescript/commonjs/agent-creator/constants.d.ts +49 -0
  592. package/lib/typescript/commonjs/agent-creator/constants.d.ts.map +1 -0
  593. package/lib/typescript/commonjs/agent-creator/context.d.ts +64 -0
  594. package/lib/typescript/commonjs/agent-creator/context.d.ts.map +1 -0
  595. package/lib/typescript/commonjs/agent-creator/index.d.ts +5 -0
  596. package/lib/typescript/commonjs/agent-creator/index.d.ts.map +1 -0
  597. package/lib/typescript/commonjs/agent-creator/index.web.d.ts +5 -0
  598. package/lib/typescript/commonjs/agent-creator/index.web.d.ts.map +1 -0
  599. package/lib/typescript/commonjs/agent-creator/messages.d.ts +53 -0
  600. package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -0
  601. package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts +3 -0
  602. package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts.map +1 -0
  603. package/lib/typescript/commonjs/agent-creator/shared.d.ts +18 -0
  604. package/lib/typescript/commonjs/agent-creator/shared.d.ts.map +1 -0
  605. package/lib/typescript/commonjs/agent-creator/types.d.ts +37 -0
  606. package/lib/typescript/commonjs/agent-creator/types.d.ts.map +1 -0
  607. package/lib/typescript/commonjs/agent-creator/use-agent-voices.d.ts +9 -0
  608. package/lib/typescript/commonjs/agent-creator/use-agent-voices.d.ts.map +1 -0
  609. package/lib/typescript/commonjs/agent-creator/use-track-events.d.ts +5 -0
  610. package/lib/typescript/commonjs/agent-creator/use-track-events.d.ts.map +1 -0
  611. package/lib/typescript/commonjs/button/CloseButton.d.ts +1 -1
  612. package/lib/typescript/commonjs/button/CloseButton.d.ts.map +1 -1
  613. package/lib/typescript/commonjs/button/shared.d.ts +1 -1
  614. package/lib/typescript/commonjs/button/types.d.ts +2 -0
  615. package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
  616. package/lib/typescript/commonjs/chip/Chip.d.ts.map +1 -1
  617. package/lib/typescript/commonjs/chip/types.d.ts +3 -0
  618. package/lib/typescript/commonjs/chip/types.d.ts.map +1 -1
  619. package/lib/typescript/commonjs/design-tokens/component-roles.d.ts +89 -0
  620. package/lib/typescript/commonjs/design-tokens/component-roles.d.ts.map +1 -0
  621. package/lib/typescript/commonjs/design-tokens/tailwind-preset.d.ts +3 -27
  622. package/lib/typescript/commonjs/design-tokens/tailwind-preset.d.ts.map +1 -1
  623. package/lib/typescript/commonjs/design-tokens/theme-css.d.ts +0 -24
  624. package/lib/typescript/commonjs/design-tokens/theme-css.d.ts.map +1 -1
  625. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
  626. package/lib/typescript/commonjs/dialog/types.d.ts +6 -0
  627. package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
  628. package/lib/typescript/commonjs/index.d.ts +4 -2
  629. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  630. package/lib/typescript/commonjs/index.web.d.ts +4 -2
  631. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  632. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  633. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  634. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  635. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  636. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  637. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  638. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  639. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  640. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  641. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  642. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  643. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  644. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  645. package/lib/typescript/commonjs/locale/translations/types.d.ts +8 -0
  646. package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
  647. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  648. package/lib/typescript/commonjs/multi-agent-chat/AvatarFlightHost.d.ts +4 -0
  649. package/lib/typescript/commonjs/multi-agent-chat/AvatarFlightHost.d.ts.map +1 -0
  650. package/lib/typescript/commonjs/multi-agent-chat/AvatarFlightHost.web.d.ts +3 -0
  651. package/lib/typescript/commonjs/multi-agent-chat/AvatarFlightHost.web.d.ts.map +1 -0
  652. package/lib/typescript/commonjs/multi-agent-chat/AvatarHandoff.d.ts +10 -0
  653. package/lib/typescript/commonjs/multi-agent-chat/AvatarHandoff.d.ts.map +1 -0
  654. package/lib/typescript/commonjs/multi-agent-chat/ChatDialogFrame.d.ts +15 -0
  655. package/lib/typescript/commonjs/multi-agent-chat/ChatDialogFrame.d.ts.map +1 -0
  656. package/lib/typescript/commonjs/multi-agent-chat/ChatSidebar.d.ts +24 -0
  657. package/lib/typescript/commonjs/multi-agent-chat/ChatSidebar.d.ts.map +1 -0
  658. package/lib/typescript/commonjs/multi-agent-chat/EditorRail.d.ts +7 -0
  659. package/lib/typescript/commonjs/multi-agent-chat/EditorRail.d.ts.map +1 -0
  660. package/lib/typescript/commonjs/multi-agent-chat/Marketplace.d.ts +14 -0
  661. package/lib/typescript/commonjs/multi-agent-chat/Marketplace.d.ts.map +1 -0
  662. package/lib/typescript/commonjs/multi-agent-chat/MarketplaceSettings.d.ts +7 -0
  663. package/lib/typescript/commonjs/multi-agent-chat/MarketplaceSettings.d.ts.map +1 -0
  664. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChat.d.ts +3 -0
  665. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChat.d.ts.map +1 -0
  666. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChat.web.d.ts +3 -0
  667. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChat.web.d.ts.map +1 -0
  668. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts +4 -0
  669. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -0
  670. package/lib/typescript/commonjs/multi-agent-chat/ReplyRow.d.ts +18 -0
  671. package/lib/typescript/commonjs/multi-agent-chat/ReplyRow.d.ts.map +1 -0
  672. package/lib/typescript/commonjs/multi-agent-chat/ScrollSurface.d.ts +13 -0
  673. package/lib/typescript/commonjs/multi-agent-chat/ScrollSurface.d.ts.map +1 -0
  674. package/lib/typescript/commonjs/multi-agent-chat/SelectedAgentPreview.d.ts +9 -0
  675. package/lib/typescript/commonjs/multi-agent-chat/SelectedAgentPreview.d.ts.map +1 -0
  676. package/lib/typescript/commonjs/multi-agent-chat/WorkspaceSettingsPages.d.ts +3 -0
  677. package/lib/typescript/commonjs/multi-agent-chat/WorkspaceSettingsPages.d.ts.map +1 -0
  678. package/lib/typescript/commonjs/multi-agent-chat/context.d.ts +20 -0
  679. package/lib/typescript/commonjs/multi-agent-chat/context.d.ts.map +1 -0
  680. package/lib/typescript/commonjs/multi-agent-chat/data.d.ts +39 -0
  681. package/lib/typescript/commonjs/multi-agent-chat/data.d.ts.map +1 -0
  682. package/lib/typescript/commonjs/multi-agent-chat/handoff.d.ts +42 -0
  683. package/lib/typescript/commonjs/multi-agent-chat/handoff.d.ts.map +1 -0
  684. package/lib/typescript/commonjs/multi-agent-chat/index.d.ts +4 -0
  685. package/lib/typescript/commonjs/multi-agent-chat/index.d.ts.map +1 -0
  686. package/lib/typescript/commonjs/multi-agent-chat/index.web.d.ts +4 -0
  687. package/lib/typescript/commonjs/multi-agent-chat/index.web.d.ts.map +1 -0
  688. package/lib/typescript/commonjs/multi-agent-chat/marketplace-data.d.ts +26 -0
  689. package/lib/typescript/commonjs/multi-agent-chat/marketplace-data.d.ts.map +1 -0
  690. package/lib/typescript/commonjs/multi-agent-chat/marketplace-logos.d.ts +30 -0
  691. package/lib/typescript/commonjs/multi-agent-chat/marketplace-logos.d.ts.map +1 -0
  692. package/lib/typescript/commonjs/multi-agent-chat/messages.d.ts +175 -0
  693. package/lib/typescript/commonjs/multi-agent-chat/messages.d.ts.map +1 -0
  694. package/lib/typescript/commonjs/multi-agent-chat/model-catalog.d.ts +3 -0
  695. package/lib/typescript/commonjs/multi-agent-chat/model-catalog.d.ts.map +1 -0
  696. package/lib/typescript/commonjs/multi-agent-chat/stream-reply.d.ts +5 -0
  697. package/lib/typescript/commonjs/multi-agent-chat/stream-reply.d.ts.map +1 -0
  698. package/lib/typescript/commonjs/multi-agent-chat/types.d.ts +21 -0
  699. package/lib/typescript/commonjs/multi-agent-chat/types.d.ts.map +1 -0
  700. package/lib/typescript/commonjs/multi-agent-chat/use-replies.d.ts +14 -0
  701. package/lib/typescript/commonjs/multi-agent-chat/use-replies.d.ts.map +1 -0
  702. package/lib/typescript/commonjs/multi-agent-chat/use-workspace.d.ts +9 -0
  703. package/lib/typescript/commonjs/multi-agent-chat/use-workspace.d.ts.map +1 -0
  704. package/lib/typescript/commonjs/project-board/BoardTooltip.d.ts +7 -0
  705. package/lib/typescript/commonjs/project-board/BoardTooltip.d.ts.map +1 -0
  706. package/lib/typescript/commonjs/project-board/CreateTicketDialog.d.ts +12 -0
  707. package/lib/typescript/commonjs/project-board/CreateTicketDialog.d.ts.map +1 -0
  708. package/lib/typescript/commonjs/project-board/ProjectBoard.d.ts +3 -0
  709. package/lib/typescript/commonjs/project-board/ProjectBoard.d.ts.map +1 -0
  710. package/lib/typescript/commonjs/project-board/ProjectBoard.web.d.ts +3 -0
  711. package/lib/typescript/commonjs/project-board/ProjectBoard.web.d.ts.map +1 -0
  712. package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts +3 -0
  713. package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -0
  714. package/lib/typescript/commonjs/project-board/ProjectBoardControls.d.ts +32 -0
  715. package/lib/typescript/commonjs/project-board/ProjectBoardControls.d.ts.map +1 -0
  716. package/lib/typescript/commonjs/project-board/ProjectBoardEmptyState.d.ts +3 -0
  717. package/lib/typescript/commonjs/project-board/ProjectBoardEmptyState.d.ts.map +1 -0
  718. package/lib/typescript/commonjs/project-board/ProjectBoardIcons.d.ts +15 -0
  719. package/lib/typescript/commonjs/project-board/ProjectBoardIcons.d.ts.map +1 -0
  720. package/lib/typescript/commonjs/project-board/RiInboxArchiveLine.d.ts +7 -0
  721. package/lib/typescript/commonjs/project-board/RiInboxArchiveLine.d.ts.map +1 -0
  722. package/lib/typescript/commonjs/project-board/RiMoreLine.d.ts +7 -0
  723. package/lib/typescript/commonjs/project-board/RiMoreLine.d.ts.map +1 -0
  724. package/lib/typescript/commonjs/project-board/RiPieChart2Line.d.ts +7 -0
  725. package/lib/typescript/commonjs/project-board/RiPieChart2Line.d.ts.map +1 -0
  726. package/lib/typescript/commonjs/project-board/RiRestartLine.d.ts +7 -0
  727. package/lib/typescript/commonjs/project-board/RiRestartLine.d.ts.map +1 -0
  728. package/lib/typescript/commonjs/project-board/SourcePrimitives.d.ts +177 -0
  729. package/lib/typescript/commonjs/project-board/SourcePrimitives.d.ts.map +1 -0
  730. package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts +7 -0
  731. package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -0
  732. package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts +16 -0
  733. package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts.map +1 -0
  734. package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts +9 -0
  735. package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts.map +1 -0
  736. package/lib/typescript/commonjs/project-board/TicketGenieSurface.web.d.ts +6 -0
  737. package/lib/typescript/commonjs/project-board/TicketGenieSurface.web.d.ts.map +1 -0
  738. package/lib/typescript/commonjs/project-board/animation.web.d.ts +10 -0
  739. package/lib/typescript/commonjs/project-board/animation.web.d.ts.map +1 -0
  740. package/lib/typescript/commonjs/project-board/constants.d.ts +7 -0
  741. package/lib/typescript/commonjs/project-board/constants.d.ts.map +1 -0
  742. package/lib/typescript/commonjs/project-board/context.d.ts +39 -0
  743. package/lib/typescript/commonjs/project-board/context.d.ts.map +1 -0
  744. package/lib/typescript/commonjs/project-board/index.d.ts +3 -0
  745. package/lib/typescript/commonjs/project-board/index.d.ts.map +1 -0
  746. package/lib/typescript/commonjs/project-board/index.web.d.ts +3 -0
  747. package/lib/typescript/commonjs/project-board/index.web.d.ts.map +1 -0
  748. package/lib/typescript/commonjs/project-board/messages.d.ts +73 -0
  749. package/lib/typescript/commonjs/project-board/messages.d.ts.map +1 -0
  750. package/lib/typescript/commonjs/project-board/shared.d.ts +18 -0
  751. package/lib/typescript/commonjs/project-board/shared.d.ts.map +1 -0
  752. package/lib/typescript/commonjs/project-board/types.d.ts +78 -0
  753. package/lib/typescript/commonjs/project-board/types.d.ts.map +1 -0
  754. package/lib/typescript/commonjs/segmented-control/SegmentedControl.d.ts +4 -2
  755. package/lib/typescript/commonjs/segmented-control/SegmentedControl.d.ts.map +1 -1
  756. package/lib/typescript/commonjs/settings-modal/SettingsModal.d.ts.map +1 -1
  757. package/lib/typescript/commonjs/settings-modal/SettingsRows.d.ts +1 -1
  758. package/lib/typescript/commonjs/settings-modal/SettingsRows.d.ts.map +1 -1
  759. package/lib/typescript/commonjs/settings-modal/index.d.ts +1 -1
  760. package/lib/typescript/commonjs/settings-modal/index.d.ts.map +1 -1
  761. package/lib/typescript/commonjs/settings-modal/types.d.ts +12 -1
  762. package/lib/typescript/commonjs/settings-modal/types.d.ts.map +1 -1
  763. package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
  764. package/lib/typescript/commonjs/sidebar/SidebarItem.d.ts.map +1 -1
  765. package/lib/typescript/commonjs/sidebar/SidebarTeamMenu.d.ts.map +1 -1
  766. package/lib/typescript/commonjs/sidebar/SidebarToolbar.d.ts +4 -0
  767. package/lib/typescript/commonjs/sidebar/SidebarToolbar.d.ts.map +1 -0
  768. package/lib/typescript/commonjs/sidebar/index.d.ts +2 -1
  769. package/lib/typescript/commonjs/sidebar/index.d.ts.map +1 -1
  770. package/lib/typescript/commonjs/sidebar/parts.d.ts +2 -1
  771. package/lib/typescript/commonjs/sidebar/parts.d.ts.map +1 -1
  772. package/lib/typescript/commonjs/sidebar/types.d.ts +47 -5
  773. package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
  774. package/lib/typescript/commonjs/social-button/SocialButtonBase.d.ts +7 -0
  775. package/lib/typescript/commonjs/social-button/SocialButtonBase.d.ts.map +1 -1
  776. package/lib/typescript/commonjs/textarea/Textarea.d.ts +1 -1
  777. package/lib/typescript/commonjs/textarea/Textarea.d.ts.map +1 -1
  778. package/lib/typescript/commonjs/textarea/types.d.ts +6 -1
  779. package/lib/typescript/commonjs/textarea/types.d.ts.map +1 -1
  780. package/lib/typescript/commonjs/theme/color-scope/seed-scope.d.ts.map +1 -1
  781. package/lib/typescript/module/agent-avatar/AgentAvatar.d.ts +4 -0
  782. package/lib/typescript/module/agent-avatar/AgentAvatar.d.ts.map +1 -0
  783. package/lib/typescript/module/agent-avatar/AgentFace.d.ts +7 -0
  784. package/lib/typescript/module/agent-avatar/AgentFace.d.ts.map +1 -0
  785. package/lib/typescript/module/agent-avatar/SvgDrawing.d.ts +14 -0
  786. package/lib/typescript/module/agent-avatar/SvgDrawing.d.ts.map +1 -0
  787. package/lib/typescript/module/agent-avatar/artwork.d.ts +7 -0
  788. package/lib/typescript/module/agent-avatar/artwork.d.ts.map +1 -0
  789. package/lib/typescript/module/agent-avatar/attention.d.ts +24 -0
  790. package/lib/typescript/module/agent-avatar/attention.d.ts.map +1 -0
  791. package/lib/typescript/module/agent-avatar/blink.d.ts +12 -0
  792. package/lib/typescript/module/agent-avatar/blink.d.ts.map +1 -0
  793. package/lib/typescript/module/agent-avatar/context.d.ts +4 -0
  794. package/lib/typescript/module/agent-avatar/context.d.ts.map +1 -0
  795. package/lib/typescript/module/agent-avatar/drawing.d.ts +102 -0
  796. package/lib/typescript/module/agent-avatar/drawing.d.ts.map +1 -0
  797. package/lib/typescript/module/agent-avatar/entrance.d.ts +13 -0
  798. package/lib/typescript/module/agent-avatar/entrance.d.ts.map +1 -0
  799. package/lib/typescript/module/agent-avatar/face.d.ts +38 -0
  800. package/lib/typescript/module/agent-avatar/face.d.ts.map +1 -0
  801. package/lib/typescript/module/agent-avatar/fold-outlines.d.ts +13 -0
  802. package/lib/typescript/module/agent-avatar/fold-outlines.d.ts.map +1 -0
  803. package/lib/typescript/module/agent-avatar/fold.d.ts +7 -0
  804. package/lib/typescript/module/agent-avatar/fold.d.ts.map +1 -0
  805. package/lib/typescript/module/agent-avatar/grain.d.ts +3 -0
  806. package/lib/typescript/module/agent-avatar/grain.d.ts.map +1 -0
  807. package/lib/typescript/module/agent-avatar/index.d.ts +5 -0
  808. package/lib/typescript/module/agent-avatar/index.d.ts.map +1 -0
  809. package/lib/typescript/module/agent-avatar/messages.d.ts +4 -0
  810. package/lib/typescript/module/agent-avatar/messages.d.ts.map +1 -0
  811. package/lib/typescript/module/agent-avatar/model.d.ts +63 -0
  812. package/lib/typescript/module/agent-avatar/model.d.ts.map +1 -0
  813. package/lib/typescript/module/agent-avatar/shape-morph.d.ts +39 -0
  814. package/lib/typescript/module/agent-avatar/shape-morph.d.ts.map +1 -0
  815. package/lib/typescript/module/agent-avatar/types.d.ts +21 -0
  816. package/lib/typescript/module/agent-avatar/types.d.ts.map +1 -0
  817. package/lib/typescript/module/agent-avatar/wander.d.ts +14 -0
  818. package/lib/typescript/module/agent-avatar/wander.d.ts.map +1 -0
  819. package/lib/typescript/module/agent-avatar/working.d.ts +8 -0
  820. package/lib/typescript/module/agent-avatar/working.d.ts.map +1 -0
  821. package/lib/typescript/module/agent-chat/AgentChatMessage.d.ts +5 -0
  822. package/lib/typescript/module/agent-chat/AgentChatMessage.d.ts.map +1 -1
  823. package/lib/typescript/module/agent-creator/AgentCreator.d.ts +3 -0
  824. package/lib/typescript/module/agent-creator/AgentCreator.d.ts.map +1 -0
  825. package/lib/typescript/module/agent-creator/AgentCreator.web.d.ts +3 -0
  826. package/lib/typescript/module/agent-creator/AgentCreator.web.d.ts.map +1 -0
  827. package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts +4 -0
  828. package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -0
  829. package/lib/typescript/module/agent-creator/AgentPreferencesPanel.d.ts +4 -0
  830. package/lib/typescript/module/agent-creator/AgentPreferencesPanel.d.ts.map +1 -0
  831. package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts +7 -0
  832. package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts.map +1 -0
  833. package/lib/typescript/module/agent-creator/EmotionPicker.d.ts +7 -0
  834. package/lib/typescript/module/agent-creator/EmotionPicker.d.ts.map +1 -0
  835. package/lib/typescript/module/agent-creator/GlossArt.d.ts +9 -0
  836. package/lib/typescript/module/agent-creator/GlossArt.d.ts.map +1 -0
  837. package/lib/typescript/module/agent-creator/ScrollSurface.d.ts +11 -0
  838. package/lib/typescript/module/agent-creator/ScrollSurface.d.ts.map +1 -0
  839. package/lib/typescript/module/agent-creator/ShapeArc.d.ts +7 -0
  840. package/lib/typescript/module/agent-creator/ShapeArc.d.ts.map +1 -0
  841. package/lib/typescript/module/agent-creator/constants.d.ts +49 -0
  842. package/lib/typescript/module/agent-creator/constants.d.ts.map +1 -0
  843. package/lib/typescript/module/agent-creator/context.d.ts +64 -0
  844. package/lib/typescript/module/agent-creator/context.d.ts.map +1 -0
  845. package/lib/typescript/module/agent-creator/index.d.ts +5 -0
  846. package/lib/typescript/module/agent-creator/index.d.ts.map +1 -0
  847. package/lib/typescript/module/agent-creator/index.web.d.ts +5 -0
  848. package/lib/typescript/module/agent-creator/index.web.d.ts.map +1 -0
  849. package/lib/typescript/module/agent-creator/messages.d.ts +53 -0
  850. package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -0
  851. package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts +3 -0
  852. package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts.map +1 -0
  853. package/lib/typescript/module/agent-creator/shared.d.ts +18 -0
  854. package/lib/typescript/module/agent-creator/shared.d.ts.map +1 -0
  855. package/lib/typescript/module/agent-creator/types.d.ts +37 -0
  856. package/lib/typescript/module/agent-creator/types.d.ts.map +1 -0
  857. package/lib/typescript/module/agent-creator/use-agent-voices.d.ts +9 -0
  858. package/lib/typescript/module/agent-creator/use-agent-voices.d.ts.map +1 -0
  859. package/lib/typescript/module/agent-creator/use-track-events.d.ts +5 -0
  860. package/lib/typescript/module/agent-creator/use-track-events.d.ts.map +1 -0
  861. package/lib/typescript/module/button/CloseButton.d.ts +1 -1
  862. package/lib/typescript/module/button/CloseButton.d.ts.map +1 -1
  863. package/lib/typescript/module/button/shared.d.ts +1 -1
  864. package/lib/typescript/module/button/types.d.ts +2 -0
  865. package/lib/typescript/module/button/types.d.ts.map +1 -1
  866. package/lib/typescript/module/chip/Chip.d.ts.map +1 -1
  867. package/lib/typescript/module/chip/types.d.ts +3 -0
  868. package/lib/typescript/module/chip/types.d.ts.map +1 -1
  869. package/lib/typescript/module/design-tokens/component-roles.d.ts +89 -0
  870. package/lib/typescript/module/design-tokens/component-roles.d.ts.map +1 -0
  871. package/lib/typescript/module/design-tokens/tailwind-preset.d.ts +3 -27
  872. package/lib/typescript/module/design-tokens/tailwind-preset.d.ts.map +1 -1
  873. package/lib/typescript/module/design-tokens/theme-css.d.ts +0 -24
  874. package/lib/typescript/module/design-tokens/theme-css.d.ts.map +1 -1
  875. package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
  876. package/lib/typescript/module/dialog/types.d.ts +6 -0
  877. package/lib/typescript/module/dialog/types.d.ts.map +1 -1
  878. package/lib/typescript/module/index.d.ts +4 -2
  879. package/lib/typescript/module/index.d.ts.map +1 -1
  880. package/lib/typescript/module/index.web.d.ts +4 -2
  881. package/lib/typescript/module/index.web.d.ts.map +1 -1
  882. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  883. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  884. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  885. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  886. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  887. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  888. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  889. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  890. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  891. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  892. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  893. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  894. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  895. package/lib/typescript/module/locale/translations/types.d.ts +8 -0
  896. package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
  897. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  898. package/lib/typescript/module/multi-agent-chat/AvatarFlightHost.d.ts +4 -0
  899. package/lib/typescript/module/multi-agent-chat/AvatarFlightHost.d.ts.map +1 -0
  900. package/lib/typescript/module/multi-agent-chat/AvatarFlightHost.web.d.ts +3 -0
  901. package/lib/typescript/module/multi-agent-chat/AvatarFlightHost.web.d.ts.map +1 -0
  902. package/lib/typescript/module/multi-agent-chat/AvatarHandoff.d.ts +10 -0
  903. package/lib/typescript/module/multi-agent-chat/AvatarHandoff.d.ts.map +1 -0
  904. package/lib/typescript/module/multi-agent-chat/ChatDialogFrame.d.ts +15 -0
  905. package/lib/typescript/module/multi-agent-chat/ChatDialogFrame.d.ts.map +1 -0
  906. package/lib/typescript/module/multi-agent-chat/ChatSidebar.d.ts +24 -0
  907. package/lib/typescript/module/multi-agent-chat/ChatSidebar.d.ts.map +1 -0
  908. package/lib/typescript/module/multi-agent-chat/EditorRail.d.ts +7 -0
  909. package/lib/typescript/module/multi-agent-chat/EditorRail.d.ts.map +1 -0
  910. package/lib/typescript/module/multi-agent-chat/Marketplace.d.ts +14 -0
  911. package/lib/typescript/module/multi-agent-chat/Marketplace.d.ts.map +1 -0
  912. package/lib/typescript/module/multi-agent-chat/MarketplaceSettings.d.ts +7 -0
  913. package/lib/typescript/module/multi-agent-chat/MarketplaceSettings.d.ts.map +1 -0
  914. package/lib/typescript/module/multi-agent-chat/MultiAgentChat.d.ts +3 -0
  915. package/lib/typescript/module/multi-agent-chat/MultiAgentChat.d.ts.map +1 -0
  916. package/lib/typescript/module/multi-agent-chat/MultiAgentChat.web.d.ts +3 -0
  917. package/lib/typescript/module/multi-agent-chat/MultiAgentChat.web.d.ts.map +1 -0
  918. package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts +4 -0
  919. package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -0
  920. package/lib/typescript/module/multi-agent-chat/ReplyRow.d.ts +18 -0
  921. package/lib/typescript/module/multi-agent-chat/ReplyRow.d.ts.map +1 -0
  922. package/lib/typescript/module/multi-agent-chat/ScrollSurface.d.ts +13 -0
  923. package/lib/typescript/module/multi-agent-chat/ScrollSurface.d.ts.map +1 -0
  924. package/lib/typescript/module/multi-agent-chat/SelectedAgentPreview.d.ts +9 -0
  925. package/lib/typescript/module/multi-agent-chat/SelectedAgentPreview.d.ts.map +1 -0
  926. package/lib/typescript/module/multi-agent-chat/WorkspaceSettingsPages.d.ts +3 -0
  927. package/lib/typescript/module/multi-agent-chat/WorkspaceSettingsPages.d.ts.map +1 -0
  928. package/lib/typescript/module/multi-agent-chat/context.d.ts +20 -0
  929. package/lib/typescript/module/multi-agent-chat/context.d.ts.map +1 -0
  930. package/lib/typescript/module/multi-agent-chat/data.d.ts +39 -0
  931. package/lib/typescript/module/multi-agent-chat/data.d.ts.map +1 -0
  932. package/lib/typescript/module/multi-agent-chat/handoff.d.ts +42 -0
  933. package/lib/typescript/module/multi-agent-chat/handoff.d.ts.map +1 -0
  934. package/lib/typescript/module/multi-agent-chat/index.d.ts +4 -0
  935. package/lib/typescript/module/multi-agent-chat/index.d.ts.map +1 -0
  936. package/lib/typescript/module/multi-agent-chat/index.web.d.ts +4 -0
  937. package/lib/typescript/module/multi-agent-chat/index.web.d.ts.map +1 -0
  938. package/lib/typescript/module/multi-agent-chat/marketplace-data.d.ts +26 -0
  939. package/lib/typescript/module/multi-agent-chat/marketplace-data.d.ts.map +1 -0
  940. package/lib/typescript/module/multi-agent-chat/marketplace-logos.d.ts +30 -0
  941. package/lib/typescript/module/multi-agent-chat/marketplace-logos.d.ts.map +1 -0
  942. package/lib/typescript/module/multi-agent-chat/messages.d.ts +175 -0
  943. package/lib/typescript/module/multi-agent-chat/messages.d.ts.map +1 -0
  944. package/lib/typescript/module/multi-agent-chat/model-catalog.d.ts +3 -0
  945. package/lib/typescript/module/multi-agent-chat/model-catalog.d.ts.map +1 -0
  946. package/lib/typescript/module/multi-agent-chat/stream-reply.d.ts +5 -0
  947. package/lib/typescript/module/multi-agent-chat/stream-reply.d.ts.map +1 -0
  948. package/lib/typescript/module/multi-agent-chat/types.d.ts +21 -0
  949. package/lib/typescript/module/multi-agent-chat/types.d.ts.map +1 -0
  950. package/lib/typescript/module/multi-agent-chat/use-replies.d.ts +14 -0
  951. package/lib/typescript/module/multi-agent-chat/use-replies.d.ts.map +1 -0
  952. package/lib/typescript/module/multi-agent-chat/use-workspace.d.ts +9 -0
  953. package/lib/typescript/module/multi-agent-chat/use-workspace.d.ts.map +1 -0
  954. package/lib/typescript/module/project-board/BoardTooltip.d.ts +7 -0
  955. package/lib/typescript/module/project-board/BoardTooltip.d.ts.map +1 -0
  956. package/lib/typescript/module/project-board/CreateTicketDialog.d.ts +12 -0
  957. package/lib/typescript/module/project-board/CreateTicketDialog.d.ts.map +1 -0
  958. package/lib/typescript/module/project-board/ProjectBoard.d.ts +3 -0
  959. package/lib/typescript/module/project-board/ProjectBoard.d.ts.map +1 -0
  960. package/lib/typescript/module/project-board/ProjectBoard.web.d.ts +3 -0
  961. package/lib/typescript/module/project-board/ProjectBoard.web.d.ts.map +1 -0
  962. package/lib/typescript/module/project-board/ProjectBoardBase.d.ts +3 -0
  963. package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -0
  964. package/lib/typescript/module/project-board/ProjectBoardControls.d.ts +32 -0
  965. package/lib/typescript/module/project-board/ProjectBoardControls.d.ts.map +1 -0
  966. package/lib/typescript/module/project-board/ProjectBoardEmptyState.d.ts +3 -0
  967. package/lib/typescript/module/project-board/ProjectBoardEmptyState.d.ts.map +1 -0
  968. package/lib/typescript/module/project-board/ProjectBoardIcons.d.ts +15 -0
  969. package/lib/typescript/module/project-board/ProjectBoardIcons.d.ts.map +1 -0
  970. package/lib/typescript/module/project-board/RiInboxArchiveLine.d.ts +7 -0
  971. package/lib/typescript/module/project-board/RiInboxArchiveLine.d.ts.map +1 -0
  972. package/lib/typescript/module/project-board/RiMoreLine.d.ts +7 -0
  973. package/lib/typescript/module/project-board/RiMoreLine.d.ts.map +1 -0
  974. package/lib/typescript/module/project-board/RiPieChart2Line.d.ts +7 -0
  975. package/lib/typescript/module/project-board/RiPieChart2Line.d.ts.map +1 -0
  976. package/lib/typescript/module/project-board/RiRestartLine.d.ts +7 -0
  977. package/lib/typescript/module/project-board/RiRestartLine.d.ts.map +1 -0
  978. package/lib/typescript/module/project-board/SourcePrimitives.d.ts +177 -0
  979. package/lib/typescript/module/project-board/SourcePrimitives.d.ts.map +1 -0
  980. package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts +7 -0
  981. package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -0
  982. package/lib/typescript/module/project-board/TicketDetailDialog.d.ts +16 -0
  983. package/lib/typescript/module/project-board/TicketDetailDialog.d.ts.map +1 -0
  984. package/lib/typescript/module/project-board/TicketGenieSurface.d.ts +9 -0
  985. package/lib/typescript/module/project-board/TicketGenieSurface.d.ts.map +1 -0
  986. package/lib/typescript/module/project-board/TicketGenieSurface.web.d.ts +6 -0
  987. package/lib/typescript/module/project-board/TicketGenieSurface.web.d.ts.map +1 -0
  988. package/lib/typescript/module/project-board/animation.web.d.ts +10 -0
  989. package/lib/typescript/module/project-board/animation.web.d.ts.map +1 -0
  990. package/lib/typescript/module/project-board/constants.d.ts +7 -0
  991. package/lib/typescript/module/project-board/constants.d.ts.map +1 -0
  992. package/lib/typescript/module/project-board/context.d.ts +39 -0
  993. package/lib/typescript/module/project-board/context.d.ts.map +1 -0
  994. package/lib/typescript/module/project-board/index.d.ts +3 -0
  995. package/lib/typescript/module/project-board/index.d.ts.map +1 -0
  996. package/lib/typescript/module/project-board/index.web.d.ts +3 -0
  997. package/lib/typescript/module/project-board/index.web.d.ts.map +1 -0
  998. package/lib/typescript/module/project-board/messages.d.ts +73 -0
  999. package/lib/typescript/module/project-board/messages.d.ts.map +1 -0
  1000. package/lib/typescript/module/project-board/shared.d.ts +18 -0
  1001. package/lib/typescript/module/project-board/shared.d.ts.map +1 -0
  1002. package/lib/typescript/module/project-board/types.d.ts +78 -0
  1003. package/lib/typescript/module/project-board/types.d.ts.map +1 -0
  1004. package/lib/typescript/module/segmented-control/SegmentedControl.d.ts +4 -2
  1005. package/lib/typescript/module/segmented-control/SegmentedControl.d.ts.map +1 -1
  1006. package/lib/typescript/module/settings-modal/SettingsModal.d.ts.map +1 -1
  1007. package/lib/typescript/module/settings-modal/SettingsRows.d.ts +1 -1
  1008. package/lib/typescript/module/settings-modal/SettingsRows.d.ts.map +1 -1
  1009. package/lib/typescript/module/settings-modal/index.d.ts +1 -1
  1010. package/lib/typescript/module/settings-modal/index.d.ts.map +1 -1
  1011. package/lib/typescript/module/settings-modal/types.d.ts +12 -1
  1012. package/lib/typescript/module/settings-modal/types.d.ts.map +1 -1
  1013. package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
  1014. package/lib/typescript/module/sidebar/SidebarItem.d.ts.map +1 -1
  1015. package/lib/typescript/module/sidebar/SidebarTeamMenu.d.ts.map +1 -1
  1016. package/lib/typescript/module/sidebar/SidebarToolbar.d.ts +4 -0
  1017. package/lib/typescript/module/sidebar/SidebarToolbar.d.ts.map +1 -0
  1018. package/lib/typescript/module/sidebar/index.d.ts +2 -1
  1019. package/lib/typescript/module/sidebar/index.d.ts.map +1 -1
  1020. package/lib/typescript/module/sidebar/parts.d.ts +2 -1
  1021. package/lib/typescript/module/sidebar/parts.d.ts.map +1 -1
  1022. package/lib/typescript/module/sidebar/types.d.ts +47 -5
  1023. package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
  1024. package/lib/typescript/module/social-button/SocialButtonBase.d.ts +7 -0
  1025. package/lib/typescript/module/social-button/SocialButtonBase.d.ts.map +1 -1
  1026. package/lib/typescript/module/textarea/Textarea.d.ts +1 -1
  1027. package/lib/typescript/module/textarea/Textarea.d.ts.map +1 -1
  1028. package/lib/typescript/module/textarea/types.d.ts +6 -1
  1029. package/lib/typescript/module/textarea/types.d.ts.map +1 -1
  1030. package/lib/typescript/module/theme/color-scope/seed-scope.d.ts.map +1 -1
  1031. package/package.json +84 -18
  1032. package/src/agent-avatar/AgentAvatar.tsx +299 -0
  1033. package/src/agent-avatar/AgentFace.tsx +20 -0
  1034. package/src/agent-avatar/SvgDrawing.tsx +237 -0
  1035. package/src/agent-avatar/artwork.ts +195 -0
  1036. package/src/agent-avatar/attention.ts +109 -0
  1037. package/src/agent-avatar/blink.ts +47 -0
  1038. package/src/agent-avatar/context.ts +7 -0
  1039. package/src/agent-avatar/drawing.ts +276 -0
  1040. package/src/agent-avatar/entrance.ts +25 -0
  1041. package/src/agent-avatar/face.ts +540 -0
  1042. package/src/agent-avatar/fold-outlines.ts +90 -0
  1043. package/src/agent-avatar/fold.ts +444 -0
  1044. package/src/agent-avatar/grain.ts +3 -0
  1045. package/src/agent-avatar/index.ts +27 -0
  1046. package/src/agent-avatar/messages.ts +5 -0
  1047. package/src/agent-avatar/model.ts +576 -0
  1048. package/src/agent-avatar/shape-morph.ts +210 -0
  1049. package/src/agent-avatar/types.ts +21 -0
  1050. package/src/agent-avatar/wander.ts +97 -0
  1051. package/src/agent-avatar/working.ts +20 -0
  1052. package/src/agent-chat/AgentChatMessage.tsx +7 -0
  1053. package/src/agent-creator/AgentCreator.tsx +32 -0
  1054. package/src/agent-creator/AgentCreator.web.tsx +32 -0
  1055. package/src/agent-creator/AgentCreatorBase.tsx +287 -0
  1056. package/src/agent-creator/AgentPreferencesPanel.tsx +268 -0
  1057. package/src/agent-creator/CustomColorPicker.tsx +382 -0
  1058. package/src/agent-creator/EmotionPicker.tsx +201 -0
  1059. package/src/agent-creator/GlossArt.tsx +165 -0
  1060. package/src/agent-creator/ScrollSurface.tsx +144 -0
  1061. package/src/agent-creator/ShapeArc.tsx +266 -0
  1062. package/src/agent-creator/constants.ts +57 -0
  1063. package/src/agent-creator/context.ts +38 -0
  1064. package/src/agent-creator/index.ts +14 -0
  1065. package/src/agent-creator/index.web.ts +19 -0
  1066. package/src/agent-creator/messages.ts +198 -0
  1067. package/src/agent-creator/rainbow-artwork.ts +5 -0
  1068. package/src/agent-creator/shared.ts +102 -0
  1069. package/src/agent-creator/types.ts +34 -0
  1070. package/src/agent-creator/use-agent-voices.ts +72 -0
  1071. package/src/agent-creator/use-track-events.ts +42 -0
  1072. package/src/button/CloseButton.tsx +6 -3
  1073. package/src/button/types.ts +2 -0
  1074. package/src/chip/Chip.tsx +17 -10
  1075. package/src/chip/types.ts +3 -0
  1076. package/src/design-tokens/component-roles.ts +93 -0
  1077. package/src/design-tokens/tailwind-preset.ts +12 -8
  1078. package/src/design-tokens/theme-css.ts +18 -0
  1079. package/src/design-tokens/theme.css +284 -0
  1080. package/src/dialog/Dialog.tsx +25 -14
  1081. package/src/dialog/Dialog.web.tsx +23 -16
  1082. package/src/dialog/DialogHeader.tsx +1 -1
  1083. package/src/dialog/types.ts +6 -0
  1084. package/src/hooks/use-accessible-name-warning.ts +2 -2
  1085. package/src/index.ts +5 -2
  1086. package/src/index.web.ts +5 -2
  1087. package/src/locale/translations/ar.ts +297 -0
  1088. package/src/locale/translations/bn.ts +297 -0
  1089. package/src/locale/translations/ca.ts +297 -0
  1090. package/src/locale/translations/de.ts +297 -0
  1091. package/src/locale/translations/es.ts +297 -0
  1092. package/src/locale/translations/fr.ts +297 -0
  1093. package/src/locale/translations/hi.ts +297 -0
  1094. package/src/locale/translations/id.ts +297 -0
  1095. package/src/locale/translations/it.ts +297 -0
  1096. package/src/locale/translations/ja.ts +297 -0
  1097. package/src/locale/translations/pt.ts +297 -0
  1098. package/src/locale/translations/ru.ts +297 -0
  1099. package/src/locale/translations/tr.ts +297 -0
  1100. package/src/locale/translations/types.ts +8 -0
  1101. package/src/locale/translations/zh.ts +297 -0
  1102. package/src/multi-agent-chat/AvatarFlightHost.tsx +5 -0
  1103. package/src/multi-agent-chat/AvatarFlightHost.web.tsx +5 -0
  1104. package/src/multi-agent-chat/AvatarHandoff.tsx +262 -0
  1105. package/src/multi-agent-chat/ChatDialogFrame.tsx +186 -0
  1106. package/src/multi-agent-chat/ChatSidebar.tsx +384 -0
  1107. package/src/multi-agent-chat/EditorRail.tsx +68 -0
  1108. package/src/multi-agent-chat/Marketplace.tsx +649 -0
  1109. package/src/multi-agent-chat/MarketplaceSettings.tsx +110 -0
  1110. package/src/multi-agent-chat/MultiAgentChat.tsx +30 -0
  1111. package/src/multi-agent-chat/MultiAgentChat.web.tsx +30 -0
  1112. package/src/multi-agent-chat/MultiAgentChatBase.tsx +1202 -0
  1113. package/src/multi-agent-chat/ReplyRow.tsx +188 -0
  1114. package/src/multi-agent-chat/ScrollSurface.tsx +122 -0
  1115. package/src/multi-agent-chat/SelectedAgentPreview.tsx +143 -0
  1116. package/src/multi-agent-chat/WorkspaceSettingsPages.tsx +515 -0
  1117. package/src/multi-agent-chat/context.ts +23 -0
  1118. package/src/multi-agent-chat/data.ts +629 -0
  1119. package/src/multi-agent-chat/handoff.ts +150 -0
  1120. package/src/multi-agent-chat/index.ts +8 -0
  1121. package/src/multi-agent-chat/index.web.ts +13 -0
  1122. package/src/multi-agent-chat/marketplace-data.ts +359 -0
  1123. package/src/multi-agent-chat/marketplace-logos.ts +29 -0
  1124. package/src/multi-agent-chat/messages.ts +215 -0
  1125. package/src/multi-agent-chat/model-catalog.tsx +461 -0
  1126. package/src/multi-agent-chat/stream-reply.ts +39 -0
  1127. package/src/multi-agent-chat/types.ts +27 -0
  1128. package/src/multi-agent-chat/use-replies.ts +166 -0
  1129. package/src/multi-agent-chat/use-workspace.ts +59 -0
  1130. package/src/project-board/BoardTooltip.tsx +41 -0
  1131. package/src/project-board/CreateTicketDialog.tsx +373 -0
  1132. package/src/project-board/ProjectBoard.tsx +34 -0
  1133. package/src/project-board/ProjectBoard.web.tsx +32 -0
  1134. package/src/project-board/ProjectBoardBase.tsx +1022 -0
  1135. package/src/project-board/ProjectBoardControls.tsx +254 -0
  1136. package/src/project-board/ProjectBoardEmptyState.tsx +179 -0
  1137. package/src/project-board/ProjectBoardIcons.tsx +93 -0
  1138. package/src/project-board/RiInboxArchiveLine.tsx +4 -0
  1139. package/src/project-board/RiMoreLine.tsx +4 -0
  1140. package/src/project-board/RiPieChart2Line.tsx +4 -0
  1141. package/src/project-board/RiRestartLine.tsx +4 -0
  1142. package/src/project-board/SourcePrimitives.tsx +155 -0
  1143. package/src/project-board/TicketCornerGenieSurface.web.tsx +401 -0
  1144. package/src/project-board/TicketDetailDialog.tsx +730 -0
  1145. package/src/project-board/TicketGenieSurface.tsx +73 -0
  1146. package/src/project-board/TicketGenieSurface.web.tsx +190 -0
  1147. package/src/project-board/animation.web.ts +22 -0
  1148. package/src/project-board/constants.ts +20 -0
  1149. package/src/project-board/context.ts +46 -0
  1150. package/src/project-board/index.ts +12 -0
  1151. package/src/project-board/index.web.ts +17 -0
  1152. package/src/project-board/messages.ts +74 -0
  1153. package/src/project-board/shared.ts +104 -0
  1154. package/src/project-board/types.ts +78 -0
  1155. package/src/segmented-control/SegmentedControl.tsx +12 -8
  1156. package/src/settings-modal/SettingsModal.tsx +9 -6
  1157. package/src/settings-modal/SettingsRows.tsx +4 -3
  1158. package/src/settings-modal/index.ts +1 -0
  1159. package/src/settings-modal/types.ts +13 -1
  1160. package/src/sidebar/Sidebar.tsx +19 -9
  1161. package/src/sidebar/SidebarItem.tsx +36 -11
  1162. package/src/sidebar/SidebarTeamMenu.tsx +1 -0
  1163. package/src/sidebar/SidebarToolbar.tsx +180 -0
  1164. package/src/sidebar/index.ts +2 -0
  1165. package/src/sidebar/parts.tsx +4 -2
  1166. package/src/sidebar/types.ts +46 -5
  1167. package/src/social-button/SocialButtonBase.tsx +1 -1
  1168. package/src/textarea/Textarea.tsx +21 -9
  1169. package/src/textarea/types.ts +6 -1
  1170. package/src/theme/color-scope/seed-scope.ts +2 -0
  1171. package/docs/dot-grid-meter.mdx +0 -66
  1172. package/lib/commonjs/dot-grid-meter/DotGridMeter.js +0 -80
  1173. package/lib/commonjs/dot-grid-meter/DotGridMeter.js.map +0 -1
  1174. package/lib/commonjs/dot-grid-meter/index.js +0 -13
  1175. package/lib/commonjs/dot-grid-meter/index.js.map +0 -1
  1176. package/lib/module/dot-grid-meter/DotGridMeter.js +0 -75
  1177. package/lib/module/dot-grid-meter/DotGridMeter.js.map +0 -1
  1178. package/lib/module/dot-grid-meter/index.js +0 -4
  1179. package/lib/module/dot-grid-meter/index.js.map +0 -1
  1180. package/lib/typescript/commonjs/dot-grid-meter/DotGridMeter.d.ts +0 -4
  1181. package/lib/typescript/commonjs/dot-grid-meter/DotGridMeter.d.ts.map +0 -1
  1182. package/lib/typescript/commonjs/dot-grid-meter/index.d.ts +0 -3
  1183. package/lib/typescript/commonjs/dot-grid-meter/index.d.ts.map +0 -1
  1184. package/lib/typescript/commonjs/dot-grid-meter/types.d.ts +0 -48
  1185. package/lib/typescript/commonjs/dot-grid-meter/types.d.ts.map +0 -1
  1186. package/lib/typescript/module/dot-grid-meter/DotGridMeter.d.ts +0 -4
  1187. package/lib/typescript/module/dot-grid-meter/DotGridMeter.d.ts.map +0 -1
  1188. package/lib/typescript/module/dot-grid-meter/index.d.ts +0 -3
  1189. package/lib/typescript/module/dot-grid-meter/index.d.ts.map +0 -1
  1190. package/lib/typescript/module/dot-grid-meter/types.d.ts +0 -48
  1191. package/lib/typescript/module/dot-grid-meter/types.d.ts.map +0 -1
  1192. package/src/dot-grid-meter/DotGridMeter.tsx +0 -84
  1193. package/src/dot-grid-meter/index.ts +0 -2
  1194. package/src/dot-grid-meter/types.ts +0 -48
  1195. /package/lib/commonjs/{dot-grid-meter → agent-avatar}/types.js +0 -0
  1196. /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","f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zD,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,CAACC,IAAI,GAAG,UAAU;AAChC;AACA,SAASG,UAAUA,CAACJ,KAAqB,EAAU;EACjD,OAAO;IACLL,QAAQ,EAAE,CAACI,MAAM,CAACC,KAAK,CAAC,GAAG,GAAG,IAAI,IAAI;IACtCJ,SAAS,EAAE,CAACG,MAAM,CAACC,KAAK,CAAC,GAAG,GAAG,IAAI,IAAI;IACvCH,IAAI,EAAE,CAACE,MAAM,CAACC,KAAK,CAAC,GAAG,GAAG,IAAI,IAAI;IAClCF,QAAQ,EAAEC,MAAM,CAACC,KAAK,CAAC,GAAG;EAC5B,CAAC;AACH;AACA,OAAO,SAASK,eAAeA,CAACJ,IAAY,EAAkB;EAC5D,MAAMD,KAAK,GAAG;IACZC,IAAI;IACJK,OAAO,EAAE,CAAC;IACVC,QAAQ,EAAE,GAAG;IACbC,IAAI,EAAE,CAAC;IACPC,MAAM,EAAG,CAACR,IAAI,KAAK,CA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CAAC,IAAI,GAAG;EAChE,OAAO;IACL,GAAGM,IAAI;IACPmB,QAAQ,EAAEnB,IAAI,CAACmB,QAAQ,IAAI,CAAC,GAAGvC,QAAQ,GAAGC,SAAS,GAAGkC,IAAI,GAAGH,KAAK,GAAG,IAAI,CAAC;IAC1EQ,SAAS,EACPpB,IAAI,CAACoB,SAAS,IAAI,CAAC,GAAGxC,QAAQ,GAAGC,SAAS,GAAGoC,KAAK,GAAGL,KAAK,GAAG,IAAI,CAAC;IACpES,KAAK,EAAErB,IAAI,CAACqB,KAAK,IAAI,CAAC,GAAG,CAACN,IAAI,GAAGE,KAAK,IAAIL,KAAK,GAAG,KAAK,CAAC;IACxDU,SAAS,EAAEtB,IAAI,CAACsB,SAAS,GAAGZ,KAAK,CAAC,MAAM,CAAC,GAAG,GAAG,GAAGK,IAAI,GAAGH,KAAK,GAAG,KAAK;IACtEW,UAAU,EAAEvB,IAAI,CAACuB,UAAU,GAAGb,KAAK,CAAC,MAAM,CAAC,GAAG,GAAG,GAAGO,KAAK,GAAGL,KAAK,GAAG,KAAK;IACzEY,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,6 @@
1
+ "use strict";
2
+
3
+ import { createContext } from 'react';
4
+ /** Internal frame observer. A preview can retain its committed artwork for a handoff. */
5
+ export const AvatarDrawingObserver = /*#__PURE__*/createContext(null);
6
+ //# sourceMappingURL=context.js.map
@@ -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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,CAAC,EAAEC,CAAC,GAAG8F,MAAM,CAAC;IAC1BhF,IAAI,CAACF,SAAS,CAAC,CAAC;IAChB,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,IAAI,IAAI,IAAI,CAAC;EAC1C,OAAO;IACLW,CAAC,EAAE,CAAC,EAAE,GAAGT,IAAI,CAACU,GAAG,CAACV,IAAI,CAACW,EAAE,GAAGb,CAAC,CAA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