MCPcopy Index your code
hub / github.com/idank/explainshell / _artifact_path

Method _artifact_path

explainshell/extraction/llm/extractor.py:550–554  ·  view source on GitHub ↗

Return `` / / ``, creating the subdir.

(self, kind: str, stem: str, suffix: str)

Source from the content-addressed store, hash-verified

548 return os.path.splitext(os.path.splitext(os.path.basename(gz_path))[0])[0]
549
550 def _artifact_path(self, kind: str, stem: str, suffix: str) -> str:
551 """Return ``<run_dir>/<kind>/<stem><suffix>``, creating the subdir."""
552 sub = os.path.join(self._run_dir or "", kind)
553 os.makedirs(sub, exist_ok=True)
554 return os.path.join(sub, f"{stem}{suffix}")
555
556 def _dump_failed_response(
557 self, gz_path: str, chunk_idx: int, raw_response: str

Callers 2

_finalizeMethod · 0.95
_dump_failed_responseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected