comfy-ts 2.22.0 → 2.23.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/{ServeApp-DuxYdaZZ.js → ServeApp-DolRCMHj.js} +51 -17
- package/dist/ServeApp-DolRCMHj.js.map +1 -0
- package/dist/cli.js +5 -5
- package/dist/{exampleAssets-1NHndnNB.js → exampleAssets-Duneoq6r.js} +330 -28
- package/dist/exampleAssets-Duneoq6r.js.map +1 -0
- package/dist/{findDefinedWorkflow-CRsBTTJK.js → findDefinedWorkflow-DjoJA8y7.js} +2 -2
- package/dist/{findDefinedWorkflow-CRsBTTJK.js.map → findDefinedWorkflow-DjoJA8y7.js.map} +1 -1
- package/dist/index.cjs +350 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +131 -19
- package/dist/index.d.ts +131 -19
- package/dist/index.js +350 -34
- package/dist/index.js.map +1 -1
- package/dist/{run-run-Y5ZI48vV.js → run-run-Cr0L9lCK.js} +5 -5
- package/dist/{run-run-Y5ZI48vV.js.map → run-run-Cr0L9lCK.js.map} +1 -1
- package/dist/{run-serve-CICU_wTL.js → run-serve---qA7o_m.js} +4 -4
- package/dist/{run-serve-CICU_wTL.js.map → run-serve---qA7o_m.js.map} +1 -1
- package/dist/{run-tui-CViJXsHL.js → run-tui-DxXiWo5J.js} +4 -4
- package/dist/{run-tui-CViJXsHL.js.map → run-tui-DxXiWo5J.js.map} +1 -1
- package/dist/{schemaDrift-CzjaIwZX.js → schemaDrift-BTxdABHi.js} +16 -2
- package/dist/{schemaDrift-CzjaIwZX.js.map → schemaDrift-BTxdABHi.js.map} +1 -1
- package/dist/serve-web.js +46 -43
- package/dist/web.d.ts +131 -19
- package/dist/web.js +350 -34
- package/dist/web.js.map +1 -1
- package/examples/comfy-cloud/sdk.d.ts +102 -1
- package/examples/rvion/18-world.cflow.ts +101 -0
- package/examples/world-explorer/serve.ts +171 -0
- package/examples/world-explorer/web/index.html +14 -0
- package/examples/world-explorer/web/main.tsx +200 -0
- package/examples/world-explorer/web/state.ts +212 -0
- package/examples/world-explorer/web/styles.css +131 -0
- package/examples/world-explorer/web/thumb.ts +21 -0
- package/examples/world-explorer/web/tsconfig.json +11 -0
- package/examples/world-explorer/world-state.ts +40 -0
- package/package.json +5 -7
- package/src/cli/serve/ServeApp.ts +27 -2
- package/src/cli/serve/resultHistory.ts +22 -4
- package/src/cli/serve/thumbs.ts +19 -8
- package/src/cli/serve/web/api.ts +4 -0
- package/src/cli/serve/web/components/Gallery.tsx +24 -1
- package/src/cli/serve/web/styles.ts +3 -0
- package/src/coreExports.ts +1 -0
- package/src/graph/ComfyNode.ts +12 -2
- package/src/host/ComfyHost.ts +153 -2
- package/src/host/ResilientWebsocket.ts +10 -0
- package/src/manager/script-update-manager.bun.ts +0 -7
- package/src/runner/ComfyExecution.ts +165 -20
- package/src/runner/ComfyWsApi.ts +2 -0
- package/src/runner/historyReplay.ts +53 -0
- package/src/runner/outputs3d.ts +18 -0
- package/src/sdk-generator/comfyui-sdk-codegen.ts +7 -2
- package/dist/ServeApp-DuxYdaZZ.js.map +0 -1
- package/dist/exampleAssets-1NHndnNB.js.map +0 -1
|
@@ -258,6 +258,20 @@ function mediaMime(filename) {
|
|
|
258
258
|
return MIMES[extensionOf(filename)] ?? "application/octet-stream";
|
|
259
259
|
}
|
|
260
260
|
//#endregion
|
|
261
|
+
//#region src/runner/outputs3d.ts
|
|
262
|
+
/** ply and spz have no registered mime: the `x-` forms are what three.js and the splat viewers accept */
|
|
263
|
+
const MODEL_3D_MIMES = {
|
|
264
|
+
glb: "model/gltf-binary",
|
|
265
|
+
gltf: "model/gltf+json",
|
|
266
|
+
ply: "model/x-ply",
|
|
267
|
+
spz: "model/x-spz",
|
|
268
|
+
obj: "model/obj",
|
|
269
|
+
stl: "model/stl"
|
|
270
|
+
};
|
|
271
|
+
function model3dMime(filename) {
|
|
272
|
+
return MODEL_3D_MIMES[extensionOf(filename)] ?? "application/octet-stream";
|
|
273
|
+
}
|
|
274
|
+
//#endregion
|
|
261
275
|
//#region src/utils/ansi.ts
|
|
262
276
|
const codes = {
|
|
263
277
|
bold: [1, 22],
|
|
@@ -2205,6 +2219,6 @@ function summarizeDrift(d) {
|
|
|
2205
2219
|
return parts.join(", ");
|
|
2206
2220
|
}
|
|
2207
2221
|
//#endregion
|
|
2208
|
-
export {
|
|
2222
|
+
export { MODEL_3D_MIMES as $, reloadLoraInfoCache as A, lmFileSize as B, getLoraTriggers as C, readLoraMirror as D, lorasMissingFromMirror as E, fetchLoraList as F, lmTags as G, lmModelName as H, fetchLoraPreviewBytes as I, loraKey as J, lmTrainedWords as K, lmBaseModel as L, fetchLoraCivitai as M, fetchLoraDescription as N, recordCivitaiMiss as O, fetchLoraExampleImages as P, stripAnsi as Q, lmCivitai as R, getLoraTriggerWords as S, loraMirrorEntries as T, lmNotes as U, lmFolder as V, lmSha256 as W, ansi as X, loraPreviewMapFrom as Y, colorsAvailable as Z, buildLoraMirror as _, sha1HexOfString as _t, DefinedWorkflow as a, mediaMime as at, getLoraInfo as b, isLoraLanes as c, isRecord as ct, isLoraStrength as d, resolveComfyStorage as dt, model3dMime as et, clearLoraKeywordOverride as f, isQuiet as ft, setLoraKeyword as g, statelessRegex as gt, loraKeywordFromMirror as h, logSuccess as ht, summarizeDrift as i, isVideoFilename as it, writeLoraMirror as j, refreshLoraInfoCacheIfChanged as k, isLorasInput as l, bang as lt, isLoraKeywordFromMirror as m, logInfo as mt, diffSchemas as n, MEDIA_KINDS as nt, LorasVar as o, hashArrayBuffer as ot, getLoraKeyword as p, logError as pt, loraBasename as q, driftChanged as r, extensionOf as rt, PromptVar as s, importSharp as st, MODEL_LISTS as t, DEFAULT_MEDIA_EXTENSIONS as tt, isPromptInput as u, getComfyStorage as ut, getLoraAddedAt as v, extractErrorMessage as vt, loraMatchesFilter as w, getLoraPreviewUrl as x, getLoraDisplayName as y, lmFilePath as z };
|
|
2209
2223
|
|
|
2210
|
-
//# sourceMappingURL=schemaDrift-
|
|
2224
|
+
//# sourceMappingURL=schemaDrift-BTxdABHi.js.map
|