comfy-ts 2.15.0 → 2.16.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-C3UIWR-o.js → LogsSt-Ct7Le0S_.js} +2 -2
- package/dist/{LogsSt-C3UIWR-o.js.map → LogsSt-Ct7Le0S_.js.map} +1 -1
- package/dist/cli.js +4 -4
- package/dist/index.cjs +57 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -7
- package/dist/index.d.ts +55 -7
- package/dist/index.js +57 -4
- package/dist/index.js.map +1 -1
- package/dist/{run-serve-B5PfIuhK.js → run-serve-C78hD7t9.js} +14 -5
- package/dist/run-serve-C78hD7t9.js.map +1 -0
- package/dist/{run-tui-D-N4_yyX.js → run-tui-nPETFRmk.js} +4 -4
- package/dist/{run-tui-D-N4_yyX.js.map → run-tui-nPETFRmk.js.map} +1 -1
- package/dist/{schemaDrift-BkN8rLiZ.js → schemaDrift-wb5XkrHV.js} +57 -4
- package/dist/schemaDrift-wb5XkrHV.js.map +1 -0
- package/dist/serve-web.js +48 -48
- package/dist/{state-CZsYJqB6.js → state-BMW57_M0.js} +3 -3
- package/dist/{state-CZsYJqB6.js.map → state-BMW57_M0.js.map} +1 -1
- package/dist/web.d.ts +55 -7
- package/dist/web.js +57 -4
- package/dist/web.js.map +1 -1
- package/examples/README.md +1 -0
- package/examples/media/README.md +6 -5
- package/examples/media/voice_en_6s.flac +0 -0
- package/examples/rvion/04-krea2-turbo-t2i.cflow.ts +9 -1
- package/examples/rvion/10-anima-t2i.cflow.ts +8 -1
- package/examples/rvion/15-tts-voice-clone.cflow.ts +111 -0
- package/guide-for-agents.md +2 -1
- package/package.json +2 -2
- package/src/cli/serve/ServeApp.ts +15 -3
- package/src/cli/serve/web/components/DraftTabs.tsx +2 -1
- package/src/cli/serve/web/components/Gallery.tsx +2 -1
- package/src/cli/serve/web/components/HistoryPicker.tsx +5 -3
- package/src/cli/serve/web/components/MenuButton.tsx +2 -4
- package/src/cli/serve/web/components/Omnibox.tsx +2 -1
- package/src/cli/serve/web/components/PromptEnhancer.tsx +4 -3
- package/src/cli/serve/web/components/ShortcutsModal.tsx +2 -1
- package/src/cli/serve/web/components/SideMenu.tsx +2 -1
- package/src/cli/serve/web/components/controls/LorasControl.tsx +4 -3
- package/src/cli/serve/web/components/controls/PresetPicker.tsx +2 -1
- package/src/cli/serve/web/components/controls/PromptControl.tsx +2 -1
- package/src/cli/serve/web/components/controls/SizeControl.tsx +2 -1
- package/src/cli/serve/web/state/escape.ts +16 -0
- package/src/coreExports.ts +10 -1
- package/src/vars/ComfyVars.ts +83 -13
- package/src/vars/DefinedWorkflow.ts +35 -2
- package/dist/run-serve-B5PfIuhK.js.map +0 -1
- package/dist/schemaDrift-BkN8rLiZ.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as DEFAULT_MEDIA_EXTENSIONS, A as reloadLoraInfoCache, B as lmFileSize, C as getLoraTriggers, E as lorasMissingFromMirror, F as fetchLoraList, G as lmTags, I as fetchLoraPreviewBytes, J as loraKey, L as lmBaseModel, M as fetchLoraCivitai, N as fetchLoraDescription, O as recordCivitaiMiss, P as fetchLoraExampleImages, Q as stripAnsi, R as lmCivitai, S as getLoraTriggerWords, T as loraMirrorEntries, U as lmNotes, V as lmFolder, W as lmSha256, X as ansi, Y as loraPreviewMapFrom, Z as colorsAvailable, _ as buildLoraMirror, at as extractErrorMessage, b as getLoraInfo, c as isLoraLanes, d as isLoraStrength, et as MEDIA_KINDS, ht as sha1HexOfString, i as summarizeDrift, j as writeLoraMirror, k as refreshLoraInfoCacheIfChanged, l as isLorasInput, mt as statelessRegex, p as getLoraKeyword, r as driftChanged, st as bang, u as isPromptInput, v as getLoraAddedAt, x as getLoraPreviewUrl, y as getLoraDisplayName, z as lmFilePath } from "./schemaDrift-
|
|
2
|
-
import { a as draftsDirForFile, c as isDraftMetaKey, f as findDefinedWorkflow, i as draftKeyForFile, m as scanCflowFiles, n as assembleLogChunks, o as listDraftsForFile, s as ENHANCE_KEY } from "./LogsSt-
|
|
1
|
+
import { $ as DEFAULT_MEDIA_EXTENSIONS, A as reloadLoraInfoCache, B as lmFileSize, C as getLoraTriggers, E as lorasMissingFromMirror, F as fetchLoraList, G as lmTags, I as fetchLoraPreviewBytes, J as loraKey, L as lmBaseModel, M as fetchLoraCivitai, N as fetchLoraDescription, O as recordCivitaiMiss, P as fetchLoraExampleImages, Q as stripAnsi, R as lmCivitai, S as getLoraTriggerWords, T as loraMirrorEntries, U as lmNotes, V as lmFolder, W as lmSha256, X as ansi, Y as loraPreviewMapFrom, Z as colorsAvailable, _ as buildLoraMirror, at as extractErrorMessage, b as getLoraInfo, c as isLoraLanes, d as isLoraStrength, et as MEDIA_KINDS, ht as sha1HexOfString, i as summarizeDrift, j as writeLoraMirror, k as refreshLoraInfoCacheIfChanged, l as isLorasInput, mt as statelessRegex, p as getLoraKeyword, r as driftChanged, st as bang, u as isPromptInput, v as getLoraAddedAt, x as getLoraPreviewUrl, y as getLoraDisplayName, z as lmFilePath } from "./schemaDrift-wb5XkrHV.js";
|
|
2
|
+
import { a as draftsDirForFile, c as isDraftMetaKey, f as findDefinedWorkflow, i as draftKeyForFile, m as scanCflowFiles, n as assembleLogChunks, o as listDraftsForFile, s as ENHANCE_KEY } from "./LogsSt-Ct7Le0S_.js";
|
|
3
3
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
4
|
import { closeSync, existsSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { basename, dirname, extname, isAbsolute, join, resolve } from "pathe";
|
|
@@ -1630,13 +1630,13 @@ var ServeApp = class {
|
|
|
1630
1630
|
const rebound = await this.rebindHostVars(hostId, host);
|
|
1631
1631
|
const nodes = host.schema.nodes.length;
|
|
1632
1632
|
const loras = host.schema.getLoras().length;
|
|
1633
|
-
const dropped = rebound.stale.length === 0 ? "" : `.
|
|
1633
|
+
const dropped = rebound.stale.length === 0 ? "" : `. ${rebound.stale.length} selection(s) this host no longer lists (a lora is dropped, a model stays picked)`;
|
|
1634
1634
|
return json(200, {
|
|
1635
1635
|
ok: true,
|
|
1636
1636
|
host: hostId,
|
|
1637
1637
|
action,
|
|
1638
1638
|
stale: rebound.stale,
|
|
1639
|
-
note: `schema refetched: ${nodes} node types, ${loras} loras, ${rebound.widened} lora var(s) changed${dropped}${lorasNote}`
|
|
1639
|
+
note: `schema refetched: ${nodes} node types, ${loras} loras, ${rebound.widened} lora or model var(s) changed${dropped}${lorasNote}`
|
|
1640
1640
|
});
|
|
1641
1641
|
}
|
|
1642
1642
|
if (action === "restart") {
|
|
@@ -1672,6 +1672,15 @@ var ServeApp = class {
|
|
|
1672
1672
|
if (mod.dw.host.data.id !== hostId) continue;
|
|
1673
1673
|
await this.exclusive(mod.key, () => {
|
|
1674
1674
|
for (const [name, varDef] of mod.dw.entries()) {
|
|
1675
|
+
if (varDef.kind === "choice") {
|
|
1676
|
+
const choice = varDef;
|
|
1677
|
+
if (choice.hostSlot == null) continue;
|
|
1678
|
+
const before = choice.choices.length;
|
|
1679
|
+
choice.bindHost(host);
|
|
1680
|
+
if (choice.choices.length !== before) widened++;
|
|
1681
|
+
if (choice.value != null && !choice.choices.includes(choice.value)) stale.push(`${mod.key}/${name}: ${choice.value}`);
|
|
1682
|
+
continue;
|
|
1683
|
+
}
|
|
1675
1684
|
if (varDef.kind !== "loras") continue;
|
|
1676
1685
|
const lorasVar = varDef;
|
|
1677
1686
|
if (lorasVar.optionsFilter == null) continue;
|
|
@@ -2935,4 +2944,4 @@ function printStartup(app, bind, port) {
|
|
|
2935
2944
|
//#endregion
|
|
2936
2945
|
export { runServe };
|
|
2937
2946
|
|
|
2938
|
-
//# sourceMappingURL=run-serve-
|
|
2947
|
+
//# sourceMappingURL=run-serve-C78hD7t9.js.map
|