feat(agent): replace isAi with sessionId & implement admin logs UI

This commit is contained in:
yiling
2026-05-21 14:58:31 +08:00
parent 2a4594d986
commit 161ba3a466
24 changed files with 781 additions and 91 deletions
+7
View File
@@ -98,3 +98,10 @@ export interface DeleteAgentParams {
export interface ListAgentsParams {
teamId: string
}
export const agentSessionEntrySchema = z.object({
id: z.string(),
sessionId: z.string(),
entry: z.unknown(),
})
export type AgentSessionEntryInfo = z.infer<typeof agentSessionEntrySchema>
+2 -2
View File
@@ -173,7 +173,7 @@ export type CommentInfo = {
mentions: UserInfo[]
createdAt: string
updatedAt: string
isAi: boolean
sessionId: string | null
}
export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
@@ -188,7 +188,7 @@ export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
mentions: z.array(userInfoSchema),
createdAt: z.string(),
updatedAt: z.string(),
isAi: z.boolean(),
sessionId: z.string().nullable(),
})
export const reparentAssetsRequestSchema = z.object({