You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Agent-to-agent approval policy. A row requires every message from one agent to another to be approved by a human before delivery — without un-wiring the connection. No row = free flow. Directed and per-pair: gate both directions with two policies. Operator-only (agents cannot manage their own gates).',
'Require approval for messages from one agent to another. Use --from <agent-group-id> --to <agent-group-id> --approver <user-id>. Only the named approver (or an owner) can approve.',
28
+
handler: async(args)=>{
29
+
constfrom=args.fromasstring;
30
+
constto=args.toasstring;
31
+
constapprover=args.approverasstring;
32
+
if(!from)thrownewError('--from is required');
33
+
if(!to)thrownewError('--to is required');
34
+
if(!approver)thrownewError('--approver is required');
35
+
if(from===to)thrownewError('--from and --to must differ (self-messages are never gated)');
36
+
if(!getAgentGroup(from))thrownewError(`source agent group not found: ${from}`);
37
+
if(!getAgentGroup(to))thrownewError(`target agent group not found: ${to}`);
0 commit comments