@nodetool-ai/integration-nodes 0.8.10 → 0.8.16

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 (50) hide show
  1. package/README.md +53 -9
  2. package/dist/.nodetool-build-stamp +1 -1
  3. package/dist/index.d.ts +5 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +11 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/nodes/comfy-graph-cloud.d.ts +113 -0
  8. package/dist/nodes/comfy-graph-cloud.d.ts.map +1 -0
  9. package/dist/nodes/comfy-graph-cloud.js +578 -0
  10. package/dist/nodes/comfy-graph-cloud.js.map +1 -0
  11. package/dist/nodes/comfy-sdk.d.ts +30 -1
  12. package/dist/nodes/comfy-sdk.d.ts.map +1 -1
  13. package/dist/nodes/comfy-sdk.js +143 -32
  14. package/dist/nodes/comfy-sdk.js.map +1 -1
  15. package/dist/nodes/comfy-server-status.d.ts +31 -0
  16. package/dist/nodes/comfy-server-status.d.ts.map +1 -0
  17. package/dist/nodes/comfy-server-status.js +65 -0
  18. package/dist/nodes/comfy-server-status.js.map +1 -0
  19. package/dist/nodes/comfy-server-transport.d.ts +32 -0
  20. package/dist/nodes/comfy-server-transport.d.ts.map +1 -0
  21. package/dist/nodes/comfy-server-transport.js +177 -0
  22. package/dist/nodes/comfy-server-transport.js.map +1 -0
  23. package/dist/nodes/comfy-target.d.ts +26 -0
  24. package/dist/nodes/comfy-target.d.ts.map +1 -0
  25. package/dist/nodes/comfy-target.js +61 -0
  26. package/dist/nodes/comfy-target.js.map +1 -0
  27. package/dist/nodes/comfy-worker-transport.d.ts +16 -0
  28. package/dist/nodes/comfy-worker-transport.d.ts.map +1 -0
  29. package/dist/nodes/comfy-worker-transport.js +153 -0
  30. package/dist/nodes/comfy-worker-transport.js.map +1 -0
  31. package/dist/nodes/comfy.d.ts +3 -8
  32. package/dist/nodes/comfy.d.ts.map +1 -1
  33. package/dist/nodes/comfy.js +5 -72
  34. package/dist/nodes/comfy.js.map +1 -1
  35. package/dist/nodes/kie-dynamic.d.ts.map +1 -1
  36. package/dist/nodes/kie-dynamic.js +13 -10
  37. package/dist/nodes/kie-dynamic.js.map +1 -1
  38. package/dist/nodes/lib-mail.d.ts +202 -0
  39. package/dist/nodes/lib-mail.d.ts.map +1 -0
  40. package/dist/nodes/lib-mail.js +889 -0
  41. package/dist/nodes/lib-mail.js.map +1 -0
  42. package/dist/nodes/mcp-tool.d.ts +64 -0
  43. package/dist/nodes/mcp-tool.d.ts.map +1 -0
  44. package/dist/nodes/mcp-tool.js +159 -0
  45. package/dist/nodes/mcp-tool.js.map +1 -0
  46. package/dist/nodes/wan2gp.d.ts +141 -0
  47. package/dist/nodes/wan2gp.d.ts.map +1 -0
  48. package/dist/nodes/wan2gp.js +505 -0
  49. package/dist/nodes/wan2gp.js.map +1 -0
  50. package/package.json +10 -6
