- An answer past Antigravity's size is filed away unread (eight LoRA searches in the exam): search_models answers small (loaders once, four trigger words, a LoRA's author weight); describe_canvas gives a big canvas's last nodes a line each; mcp_fit.py keeps any other list answer within the size and names what it left out. - An empty canvas: run_workflow, describe_canvas and get_situation say to open a workflow first; get_image_info says a picture's workflow opens with open_workflow. - ask_user does not put a "test" question to the user; a task's picture count counts what its runs made. - AMB failed to load now and then: ComfyUI loads every file at once and ui_ai_workbench.js set ui_ai_toolbox.js's sideHost before it was made when the toolbox file ran first. Connected on first draw now; tests/load_order.mjs runs every file first. - input_facts moved to api/picture_mask.py to keep mcp_tools.py short. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
542 B
JavaScript
9 lines
542 B
JavaScript
// ComfyUI's own scripts (../../../scripts/app.js and the like) resolve to the stand-in of page.mjs.
|
|
const STAND = 'data:text/javascript,' + encodeURIComponent(
|
|
'const s = globalThis.__loadOrderStand; export const app = s; export const api = s; export const ComfyApp = s; export const $el = s; export default s;');
|
|
|
|
export async function resolve(specifier, context, next) {
|
|
if (/(^|\/)scripts\/[^/]+\.js$/.test(specifier) && specifier.startsWith('.')) return { url: STAND, shortCircuit: true };
|
|
return next(specifier, context);
|
|
}
|