comfyui-mcp 0.9.3 → 0.9.4

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 (221) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +17 -0
  3. package/package.json +1 -1
  4. package/dist/comfyui/client.d.ts +0 -67
  5. package/dist/comfyui/client.d.ts.map +0 -1
  6. package/dist/comfyui/cloud-client.d.ts +0 -37
  7. package/dist/comfyui/cloud-client.d.ts.map +0 -1
  8. package/dist/comfyui/events.d.ts +0 -9
  9. package/dist/comfyui/events.d.ts.map +0 -1
  10. package/dist/comfyui/types.d.ts +0 -176
  11. package/dist/comfyui/types.d.ts.map +0 -1
  12. package/dist/config.d.ts +0 -48
  13. package/dist/config.d.ts.map +0 -1
  14. package/dist/experimental/agent-poc.d.ts +0 -30
  15. package/dist/experimental/agent-poc.d.ts.map +0 -1
  16. package/dist/experimental/chat-handler.d.ts +0 -21
  17. package/dist/experimental/chat-handler.d.ts.map +0 -1
  18. package/dist/experimental/provider-registry.d.ts +0 -4
  19. package/dist/experimental/provider-registry.d.ts.map +0 -1
  20. package/dist/experimental/run.d.ts +0 -3
  21. package/dist/experimental/run.d.ts.map +0 -1
  22. package/dist/experimental/ui-message-stream-parser.d.ts +0 -21
  23. package/dist/experimental/ui-message-stream-parser.d.ts.map +0 -1
  24. package/dist/index.d.ts +0 -3
  25. package/dist/index.d.ts.map +0 -1
  26. package/dist/services/api-nodes.d.ts +0 -77
  27. package/dist/services/api-nodes.d.ts.map +0 -1
  28. package/dist/services/asset-registry.d.ts +0 -64
  29. package/dist/services/asset-registry.d.ts.map +0 -1
  30. package/dist/services/civitai-lookup.d.ts +0 -24
  31. package/dist/services/civitai-lookup.d.ts.map +0 -1
  32. package/dist/services/civitai-resolver.d.ts +0 -27
  33. package/dist/services/civitai-resolver.d.ts.map +0 -1
  34. package/dist/services/defaults-manager.d.ts +0 -31
  35. package/dist/services/defaults-manager.d.ts.map +0 -1
  36. package/dist/services/download-auth.d.ts +0 -30
  37. package/dist/services/download-auth.d.ts.map +0 -1
  38. package/dist/services/download-cache.d.ts +0 -28
  39. package/dist/services/download-cache.d.ts.map +0 -1
  40. package/dist/services/file-hasher.d.ts +0 -32
  41. package/dist/services/file-hasher.d.ts.map +0 -1
  42. package/dist/services/generate-conditioned.d.ts +0 -50
  43. package/dist/services/generate-conditioned.d.ts.map +0 -1
  44. package/dist/services/generate-image.d.ts +0 -35
  45. package/dist/services/generate-image.d.ts.map +0 -1
  46. package/dist/services/generation-tracker.d.ts +0 -84
  47. package/dist/services/generation-tracker.d.ts.map +0 -1
  48. package/dist/services/health-check.d.ts +0 -6
  49. package/dist/services/health-check.d.ts.map +0 -1
  50. package/dist/services/hierarchical-mermaid.d.ts +0 -12
  51. package/dist/services/hierarchical-mermaid.d.ts.map +0 -1
  52. package/dist/services/image-convert.d.ts +0 -29
  53. package/dist/services/image-convert.d.ts.map +0 -1
  54. package/dist/services/image-management.d.ts +0 -61
  55. package/dist/services/image-management.d.ts.map +0 -1
  56. package/dist/services/install-comfyui.d.ts +0 -89
  57. package/dist/services/install-comfyui.d.ts.map +0 -1
  58. package/dist/services/job-history.d.ts +0 -28
  59. package/dist/services/job-history.d.ts.map +0 -1
  60. package/dist/services/job-watcher.d.ts +0 -55
  61. package/dist/services/job-watcher.d.ts.map +0 -1
  62. package/dist/services/manager-config.d.ts +0 -59
  63. package/dist/services/manager-config.d.ts.map +0 -1
  64. package/dist/services/manifest.d.ts +0 -63
  65. package/dist/services/manifest.d.ts.map +0 -1
  66. package/dist/services/mermaid-converter.d.ts +0 -24
  67. package/dist/services/mermaid-converter.d.ts.map +0 -1
  68. package/dist/services/mermaid-parser.d.ts +0 -31
  69. package/dist/services/mermaid-parser.d.ts.map +0 -1
  70. package/dist/services/model-resolver.d.ts +0 -26
  71. package/dist/services/model-resolver.d.ts.map +0 -1
  72. package/dist/services/node-authoring.d.ts +0 -117
  73. package/dist/services/node-authoring.d.ts.map +0 -1
  74. package/dist/services/node-bisect.d.ts +0 -105
  75. package/dist/services/node-bisect.d.ts.map +0 -1
  76. package/dist/services/node-management.d.ts +0 -97
  77. package/dist/services/node-management.d.ts.map +0 -1
  78. package/dist/services/node-snapshots.d.ts +0 -27
  79. package/dist/services/node-snapshots.d.ts.map +0 -1
  80. package/dist/services/node-verify.d.ts +0 -35
  81. package/dist/services/node-verify.d.ts.map +0 -1
  82. package/dist/services/process-control.d.ts +0 -65
  83. package/dist/services/process-control.d.ts.map +0 -1
  84. package/dist/services/queue-manager.d.ts +0 -27
  85. package/dist/services/queue-manager.d.ts.map +0 -1
  86. package/dist/services/registry-client.d.ts +0 -28
  87. package/dist/services/registry-client.d.ts.map +0 -1
  88. package/dist/services/skill-cache.d.ts +0 -26
  89. package/dist/services/skill-cache.d.ts.map +0 -1
  90. package/dist/services/skill-generator.d.ts +0 -33
  91. package/dist/services/skill-generator.d.ts.map +0 -1
  92. package/dist/services/storage/azure-blob.d.ts +0 -8
  93. package/dist/services/storage/azure-blob.d.ts.map +0 -1
  94. package/dist/services/storage/hf.d.ts +0 -7
  95. package/dist/services/storage/hf.d.ts.map +0 -1
  96. package/dist/services/storage/http.d.ts +0 -6
  97. package/dist/services/storage/http.d.ts.map +0 -1
  98. package/dist/services/storage/index.d.ts +0 -28
  99. package/dist/services/storage/index.d.ts.map +0 -1
  100. package/dist/services/storage/s3.d.ts +0 -12
  101. package/dist/services/storage/s3.d.ts.map +0 -1
  102. package/dist/services/storage/types.d.ts +0 -22
  103. package/dist/services/storage/types.d.ts.map +0 -1
  104. package/dist/services/storage/utils.d.ts +0 -6
  105. package/dist/services/storage/utils.d.ts.map +0 -1
  106. package/dist/services/storage-upload.d.ts +0 -18
  107. package/dist/services/storage-upload.d.ts.map +0 -1
  108. package/dist/services/tunnel.d.ts +0 -23
  109. package/dist/services/tunnel.d.ts.map +0 -1
  110. package/dist/services/update-comfyui.d.ts +0 -34
  111. package/dist/services/update-comfyui.d.ts.map +0 -1
  112. package/dist/services/view-image.d.ts +0 -17
  113. package/dist/services/view-image.d.ts.map +0 -1
  114. package/dist/services/workflow-autoload.d.ts +0 -41
  115. package/dist/services/workflow-autoload.d.ts.map +0 -1
  116. package/dist/services/workflow-composer.d.ts +0 -43
  117. package/dist/services/workflow-composer.d.ts.map +0 -1
  118. package/dist/services/workflow-converter.d.ts +0 -31
  119. package/dist/services/workflow-converter.d.ts.map +0 -1
  120. package/dist/services/workflow-deps.d.ts +0 -135
  121. package/dist/services/workflow-deps.d.ts.map +0 -1
  122. package/dist/services/workflow-dsl.d.ts +0 -4
  123. package/dist/services/workflow-dsl.d.ts.map +0 -1
  124. package/dist/services/workflow-executor.d.ts +0 -16
  125. package/dist/services/workflow-executor.d.ts.map +0 -1
  126. package/dist/services/workflow-sections.d.ts +0 -30
  127. package/dist/services/workflow-sections.d.ts.map +0 -1
  128. package/dist/services/workflow-settings-extractor.d.ts +0 -14
  129. package/dist/services/workflow-settings-extractor.d.ts.map +0 -1
  130. package/dist/services/workflow-validator.d.ts +0 -18
  131. package/dist/services/workflow-validator.d.ts.map +0 -1
  132. package/dist/services/workspace-env.d.ts +0 -68
  133. package/dist/services/workspace-env.d.ts.map +0 -1
  134. package/dist/tools/api-nodes.d.ts +0 -9
  135. package/dist/tools/api-nodes.d.ts.map +0 -1
  136. package/dist/tools/assets.d.ts +0 -3
  137. package/dist/tools/assets.d.ts.map +0 -1
  138. package/dist/tools/defaults.d.ts +0 -3
  139. package/dist/tools/defaults.d.ts.map +0 -1
  140. package/dist/tools/diagnostics.d.ts +0 -3
  141. package/dist/tools/diagnostics.d.ts.map +0 -1
  142. package/dist/tools/generate-conditioned.d.ts +0 -3
  143. package/dist/tools/generate-conditioned.d.ts.map +0 -1
  144. package/dist/tools/generate-image.d.ts +0 -3
  145. package/dist/tools/generate-image.d.ts.map +0 -1
  146. package/dist/tools/generation-tracker.d.ts +0 -3
  147. package/dist/tools/generation-tracker.d.ts.map +0 -1
  148. package/dist/tools/health-check.d.ts +0 -3
  149. package/dist/tools/health-check.d.ts.map +0 -1
  150. package/dist/tools/image-convert.d.ts +0 -3
  151. package/dist/tools/image-convert.d.ts.map +0 -1
  152. package/dist/tools/image-management.d.ts +0 -3
  153. package/dist/tools/image-management.d.ts.map +0 -1
  154. package/dist/tools/index.d.ts +0 -3
  155. package/dist/tools/index.d.ts.map +0 -1
  156. package/dist/tools/install-comfyui.d.ts +0 -3
  157. package/dist/tools/install-comfyui.d.ts.map +0 -1
  158. package/dist/tools/manager-config.d.ts +0 -3
  159. package/dist/tools/manager-config.d.ts.map +0 -1
  160. package/dist/tools/manifest.d.ts +0 -3
  161. package/dist/tools/manifest.d.ts.map +0 -1
  162. package/dist/tools/memory-management.d.ts +0 -3
  163. package/dist/tools/memory-management.d.ts.map +0 -1
  164. package/dist/tools/model-extras.d.ts +0 -3
  165. package/dist/tools/model-extras.d.ts.map +0 -1
  166. package/dist/tools/model-management.d.ts +0 -3
  167. package/dist/tools/model-management.d.ts.map +0 -1
  168. package/dist/tools/node-authoring.d.ts +0 -3
  169. package/dist/tools/node-authoring.d.ts.map +0 -1
  170. package/dist/tools/node-bisect.d.ts +0 -3
  171. package/dist/tools/node-bisect.d.ts.map +0 -1
  172. package/dist/tools/node-management.d.ts +0 -3
  173. package/dist/tools/node-management.d.ts.map +0 -1
  174. package/dist/tools/node-snapshots.d.ts +0 -3
  175. package/dist/tools/node-snapshots.d.ts.map +0 -1
  176. package/dist/tools/node-verify.d.ts +0 -3
  177. package/dist/tools/node-verify.d.ts.map +0 -1
  178. package/dist/tools/process-control.d.ts +0 -3
  179. package/dist/tools/process-control.d.ts.map +0 -1
  180. package/dist/tools/queue-management.d.ts +0 -3
  181. package/dist/tools/queue-management.d.ts.map +0 -1
  182. package/dist/tools/registry-search.d.ts +0 -3
  183. package/dist/tools/registry-search.d.ts.map +0 -1
  184. package/dist/tools/skill-generator.d.ts +0 -3
  185. package/dist/tools/skill-generator.d.ts.map +0 -1
  186. package/dist/tools/storage-upload.d.ts +0 -3
  187. package/dist/tools/storage-upload.d.ts.map +0 -1
  188. package/dist/tools/update-comfyui.d.ts +0 -3
  189. package/dist/tools/update-comfyui.d.ts.map +0 -1
  190. package/dist/tools/workflow-autoload.d.ts +0 -9
  191. package/dist/tools/workflow-autoload.d.ts.map +0 -1
  192. package/dist/tools/workflow-compose.d.ts +0 -3
  193. package/dist/tools/workflow-compose.d.ts.map +0 -1
  194. package/dist/tools/workflow-deps.d.ts +0 -3
  195. package/dist/tools/workflow-deps.d.ts.map +0 -1
  196. package/dist/tools/workflow-dsl.d.ts +0 -3
  197. package/dist/tools/workflow-dsl.d.ts.map +0 -1
  198. package/dist/tools/workflow-execute.d.ts +0 -3
  199. package/dist/tools/workflow-execute.d.ts.map +0 -1
  200. package/dist/tools/workflow-library.d.ts +0 -3
  201. package/dist/tools/workflow-library.d.ts.map +0 -1
  202. package/dist/tools/workflow-validate.d.ts +0 -3
  203. package/dist/tools/workflow-validate.d.ts.map +0 -1
  204. package/dist/tools/workflow-visualize.d.ts +0 -3
  205. package/dist/tools/workflow-visualize.d.ts.map +0 -1
  206. package/dist/tools/workspace-env.d.ts +0 -3
  207. package/dist/tools/workspace-env.d.ts.map +0 -1
  208. package/dist/transport/cli.d.ts +0 -15
  209. package/dist/transport/cli.d.ts.map +0 -1
  210. package/dist/transport/comfyui-url.d.ts +0 -12
  211. package/dist/transport/comfyui-url.d.ts.map +0 -1
  212. package/dist/transport/http.d.ts +0 -17
  213. package/dist/transport/http.d.ts.map +0 -1
  214. package/dist/utils/errors.d.ts +0 -33
  215. package/dist/utils/errors.d.ts.map +0 -1
  216. package/dist/utils/image.d.ts +0 -4
  217. package/dist/utils/image.d.ts.map +0 -1
  218. package/dist/utils/logger.d.ts +0 -7
  219. package/dist/utils/logger.d.ts.map +0 -1
  220. package/dist/utils/optional-dep.d.ts +0 -5
  221. package/dist/utils/optional-dep.d.ts.map +0 -1
