graviton-cli 1.0.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.
graviton_cli/__init__.py
ADDED
graviton_cli/__main__.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import platform
|
|
3
|
+
import shutil
|
|
4
|
+
import subprocess
|
|
5
|
+
import sys
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from typing import NoReturn
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def get_binary_path() -> Path:
|
|
11
|
+
"""Resolve the platform-specific standalone binary."""
|
|
12
|
+
system: str = platform.system().lower()
|
|
13
|
+
machine: str = platform.machine().lower()
|
|
14
|
+
|
|
15
|
+
if system == "darwin":
|
|
16
|
+
arch: str = "arm64" if machine == "arm64" else "x64"
|
|
17
|
+
binary: str = f"graviton-darwin-{arch}"
|
|
18
|
+
elif system == "linux":
|
|
19
|
+
arch: str = "arm64" if machine in ("arm64", "aarch64") else "x64"
|
|
20
|
+
binary: str = f"graviton-linux-{arch}"
|
|
21
|
+
elif system == "windows":
|
|
22
|
+
binary: str = "graviton-win-x64.exe"
|
|
23
|
+
else:
|
|
24
|
+
raise RuntimeError(f"Unsupported platform: {system} {machine}")
|
|
25
|
+
|
|
26
|
+
return Path(__file__).parent.parent / "bin" / binary
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def main() -> NoReturn:
|
|
30
|
+
"""Execute Graviton native binary or system fallback."""
|
|
31
|
+
binary: Path = get_binary_path()
|
|
32
|
+
|
|
33
|
+
if binary.exists():
|
|
34
|
+
try:
|
|
35
|
+
os.chmod(binary, 0o755)
|
|
36
|
+
result = subprocess.run([str(binary)] + sys.argv[1:])
|
|
37
|
+
sys.exit(result.returncode)
|
|
38
|
+
except KeyboardInterrupt:
|
|
39
|
+
sys.exit(130)
|
|
40
|
+
except Exception as exc:
|
|
41
|
+
print(f"Error running Graviton binary: {exc}", file=sys.stderr)
|
|
42
|
+
sys.exit(1)
|
|
43
|
+
|
|
44
|
+
# Fallback to bunx or npx runner if precompiled binary is not bundled for this arch
|
|
45
|
+
bunx: str | None = shutil.which("bunx")
|
|
46
|
+
if bunx:
|
|
47
|
+
result = subprocess.run([bunx, "@yakkshit/graviton"] + sys.argv[1:])
|
|
48
|
+
sys.exit(result.returncode)
|
|
49
|
+
|
|
50
|
+
npx: str | None = shutil.which("npx")
|
|
51
|
+
if npx:
|
|
52
|
+
result = subprocess.run([npx, "-y", "@yakkshit/graviton"] + sys.argv[1:])
|
|
53
|
+
sys.exit(result.returncode)
|
|
54
|
+
|
|
55
|
+
print(f"Error: Graviton binary not found at {binary}", file=sys.stderr)
|
|
56
|
+
print("Please install Bun (https://bun.sh) or Node.js (https://nodejs.org).", file=sys.stderr)
|
|
57
|
+
sys.exit(1)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
if __name__ == "__main__":
|
|
61
|
+
main()
|
|
62
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: graviton-cli
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Your code is the center. AI orbits it. The self-hosted, zero-trust AI coding cockpit.
|
|
5
|
+
Project-URL: Homepage, https://github.com/yakkshit/graviton
|
|
6
|
+
Project-URL: Repository, https://github.com/yakkshit/graviton
|
|
7
|
+
Author-email: Venkata Sai Yakkshit Reddy Asodi <yakkshit@proton.me>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: ai,coding,developer-tools,mcp,security,zero-trust
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Topic :: Software Development
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# 🪐 Graviton CLI (`graviton-cli`)
|
|
20
|
+
|
|
21
|
+
[](https://pypi.org/project/graviton-cli/)
|
|
22
|
+
[](./LICENSE)
|
|
23
|
+
|
|
24
|
+
> **"Your code is the center. AI orbits it. The self-hosted, zero-trust AI coding cockpit."**
|
|
25
|
+
|
|
26
|
+
Graviton is a zero-trust AI coding cockpit and Model Context Protocol (MCP) control plane. It traps AI proposals in memory, maps downstream AST blast radius, provides real-time WebUI diff inspection, and guarantees instant git rollbacks.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## ⚡ Installation
|
|
31
|
+
|
|
32
|
+
Install via pip:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install graviton-cli
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Or run with `pipx`:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pipx run graviton-cli start
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## 🚀 Quick Start
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Start Graviton Engine & Cockpit WebUI
|
|
50
|
+
graviton start
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 📄 License
|
|
56
|
+
|
|
57
|
+
MIT © 2026 Venkata Sai Yakkshit Reddy Asodi
|
|
58
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
graviton_cli/__init__.py,sha256=qwNwuwKbpk1durCOLypao4TWpRcDj5a6eUdp9PaaKtE,184
|
|
2
|
+
graviton_cli/__main__.py,sha256=3Z75S8SMPJ-QzjLJlL9Zu5kX0ums5rSgN_aUVHrfaXA,1967
|
|
3
|
+
graviton_cli-1.0.0.dist-info/METADATA,sha256=NtWrVgjjBPiKoMCAVBCQqYWEvulOPfH_4x1oiCU6bu4,1631
|
|
4
|
+
graviton_cli-1.0.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
5
|
+
graviton_cli-1.0.0.dist-info/entry_points.txt,sha256=bTihDrqAnq7SZd0Pxx8WLDdyEndgmfHZdKuKXo9ABjE,56
|
|
6
|
+
graviton_cli-1.0.0.dist-info/licenses/LICENSE,sha256=NLve26DlPfksIhWFG22ZqsuobWKQMnMVRPN5UVpMFjI,1090
|
|
7
|
+
graviton_cli-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Venkata Sai Yakkshit Reddy Asodi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|