import type { ToolEffect, ToolExecutionClass } from "@best-agent/protocol";

export function inferToolEffectFromExecutionClass(executionClass: ToolExecutionClass): ToolEffect {
  switch (executionClass) {
    case "read-only":
      return "read";
    case "workspace-mutation":
      return "write";
    case "external-side-effect":
      return "execute";
  }
}
