MCPcopy Create free account
hub / github.com/1jehuang/jcode / find_jcode_binary

Function find_jcode_binary

scripts/compare_token_usage.py:70–83  ·  view source on GitHub ↗

Find the jcode binary.

()

Source from the content-addressed store, hash-verified

68
69
70def find_jcode_binary() -> str:
71 """Find the jcode binary."""
72 # Check target/release first
73 repo_root = Path(__file__).parent.parent
74 release_binary = repo_root / "target" / "release" / "jcode"
75 if release_binary.exists():
76 return str(release_binary)
77
78 # Check PATH
79 result = subprocess.run(["which", "jcode"], capture_output=True, text=True)
80 if result.returncode == 0:
81 return result.stdout.strip()
82
83 raise FileNotFoundError("jcode binary not found. Run 'cargo build --release' first.")
84
85
86def run_claude_cli(prompt: str, workdir: str, model: str = "opus") -> RunResult:

Callers 1

run_test_suiteFunction · 0.85

Calls 2

PathClass · 0.85
runMethod · 0.45

Tested by

no test coverage detected