comfy-ts 2.5.0 → 2.6.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/README.md +12 -1
- package/dist/{DefinedWorkflow-CnzmQrBh.js → DefinedWorkflow-BJgt5t0x.js} +14 -3
- package/dist/DefinedWorkflow-BJgt5t0x.js.map +1 -0
- package/dist/{DraftsSt-C1MbWnEp.js → DraftsSt-dizp3VcC.js} +2 -2
- package/dist/{DraftsSt-C1MbWnEp.js.map → DraftsSt-dizp3VcC.js.map} +1 -1
- package/dist/cli.js +4 -4
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -18
- package/dist/index.d.ts +21 -18
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/{run-serve-D47Zas-a.js → run-serve-CVu39RNd.js} +330 -16
- package/dist/run-serve-CVu39RNd.js.map +1 -0
- package/dist/{run-tui-t2TRBN0H.js → run-tui-idFhdO4f.js} +704 -524
- package/dist/run-tui-idFhdO4f.js.map +1 -0
- package/dist/serve-web.js +280 -0
- package/dist/{state-DY3Mp9Cl.js → state-C90kdjtB.js} +3 -13
- package/dist/state-C90kdjtB.js.map +1 -0
- package/dist/web.d.ts +21 -18
- package/dist/web.js +3 -2
- package/dist/web.js.map +1 -1
- package/package.json +7 -5
- package/src/cli/serve/ServeApp.ts +314 -13
- package/src/cli/serve/describeVar.ts +6 -1
- package/src/cli/serve/run-serve.ts +4 -2
- package/src/cli/serve/web/api.ts +105 -0
- package/src/cli/serve/web/clipboard.ts +25 -0
- package/src/cli/serve/web/components/App.tsx +53 -0
- package/src/cli/serve/web/components/Gallery.tsx +186 -0
- package/src/cli/serve/web/components/PromptEnhancer.tsx +210 -0
- package/src/cli/serve/web/components/Sidebar.tsx +42 -0
- package/src/cli/serve/web/components/VarsForm.tsx +173 -0
- package/src/cli/serve/web/components/controls/BasicControls.tsx +95 -0
- package/src/cli/serve/web/components/controls/ImageControl.tsx +71 -0
- package/src/cli/serve/web/components/controls/LorasControl.tsx +340 -0
- package/src/cli/serve/web/components/controls/SeedControl.tsx +43 -0
- package/src/cli/serve/web/components/controls/SizeControl.tsx +49 -0
- package/src/cli/serve/web/main.tsx +18 -0
- package/src/cli/serve/web/openrouter.ts +142 -0
- package/src/cli/serve/web/state/EnhancerSt.ts +370 -0
- package/src/cli/serve/web/state/FormSt.ts +177 -0
- package/src/cli/serve/web/state/RunSt.ts +136 -0
- package/src/cli/serve/web/state/WebSt.ts +210 -0
- package/src/cli/serve/web/state/payload.ts +110 -0
- package/src/cli/serve/web/styles.ts +259 -0
- package/src/cli/serve/web/tsconfig.json +15 -0
- package/src/cli/serve/webBundle.ts +66 -0
- package/src/cli/tui/imageEscapes.ts +105 -0
- package/src/cli/tui/imagePicker/ImagePickerSt.ts +21 -8
- package/src/cli/tui/protocolImage.ts +39 -0
- package/src/cli/tui/protocolImagePainter.ts +56 -23
- package/src/cli/tui/run-tui.tsx +3 -2
- package/src/cli/tui/state/LorasSt.ts +22 -9
- package/src/cli/tui/state/PreviewSt.ts +31 -13
- package/src/cli/tui/state/SettingsSt.ts +1 -1
- package/src/vars/ComfyVars.ts +4 -1
- package/dist/DefinedWorkflow-CnzmQrBh.js.map +0 -1
- package/dist/run-serve-D47Zas-a.js.map +0 -1
- package/dist/run-tui-t2TRBN0H.js.map +0 -1
- package/dist/state-DY3Mp9Cl.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -11900,16 +11900,9 @@ declare const types$1: import("arktype").Module<{
|
|
|
11900
11900
|
};
|
|
11901
11901
|
PromptID: PromptID;
|
|
11902
11902
|
PromptRelated_WsMsg: {
|
|
11903
|
-
type: "
|
|
11904
|
-
data: {
|
|
11905
|
-
value: number;
|
|
11906
|
-
max: number;
|
|
11907
|
-
};
|
|
11908
|
-
} | {
|
|
11909
|
-
type: "executing";
|
|
11903
|
+
type: "execution_start";
|
|
11910
11904
|
data: {
|
|
11911
11905
|
prompt_id: PromptID;
|
|
11912
|
-
node?: ComfyNodeId | null | undefined;
|
|
11913
11906
|
};
|
|
11914
11907
|
} | {
|
|
11915
11908
|
type: "execution_cached";
|
|
@@ -11918,9 +11911,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
11918
11911
|
prompt_id: PromptID;
|
|
11919
11912
|
};
|
|
11920
11913
|
} | {
|
|
11921
|
-
type: "
|
|
11914
|
+
type: "executing";
|
|
11922
11915
|
data: {
|
|
11923
11916
|
prompt_id: PromptID;
|
|
11917
|
+
node?: ComfyNodeId | null | undefined;
|
|
11918
|
+
};
|
|
11919
|
+
} | {
|
|
11920
|
+
type: "progress";
|
|
11921
|
+
data: {
|
|
11922
|
+
value: number;
|
|
11923
|
+
max: number;
|
|
11924
11924
|
};
|
|
11925
11925
|
} | {
|
|
11926
11926
|
type: "progress_state";
|
|
@@ -11975,16 +11975,9 @@ declare const types$1: import("arktype").Module<{
|
|
|
11975
11975
|
data: string;
|
|
11976
11976
|
};
|
|
11977
11977
|
WsMsg: {
|
|
11978
|
-
type: "
|
|
11979
|
-
data: {
|
|
11980
|
-
value: number;
|
|
11981
|
-
max: number;
|
|
11982
|
-
};
|
|
11983
|
-
} | {
|
|
11984
|
-
type: "executing";
|
|
11978
|
+
type: "execution_start";
|
|
11985
11979
|
data: {
|
|
11986
11980
|
prompt_id: PromptID;
|
|
11987
|
-
node?: ComfyNodeId | null | undefined;
|
|
11988
11981
|
};
|
|
11989
11982
|
} | {
|
|
11990
11983
|
type: "execution_cached";
|
|
@@ -11993,9 +11986,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
11993
11986
|
prompt_id: PromptID;
|
|
11994
11987
|
};
|
|
11995
11988
|
} | {
|
|
11996
|
-
type: "
|
|
11989
|
+
type: "executing";
|
|
11997
11990
|
data: {
|
|
11998
11991
|
prompt_id: PromptID;
|
|
11992
|
+
node?: ComfyNodeId | null | undefined;
|
|
11993
|
+
};
|
|
11994
|
+
} | {
|
|
11995
|
+
type: "progress";
|
|
11996
|
+
data: {
|
|
11997
|
+
value: number;
|
|
11998
|
+
max: number;
|
|
11999
11999
|
};
|
|
12000
12000
|
} | {
|
|
12001
12001
|
type: "progress_state";
|
|
@@ -16056,6 +16056,9 @@ type SeedMode = '=' | '+' | '-' | '?';
|
|
|
16056
16056
|
declare class SeedVar extends ComfyVar<number> {
|
|
16057
16057
|
readonly kind: 'seed';
|
|
16058
16058
|
mode: SeedMode;
|
|
16059
|
+
/** the mode a reset() restores — the SPEC default, never the live one (introspection
|
|
16060
|
+
* reads this: a running mode must not masquerade as the var's default) */
|
|
16061
|
+
readonly defaultMode: SeedMode;
|
|
16059
16062
|
constructor(defaultValue?: number, label?: string);
|
|
16060
16063
|
setMode(mode: SeedMode): this;
|
|
16061
16064
|
randomize(): this;
|
package/dist/index.d.ts
CHANGED
|
@@ -11900,16 +11900,9 @@ declare const types$1: import("arktype").Module<{
|
|
|
11900
11900
|
};
|
|
11901
11901
|
PromptID: PromptID;
|
|
11902
11902
|
PromptRelated_WsMsg: {
|
|
11903
|
-
type: "
|
|
11904
|
-
data: {
|
|
11905
|
-
value: number;
|
|
11906
|
-
max: number;
|
|
11907
|
-
};
|
|
11908
|
-
} | {
|
|
11909
|
-
type: "executing";
|
|
11903
|
+
type: "execution_start";
|
|
11910
11904
|
data: {
|
|
11911
11905
|
prompt_id: PromptID;
|
|
11912
|
-
node?: ComfyNodeId | null | undefined;
|
|
11913
11906
|
};
|
|
11914
11907
|
} | {
|
|
11915
11908
|
type: "execution_cached";
|
|
@@ -11918,9 +11911,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
11918
11911
|
prompt_id: PromptID;
|
|
11919
11912
|
};
|
|
11920
11913
|
} | {
|
|
11921
|
-
type: "
|
|
11914
|
+
type: "executing";
|
|
11922
11915
|
data: {
|
|
11923
11916
|
prompt_id: PromptID;
|
|
11917
|
+
node?: ComfyNodeId | null | undefined;
|
|
11918
|
+
};
|
|
11919
|
+
} | {
|
|
11920
|
+
type: "progress";
|
|
11921
|
+
data: {
|
|
11922
|
+
value: number;
|
|
11923
|
+
max: number;
|
|
11924
11924
|
};
|
|
11925
11925
|
} | {
|
|
11926
11926
|
type: "progress_state";
|
|
@@ -11975,16 +11975,9 @@ declare const types$1: import("arktype").Module<{
|
|
|
11975
11975
|
data: string;
|
|
11976
11976
|
};
|
|
11977
11977
|
WsMsg: {
|
|
11978
|
-
type: "
|
|
11979
|
-
data: {
|
|
11980
|
-
value: number;
|
|
11981
|
-
max: number;
|
|
11982
|
-
};
|
|
11983
|
-
} | {
|
|
11984
|
-
type: "executing";
|
|
11978
|
+
type: "execution_start";
|
|
11985
11979
|
data: {
|
|
11986
11980
|
prompt_id: PromptID;
|
|
11987
|
-
node?: ComfyNodeId | null | undefined;
|
|
11988
11981
|
};
|
|
11989
11982
|
} | {
|
|
11990
11983
|
type: "execution_cached";
|
|
@@ -11993,9 +11986,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
11993
11986
|
prompt_id: PromptID;
|
|
11994
11987
|
};
|
|
11995
11988
|
} | {
|
|
11996
|
-
type: "
|
|
11989
|
+
type: "executing";
|
|
11997
11990
|
data: {
|
|
11998
11991
|
prompt_id: PromptID;
|
|
11992
|
+
node?: ComfyNodeId | null | undefined;
|
|
11993
|
+
};
|
|
11994
|
+
} | {
|
|
11995
|
+
type: "progress";
|
|
11996
|
+
data: {
|
|
11997
|
+
value: number;
|
|
11998
|
+
max: number;
|
|
11999
11999
|
};
|
|
12000
12000
|
} | {
|
|
12001
12001
|
type: "progress_state";
|
|
@@ -16056,6 +16056,9 @@ type SeedMode = '=' | '+' | '-' | '?';
|
|
|
16056
16056
|
declare class SeedVar extends ComfyVar<number> {
|
|
16057
16057
|
readonly kind: 'seed';
|
|
16058
16058
|
mode: SeedMode;
|
|
16059
|
+
/** the mode a reset() restores — the SPEC default, never the live one (introspection
|
|
16060
|
+
* reads this: a running mode must not masquerade as the var's default) */
|
|
16061
|
+
readonly defaultMode: SeedMode;
|
|
16059
16062
|
constructor(defaultValue?: number, label?: string);
|
|
16060
16063
|
setMode(mode: SeedMode): this;
|
|
16061
16064
|
randomize(): this;
|
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.
|
|
113
|
+
var version = "2.6.0";
|
|
114
114
|
//#endregion
|
|
115
115
|
//#region src/litegraph/LiteGraphLinkID.ts
|
|
116
116
|
const asLiteGraphLinkID = (id) => id;
|
|
@@ -4350,6 +4350,7 @@ var SeedVar = class extends ComfyVar {
|
|
|
4350
4350
|
super(defaultValue, label);
|
|
4351
4351
|
this.kind = "seed";
|
|
4352
4352
|
this.mode = "=";
|
|
4353
|
+
this.defaultMode = "=";
|
|
4353
4354
|
makeObservable(this, {
|
|
4354
4355
|
mode: observable,
|
|
4355
4356
|
setMode: action,
|
|
@@ -4380,7 +4381,7 @@ var SeedVar = class extends ComfyVar {
|
|
|
4380
4381
|
/** mode is part of the seed's state: a reset must not keep a caller's `?`/`+` alive
|
|
4381
4382
|
* ('=' is the construction default; drafts restore their own mode via loadJSON) */
|
|
4382
4383
|
reset() {
|
|
4383
|
-
this.setMode(
|
|
4384
|
+
this.setMode(this.defaultMode);
|
|
4384
4385
|
return super.reset();
|
|
4385
4386
|
}
|
|
4386
4387
|
/** parse `+` `- 12` `= 5` `?` or a bare number (=> fixed). Keeps the current number when none given */
|