You are working in /Users/userc042661f/Documents/reigh-workspace/vibecomfy on branch…
- User
You are working in /Users/user_c042661f/Documents/reigh-workspace/vibecomfy on branch megaplan/production-parity-templates. You are not alone in the codebase: do not revert edits made by others, and adjust to existing changes. Main thread just pushed commits a37df4b and 0b7599f, and may continue live RunPod validation. Task: build a focused, generalizable improvement for the new VibeComfy porting tooling: a widget-schema suggestion helper that makes it easier for agents to resolve
widget_alias_unresolveddiagnostics. Inspectvibecomfy/porting/widget_schema.py,widget_aliases.py,workbench.py,vibecomfy/commands/port.py, and tests. Implement a small API/CLI surface if appropriate, e.g.vibecomfy port widgets <workflow> --json, that reports unresolved widget aliases grouped by class and proposes widget-only schema entries when possible from available schema/object_info or current workflow values. It must respect the invariant: positional widget order excludes link-only sockets (MODEL, CLIP, IMAGE, VAE, LATENT, etc.) and may includeNonefor UI-only widgets that appear inwidgets_valuesbut are not API inputs. Do not require network access. Add focused tests and run the relevant pytest slice. Keep changes compact. In final response, list changed files and tests run. - Assistant
I’ll inspect the porting modules and current test layout first, then make a narrowly scoped addition around the existing diagnostic/schema machinery. After that I’ll run the relevant pytest slice from
vibecomfy. - Assistant
The current alias layer already has the key invariant encoded through
LINK_ONLY_TYPES, and unresolved diagnostics are emitted from API prompts. I’m reading the CLI and workbench next to place the helper where agents can call it without affecting conversion behavior. - Assistant
I’m going to add the helper as pure porting code and wire a
port widgetssubcommand to it. The CLI path will use local schema data only, so it won’t start or contact a runtime while someone is just resolving aliases. - Assistant
The edit is small: one analysis function that returns unresolved aliases plus grouped suggestions, then a CLI renderer around it. I’m keeping the existing
unresolved_widget_aliasesshape intact so current reports/tests stay compatible. - Assistant
The helper is now wired. I’m running the focused CLI/workbench/schema tests first; if import cycles or expectation drift show up, I’ll tighten the patch before running a final slice.
- Assistant
The direct
pytestinvocation is picking up a system Python without the package onPYTHONPATH. I’m checking the project layout and test command conventions, then I’ll rerun through the repo’s expected environment. - Assistant
The first run exposed a real import-cycle risk from importing schema APIs at module load time in
widget_aliases. I’m moving that import inside the suggestion path so core workflow compilation stays acyclic. - Assistant
The project virtualenv exists but lacks dev dependencies, and
uv run pytestis resolving to a Homebrew pytest entry point. I’m going to sync the dev environment, then run viapython -m pytestso the interpreter and dependencies match. - Assistant
The focused tests pass after syncing the dev extra. I’m running the full CLI test file plus porting workbench now because the new subcommand touches parser registration and report metadata.
- Assistant
The diff is compact and the worktree only has the intended four files. I’m running the full schema test file too, since the helper depends on schema-derived widget ordering.
- Assistant
Implemented the widget-schema suggestion helper and CLI surface.
Changed files:
- vibecomfy/porting/widget_aliases.py
- vibecomfy/porting/workbench.py
- vibecomfy/commands/port.py
- tests/test_cli.py
What changed:
- Added grouped widget alias analysis with suggested widget-only schema entries.
- Suggestions use committed schema first, then local schema/provider data, excluding link-only sockets.
- Extra observed
widgets_valuespositions are represented asNonefor UI-only widget slots. - Added
vibecomfy port widgets <workflow> --json.