Repository navigation
Wire the GUI to the existing planning backend - #185
Merged
Merged
Conversation
campanion-cli is now a library the graphical workspace can call. The preview can open or import a 2D part or job, edit tools and profile operations, generate toolpaths, choose a post, preview G-code, and export .ngc or .gcode through the same planner the CLI uses. Material values stay blank until the user enters them. Backend warnings and refusals (omitted laser power, narrow slots) are shown in the UI. CAMpanion remains primarily command-line driven; the GUI is still in development and does not talk to a machine. The Run tab, STOP, and all machine I/O stay inert. Resin and FDM remain placeholders. Per-contour kerf and lead-in overrides are not in the job format and stay as a labeled placeholder. Also adds examples/laser_rect.svg and examples/laser_rect.job.json for a small laser job that posts with grbl_laser.
This was referenced Nov 15, 2026
Merged
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.
Wires
campanion-guito the existing planning backend so a 2D cutting job can be opened, planned, and exported from the preview. CAMpanion remains primarily command-line driven; the GUI is still in development and does not talk to a machine.What this includes
campanion-cliis now a library (campanion_cli) with a small public engine the GUI can call. Thecampanionbinary is unchanged in behavior.campanion-job/1file or a 2D part (DXF/SVG, same as the CLI). File > Save / Save As writes the job file. Opening a job keeps unused fields (rotary, nest, tilt, and so on) by patching the original JSON.campanion run. The Process tab suggestsgrbl_laserfor laser jobs (and the matching built-in post for plasma, waterjet, oxy-fuel, and wire EDM). Milling is left without a suggested post because several mill posts exist.S0, never full scale) and a slot narrower than the kerf.examples/laser_rect.svgandexamples/laser_rect.job.jsonare a small 20×10 mm laser job that posts withgrbl_laser.scripts/check.sh(fmt, clippy, tests, wasm, cargo-deny) was run locally and passed (1294 tests passed, 1 ignored).Refs: GUI job flow.