Metadata-Version: 2.4
Name: oh-my-ralph
Version: 0.1.6
Summary: An opinionated orchestrator for Ralph Wiggum loops
Home-page: https://github.com/vivganes/oh-my-ralph
Author: vivganes
License: MIT License
        
        Copyright (c) 2026 Vivek Ganesan
        
        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 NONINFRINGEMENT. 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.
        
Project-URL: Homepage, https://github.com/vivganes/oh-my-ralph
Project-URL: Repository, https://github.com/vivganes/oh-my-ralph
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python


## Ralph Wiggum Orchestrator

This is a simple orchestrator for [Ralph Wiggum](https://venturebeat.com/technology/how-ralph-wiggum-went-from-the-simpsons-to-the-biggest-name-in-ai-right-now) loop invented by [Geoffrey Huntley](https://ghuntley.com).

## Requirements
Python 3.10+

## How to run?

1. Install the package
    ```
    pip install oh-my-ralph
    ```
2. Place a `requirements.md` file with your detailed requirements in your working directory (where you want the software to be built)
3. To run ralph using opencode, run the following command:
    ```bash
    oh-my-ralph --agent "opencode run" --model opencode/glm-4.7-free --start-opencode-web-at-port 8089 --working-dir /path/to/dir/with/requirements
    ```
## What does this do?
- Runs your specified `agent` command in a loop.
- The loop exits when any of the following occur:
    - The command prints `<PROMPT>DONE</PROMPT>`.
    - The maximum number of iterations is reached, configurable via `--max-iterations`.
    - Error occurs for 5 consecutive runs of the loop.
    - You manually stop the process by pressing `Ctrl+C`.

## Development

### Running Tests

Tests are automatically run during the build process. To run tests manually:

```bash
.\run_tests.bat
```

All tests must pass before building.

### Building the Package

To build the package with mandatory tests:

```bash
.\build.bat
```

This will:
1. Run all tests (build fails if any test fails)
2. Build the package using Python's build module
3. Create distribution files in the `dist\` directory

The build process ensures code quality by enforcing test success before creating distribution packages.
