n8n-nodes-comfyui-all 2.3.15 → 2.4.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.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * ComfyUI Tool - AI Agent-friendly image generation node
2
+ * ComfyUI Tool - Simplified workflow execution node for AI Agents
3
3
  *
4
- * This node is designed to be used as an AI Agent tool with minimal configuration.
5
- * It accepts a simple text query and automatically generates images using ComfyUI.
6
- * Supports both Text-to-Image and Image-to-Image workflows.
4
+ * This is a simplified node designed for AI Agent usage. It executes
5
+ * ComfyUI workflows provided by the user without making assumptions
6
+ * about workflow structure or node types.
7
7
  */
8
- import { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData } from 'n8n-workflow';
8
+ import { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
9
9
  export declare class ComfyUiTool {
10
10
  /**
11
11
  * Node description for n8n
@@ -28,28 +28,13 @@ export declare class ComfyUiTool {
28
28
  subtitle: string;
29
29
  notes: string[];
30
30
  inputSample: {
31
- query: string;
32
- parameters: {
33
- seed: number;
34
- steps: number;
35
- width: number;
36
- height: number;
37
- };
31
+ workflowJson: string;
38
32
  };
39
33
  outputSample: {
40
34
  json: {
41
35
  success: boolean;
42
36
  imageCount: number;
43
37
  imageUrls: string[];
44
- prompt: string;
45
- mode: string;
46
- parameters: {
47
- width: number;
48
- height: number;
49
- steps: number;
50
- cfg: number;
51
- seed: number;
52
- };
53
38
  };
54
39
  };
55
40
  properties: ({
@@ -59,71 +44,95 @@ export declare class ComfyUiTool {
59
44
  required: boolean;
60
45
  default: string;
61
46
  description: string;
62
- minValue?: undefined;
63
- maxValue?: undefined;
64
- typeOptions?: undefined;
65
- placeholder?: undefined;
66
- displayOptions?: undefined;
67
- } | {
68
- displayName: string;
69
- name: string;
70
- type: string;
71
- default: number;
72
- description: string;
73
- minValue: number;
74
- maxValue: number;
75
- required?: undefined;
76
47
  typeOptions?: undefined;
77
48
  placeholder?: undefined;
78
- displayOptions?: undefined;
49
+ hint?: undefined;
50
+ minValue?: undefined;
51
+ maxValue?: undefined;
52
+ options?: undefined;
79
53
  } | {
80
54
  displayName: string;
81
55
  name: string;
82
56
  type: string;
83
- required: boolean;
84
57
  typeOptions: {
85
58
  rows: number;
86
- loadOptionsMethod?: undefined;
87
59
  };
60
+ required: boolean;
88
61
  default: string;
89
62
  description: string;
90
63
  placeholder: string;
64
+ hint: string;
91
65
  minValue?: undefined;
92
66
  maxValue?: undefined;
93
- displayOptions?: undefined;
67
+ options?: undefined;
94
68
  } | {
95
69
  displayName: string;
96
70
  name: string;
97
71
  type: string;
72
+ default: number;
98
73
  description: string;
99
- typeOptions: {
100
- loadOptionsMethod: string;
101
- rows?: undefined;
102
- };
103
- placeholder: string;
74
+ minValue: number;
75
+ maxValue: number;
76
+ required?: undefined;
77
+ typeOptions?: undefined;
78
+ placeholder?: undefined;
79
+ hint?: undefined;
80
+ options?: undefined;
81
+ } | {
82
+ displayName: string;
83
+ name: string;
84
+ type: string;
104
85
  default: string;
86
+ description: string;
87
+ placeholder: string;
105
88
  required?: undefined;
89
+ typeOptions?: undefined;
90
+ hint?: undefined;
106
91
  minValue?: undefined;
107
92
  maxValue?: undefined;
108
- displayOptions?: undefined;
93
+ options?: undefined;
109
94
  } | {
110
95
  displayName: string;
111
96
  name: string;
112
97
  type: string;
113
- description: string;
114
- typeOptions: {
115
- loadOptionsMethod: string;
116
- rows?: undefined;
117
- };
118
98
  placeholder: string;
119
- default: never[];
120
- displayOptions: {
121
- show: {
122
- nodeId: (string | null | undefined)[];
123
- mode: string;
124
- };
125
- };
99
+ default: {};
100
+ description: string;
101
+ options: {
102
+ displayName: string;
103
+ name: string;
104
+ type: string;
105
+ placeholder: string;
106
+ default: {};
107
+ options: ({
108
+ displayName: string;
109
+ name: string;
110
+ type: string;
111
+ default: string;
112
+ description: string;
113
+ placeholder: string;
114
+ required?: undefined;
115
+ } | {
116
+ displayName: string;
117
+ name: string;
118
+ type: string;
119
+ required: boolean;
120
+ default: string;
121
+ description: string;
122
+ placeholder: string;
123
+ } | {
124
+ displayName: string;
125
+ name: string;
126
+ type: string;
127
+ default: string;
128
+ description: string;
129
+ placeholder?: undefined;
130
+ required?: undefined;
131
+ })[];
132
+ }[];
126
133
  required?: undefined;
134
+ typeOptions?: undefined;
135
+ hint?: undefined;
127
136
  minValue?: undefined;
128
137
  maxValue?: undefined;
129
138
  })[];
@@ -132,28 +141,5 @@ export declare class ComfyUiTool {
132
141
  * Execute function - called when the node runs
133
142
  */
134
143
  execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
135
- /**
136
- * Load options methods for dynamic parameter selection
137
- */
138
- methods: {
139
- loadOptions: {
140
- /**
141
- * Load all nodes from workflow JSON for Node ID dropdown
142
- */
143
- getWorkflowNodes(this: ILoadOptionsFunctions): Promise<{
144
- name: string;
145
- value: string;
146
- description?: string;
147
- }[]>;
148
- /**
149
- * Load parameters for a specific node for Allowed Parameters multi-select
150
- */
151
- getNodeParameters(this: ILoadOptionsFunctions): Promise<{
152
- name: string;
153
- value: string;
154
- description?: string;
155
- }[]>;
156
- };
157
- };
158
144
  }
159
145
  //# sourceMappingURL=ComfyUiTool.node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComfyUiTool.node.d.ts","sourceRoot":"","sources":["../../../nodes/ComfyUiTool/ComfyUiTool.node.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAEnB,MAAM,cAAc,CAAC;AAiBtB,qBAAa,WAAW;IACtB;;OAEG;IACH,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8GT;IAEF;;OAEG;IACG,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC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