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/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: "execution_start";
11903
+ type: "progress";
11904
11904
  data: {
11905
- prompt_id: PromptID;
11905
+ value: number;
11906
+ max: number;
11906
11907
  };
11907
11908
  } | {
11908
- type: "execution_cached";
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: "executing";
11915
+ type: "execution_start";
11915
11916
  data: {
11916
11917
  prompt_id: PromptID;
11917
- node?: ComfyNodeId | null | undefined;
11918
11918
  };
11919
11919
  } | {
11920
- type: "progress";
11920
+ type: "execution_cached";
11921
11921
  data: {
11922
- value: number;
11923
- max: number;
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: "execution_start";
11978
+ type: "progress";
11979
11979
  data: {
11980
- prompt_id: PromptID;
11980
+ value: number;
11981
+ max: number;
11981
11982
  };
11982
11983
  } | {
11983
- type: "execution_cached";
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: "executing";
11990
+ type: "execution_start";
11990
11991
  data: {
11991
11992
  prompt_id: PromptID;
11992
- node?: ComfyNodeId | null | undefined;
11993
11993
  };
11994
11994
  } | {
11995
- type: "progress";
11995
+ type: "execution_cached";
11996
11996
  data: {
11997
- value: number;
11998
- max: number;
11997
+ nodes: ComfyNodeId[];
11998
+ prompt_id: PromptID;
11999
11999
  };
12000
12000
  } | {
12001
12001
  type: "progress_state";
package/dist/web.js CHANGED
@@ -101,7 +101,7 @@ function getComfyStorage() {
101
101
  }
102
102
  //#endregion
103
103
  //#region package.json
104
- var version = "2.4.2";
104
+ var version = "2.5.0";
105
105
  //#endregion
106
106
  //#region src/litegraph/LiteGraphLinkID.ts
107
107
  const asLiteGraphLinkID = (id) => id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comfy-ts",
3
- "version": "2.4.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": "^6.16.1",
114
- "mobx-react-lite": "^4.1.1",
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, observable, runInAction } from 'mobx'
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: observable.ref so switching workflows re-renders without proxying
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: observable.ref,
108
- hostOverride: observable.ref,
107
+ wf: observableRef,
108
+ hostOverride: observableRef,
109
109
  onExit: false,
110
110
  editor: false,
111
111
  picker: false,