@oxy.so/bloom 19.11.0 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/adoption-matrix.mdx +6 -5
- package/docs/agent-avatar.mdx +20 -0
- package/docs/agent-creator.mdx +20 -14
- package/docs/multi-agent-chat.mdx +5 -0
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/agent-avatar/character.js +27 -0
- package/lib/commonjs/agent-avatar/character.js.map +1 -1
- package/lib/commonjs/agent-avatar/index.js +6 -0
- package/lib/commonjs/agent-avatar/index.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreator.js +0 -4
- package/lib/commonjs/agent-creator/AgentCreator.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreator.web.js +8 -12
- package/lib/commonjs/agent-creator/AgentCreator.web.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreatorBase.js +61 -99
- package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -1
- package/lib/commonjs/agent-creator/context.js.map +1 -1
- package/lib/commonjs/agent-creator/messages.js +1 -22
- package/lib/commonjs/agent-creator/messages.js.map +1 -1
- package/lib/commonjs/agent-creator/paint.js +47 -0
- package/lib/commonjs/agent-creator/paint.js.map +1 -0
- package/lib/commonjs/agent-creator/shared.js +0 -28
- package/lib/commonjs/agent-creator/shared.js.map +1 -1
- package/lib/commonjs/agent-creator/use-character-history.js +12 -9
- package/lib/commonjs/agent-creator/use-character-history.js.map +1 -1
- package/lib/commonjs/avatar/Avatar.js +12 -4
- package/lib/commonjs/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/avatar/account.js +9 -3
- package/lib/commonjs/avatar/account.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +1 -22
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +1 -22
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +1 -22
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +1 -22
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +1 -22
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +1 -22
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +1 -22
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +1 -22
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +1 -22
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +1 -22
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +1 -22
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +1 -22
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +1 -22
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +1 -22
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/Marketplace.js +1 -1
- package/lib/commonjs/multi-agent-chat/Marketplace.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +6 -6
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +2 -1
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/data.js +58 -39
- package/lib/commonjs/multi-agent-chat/data.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/marketplace-data.js +21 -27
- package/lib/commonjs/multi-agent-chat/marketplace-data.js.map +1 -1
- package/lib/module/agent-avatar/character.js +26 -0
- package/lib/module/agent-avatar/character.js.map +1 -1
- package/lib/module/agent-avatar/index.js +1 -1
- package/lib/module/agent-avatar/index.js.map +1 -1
- package/lib/module/agent-creator/AgentCreator.js +0 -4
- package/lib/module/agent-creator/AgentCreator.js.map +1 -1
- package/lib/module/agent-creator/AgentCreator.web.js +0 -4
- package/lib/module/agent-creator/AgentCreator.web.js.map +1 -1
- package/lib/module/agent-creator/AgentCreatorBase.js +56 -94
- package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -1
- package/lib/module/agent-creator/context.js.map +1 -1
- package/lib/module/agent-creator/messages.js +1 -22
- package/lib/module/agent-creator/messages.js.map +1 -1
- package/lib/module/agent-creator/paint.js +42 -0
- package/lib/module/agent-creator/paint.js.map +1 -0
- package/lib/module/agent-creator/shared.js +0 -26
- package/lib/module/agent-creator/shared.js.map +1 -1
- package/lib/module/agent-creator/use-character-history.js +7 -4
- package/lib/module/agent-creator/use-character-history.js.map +1 -1
- package/lib/module/avatar/Avatar.js +12 -4
- package/lib/module/avatar/Avatar.js.map +1 -1
- package/lib/module/avatar/account.js +9 -3
- package/lib/module/avatar/account.js.map +1 -1
- package/lib/module/locale/translations/ar.js +1 -22
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +1 -22
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +1 -22
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +1 -22
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +1 -22
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +1 -22
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +1 -22
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +1 -22
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +1 -22
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +1 -22
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +1 -22
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +1 -22
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +1 -22
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +1 -22
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/multi-agent-chat/Marketplace.js +2 -2
- package/lib/module/multi-agent-chat/Marketplace.js.map +1 -1
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js +7 -7
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js +2 -1
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
- package/lib/module/multi-agent-chat/data.js +58 -40
- package/lib/module/multi-agent-chat/data.js.map +1 -1
- package/lib/module/multi-agent-chat/marketplace-data.js +21 -27
- package/lib/module/multi-agent-chat/marketplace-data.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/character.d.ts +14 -0
- package/lib/typescript/commonjs/agent-avatar/character.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/index.d.ts +1 -1
- package/lib/typescript/commonjs/agent-avatar/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreator.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreator.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreatorBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/context.d.ts +1 -13
- package/lib/typescript/commonjs/agent-creator/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/messages.d.ts +0 -11
- package/lib/typescript/commonjs/agent-creator/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/paint.d.ts +20 -0
- package/lib/typescript/commonjs/agent-creator/paint.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/shared.d.ts +0 -7
- package/lib/typescript/commonjs/agent-creator/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/types.d.ts +14 -0
- package/lib/typescript/commonjs/agent-creator/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/use-character-history.d.ts +6 -2
- package/lib/typescript/commonjs/agent-creator/use-character-history.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/account.d.ts +4 -2
- package/lib/typescript/commonjs/avatar/account.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/types.d.ts +6 -0
- package/lib/typescript/commonjs/avatar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/Marketplace.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/SelectedAgentPreview.d.ts +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/SelectedAgentPreview.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/data.d.ts +4 -1
- package/lib/typescript/commonjs/multi-agent-chat/data.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/marketplace-data.d.ts +3 -0
- package/lib/typescript/commonjs/multi-agent-chat/marketplace-data.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/character.d.ts +14 -0
- package/lib/typescript/module/agent-avatar/character.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/index.d.ts +1 -1
- package/lib/typescript/module/agent-avatar/index.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreator.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreator.web.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreatorBase.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/context.d.ts +1 -13
- package/lib/typescript/module/agent-creator/context.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/messages.d.ts +0 -11
- package/lib/typescript/module/agent-creator/messages.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/paint.d.ts +20 -0
- package/lib/typescript/module/agent-creator/paint.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/shared.d.ts +0 -7
- package/lib/typescript/module/agent-creator/shared.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/types.d.ts +14 -0
- package/lib/typescript/module/agent-creator/types.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/use-character-history.d.ts +6 -2
- package/lib/typescript/module/agent-creator/use-character-history.d.ts.map +1 -1
- package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/avatar/account.d.ts +4 -2
- package/lib/typescript/module/avatar/account.d.ts.map +1 -1
- package/lib/typescript/module/avatar/types.d.ts +6 -0
- package/lib/typescript/module/avatar/types.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/Marketplace.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/SelectedAgentPreview.d.ts +1 -1
- package/lib/typescript/module/multi-agent-chat/SelectedAgentPreview.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/data.d.ts +4 -1
- package/lib/typescript/module/multi-agent-chat/data.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/marketplace-data.d.ts +3 -0
- package/lib/typescript/module/multi-agent-chat/marketplace-data.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/support/adoption-matrix.ts +5 -0
- package/src/agent-avatar/character.ts +30 -0
- package/src/agent-avatar/index.ts +1 -0
- package/src/agent-creator/AgentCreator.tsx +0 -4
- package/src/agent-creator/AgentCreator.web.tsx +0 -4
- package/src/agent-creator/AgentCreatorBase.tsx +51 -89
- package/src/agent-creator/context.ts +0 -2
- package/src/agent-creator/messages.ts +1 -37
- package/src/agent-creator/paint.ts +48 -0
- package/src/agent-creator/shared.ts +0 -27
- package/src/agent-creator/types.ts +14 -0
- package/src/agent-creator/use-character-history.ts +8 -4
- package/src/avatar/Avatar.tsx +13 -3
- package/src/avatar/account.ts +9 -3
- package/src/avatar/types.ts +6 -0
- package/src/locale/translations/ar.ts +1 -23
- package/src/locale/translations/bn.ts +1 -23
- package/src/locale/translations/ca.ts +1 -23
- package/src/locale/translations/de.ts +1 -23
- package/src/locale/translations/es.ts +1 -23
- package/src/locale/translations/fr.ts +1 -23
- package/src/locale/translations/hi.ts +1 -23
- package/src/locale/translations/id.ts +1 -23
- package/src/locale/translations/it.ts +1 -23
- package/src/locale/translations/ja.ts +1 -23
- package/src/locale/translations/pt.ts +1 -23
- package/src/locale/translations/ru.ts +1 -23
- package/src/locale/translations/tr.ts +1 -23
- package/src/locale/translations/zh.ts +1 -23
- package/src/multi-agent-chat/Marketplace.tsx +6 -2
- package/src/multi-agent-chat/MultiAgentChatBase.tsx +7 -6
- package/src/multi-agent-chat/SelectedAgentPreview.tsx +2 -2
- package/src/multi-agent-chat/data.ts +58 -27
- package/src/multi-agent-chat/marketplace-data.ts +28 -9
- package/lib/commonjs/agent-creator/CustomColorPicker.js +0 -431
- package/lib/commonjs/agent-creator/CustomColorPicker.js.map +0 -1
- package/lib/commonjs/agent-creator/GlossArt.js +0 -212
- package/lib/commonjs/agent-creator/GlossArt.js.map +0 -1
- package/lib/commonjs/agent-creator/rainbow-artwork.js +0 -10
- package/lib/commonjs/agent-creator/rainbow-artwork.js.map +0 -1
- package/lib/module/agent-creator/CustomColorPicker.js +0 -426
- package/lib/module/agent-creator/CustomColorPicker.js.map +0 -1
- package/lib/module/agent-creator/GlossArt.js +0 -207
- package/lib/module/agent-creator/GlossArt.js.map +0 -1
- package/lib/module/agent-creator/rainbow-artwork.js +0 -6
- package/lib/module/agent-creator/rainbow-artwork.js.map +0 -1
- package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts +0 -9
- package/lib/typescript/commonjs/agent-creator/CustomColorPicker.d.ts.map +0 -1
- package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts +0 -9
- package/lib/typescript/commonjs/agent-creator/GlossArt.d.ts.map +0 -1
- package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts +0 -3
- package/lib/typescript/commonjs/agent-creator/rainbow-artwork.d.ts.map +0 -1
- package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts +0 -9
- package/lib/typescript/module/agent-creator/CustomColorPicker.d.ts.map +0 -1
- package/lib/typescript/module/agent-creator/GlossArt.d.ts +0 -9
- package/lib/typescript/module/agent-creator/GlossArt.d.ts.map +0 -1
- package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts +0 -3
- package/lib/typescript/module/agent-creator/rainbow-artwork.d.ts.map +0 -1
- package/src/agent-creator/CustomColorPicker.tsx +0 -443
- package/src/agent-creator/GlossArt.tsx +0 -160
- package/src/agent-creator/rainbow-artwork.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-character-history.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/use-character-history.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"use-character-history.d.ts","sourceRoot":"","sources":["../../../../src/agent-creator/use-character-history.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA2B,CAAC;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAS,CAAC;AAajD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI;;;;oBAsClC,eAAe;;;;;EAqC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/avatar/Avatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmC/B,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,YAAS,CAAC;AAmG7D;;;GAGG;AACH,eAAO,MAAM,4BAA4B,uBAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/avatar/Avatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmC/B,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,YAAS,CAAC;AAmG7D;;;GAGG;AACH,eAAO,MAAM,4BAA4B,uBAA0B,CAAC;AAwXpE,eAAO,MAAM,MAAM,yCAAwB,CAAC"}
|
|
@@ -3,8 +3,10 @@ import type { AvatarAccount, AvatarProps } from './types.js';
|
|
|
3
3
|
export declare function accountName(account: AvatarAccount | undefined): string | undefined;
|
|
4
4
|
/**
|
|
5
5
|
* The one answer to "which character does this avatar carry": an explicit `character` wins
|
|
6
|
-
* (`null` opts out), else the character of a bot account
|
|
7
|
-
*
|
|
6
|
+
* (`null` opts out), else the character of a bot account painted in the account's own `color`
|
|
7
|
+
* (`avatarCharacterInColor`). Resolve it with `tryResolveAvatarCharacter`. A painted character is
|
|
8
|
+
* a new object each call, so a caller memoizes on `character`, `account.character` and
|
|
9
|
+
* `account.color` rather than on the result.
|
|
8
10
|
*/
|
|
9
11
|
export declare function pickAccountCharacter({ character, account, }: Pick<AvatarProps, 'character' | 'account'>): unknown;
|
|
10
12
|
//# sourceMappingURL=account.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/avatar/account.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/avatar/account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAS,CAAC;AAE1D,yEAAyE;AACzE,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CASlF;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,OAAO,GACR,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC,GAAG,OAAO,CAMtD"}
|
|
@@ -13,6 +13,12 @@ export interface AvatarAccount {
|
|
|
13
13
|
avatar?: string | null;
|
|
14
14
|
/** Stored bot character data, validated before rendering. Unknown recipes fall back to its image. */
|
|
15
15
|
character?: unknown;
|
|
16
|
+
/**
|
|
17
|
+
* The account's colour, as Oxy stores `User.color`: a Bloom colour preset key (or a legacy
|
|
18
|
+
* `#rrggbb`). A bot's character is drawn in it (`avatarCharacterInColor`), so a bot looks the
|
|
19
|
+
* colour of its account everywhere its account is drawn.
|
|
20
|
+
*/
|
|
21
|
+
color?: string | null;
|
|
16
22
|
username?: string | null;
|
|
17
23
|
/** A display name, or the account service's structured name. */
|
|
18
24
|
name?: string | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,oBAAW,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,iGAAiG;IACjG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,qGAAqG;IACrG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,GAAG;QAAE,WAAW,CA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vE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8EAA8E;IAC9E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ar.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAixG5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/bn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"bn.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/bn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAkzF5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ca.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ca.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ca.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAm5F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/de.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/de.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAq7F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/es.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/es.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA+6F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/fr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/fr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA67F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/hi.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"hi.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/hi.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAs0F5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/id.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/id.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAq4F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/it.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/it.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA86F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ja.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ja.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAo1F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/pt.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/pt.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAk8F5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ru.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/ru.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA0tG5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/tr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/tr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAw2F5C,QAAA,MAAM,YAAY,EAAE,YAiPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/zh.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../src/locale/translations/zh.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AA0wF5C,QAAA,MAAM,YAAY,EAAE,YAgPnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Marketplace.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/Marketplace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AA6BhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAQ,CAAC;AACpC,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,uBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Marketplace.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/Marketplace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AA6BhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAQ,CAAC;AACpC,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,uBAAoB,CAAC;AAwI5B,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,WAA2B,GAC5B,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC1C,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACzC,qBAmZA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiAgentChatBase.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/MultiAgentChatBase.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiAgentChatBase.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/MultiAgentChatBase.tsx"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAS,CAAC;AAmBnD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,+BAq6B5D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AvatarFlights } from '../avatar-flight';
|
|
2
|
-
import type
|
|
2
|
+
import { type Agent } from './data.js';
|
|
3
3
|
/** The selected-preview composition: one large avatar, a trio, or a ring from four up. */
|
|
4
4
|
export declare function previewAvatarGeometry(count: number, index: number): {
|
|
5
5
|
size: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectedAgentPreview.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/SelectedAgentPreview.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMtD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SelectedAgentPreview.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/SelectedAgentPreview.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMtD,OAAO,EAAkB,KAAK,KAAK,EAAE,MAAM,WAAQ,CAAC;AAKpD,0FAA0F;AAC1F,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;EAsBjE;AAmDD,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,OAAO,EACP,MAAM,EACN,OAAe,GAChB,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,OAAO,EAAE,aAAa,CAAC;IACvB,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,+BAqCA"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { type AvatarCharacter } from '../agent-avatar/index.js';
|
|
1
2
|
import type { AgentCreatorAgent } from '../agent-creator/types.js';
|
|
2
3
|
export type Agent = AgentCreatorAgent;
|
|
4
|
+
/** An agent's character as drawn: its parts, painted in the agent's own colour. */
|
|
5
|
+
export declare function agentCharacter(agent: Pick<Agent, 'avatar' | 'color'>): AvatarCharacter;
|
|
3
6
|
export type Message = {
|
|
4
7
|
id: string;
|
|
5
8
|
role: 'user' | 'agent';
|
|
@@ -22,7 +25,7 @@ export type Workspace = {
|
|
|
22
25
|
installedPlugins?: string[];
|
|
23
26
|
};
|
|
24
27
|
/** Choose an unused identity, including when restoring old unnamed demo bots. */
|
|
25
|
-
export declare function nextAgentIdentity(agents: Pick<Agent, 'name'>[]): Pick<Agent, 'name' | 'avatar'>;
|
|
28
|
+
export declare function nextAgentIdentity(agents: Pick<Agent, 'name'>[]): Pick<Agent, 'name' | 'avatar' | 'color'>;
|
|
26
29
|
export declare const INITIAL_AGENTS: Agent[];
|
|
27
30
|
export declare const INITIAL_WORKSPACE: Workspace;
|
|
28
31
|
/** Restored data is bounded and validated before it reaches the animated renderer. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/data.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAIrB,MAAM,0BAAiB,CAAC;AAOzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAAwB,CAAC;AAChE,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC;AAEtC,mFAAmF;AACnF,wBAAgB,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,GAAG,eAAe,CAEtF;AAID,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG;I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ar' | 'appwrite' | 'linear' | 'aws';
|
|
13
|
+
/** A bot's character parts; it is drawn in `color`. */
|
|
13
14
|
avatar?: AvatarCharacter;
|
|
15
|
+
/** A bot's colour: a Bloom colour preset key. */
|
|
16
|
+
color?: string;
|
|
14
17
|
apps: string[];
|
|
15
18
|
skills: {
|
|
16
19
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace-data.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/marketplace-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAAiB,CAAC;AACvD,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,WAAQ,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,KAAK,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EACD,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,QAAQ,GACR,KAAK,CAAC;IACV,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACjD,CAAC;
|
|
1
|
+
{"version":3,"file":"marketplace-data.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/marketplace-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAAiB,CAAC;AACvD,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,WAAQ,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,KAAK,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EACD,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,QAAQ,GACR,KAAK,CAAC;IACV,uDAAuD;IACvD,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACjD,CAAC;AAgDF,yFAAyF;AACzF,eAAO,MAAM,iBAAiB,EAAE,eAAe,EA6N9C,CAAC;AAEF,eAAO,MAAM,eAAe,UAA0C,CAAC;AACvE,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,WAAwB,CAAC;AACtE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,KAAK,GAAG,QAAQ,GAAG,KAAa,qBAWtF;AACD,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,GAAG,SAAS,CAuBxF"}
|
package/package.json
CHANGED
|
@@ -389,6 +389,11 @@ export const CLASSIFICATION: Record<string, Record<string, Classification>> = {
|
|
|
389
389
|
verdict: 'does-not-apply',
|
|
390
390
|
reason: SELECTION_ROW,
|
|
391
391
|
},
|
|
392
|
+
'agent-creator': {
|
|
393
|
+
verdict: 'does-not-apply',
|
|
394
|
+
reason:
|
|
395
|
+
'the only form role is the `[role="textbox"]` selector its undo shortcut uses to leave keystrokes typed into a field alone, not a node it renders. Its fields are `TextFieldInput` and `Textarea`, which read the contract themselves, and its colour control is a `ColorSwatchPicker`.',
|
|
396
|
+
},
|
|
392
397
|
styles: {
|
|
393
398
|
verdict: 'does-not-apply',
|
|
394
399
|
reason:
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
} from './catalog-ids';
|
|
15
15
|
import { CHARACTER_COLORS } from './character-colors';
|
|
16
16
|
import { normalizeAvatarSkinColor } from './skin-color';
|
|
17
|
+
import { APP_COLOR_PRESETS, resolveProfileColor } from '../theme/color-presets';
|
|
17
18
|
import { CHARACTER_PRESET_DEFAULTS } from './character-preset-defaults';
|
|
18
19
|
|
|
19
20
|
/**
|
|
@@ -203,6 +204,35 @@ export function updateAvatarCharacter(
|
|
|
203
204
|
return next;
|
|
204
205
|
}
|
|
205
206
|
|
|
207
|
+
/**
|
|
208
|
+
* A character painted in its account's colour.
|
|
209
|
+
*
|
|
210
|
+
* `color` is the colour of the account the character stands for, as Oxy stores `User.color`: a
|
|
211
|
+
* Bloom colour preset key (`'lagoon'`), or a legacy `#rgb`/`#rrggbb`. The body takes the preset's
|
|
212
|
+
* identity seed (or the legacy colour), lifted to the avatar skin floor, so an agent is drawn in
|
|
213
|
+
* the same colour its profile is themed with. This is the one place a colour preset becomes an
|
|
214
|
+
* avatar paint.
|
|
215
|
+
*
|
|
216
|
+
* The result carries `bodyColor` and no `color`; every part is kept. A colour that does not resolve
|
|
217
|
+
* (`null`, `undefined`, an unknown key) returns the character unchanged, so its own paint (or its
|
|
218
|
+
* preset's) applies.
|
|
219
|
+
*/
|
|
220
|
+
export function avatarCharacterInColor(
|
|
221
|
+
character: AvatarCharacter,
|
|
222
|
+
color: string | null | undefined,
|
|
223
|
+
): AvatarCharacter {
|
|
224
|
+
const resolved = resolveProfileColor(color);
|
|
225
|
+
if (resolved === undefined) return character;
|
|
226
|
+
const seed =
|
|
227
|
+
resolved.colorPreset === undefined
|
|
228
|
+
? resolved.seed
|
|
229
|
+
: APP_COLOR_PRESETS[resolved.colorPreset].hex;
|
|
230
|
+
const painted: AvatarCharacter = { ...character };
|
|
231
|
+
delete painted.color;
|
|
232
|
+
painted.bodyColor = normalizeAvatarSkinColor(seed);
|
|
233
|
+
return painted;
|
|
234
|
+
}
|
|
235
|
+
|
|
206
236
|
/** The body paint as `#rrggbb`, whichever way it was named. */
|
|
207
237
|
export function avatarBodyHex(resolved: ResolvedAvatarCharacter): string {
|
|
208
238
|
return 'bodyColor' in resolved.paint
|
|
@@ -8,6 +8,7 @@ export type { AgentAvatarMood, AgentAvatarProps, AgentAvatarProviderProps } from
|
|
|
8
8
|
// checks saved JSON, `characterFromLegacy` migrates an avatar saved before 10.
|
|
9
9
|
export {
|
|
10
10
|
avatarBodyHex,
|
|
11
|
+
avatarCharacterInColor,
|
|
11
12
|
avatarCharacterOf,
|
|
12
13
|
parseAvatarCharacter,
|
|
13
14
|
resolveAvatarCharacter,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Screen, ScreenScrollView } from '../screen/index';
|
|
2
|
-
import { Popover, PopoverContent, PopoverTrigger } from '../popover';
|
|
3
2
|
import {
|
|
4
3
|
Select,
|
|
5
4
|
SelectContent,
|
|
@@ -23,9 +22,6 @@ const bindings = {
|
|
|
23
22
|
SelectContent,
|
|
24
23
|
SelectItem,
|
|
25
24
|
SelectItemText,
|
|
26
|
-
Popover,
|
|
27
|
-
PopoverTrigger,
|
|
28
|
-
PopoverContent,
|
|
29
25
|
SettingsSelect,
|
|
30
26
|
};
|
|
31
27
|
export function AgentCreator(props: AgentCreatorProps) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Screen, ScreenScrollView } from '../screen/index.web';
|
|
2
|
-
import { Popover, PopoverContent, PopoverTrigger } from '../popover/index.web';
|
|
3
2
|
import {
|
|
4
3
|
Select,
|
|
5
4
|
SelectContent,
|
|
@@ -23,9 +22,6 @@ const bindings = {
|
|
|
23
22
|
SelectContent,
|
|
24
23
|
SelectItem,
|
|
25
24
|
SelectItemText,
|
|
26
|
-
Popover,
|
|
27
|
-
PopoverTrigger,
|
|
28
|
-
PopoverContent,
|
|
29
25
|
SettingsSelect,
|
|
30
26
|
};
|
|
31
27
|
export function AgentCreator(props: AgentCreatorProps) {
|
|
@@ -8,6 +8,9 @@ import {
|
|
|
8
8
|
resolveAvatarCharacter,
|
|
9
9
|
updateAvatarCharacter,
|
|
10
10
|
} from '../agent-avatar';
|
|
11
|
+
import { ColorSwatchPicker } from '../color-swatch-picker';
|
|
12
|
+
import { APP_COLOR_PRESETS, COLOR_PRESET_REGISTRY, FREE_COLOR_NAMES } from '../theme/color-presets';
|
|
13
|
+
import { drawnCharacter } from './paint';
|
|
11
14
|
import { editorShapeId } from './shape-choices';
|
|
12
15
|
import { ButtonGroup, ButtonGroupItem } from '../button-group';
|
|
13
16
|
import { RiArrowGoBackLine } from '../icons/remix/RiArrowGoBackLine';
|
|
@@ -22,15 +25,13 @@ import { Text } from '../typography';
|
|
|
22
25
|
import { AgentCreatorField } from './AgentCreatorField';
|
|
23
26
|
import { AgentPreferencesPanel } from './AgentPreferencesPanel';
|
|
24
27
|
import { CharacterControls } from './CharacterControls';
|
|
25
|
-
import { CustomColorPicker } from './CustomColorPicker';
|
|
26
28
|
import { EmotionPicker } from './EmotionPicker';
|
|
27
|
-
import { GlossArt } from './GlossArt';
|
|
28
29
|
import { PageHeader } from '../page-header/PageHeader';
|
|
29
30
|
import { useDialogContext } from '../dialog/context';
|
|
30
31
|
import { SurfaceLevelProvider } from '../styles/surface-levels';
|
|
31
32
|
import { useSurfaceBacking } from '../surface/use-surface-backing';
|
|
32
33
|
import { ShapeArc } from './ShapeArc';
|
|
33
|
-
import {
|
|
34
|
+
import { CHARACTER_OPTIONS } from './constants';
|
|
34
35
|
import {
|
|
35
36
|
AgentCreatorCopyContext,
|
|
36
37
|
useAgentCreatorBindings,
|
|
@@ -46,8 +47,7 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
|
|
|
46
47
|
const { isWithinDialog } = useDialogContext();
|
|
47
48
|
const { colors } = useTheme();
|
|
48
49
|
const backing = useSurfaceBacking(colors.background, style);
|
|
49
|
-
const { Screen, ScreenScrollView
|
|
50
|
-
useAgentCreatorBindings();
|
|
50
|
+
const { Screen, ScreenScrollView } = useAgentCreatorBindings();
|
|
51
51
|
const latest = useRef({ agent, onChange });
|
|
52
52
|
latest.current = { agent, onChange };
|
|
53
53
|
const copy = useMemo(
|
|
@@ -103,13 +103,34 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
|
|
|
103
103
|
node?.addEventListener('keydown', keydown);
|
|
104
104
|
return () => node?.removeEventListener('keydown', keydown);
|
|
105
105
|
}, []);
|
|
106
|
-
//
|
|
107
|
-
const
|
|
106
|
+
// The colours offered are the host's, and only those Bloom can draw.
|
|
107
|
+
const offered = useMemo(
|
|
108
|
+
() => (props.colors ?? FREE_COLOR_NAMES).filter((key) => key in APP_COLOR_PRESETS),
|
|
109
|
+
[props.colors],
|
|
110
|
+
);
|
|
111
|
+
const swatches = useMemo(() => {
|
|
112
|
+
const keyOf: Record<string, string> = {};
|
|
113
|
+
const names: Record<string, string> = {};
|
|
114
|
+
const hexes = offered.map((key) => {
|
|
115
|
+
const preset = COLOR_PRESET_REGISTRY.find(({ name }) => name === key)!;
|
|
116
|
+
keyOf[preset.hex] = key;
|
|
117
|
+
names[preset.hex] = preset.displayName;
|
|
118
|
+
return preset.hex;
|
|
119
|
+
});
|
|
120
|
+
return { hexes, keyOf, names };
|
|
121
|
+
}, [offered]);
|
|
122
|
+
// Every control draws the character in the agent's colour and writes one edit to the saved
|
|
123
|
+
// one; the history keeps the parts and drops the paint.
|
|
124
|
+
const painted = useMemo(
|
|
125
|
+
() => drawnCharacter(avatar, agent.color, offered),
|
|
126
|
+
[avatar, agent.color, offered],
|
|
127
|
+
);
|
|
128
|
+
const character = useMemo(() => resolveAvatarCharacter(painted), [painted]);
|
|
108
129
|
const edit = (patch: Parameters<typeof updateAvatarCharacter>[1]) =>
|
|
109
|
-
history.change(updateAvatarCharacter(
|
|
110
|
-
const paintColor = 'color' in character.paint ? character.paint.color : undefined;
|
|
111
|
-
const customHex = 'bodyColor' in character.paint ? character.paint.bodyColor : undefined;
|
|
130
|
+
history.change(updateAvatarCharacter(painted, patch));
|
|
112
131
|
const bodyHex = avatarBodyHex(character);
|
|
132
|
+
const chosenHex = (APP_COLOR_PRESETS as Record<string, { hex: string } | undefined>)[agent.color]
|
|
133
|
+
?.hex;
|
|
113
134
|
const shapeChoices = useMemo(
|
|
114
135
|
() =>
|
|
115
136
|
CHARACTER_OPTIONS.shape.map(([id, title]) => ({
|
|
@@ -118,9 +139,9 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
|
|
|
118
139
|
id in messages.shapes
|
|
119
140
|
? messages.shapes[id as keyof typeof messages.shapes]
|
|
120
141
|
: messages.characterOption('shape', id, title),
|
|
121
|
-
character: updateAvatarCharacter(
|
|
142
|
+
character: updateAvatarCharacter(painted, { shape: id }),
|
|
122
143
|
})),
|
|
123
|
-
[
|
|
144
|
+
[painted, messages],
|
|
124
145
|
);
|
|
125
146
|
const nearby = useMemo(() => {
|
|
126
147
|
const index = CHARACTER_OPTIONS.shape.findIndex(
|
|
@@ -128,19 +149,19 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
|
|
|
128
149
|
);
|
|
129
150
|
return [index - 1, index + 1].flatMap((i) => {
|
|
130
151
|
const next = CHARACTER_OPTIONS.shape[i];
|
|
131
|
-
return next ? [updateAvatarCharacter(
|
|
152
|
+
return next ? [updateAvatarCharacter(painted, { shape: next[0] })] : [];
|
|
132
153
|
});
|
|
133
|
-
}, [
|
|
154
|
+
}, [painted, character.shape]);
|
|
134
155
|
useVectorGeometryPreparation(nearby);
|
|
135
156
|
const eyeChoices = useMemo(
|
|
136
157
|
() =>
|
|
137
158
|
CHARACTER_OPTIONS.eyes.map(([id, title]) => ({
|
|
138
159
|
id,
|
|
139
160
|
label: messages.characterOption('eyes', id, title),
|
|
140
|
-
character: updateAvatarCharacter(
|
|
161
|
+
character: updateAvatarCharacter(painted, { eyes: id }),
|
|
141
162
|
disabled: false,
|
|
142
163
|
})),
|
|
143
|
-
[
|
|
164
|
+
[painted, messages],
|
|
144
165
|
);
|
|
145
166
|
return (
|
|
146
167
|
<AgentCreatorCopyContext.Provider value={copy}>
|
|
@@ -238,7 +259,7 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
|
|
|
238
259
|
}}
|
|
239
260
|
>
|
|
240
261
|
<AgentAvatar
|
|
241
|
-
character={
|
|
262
|
+
character={painted}
|
|
242
263
|
size={162}
|
|
243
264
|
interactive
|
|
244
265
|
renderer="svg"
|
|
@@ -270,80 +291,21 @@ export function AgentCreatorBase(props: AgentCreatorProps) {
|
|
|
270
291
|
{preparing ? messages.preparingAvatar : ''}
|
|
271
292
|
</Text>
|
|
272
293
|
</StyledView>
|
|
273
|
-
<StyledView
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
accessibilityLabel={messages.color}
|
|
281
|
-
testID="agent-avatar-color-selector"
|
|
282
|
-
className="flex h-[38px] shrink-0 items-center gap-1 rounded-full border border-border-button-default bg-background-primary-default p-[5px] shadow-xs flex-row"
|
|
283
|
-
style={{
|
|
284
|
-
backgroundColor: colors.card,
|
|
285
|
-
borderColor: colors.border,
|
|
286
|
-
boxShadow: '0 1px 2px rgba(0,0,0,.05)',
|
|
294
|
+
<StyledView className="mt-[15px] px-3" testID="agent-avatar-color-selector">
|
|
295
|
+
<ColorSwatchPicker
|
|
296
|
+
label={messages.color}
|
|
297
|
+
value={chosenHex ?? ''}
|
|
298
|
+
onValueChange={(hex) => {
|
|
299
|
+
const color = swatches.keyOf[hex];
|
|
300
|
+
if (color !== undefined && color !== agent.color) onChange({ ...agent, color });
|
|
287
301
|
}}
|
|
288
|
-
|
|
289
|
-
{
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return (
|
|
294
|
-
<StyledPressable
|
|
295
|
-
key={id}
|
|
296
|
-
accessibilityRole="button"
|
|
297
|
-
accessibilityLabel={messages.avatarColorLabel(
|
|
298
|
-
messages.characterOption('color', id, title),
|
|
299
|
-
)}
|
|
300
|
-
aria-pressed={active}
|
|
301
|
-
aria-disabled={disabled}
|
|
302
|
-
accessibilityState={{ selected: active, disabled }}
|
|
303
|
-
disabled={disabled}
|
|
304
|
-
onPress={() => edit({ color: id as typeof paintColor })}
|
|
305
|
-
className="relative shrink-0 cursor-pointer overflow-hidden rounded-full transition-transform duration-150 ease-out hover:scale-110 outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-2 size-[26px]"
|
|
306
|
-
>
|
|
307
|
-
<GlossArt center={hex} edge={hex} active={active} />
|
|
308
|
-
</StyledPressable>
|
|
309
|
-
);
|
|
310
|
-
})}
|
|
311
|
-
<Popover>
|
|
312
|
-
<PopoverTrigger asChild label={messages.customColor}>
|
|
313
|
-
<StyledPressable
|
|
314
|
-
aria-pressed={Boolean(customHex)}
|
|
315
|
-
accessibilityState={{ selected: Boolean(customHex) }}
|
|
316
|
-
className="relative size-[26px] shrink-0 overflow-hidden rounded-full"
|
|
317
|
-
>
|
|
318
|
-
<GlossArt
|
|
319
|
-
rainbow={!customHex}
|
|
320
|
-
center={customHex}
|
|
321
|
-
edge={customHex}
|
|
322
|
-
active={Boolean(customHex)}
|
|
323
|
-
/>
|
|
324
|
-
</StyledPressable>
|
|
325
|
-
</PopoverTrigger>
|
|
326
|
-
<PopoverContent
|
|
327
|
-
label={messages.customColor}
|
|
328
|
-
align="end"
|
|
329
|
-
minWidth={248}
|
|
330
|
-
maxWidth={248}
|
|
331
|
-
className="w-[248px] rounded-3xl p-2.5"
|
|
332
|
-
>
|
|
333
|
-
<CustomColorPicker
|
|
334
|
-
key={agent.id}
|
|
335
|
-
value={bodyHex}
|
|
336
|
-
onInteractionStart={history.begin}
|
|
337
|
-
onInteractionEnd={history.end}
|
|
338
|
-
onChange={(hex) => {
|
|
339
|
-
if (/^#[0-9a-f]{6}$/i.test(hex)) edit({ bodyColor: hex.toLowerCase() });
|
|
340
|
-
}}
|
|
341
|
-
/>
|
|
342
|
-
</PopoverContent>
|
|
343
|
-
</Popover>
|
|
344
|
-
</StyledView>
|
|
302
|
+
colors={swatches.hexes}
|
|
303
|
+
names={swatches.names}
|
|
304
|
+
size={22}
|
|
305
|
+
style={{ justifyContent: 'center' }}
|
|
306
|
+
/>
|
|
345
307
|
</StyledView>
|
|
346
|
-
<CharacterControls character={
|
|
308
|
+
<CharacterControls character={painted} onChange={history.change} />
|
|
347
309
|
<StyledView
|
|
348
310
|
className="mt-[15px] overflow-hidden rounded-2xl bg-background-secondary-default ps-3"
|
|
349
311
|
style={{ backgroundColor: colors.backgroundSecondary }}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createContext, useContext, useMemo } from 'react';
|
|
2
2
|
import { useMessages } from '../locale/messages';
|
|
3
|
-
import type * as PopoverParts from '../popover/Popover';
|
|
4
3
|
import type * as SelectParts from '../select';
|
|
5
4
|
import { AGENT_CREATOR_MESSAGES, type AgentCreatorMessages } from './messages';
|
|
6
5
|
|
|
@@ -14,7 +13,6 @@ export type AgentCreatorBindings = Pick<
|
|
|
14
13
|
| 'SelectItem'
|
|
15
14
|
| 'SelectItemText'
|
|
16
15
|
> &
|
|
17
|
-
Pick<typeof PopoverParts, 'Popover' | 'PopoverTrigger' | 'PopoverContent'> &
|
|
18
16
|
Pick<typeof import('../settings-modal/SettingsSelect'), 'SettingsSelect'> &
|
|
19
17
|
import('../screen/types').ScreenComponents;
|
|
20
18
|
export const AgentCreatorContext = createContext<AgentCreatorBindings | null>(null);
|