comfy-ts 0.2.0 → 0.3.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.
- package/LICENSE +21 -0
- package/README.md +363 -0
- package/dist/cli.js +764 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +4128 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +9862 -0
- package/dist/index.d.ts +9846 -58
- package/dist/index.js +4049 -2
- package/dist/index.js.map +1 -1
- package/dist/log-CdfgILde.js +10 -0
- package/dist/log-CdfgILde.js.map +1 -0
- package/dist/run-tui-Io8Xea0L.js +3340 -0
- package/dist/run-tui-Io8Xea0L.js.map +1 -0
- package/package.json +104 -75
- package/src/cli/comfy-ts-cli.ts +36 -0
- package/src/cli/gen.ts +47 -0
- package/src/cli/outline.ts +82 -0
- package/src/cli/tui/components/DraftsOverlay.tsx +44 -0
- package/src/cli/tui/components/EditField.tsx +27 -0
- package/src/cli/tui/components/Header.tsx +51 -0
- package/src/cli/tui/components/HostPanel.tsx +37 -0
- package/src/cli/tui/components/LorasOverlay.tsx +49 -0
- package/src/cli/tui/components/OverlayList.tsx +25 -0
- package/src/cli/tui/components/PickerOverlays.tsx +66 -0
- package/src/cli/tui/components/PreviewPanel.tsx +33 -0
- package/src/cli/tui/components/PromptOverlay.tsx +16 -0
- package/src/cli/tui/components/StatusBar.tsx +165 -0
- package/src/cli/tui/components/TextOverlay.tsx +72 -0
- package/src/cli/tui/components/TreePanel.tsx +51 -0
- package/src/cli/tui/components/TuiApp.tsx +223 -0
- package/src/cli/tui/components/VarsPanel.tsx +86 -0
- package/src/cli/tui/findDefinedWorkflow.ts +16 -0
- package/src/cli/tui/keys.ts +20 -0
- package/src/cli/tui/protocolImagePainter.ts +59 -0
- package/src/cli/tui/run-tui.tsx +73 -0
- package/src/cli/tui/state/DraftsSt.ts +273 -0
- package/src/cli/tui/state/EditorSt.ts +289 -0
- package/src/cli/tui/state/ExecSt.ts +170 -0
- package/src/cli/tui/state/HostSt.ts +107 -0
- package/src/cli/tui/state/LorasSt.ts +185 -0
- package/src/cli/tui/state/PickerSt.ts +112 -0
- package/src/cli/tui/state/PreviewSt.ts +138 -0
- package/src/cli/tui/state/QueueSt.ts +59 -0
- package/src/cli/tui/state/SettingsSt.ts +73 -0
- package/src/cli/tui/state/TreeSt.ts +122 -0
- package/src/cli/tui/state/TuiSt.ts +169 -0
- package/src/cli/tui/state/WorkflowsSt.ts +92 -0
- package/src/cli/tui-env.ts +8 -0
- package/src/errors/InvalidPromptError.ts +12 -0
- package/src/graph/ComfyNode.ts +403 -0
- package/src/graph/ComfyNodeID.ts +28 -0
- package/src/graph/ComfyNodeOutput.ts +16 -0
- package/src/graph/NodeSlotSize.ts +4 -0
- package/src/graph/autoValue.ts +17 -0
- package/src/host/ComfyHost.ts +646 -0
- package/src/host/ComfyInstallType.ts +15 -0
- package/src/host/ComfyManager.ts +232 -0
- package/src/host/ComfyUploader.ts +110 -0
- package/src/host/ComfyWorkflowBuilder.ts +60 -0
- package/src/host/Requirements.ts +55 -0
- package/src/host/ResilientWebsocket.ts +147 -0
- package/src/host/loraManagerApi.ts +98 -0
- package/src/image-utils/_getPngMetadata.ts +53 -0
- package/src/image-utils/_getWebpMetadata.ts +38 -0
- package/src/image-utils/_parseExifData.ts +53 -0
- package/src/index.ts +89 -0
- package/src/litegraph/LiteGraphGroup.ts +22 -0
- package/src/litegraph/LiteGraphJSON.ts +46 -0
- package/src/litegraph/LiteGraphLink.ts +23 -0
- package/src/litegraph/LiteGraphLinkID.ts +6 -0
- package/src/litegraph/LiteGraphNode.ts +69 -0
- package/src/litegraph/LiteGraphNodeInput.ts +27 -0
- package/src/litegraph/LiteGraphNodeOutput.ts +23 -0
- package/src/litegraph/LiteGraphSlotIndex.ts +6 -0
- package/src/litegraph/convertFlowToLiteGraphJSON.ts +114 -0
- package/src/manager/ComfyRegistry.ts +124 -0
- package/src/manager/generated/KnownComfyCustomNodeName.ts +19280 -0
- package/src/manager/generated/KnownComfyPluginTitle.ts +5130 -0
- package/src/manager/generated/KnownComfyPluginURL.ts +2589 -0
- package/src/manager/generated/KnownModel_Base.ts +126 -0
- package/src/manager/generated/KnownModel_FileName.ts +2287 -0
- package/src/manager/generated/KnownModel_Name.ts +2287 -0
- package/src/manager/generated/KnownModel_SavePath.ts +263 -0
- package/src/manager/generated/KnownModel_Type.ts +97 -0
- package/src/manager/json/alter-list.json +224 -0
- package/src/manager/json/custom-node-list.extra.ts +13 -0
- package/src/manager/json/custom-node-list.json +21948 -0
- package/src/manager/json/extension-node-map.json +31282 -0
- package/src/manager/json/github-stats.json +12602 -0
- package/src/manager/json/model-list.extra.ts +26 -0
- package/src/manager/json/model-list.json +5052 -0
- package/src/manager/loaders/step1_downloadComfyManagerJSONs.ts +56 -0
- package/src/manager/loaders/step2_custom-node-list-loader.ts +149 -0
- package/src/manager/loaders/step3_extension-node-map-loader.ts +189 -0
- package/src/manager/loaders/step4_model-list-loader.ts +159 -0
- package/src/manager/script-update-manager.bun.ts +18 -0
- package/src/manager/types/ComfyManagerAPIFetchPolicy.ts +9 -0
- package/src/manager/types/ComfyManagerAPIModelList.ts +10 -0
- package/src/manager/types/ComfyManagerAPIPluginList.ts +11 -0
- package/src/manager/types/ComfyManagerFileModelInfo.ts +5 -0
- package/src/manager/types/ComfyManagerFilePluginContent.ts +13 -0
- package/src/manager/types/ComfyManagerFilePluginList.ts +5 -0
- package/src/manager/types/ComfyManagerModelInfo.ts +18 -0
- package/src/manager/types/ComfyManagerPluginContentMetadata.ts +16 -0
- package/src/manager/types/ComfyManagerPluginEnums.ts +8 -0
- package/src/manager/types/ComfyManagerPluginInfo.ts +50 -0
- package/src/runner/ComfyExecution.ts +301 -0
- package/src/runner/ComfyExecutionStatus.ts +2 -0
- package/src/runner/ComfyWorkflow.ts +395 -0
- package/src/runner/ComfyWorkflowLayout.ts +96 -0
- package/src/runner/ComfyWsApi.ts +159 -0
- package/src/runner/MediaImage.ts +262 -0
- package/src/sdk-generator/ComfyNodeSchema.ts +79 -0
- package/src/sdk-generator/ComfySchema.ts +369 -0
- package/src/sdk-generator/ComfyUIObjectInfoTypes.ts +95 -0
- package/src/sdk-generator/Primitives.ts +76 -0
- package/src/sdk-generator/_getUnionNameBasedOnFirstFoundEnumName.ts +39 -0
- package/src/sdk-generator/_pythonModuleToNamespace.ts +27 -0
- package/src/sdk-generator/_toQualifiedNodeKey.ts +5 -0
- package/src/sdk-generator/comfy-api-json.ts +16 -0
- package/src/sdk-generator/comfyui-sdk-codegen.ts +287 -0
- package/src/sdk-generator/comfyui-types.ts +56 -0
- package/src/sdk-generator/litegraphToApiRequestPayload.ts +157 -0
- package/src/ssh-host-manager/ssh-config-manager.ts +89 -0
- package/src/ssh-host-manager/ssh-config.windows.md +32 -0
- package/src/ssh-host-manager/ssh-manager.ts +129 -0
- package/src/state.ts +136 -0
- package/src/types/comfy-sdk.ts +106 -0
- package/src/types/index.ts +55 -0
- package/src/utils/CodeBuffer.ts +61 -0
- package/src/utils/ComfyColors.ts +38 -0
- package/src/utils/ansi.ts +26 -0
- package/src/utils/ansiImage.ts +36 -0
- package/src/utils/bang.ts +39 -0
- package/src/utils/deepCopyNaive.ts +1 -0
- package/src/utils/downloadFile.ts +77 -0
- package/src/utils/escapeJSKey.ts +32 -0
- package/src/utils/exhaust.ts +4 -0
- package/src/utils/extractErrorMessage.ts +11 -0
- package/src/utils/fuzzyMatch.ts +8 -0
- package/src/utils/githubRegexes.ts +2 -0
- package/src/utils/hashArrayBuffer.ts +6 -0
- package/src/utils/log.ts +9 -0
- package/src/utils/loraTag.ts +10 -0
- package/src/utils/printArkResultInConsole.ts +16 -0
- package/src/utils/softValidate.ts +8 -0
- package/src/utils/stringifyReadable.ts +32 -0
- package/src/utils/toposort.ts +59 -0
- package/src/utils/tryExtracting.ts +41 -0
- package/src/utils/writeFile.ts +16 -0
- package/src/vars/ComfyVars.ts +531 -0
- package/src/vars/DefinedWorkflow.ts +112 -0
- package/src/vars/loraKeywords.ts +56 -0
- package/dist/index.d.mts +0 -74
- package/dist/index.mjs +0 -3
- package/dist/index.mjs.map +0 -1
- package/readme.md +0 -40
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// prettier-ignore
|
|
2
|
+
export type KnownModel_Base =
|
|
3
|
+
| "FLUX.1" // x 48
|
|
4
|
+
| "SD3" // x 8
|
|
5
|
+
| "SDXL" // x 90
|
|
6
|
+
| "SD1.x" // x 26
|
|
7
|
+
| "upscale" // x 14
|
|
8
|
+
| "deepbump" // x 1
|
|
9
|
+
| "face_restore" // x 3
|
|
10
|
+
| "SVD" // x 2
|
|
11
|
+
| "zero123" // x 5
|
|
12
|
+
| "SD1.5" // x 68
|
|
13
|
+
| "Stable Cascade" // x 13
|
|
14
|
+
| "t5" // x 16
|
|
15
|
+
| "Cosmos-1.0" // x 5
|
|
16
|
+
| "t5-base" // x 1
|
|
17
|
+
| "clip" // x 4
|
|
18
|
+
| "SD2" // x 2
|
|
19
|
+
| "SD2.1" // x 5
|
|
20
|
+
| "SSD-1B" // x 1
|
|
21
|
+
| "segmind-vega" // x 2
|
|
22
|
+
| "sigclip" // x 1
|
|
23
|
+
| "ViT-G" // x 2
|
|
24
|
+
| "ViT-L" // x 2
|
|
25
|
+
| "ViT-H" // x 1
|
|
26
|
+
| "SAM" // x 4
|
|
27
|
+
| "SEECODER" // x 3
|
|
28
|
+
| "Ultralytics" // x 16
|
|
29
|
+
| "MotionCtrl" // x 1
|
|
30
|
+
| "Kolors" // x 6
|
|
31
|
+
| "GFPGAN" // x 1
|
|
32
|
+
| "CodeFormer" // x 1
|
|
33
|
+
| "facexlib" // x 4
|
|
34
|
+
| "inswapper" // x 10
|
|
35
|
+
| "blip_model" // x 1
|
|
36
|
+
| "DINO" // x 2
|
|
37
|
+
| "DynamiCrafter" // x 2
|
|
38
|
+
| "Depth-FM" // x 2
|
|
39
|
+
| "SUPIR" // x 4
|
|
40
|
+
| "RAM" // x 3
|
|
41
|
+
| "RGT" // x 6
|
|
42
|
+
| "SD3.5" // x 3
|
|
43
|
+
| "ToonCrafter" // x 1
|
|
44
|
+
| "depthanything" // x 6
|
|
45
|
+
| "pixart-sigma" // x 3
|
|
46
|
+
| "pixart-alpha" // x 1
|
|
47
|
+
| "Hunyuan-DiT" // x 3
|
|
48
|
+
| "Hunyuan Video" // x 3
|
|
49
|
+
| "LLaVA-Llama-3" // x 3
|
|
50
|
+
| "depth-pro" // x 1
|
|
51
|
+
| "lotus" // x 7
|
|
52
|
+
| "ChatGLM3" // x 3
|
|
53
|
+
| "MoGe" // x 2
|
|
54
|
+
| "LTX-Video" // x 8
|
|
55
|
+
| "efficient_sam" // x 2
|
|
56
|
+
| "CustomNet" // x 2
|
|
57
|
+
| "Janus-Pro" // x 2
|
|
58
|
+
| "Wan2.1" // x 15
|
|
59
|
+
| "clip_vision_h" // x 1
|
|
60
|
+
| "umt5_xxl" // x 2
|
|
61
|
+
| "FramePackI2V" // x 1
|
|
62
|
+
| "LBM" // x 1
|
|
63
|
+
|
|
64
|
+
// prettier-ignore
|
|
65
|
+
export const knownModel_Base: KnownModel_Base[] = [
|
|
66
|
+
"FLUX.1" , // x 48
|
|
67
|
+
"SD3" , // x 8
|
|
68
|
+
"SDXL" , // x 90
|
|
69
|
+
"SD1.x" , // x 26
|
|
70
|
+
"upscale" , // x 14
|
|
71
|
+
"deepbump" , // x 1
|
|
72
|
+
"face_restore" , // x 3
|
|
73
|
+
"SVD" , // x 2
|
|
74
|
+
"zero123" , // x 5
|
|
75
|
+
"SD1.5" , // x 68
|
|
76
|
+
"Stable Cascade" , // x 13
|
|
77
|
+
"t5" , // x 16
|
|
78
|
+
"Cosmos-1.0" , // x 5
|
|
79
|
+
"t5-base" , // x 1
|
|
80
|
+
"clip" , // x 4
|
|
81
|
+
"SD2" , // x 2
|
|
82
|
+
"SD2.1" , // x 5
|
|
83
|
+
"SSD-1B" , // x 1
|
|
84
|
+
"segmind-vega" , // x 2
|
|
85
|
+
"sigclip" , // x 1
|
|
86
|
+
"ViT-G" , // x 2
|
|
87
|
+
"ViT-L" , // x 2
|
|
88
|
+
"ViT-H" , // x 1
|
|
89
|
+
"SAM" , // x 4
|
|
90
|
+
"SEECODER" , // x 3
|
|
91
|
+
"Ultralytics" , // x 16
|
|
92
|
+
"MotionCtrl" , // x 1
|
|
93
|
+
"Kolors" , // x 6
|
|
94
|
+
"GFPGAN" , // x 1
|
|
95
|
+
"CodeFormer" , // x 1
|
|
96
|
+
"facexlib" , // x 4
|
|
97
|
+
"inswapper" , // x 10
|
|
98
|
+
"blip_model" , // x 1
|
|
99
|
+
"DINO" , // x 2
|
|
100
|
+
"DynamiCrafter" , // x 2
|
|
101
|
+
"Depth-FM" , // x 2
|
|
102
|
+
"SUPIR" , // x 4
|
|
103
|
+
"RAM" , // x 3
|
|
104
|
+
"RGT" , // x 6
|
|
105
|
+
"SD3.5" , // x 3
|
|
106
|
+
"ToonCrafter" , // x 1
|
|
107
|
+
"depthanything" , // x 6
|
|
108
|
+
"pixart-sigma" , // x 3
|
|
109
|
+
"pixart-alpha" , // x 1
|
|
110
|
+
"Hunyuan-DiT" , // x 3
|
|
111
|
+
"Hunyuan Video" , // x 3
|
|
112
|
+
"LLaVA-Llama-3" , // x 3
|
|
113
|
+
"depth-pro" , // x 1
|
|
114
|
+
"lotus" , // x 7
|
|
115
|
+
"ChatGLM3" , // x 3
|
|
116
|
+
"MoGe" , // x 2
|
|
117
|
+
"LTX-Video" , // x 8
|
|
118
|
+
"efficient_sam" , // x 2
|
|
119
|
+
"CustomNet" , // x 2
|
|
120
|
+
"Janus-Pro" , // x 2
|
|
121
|
+
"Wan2.1" , // x 15
|
|
122
|
+
"clip_vision_h" , // x 1
|
|
123
|
+
"umt5_xxl" , // x 2
|
|
124
|
+
"FramePackI2V" , // x 1
|
|
125
|
+
"LBM" , // x 1
|
|
126
|
+
]
|