Skip to content

Resolve CLI resource profiles by printer vendor - #803

Open
adenta wants to merge 1 commit into
Snapmaker:mainfrom
adenta:fix/vendor-aware-cli-profiles
Open

Resolve CLI resource profiles by printer vendor#803
adenta wants to merge 1 commit into
Snapmaker:mainfrom
adenta:fix/vendor-aware-cli-profiles

Conversation

@adenta

@adenta adenta commented Aug 31, 2026

Copy link
Copy Markdown

Summary

This is a focused follow-up to #689 for the profile-resolution part of headless CLI slicing. It does not replace the existing crash fixes in #560, #561, #562, or #761.

The CLI currently resolves embedded system presets and printer model metadata through hard-coded profiles/BBL paths. This change introduces an internal ResourceProfileResolver that:

  • derives the vendor from the printer preset and/or printer model;
  • loads flattened machine, process, and filament presets from that vendor bundle;
  • resolves vendor-specific printer model IDs (including Snapmaker U1 SM_U1);
  • supports shared OrcaFilamentLibrary inheritance;
  • rejects ambiguous names unless printer vendor context disambiguates them; and
  • resolves optional vendor-scoped resources such as cli_config.json.

Bambu Lab remains the same supported path, but it is no longer the only hard-coded profile root. There are no public CLI syntax changes.

Relationship to existing PRs

Those fixes are complementary and intentionally excluded from this diff.

Validation

The combined validation branch and test models are not part of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant