MCPcopy Index your code
hub / github.com/openai/plugins / stable_target_id

Function stable_target_id

plugins/codex-security/scripts/workbench_db.py:942–944  ·  view source on GitHub ↗
(target: Path)

Source from the content-addressed store, hash-verified

940
941
942def stable_target_id(target: Path) -> str:
943 digest = hashlib.sha256(f"local-workspace\0{target}".encode()).hexdigest()
944 return f"target_sha256_{digest}"
945
946
947def expected_target_kinds(scan: sqlite3.Row) -> list[str]:

Callers 1

scan_contractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected