Commit Graph
894 Commits
Author SHA1 Message Date
SoftFever 4723f694ca Merge branch 'main' into feature/mcp 2026-11-26 03:39:47 +08:00
SoftFever 18eb4f8459 Organize the MCP tool code by place and the Design commands by heading
Each place an agent finds commands under (Objects, Plates, View and windows and so on) now has one source file
under Mcp/Tools/, and the Design tab's commands have one file per Design heading, so a developer finds a command
where tool_list lists it and adds a new one beside its neighbours. A unit test fails when a command is added in
another place's file. No change to what agents or people see: the command catalog is byte-identical.
2026-11-24 23:50:10 +08:00
SoftFever 5eefef82fc Add the Agent Activity pane
A new pane, opened from View > Agent Activity or the Speed Dial, lists live what an AI agent and other
automation (Action Replay, Run Script, the command line, plugins) do in OrcaSlicer while it is open: each
call with its source, what it changed, failures with their reason, the steps of a run and the dialogs a
rule answered. Opening a call shows its request and response with passwords, keys and typed text masked,
so a person can watch and check what an agent is doing to their project.
2026-11-24 16:38:50 +08:00
Damir Galeev aefb6b3d66 Precise Seam: intersect modifiers with the model surface, not the perimeter centerline (#17557)
* Precise Seam: intersect modifiers with the model surface, not the perimeter centerline

A modifier acted where it crossed the centerline of the printed perimeter, which
lies about half a line width inside the model surface and deeper at corners. It
now acts where it crosses the model surface.

- The surface is reconstructed from the centerline by a shift of half the
  external perimeter width less the XY compensation and a 5 um margin, clipped
  against the modifier and carried back onto the centerline.
- On elephant foot layers and with Arachne the shift is measured against the
  layer's islands.
- With fuzzy skin the perimeter generator keeps the centerline before texturing
  (ExtrusionLoop::untextured); modifiers are evaluated on it and the points are
  carried onto the noisy loop.
- Open extrusions are left out of Precise Seam.
- The "had no effect" warning no longer names the centerline.

See docs/HLSD/precise-seam.md.

* Precise Seam: fuzzy skin window per loop kind; no negative search reach

The transfer window of a fuzzy skin loop counted every region with fuzzy
skin on the layer, including those that do not texture its kind (a Hole
region for contours, an External one for holes). FuzzySkin.cpp skips such
regions, so mixed settings widened the transfer search and the weak zone
order check. The window is now computed for contours and holes separately
from the regions should_fuzzify() selects, as a function in
PreciseSeamInternal.hpp with a unit test.

The modifier prefilter of the measured shift no longer takes a negative
reach: a compensation beyond the whole wall depth leaves no shift.

* Precise Seam: shift narrow classic loops by their own line; keep the warning translations

Without thin wall detection the classic generator prints an island too narrow for
two lines with a thinner line and insets the loop by half of that width, while the
surface shift used the region's external perimeter width. The reconstructed
surface lay 0.055 x spacing - 5 um outside the model, more than the margin, so a
modifier flush against the face acted on such loops. The shift of a classic loop
now comes from the width of its own external perimeter path; Arachne loops are
measured as before.

The two "had no effect on the seam" messages lost their bracketed part, and the
catalogs dropped the old entries without getting the new ones. The entries are
back under the new msgids with the existing translations, trimmed of the
bracketed part.

* Precise Seam: keep the aligned seam inside an Enforced modifier zone

A loop with an Enforced zone in effect now has exact ends: alignment no longer
moves the seam up to 0.2 mm past a zone boundary, and Random does not sample
the edge leaving the zone.

* Precise Seam: test both ends of an Enforced zone in alignment

The regression test for the aligned seam leaving an Enforced modifier zone
ran on the right face only, where the stepping end of the zone is the last
candidate of the Enforced run. It now also runs on the left face, where the
same end is the first candidate, so both directions of the allowed arc are
checked.

The HLSD notes that a zone reduced to a single candidate holds the aligned
seam on it, so alignment cannot smooth its shift between layers.
2026-11-23 18:32:08 +08:00
SoftFever 867ba9b005 Merge branch 'main' into feature/mcp 2026-11-21 18:57:39 +08:00
SoftFever 0584100037 Let MCP clients start a print, send to a Bambu printer, and test the print host
print_start opens the dialog the Print button opens for the selected printer, for one plate or all of them, and is
refused where the button would be disabled, such as for a plate not sliced. printer_send, and the Send G-code Speed
Dial action with it, open the dialog that sends to a Bambu printer's storage where they used to refuse such a printer,
and take the plate to send. printer_test_host checks that the printer's print host answers, as the Test button of its
connection dialog does.
2026-11-19 22:40:22 +08:00
Lam Wei Lun 1de01873ae Fix mouse ear brim missing at a rounded corner depending on object orientation (#17163)
Mouse ear placement no longer depends on where the outline starts. The old code simplified the outline with Douglas-Peucker, which is anchored on its first vertex, so rotating a part changed which rounded corners got an ear.

make_brim_ear_points() now measures the turn at each vertex over a window of arc length on both sides, and doubles the window while the outline keeps turning. Corners with large fillets now get an ear at the default settings. A candidate whose window already reached a placed ear is dropped, so a sharp corner next to a curve gets one ear. The Brim Ears tool's Auto-generate uses the same function.

Behavior change: a smooth closed outline such as a disc gets no ears at the default 125 degree max angle. Raising the max angle to 135 or more still gives it ears.

Fixes #17119
2026-11-19 08:01:51 -06:00
SoftFever d25593e29b Let MCP clients open the painting, Measure, Simplify and Mesh Boolean gizmos on a named object
object_paint, object_measure, object_simplify and part_boolean open their gizmo on the object, instance or part a
client names, where before a client had to know the gizmo existed and click its icon after selecting. A refused
opening says why in the gizmo's own terms, such as Mesh Boolean needing two parts, and leaves the selection and the
undo history as they were.
2026-11-19 20:21:41 +08:00
Kim Gunwoo 4f71398a0f Fix korean translations for left and right extruder (#17612)
* Fix korean translations for left and right extruder

Updated translations for 'left extruder' and 'right extruder' to use '압출기' instead of '익스트루더'.

I showed 'extruder' and 'Extruder' has different translation in Korean. So i firstly fixed it

* Update Korean translations for extruder terms

Thanks for the review and for pointing out the remaining inconsistencies!

I've updated the eight additional strings in the same PR to use "압출기" consistently with the Korean localization.
2026-11-19 02:47:30 +03:00
SoftFever d64e10f4dd Regroup the slicer's MCP commands and let each run from its arguments
Outside the Design tab an agent had 175 commands, 50 of them in the tool
list. There are now 118, named by what they act on (`object_`, `plate_`,
`preset_`, `filament_`, `plugin_` and so on), and 115 are listed. Each takes
its target and values in the call, acts on the selection when it names no
target and says what it acted on; an old name is refused. Printers and
system filaments install and uninstall, preferences read and write, plugins
enable, reload, uninstall and refresh, and objects reorder, with no dialog
to drive.

The Speed Dial keeps its 129 tiles under the same ids. Eight defects in the
rows these commands share with the menus are fixed. For a person: an object
row that cannot run says why instead of "Select an object first.", rows
that failed no longer claim success, Duplicate Plate can be undone, and
Refresh Plugins picked while a refresh runs now runs after it instead of
beside it.
2026-11-18 16:50:32 +08:00
SoftFever 54c5c8d2a7 revert localization/i18n/OrcaSlicer.pot 2026-11-15 01:18:04 +08:00
SoftFever fece418ae0 Make the automation runtime its own subsystem, with MCP as one front end
Everything that drives OrcaSlicer by command (the dispatch of the command
catalog, jobs, the journal, replays, Python scripts, recordings) lived
inside the MCP server's service class. So Action Replay, the Run Script
panel, a plugin's tool call, a person's recording and a run from the
command line each had to start "the MCP service", with all of its GUI
hooks, although none of them needs a server or an agent.

The automation runtime is now a subsystem of its own. It starts the first
time a front end asks for it and knows none of them. The MCP endpoint
(HTTP, the protocol, the token, the discovery file, the takeover of a port
another window holds) is one front end beside the others, opened and
closed without stopping what the others run. The widget inspector, menu
capture and ImGui item recording are turned on only by a front end that
drives the GUI, so a person's recording or long command does not carry
them.

The part of the runtime that needs no GUI is the library
libslic3r_automation, built without wxWidgets and tested by its own suite,
automation_tests. A wx dependency in it fails to build, and its tests no
longer link the GUI library or the embedded Python.

The command line has one option set for this: --run FILE runs a replay or
a Python script once the GUI is ready, with --outputdir for its files, and
--unrestricted-scripts and --cad turn their settings on for one run
without saving them. --mcp-run, --mcp-run-out and --mcp-token are gone;
the scripts setting is python_scripts_unrestricted and a session's output
folder is <datadir>/automation/out. get_app_state reports ready and
version at the top level, and its mcp block describes the endpoint only.

No change to slicing output.
2026-11-14 23:41:01 +08:00
SoftFever 822775179b Merge branch 'main' into feature/mcp 2026-11-14 01:05:25 +08:00
SoftFever 1ef24b7d34 Hold Speed Dial commands, MCP tools and Design tools in one command catalog
Every command takes JSON arguments and has one function for a person and for
automation: with no arguments it does what a person's pick does, and with
arguments it runs silently. The Design tab's CAD tools are commands that
call_tool runs, and they show as Speed Dial tiles on the Design tab.
2026-11-13 20:59:31 +08:00
SoftFever 0616068e26 Run commands, tools and the plugin API through one operations layer
A Speed Dial command, the MCP tool that does the same thing and the plugin
API's preset calls now run one shared operation, so every route accepts and
refuses the same states, with one wording and a code for each refusal. An
import by a command or a tool is one undo step, and import_file adds geometry
only.

The cases where two routes behaved differently now behave the same: a project
is not saved under a .gcode.3mf name, an empty project exports as .3mf but not
as STL, arrange runs from any view and with a gizmo open, a mixed-colour
filament slot is refused as one, a hidden preset is shown before it is
selected, and a layer is refused while the Preview has none.
2026-11-12 22:06:10 +08:00
Ian Bassi db9968b9ee Painted modifiers (#16213) 2026-11-12 10:38:03 -03:00
SoftFever 0b9c47be29 Move the Design tab's MCP code next to the MCP server 2026-11-09 20:42:30 +08:00
SoftFever 348c801203 Keep the call_cad_tool registration with the Design tab's MCP code 2026-11-09 20:40:36 +08:00
SoftFever 70ca70ceb3 Give MCP tools plain names and call recorded tool lists replays 2026-11-09 20:21:02 +08:00
SoftFever 643319c40b Split Run Script into Action Replay and a docked Python Run Script panel 2026-11-09 03:25:25 +08:00
SoftFever a52e232385 Merge branch 'main' into feature/mcp 2026-11-07 03:12:51 +08:00
SoftFever eedd56991c Merge branch 'main' into feature/mcp 2026-11-07 02:51:37 +08:00
Kris Austin e2c2641acf Give the plugin Permissions tab its own Processes translation (#17339) 2026-11-07 02:47:11 +08:00
Kris AustinandSoftFever 8b9e977458 Refresh the translation catalogs for 2.5.0 (#17336)
* Regenerate the translation template and catalogs for 2.5.0

* Restore and fill translations for the strings added since 2026-11-03

* correct Chinese translations

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2026-11-07 01:55:20 +08:00
SoftFever 10c9df3578 Complete Simplified and Traditional Chinese translations (#17333) 2026-11-07 01:16:42 +08:00
SoftFever b11009123c Update translation catalogs and fix run_gettext warnings (#17332)
* update locales

* Stop marking the plugin permissions example URL for translation
2026-11-07 01:04:20 +08:00
Felix14_v2 c43c560bbe Update OrcaSlicer_ru.po (#17225)
* Update OrcaSlicer_ru.po

* Oops

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po
2026-11-07 00:08:49 +08:00
932b492252 feat: Add plugin permission management to the Plugins dialog (#17285)
* feat: permissions tab in plugin dialog ui draft

* feat: allow full access, make threading a boolean

* fix: clang-tidy

* feat: save changes button

* fix: clang-tidy

* fix: only allow permission editing when plugin not loaded

* fix: plugin permission drafts, target validation, and sidecar synchronization

* fix: minor html/css changes

* fix: Make plugin permission edits immediate and thread-safe

* refactor: rehaul UI

* fix: add don't show again to request permission dialog

* fix: permission request dialog ui

* fix: clean up plugin permission dialog and mutation APIs

* fix: retry Windows plugin permission file replacement

* test: extract and cover plugin permission validators

* fix: show clear denial for worker plugin file operations

* fix: clang-tidy

* docs: clarify plugin filesystem permissions and clean up declaration

* fix: handle the 3 states of install state read

* fix: match equivalent paths for exact filesystem grants

* fix: preserve unreadable plugin state and allow socket grant editing

* Recover plugins whose install-state file cannot be parsed

---------

Co-authored-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
Co-authored-by: SoftFever <softfeverever@gmail.com>
2026-11-07 00:00:18 +08:00
SoftFever 17a745e30c Merge branch 'main' into feature/mcp 2026-11-04 13:42:41 +08:00
Valerii Bokhan 0b041740b1 Fix Wipe Inward retraction splitting and sandwich wall offsets (#17160) 2026-11-03 21:41:16 -03:00
Alexandre Folle de Menezes 26a3937771 Standardize the spelling of "RepRapFirmware" (#17174)
Standardize the spelling of "RepRap Firmware"
2026-11-03 16:23:12 +03:00
SoftFever ee0314dee2 Merge branch 'main' into feature/mcp 2026-11-03 16:28:57 +08:00
Damir Galeevandyw4z fa5f7e3db4 Keep original body names when importing STEP, AMF and 3MF geometry (#17050)
* Keep original body names when importing STEP, AMF and 3MF geometry

STEP, AMF and 3MF bodies keep the names stored in the file. The three formats share one geometry import path with matching dialogs, per-format Preferences and cleanup of unsupported characters. AMF body groups load as one object, nested groups are flattened, and a CAD 3MF is imported as geometry.

* Use the app's widgets in the geometry import dialogs

Check boxes, radio buttons and the name replacement field in the STEP,
AMF/3MF and name cleanup dialogs now use the app's own controls instead
of the native ones; the name cleanup preview uses the dialogs' label font.

* Address review: AMF layout, Open Project cancel, part visibility

- AMF: the import dialog offers "Separate objects (as before)" first and
  uses it by default, so files from PrusaSlicer and Slic3r, which keep a
  whole plate in one constellation, load as separate objects again. The
  assembly modes are opt-in.
- File > Open Project with a CAD 3MF replaces the project only after the
  import dialogs were answered and the file was read with geometry to load.
  A Cancel or an empty file keeps the current project, its unsaved state,
  notifications and preview state; close_with_confirm() can hand back its
  closing steps for this.
- The object list no longer changes the model while it checks whether a
  single-object import hides its parts: ModelObject::hides_imported_parts()
  is used by the list, Split to parts and its menu check, and the painting
  gizmos' list update shows or hides the parts when painting changes.
  Removing the part rows keeps the object a container for its instances.
- Progress: staged reading takes the first part of the bar and never goes
  back within a file; the load loop takes the rest.
- A constellation id equal to an object id is logged as a warning.
- set_import_volume_order() is defined next to sort_objects().

* Address review: part rename on drag, Multi-part check for unplaced AMF

- Dragging a part of an imported object cancels a name editor that is
  still open before the part rows are rebuilt. On GTK the editor opened by
  pressing the selected row outlived the deleted row and wrote its name
  into another part.
- The Multi-part check reads zero for objects the file does not place, as
  min_z() did in Release builds, instead of their mesh height: the meshes
  are already centered by then, so different heights asked the question
  where main does not.
- Non-printable AMF groups skip the Multi-part question only in the
  assembly modes; Separate objects asks as before.
- The first AMF load mode is "Load as separate objects".

---------

Co-authored-by: yw4z <ywsyildiz@gmail.com>
2026-11-03 14:14:17 +08:00
SoftFever 99018203de Add Python scripts and plugin tools to the MCP server
The MCP tools are listed in core, API and UI lanes. With Python scripts turned on in Preferences, agents
and people can run Python against the open app; plugins holding the tools permission can call the tools,
and plugins can offer operations of their own to agents. Calls can pin object and volume ids so a stale
index is refused, and run_script takes a script as JSON text as well as an object.
2026-11-02 16:05:13 +08:00
Alexandre Folle de MenezesandIan Bassi 95a2732145 UTF-8, SVG and STEP should always be in UPPERCASE (#17092)
Co-authored-by: Ian Bassi <ian.bassi@outlook.com>
2026-11-01 10:40:12 -03:00
SoftFever d6447efdb4 Merge branch 'main' into feature/mcp 2026-11-01 01:27:31 +08:00
Felix14_v2 4045a87b70 Review Russian localization AI updates (#16849)
* Update OrcaSlicer_ru.po

* Restore `G-code` translation removal

* Restore `G-code` translation removal 2

* Update OrcaSlicer_ru.po

* IMEX, color mixing, etc.

* More IMEX improvements

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Restore `G-code` translation removal

* Restore `G-code` translation removal 2

* Update OrcaSlicer_ru.po

* IMEX, color mixing, etc.

* More IMEX improvements

* Fix validation

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Remove old detailed pattern descriptions

(hopefully localized descriptions will be moved to wiki)

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Restore `G-code` translation removal

* Restore `G-code` translation removal 2

* Update OrcaSlicer_ru.po

* IMEX, color mixing, etc.

* More IMEX improvements

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Restore `G-code` translation removal 2

* Update OrcaSlicer_ru.po

* IMEX, color mixing, etc.

* More IMEX improvements

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Remove old detailed pattern descriptions

(hopefully localized descriptions will be moved to wiki)

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po
2026-11-01 01:01:37 +08:00
Alexandre Folle de MenezesandIan Bassi 4ab172fd33 Verify and improve AI pt_BR translations (#16871)
* Verify and improve AI pt_BR translations

* Fix typos and agreement left by the pt_BR term changes

Cabeçote is masculine and ponte feminine, so the switch from cabeça da ferramenta and pórtico left mismatched articles and pronouns. Also restore capitals on sentence-initial "Clique" and fix "rteservada".

---------

Co-authored-by: Ian Bassi <ian.bassi@outlook.com>
2026-11-01 01:00:36 +08:00
SoftFever d6e2cd0a46 Merge branch 'main' into feature/mcp 2026-10-31 18:23:32 +08:00
Ian Bassi 3bc827066d Fix tooltip line breaks and ambiguous msgids in all languages (#17055) 2026-10-30 12:52:34 -03:00
SoftFever 4439b743a8 Show a REC pill in the tab bar while a recording runs 2026-10-30 23:30:32 +08:00
SoftFever c56d9968a1 Add app recording and screenshots for MCP agents and the Help menu
Agents can record OrcaSlicer to video, captioned with the current tool call, and encode it to MP4.
People get Take Screenshot and Start/Stop Recording in the Speed Dial and the Help menu, with a
dialog for the recording and encoding settings.
2026-10-30 18:41:40 +08:00
SoftFever c9db694c32 Add a Run Script dialog for running MCP scripts in the app 2026-10-30 07:46:10 +08:00
Eminyandyw4z 3936995b6e Update Turkish translations (#16943)
* Update Turkish translations

* Match option names to the existing Turkish labels

* Drop the AI Translated comments from the reviewed Turkish entries

---------

Co-authored-by: yw4z <ywsyildiz@gmail.com>
2026-10-28 01:34:52 +03:00
Ian Bassi 0ef9015904 Ask for the size of a primitive when adding it (#16848) 2026-10-26 15:01:47 -03:00
SoftFever 6e8a14f3aa Translate the new strings into French 2026-10-26 23:34:21 +08:00
SoftFever 69756de353 Translate the new strings into German 2026-10-26 23:12:50 +08:00
SoftFever 3ce5122b22 Translate the new strings into Japanese (#16905)
# Description

Translates the 217 new strings in the Japanese catalog, so it has no
empty entry left. Most are the messages that explain why a setting is
hidden or disabled, and each one quotes the setting's existing Japanese
label or dropdown value, so users can find what to change. Where the
English says "Marlin firmware G-code flavor", the translation names the
dropdown value it refers to, Marlin 2. The rest are the plate menu's
Order By, the discrete-GPU and high-precision G-code options, and the
color picker.

21 entries carry a `# Needs human review` note. Most mention the prime
or wipe tower, a term the glossary still marks as unsettled for
Japanese. The others are three SLA strings about the pad, three that
quote the existing label エアフィルトレーションを有効化 where the glossary has 空気ろ過,
and one whose English says "wrapping detection" while the setting it
gates is "Enable clumping detection".

The Japanese glossary cells for Single Extruder Multi Material and Air
filtration are filled in OrcaSlicer/OrcaSlicer_WIKI#420.

# Screenshots/Recordings/Graphs

<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->

## Tests

`scripts/run_gettext.sh --full` exits 0 and leaves the catalog
unchanged, and the skill's `check` (which includes `msgfmt
--check-format`) reports no errors for ja. The strings were not checked
in the running app.

<!--
> A guide for users on how to download the artifacts from this PR.
-->

[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
2026-10-26 22:53:19 +08:00
SoftFever f3ffd6b1a6 Translate the new strings into Japanese 2026-10-26 22:42:17 +08:00
SoftFever a4fb4e951c Translate the new strings into Simplified and Traditional Chinese 2026-10-26 22:11:05 +08:00