cmux-code 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: cmux-code
3
+ Version: 0.1.0
4
+ Summary: Pi coding agent launcher with cmux CLI and Cloud VM instructions
5
+ Author: Manaflow AI
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/manaflow-ai/cmux
8
+ Project-URL: Repository, https://github.com/manaflow-ai/cmuxterm-hq
9
+ Keywords: cmux,pi,coding-agent,cloud-vm
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+
13
+ # cmux-code for Python
14
+
15
+ Install from PyPI with:
16
+
17
+ ```sh
18
+ python -m pip install cmux-code
19
+ cmux-code
20
+ ```
21
+
22
+ The Python package is a thin launcher. It uses an installed `cmux-code` npm binary when present, or downloads the same pinned distribution through `npx`. Pi requires Node.js 20.18.1 or newer. The launcher never handles passwords or stores cmux credentials.
@@ -0,0 +1,6 @@
1
+ cmux_code.py,sha256=MaURmvbeXJ51YpmMndzjND55ju6s8aqK29MRec6hzSU,1214
2
+ cmux_code-0.1.0.dist-info/METADATA,sha256=89OYmEZp0BFnr9nD0ro2P00zYLq8AZvdkBIuEiQT0bA,750
3
+ cmux_code-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
4
+ cmux_code-0.1.0.dist-info/entry_points.txt,sha256=Hykl6-vVFm-d4IUgHKSqpQN0qB9HekeKRW6y_3X8xb0,45
5
+ cmux_code-0.1.0.dist-info/top_level.txt,sha256=LB_aRbwLqHsVvwydiMDp5vHT2Y6iLLpJdfbnG2nx9YA,10
6
+ cmux_code-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ cmux-code = cmux_code:main
@@ -0,0 +1 @@
1
+ cmux_code
cmux_code.py ADDED
@@ -0,0 +1,42 @@
1
+ """Python launcher for the cmux-code Pi distribution."""
2
+ from __future__ import annotations
3
+
4
+ import importlib.metadata
5
+ import os
6
+ import shutil
7
+ import subprocess
8
+ import sys
9
+
10
+
11
+ def _run(command: list[str]) -> int:
12
+ try:
13
+ completed = subprocess.run(command, check=False)
14
+ except OSError as exc:
15
+ print(f"cmux-code: could not start {' '.join(command)}: {exc}", file=sys.stderr)
16
+ return 1
17
+ return completed.returncode
18
+
19
+
20
+ def main() -> int:
21
+ """Run an installed cmux-code npm binary, or download it with npx."""
22
+ args = sys.argv[1:]
23
+ local = shutil.which("cmux-code")
24
+ if local and os.path.realpath(local) != os.path.realpath(sys.argv[0]):
25
+ return _run([local, *args])
26
+
27
+ npx = shutil.which("npx")
28
+ if not npx:
29
+ print(
30
+ "cmux-code requires Node.js 20.18.1+ and npx. Install Node.js, then run `pip install -U cmux-code` again.",
31
+ file=sys.stderr,
32
+ )
33
+ return 1
34
+ try:
35
+ version = importlib.metadata.version("cmux-code")
36
+ except importlib.metadata.PackageNotFoundError:
37
+ version = "0.1.0"
38
+ return _run([npx, "--yes", f"cmux-code@{version}", *args])
39
+
40
+
41
+ if __name__ == "__main__":
42
+ raise SystemExit(main())