Metadata-Version: 2.4
Name: wraith-cli
Version: 1.0.0
Summary: Sovereign Command Centre for a Ghost Stack
Project-URL: Homepage, https://git.thomaspeoples.com/thomaspeoples/wraith-cli
Project-URL: Documentation, https://www.thomaspeoples.com/gitea-repos/wraith-cli/
Project-URL: Repository, https://git.thomaspeoples.com/thomaspeoples/wraith-cli.git
Project-URL: Issues, https://git.thomaspeoples.com/thomaspeoples/wraith-cli/issues
Author-email: Thomas Peoples <junk@thomaspeoples.com>
License: Copyright © `2026` `Thomas Peoples`
        
        Permission is hereby granted, free of charge, to any person
        obtaining a copy of this software and associated documentation
        files (the “Software”), to deal in the Software without
        restriction, including without limitation the rights to use,
        copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the
        Software is furnished to do so, subject to the following
        conditions:
        
        The above copyright notice and this permission notice shall be
        included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
License-File: LICENSE
Keywords: automation,cli,ghost-stack,gitea,sovereign
Classifier: Environment :: Console
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.12
Requires-Dist: python-dotenv
Requires-Dist: requests
Requires-Dist: rich>=13.0.0
Requires-Dist: typer>=0.9.0
Provides-Extra: dev
Requires-Dist: commitizen; extra == 'dev'
Requires-Dist: genbadge[coverage]>=1.1.1; extra == 'dev'
Requires-Dist: mkdocs-material>=9.5.0; extra == 'dev'
Requires-Dist: mkdocs>=1.6.0; extra == 'dev'
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: pymdown-extensions>=10.7.0; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Description-Content-Type: text/markdown

[![Documentation](https://img.shields.io/badge/docs-live-brightgreen)](https://www.thomaspeoples.com/gitea-repos/wraith-cli/)
![PyPI - Version](https://img.shields.io/pypi/v/wraith-cli)
![PyPI - License](https://img.shields.io/pypi/l/wraith-cli)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/wraith-cli)


# 👻 Wraith-CLI
### *Sovereign Orchestration for the Ghost Stack*

**Wraith-CLI** is the nervous system of the Ghost Stack. It bridges the gap between high-level containers and bare-metal reality.

---

## 🚀 Installation

**Wraith-CLI** can be installed via `uv` (recommended) or `pip`:

```bash
# Recommended for CLI tools
uv tool install wraith-cli

# Standard pip
pip install wraith-cli
```

> **Note:** Ensure ~/.local/bin is in your $PATH.

---

## 🛠️ Operational Manual

| Command | Description |
| :--- | :--- |
| wraith ps | Shows all Docker processes in a neat table |
| wraith status | Heartbeat check for OpenViking (Port 1933). |
| wraith runner-reset | Wipes and re-registers the Gitea Action Runner. |
| wraith --help | View the full manifest of available commands. |

---

## 🏗️ Developer Workspace

We use uv for hermetic environment management.

```bash
### 1. Initialise the Environment
uv sync --all-extras
uv run pre-commit install

### 2. The Quality Gate
uv run pytest

### 3. Sovereign Deployment
chmod +x bin/build.sh
./bin/build.sh
```

---

## 🔐 Environment Configuration

Defined in `~/.bashrc` or `.env.private`:

| Variable | Purpose | Default |
| :--- | :--- | :--- |
| VIKING_BASE_URL | The API endpoint for the heartbeat check. | http://127.0.0.1:1933/api/v1 |
| GITEA_COMPOSE_PATH | Path to your Gitea Docker Compose directory. | Required for runner-reset |

---

## 📜 Sovereign Principles
1. **Distributed Sovereignty:** Available on PyPI for the world, but optimised for local-first, private-registry mirrors
2. **Atomic Execution:** Use uv run to ensure consistency.
3. **Hardware First:** Prioritise bare-metal health and container stability.
