comfy-ts 2.4.2 → 2.5.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/dist/cli.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +1 -1
- package/dist/{run-tui-BqNO9Ck0.js → run-tui-t2TRBN0H.js} +5 -5
- package/dist/{run-tui-BqNO9Ck0.js.map → run-tui-t2TRBN0H.js.map} +1 -1
- package/dist/{state-D9w1aJow.js → state-DY3Mp9Cl.js} +2 -2
- package/dist/{state-D9w1aJow.js.map → state-DY3Mp9Cl.js.map} +1 -1
- package/dist/web.d.ts +18 -18
- package/dist/web.js +1 -1
- package/package.json +3 -3
- package/src/cli/tui/state/TuiSt.ts +4 -4
package/dist/web.d.ts
CHANGED
|
@@ -11900,27 +11900,27 @@ declare const types$1: import("arktype").Module<{
|
|
|
11900
11900
|
};
|
|
11901
11901
|
PromptID: PromptID;
|
|
11902
11902
|
PromptRelated_WsMsg: {
|
|
11903
|
-
type: "
|
|
11903
|
+
type: "progress";
|
|
11904
11904
|
data: {
|
|
11905
|
-
|
|
11905
|
+
value: number;
|
|
11906
|
+
max: number;
|
|
11906
11907
|
};
|
|
11907
11908
|
} | {
|
|
11908
|
-
type: "
|
|
11909
|
+
type: "executing";
|
|
11909
11910
|
data: {
|
|
11910
|
-
nodes: ComfyNodeId[];
|
|
11911
11911
|
prompt_id: PromptID;
|
|
11912
|
+
node?: ComfyNodeId | null | undefined;
|
|
11912
11913
|
};
|
|
11913
11914
|
} | {
|
|
11914
|
-
type: "
|
|
11915
|
+
type: "execution_start";
|
|
11915
11916
|
data: {
|
|
11916
11917
|
prompt_id: PromptID;
|
|
11917
|
-
node?: ComfyNodeId | null | undefined;
|
|
11918
11918
|
};
|
|
11919
11919
|
} | {
|
|
11920
|
-
type: "
|
|
11920
|
+
type: "execution_cached";
|
|
11921
11921
|
data: {
|
|
11922
|
-
|
|
11923
|
-
|
|
11922
|
+
nodes: ComfyNodeId[];
|
|
11923
|
+
prompt_id: PromptID;
|
|
11924
11924
|
};
|
|
11925
11925
|
} | {
|
|
11926
11926
|
type: "progress_state";
|
|
@@ -11975,27 +11975,27 @@ declare const types$1: import("arktype").Module<{
|
|
|
11975
11975
|
data: string;
|
|
11976
11976
|
};
|
|
11977
11977
|
WsMsg: {
|
|
11978
|
-
type: "
|
|
11978
|
+
type: "progress";
|
|
11979
11979
|
data: {
|
|
11980
|
-
|
|
11980
|
+
value: number;
|
|
11981
|
+
max: number;
|
|
11981
11982
|
};
|
|
11982
11983
|
} | {
|
|
11983
|
-
type: "
|
|
11984
|
+
type: "executing";
|
|
11984
11985
|
data: {
|
|
11985
|
-
nodes: ComfyNodeId[];
|
|
11986
11986
|
prompt_id: PromptID;
|
|
11987
|
+
node?: ComfyNodeId | null | undefined;
|
|
11987
11988
|
};
|
|
11988
11989
|
} | {
|
|
11989
|
-
type: "
|
|
11990
|
+
type: "execution_start";
|
|
11990
11991
|
data: {
|
|
11991
11992
|
prompt_id: PromptID;
|
|
11992
|
-
node?: ComfyNodeId | null | undefined;
|
|
11993
11993
|
};
|
|
11994
11994
|
} | {
|
|
11995
|
-
type: "
|
|
11995
|
+
type: "execution_cached";
|
|
11996
11996
|
data: {
|
|
11997
|
-
|
|
11998
|
-
|
|
11997
|
+
nodes: ComfyNodeId[];
|
|
11998
|
+
prompt_id: PromptID;
|
|
11999
11999
|
};
|
|
12000
12000
|
} | {
|
|
12001
12001
|
type: "progress_state";
|
package/dist/web.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "comfy-ts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "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.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"comfyui",
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
"arktype": "^2.2.3",
|
|
111
111
|
"image-meta": "^0.2.2",
|
|
112
112
|
"ink": "^7.1.1",
|
|
113
|
-
"mobx": "^
|
|
114
|
-
"mobx-react-lite": "^
|
|
113
|
+
"mobx": "^7.0.0",
|
|
114
|
+
"mobx-react-lite": "^5.0.0",
|
|
115
115
|
"nanoid": "^6.0.0",
|
|
116
116
|
"pathe": "^2.0.3",
|
|
117
117
|
"react": "^19.2.8",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeAutoObservable,
|
|
1
|
+
import { makeAutoObservable, observableRef, runInAction } from 'mobx'
|
|
2
2
|
import { listWindow, type ListWindow } from 'src/cli/tui/listWindow.ts'
|
|
3
3
|
import type { SeedVar, ToggleVar, AnyVar } from 'src/vars/ComfyVars.ts'
|
|
4
4
|
import { ImagePickerSt } from 'src/cli/tui/imagePicker/ImagePickerSt.ts'
|
|
@@ -101,11 +101,11 @@ export class TuiSt {
|
|
|
101
101
|
} = {},
|
|
102
102
|
) {
|
|
103
103
|
this.wf = wf
|
|
104
|
-
// wf:
|
|
104
|
+
// wf: observableRef so switching workflows re-renders without proxying
|
|
105
105
|
// the foreign object; children manage their own observability
|
|
106
106
|
makeAutoObservable(this, {
|
|
107
|
-
wf:
|
|
108
|
-
hostOverride:
|
|
107
|
+
wf: observableRef,
|
|
108
|
+
hostOverride: observableRef,
|
|
109
109
|
onExit: false,
|
|
110
110
|
editor: false,
|
|
111
111
|
picker: false,
|