@oxy.so/bloom 19.11.0 → 21.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 +1 -1
- package/docs/agent-avatar.mdx +20 -0
- package/docs/agent-creator.mdx +20 -12
- 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/AgentCreatorBase.js +31 -24
- package/lib/commonjs/agent-creator/AgentCreatorBase.js.map +1 -1
- package/lib/commonjs/agent-creator/paint.js +59 -0
- package/lib/commonjs/agent-creator/paint.js.map +1 -0
- 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/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/AgentCreatorBase.js +31 -24
- package/lib/module/agent-creator/AgentCreatorBase.js.map +1 -1
- package/lib/module/agent-creator/paint.js +53 -0
- package/lib/module/agent-creator/paint.js.map +1 -0
- 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/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/AgentCreatorBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/paint.d.ts +25 -0
- package/lib/typescript/commonjs/agent-creator/paint.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-creator/types.d.ts +11 -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 +5 -0
- package/lib/typescript/commonjs/avatar/types.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/AgentCreatorBase.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/paint.d.ts +25 -0
- package/lib/typescript/module/agent-creator/paint.d.ts.map +1 -0
- package/lib/typescript/module/agent-creator/types.d.ts +11 -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 +5 -0
- package/lib/typescript/module/avatar/types.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/agent-avatar/character.ts +30 -0
- package/src/agent-avatar/index.ts +1 -0
- package/src/agent-creator/AgentCreatorBase.tsx +30 -24
- package/src/agent-creator/paint.ts +58 -0
- package/src/agent-creator/types.ts +11 -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 +5 -0
- 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 +60 -27
- package/src/multi-agent-chat/marketplace-data.ts +28 -9
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AVATAR_COLORS,
|
|
3
2
|
type AvatarCharacter,
|
|
3
|
+
avatarCharacterInColor,
|
|
4
4
|
characterFromLegacy,
|
|
5
5
|
parseAvatarCharacter,
|
|
6
6
|
} from '../agent-avatar';
|
|
7
|
+
import { withoutPaint } from '../agent-creator/paint';
|
|
8
|
+
import { FREE_COLOR_NAMES, resolveProfileColor } from '../theme/color-presets';
|
|
7
9
|
import { pickMessages, formatMessage } from '../locale/messages';
|
|
8
10
|
import { MULTI_AGENT_CHAT_MESSAGES } from './messages';
|
|
9
11
|
|
|
10
12
|
import { normalizeAgentPreferences } from '../agent-creator/shared';
|
|
11
13
|
import type { AgentCreatorAgent } from '../agent-creator/types';
|
|
12
14
|
export type Agent = AgentCreatorAgent;
|
|
15
|
+
|
|
16
|
+
/** An agent's character as drawn: its parts, painted in the agent's own colour. */
|
|
17
|
+
export function agentCharacter(agent: Pick<Agent, 'avatar' | 'color'>): AvatarCharacter {
|
|
18
|
+
return avatarCharacterInColor(agent.avatar, agent.color);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** The colour a restored agent saved without one wears. */
|
|
22
|
+
const DEFAULT_AGENT_COLOR = 'blue';
|
|
13
23
|
export type Message = {
|
|
14
24
|
id: string;
|
|
15
25
|
role: 'user' | 'agent';
|
|
@@ -32,11 +42,23 @@ export type Workspace = {
|
|
|
32
42
|
installedPlugins?: string[];
|
|
33
43
|
};
|
|
34
44
|
|
|
35
|
-
/** A saved
|
|
36
|
-
function
|
|
37
|
-
return
|
|
38
|
-
?
|
|
39
|
-
:
|
|
45
|
+
/** A saved colour: any account colour Bloom can draw (a preset key or a `#rrggbb`), else the default. */
|
|
46
|
+
function readColor(saved: unknown): string {
|
|
47
|
+
return typeof saved === 'string' && resolveProfileColor(saved) !== undefined
|
|
48
|
+
? saved
|
|
49
|
+
: DEFAULT_AGENT_COLOR;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* A saved avatar's parts: a character (checked painted in the agent's colour, kept without paint),
|
|
54
|
+
* or the old `AvatarConfig` of a workspace saved before 10.
|
|
55
|
+
*/
|
|
56
|
+
function readAvatar(saved: unknown, color: string): AvatarCharacter {
|
|
57
|
+
return withoutPaint(
|
|
58
|
+
saved && typeof saved === 'object' && 'family' in saved
|
|
59
|
+
? characterFromLegacy(saved)
|
|
60
|
+
: parseAvatarCharacter(avatarCharacterInColor(saved as AvatarCharacter, color)),
|
|
61
|
+
);
|
|
40
62
|
}
|
|
41
63
|
|
|
42
64
|
const NEW_AGENT_IDENTITIES = [
|
|
@@ -47,21 +69,25 @@ const NEW_AGENT_IDENTITIES = [
|
|
|
47
69
|
eyes: 'oval',
|
|
48
70
|
eyewear: 'none',
|
|
49
71
|
accessory: 'none',
|
|
50
|
-
color: 'blue',
|
|
51
72
|
},
|
|
73
|
+
color: 'blue',
|
|
52
74
|
},
|
|
53
75
|
{
|
|
54
76
|
name: 'Cloud engineer',
|
|
55
|
-
avatar: { shape: 'cloud', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
77
|
+
avatar: { shape: 'cloud', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
78
|
+
color: 'orange',
|
|
56
79
|
},
|
|
57
80
|
{
|
|
58
81
|
name: 'Support guide',
|
|
59
|
-
avatar: { shape: 'heart', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
82
|
+
avatar: { shape: 'heart', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
83
|
+
color: 'mint',
|
|
60
84
|
},
|
|
61
|
-
] satisfies Pick<Agent, 'name' | 'avatar'>[];
|
|
85
|
+
] satisfies Pick<Agent, 'name' | 'avatar' | 'color'>[];
|
|
62
86
|
|
|
63
87
|
/** Choose an unused identity, including when restoring old unnamed demo bots. */
|
|
64
|
-
export function nextAgentIdentity(
|
|
88
|
+
export function nextAgentIdentity(
|
|
89
|
+
agents: Pick<Agent, 'name'>[],
|
|
90
|
+
): Pick<Agent, 'name' | 'avatar' | 'color'> {
|
|
65
91
|
const names = new Set(agents.map((agent) => agent.name.toLowerCase()));
|
|
66
92
|
let index = 0;
|
|
67
93
|
while (true) {
|
|
@@ -71,14 +97,13 @@ export function nextAgentIdentity(agents: Pick<Agent, 'name'>[]): Pick<Agent, 'n
|
|
|
71
97
|
if (!names.has(name.toLowerCase()))
|
|
72
98
|
return {
|
|
73
99
|
name,
|
|
74
|
-
// The same body in the next
|
|
75
|
-
avatar: {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
},
|
|
100
|
+
// The same body in the next colour each time round, so a long list stays tellable apart.
|
|
101
|
+
avatar: { ...identity.avatar },
|
|
102
|
+
color:
|
|
103
|
+
FREE_COLOR_NAMES[
|
|
104
|
+
((FREE_COLOR_NAMES as readonly string[]).indexOf(identity.color) + cycle) %
|
|
105
|
+
FREE_COLOR_NAMES.length
|
|
106
|
+
]!,
|
|
82
107
|
};
|
|
83
108
|
index++;
|
|
84
109
|
}
|
|
@@ -111,7 +136,8 @@ const ADDITIONAL_AGENTS: Agent[] = [
|
|
|
111
136
|
name: 'Data analyst',
|
|
112
137
|
label: 'Analytics',
|
|
113
138
|
description: 'Turns data into clear insights, useful charts, and practical decisions.',
|
|
114
|
-
avatar: { shape: 'pocket', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
139
|
+
avatar: { shape: 'pocket', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
140
|
+
color: 'sky',
|
|
115
141
|
},
|
|
116
142
|
];
|
|
117
143
|
|
|
@@ -122,21 +148,24 @@ export const INITIAL_AGENTS: Agent[] = [
|
|
|
122
148
|
label: 'Design',
|
|
123
149
|
description:
|
|
124
150
|
'Thoughtful layouts, clear hierarchy, and a little personality for your next landing page.',
|
|
125
|
-
avatar: { shape: 'slender', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
151
|
+
avatar: { shape: 'slender', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
152
|
+
color: 'mint',
|
|
126
153
|
},
|
|
127
154
|
{
|
|
128
155
|
id: 'content',
|
|
129
156
|
name: 'content reviewer',
|
|
130
157
|
label: 'Writing',
|
|
131
158
|
description: 'Makes your writing clear, concise, and unmistakably yours.',
|
|
132
|
-
avatar: { shape: 'pocket', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
159
|
+
avatar: { shape: 'pocket', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
160
|
+
color: 'orange',
|
|
133
161
|
},
|
|
134
162
|
{
|
|
135
163
|
id: 'marketing',
|
|
136
164
|
name: 'marketing bot',
|
|
137
165
|
label: 'Marketing',
|
|
138
166
|
description: 'Turns a good idea into a campaign people remember.',
|
|
139
|
-
avatar: { shape: 'star', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
167
|
+
avatar: { shape: 'star', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
168
|
+
color: 'mint',
|
|
140
169
|
},
|
|
141
170
|
{
|
|
142
171
|
id: 'seo',
|
|
@@ -148,15 +177,16 @@ export const INITIAL_AGENTS: Agent[] = [
|
|
|
148
177
|
eyes: 'oval',
|
|
149
178
|
eyewear: 'none',
|
|
150
179
|
accessory: 'none',
|
|
151
|
-
color: 'violet',
|
|
152
180
|
},
|
|
181
|
+
color: 'violet',
|
|
153
182
|
},
|
|
154
183
|
{
|
|
155
184
|
id: 'research',
|
|
156
185
|
name: 'research assistant',
|
|
157
186
|
label: 'Research',
|
|
158
187
|
description: 'Connects the dots, asks better questions, and brings the evidence.',
|
|
159
|
-
avatar: { shape: 'petal', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
188
|
+
avatar: { shape: 'petal', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
189
|
+
color: 'yellow',
|
|
160
190
|
},
|
|
161
191
|
{
|
|
162
192
|
id: 'security',
|
|
@@ -164,7 +194,8 @@ export const INITIAL_AGENTS: Agent[] = [
|
|
|
164
194
|
label: 'Security',
|
|
165
195
|
description:
|
|
166
196
|
'A careful second pair of eyes for permissions, privacy, and application security.',
|
|
167
|
-
avatar: { shape: 'shield', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
197
|
+
avatar: { shape: 'shield', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
198
|
+
color: 'mint',
|
|
168
199
|
},
|
|
169
200
|
...ADDITIONAL_AGENTS,
|
|
170
201
|
];
|
|
@@ -287,7 +318,8 @@ export function restoreWorkspace(raw: string): Workspace | null {
|
|
|
287
318
|
label: a.label.slice(0, 60),
|
|
288
319
|
description: a.description.slice(0, 500),
|
|
289
320
|
...(a.preferences ? { preferences: normalizeAgentPreferences(a.preferences) } : {}),
|
|
290
|
-
|
|
321
|
+
color: readColor(a.color),
|
|
322
|
+
avatar: readAvatar(a.avatar, readColor(a.color)),
|
|
291
323
|
};
|
|
292
324
|
});
|
|
293
325
|
const renamed = new Set<string>();
|
|
@@ -402,6 +434,7 @@ export function restoreWorkspace(raw: string): Workspace | null {
|
|
|
402
434
|
agent.label !== original.label ||
|
|
403
435
|
agent.description !== original.description ||
|
|
404
436
|
agent.preferences ||
|
|
437
|
+
agent.color !== original.color ||
|
|
405
438
|
Object.entries(original.avatar).some(
|
|
406
439
|
([key, value]) => agent.avatar[key as keyof AvatarCharacter] !== value,
|
|
407
440
|
);
|
|
@@ -21,7 +21,10 @@ export type MarketplaceItem = {
|
|
|
21
21
|
| 'appwrite'
|
|
22
22
|
| 'linear'
|
|
23
23
|
| 'aws';
|
|
24
|
+
/** A bot's character parts; it is drawn in `color`. */
|
|
24
25
|
avatar?: AvatarCharacter;
|
|
26
|
+
/** A bot's colour: a Bloom colour preset key. */
|
|
27
|
+
color?: string;
|
|
25
28
|
apps: string[];
|
|
26
29
|
skills: { name: string; description: string }[];
|
|
27
30
|
};
|
|
@@ -55,6 +58,7 @@ const bot = (
|
|
|
55
58
|
description: string,
|
|
56
59
|
detail: string,
|
|
57
60
|
avatar: AvatarCharacter,
|
|
61
|
+
color: string,
|
|
58
62
|
skills: MarketplaceItem['skills'],
|
|
59
63
|
): MarketplaceItem => ({
|
|
60
64
|
id,
|
|
@@ -66,6 +70,7 @@ const bot = (
|
|
|
66
70
|
developer: 'Bloom',
|
|
67
71
|
website: 'https://oxy.so',
|
|
68
72
|
avatar,
|
|
73
|
+
color,
|
|
69
74
|
apps: [],
|
|
70
75
|
skills,
|
|
71
76
|
});
|
|
@@ -178,7 +183,8 @@ export const MARKETPLACE_ITEMS: MarketplaceItem[] = [
|
|
|
178
183
|
'Writing',
|
|
179
184
|
'Find the words that make your idea click.',
|
|
180
185
|
'A thoughtful writing partner for pitches, introductions, and the story behind your product. Explore a few directions, sharpen your message, and keep your own voice.',
|
|
181
|
-
{ shape: 'petal', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
186
|
+
{ shape: 'petal', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
187
|
+
'orange',
|
|
182
188
|
[
|
|
183
189
|
{
|
|
184
190
|
name: 'Storytelling',
|
|
@@ -192,7 +198,8 @@ export const MARKETPLACE_ITEMS: MarketplaceItem[] = [
|
|
|
192
198
|
'Productivity',
|
|
193
199
|
'Good conversations deserve clear next steps.',
|
|
194
200
|
'Turn pasted meeting notes into a useful recap. Pull out decisions, open questions, and action items so the next step is easy to see.',
|
|
195
|
-
{ shape: 'pocket', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
201
|
+
{ shape: 'pocket', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
202
|
+
'mint',
|
|
196
203
|
[
|
|
197
204
|
{
|
|
198
205
|
name: 'Meeting summaries',
|
|
@@ -206,7 +213,8 @@ export const MARKETPLACE_ITEMS: MarketplaceItem[] = [
|
|
|
206
213
|
'Marketing',
|
|
207
214
|
'From a promising idea to launch day.',
|
|
208
215
|
'Plan a focused launch with an agent that keeps the audience, message, and next milestone in view. Build a checklist and refine the details as you go.',
|
|
209
|
-
{ shape: 'star', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
216
|
+
{ shape: 'star', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
217
|
+
'violet',
|
|
210
218
|
[
|
|
211
219
|
{
|
|
212
220
|
name: 'Launch planning',
|
|
@@ -220,7 +228,8 @@ export const MARKETPLACE_ITEMS: MarketplaceItem[] = [
|
|
|
220
228
|
'Development',
|
|
221
229
|
'A fresh pair of eyes on your next change.',
|
|
222
230
|
'Talk through pasted code and review changes for clarity, edge cases, and maintainability. Get actionable feedback with enough context to understand the tradeoffs.',
|
|
223
|
-
{ shape: 'six_lobed_flower', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
231
|
+
{ shape: 'six_lobed_flower', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
232
|
+
'sky',
|
|
224
233
|
[
|
|
225
234
|
{
|
|
226
235
|
name: 'Code feedback',
|
|
@@ -234,7 +243,8 @@ export const MARKETPLACE_ITEMS: MarketplaceItem[] = [
|
|
|
234
243
|
'Design',
|
|
235
244
|
'Turn a rough idea into a thoughtful interface.',
|
|
236
245
|
'Explore layouts, refine visual hierarchy, and talk through the details that make an interface feel natural. Bring a brief or describe a screen to get practical design feedback.',
|
|
237
|
-
{ shape: 'heart', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
246
|
+
{ shape: 'heart', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
247
|
+
'pink',
|
|
238
248
|
[
|
|
239
249
|
{
|
|
240
250
|
name: 'Interface feedback',
|
|
@@ -248,7 +258,8 @@ export const MARKETPLACE_ITEMS: MarketplaceItem[] = [
|
|
|
248
258
|
'Research',
|
|
249
259
|
'Find the useful signals in your research.',
|
|
250
260
|
'Make sense of pasted articles, interview notes, and research findings. Compare perspectives, separate evidence from assumptions, and identify questions worth exploring next.',
|
|
251
|
-
{ shape: 'rounded_diamond', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
261
|
+
{ shape: 'rounded_diamond', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
262
|
+
'yellow',
|
|
252
263
|
[
|
|
253
264
|
{
|
|
254
265
|
name: 'Research synthesis',
|
|
@@ -262,7 +273,8 @@ export const MARKETPLACE_ITEMS: MarketplaceItem[] = [
|
|
|
262
273
|
'Analytics',
|
|
263
274
|
'Make the numbers easier to understand.',
|
|
264
275
|
'Walk through the data you share and turn patterns into clear explanations. Explore useful comparisons, question unexpected results, and choose how to present your findings.',
|
|
265
|
-
{ shape: 'shield', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
276
|
+
{ shape: 'shield', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
277
|
+
'sky',
|
|
266
278
|
[
|
|
267
279
|
{
|
|
268
280
|
name: 'Data interpretation',
|
|
@@ -276,7 +288,8 @@ export const MARKETPLACE_ITEMS: MarketplaceItem[] = [
|
|
|
276
288
|
'Support',
|
|
277
289
|
'A little clarity for every customer question.',
|
|
278
290
|
'Draft helpful replies from the customer questions and product context you provide. Break troubleshooting into simple steps and keep the tone warm, clear, and consistent.',
|
|
279
|
-
{ shape: 'cloud', eyes: 'oval', eyewear: 'none', accessory: 'none'
|
|
291
|
+
{ shape: 'cloud', eyes: 'oval', eyewear: 'none', accessory: 'none' },
|
|
292
|
+
'green',
|
|
280
293
|
[
|
|
281
294
|
{
|
|
282
295
|
name: 'Customer replies',
|
|
@@ -302,7 +315,12 @@ export function filterMarketplace(query: string, kind: 'all' | 'plugin' | 'bot'
|
|
|
302
315
|
}
|
|
303
316
|
export function addMarketplaceBot(workspace: Workspace, item: MarketplaceItem): Workspace {
|
|
304
317
|
const id = marketplaceAgentId(item.id);
|
|
305
|
-
if (
|
|
318
|
+
if (
|
|
319
|
+
item.kind !== 'bot' ||
|
|
320
|
+
!item.avatar ||
|
|
321
|
+
!item.color ||
|
|
322
|
+
workspace.agents.some((agent) => agent.id === id)
|
|
323
|
+
)
|
|
306
324
|
return workspace;
|
|
307
325
|
const agent = {
|
|
308
326
|
id,
|
|
@@ -310,6 +328,7 @@ export function addMarketplaceBot(workspace: Workspace, item: MarketplaceItem):
|
|
|
310
328
|
label: item.category,
|
|
311
329
|
description: item.description,
|
|
312
330
|
avatar: { ...item.avatar },
|
|
331
|
+
color: item.color,
|
|
313
332
|
};
|
|
314
333
|
const chat = conversationFor([agent], [id], `chat-${id}`);
|
|
315
334
|
return {
|