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 CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { g as fetchLoraList, h as writeLoraMirror, l as buildLoraMirror, p as readLoraMirror, v as lmModelName, y as lmTrainedWords } from "./DefinedWorkflow-CnzmQrBh.js";
3
- import { o as ComfySchema, r as readableStringify, t as ComfyTS } from "./state-D9w1aJow.js";
3
+ import { o as ComfySchema, r as readableStringify, t as ComfyTS } from "./state-DY3Mp9Cl.js";
4
4
  import { spawnSync } from "node:child_process";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmdirSync, writeFileSync } from "node:fs";
@@ -279,7 +279,7 @@ async function main() {
279
279
  const { runServe } = await import("./run-serve-D47Zas-a.js");
280
280
  return runServe(rest);
281
281
  }
282
- const { runTui } = await import("./run-tui-BqNO9Ck0.js");
282
+ const { runTui } = await import("./run-tui-t2TRBN0H.js");
283
283
  return runTui(rest);
284
284
  }
285
285
  console.log(HELP);
package/dist/index.cjs CHANGED
@@ -134,7 +134,7 @@ function createNodeStorage() {
134
134
  }
135
135
  //#endregion
136
136
  //#region package.json
137
- var version = "2.4.2";
137
+ var version = "2.5.0";
138
138
  //#endregion
139
139
  //#region src/litegraph/LiteGraphLinkID.ts
140
140
  const asLiteGraphLinkID = (id) => id;
package/dist/index.d.cts 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_cached";
11915
11916
  data: {
11917
+ nodes: ComfyNodeId[];
11916
11918
  prompt_id: PromptID;
11917
- node?: ComfyNodeId | null | undefined;
11918
11919
  };
11919
11920
  } | {
11920
- type: "progress";
11921
+ type: "execution_start";
11921
11922
  data: {
11922
- value: number;
11923
- max: number;
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_cached";
11990
11991
  data: {
11992
+ nodes: ComfyNodeId[];
11991
11993
  prompt_id: PromptID;
11992
- node?: ComfyNodeId | null | undefined;
11993
11994
  };
11994
11995
  } | {
11995
- type: "progress";
11996
+ type: "execution_start";
11996
11997
  data: {
11997
- value: number;
11998
- max: number;
11998
+ prompt_id: PromptID;
11999
11999
  };
12000
12000
  } | {
12001
12001
  type: "progress_state";
package/dist/index.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_cached";
11915
11916
  data: {
11917
+ nodes: ComfyNodeId[];
11916
11918
  prompt_id: PromptID;
11917
- node?: ComfyNodeId | null | undefined;
11918
11919
  };
11919
11920
  } | {
11920
- type: "progress";
11921
+ type: "execution_start";
11921
11922
  data: {
11922
- value: number;
11923
- max: number;
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_cached";
11990
11991
  data: {
11992
+ nodes: ComfyNodeId[];
11991
11993
  prompt_id: PromptID;
11992
- node?: ComfyNodeId | null | undefined;
11993
11994
  };
11994
11995
  } | {
11995
- type: "progress";
11996
+ type: "execution_start";
11996
11997
  data: {
11997
- value: number;
11998
- max: number;
11998
+ prompt_id: PromptID;
11999
11999
  };
12000
12000
  } | {
12001
12001
  type: "progress_state";
package/dist/index.js CHANGED
@@ -110,7 +110,7 @@ function createNodeStorage() {
110
110
  }
111
111
  //#endregion
112
112
  //#region package.json
113
- var version = "2.4.2";
113
+ var version = "2.5.0";
114
114
  //#endregion
115
115
  //#region src/litegraph/LiteGraphLinkID.ts
116
116
  const asLiteGraphLinkID = (id) => id;
@@ -1,12 +1,12 @@
1
1
  import { C as extractErrorMessage, D as logError, S as loraPreviewMapFrom, _ as fetchLoraPreviewBytes, a as getLoraKeyword, b as loraBasename, c as setLoraKeyword, d as getLoraPreviewUrl, f as loraMatchesFilter, g as fetchLoraList, i as clearLoraKeywordOverride, m as refreshLoraInfoCacheIfChanged, n as LorasVar, o as isLoraKeywordFromMirror, r as PromptVar, s as loraKeywordFromMirror, u as getLoraDisplayName, x as loraKey } from "./DefinedWorkflow-CnzmQrBh.js";
2
- import { a as importSharp, i as stripAnsi, n as settingsPathFor } from "./state-D9w1aJow.js";
2
+ import { a as importSharp, i as stripAnsi, n as settingsPathFor } from "./state-DY3Mp9Cl.js";
3
3
  import { a as assignFamilyColors, c as findDefinedWorkflow, i as listDraftsForFile, l as mergeWorkflowSources, n as draftKeyForFile, o as buildFileRows, s as familyOf, t as DraftsSt, u as scanCflowFiles } from "./DraftsSt-C1MbWnEp.js";
4
4
  import { spawn } from "node:child_process";
5
5
  import { fileURLToPath, pathToFileURL } from "node:url";
6
6
  import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, statSync, writeFileSync } from "node:fs";
7
7
  import { basename, dirname, join, resolve } from "pathe";
8
8
  import { imageMeta } from "image-meta";
9
- import { makeAutoObservable, observable, reaction, runInAction } from "mobx";
9
+ import { makeAutoObservable, observableRef, reaction, runInAction } from "mobx";
10
10
  import { Box, Text, measureElement, render, useApp, useInput, useStdin } from "ink";
11
11
  import sharp from "sharp";
12
12
  import { observer } from "mobx-react-lite";
@@ -4160,8 +4160,8 @@ var TuiSt = class {
4160
4160
  this.varsViewH = 0;
4161
4161
  this.wf = wf;
4162
4162
  makeAutoObservable(this, {
4163
- wf: observable.ref,
4164
- hostOverride: observable.ref,
4163
+ wf: observableRef,
4164
+ hostOverride: observableRef,
4165
4165
  onExit: false,
4166
4166
  editor: false,
4167
4167
  picker: false,
@@ -4411,4 +4411,4 @@ async function runTui(args) {
4411
4411
  //#endregion
4412
4412
  export { runTui };
4413
4413
 
4414
- //# sourceMappingURL=run-tui-BqNO9Ck0.js.map
4414
+ //# sourceMappingURL=run-tui-t2TRBN0H.js.map