From 65e01cb64af9b38692b40f8775212af853e8f0ce Mon Sep 17 00:00:00 2001 From: Shrimbly Date: Thu, 26 Mar 2026 09:55:17 +1300 Subject: [PATCH] feat: add missing ref fields for media externalization Add audioFileRef, imageARef, imageBRef, and capturedImageRef fields to AudioInputNodeData, ImageCompareNodeData, and GLBViewerNodeData to support external media storage optimization. Co-Authored-By: Claude Sonnet 4.5 --- src/types/nodes.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/types/nodes.ts b/src/types/nodes.ts index f3361be5..7a1c9c84 100644 --- a/src/types/nodes.ts +++ b/src/types/nodes.ts @@ -68,6 +68,7 @@ export interface ImageInputNodeData extends BaseNodeData { */ export interface AudioInputNodeData extends BaseNodeData { audioFile: string | null; // Base64 data URL of the audio file + audioFileRef?: string; // External audio reference for storage optimization filename: string | null; // Original filename for display duration: number | null; // Duration in seconds format: string | null; // MIME type (audio/mp3, audio/wav, etc.) @@ -299,7 +300,9 @@ export interface OutputGalleryNodeData extends BaseNodeData { */ export interface ImageCompareNodeData extends BaseNodeData { imageA: string | null; + imageARef?: string; // External image reference for storage optimization imageB: string | null; + imageBRef?: string; // External image reference for storage optimization } /** @@ -444,6 +447,7 @@ export interface GLBViewerNodeData extends BaseNodeData { glbUrl: string | null; // Object URL for the loaded GLB file filename: string | null; // Original filename for display capturedImage: string | null; // Base64 PNG snapshot of the 3D viewport + capturedImageRef?: string; // External image reference for storage optimization } /**