Add MindSpace page live edit, chat skills, and H5 deploy tooling.
Introduce page edit sessions with draft preview and patch API, chat skill picker, user memory profile, h5ApiBase resolution, voice WAV transport, and scripts for 105/g2 deployment and Plaza local dev. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -52,6 +52,14 @@ export function isWorkAsset(asset: MindSpaceAsset) {
|
||||
return asset.assetType === 'html' || asset.mimeType === 'text/html';
|
||||
}
|
||||
|
||||
export function isImageAsset(asset: MindSpaceAsset) {
|
||||
return asset.assetType === 'image' || asset.mimeType.startsWith('image/');
|
||||
}
|
||||
|
||||
export function buildAssetImageUrl(asset: Pick<MindSpaceAsset, 'id' | 'updatedAt'>) {
|
||||
return `/api/mindspace/v1/assets/${asset.id}/download?inline=1&v=${asset.updatedAt}`;
|
||||
}
|
||||
|
||||
/** Chrome blocks PDF rendering inside any sandboxed iframe. */
|
||||
export function assetPreviewUsesSandbox(mimeType: string) {
|
||||
return mimeType !== 'application/pdf';
|
||||
|
||||
Reference in New Issue
Block a user