feat(agent): consolidate media tools into read_asset and add S3 key support to download_asset (#376)

* feat(agent): consolidate media tools into read_asset and add S3 key support to download_asset

* fix(agent): refine parameter descriptions and remove download URL from read_asset text content

* fix(agent): resolve owning asset and enforce RBAC permissions when downloading by S3 key
This commit is contained in:
Yiling-J
2026-09-02 21:51:07 +08:00
committed by GitHub
parent 35b57cc0ab
commit e58dfaa71a
38 changed files with 1732 additions and 1851 deletions
@@ -3,7 +3,7 @@ import type { ShumaiMessageContext } from '@shumai/dtos'
export async function resolveAnnotationsById(
assetId: string,
annotationId?: string,
annotationId?: string | null,
): Promise<{ annotations: PrismaJson.AnnotationList | null; timestamp: number | null }> {
if (!annotationId) {
return { annotations: null, timestamp: null }