mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-28 16:11:54 -05:00
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.
This commit is contained in:
1 parent
eae8929b41
commit
5eefef82fc
71 files changed
+5320
-413
No files matched your search
@@ -214,8 +214,8 @@ TEST_CASE("what action_run journals for an action of fixed arguments is a call i
|
||||
}
|
||||
return checked;
|
||||
};
|
||||
// The 129 Speed Dial entries outside the Design tab are commands' actions: eight own and 121 items.
|
||||
CHECK(check_actions(NativeCommands::instance()) == 129);
|
||||
// The 130 Speed Dial entries outside the Design tab are commands' actions: eight own and 122 items.
|
||||
CHECK(check_actions(NativeCommands::instance()) == 130);
|
||||
|
||||
const auto recorded_for = [](const CommandCatalog& catalog, const char* key, const json& given) {
|
||||
const auto [command, action] = find_command_action(catalog, key);
|
||||
@@ -229,7 +229,7 @@ TEST_CASE("what action_run journals for an action of fixed arguments is a call i
|
||||
CommandCatalog design;
|
||||
NativeCommands::register_all_commands(design, {true});
|
||||
design.seal();
|
||||
CHECK(check_actions(design) > 129);
|
||||
CHECK(check_actions(design) > 130);
|
||||
CHECK(recorded_for(design, "sk_array_polar", json::object()) == json{{"type", "circular"}});
|
||||
#endif
|
||||
}
|
||||
@@ -1407,13 +1407,13 @@ TEST_CASE("tool_list gives the menu items then the Design commands by heading, i
|
||||
if (!c.listed)
|
||||
expected.push_back(c.key);
|
||||
CHECK(names == expected);
|
||||
REQUIRE(names.size() == 91);
|
||||
CHECK(std::set<std::string>(names.begin(), names.begin() + 3) ==
|
||||
std::set<std::string>{"window_save_screenshot", "script_toggle_panel", "settings_toggle_developer_mode"});
|
||||
REQUIRE(names.size() == 92);
|
||||
CHECK(std::set<std::string>(names.begin(), names.begin() + 4) ==
|
||||
std::set<std::string>{"window_save_screenshot", "script_toggle_panel", "settings_toggle_developer_mode", "view_toggle_activity_panel"});
|
||||
// Each Design command under its heading, heading by heading in the order tool_list's description indexes them.
|
||||
const std::string told = catalog.find("tool_list")->description;
|
||||
std::size_t indexed = 0;
|
||||
for (std::size_t i = 3; i < names.size(); ++i) {
|
||||
for (std::size_t i = 4; i < names.size(); ++i) {
|
||||
const json& item = all.at("items")[i];
|
||||
INFO(item.dump());
|
||||
CHECK(item.at("group") == Slic3r::GUI::kDesignGroup);
|
||||
|
||||
Reference in new issue
Block a user