MCPcopy Create free account
hub / github.com/FIND-Lab/AgentWard / detectApprove

Function detectApprove

core/warnings.ts:18–28  ·  view source on GitHub ↗
(
  warning: Warning,
  opts?: { timeoutMs?: number; timeoutBehavior?: "allow" | "deny" },
)

Source from the content-addressed store, hash-verified

16}
17
18export function detectApprove(
19 warning: Warning,
20 opts?: { timeoutMs?: number; timeoutBehavior?: "allow" | "deny" },
21): DetectionResult {
22 return {
23 warning,
24 verdict: "requireApproval",
25 timeoutMs: opts?.timeoutMs,
26 timeoutBehavior: opts?.timeoutBehavior,
27 };
28}
29
30export class Warning {
31 type: string;

Callers 1

toolCallDetectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected