Skip to main content

Sovereign Command Centre for a Ghost Stack

Project description

Documentation PyPI - Version PyPI - License PyPI - Python Version

👻 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 container orchestration and bare-metal reality, providing the "Ghost Factory" for instant project scaffolding.


🏗️ The Ghost Factory (New)

The spawn command allows you to go from Idea to Code in under 5 seconds by bleaching a template and provisioning a private Gitea repository automatically.

wraith spawn my-new-api
  1. 🧬 Clones your GHOST_TEMPLATE_URL.
  2. 🧹 Bleaches all previous git history.
  3. 🌐 Provisions a new private repo via the Gitea API.
  4. 🚀 Pushes the clean stack to your Sovereign remote.

🛠️ Operational Manual

Command Feature Status
wraith spawn <name> The Ghost Factory 🏗️ Scaffolds new repos via Gitea API.
wraith update Global Update 🟢 PyPI-linked & uv powered.
wraith ps Rich Observability 🟢 Sovereign Dark styling for Docker.
wraith tail <svc> Flexible Logging 🟢 Supports --path & Env Vars.
wraith status Heartbeat 🟢 Monitor OpenViking (Port 1933).
wraith runner-reset Runner Defence 🟢 CI/CD maintenance & registration wipe.
wraith --version Self-Identity 🟢 Eager callback for versioning.

🚀 Installation & Updates

Wraith-CLI is managed via uv for hermetic stability.

# Initial Installation
uv tool install wraith-cli

# Sovereign Update
wraith update

🔐 Environment Configuration

Defined in your .env or system environment. HTTPS is required for automated Gitea provisioning.

Variable Purpose Required For
GITEA_API_URL Base URL (e.g., https://git.domain.com) spawn
GITEA_TOKEN Personal Access Token (PAT) spawn
GITEA_TEMPLATE_URL HTTPS URL of your base ghost-template spawn
GITEA_COMPOSE_PATH Path to Gitea Docker directory runner-reset
VIKING_BASE_URL API endpoint for heartbeat checks status
WRAITH_COMPOSE_PATH Default path for stack logs/ps tail, ps

🧪 Developer Quality Gate

We use uv for hermetic environment management and maintain a strict >80% coverage requirement.

# Initialise the Environment
uv sync --all-extras
uv run pre-commit install

# The Quality Gate
uv run pytest --cov=src

📜 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 across the stack.
  3. Hardware First: Prioritise bare-metal health and container stability over abstraction.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wraith_cli-1.3.0.tar.gz (83.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wraith_cli-1.3.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file wraith_cli-1.3.0.tar.gz.

File metadata

  • Download URL: wraith_cli-1.3.0.tar.gz
  • Upload date:
  • Size: 83.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wraith_cli-1.3.0.tar.gz
Algorithm Hash digest
SHA256 eac109976c35a63a7f94091672a285725d488673be50ebe474cb52359a9648d1
MD5 0ed746a15354ca9050f88c57846ca776
BLAKE2b-256 d03c0b39263772c487bfe9664723d4409f8b2f0d5e014fd1adf3c444870d6e19

See more details on using hashes here.

File details

Details for the file wraith_cli-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: wraith_cli-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wraith_cli-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19c7c52c237f59eea11edecc97e090040468134ae7e5c6d9eac319627799cefe
MD5 c848ce09be58475d74677eec9f3a3941
BLAKE2b-256 4ab62f9ad93bdee35aa6e35f2ac9f2648e7b2862a24b6ded0a331fca8c5f75d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page