MCPcopy Index your code
hub / github.com/shareAI-lab/learn-claude-code / match_response

Function match_response

s19_mcp_plugin/code.py:364–372  ·  view source on GitHub ↗
(response_type: str, request_id: str, approve: bool)

Source from the content-addressed store, hash-verified

362
363
364def match_response(response_type: str, request_id: str, approve: bool):
365 state = pending_requests.get(request_id)
366 if not state:
367 return
368 if state.type == "shutdown" and response_type != "shutdown_response":
369 return
370 if state.type == "plan_approval" and response_type != "plan_approval_response":
371 return
372 state.status = "approved" if approve else "rejected"
373
374
375def consume_lead_inbox(route_protocol=True) -> list[dict]:

Callers 1

consume_lead_inboxFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected