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.
- package/dist/{LogsSt-DFxzQfDc.js → LogsSt-qtFzOKpu.js} +2 -2
- package/dist/{LogsSt-DFxzQfDc.js.map → LogsSt-qtFzOKpu.js.map} +1 -1
- package/dist/cli.js +4 -4
- package/dist/index.cjs +93 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +93 -1
- package/dist/index.js.map +1 -1
- package/dist/{run-serve-_nrvJYyt.js → run-serve-BK7BA2dn.js} +91 -3
- package/dist/run-serve-BK7BA2dn.js.map +1 -0
- package/dist/{run-tui-Atvf9vb3.js → run-tui-CQyvMf0N.js} +36 -4
- package/dist/run-tui-CQyvMf0N.js.map +1 -0
- package/dist/{DefinedWorkflow-BatWaZO1.js → schemaDrift-DjjEtwfx.js} +176 -2
- package/dist/schemaDrift-DjjEtwfx.js.map +1 -0
- package/dist/serve-web.js +32 -16
- package/dist/{state-6RFDIQwJ.js → state--wrz0BQc.js} +14 -3
- package/dist/{state-6RFDIQwJ.js.map → state--wrz0BQc.js.map} +1 -1
- package/dist/web.d.ts +19 -0
- package/dist/web.js +93 -1
- package/dist/web.js.map +1 -1
- package/examples/comfy-cloud/capybara-i2v.cflow.ts +2 -0
- package/examples/comfy-cloud/wan22-5b-t2v.cflow.ts +2 -0
- package/examples/comfy-cloud/wan22-i2v.cflow.ts +2 -0
- package/examples/comfy-cloud/wan22-t2v.cflow.ts +2 -0
- package/examples/rvion/07-local-llm-text-gen.cflow.ts +2 -2
- package/package.json +4 -2
- package/src/cli/serve/ServeApp.ts +94 -0
- package/src/cli/serve/describeVar.ts +7 -0
- package/src/cli/serve/favicon.ts +3 -0
- package/src/cli/serve/web/api.ts +12 -0
- package/src/cli/serve/web/components/VarsForm.tsx +18 -7
- package/src/cli/serve/web/components/controls/LorasControl.tsx +102 -6
- package/src/cli/serve/web/state/WebSt.ts +79 -0
- package/src/cli/serve/web/state/loraSort.ts +39 -0
- package/src/cli/serve/web/styles.ts +15 -0
- package/src/cli/tui/components/Header.tsx +2 -0
- package/src/cli/tui/state/HostSt.ts +34 -0
- package/src/host/ComfyHost.ts +15 -0
- package/src/host/loraInfoCache.ts +64 -0
- package/src/host/loraManagerApi.ts +27 -0
- package/src/host/schemaDrift.ts +87 -0
- package/dist/DefinedWorkflow-BatWaZO1.js.map +0 -1
- package/dist/run-serve-_nrvJYyt.js.map +0 -1
- package/dist/run-tui-Atvf9vb3.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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.
|
|
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
|
|
5019
|
+
//# sourceMappingURL=state--wrz0BQc.js.map
|