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

Function allow

tools/spec-loop/hooks/solo_spec_gate.py:136–141  ·  view source on GitHub ↗
(reason: str = "")

Source from the content-addressed store, hash-verified

134
135
136def allow(reason: str = "") -> None:
137 out: dict[str, str] = {"decision": "approve"}
138 if reason:
139 out["reason"] = reason
140 print(json.dumps(out))
141 sys.exit(0)
142
143
144def main() -> None:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected