@comfyorg/comfyui-frontend-types 1.24.2 → 1.24.3

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 +18 -9
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -315,19 +315,18 @@ export declare class ComfyApi extends EventTarget {
315
315
  * Loads node object definitions for the graph
316
316
  * @returns The node definitions
317
317
  */
318
- getNodeDefs({ validate }?: {
319
- validate?: boolean;
320
- }): Promise<Record<string, ComfyNodeDef>>;
318
+ getNodeDefs(): Promise<Record<string, ComfyNodeDef>>;
321
319
  /**
322
320
  * Queues a prompt to be executed
323
321
  * @param {number} number The index at which to queue the prompt, passing -1 will insert the prompt at the front of the queue
324
- * @param {object} prompt The prompt data to queue
322
+ * @param {object} data The prompt data to queue
323
+ * @param {QueuePromptOptions} options Optional execution options
325
324
  * @throws {PromptExecutionError} If the prompt fails to execute
326
325
  */
327
326
  queuePrompt(number: number, data: {
328
327
  output: ComfyApiWorkflow;
329
328
  workflow: ComfyWorkflowJSON;
330
- }): Promise<PromptResponse>;
329
+ }, options?: QueuePromptOptions): Promise<PromptResponse>;
331
330
  /**
332
331
  * Gets a list of model folder keys (eg ['checkpoints', 'loras', ...])
333
332
  * @returns The list of model folder keys
@@ -612,13 +611,11 @@ export declare class ComfyApp {
612
611
  showMissingModelsDialog?: boolean | undefined;
613
612
  checkForRerouteMigration?: boolean | undefined;
614
613
  }): Promise<void>;
615
- graphToPrompt(graph?: LGraph, options?: {
616
- queueNodeIds?: NodeId[];
617
- }): Promise<{
614
+ graphToPrompt(graph?: LGraph): Promise<{
618
615
  workflow: ComfyWorkflowJSON;
619
616
  output: ComfyApiWorkflow;
620
617
  }>;
621
- queuePrompt(number: number, batchCount?: number, queueNodeIds?: NodeId[]): Promise<boolean>;
618
+ queuePrompt(number: number, batchCount?: number, queueNodeIds?: NodeExecutionId[]): Promise<boolean>;
622
619
  showErrorOnFileLoad(file: File): void;
623
620
  /**
624
621
  * Loads workflow data from the specified file
@@ -1204,6 +1201,18 @@ export declare class ComfyApp {
1204
1201
 
1205
1202
  export { PromptResponse }
1206
1203
 
1204
+ /**
1205
+ * Options for queuePrompt method
1206
+ */
1207
+ declare interface QueuePromptOptions {
1208
+ /**
1209
+ * Optional list of node execution IDs to execute (partial execution).
1210
+ * Each ID represents a node's position in nested subgraphs.
1211
+ * Format: Colon-separated path of node IDs (e.g., "123:456:789")
1212
+ */
1213
+ partialExecutionTargets?: NodeExecutionId[];
1214
+ }
1215
+
1207
1216
  declare type SettingCustomRenderer = (name: string, setter: (v: any) => void, value: any, attrs: any) => HTMLElement;
1208
1217
 
1209
1218
  declare type SettingInputType = 'boolean' | 'number' | 'slider' | 'knob' | 'combo' | 'text' | 'image' | 'color' | 'url' | 'hidden' | 'backgroundImage';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.24.2",
3
+ "version": "1.24.3",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"
@@ -13,7 +13,7 @@
13
13
  "description": "TypeScript definitions for @comfyorg/comfyui-frontend",
14
14
  "license": "GPL-3.0-only",
15
15
  "dependencies": {
16
- "@comfyorg/litegraph": "^0.16.16"
16
+ "@comfyorg/litegraph": "^0.17.1"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": "^3.5.13",