@comfyorg/comfyui-frontend-types 1.43.15 → 1.43.17
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.
- package/index.d.ts +39 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ComfyWorkflowJSON as ComfyWorkflowJSON_2 } from '../../validation/schem
|
|
|
4
4
|
import { Component } from 'vue';
|
|
5
5
|
import { CurveData } from '../../../../components/curve/types';
|
|
6
6
|
import { IFuseOptions } from 'fuse.js';
|
|
7
|
+
import { ModelFile as ModelFile_2 } from '../workflow/validation/schemas/workflowSchema';
|
|
7
8
|
import { NodeId as NodeId_2 } from '../platform/workflow/validation/schemas/workflowSchema';
|
|
8
9
|
import { NodeId as NodeId_3 } from '../workflow/validation/schemas/workflowSchema';
|
|
9
10
|
import { objectOutputType } from 'zod';
|
|
@@ -1372,13 +1373,16 @@ export declare class ComfyApp {
|
|
|
1372
1373
|
}): void;
|
|
1373
1374
|
private showMissingNodesError;
|
|
1374
1375
|
loadGraphData(graphData?: ComfyWorkflowJSON, clean?: boolean, restore_view?: boolean, workflow?: string | null | ComfyWorkflow, options?: {
|
|
1375
|
-
showMissingNodes?: boolean;
|
|
1376
|
-
showMissingModels?: boolean;
|
|
1377
1376
|
checkForRerouteMigration?: boolean;
|
|
1378
1377
|
openSource?: WorkflowOpenSource;
|
|
1379
1378
|
deferWarnings?: boolean;
|
|
1379
|
+
skipAssetScans?: boolean;
|
|
1380
|
+
silentAssetErrors?: boolean;
|
|
1380
1381
|
}): Promise<void>;
|
|
1381
|
-
|
|
1382
|
+
refreshMissingModels(options?: {
|
|
1383
|
+
silent?: boolean;
|
|
1384
|
+
}): Promise<MissingModelPipelineResult>;
|
|
1385
|
+
private cacheMediaCandidates;
|
|
1382
1386
|
private runMissingMediaPipeline;
|
|
1383
1387
|
graphToPrompt(graph?: LGraph): Promise<{
|
|
1384
1388
|
workflow: ComfyWorkflowJSON;
|
|
@@ -1426,6 +1430,10 @@ export declare class ComfyApp {
|
|
|
1426
1430
|
* @returns Array of context menu items from all extensions
|
|
1427
1431
|
*/
|
|
1428
1432
|
collectNodeMenuItems(node: LGraphNode): IContextMenuValue[];
|
|
1433
|
+
/**
|
|
1434
|
+
* Reload node definitions and refresh combo lists on all nodes.
|
|
1435
|
+
*/
|
|
1436
|
+
reloadNodeDefs(): Promise<void>;
|
|
1429
1437
|
/**
|
|
1430
1438
|
* Refresh combo list on whole nodes
|
|
1431
1439
|
*/
|
|
@@ -4808,6 +4816,7 @@ export declare class ComfyApp {
|
|
|
4808
4816
|
private _visibleReroutes;
|
|
4809
4817
|
private _autoPan;
|
|
4810
4818
|
private _ghostPointerHandler;
|
|
4819
|
+
private _ghostKeyHandler;
|
|
4811
4820
|
dirty_canvas: boolean;
|
|
4812
4821
|
dirty_bgcanvas: boolean;
|
|
4813
4822
|
/** A map of nodes that require selective-redraw */
|
|
@@ -7534,6 +7543,8 @@ export declare class ComfyApp {
|
|
|
7534
7543
|
onClick(_options: WidgetEventOptions): void;
|
|
7535
7544
|
}
|
|
7536
7545
|
|
|
7546
|
+
declare type MediaType = 'image' | 'video' | 'audio';
|
|
7547
|
+
|
|
7537
7548
|
declare type MenuCommandGroup = {
|
|
7538
7549
|
/**
|
|
7539
7550
|
* The path to the menu group.
|
|
@@ -7549,6 +7560,25 @@ export declare class ComfyApp {
|
|
|
7549
7560
|
/** The names of all (optional) methods and functions in T */
|
|
7550
7561
|
declare type MethodNames<T> = KeysOfType<T, ((...args: unknown[]) => unknown) | undefined>;
|
|
7551
7562
|
|
|
7563
|
+
/**
|
|
7564
|
+
* A single (node, widget, media file) binding detected by the missing media pipeline.
|
|
7565
|
+
* The same file name may appear multiple times across different nodes.
|
|
7566
|
+
*/
|
|
7567
|
+
declare interface MissingMediaCandidate {
|
|
7568
|
+
nodeId: NodeId_3;
|
|
7569
|
+
nodeType: string;
|
|
7570
|
+
widgetName: string;
|
|
7571
|
+
mediaType: MediaType;
|
|
7572
|
+
/** Display name (plain filename for OSS, asset hash for cloud). */
|
|
7573
|
+
name: string;
|
|
7574
|
+
/**
|
|
7575
|
+
* - `true` — confirmed missing
|
|
7576
|
+
* - `false` — confirmed present
|
|
7577
|
+
* - `undefined` — pending async verification (cloud only)
|
|
7578
|
+
*/
|
|
7579
|
+
isMissing: boolean | undefined;
|
|
7580
|
+
}
|
|
7581
|
+
|
|
7552
7582
|
/**
|
|
7553
7583
|
* A single (node, widget, model) binding detected by the missing model pipeline.
|
|
7554
7584
|
* The same model name may appear multiple times across different nodes.
|
|
@@ -7572,6 +7602,11 @@ export declare class ComfyApp {
|
|
|
7572
7602
|
isMissing: boolean | undefined;
|
|
7573
7603
|
}
|
|
7574
7604
|
|
|
7605
|
+
declare interface MissingModelPipelineResult {
|
|
7606
|
+
missingModels: ModelFile_2[];
|
|
7607
|
+
confirmedCandidates: MissingModelCandidate[];
|
|
7608
|
+
}
|
|
7609
|
+
|
|
7575
7610
|
declare type MissingNodeType = string | {
|
|
7576
7611
|
type: string;
|
|
7577
7612
|
nodeId?: string | number;
|
|
@@ -7936,6 +7971,7 @@ export declare class ComfyApp {
|
|
|
7936
7971
|
declare interface PendingWarnings {
|
|
7937
7972
|
missingNodeTypes?: MissingNodeType[];
|
|
7938
7973
|
missingModelCandidates?: MissingModelCandidate[];
|
|
7974
|
+
missingMediaCandidates?: MissingMediaCandidate[];
|
|
7939
7975
|
}
|
|
7940
7976
|
|
|
7941
7977
|
/**
|