MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _env

Function _env

tests/test_hook_bash_read.py:50–56  ·  view source on GitHub ↗
(proj, **extra)

Source from the content-addressed store, hash-verified

48
49
50def _env(proj, **extra):
51 e = dict(os.environ)
52 for k in ("GRAPHIFY_OUT", "GRAPHIFY_HOOK_STRICT", "GRAPHIFY_HOOK_NUDGE_CAP", "GRAPHIFY_HOOK_STRICT_TTL"):
53 e.pop(k, None)
54 e["CLAUDE_PROJECT_DIR"] = str(proj)
55 e.update(extra)
56 return e
57
58
59def _bash(command, proj, *, sid=SID, agent=None, strict=False, tool_name="Bash", env=None):

Callers 4

_bashFunction · 0.70
_read_toolFunction · 0.70

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected