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.2.0.tar.gz (87.1 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.2.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wraith_cli-1.2.0.tar.gz
  • Upload date:
  • Size: 87.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 d8a716826724435657a3287372a43a2ab8dbef2a99e86ebd6dac17cd36e8d0a8
MD5 aa98d5f7e7ebd4b0ee1405aed822d996
BLAKE2b-256 aeab5ba76f05d6bb04e88e65b117e28a9aeaa32af6896148a57bae302e7e402a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wraith_cli-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a09c5f8ac7a74176ca7e0c81ff5b7b09af16b483b524fe3a214791da8ed3f527
MD5 1fe8c6bb6baeaa59d27543326b77066d
BLAKE2b-256 86f2cc19d8ed8aa068d878df690d66d98a027a2e0013530f8c2cfa9575c56e2c

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