comfy-ts 2.25.0 → 2.25.1
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/{chunk-y714t866.js → chunk-6mgjbrp6.js} +2 -2
- package/dist/{chunk-xk25ecw5.js → chunk-6tsg7fm5.js} +6 -4
- package/dist/{chunk-xk25ecw5.js.map → chunk-6tsg7fm5.js.map} +3 -3
- package/dist/{chunk-qw7be3v5.js → chunk-dvxjvwe7.js} +3 -3
- package/dist/{chunk-17hrzqcr.js → chunk-dw0t1nye.js} +5 -5
- package/dist/{chunk-3vhqs473.js → chunk-he70ewwx.js} +4 -4
- package/dist/{chunk-94f854t1.js → chunk-n22qz0j1.js} +4 -4
- package/dist/{chunk-94f854t1.js.map → chunk-n22qz0j1.js.map} +1 -1
- package/dist/{chunk-tye3z60z.js → chunk-n35nffm8.js} +4 -4
- package/dist/cli.js +5 -5
- package/dist/host/loraManagerApi.d.cts +1 -1
- package/dist/host/loraManagerApi.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/dist/serve-web.js +1 -1
- package/dist/web.js +2 -2
- package/dist/web.js.map +2 -2
- package/package.json +1 -1
- package/src/cli/serve/web/components/controls/LorasControl.tsx +2 -0
- package/src/host/loraManagerApi.ts +8 -3
- /package/dist/{chunk-y714t866.js.map → chunk-6mgjbrp6.js.map} +0 -0
- /package/dist/{chunk-qw7be3v5.js.map → chunk-dvxjvwe7.js.map} +0 -0
- /package/dist/{chunk-17hrzqcr.js.map → chunk-dw0t1nye.js.map} +0 -0
- /package/dist/{chunk-3vhqs473.js.map → chunk-he70ewwx.js.map} +0 -0
- /package/dist/{chunk-tye3z60z.js.map → chunk-n35nffm8.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
extractErrorMessage,
|
|
3
3
|
stripAnsi,
|
|
4
4
|
DefinedWorkflow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6tsg7fm5.js";
|
|
6
6
|
|
|
7
7
|
// src/cli/tui/treeRows.ts
|
|
8
8
|
import { basename, dirname } from "pathe";
|
|
@@ -576,4 +576,4 @@ function findDefinedWorkflow(mod) {
|
|
|
576
576
|
export { moduleName, familyOf, assignFamilyColors, buildFileRows, ENHANCE_KEY, isDraftMetaKey, assembleLogChunks, LogsSt, draftKeyForFile, draftsDirForFile, listDraftsForFile, DraftsSt, scanCflowFiles, mergeWorkflowSources, findDefinedWorkflow };
|
|
577
577
|
|
|
578
578
|
//# debugId=C9A6EC268910514364756E2164756E21
|
|
579
|
-
//# sourceMappingURL=chunk-
|
|
579
|
+
//# sourceMappingURL=chunk-6mgjbrp6.js.map
|
|
@@ -494,6 +494,9 @@ function looksLikeImage(bytes) {
|
|
|
494
494
|
const is = (sig, off = 0) => sig.every((v, i) => b[off + i] === v);
|
|
495
495
|
return is([137, 80, 78, 71]) || is([255, 216, 255]) || is([71, 73, 70]) || is([82, 73, 70, 70]) && is([87, 69, 66, 80], 8);
|
|
496
496
|
}
|
|
497
|
+
function previewContentTypeMayBeImage(ct) {
|
|
498
|
+
return ct === "" || ct.startsWith("image/") || ct.startsWith("application/octet-stream");
|
|
499
|
+
}
|
|
497
500
|
async function fetchLoraPreviewBytes(host, previewUrl) {
|
|
498
501
|
const storage = getComfyStorage();
|
|
499
502
|
const cachePath = comfyts.resolveFromCache(`lora-previews/${sha1HexOfString(previewUrl)}`);
|
|
@@ -503,8 +506,7 @@ async function fetchLoraPreviewBytes(host, previewUrl) {
|
|
|
503
506
|
const res = await host.fetch(previewUrl, {}, { apiPrefix: false });
|
|
504
507
|
if (!res.ok)
|
|
505
508
|
return null;
|
|
506
|
-
|
|
507
|
-
if (ct !== "" && !ct.startsWith("image/"))
|
|
509
|
+
if (!previewContentTypeMayBeImage(res.headers.get("content-type") ?? ""))
|
|
508
510
|
return null;
|
|
509
511
|
const bytes = new Uint8Array(await res.arrayBuffer());
|
|
510
512
|
if (!looksLikeImage(bytes))
|
|
@@ -1870,5 +1872,5 @@ function summarizeDrift(d) {
|
|
|
1870
1872
|
|
|
1871
1873
|
export { extractErrorMessage, sha1HexOfString, statelessRegex, isQuiet, logInfo, logError, logSuccess, resolveComfyStorage, getComfyStorage, bang, isRecord, importSharp, hashArrayBuffer, MEDIA_KINDS, DEFAULT_MEDIA_EXTENSIONS, extensionOf, isVideoFilename, mediaMime, MODEL_3D_MIMES, model3dMime, ansi, stripAnsi, colorsAvailable, lmFolder, lmModelName, lmBaseModel, lmSha256, lmFileSize, lmNotes, lmCivitai, lmTags, lmTrainedWords, lmFilePath, loraKey, loraBasename, fetchLoraCivitai, fetchLoraDescription, fetchLoraExampleImages, fetchLoraList, loraPreviewMapFrom, fetchLoraPreviewBytes, buildLoraMirror, writeLoraMirror, readLoraMirror, refreshLoraInfoCacheIfChanged, reloadLoraInfoCache, getLoraInfo, getLoraTriggerWords, getLoraDisplayName, getLoraTriggers, recordCivitaiMiss, getLoraAddedAt, getLoraPreviewUrl, loraMirrorEntries, loraMatchesFilter, lorasMissingFromMirror, getLoraKeyword, isLoraKeywordFromMirror, loraKeywordFromMirror, clearLoraKeywordOverride, setLoraKeyword, isLoraStrength, isPromptInput, isLoraLanes, isLorasInput, PromptVar, LorasVar, DefinedWorkflow, MODEL_LISTS, diffSchemas, driftChanged, summarizeDrift };
|
|
1872
1874
|
|
|
1873
|
-
//# debugId=
|
|
1874
|
-
//# sourceMappingURL=chunk-
|
|
1875
|
+
//# debugId=F31026EF6BD649FB64756E2164756E21
|
|
1876
|
+
//# sourceMappingURL=chunk-6tsg7fm5.js.map
|