comfy-ts 2.20.2 → 2.22.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 (89) hide show
  1. package/README.md +17 -1
  2. package/dist/{ServeApp-B469W26E.js → ServeApp-DuxYdaZZ.js} +142 -7
  3. package/dist/ServeApp-DuxYdaZZ.js.map +1 -0
  4. package/dist/cli.js +5 -5
  5. package/dist/{exampleAssets-yBLaKXLq.js → exampleAssets-1NHndnNB.js} +59 -17
  6. package/dist/exampleAssets-1NHndnNB.js.map +1 -0
  7. package/dist/{findDefinedWorkflow-B90-xFxX.js → findDefinedWorkflow-CRsBTTJK.js} +2 -2
  8. package/dist/{findDefinedWorkflow-B90-xFxX.js.map → findDefinedWorkflow-CRsBTTJK.js.map} +1 -1
  9. package/dist/index.cjs +118 -19
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +90 -9
  12. package/dist/index.d.ts +90 -9
  13. package/dist/index.js +117 -20
  14. package/dist/index.js.map +1 -1
  15. package/dist/{run-run-C-dDD9Dc.js → run-run-Y5ZI48vV.js} +5 -5
  16. package/dist/{run-run-C-dDD9Dc.js.map → run-run-Y5ZI48vV.js.map} +1 -1
  17. package/dist/{run-serve-CsEYPGm9.js → run-serve-CICU_wTL.js} +4 -4
  18. package/dist/{run-serve-CsEYPGm9.js.map → run-serve-CICU_wTL.js.map} +1 -1
  19. package/dist/{run-tui-bsmja4hi.js → run-tui-CViJXsHL.js} +4 -4
  20. package/dist/{run-tui-bsmja4hi.js.map → run-tui-CViJXsHL.js.map} +1 -1
  21. package/dist/{schemaDrift-DaWsE-mt.js → schemaDrift-CzjaIwZX.js} +53 -20
  22. package/dist/schemaDrift-CzjaIwZX.js.map +1 -0
  23. package/dist/serve-web.js +204 -47
  24. package/dist/web.d.ts +90 -9
  25. package/dist/web.js +117 -20
  26. package/dist/web.js.map +1 -1
  27. package/examples/README.md +2 -0
  28. package/examples/depth-explorer/models.ts +722 -0
  29. package/examples/depth-explorer/serve.ts +140 -0
  30. package/examples/depth-explorer/thumbs/bae.webp +0 -0
  31. package/examples/depth-explorer/thumbs/da3-mono-large.webp +0 -0
  32. package/examples/depth-explorer/thumbs/dav1-vitl.webp +0 -0
  33. package/examples/depth-explorer/thumbs/dav2-vitl.webp +0 -0
  34. package/examples/depth-explorer/thumbs/dsine.webp +0 -0
  35. package/examples/depth-explorer/thumbs/iid-albedo.webp +0 -0
  36. package/examples/depth-explorer/thumbs/iid-metalness.webp +0 -0
  37. package/examples/depth-explorer/thumbs/iid-roughness.webp +0 -0
  38. package/examples/depth-explorer/thumbs/iid-shading.webp +0 -0
  39. package/examples/depth-explorer/thumbs/iid-specular.webp +0 -0
  40. package/examples/depth-explorer/thumbs/leres.webp +0 -0
  41. package/examples/depth-explorer/thumbs/lotus-depth.webp +0 -0
  42. package/examples/depth-explorer/thumbs/marigold2-albedo.webp +0 -0
  43. package/examples/depth-explorer/thumbs/marigold2-depth.webp +0 -0
  44. package/examples/depth-explorer/thumbs/marigold2-normal.webp +0 -0
  45. package/examples/depth-explorer/thumbs/metric3d-depth.webp +0 -0
  46. package/examples/depth-explorer/thumbs/metric3d-normal.webp +0 -0
  47. package/examples/depth-explorer/thumbs/midas-normal.webp +0 -0
  48. package/examples/depth-explorer/thumbs/midas.webp +0 -0
  49. package/examples/depth-explorer/thumbs/moge2-depth.webp +0 -0
  50. package/examples/depth-explorer/thumbs/moge2-normal.webp +0 -0
  51. package/examples/depth-explorer/thumbs/zoe-da.webp +0 -0
  52. package/examples/depth-explorer/thumbs/zoe.webp +0 -0
  53. package/examples/depth-explorer/web/App.tsx +457 -0
  54. package/examples/depth-explorer/web/gl.ts +202 -0
  55. package/examples/depth-explorer/web/index.html +14 -0
  56. package/examples/depth-explorer/web/main.tsx +19 -0
  57. package/examples/depth-explorer/web/pixels.ts +86 -0
  58. package/examples/depth-explorer/web/state.ts +329 -0
  59. package/examples/depth-explorer/web/styles.css +366 -0
  60. package/examples/depth-explorer/web/tsconfig.json +16 -0
  61. package/examples/rvion/17-relight.cflow.ts +110 -0
  62. package/package.json +3 -2
  63. package/src/cli/serve/ServeApp.ts +79 -4
  64. package/src/cli/serve/describeVar.ts +12 -1
  65. package/src/cli/serve/resultHistory.ts +6 -1
  66. package/src/cli/serve/thumbs.ts +66 -0
  67. package/src/cli/serve/web/api.ts +5 -1
  68. package/src/cli/serve/web/components/Gallery.tsx +2 -0
  69. package/src/cli/serve/web/components/controls/BasicControls.tsx +14 -17
  70. package/src/cli/serve/web/components/controls/MediaControl.tsx +62 -9
  71. package/src/cli/serve/web/components/controls/RichSelect.tsx +262 -0
  72. package/src/cli/serve/web/state/RunSt.poll.test.ts +4 -1
  73. package/src/cli/serve/web/state/choiceButtons.ts +26 -2
  74. package/src/cli/serve/web/styles.ts +39 -0
  75. package/src/cli/serve/web/widgets/OutputWidgets.tsx +19 -0
  76. package/src/cli/serve/web/widgets/RelightSt.ts +113 -0
  77. package/src/cli/serve/web/widgets/RelightWidget.tsx +305 -0
  78. package/src/cli/serve/web/widgets/relightGl.ts +305 -0
  79. package/src/cli/serve/web/widgets/widgetStyles.ts +19 -0
  80. package/src/coreExports.ts +9 -0
  81. package/src/host/ComfyHost.ts +21 -0
  82. package/src/host/leastBusy.ts +37 -0
  83. package/src/state.ts +6 -0
  84. package/src/vars/ComfyVars.ts +32 -2
  85. package/src/vars/DefinedWorkflow.ts +42 -21
  86. package/src/vars/outputWidgets.ts +47 -0
  87. package/dist/ServeApp-B469W26E.js.map +0 -1
  88. package/dist/exampleAssets-yBLaKXLq.js.map +0 -1
  89. package/dist/schemaDrift-DaWsE-mt.js.map +0 -1
