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:
- Create a new file in
src/lightwave_cli/agents/ - Extend the
LightWaveAgentclass - Implement the
run()method - Create a singleton instance named
agent
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc7c2249687a1b807dd1dc3f200e8cce85507817aed71c8dfe2ae87aa98a93f9
|
|
| MD5 |
899a1599db9c20a1bd2b7e29d44b22fc
|
|
| BLAKE2b-256 |
5e5b02a4b8782f4c5236de6591ddacffeddb3d4691df4f493735d9bc7013f51f
|
File details
Details for the file lightwave_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lightwave_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b73aabeed8caaa2211605d55100949bb4129edc9e8934b8d234e719183db4578
|
|
| MD5 |
f4d7a42276bf0c17c2b22324b4995d11
|
|
| BLAKE2b-256 |
c1dc92317799019ce659807bc47b6904f32e0b0d706c5f6adb181b6393b7c983
|