feat(agent): store preset avatars as real files in s3 storage (#381)

* feat(agent): store preset avatars as real files in s3 storage

* fix(agent): use inline base64 previews in dialog and remove static avatar files

* feat(agent): add 4 avatar presets and track avatarPreset in agent config

* refactor(agent): consolidate preset avatar base64 data in dtos
This commit is contained in:
Yiling-J
2026-09-04 16:39:19 +08:00
committed by GitHub
parent dd0ea05a88
commit 1e60933cdb
15 changed files with 545 additions and 42 deletions
File diff suppressed because one or more lines are too long
+3
View File
@@ -1,6 +1,8 @@
import { z } from 'zod'
import { AgentType } from '@shumai/db/enums'
export * from './agent-avatar'
export { AgentType }
export const agentTypeSchema = z.nativeEnum(AgentType)
@@ -29,6 +31,7 @@ export const agentInfoSchema = z.object({
enabled: z.boolean(),
permission: agentPermissionSchema.optional().default('reviewer'),
avatar: z.string().optional(),
avatarPreset: z.string().optional(),
providerId: z.string().optional(),
modelId: z.string().optional(),
thinkingLevel: thinkingLevelSchema.optional().default('off'),
+1
View File
@@ -1,4 +1,5 @@
export * from './agent'
export * from './agent-avatar'
export * from './ai'
export * from './asset'
export * from './auth'