Conversation
Co-authored-by: KidiXDev <100352770+KidiXDev@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor main logic for better readability and add image support
Refactor parser into modular files and add ComfyUI support
Mar 12, 2026
Owner
|
@copilot add github action workflow for auto create tag if not exist based on package version and release for windows |
Co-authored-by: KidiXDev <100352770+KidiXDev@users.noreply.github.com>
Contributor
Author
Added in commit How it works:
To release a new version simply bump |
Copilot
AI
changed the title
Refactor parser into modular files and add ComfyUI support
Refactor parser into modular files, add ComfyUI support, and add Windows release workflow
Mar 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The parsing logic lived in a single file with excessive debug logging and no support for ComfyUI images. This PR splits the parser, adds ComfyUI detection and extraction, updates the UI and README accordingly, and adds a GitHub Actions workflow to automatically tag and release Windows builds when the package version changes.
Parser refactor
Replaced monolithic
utils/parser.tswith focused modules:utils/types.ts— sharedExifTagandImageParametersinterfacesutils/a1111-parser.ts— A1111/AUTOMATIC1111 parser; removed debugconsole.logcalls, simplified flow viaparseParameterBlockutils/comfyui-parser.ts— new ComfyUI node-graph JSON parser (see below)utils/parser.ts— thin re-export facade for backward compatibilityComfyUI support
ComfyUI embeds a node-graph JSON in the PNG
prompttext chunk. The new parser:isComfyUIWorkflow()— checks forclass_typekeys in the JSONimageProcessing.tsnow builds a flatRecord<string, ExifTag>from ExifReader's flatTagsand Sharp's PNG text chunks, runs format detection, and attachesparserType: 'a1111' | 'comfyui' | 'unknown'to every result.UI & types
MetadataViewerrenders a pill badge ("Stable Diffusion WebUI (A1111)" / "ComfyUI") next to image infopreload/index.d.tsandenv.d.tsupdated withparserType; fixed pre-existingopenExternaltype mismatchREADME
Supported AI Tools section replaced with a status table; project structure updated to reflect new parser layout.
CI: Automated Windows release workflow
Added
.github/workflows/release.ymlthat runs on every push tomain(and supports manual dispatch):ubuntu-latest): readsversionfrompackage.jsonand usesgit ls-remoteto check whether the tagv{version}already exists. If it does, the build job is skipped.windows-latest, only when tag is new):yarn install --frozen-lockfileyarn build:win(producesdist/stable-parser-{version}-setup.exe).exeas a release asset viasoftprops/action-gh-release@v2To publish a new release, bump
"version"inpackage.jsonand push tomain.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.