@@ -1,89 +0,0 @@
1
- export declare const COMFYUI_REPO_URL = "https://github.com/comfyanonymous/ComfyUI";
2
- export declare const COMFYUI_MANAGER_REPO_URL = "https://github.com/Comfy-Org/ComfyUI-Manager";
3
- /** Sub-path under the ComfyUI clone where the Manager lives (clone fallback). */
4
- export declare const MANAGER_SUBDIR: string;
5
- export interface InstallComfyUIOptions {
6
- /** Target workspace directory to install ComfyUI into. */
7
- targetPath: string;
8
- /** Skip cloning ComfyUI-Manager. Default false (Manager is installed). */
9
- skipManager?: boolean;
10
- /** Prefer `uv pip` over plain `pip` when uv is available. Default false. */
11
- useUv?: boolean;
12
- /**
13
- * ComfyUI git ref to check out (tag, branch, or commit). When omitted the
14
- * default branch HEAD is used.
15
- */
16
- version?: string;
17
- }
18
- export interface StepResult {
19
- step: string;
20
- command: string;
21
- ok: boolean;
22
- output?: string;
23
- }
24
- export interface InstallComfyUIResult {
25
- installed: boolean;
26
- targetPath: string;
27
- /** Path to the workspace virtualenv python that deps were installed into. */
28
- venvPath: string;
29
- comfyuiUrl: string;
30
- managerUrl: string | null;
31
- managerInstalled: boolean;
32
- /** How the Manager was installed: pip "requirements", "git-clone", or null. */
33
- managerVia: "requirements" | "git-clone" | null;
34
- version: string | null;
35
- pythonInstaller: "uv" | "pip";
36
- steps: StepResult[];
37
- message: string;
38
- }
39
- export interface InstallDeps {
40
- /** Run a command, throwing on non-zero exit. Returns combined stdout. */
41
- run: (cmd: string, args: string[], cwd?: string) => string;
42
- /** Detect whether a CLI tool is on PATH. */
43
- hasCommand: (cmd: string) => boolean;
44
- existsSync: (p: string) => boolean;
45
- /** True if the path exists AND contains at least one entry. */
46
- isNonEmptyDir: (p: string) => boolean;
47
- mkdirp: (p: string) => void;
48
- }
49
- /** Build the `git clone` argv (without the leading `git`). */
50
- export declare function buildCloneArgs(url: string, dest: string, version?: string): string[];
51
- /** Path to the workspace venv's python interpreter. */
52
- export declare function venvPythonPath(targetPath: string): string;
53
- /** Build the argv that creates the workspace venv (`<target>/.venv`). */
54
- export declare function buildVenvArgs(installer: "uv" | "pip", targetPath: string): {
55
- cmd: string;
56
- args: string[];
57
- };
58
- /**
59
- * Build the pip/uv install argv for a requirements file, ALWAYS targeting the
60
- * workspace venv's interpreter (`venvPython`) — never the Python running this
61
- * MCP server. uv targets the venv explicitly via `--python`.
62
- */
63
- export declare function buildPipInstallArgs(installer: "uv" | "pip", venvPython: string, requirementsFile: string): {
64
- cmd: string;
65
- args: string[];
66
- };
67
- /**
68
- * Validate the requested ComfyUI version, mirroring comfy-cli's
69
- * `validate_version`: only "nightly", "latest", or a full semantic version
70
- * (optionally v-prefixed). Raw git refs / branch names are rejected.
71
- */
72
- export declare function validateVersion(version: string): {
73
- kind: "nightly";
74
- } | {
75
- kind: "latest";
76
- } | {
77
- kind: "semver";
78
- tag: string;
79
- };
80
- /**
81
- * Mirrors `comfy-cli install`: clones ComfyUI (and optionally ComfyUI-Manager)
82
- * into a target workspace, then installs Python requirements via pip or uv.
83
- *
84
- * This is a LOCAL, subprocess-only operation. It never touches a remote
85
- * ComfyUI server and ignores `config.comfyuiPath` in favour of the explicit
86
- * `targetPath`.
87
- */
88
- export declare function installComfyUI(options: InstallComfyUIOptions, deps?: InstallDeps): InstallComfyUIResult;
89
- //# sourceMappingURL=install-comfyui.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"install-comfyui.d.ts","sourceRoot":"","sources":["../../src/services/install-comfyui.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,gBAAgB,8CAA8C,CAAC;AAC5E,eAAO,MAAM,wBAAwB,iDACW,CAAC;AACjD,iFAAiF;AACjF,eAAO,MAAM,cAAc,QAA0C,CAAC;AAQtE,MAAM,WAAW,qBAAqB;IACpC,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,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MAAM,CAIzD;AAED,yEAAyE;AACzE,wBAAgB,aAAa,CAC3B,SAAS,EAAE,IAAI,GAAG,KAAK,EACvB,UAAU,EAAE,MAAM,GACjB;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAMjC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,IAAI,GAAG,KAAK,EACvB,UAAU,EAAE,MAAM,EAClB,gBAAgB,EAAE,MAAM,GACvB;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAWjC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,GACd;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAa5E;AAMD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,qBAAqB,EAC9B,IAAI,GAAE,WAAyB,GAC9B,oBAAoB,CA+JtB"}
@@ -1,28 +0,0 @@
1
- import type { HistoryEntry } from "../comfyui/client.js";
2
- export declare const TRACEBACK_MAX_CHARS = 2000;
3
- export interface ExecutionErrorDetails {
4
- node_id: string;
5
- node_type: string;
6
- exception_message: string;
7
- exception_type?: string;
8
- traceback?: string;
9
- traceback_truncated?: boolean;
10
- current_inputs?: unknown;
11
- is_oom?: boolean;
12
- }
13
- export interface ExecutionStats {
14
- total_duration_ms?: number;
15
- nodes: Record<string, {
16
- duration_ms: number;
17
- }>;
18
- }
19
- export interface HistoryAnalysis {
20
- error?: ExecutionErrorDetails;
21
- execution_stats?: ExecutionStats;
22
- }
23
- export type HistoryStatusMessage = readonly [string, Record<string, unknown>];
24
- export declare function normalizeHistoryMessages(entry: HistoryEntry): HistoryStatusMessage[];
25
- export declare function extractExecutionError(entry: HistoryEntry): ExecutionErrorDetails | undefined;
26
- export declare function extractExecutionStats(entry: HistoryEntry): ExecutionStats | undefined;
27
- export declare function analyzeHistoryEntry(entry: HistoryEntry): HistoryAnalysis;
28
- //# sourceMappingURL=job-history.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"job-history.d.ts","sourceRoot":"","sources":["../../src/services/job-history.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAExC,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAChD;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,eAAe,CAAC,EAAE,cAAc,CAAC;CAClC;AAED,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAW9E,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,YAAY,GAClB,oBAAoB,EAAE,CAaxB;AAmDD,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,YAAY,GAClB,qBAAqB,GAAG,SAAS,CAmBnC;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,YAAY,GAClB,cAAc,GAAG,SAAS,CAqC5B;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,eAAe,CAKxE"}
@@ -1,55 +0,0 @@
1
- import { type HistoryEntry } from "../comfyui/client.js";
2
- import type { WorkflowJSON } from "../comfyui/types.js";
3
- import { type ExecutionStats } from "./job-history.js";
4
- export interface CompletionNotification {
5
- prompt_id: string;
6
- status: "success" | "error" | "interrupted";
7
- duration_ms: number;
8
- timestamp: string;
9
- error?: {
10
- node_id: string;
11
- node_type: string;
12
- exception_message: string;
13
- exception_type?: string;
14
- traceback?: string;
15
- traceback_truncated?: boolean;
16
- current_inputs?: unknown;
17
- is_oom?: boolean;
18
- };
19
- outputs: Array<{
20
- node_id: string;
21
- images: Array<{
22
- filename: string;
23
- subfolder: string;
24
- type: string;
25
- url: string;
26
- asset_id?: string;
27
- }>;
28
- }>;
29
- cached_nodes: string[];
30
- execution_stats?: ExecutionStats;
31
- }
32
- export declare function buildCompletionNotification(promptId: string, entry: HistoryEntry, startTime: number): CompletionNotification;
33
- export declare const JobWatcher: {
34
- /**
35
- * Start monitoring a prompt_id for completion via WS + polling dual-track.
36
- * Optionally pass the submitted workflow so completed outputs can be
37
- * registered with the AssetRegistry for view_image / regenerate.
38
- */
39
- watch(promptId: string, workflow?: WorkflowJSON): void;
40
- /**
41
- * Stop monitoring a prompt_id.
42
- */
43
- unwatch(promptId: string): void;
44
- /**
45
- * List actively watched prompt_ids.
46
- */
47
- listActive(): string[];
48
- /**
49
- * Clean up old .reported completion files (called on startup).
50
- */
51
- cleanupOldFiles(): Promise<void>;
52
- /** Exposed for testing/debugging */
53
- readonly COMPLETIONS_DIR: string;
54
- };
55
- //# sourceMappingURL=job-watcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"job-watcher.d.ts","sourceRoot":"","sources":["../../src/services/job-watcher.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,sBAAsB,C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;IAItB;;OAEG;uBACsB,OAAO,CAAC,IAAI,CAAC;IA4BtC,oCAAoC;;CAIrC,CAAC"}
@@ -1,59 +0,0 @@
1
- import { ComfyUIError } from "../utils/errors.js";
2
- /**
3
- * ComfyUI-Manager configuration, mirroring `comfy-cli manager` capabilities.
4
- *
5
- * Mechanism (hybrid):
6
- * - Prefer the ComfyUI-Manager HTTP API (works against remote ComfyUI too).
7
- * - Fall back to editing Manager's `config.ini` (under config.comfyuiPath) only
8
- * for settings the HTTP API cannot change (network_mode, security_level).
9
- *
10
- * Endpoints / config keys are taken verbatim from Comfy-Org/ComfyUI-Manager:
11
- * - glob/manager_server.py (HTTP routes: preview_method, db_mode,
12
- * policy/component, policy/update, channel_url_list, queue/reset)
13
- * - glob/manager_core.py (config.ini `[default]` section keys + valid values)
14
- */
15
- export declare class ManagerConfigError extends ComfyUIError {
16
- constructor(message: string, details?: unknown);
17
- }
18
- declare const VALID_NETWORK_MODES: readonly ["public", "private", "offline"];
19
- declare const VALID_SECURITY_LEVELS: readonly ["strong", "normal", "normal-", "weak"];
20
- declare const VALID_PREVIEW_METHODS: readonly ["auto", "latent2rgb", "taesd", "none"];
21
- declare const VALID_DB_MODES: readonly ["local", "cache", "remote"];
22
- declare const VALID_COMPONENT_POLICIES: readonly ["workflow", "higher", "mine"];
23
- declare const VALID_UPDATE_POLICIES: readonly ["stable-comfyui", "nightly-comfyui"];
24
- export type NetworkMode = (typeof VALID_NETWORK_MODES)[number];
25
- export type SecurityLevel = (typeof VALID_SECURITY_LEVELS)[number];
26
- export type PreviewMethod = (typeof VALID_PREVIEW_METHODS)[number];
27
- export type DbMode = (typeof VALID_DB_MODES)[number];
28
- export type ComponentPolicy = (typeof VALID_COMPONENT_POLICIES)[number];
29
- export type UpdatePolicy = (typeof VALID_UPDATE_POLICIES)[number];
30
- export interface ManagerConfigResult {
31
- /** Human-readable description of what was applied. */
32
- message: string;
33
- /** Whether the change was applied via the HTTP API ("api") or config.ini ("config-file"). */
34
- via: "api" | "config-file";
35
- /** Resulting state value, when known. */
36
- state?: string;
37
- }
38
- export declare function setPreviewMethod(value: string): Promise<ManagerConfigResult>;
39
- export declare function setDbMode(value: string): Promise<ManagerConfigResult>;
40
- export declare function setComponentPolicy(value: string): Promise<ManagerConfigResult>;
41
- export declare function setUpdatePolicy(value: string): Promise<ManagerConfigResult>;
42
- /**
43
- * Set the active channel by name. The Manager POST expects a channel *name*
44
- * (e.g. "default", "dev"); it resolves it to a URL internally and ignores
45
- * unknown names, so we verify against the returned selection.
46
- */
47
- export declare function setChannel(value: string): Promise<ManagerConfigResult>;
48
- /**
49
- * Reset the Manager task queue. This is the runtime, HTTP-reachable analog of
50
- * `comfy-cli manager clear` (which clears reserved startup actions locally).
51
- */
52
- export declare function resetQueue(): Promise<ManagerConfigResult>;
53
- export declare function setNetworkMode(value: string): ManagerConfigResult;
54
- export declare function setSecurityLevel(value: string): ManagerConfigResult;
55
- export declare const MANAGER_CONFIG_ACTIONS: readonly ["set_preview_method", "set_db_mode", "set_component_policy", "set_update_policy", "set_channel", "reset_queue", "set_network_mode", "set_security_level"];
56
- export type ManagerConfigAction = (typeof MANAGER_CONFIG_ACTIONS)[number];
57
- export declare function configureManager(action: ManagerConfigAction, value?: string): Promise<ManagerConfigResult>;
58
- export {};
59
- //# sourceMappingURL=manager-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manager-config.d.ts","sourceRoot":"","sources":["../../src/services/manager-config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAmB,MAAM,oBAAoB,CAAC;AAGnE;;;;;;;;;;;;GAYG;AAEH,qBAAa,kBAAmB,SAAQ,YAAY;gBACtC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO;CAI/C;AA+BD,QAAA,MAAM,mBAAmB,2CAA4C,CAAC;AACtE,QAAA,MAAM,qBAAqB,kDAAmD,CAAC;AAG/E,QAAA,MAAM,qBAAqB,kDAAmD,CAAC;AAC/E,QAAA,M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GG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAM/D;AAuGD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,mBAAmB,CAUjE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,mBAAmB,CAUnE;AAID,eAAO,MAAM,sBAAsB,qKASzB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAY1E,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,mBAAmB,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,mBAAmB,CAAC,CA4B9B"}
@@ -1,63 +0,0 @@
1
- import { z } from "zod";
2
- export declare const manifestSchema: z.ZodObject<{
3
- apt: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
4
- pip: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5
- custom_nodes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6
- models: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
7
- url: z.ZodString;
8
- model_type: z.ZodOptional<z.ZodEnum<["checkpoints", "loras", "vae", "upscale_models", "controlnet", "embeddings", "clip", "diffusers", "diffusion_models", "gligen", "hypernetworks", "photomaker", "style_models", "text_encoders", "unet"]>>;
9
- filename: z.ZodOptional<z.ZodString>;
10
- local_path: z.ZodOptional<z.ZodString>;
11
- }, "strict", z.ZodTypeAny, {
12
- url: string;
13
- filename?: string | undefined;
14
- model_type?: "unet" | "diffusion_models" | "checkpoints" | "loras" | "clip" | "vae" | "controlnet" | "upscale_models" | "embeddings" | "diffusers" | "gligen" | "hypernetworks" | "photomaker" | "style_models" | "text_encoders" | undefined;
15
- local_path?: string | undefined;
16
- }, {
17
- url: string;
18
- filename?: string | undefined;
19
- model_type?: "unet" | "diffusion_models" | "checkpoints" | "loras" | "clip" | "vae" | "controlnet" | "upscale_models" | "embeddings" | "diffusers" | "gligen" | "hypernetworks" | "photomaker" | "style_models" | "text_encoders" | undefined;
20
- local_path?: string | undefined;
21
- }>, "many">>>;
22
- }, "strict", z.ZodTypeAny, {
23
- models: {
24
- url: string;
25
- filename?: string | undefined;
26
- model_type?: "unet" | "diffusion_models" | "checkpoints" | "loras" | "clip" | "vae" | "controlnet" | "upscale_models" | "embeddings" | "diffusers" | "gligen" | "hypernetworks" | "photomaker" | "style_models" | "text_encoders" | undefined;
27
- local_path?: string | undefined;
28
- }[];
29
- custom_nodes: string[];
30
- pip: string[];
31
- apt: string[];
32
- }, {
33
- models?: {
34
- url: string;
35
- filename?: string | undefined;
36
- model_type?: "unet" | "diffusion_models" | "checkpoints" | "loras" | "clip" | "vae" | "controlnet" | "upscale_models" | "embeddings" | "diffusers" | "gligen" | "hypernetworks" | "photomaker" | "style_models" | "text_encoders" | undefined;
37
- local_path?: string | undefined;
38
- }[] | undefined;
39
- custom_nodes?: string[] | undefined;
40
- pip?: string[] | undefined;
41
- apt?: string[] | undefined;
42
- }>;
43
- export type ComfyManifest = z.infer<typeof manifestSchema>;
44
- export interface ApplyManifestOptions {
45
- manifest?: unknown;
46
- path?: string;
47
- }
48
- export type ManifestAction = "apt" | "pip" | "custom_node" | "model";
49
- export type ManifestItemStatus = "applied" | "skipped" | "failed";
50
- export interface ManifestItemReport {
51
- item: string;
52
- action: ManifestAction;
53
- status: ManifestItemStatus;
54
- message: string;
55
- }
56
- export interface ApplyManifestResult {
57
- success: boolean;
58
- summary: Record<ManifestItemStatus, number>;
59
- results: ManifestItemReport[];
60
- }
61
- export declare function loadManifestFile(path: string): Promise<ComfyManifest>;
62
- export declare function applyManifest(opts: ApplyManifestOptions): Promise<ApplyManifestResult>;
63
- //# sourceMappingURL=manifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/services/manifest.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBhB,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE3D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,cAAc,GACtB,KAAK,GACL,KAAK,GACL,aAAa,GACb,OAAO,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;IAC5C,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B;AAwBD,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAU3E;AAwPD,wBAAsB,aAAa,CACjC,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,mBAAmB,CAAC,CA2F9B"}
@@ -1,24 +0,0 @@
1
- import type { WorkflowJSON, WorkflowNode } from "../comfyui/types.js";
2
- export type NodeCategory = "loading" | "conditioning" | "sampling" | "image" | "output" | "utility";
3
- interface MermaidOptions {
4
- showValues?: boolean;
5
- direction?: "LR" | "TB";
6
- }
7
- export interface ConnectionEdge {
8
- sourceId: string;
9
- outputIndex: number;
10
- targetId: string;
11
- inputName: string;
12
- }
13
- export declare const CATEGORY_LABELS: Record<NodeCategory, string>;
14
- export declare function wrapNodeLabel(id: string, label: string, category: NodeCategory): string;
15
- export declare const TYPE_COLORS: Record<string, string>;
16
- export declare function isConnection(value: unknown): value is [string, number];
17
- export declare const DISPLAY_VALUES: Set<string>;
18
- export declare function buildNodeLabel(node: WorkflowNode, showValues: boolean): string;
19
- export declare function extractConnections(workflow: WorkflowJSON): ConnectionEdge[];
20
- export declare function guessOutputType(classType: string, outputIndex: number): string;
21
- export declare function escapeForMermaid(str: string): string;
22
- export declare function convertToMermaid(workflow: WorkflowJSON, options?: MermaidOptions): string;
23
- export {};
24
- //# sourceMappingURL=mermaid-converter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mermaid-converter.d.ts","sourceRoot":"","sources":["../../src/services/mermaid-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEtE,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,cAAc,GACd,UAAU,GACV,OAAO,GACP,QAAQ,GACR,SAAS,CAAC;AAEd,UAAU,cAAc;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AA2CD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAOxD,CAAC;AAGF,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,GAAG,MAAM,CAgBvF;AAGD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAO9C,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAOtE;AAGD,eAAO,MAAM,cAAc,aAazB,CAAC;AAEH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,EAClB,UAAU,EAAE,OAAO,GAClB,MAAM,CAqBR;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,YAAY,GAAG,cAAc,EAAE,CAe3E;AAED,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GAClB,MAAM,CAgCR;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,EACtB,OAAO,GAAE,cAAmB,GAC3B,MAAM,CA0ER"}
@@ -1,31 +0,0 @@
1
- import type { WorkflowJSON, ObjectInfo } from "../comfyui/types.js";
2
- interface ParsedNode {
3
- id: string;
4
- label: string;
5
- values: Record<string, string>;
6
- }
7
- interface ParsedEdge {
8
- sourceId: string;
9
- targetId: string;
10
- dataType: string | undefined;
11
- }
12
- interface ParsedMermaid {
13
- nodes: Map<string, ParsedNode>;
14
- edges: ParsedEdge[];
15
- direction: "LR" | "TB";
16
- }
17
- export interface MermaidToWorkflowResult {
18
- workflow: WorkflowJSON;
19
- warnings: string[];
20
- }
21
- /**
22
- * Parse a mermaid flowchart string into structured nodes and edges.
23
- */
24
- export declare function parseMermaid(mermaidText: string): ParsedMermaid;
25
- /**
26
- * Resolve a parsed mermaid graph into a valid ComfyUI workflow JSON
27
- * using node definitions from /object_info.
28
- */
29
- export declare function resolveWorkflow(parsed: ParsedMermaid, objectInfo: ObjectInfo): MermaidToWorkflowResult;
30
- export {};
31
- //# sourceMappingURL=mermaid-parser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mermaid-parser.d.ts","sourceRoot":"","sources":["../../src/services/mermaid-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAEZ,UAAU,EAGX,MAAM,qBAAqB,CAAC;AAK7B,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAGD,UAAU,UAAU;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAGD,UAAU,aAAa;IACrB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC/B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB;AAGD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,CA0D/D;AAwED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,UAAU,GACrB,uBAAuB,CAoJzB"}
@@ -1,26 +0,0 @@
1
- import { type DownloadAuth } from "./download-auth.js";
2
- export declare const MODEL_SUBDIRS: readonly ["checkpoints", "loras", "vae", "upscale_models", "controlnet", "embeddings", "clip", "diffusers", "diffusion_models", "gligen", "hypernetworks", "photomaker", "style_models", "text_encoders", "unet"];
3
- export type ModelType = (typeof MODEL_SUBDIRS)[number];
4
- export interface HFModelResult {
5
- id: string;
6
- modelId: string;
7
- author: string;
8
- tags: string[];
9
- downloads: number;
10
- likes: number;
11
- lastModified: string;
12
- }
13
- export interface LocalModel {
14
- name: string;
15
- path: string;
16
- size: number;
17
- modified: string;
18
- type: string;
19
- }
20
- export declare function searchHuggingFaceModels(query: string, options?: {
21
- filter?: string;
22
- limit?: number;
23
- }): Promise<HFModelResult[]>;
24
- export declare function listLocalModels(modelType?: string): Promise<LocalModel[]>;
25
- export declare function downloadModel(url: string, targetSubfolder: string, filename?: string, auth?: DownloadAuth): Promise<string>;
26
- //# sourceMappingURL=model-resolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model-resolver.d.ts","sourceRoot":"","sources":["../../src/services/model-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,aAAa,mNAgBhB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AASD,wBAAsB,uBAAuB,CAC3C,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAChD,OAAO,CAAC,aAAa,EAAE,CAAC,CAoC1B;AAED,wBAAsB,eAAe,CACnC,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,UAAU,EAAE,CAAC,CAqCvB;AAYD,wBAAsB,aAAa,CACjC,GAAG,EAAE,MAAM,EACX,eAAe,EAAE,MAAM,EACvB,QAAQ,CAAC,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,YAAY,GAClB,OAAO,CAAC,MAAM,CAAC,CA4DjB"}
@@ -1,117 +0,0 @@
1
- import { ComfyUIError } from "../utils/errors.js";
2
- export declare class NodeAuthoringError extends ComfyUIError {
3
- constructor(message: string, details?: unknown);
4
- }
5
- export interface ScaffoldOptions {
6
- /** Folder/pack name — must be a safe slug (a-z 0-9 - _). */
7
- name: string;
8
- /** Human-readable display name shown in the ComfyUI node menu / registry. */
9
- displayName: string;
10
- /** Node menu category (e.g. "custom"). */
11
- category?: string;
12
- /** Short description for pyproject [project].description. */
13
- description?: string;
14
- /** Registry publisher id stamped into [tool.comfy].PublisherId. */
15
- publisherId?: string;
16
- /** Emit a web/js extension stub and wire WEB_DIRECTORY. */
17
- withFrontend?: boolean;
18
- /** Also emit a GitHub Actions workflow that publishes to the Comfy Registry. */
19
- withCi?: boolean;
20
- /** Overwrite an existing pack directory instead of refusing. */
21
- overwrite?: boolean;
22
- }
23
- export interface ScaffoldResult {
24
- name: string;
25
- /** Absolute path to the generated pack directory. */
26
- path: string;
27
- /** Pack-relative paths of every file written. */
28
- files: string[];
29
- withFrontend: boolean;
30
- message: string;
31
- }
32
- export interface PublishOptions {
33
- /** Pack folder name under custom_nodes/ (mutually exclusive with path). */
34
- name?: string;
35
- /** Explicit absolute path to a pack directory (overrides name). */
36
- path?: string;
37
- }
38
- export interface PublishResult {
39
- published: boolean;
40
- /** Pack name from pyproject [project].name. */
41
- packName: string;
42
- version: string;
43
- publisherId: string;
44
- /** Absolute path the publish ran in. */
45
- path: string;
46
- /** Registry URL parsed from comfy-cli output, if it emitted one. */
47
- registryUrl?: string;
48
- message: string;
49
- /** Raw (token-free) subprocess output. */
50
- output?: string;
51
- }
52
- export interface AuthoringDeps {
53
- existsSync: (p: string) => boolean;
54
- mkdirp: (p: string) => void;
55
- writeFile: (p: string, contents: string) => void;
56
- readFile: (p: string) => string;
57
- /** True if path exists AND is a directory containing at least one entry. */
58
- isNonEmptyDir: (p: string) => boolean;
59
- /** Detect whether a CLI tool is on PATH. */
60
- hasCommand: (cmd: string) => boolean;
61
- /**
62
- * Run a command. Returns combined stdout/stderr. The `env` is merged onto
63
- * process.env by the implementation — callers pass ONLY the extra vars
64
- * (e.g. the registry token) so secrets never appear in `args`.
65
- */
66
- run: (cmd: string, args: string[], opts: {
67
- cwd: string;
68
- env?: Record<string, string>;
69
- }) => string;
70
- }
71
- /**
72
- * Validate a pack name as a safe slug AND reject anything that could escape
73
- * custom_nodes/ (path separators, "..", absolute paths, drive letters). The
74
- * SLUG_RE already forbids "/", "\\", ":" and "." so traversal is impossible,
75
- * but we keep an explicit check for a clear, security-focused error message.
76
- */
77
- export declare function validatePackName(name: string): string;
78
- export declare function buildPyprojectToml(opts: {
79
- name: string;
80
- description: string;
81
- publisherId: string;
82
- displayName: string;
83
- }): string;
84
- export declare function buildInitPy(opts: {
85
- className: string;
86
- displayName: string;
87
- withFrontend: boolean;
88
- }): string;
89
- export declare function buildNodesPy(opts: {
90
- className: string;
91
- displayName: string;
92
- category: string;
93
- }): string;
94
- export declare function buildFrontendJs(opts: {
95
- name: string;
96
- displayName: string;
97
- }): string;
98
- export declare function buildComfyignore(): string;
99
- export declare function buildGitignore(): string;
100
- export declare function buildPublishWorkflowYml(): string;
101
- export declare function scaffoldCustomNode(options: ScaffoldOptions, deps?: AuthoringDeps): ScaffoldResult;
102
- interface ParsedPyproject {
103
- projectName?: string;
104
- version?: string;
105
- publisherId?: string;
106
- }
107
- /**
108
- * Extract just the fields publish needs from a pyproject.toml. Intentionally
109
- * minimal — we read [project].name/version and [tool.comfy].PublisherId without
110
- * a full TOML parser (no dep), tolerating common formatting.
111
- */
112
- export declare function parsePyproject(toml: string): ParsedPyproject;
113
- /** Parse a registry URL out of comfy-cli publish output, if present. */
114
- export declare function extractRegistryUrl(output: string): string | undefined;
115
- export declare function publishCustomNode(options: PublishOptions, deps?: AuthoringDeps): PublishResult;
116
- export {};
117
- //# sourceMappingURL=node-authoring.d.ts.map
@@ -1 +0,0 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