INNER CODE UNIT · Python
_Plan
faridrashidi/cnsplots · src/cnsplots/_cli.py:47
class _Plan:
destination: Path
writes: dict[str, bytes]
removals: tuple[str, ...]
def _skill_source() -> Traversable:
return resources.files("cnsplots").joinpath("_agent_skill").joinpath("cnsplots")
def _validate_name(name: str) -> None:
if (
not name
or "\\" in name
or ":" in name
or any(part in ("", ".", "..", _MANIFEST) for part in name.split("/"))
):
raise ValueError(f"unsafe managed file name: {name!r}")