comfy-ts 2.10.0 → 2.11.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 (45) hide show
  1. package/dist/{LogsSt-DFxzQfDc.js → LogsSt-qtFzOKpu.js} +2 -2
  2. package/dist/{LogsSt-DFxzQfDc.js.map → LogsSt-qtFzOKpu.js.map} +1 -1
  3. package/dist/cli.js +4 -4
  4. package/dist/index.cjs +93 -1
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +19 -0
  7. package/dist/index.d.ts +19 -0
  8. package/dist/index.js +93 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/{run-serve-_nrvJYyt.js → run-serve-BK7BA2dn.js} +91 -3
  11. package/dist/run-serve-BK7BA2dn.js.map +1 -0
  12. package/dist/{run-tui-Atvf9vb3.js → run-tui-CQyvMf0N.js} +36 -4
  13. package/dist/run-tui-CQyvMf0N.js.map +1 -0
  14. package/dist/{DefinedWorkflow-BatWaZO1.js → schemaDrift-DjjEtwfx.js} +176 -2
  15. package/dist/schemaDrift-DjjEtwfx.js.map +1 -0
  16. package/dist/serve-web.js +32 -16
  17. package/dist/{state-6RFDIQwJ.js → state--wrz0BQc.js} +14 -3
  18. package/dist/{state-6RFDIQwJ.js.map → state--wrz0BQc.js.map} +1 -1
  19. package/dist/web.d.ts +19 -0
  20. package/dist/web.js +93 -1
  21. package/dist/web.js.map +1 -1
  22. package/examples/comfy-cloud/capybara-i2v.cflow.ts +2 -0
  23. package/examples/comfy-cloud/wan22-5b-t2v.cflow.ts +2 -0
  24. package/examples/comfy-cloud/wan22-i2v.cflow.ts +2 -0
  25. package/examples/comfy-cloud/wan22-t2v.cflow.ts +2 -0
  26. package/examples/rvion/07-local-llm-text-gen.cflow.ts +2 -2
  27. package/package.json +4 -2
  28. package/src/cli/serve/ServeApp.ts +94 -0
  29. package/src/cli/serve/describeVar.ts +7 -0
  30. package/src/cli/serve/favicon.ts +3 -0
  31. package/src/cli/serve/web/api.ts +12 -0
  32. package/src/cli/serve/web/components/VarsForm.tsx +18 -7
  33. package/src/cli/serve/web/components/controls/LorasControl.tsx +102 -6
  34. package/src/cli/serve/web/state/WebSt.ts +79 -0
  35. package/src/cli/serve/web/state/loraSort.ts +39 -0
  36. package/src/cli/serve/web/styles.ts +15 -0
  37. package/src/cli/tui/components/Header.tsx +2 -0
  38. package/src/cli/tui/state/HostSt.ts +34 -0
  39. package/src/host/ComfyHost.ts +15 -0
  40. package/src/host/loraInfoCache.ts +64 -0
  41. package/src/host/loraManagerApi.ts +27 -0
  42. package/src/host/schemaDrift.ts +87 -0
  43. package/dist/DefinedWorkflow-BatWaZO1.js.map +0 -1
  44. package/dist/run-serve-_nrvJYyt.js.map +0 -1
  45. package/dist/run-tui-Atvf9vb3.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { G as resolveComfyStorage, H as isRecord$1, J as logInfo, K as isQuiet, Q as sha1HexOfString, R as ansi, U as bang, V as extractErrorMessage, W as getComfyStorage, X as statelessRegex, Y as logSuccess, Z as sha1Hex, q as logError, t as DefinedWorkflow } from "./DefinedWorkflow-BatWaZO1.js";
1
+ import { $ as resolveComfyStorage, K as ansi, Q as getComfyStorage, X as isRecord$1, Y as extractErrorMessage, Z as bang, a as DefinedWorkflow, at as sha1Hex, et as isQuiet, it as statelessRegex, n as diffSchemas, nt as logInfo, ot as sha1HexOfString, rt as logSuccess, t as MODEL_LISTS, tt as logError } from "./schemaDrift-DjjEtwfx.js";
2
2
  import { basename, join } from "pathe";
3
3
  import { scope, type } from "arktype";
4
4
  import { nanoid } from "nanoid";
@@ -850,7 +850,7 @@ var ComfySchema = class {
850
850
  };
851
851
  //#endregion
852
852
  //#region package.json
853
- var version = "2.10.0";
853
+ var version = "2.11.0";
854
854
  //#endregion
855
855
  //#region src/litegraph/LiteGraphLinkID.ts
856
856
  const asLiteGraphLinkID = (id) => id;
@@ -4035,6 +4035,17 @@ var ComfyHost = class {
4035
4035
  }, { apiPrefix: false });
4036
4036
  if (!res.ok) throw new Error(`PATCH /internal/logs/subscribe failed: ${res.status}`);
4037
4037
  };
4038
+ this.checkSchemaDrift = async (p) => {
4039
+ const loaded = this.schema.data.spec;
4040
+ const live = {};
4041
+ if (p.full) Object.assign(live, await this.fetchJSON_("/object_info"));
4042
+ else for (const m of MODEL_LISTS) if (loaded[m.node] != null) Object.assign(live, await this.fetchJSON_(`/object_info/${m.node}`));
4043
+ return diffSchemas({
4044
+ loaded,
4045
+ live,
4046
+ full: p.full
4047
+ });
4048
+ };
4038
4049
  this.fetchJSON_ = async (route) => {
4039
4050
  const base = this.getServerHostHTTP();
4040
4051
  const res = await this.fetch(route);
@@ -5005,4 +5016,4 @@ var ComfyTS = class ComfyTS {
5005
5016
  //#endregion
5006
5017
  export { ComfySchema as a, importSharp as i, settingsPathFor as n, readableStringify as r, ComfyTS as t };
5007
5018
 
5008
- //# sourceMappingURL=state-6RFDIQwJ.js.map
5019
+ //# sourceMappingURL=state--wrz0BQc.js.map