// SimpleSyrup - workflow-focused ComfyUI extensions for image generation // Copyright (C) 2026 Artificial Sweetener and contributors // SPDX-License-Identifier: AGPL-3.0-or-later // @ts-expect-error ComfyUI serves this host module outside the extension package. import { app } from "../../../scripts/app.js"; import { registerSimpleSyrupSettings } from "./settingsRegistration"; import { registerExternalLLMRefreshHook } from "./refresh"; import { registerMaskBatchUpload } from "./maskBatchUpload"; import { registerImageListUpload } from "./imageListUpload"; import { registerSimplePreviewSEGS } from "./segPreviewNode"; import type { ComfyApi, ComfyApp } from "./types"; interface ComfyRuntimeWindow extends Window { comfyAPI: { api: { api: ComfyApi } }; } const comfyApp = app as unknown as ComfyApp; const comfyApi = (window as unknown as ComfyRuntimeWindow).comfyAPI .api.api; comfyApp.registerExtension({ name: "SimpleSyrup.Settings", async setup(appInstance) { await registerSimpleSyrupSettings(appInstance); registerExternalLLMRefreshHook(appInstance); } }); registerMaskBatchUpload(comfyApp, comfyApi); registerImageListUpload(comfyApp, comfyApi); registerSimplePreviewSEGS(comfyApp, comfyApi);