@comfyorg/comfyui-frontend-types 1.32.1 → 1.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +12 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1246,7 +1246,7 @@ export declare class ComfyApp {
1246
1246
 
1247
1247
  declare interface ComfyCommand {
1248
1248
  id: string;
1249
- function: () => void | Promise<void>;
1249
+ function: (metadata?: Record<string, unknown>) => void | Promise<void>;
1250
1250
  label?: string | (() => string);
1251
1251
  icon?: string | (() => string);
1252
1252
  tooltip?: string | (() => string);
@@ -1582,7 +1582,10 @@ export declare class ComfyApp {
1582
1582
 
1583
1583
  export declare interface CommandManager {
1584
1584
  commands: ComfyCommand[];
1585
- execute(command: string, errorHandler?: (error: any) => void): void;
1585
+ execute(command: string, options?: {
1586
+ errorHandler?: (error: unknown) => void;
1587
+ metadata?: Record<string, unknown>;
1588
+ }): void;
1586
1589
  }
1587
1590
 
1588
1591
  /** Resize handle positions (compass points) */
@@ -3026,6 +3029,8 @@ export declare class ComfyApp {
3026
3029
  /** If `true`, the widget will not be rendered by the Vue renderer. */
3027
3030
  canvasOnly?: boolean;
3028
3031
  values?: TValues;
3032
+ /** Optional function to format values for display (e.g., hash → human-readable name) */
3033
+ getOptionLabel?: (value?: string | null) => string;
3029
3034
  callback?: IWidget['callback'];
3030
3035
  }
3031
3036
 
@@ -3894,7 +3899,7 @@ export declare class ComfyApp {
3894
3899
  * @param e MouseEvent that is triggering this
3895
3900
  */
3896
3901
  updateMouseOverNodes(node: LGraphNode | null, e: CanvasPointerEvent): void;
3897
- processMouseDown(e: PointerEvent): void;
3902
+ processMouseDown(e: MouseEvent): void;
3898
3903
  processWidgetClick(e: CanvasPointerEvent, node: LGraphNode, widget: IBaseWidget, pointer?: CanvasPointer): void;
3899
3904
  /**
3900
3905
  * Called when a mouse move event has to be processed
@@ -7559,6 +7564,10 @@ export declare class ComfyApp {
7559
7564
  */
7560
7565
  vram?: number;
7561
7566
  size?: number;
7567
+ /**
7568
+ * Whether this template uses open source models. When false, indicates partner/API node templates.
7569
+ */
7570
+ openSource?: boolean;
7562
7571
  }
7563
7572
 
7564
7573
  export { TerminalSize }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.32.1",
3
+ "version": "1.32.2",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"