@@ -18,6 +18,8 @@ Every `*.cflow.ts` file here is a runnable workflow module. Run it directly with
18
18
  - `rvion/16-tts-voice-design.cflow.ts`: a new voice from a written description (needs TTS-Audio-Suite, Qwen3-TTS VoiceDesign). It speaks one sample line in that voice, and the clip plus that line are what `15-tts-voice-clone` takes as `voice` and `transcript`. From the command line the flow is two runs: `comfy-ts run tts-voice-design --description "…" --line "…" --out voices/sailor.flac` writes the clip and `voices/sailor.txt`, then `comfy-ts run tts-voice-clone --voice voices/sailor.flac --prompt "…" --out lines/001.flac` speaks any line in it.
19
19
  - `comfy-cloud/<family>-<mode>.cflow.ts`: the model zoo, 73 files for 43 model families. One clean example per model family × mode (`t2i`, `i2i`, `t2v`, `i2v`, `t2a`), each mirroring an official ComfyUI template (flux, qwen-image, z-image, wan, ltx, hidream, ace-step, stable-audio, …). A suffix after the mode names a variant of the same family (`flux2-t2i-dev`). All share `comfy-cloud/cloudHost.ts`. The full list by mode is in the [main README](../README.md#the-model-zoo-73-cloud-workflows-43-model-families).
20
20
  - `web/`: the browser entry `comfy-ts/web` in a runnable page (`bun examples/web/serve.ts`).
21
+ - `rvion/17-relight.cflow.ts`: relight a photo in the web panel. It runs one depth model and one normal model (a choice each) and, behind two toggles, Marigold material maps (albedo, roughness, metalness, reflections). Every map is tagged, and the module names the panel's `relight` widget, which draws the photo lit by a point light you drag over it: left/right, up/down, the wheel for nearer/farther, with shadows from the depth map and drifting light motes. Needs the ControlNet preprocessors pack and, for materials, [ComfyUI-Marigold](https://github.com/kijai/ComfyUI-Marigold).
22
+ - `depth-explorer/`: a small web app that runs every depth, normal and material estimator your host has on one image and compares them: a grid, a wipe slider against the source or another model, a 3D relief of each depth map, and the relight widget fed with the best maps of the grid (`bun examples/depth-explorer/serve.ts [--samples <dir>]`, then http://127.0.0.1:8292). Depth Anything 3, MoGe-2, Marigold v2, Lotus, Depth Anything V2, Metric3D v2, DSINE, Marigold IID and the ControlNet preprocessors; a model your host lacks shows the weight files it needs, with their download links. One ComfyUI graph per model lives in `depth-explorer/models.ts`.
21
23
 
22
24
  ## Cloud API key
23
25