comfy-ts 1.1.0 → 1.2.0

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 (48) hide show
  1. package/README.md +21 -8
  2. package/dist/cli.js +4 -4552
  3. package/dist/cli.js.map +1 -1
  4. package/dist/index.cjs +53 -12
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +49 -23
  7. package/dist/index.d.ts +49 -23
  8. package/dist/index.js +53 -12
  9. package/dist/index.js.map +1 -1
  10. package/dist/{run-tui-DZ22HDHI.js → run-tui-BAdizWsO.js} +722 -130
  11. package/dist/run-tui-BAdizWsO.js.map +1 -0
  12. package/dist/state-BYbxDgfr.js +5258 -0
  13. package/dist/state-BYbxDgfr.js.map +1 -0
  14. package/examples/README.md +6 -4
  15. package/examples/{01-txt2img.cflow.ts → rvion/01-txt2img.cflow.ts} +1 -1
  16. package/examples/{02-img2img-upload.cflow.ts → rvion/02-img2img-upload.cflow.ts} +1 -1
  17. package/examples/{03-export-workflow-json.cflow.ts → rvion/03-export-workflow-json.cflow.ts} +1 -1
  18. package/examples/{04-krea2-turbo-t2i.cflow.ts → rvion/04-krea2-turbo-t2i.cflow.ts} +2 -2
  19. package/examples/{05-comfy-cloud.cflow.ts → rvion/05-comfy-cloud.cflow.ts} +2 -2
  20. package/examples/rvion/06-qwen-image-edit.cflow.ts +89 -0
  21. package/package.json +4 -1
  22. package/src/cli/tui/components/CopyOverlay.tsx +25 -0
  23. package/src/cli/tui/components/Header.tsx +9 -4
  24. package/src/cli/tui/components/HostPanel.tsx +3 -2
  25. package/src/cli/tui/components/HostsOverlay.tsx +33 -0
  26. package/src/cli/tui/components/StatusBar.tsx +28 -9
  27. package/src/cli/tui/components/TreePanel.tsx +17 -7
  28. package/src/cli/tui/components/TuiApp.tsx +47 -5
  29. package/src/cli/tui/imagePicker/fsListing.ts +6 -4
  30. package/src/cli/tui/run-tui.tsx +47 -7
  31. package/src/cli/tui/state/DraftsSt.ts +3 -2
  32. package/src/cli/tui/state/ExecSt.ts +108 -12
  33. package/src/cli/tui/state/HostSt.ts +94 -10
  34. package/src/cli/tui/state/PickerSt.ts +8 -2
  35. package/src/cli/tui/state/QueueSt.ts +2 -2
  36. package/src/cli/tui/state/SettingsSt.ts +25 -7
  37. package/src/cli/tui/state/TreeSt.ts +139 -36
  38. package/src/cli/tui/state/TuiSt.ts +47 -6
  39. package/src/cli/tui/state/WorkflowsSt.ts +14 -2
  40. package/src/cli/tui/treeRows.ts +165 -0
  41. package/src/host/ComfyHost.ts +7 -0
  42. package/src/runner/ComfyWorkflowLayout.ts +6 -4
  43. package/src/state.ts +7 -1
  44. package/src/vars/ComfyVars.ts +25 -4
  45. package/src/vars/DefinedWorkflow.ts +21 -8
  46. package/dist/DefinedWorkflow-BYyu5dK9.js +0 -669
  47. package/dist/DefinedWorkflow-BYyu5dK9.js.map +0 -1
  48. package/dist/run-tui-DZ22HDHI.js.map +0 -1
package/README.md CHANGED
@@ -1,9 +1,14 @@
1
1
  # comfy-ts
2
2
 
3
- _the complete TypeScript toolkit for ComfyUI and generative AI. Fully type-safe SDK with autocomplete on every node, companion CLI, TUI, agentic docs, and 50+ examples. Design, run and deploy creative pipelines for image, video, audio, 3d and text on any ComfyUI, local, cloud or hosted._
3
+ _the ultimate ComfyUI toolkit for TypeScript: `SDK` + `CLI` + `TUI` + agent guide_
4
4
 
