INNER CODE UNIT · Python
_skill_text
browser-use/macos-harness · src/macos_harness/cli.py:40
def _skill_text() -> str:
bundled = resources.files("macos_harness").joinpath("SKILL.md")
if bundled.is_file():
return bundled.read_text(encoding="utf-8")
checkout = Path(__file__).resolve().parents[2] / "skills/macos-harness/SKILL.md"
return checkout.read_text(encoding="utf-8")
def _build_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
prog="macos-harness",
description="Execute Python with browser, macOS, and filesystem access.",
epilog=(
"Typical usage:\n macos-harness <<'PY'\n print(mac.see('Spotify'))\n PY"
),
formatter_class=argparse.RawDescriptionHelpFormatter,
)
subparsers = parser.add_subparsers(dest="command")