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

Function run_request_shutdown

s16_team_protocols/code.py:621–632  ·  view source on GitHub ↗
(teammate: str)

Source from the content-addressed store, hash-verified

619# ── Lead Protocol Tools (s16 new) ──
620
621def run_request_shutdown(teammate: str) -> str:
622 req_id = new_request_id()
623 pending_requests[req_id] = ProtocolState(
624 request_id=req_id, type="shutdown",
625 sender="lead", target=teammate,
626 status="pending", payload="")
627 BUS.send("lead", teammate, "Please shut down gracefully.",
628 "shutdown_request",
629 {"request_id": req_id})
630 print(f" \033[35m[protocol] shutdown_request → {teammate} "
631 f"({req_id})\033[0m")
632 return f"Shutdown request sent to {teammate} (req: {req_id})"
633
634
635def run_request_plan(teammate: str, task: str) -> str:

Callers

nothing calls this directly

Calls 3

new_request_idFunction · 0.70
ProtocolStateClass · 0.70
sendMethod · 0.45

Tested by

no test coverage detected