feat: chat uploads, vision turn isolation, and MindSpace agent improvements

Add chat file/image upload UX, attachment proxying, vision thumbnails, and per-turn image scoping so agents only use the current upload. Extend MindSpace asset context, billing token state, OA/scenario verify scripts, and related runtime config.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-07-11 00:23:01 +08:00
parent e3063ea806
commit 32fb2cdeaf
51 changed files with 4588 additions and 186 deletions
+13
View File
@@ -22,6 +22,13 @@ export type MessageContent =
};
};
export type ChatFileAttachment = {
assetId: string;
downloadUrl: string;
filename: string;
mimeType: string;
};
export type Message = {
id?: string | null;
role: Role;
@@ -33,6 +40,9 @@ export type Message = {
displayText?: string;
imageUrls?: string[];
previewImageUrls?: string[];
archivedImageUrls?: string[];
archivedPreviewImageUrls?: string[];
fileAttachments?: ChatFileAttachment[];
};
};
@@ -424,6 +434,7 @@ export type MindSpaceAsset = {
hasThumbnail?: boolean;
publicUrl?: string | null;
sourcePageId?: string | null;
workspaceRelativePath?: string | null;
createdAt: number;
updatedAt: number;
};
@@ -796,6 +807,8 @@ export type MindSpacePage = {
visibility: 'private' | 'internal' | 'public';
publicationAccessMode?: 'public' | 'password' | 'private_link' | 'time_limited' | 'login_required' | 'owner_only' | null;
publicationUrl?: string | null;
workspaceRelativePath?: string | null;
workspacePublicUrl?: string | null;
currentVersionId: string;
versionNo: number;
content?: string;