5
5
  [![CI](https://github.com/rvion/comfy-ts/actions/workflows/ci.yml/badge.svg)](https://github.com/rvion/comfy-ts/actions/workflows/ci.yml)
6
6
  [![npm version](https://img.shields.io/npm/v/comfy-ts.svg)](https://www.npmjs.com/package/comfy-ts)
7
+ [![npm downloads](https://img.shields.io/npm/dm/comfy-ts.svg)](https://www.npmjs.com/package/comfy-ts)
8
+ [![GitHub release](https://img.shields.io/github/v/release/rvion/comfy-ts)](https://github.com/rvion/comfy-ts/releases)
9
+ [![types](https://img.shields.io/npm/types/comfy-ts)](https://www.npmjs.com/package/comfy-ts)
10
+ [![license](https://img.shields.io/npm/l/comfy-ts.svg)](https://github.com/rvion/comfy-ts/blob/main/LICENSE)
11
+ [![sponsor](https://img.shields.io/github/sponsors/rvion?label=sponsor&logo=githubsponsors)](https://github.com/sponsors/rvion)
7
12
 
8
13
  **Everything ComfyUI, from TypeScript.** Build workflows in code with
9
14
  autocomplete on every node and model of your exact install. Run them on any
@@ -228,7 +233,7 @@ declare global {
228
233
  generated SDK for [Comfy Cloud](https://cloud.comfy.org) (5.9MB, 3574
229
234
  nodes), committed so you can browse it and typecheck graphs against it
230
235
  without any host.
231
- [`examples/05-comfy-cloud.cflow.ts`](examples/05-comfy-cloud.cflow.ts)
236
+ [`examples/rvion/05-comfy-cloud.cflow.ts`](examples/rvion/05-comfy-cloud.cflow.ts)
232
237
  runs against it live: `url` + `apiKey` host config, one env var, images
233
238
  back in seconds.
234
239
 
@@ -398,15 +403,16 @@ library:
398
403
  Every example is a runnable `*.cflow.ts` module: run it with bun, or just
399
404
  `bunx comfy-ts tui` — the TUI finds them all.
400
405
 
401
- Start with the didactic five:
406
+ Start with the didactic sequence in [`examples/rvion/`](examples/rvion/):
402
407
 
403
408
  | example | shows |
404
409
  | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
405
- | [`01-txt2img`](examples/01-txt2img.cflow.ts) | typed builder, vars, execution, downloaded outputs |
406
- | [`02-img2img-upload`](examples/02-img2img-upload.cflow.ts) | hash-named deduped upload, img2img, async build |
407
- | [`03-export-workflow-json`](examples/03-export-workflow-json.cflow.ts) | OFFLINE graph building, export api.json + readable workflow.json |
408
- | [`04-krea2-turbo-t2i`](examples/04-krea2-turbo-t2i.cflow.ts) | a real pipeline: krea2 turbo, lora stack, RMBG cutout → transparent png |
409
- | [`05-comfy-cloud`](examples/05-comfy-cloud.cflow.ts) | the same code on Comfy Cloud: `url` + `apiKey` host, typechecked against the committed catalog SDK |
410
+ | [`01-txt2img`](examples/rvion/01-txt2img.cflow.ts) | typed builder, vars, execution, downloaded outputs |
411
+ | [`02-img2img-upload`](examples/rvion/02-img2img-upload.cflow.ts) | hash-named deduped upload, img2img, async build |
412
+ | [`03-export-workflow-json`](examples/rvion/03-export-workflow-json.cflow.ts) | OFFLINE graph building, export api.json + readable workflow.json |
413
+ | [`04-krea2-turbo-t2i`](examples/rvion/04-krea2-turbo-t2i.cflow.ts) | a real pipeline: krea2 turbo, lora stack, RMBG cutout → transparent png |
414
+ | [`05-comfy-cloud`](examples/rvion/05-comfy-cloud.cflow.ts) | the same code on Comfy Cloud: `url` + `apiKey` host, typechecked against the committed catalog SDK |
415
+ | [`06-qwen-image-edit`](examples/rvion/06-qwen-image-edit.cflow.ts) | Qwen Image Edit 2511, lightning 4-step lora toggle |
410
416
 
411
417
  ### The model zoo: 46 cloud workflows, 32 model families
412
418
 
@@ -488,6 +494,13 @@ The glitter above sits on boring foundations:
488
494
  - [@saintno/comfyui-sdk](https://www.npmjs.com/package/@saintno/comfyui-sdk), polished API, but unsafe workflow building, no typed registry.
489
495
  - [comfyui-bun-client](https://github.com/KaruroChori/comfyui-bun-client), similar spirit, less codegen, not on npm.
490
496
 
497
+ ## Support
498
+
499
+ comfy-ts is free, MIT, and maintained for the long run. If it saves you
500
+ time or powers something you sell, consider
501
+ [sponsoring](https://github.com/sponsors/rvion), it keeps the grind loops
502
+ grinding.
503
+
491
504
  ## License
492
505
 
493
506
  MIT © [Rémi Vion](https://github.com/rvion)