mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-24 22:58:08 +00:00
- linkRepair: `continue` on `idx === -1` so we don't `splice(-1, 1)` and clobber the last unrelated link. - linkTopology: report origin- and target-slot-out-of-bounds errors independently for the same link instead of bailing after the first. - useWorkflowValidation: re-throw non-`LinkRepairAbortedError` failures so unrelated bugs don't get silently downgraded to an aborted load. - useWorkflowValidation: route every toast string through `vue-i18n` (`validation.topology.*` keys in `src/locales/en/main.json`). - Convert `scripts/prepare-workflow-validation.js` to TypeScript per repo policy and run it via `tsx`. Make the catalog regex robust by appending a synthetic terminator instead of changing the existing `\\n\\S` semantics, which broke for the multiline catalog block. - Add object-form link tests covering the both-shapes contract.
42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"name": "@comfyorg/workflow-validation",
|
|
"version": "0.1.0",
|
|
"description": "Workflow JSON schemas, link topology validator, and link repair for ComfyUI workflows",
|
|
"homepage": "https://comfy.org",
|
|
"license": "GPL-3.0-only",
|
|
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./linkRepair": "./src/linkRepair.ts",
|
|
"./linkTopology": "./src/linkTopology.ts",
|
|
"./workflowSchema": "./src/workflowSchema.ts",
|
|
"./serialised": "./src/serialised.ts"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "vite build --config vite.config.mts && tsx ../../scripts/prepare-workflow-validation.ts",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"zod": "catalog:",
|
|
"zod-validation-error": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:",
|
|
"vite-plugin-dts": "catalog:"
|
|
},
|
|
"packageManager": "pnpm@10.17.1",
|
|
"nx": {
|
|
"tags": [
|
|
"scope:shared",
|
|
"type:validation"
|
|
]
|
|
}
|
|
}
|