MCPcopy
hub / github.com/ResearAI/AutoFigure-Edit / _classify_artifact

Function _classify_artifact

server.py:398–411  ·  view source on GitHub ↗
(rel_path: str)

Source from the content-addressed store, hash-verified

396
397
398def _classify_artifact(rel_path: str) -> str:
399 if rel_path == "figure.png":
400 return "figure"
401 if rel_path == "samed.png":
402 return "samed"
403 if rel_path.endswith("_nobg.png"):
404 return "icon_nobg"
405 if rel_path.startswith("icons/") and rel_path.endswith(".png"):
406 return "icon_raw"
407 if rel_path == "template.svg":
408 return "template_svg"
409 if rel_path == "final.svg":
410 return "final_svg"
411 return "artifact"
412
413
414def _port_in_use(port: int) -> bool:

Callers 1

_scan_artifactsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected