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

Function trigger_hooks

s05_todo_write/code.py:188–193  ·  view source on GitHub ↗
(event: str, *args)

Source from the content-addressed store, hash-verified

186 HOOKS[event].append(callback)
187
188def trigger_hooks(event: str, *args):
189 for callback in HOOKS[event]:
190 result = callback(*args)
191 if result is not None:
192 return result
193 return None
194
195# s04 hooks preserved
196DENY_LIST = ["rm -rf /", "sudo", "shutdown", "reboot", "mkfs", "dd if="]

Callers 2

agent_loopFunction · 0.70
code.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected