MCPcopy
hub / github.com/openai/plugins / stored_diff_target

Function stored_diff_target

plugins/codex-security/scripts/workbench_db.py:959–969  ·  view source on GitHub ↗
(row: sqlite3.Row)

Source from the content-addressed store, hash-verified

957
958
959def stored_diff_target(row: sqlite3.Row) -> dict[str, str] | None:
960 if not row["diff_target_kind"]:
961 return None
962 target = {
963 "baseRevision": row["diff_base_revision"],
964 "headRevision": row["diff_head_revision"],
965 "kind": row["diff_target_kind"],
966 }
967 if row["diff_content_digest"]:
968 target["contentDigest"] = row["diff_content_digest"]
969 return target
970
971
972def scan_contract(scan: sqlite3.Row) -> dict[str, Any]:

Callers 3

scan_contractFunction · 0.85
workspace_stateFunction · 0.85
scan_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected