MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / innerOpAllowed

Function innerOpAllowed

app/src/AI/ToolDispatcher.cpp:1398–1402  ·  view source on GitHub ↗

* @brief True when a fanned-out inner command (Safe/Confirm tier) may run without an extra * AI confirmation; Blocked and AlwaysConfirm (incl. deviceGated) ops are rejected. */

Source from the content-addressed store, hash-verified

1396 * AI confirmation; Blocked and AlwaysConfirm (incl. deviceGated) ops are rejected.
1397 */
1398static bool innerOpAllowed(const QString& commandName)
1399{
1400 const auto safety = AI::CommandRegistry::instance().safetyOf(commandName);
1401 return safety == AI::Safety::Safe || safety == AI::Safety::Confirm;
1402}
1403
1404/**
1405 * @brief Builds the rejection reply for a fanned-out op whose safety tier blocks fan-out.

Callers 2

executeBulkApplyFunction · 0.85
executeAddTileFunction · 0.85

Calls 1

safetyOfMethod · 0.80

Tested by

no test coverage detected