package/README.md CHANGED
@@ -3,7 +3,8 @@
3
3
  External-API integration nodes for [NodeTool](https://nodetool.ai).
4
4
 
5
5
  Connect visual AI workflows to the outside world: email, Discord and Telegram
6
- triggers, ComfyUI workflows, and stable-diffusion.cpp image generation.
6
+ triggers, ComfyUI workflows, stable-diffusion.cpp image generation, and a
7
+ Wan2GP server you run.
7
8
 
8
9
  Services that are one authenticated HTTP call — S3, Supabase, Notion, Twilio,
9
10
  Discord and Telegram sends — no longer ship as nodes. They are written as
@@ -27,7 +28,32 @@ npm install @nodetool-ai/integration-nodes
27
28
  **Messaging** (`messaging.*`) — Discord and Telegram bot triggers:
28
29
  `discord.DiscordBotTrigger`, `telegram.TelegramBotTrigger`. A trigger holds a
29
30
  long-lived connection, which is what a script cannot do; sending a message is a
30
- `fetch` call and is one.
31
+ `fetch` call and is one. These two listen only while a workflow containing them
32
+ runs. They are not in `TRIGGER_KIND_BY_NODE_TYPE`, so they cannot be armed to
33
+ run in the background.
34
+
35
+ **Mail** (`lib.mail.*`) — Gmail with a Google app password, for installs that
36
+ have no Google sign-in: `GmailSearch`, `AddLabel`, `MoveToArchive`, `SendEmail`
37
+ and `EmailTrigger`. The host is `imap.gmail.com` for reading and
38
+ `smtp.gmail.com` for sending. Another provider needs host settings and an
39
+ egress review first, see [URL Egress Inventory](../../docs/url-egress-inventory.md).
40
+ IMAP is a long-lived socket protocol, which `fetch` cannot speak, so these stay
41
+ nodes. `GmailSearch` returns the newest matches first, with the body decoded to
42
+ text. `AddLabel` and `MoveToArchive` find a message by its `Message-ID` header
43
+ and act on it by UID. Sent, Drafts, Spam, Trash and All Mail are found by their
44
+ IMAP role, so they work when Gmail names them in another language or under
45
+ `[Google Mail]`. `SendEmail` sends through `nodemailer`. It accepts plain
46
+ addresses only, refuses a line break in a subject or address so a value from an
47
+ upstream node cannot add headers, and sends no attachments. `EmailTrigger`
48
+ starts a run for each new message. It compiles to a `schedule` registration,
49
+ and the server calls its `pollTrigger` when the schedule is due. The cursor is
50
+ the highest UID seen plus the folder's UIDVALIDITY, stored on the registration,
51
+ so a restart neither re-runs old mail nor skips new mail. The first check only
52
+ records a baseline. The design is in
53
+ [`websocket/src/triggers/poll.ts`](../websocket/src/triggers/poll.ts) and the
54
+ user-facing behavior is in [Triggers](../../docs/triggers.md#email-trigger). A
55
+ workflow that runs under a Google sign-in can use the `gmail_*` capabilities
56
+ from a Code node instead, with no app password.
31
57
 
32
58
  **ComfyUI** (`lib.comfy.*`) — `RunWorkflow` runs an API-format ComfyUI workflow
33
59
  against any reachable ComfyUI server, streaming each output file as its save node
@@ -39,6 +65,12 @@ the direct node does. All three derive typed inputs from `Load*` nodes and typed
39
65
  outputs from `Save*` nodes, keyed `<comfyNodeId>:<field>`. See
40
66
  [docs/comfyui.md](https://docs.nodetool.ai/comfyui).
41
67
 
68
+ **MCP** (`lib.mcp.*`) — `CallMcpTool` calls one tool on one of the user's
69
+ external MCP servers. The node reads the run owner's servers through the access
70
+ a host installs with `setExternalMcpResolver` from `@nodetool-ai/runtime`. This
71
+ package imports no MCP client, so a host without one reports that the servers
72
+ are unavailable. See [Use external servers in a workflow](../../docs/mcp-server.md#use-external-servers-in-a-workflow).
73
+
42
74
  **Other** — `kie.dynamic_schema.KieAI`.
43
75
 
44
76
  ## stable-diffusion.cpp
@@ -77,19 +109,31 @@ which continues on the server. The node reports a cancellation failure in that
77
109
  case. Redirects are rejected. Local and LAN servers are supported on local
78
110
  installs. The cloud profile excludes this node by default.
79
111
 
80
- Mail is not a node package any more. `lib.mail.GmailSearch`, `AddLabel` and
81
- `MoveToArchive` were removed: the same three operations ship as the
82
- `search_email` / `add_label_to_email` / `archive_email` capabilities, and Gmail
83
- reaches a Code node through `@nodetool-ai/sandbox-nodetool/google` with the
84
- OAuth token held host-side. `lib.secret.GetSecret` went too — `getSecret(name)`
85
- in the sandbox does the same read, bound by the run's declared secret scope.
112
+ ## Wan2GP
113
+
114
+ `lib.wan2gp.TextToVideo`, `ImageToVideo`, `Generate` and `ListModels` call a
115
+ [Wan2GP](https://github.com/deepbeepmeep/Wan2GP) server over MCP through
116
+ `withWan2GPClient` in `@nodetool-ai/runtime`, which the `wangp` provider also
117
+ uses. The server is the node's `server_url`, then the `WAN2GP_MCP_URL`
118
+ setting, then the Wan2GP the Package Manager installed (started on demand),
119
+ then `http://127.0.0.1:7866/mcp`. The
120
+ `WAN2GP_MCP_TOKEN` secret, when set, is sent as a bearer token. A timeout or a
121
+ cancelled run cancels the remote job. The cloud profile excludes these nodes.
122
+ See [Wan2GP](../../docs/wan2gp.md).
123
+
124
+ Gmail also reaches agents through the Google Workspace `gmail_*` capabilities,
125
+ and a Code node through `@nodetool-ai/sandbox-nodetool/google`, with the OAuth
126
+ token held host-side. That path needs a Google sign-in, which a local install
127
+ does not have, so the `lib.mail.*` nodes above remain for it. `lib.secret.GetSecret`
128
+ is gone — `getSecret(name)` in the sandbox does the same read, bound by the
129
+ run's declared secret scope.
86
130
 
87
131
  ## Configuration
88
132
 
89
133
  Set the keys for the services you use in NodeTool's secret store (Settings → API
90
134
  Keys) or as environment variables:
91
135
 
92
- - Mail: `GOOGLE_APP_PASSWORD`
136
+ - Mail: `GOOGLE_MAIL_USER` and `GOOGLE_APP_PASSWORD`
93
137
  - KIE: `KIE_API_KEY`
94
138
  - Discord: `DISCORD_BOT_TOKEN`
95
139
  - Telegram: `TELEGRAM_BOT_TOKEN`
@@ -1 +1 @@
1
- 2026-11-01T20:33:56.039Z
1
+ 2026-11-26T14:09:29.926Z
package/dist/index.d.ts CHANGED
@@ -1,11 +1,16 @@
1
1
  import type { NodeClass, NodeRegistry } from "@nodetool-ai/node-sdk";
2
2
  export * from "./nodes/messaging.js";
3
+ export * from "./nodes/lib-mail.js";
3
4
  export * from "./nodes/kie-dynamic.js";
4
5
  export * from "./nodes/comfy-sdk.js";
5
6
  export * from "./nodes/comfy-cloud.js";
7
+ export * from "./nodes/comfy-graph-cloud.js";
8
+ export * from "./nodes/comfy-server-status.js";
6
9
  export * from "./nodes/comfy.js";
7
10
  export * from "./nodes/comfy-schema.js";
8
11
  export * from "./nodes/stable-diffusion-cpp.js";
12
+ export * from "./nodes/wan2gp.js";
13
+ export * from "./nodes/mcp-tool.js";
9
14
  export declare const ALL_INTEGRATION_NODES: readonly NodeClass[];
10
15
  export declare function registerIntegrationNodes(registry: NodeRegistry): void;
11
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMrE,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAEhD,eAAO,MAAM,qBAAqB,EAAE,SAAS,SAAS,EAKrD,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAIrE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AASrE,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,eAAO,MAAM,qBAAqB,EAAE,SAAS,SAAS,EAQrD,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAIrE"}
package/dist/index.js CHANGED
@@ -1,19 +1,30 @@
1
1
  import { KIE_DYNAMIC_NODES } from "./nodes/kie-dynamic.js";
2
2
  import { COMFY_NODES } from "./nodes/comfy.js";
3
3
  import { STABLE_DIFFUSION_CPP_NODES } from "./nodes/stable-diffusion-cpp.js";
4
+ import { WAN2GP_NODES } from "./nodes/wan2gp.js";
4
5
  import { MESSAGING_NODES } from "./nodes/messaging.js";
6
+ import { LIB_MAIL_NODES } from "./nodes/lib-mail.js";
7
+ import { MCP_TOOL_NODES } from "./nodes/mcp-tool.js";
5
8
  export * from "./nodes/messaging.js";
9
+ export * from "./nodes/lib-mail.js";
6
10
  export * from "./nodes/kie-dynamic.js";
7
11
  export * from "./nodes/comfy-sdk.js";
8
12
  export * from "./nodes/comfy-cloud.js";
13
+ export * from "./nodes/comfy-graph-cloud.js";
14
+ export * from "./nodes/comfy-server-status.js";
9
15
  export * from "./nodes/comfy.js";
10
16
  export * from "./nodes/comfy-schema.js";
11
17
  export * from "./nodes/stable-diffusion-cpp.js";
18
+ export * from "./nodes/wan2gp.js";
19
+ export * from "./nodes/mcp-tool.js";
12
20
  export const ALL_INTEGRATION_NODES = [
13
21
  ...KIE_DYNAMIC_NODES,
14
22
  ...COMFY_NODES,
15
23
  ...STABLE_DIFFUSION_CPP_NODES,
24
+ ...WAN2GP_NODES,
16
25
  ...MESSAGING_NODES,
26
+ ...LIB_MAIL_NODES,
27
+ ...MCP_TOOL_NODES,
17
28
  ];
18
29
  export function registerIntegrationNodes(registry) {
19
30
  for (const nodeClass of ALL_INTEGRATION_NODES) {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAEhD,MAAM,CAAC,MAAM,qBAAqB,GAAyB;IACzD,GAAG,iBAAiB;IACpB,GAAG,WAAW;IACd,GAAG,0BAA0B;IAC7B,GAAG,eAAe;CACnB,CAAC;AAEF,MAAM,UAAU,wBAAwB,CAAC,QAAsB;IAC7D,KAAK,MAAM,SAAS,IAAI,qBAAqB,EAAE,CAAC;QAC9C,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,MAAM,CAAC,MAAM,qBAAqB,GAAyB;IACzD,GAAG,iBAAiB;IACpB,GAAG,WAAW;IACd,GAAG,0BAA0B;IAC7B,GAAG,YAAY;IACf,GAAG,eAAe;IAClB,GAAG,cAAc;IACjB,GAAG,cAAc;CAClB,CAAC;AAEF,MAAM,UAAU,wBAAwB,CAAC,QAAsB;IAC7D,KAAK,MAAM,SAAS,IAAI,qBAAqB,EAAE,CAAC;QAC9C,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC"}
@@ -0,0 +1,113 @@
1
+ /**
2
+ * Runner for Comfy workflows (`run_mode: "comfy"`).
3
+ *
4
+ * A Comfy workflow is a NodeTool graph of `comfy.<ClassName>` nodes. The
5
+ * kernel never executes those nodes one by one: `collapseComfyGraph` in
6
+ * `@nodetool-ai/protocol` swaps the whole graph for one
7
+ * {@link ComfyCloudGraphNode}, which compiles it to ComfyUI's API format,
8
+ * submits it to Comfy Cloud through the Comfy API v2 as a single job, and
9
+ * relays the job's live events back to the editor as `node_update` and
10
+ * `node_progress` messages addressed to the original node ids. Those travel
11
+ * over the editor's existing WebSocket, so a Comfy workflow lights up node by
12
+ * node like any other run.
13
+ *
14
+ * The v2 SSE stream carries job status and outputs, but Comfy Cloud leaves its
15
+ * `current_node` empty. Per-node state comes from the Cloud WebSocket, which
16
+ * reports every job of the account, so its frames are filtered by prompt id.
17
+ * That socket only adds detail: a run without it still finishes and saves.
18
+ *
19
+ * `resolveComfyTarget` selects Comfy Cloud, a self-hosted ComfyUI or a NodeTool
20
+ * ComfyUI worker. The target only changes the transport and the node catalog.
21
+ */
22
+ import { BaseNode } from "@nodetool-ai/node-sdk";
23
+ import type { ProcessingContext } from "@nodetool-ai/runtime";
24
+ import { type ComfyGraphEdge, type ComfyGraphNode, type ComfyObjectInfo } from "@nodetool-ai/protocol";
25
+ import { type ComfyTransport } from "./comfy-sdk.js";
26
+ import { type ComfyTarget } from "./comfy-target.js";
27
+ export { describeComfyTarget, normalizeComfyServerUrl, resolveComfyTarget, type ComfyTarget } from "./comfy-target.js";
28
+ /** Comfy Cloud origin. The v2 job API and the v1 node catalog share it. */
29
+ export declare const COMFY_CLOUD_ORIGIN = "https://cloud.comfy.org";
30
+ /**
31
+ * Comfy Cloud's node catalog (`GET /api/object_info`), cached per API key for
32
+ * half an hour. The catalog is about 10 MB and changes when Comfy deploys.
33
+ */
34
+ export declare function fetchComfyObjectInfo(apiKey: string, options?: {
35
+ signal?: AbortSignal;
36
+ fetchImpl?: typeof fetch;
37
+ }): Promise<ComfyObjectInfo>;
38
+ /**
39
+ * A self-hosted ComfyUI's node catalog. It is cached briefly, because a restart
40
+ * of the server can add custom nodes and models.
41
+ */
42
+ export declare function fetchComfyServerObjectInfo(serverUrl: string, options?: {
43
+ signal?: AbortSignal;
44
+ fetchImpl?: typeof fetch;
45
+ }): Promise<ComfyObjectInfo>;
46
+ /** A ComfyUI worker's node catalog, cached briefly like a server's. */
47
+ export declare function fetchComfyWorkerCatalog(url: string, token?: string): Promise<ComfyObjectInfo>;
48
+ /** The node catalog of the selected target. */
49
+ export declare function fetchComfyTargetCatalog(target: ComfyTarget, options?: {
50
+ signal?: AbortSignal;
51
+ }): Promise<ComfyObjectInfo>;
52
+ /** Test hook: forget cached catalogs. */
53
+ export declare function clearComfyObjectInfoCache(): void;
54
+ /** A JSON frame of Comfy Cloud's account WebSocket. Only the fields read here. */
55
+ export interface ComfyLiveFrame {
56
+ type?: string;
57
+ data?: {
58
+ prompt_id?: string;
59
+ nodes?: string[] | Record<string, {
60
+ node_id?: string;
61
+ display_node_id?: string;
62
+ state?: string;
63
+ value?: number;
64
+ max?: number;
65
+ }>;
66
+ };
67
+ }
68
+ export declare class ComfyCloudGraphNode extends BaseNode {
69
+ static readonly nodeType = "lib.comfy.RunComfyGraphOnCloud";
70
+ static readonly title = "Run Comfy Workflow";
71
+ static readonly description = "Runs a whole Comfy workflow as one job on the target in COMFY_TARGET: Comfy Cloud, a ComfyUI server or a ComfyUI worker.\n comfy, comfyui, cloud, workflow";
72
+ static readonly hidden = true;
73
+ static readonly inlineFields: string[];
74
+ static readonly inputFields: string[];
75
+ static readonly supportsDynamicInputs = true;
76
+ static readonly supportsDynamicOutputs = true;
77
+ static readonly autoSaveAsset = true;
78
+ static readonly metadataOutputTypes: {
79
+ output: string;
80
+ };
81
+ nodes: ComfyGraphNode[];
82
+ edges: ComfyGraphEdge[];
83
+ output_slots: string[];
84
+ timeout: number;
85
+ /** Split out so tests run without a Comfy Cloud account. */
86
+ protected createTransport(apiKey: string): ComfyTransport;
87
+ /** Split out so tests run without a Comfy Cloud account. */
88
+ protected loadObjectInfo(apiKey: string, signal: AbortSignal): Promise<ComfyObjectInfo>;
89
+ /** Split out so tests can reach a local server through a real executor. */
90
+ protected createServerTransport(url: string, timeoutMs: number): ComfyTransport;
91
+ /** Split out so tests run without a ComfyUI server. */
92
+ protected loadServerObjectInfo(url: string, signal: AbortSignal): Promise<ComfyObjectInfo>;
93
+ /** Split out so tests run without a worker. */
94
+ protected openWorkerTransport(url: string, token: string | undefined, timeoutSeconds: number): Promise<ComfyTransport>;
95
+ /** Split out so tests run without a worker. */
96
+ protected loadWorkerObjectInfo(url: string, token: string | undefined): Promise<ComfyObjectInfo>;
97
+ /**
98
+ * Open the account WebSocket and hand each JSON frame to `onFrame`. Returns
99
+ * the function that closes it. Split out so tests run without a socket. The
100
+ * URL holds the API key, so it never goes into a log line.
101
+ */
102
+ protected openLiveFrames(apiKey: string, onFrame: (frame: ComfyLiveFrame) => void, onUnavailable: () => void): () => void;
103
+ /**
104
+ * Save one output file as an asset of the Comfy node that produced it, so it
105
+ * appears in the assets panel and in that node's history. A failed save keeps
106
+ * the bytes on the frame: the job has already been paid for.
107
+ */
108
+ private saveOutput;
109
+ process(context?: ProcessingContext): Promise<Record<string, unknown>>;
110
+ genProcess(context?: ProcessingContext): AsyncGenerator<Record<string, unknown>>;
111
+ private runJob;
112
+ }
113
+ //# sourceMappingURL=comfy-graph-cloud.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comfy-graph-cloud.d.ts","sourceRoot":"","sources":["../../src/nodes/comfy-graph-cloud.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH,OAAO,EAAE,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EASL,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CA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