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

Function software_versions

plugins/ngs-analysis/scripts/ngs_run_utils.py:245–254  ·  view source on GitHub ↗
(commands: dict[str, list[str]])

Source from the content-addressed store, hash-verified

243
244
245def software_versions(commands: dict[str, list[str]]) -> dict[str, str | None]:
246 versions: dict[str, str | None] = {}
247 for name, cmd in commands.items():
248 if not command_path(cmd[0]):
249 versions[name] = None
250 continue
251 result = run_cmd(cmd, Path.cwd(), timeout=30)
252 detail = result.get("stdout_tail") or result.get("error") or ""
253 versions[name] = "\n".join(str(detail).splitlines()[:3]).strip() or None
254 return versions
255
256
257def _iter_existing_paths(value: Any) -> list[Path]:

Callers 14

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
runtime_version_snapshotFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls 3

command_pathFunction · 0.70
run_cmdFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected