@comfyorg/comfyui-frontend-types 1.25.2 → 1.25.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 +17 -6
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -321,13 +321,14 @@ export declare class ComfyApi extends EventTarget {
321
321
  /**
322
322
  * Queues a prompt to be executed
323
323
  * @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
324
+ * @param {object} data The prompt data to queue
325
+ * @param {QueuePromptOptions} options Optional execution options
325
326
  * @throws {PromptExecutionError} If the prompt fails to execute
326
327
  */
327
328
  queuePrompt(number: number, data: {
328
329
  output: ComfyApiWorkflow;
329
330
  workflow: ComfyWorkflowJSON;
330
- }): Promise<PromptResponse>;
331
+ }, options?: QueuePromptOptions): Promise<PromptResponse>;
331
332
  /**
332
333
  * Gets a list of model folder keys (eg ['checkpoints', 'loras', ...])
333
334
  * @returns The list of model folder keys
@@ -612,13 +613,11 @@ export declare class ComfyApp {
612
613
  showMissingModelsDialog?: boolean | undefined;
613
614
  checkForRerouteMigration?: boolean | undefined;
614
615
  }): Promise<void>;
615
- graphToPrompt(graph?: LGraph, options?: {
616
- queueNodeIds?: NodeId[];
617
- }): Promise<{
616
+ graphToPrompt(graph?: LGraph): Promise<{
618
617
  workflow: ComfyWorkflowJSON;
619
618
  output: ComfyApiWorkflow;
620
619
  }>;
621
- queuePrompt(number: number, batchCount?: number, queueNodeIds?: NodeId[]): Promise<boolean>;
620
+ queuePrompt(number: number, batchCount?: number, queueNodeIds?: NodeExecutionId[]): Promise<boolean>;
622
621
  showErrorOnFileLoad(file: File): void;
623
622
  /**
624
623
  * Loads workflow data from the specified file
@@ -1206,6 +1205,18 @@ export declare class ComfyApp {
1206
1205
 
1207
1206
  export { PromptResponse }
1208
1207
 
1208
+ /**
1209
+ * Options for queuePrompt method
1210
+ */
1211
+ declare interface QueuePromptOptions {
1212
+ /**
1213
+ * Optional list of node execution IDs to execute (partial execution).
1214
+ * Each ID represents a node's position in nested subgraphs.
1215
+ * Format: Colon-separated path of node IDs (e.g., "123:456:789")
1216
+ */
1217
+ partialExecutionTargets?: NodeExecutionId[];
1218
+ }
1219
+
1209
1220
  declare type SettingCustomRenderer = (name: string, setter: (v: any) => void, value: any, attrs: any) => HTMLElement;
1210
1221
 
1211
1222
  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.25.2",
3
+ "version": "1.25.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.19"
16
+ "@comfyorg/litegraph": "^0.16.20"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": "^3.5.13",