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

Function parse_bundle_roots

plugins/ngs-analysis/scripts/ngs_reference_manager.py:287–297  ·  view source on GitHub ↗
(values: list[str] | None)

Source from the content-addressed store, hash-verified

285
286
287def parse_bundle_roots(values: list[str] | None) -> dict[str, Path]:
288 roots: dict[str, Path] = {}
289 for raw in values or []:
290 if "=" not in raw:
291 raise SystemExit(f"--bundle-root must be formatted as bundle=/path, got: {raw}")
292 name, value = raw.split("=", 1)
293 name = name.strip()
294 if not name:
295 raise SystemExit(f"--bundle-root is missing bundle name: {raw}")
296 roots[name] = Path(value).expanduser().resolve()
297 return roots
298
299
300def resource_requirements_for_pipeline(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected