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

Function expected_target_kinds

plugins/codex-security/scripts/workbench_db.py:947–956  ·  view source on GitHub ↗
(scan: sqlite3.Row)

Source from the content-addressed store, hash-verified

945
946
947def expected_target_kinds(scan: sqlite3.Row) -> list[str]:
948 if scan["mode"] == "diff":
949 return ["git_diff"]
950 if scan["target_revision"] == "unversioned":
951 return ["directory_snapshot"]
952 if scan["target_snapshot_digest"] is None:
953 return ["git_worktree", "git_revision"]
954 if scan["target_snapshot_digest"] == clean_worktree_content_digest():
955 return ["git_revision"]
956 return ["git_worktree"]
957
958
959def stored_diff_target(row: sqlite3.Row) -> dict[str, str] | None:

Callers 1

scan_contractFunction · 0.85

Calls 1

Tested by

no test coverage detected