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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user