MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / block

Function block

tools/spec-loop/hooks/solo_spec_gate.py:131–133  ·  view source on GitHub ↗
(reason: str)

Source from the content-addressed store, hash-verified

129
130
131def block(reason: str) -> None:
132 print(json.dumps({"decision": "block", "reason": reason}))
133 sys.exit(0)
134
135
136def allow(reason: str = "") -> None:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected