Get runtime context, auto-sync directory from attributes if needed
()
| 26 | _RUNTIME = context |
| 27 | |
| 28 | def _require_runtime() -> RuntimeContext: |
| 29 | """Get runtime context, auto-sync directory from attributes if needed""" |
| 30 | if _RUNTIME is None: |
| 31 | raise RuntimeError("RuntimeContext not set. Call set_runtime(...) before tool usage.") |
| 32 | if _RUNTIME.attributes and not _RUNTIME.directory: |
| 33 | _RUNTIME.directory = _RUNTIME.attributes.get('directory') |
| 34 | return _RUNTIME |
| 35 | |
| 36 | def check_code_completeness_tool() -> str: |
| 37 | """ |
no outgoing calls
no test coverage detected