isPreToolHookSummary static method

bool isPreToolHookSummary(
  1. RenderableMessage msg
)

Check if a message is a pre-tool hook summary.

Implementation

static bool isPreToolHookSummary(RenderableMessage msg) {
  return msg.type == 'system' &&
      msg.subtype == 'stop_hook_summary' &&
      msg.hookLabel == 'PreToolUse';
}