Ask before a plugin calls OrcaSlicer's tools

Any plugin could call OrcaSlicer's tools through orca.host.tools without a permission, so it could change your project, run post-processing scripts and answer permission prompts. It now needs the OrcaSlicer tools permission or full access, which it can declare as it loads or is asked for the first time it calls, like its other permissions. The Plugins dialog's Permissions tab has a switch for it, and turning it off ends what the plugin's calls left in force.
This commit is contained in:
SoftFever committed 2026-11-26 02:56:29 +08:00
1 parent 6609ca0503
commit b3dcf0ac7d
39 files changed
+1395 -168

No files matched your search

+1 -1
View File
@@ -19863,7 +19863,7 @@
},
{
"completion": "immediate",
"description": "Answer modal dialogs automatically when their title or message matches a rule's regex (case-insensitive). `app_state.auto_answer_rules` lists the rules in force. Called from a replay or script, the rules join those it set before and last until it ends, and a plugin's likewise until it unloads; an MCP client's replace the ones MCP clients set before and last until the MCP server stops, and an empty list clears them. Reply: scope (run, plugin or session), rules (uses counts a rule's answers) and `answered_open_dialog`. A native dialog returns the rule's button at once and never shows. A file or folder picker takes button ok with an absolute path and returns it without showing; without a path a picker can only be cancelled, and a multi-select picker takes no path. A wx dialog is answered as `dialog_answer` does. A matching dialog already open is answered too (`answered_open_dialog`), so a prompt that shows around the same time, such as the restore prompt after startup, is caught either way. A web dialog is matched by its title: a button that names one of its shown wx buttons (by label, standard name or id) is pressed as for a wx dialog, any other on its page once it shows there, for up to 10 s after the page loads; past that, cancel and close end the dialog and any other button gives up.",
"description": "Answer modal dialogs automatically when their title or message matches a rule's regex (case-insensitive). `app_state.auto_answer_rules` lists the rules in force. Called from a replay or script, the rules join those it set before and last until it ends, and a plugin's likewise until it unloads or loses its permission to call the tools; an MCP client's replace the ones MCP clients set before and last until the MCP server stops, and an empty list clears them. Reply: scope (run, plugin or session), rules (uses counts a rule's answers) and `answered_open_dialog`. A native dialog returns the rule's button at once and never shows. A file or folder picker takes button ok with an absolute path and returns it without showing; without a path a picker can only be cancelled, and a multi-select picker takes no path. A wx dialog is answered as `dialog_answer` does. A matching dialog already open is answered too (`answered_open_dialog`), so a prompt that shows around the same time, such as the restore prompt after startup, is caught either way. A web dialog is matched by its title: a button that names one of its shown wx buttons (by label, standard name or id) is pressed as for a wx dialog, any other on its page once it shows there, for up to 10 s after the page loads; past that, cancel and close end the dialog and any other button gives up.",
"destructive": false,
"group": "Driving the GUI",
"guard": "recover",