Skip to main content

Command-line interface for LightWave development workflows

Project description

LightWave CLI

Command-line interface for LightWave ecosystem tools and utilities.

Features

  • Documentation Sync: Synchronize documentation from repositories
  • AI Agents: Run AI agents using pydantic-ai for various tasks
  • UV Integration: Wrapper for the fast UV package manager

Installation

# Clone the repository
git clone git@github.com:kiwi-dev-la/lightwave-cli.git
cd lightwave-cli

# Install in development mode
pip install -e .

Usage

Documentation Sync

Synchronize documentation from a GitHub repository:

# Using a remote repository
lightwave docs sync --repo-url https://github.com/kiwi-dev-la/lightwave-eco-system-docs.git --branch main

# Using a locally cloned repository
lightwave docs sync --local-repo ./lightwave-eco-system-docs --branch main

AI Agents

Run an AI agent with a prompt:

# Set your API key
export ANTHROPIC_API_KEY=your-api-key

# Run the docs agent
lightwave agent run docs "What are the main components of the LightWave ecosystem?"

# Run with different model
lightwave agent run docs "What's in the lightwave-cli?" --model claude-3-sonnet-20240229

UV Package Manager

UV is a much faster alternative to pip for Python package management. The lightwave CLI includes wrappers for common UV commands:

# Create a virtual environment
lightwave uv venv myenv

# Install a package
lightwave uv install pydantic

# Install a package in editable mode
lightwave uv install -e /path/to/package

# Run a UV command
lightwave uv run pip list

Available Agents

  • docs: Answer questions about LightWave documentation

Dependencies

  • Python 3.11+
  • typer
  • rich
  • gitpython
  • pydantic
  • pydantic-ai

Development

To add a new agent:

  1. Create a new file in src/lightwave_cli/agents/
  2. Extend the LightWaveAgent class
  3. Implement the run() method
  4. Create a singleton instance named agent

License

MIT

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

lightwave_cli-0.1.0.tar.gz (103.8 kB view details)

Uploaded Source

Built Distribution

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

lightwave_cli-0.1.0-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file lightwave_cli-0.1.0.tar.gz.

File metadata

  • Download URL: lightwave_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 103.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for lightwave_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cc7c2249687a1b807dd1dc3f200e8cce85507817aed71c8dfe2ae87aa98a93f9
MD5 899a1599db9c20a1bd2b7e29d44b22fc
BLAKE2b-256 5e5b02a4b8782f4c5236de6591ddacffeddb3d4691df4f493735d9bc7013f51f

See more details on using hashes here.

File details

Details for the file lightwave_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lightwave_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b73aabeed8caaa2211605d55100949bb4129edc9e8934b8d234e719183db4578
MD5 f4d7a42276bf0c17c2b22324b4995d11
BLAKE2b-256 c1dc92317799019ce659807bc47b6904f32e0b0d706c5f6adb181b6393b7c983

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