feat: add secure remote channel media

This commit is contained in:
lofyer
2026-08-09 20:33:35 +08:00
parent 6c891f3522
commit 66b098ae36
46 changed files with 4403 additions and 1594 deletions
+5 -1
View File
@@ -389,6 +389,7 @@ export class ChannelService {
status: string
output?: string
error?: string
attachments?: ChannelResultMessage['attachments']
}
): ChannelResultMessage {
return channelResultMessageSchema.parse({
@@ -409,7 +410,10 @@ export class ChannelService {
redactChannelError(result.error),
CHANNEL_LIMITS.maximumErrorLength
)
})
}),
...(result.attachments?.length
? { attachments: result.attachments }
: {})
})
}