MCPcopy Index your code
hub / github.com/lightningpixel/modly / _export_workspace_path

Function _export_workspace_path

tools/modly-cli/agent.py:160–163  ·  view source on GitHub ↗
(base_url: str, workspace_path: str, fmt: str, dest: Path, *, timeout: float)

Source from the content-addressed store, hash-verified

158
159
160def _export_workspace_path(base_url: str, workspace_path: str, fmt: str, dest: Path, *, timeout: float) -> int:
161 workspace_path = _validate_workspace_path(workspace_path)
162 export_url = f"{base_url.rstrip('/')}/export/{urllib.parse.quote(fmt)}?{urllib.parse.urlencode({'path': workspace_path})}"
163 return _download(export_url, dest, timeout=timeout)
164
165
166def _try_health(base_url: str, timeout: float) -> dict[str, Any] | None:

Callers 3

_generate_oneFunction · 0.85
cmd_legacy_generateFunction · 0.85
cmd_exportFunction · 0.85

Calls 2

_validate_workspace_pathFunction · 0.85
_downloadFunction · 0.85

Tested by

no test coverage detected