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.
Files changed (48) hide show
  1. package/dist/{LogsSt-C3UIWR-o.js → LogsSt-Ct7Le0S_.js} +2 -2
  2. package/dist/{LogsSt-C3UIWR-o.js.map → LogsSt-Ct7Le0S_.js.map} +1 -1
  3. package/dist/cli.js +4 -4
  4. package/dist/index.cjs +57 -4
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +55 -7
  7. package/dist/index.d.ts +55 -7
  8. package/dist/index.js +57 -4
  9. package/dist/index.js.map +1 -1
  10. package/dist/{run-serve-B5PfIuhK.js → run-serve-C78hD7t9.js} +14 -5
  11. package/dist/run-serve-C78hD7t9.js.map +1 -0
  12. package/dist/{run-tui-D-N4_yyX.js → run-tui-nPETFRmk.js} +4 -4
  13. package/dist/{run-tui-D-N4_yyX.js.map → run-tui-nPETFRmk.js.map} +1 -1
  14. package/dist/{schemaDrift-BkN8rLiZ.js → schemaDrift-wb5XkrHV.js} +57 -4
  15. package/dist/schemaDrift-wb5XkrHV.js.map +1 -0
  16. package/dist/serve-web.js +48 -48
  17. package/dist/{state-CZsYJqB6.js → state-BMW57_M0.js} +3 -3
  18. package/dist/{state-CZsYJqB6.js.map → state-BMW57_M0.js.map} +1 -1
  19. package/dist/web.d.ts +55 -7
  20. package/dist/web.js +57 -4
  21. package/dist/web.js.map +1 -1
  22. package/examples/README.md +1 -0
  23. package/examples/media/README.md +6 -5
  24. package/examples/media/voice_en_6s.flac +0 -0
  25. package/examples/rvion/04-krea2-turbo-t2i.cflow.ts +9 -1
  26. package/examples/rvion/10-anima-t2i.cflow.ts +8 -1
  27. package/examples/rvion/15-tts-voice-clone.cflow.ts +111 -0
  28. package/guide-for-agents.md +2 -1
  29. package/package.json +2 -2
  30. package/src/cli/serve/ServeApp.ts +15 -3
  31. package/src/cli/serve/web/components/DraftTabs.tsx +2 -1
  32. package/src/cli/serve/web/components/Gallery.tsx +2 -1
  33. package/src/cli/serve/web/components/HistoryPicker.tsx +5 -3
  34. package/src/cli/serve/web/components/MenuButton.tsx +2 -4
  35. package/src/cli/serve/web/components/Omnibox.tsx +2 -1
  36. package/src/cli/serve/web/components/PromptEnhancer.tsx +4 -3
  37. package/src/cli/serve/web/components/ShortcutsModal.tsx +2 -1
  38. package/src/cli/serve/web/components/SideMenu.tsx +2 -1
  39. package/src/cli/serve/web/components/controls/LorasControl.tsx +4 -3
  40. package/src/cli/serve/web/components/controls/PresetPicker.tsx +2 -1
  41. package/src/cli/serve/web/components/controls/PromptControl.tsx +2 -1
  42. package/src/cli/serve/web/components/controls/SizeControl.tsx +2 -1
  43. package/src/cli/serve/web/state/escape.ts +16 -0
  44. package/src/coreExports.ts +10 -1
  45. package/src/vars/ComfyVars.ts +83 -13
  46. package/src/vars/DefinedWorkflow.ts +35 -2
  47. package/dist/run-serve-B5PfIuhK.js.map +0 -1
  48. 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-BkN8rLiZ.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-C3UIWR-o.js";
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 ? "" : `. dropped ${rebound.stale.length} selection(s) this host no longer lists`;
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-B5PfIuhK.js.map
2947
+ //# sourceMappingURL=run-serve-C78hD7t9.js.map