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

Function check_named_bundle

plugins/ngs-analysis/scripts/ngs_reference_manager.py:248–273  ·  view source on GitHub ↗
(
    name: str,
    *,
    kind: str = "reference",
    root: Path | None = None,
    include_checksums: bool = False,
    registries: dict[str, Any] | None = None,
)

Source from the content-addressed store, hash-verified

246
247
248def check_named_bundle(
249 name: str,
250 *,
251 kind: str = "reference",
252 root: Path | None = None,
253 include_checksums: bool = False,
254 registries: dict[str, Any] | None = None,
255) -> dict[str, Any]:
256 registries = registries or load_registries()
257 collection_name = "references" if kind == "reference" else "databases"
258 collection = registries.get(collection_name, {})
259 if name not in collection:
260 return {
261 "bundle": name,
262 "kind": kind,
263 "ok": False,
264 "missing": [],
265 "error": f"unknown {kind} bundle: {name}",
266 "available": sorted(collection),
267 }
268 return check_expected_files(
269 bundle_name=name,
270 bundle=collection[name],
271 override_root=root,
272 include_checksums=include_checksums,
273 )
274
275
276def normalize_pipeline_name(value: str) -> str:

Callers 4

plan_pipeline_resourcesFunction · 0.85
check_all_bundlesFunction · 0.85
inventory_resourcesFunction · 0.85
mainFunction · 0.85

Calls 3

load_registriesFunction · 0.85
check_expected_filesFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected