ralph-code 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ralph/__init__.py +20 -0
- ralph/__main__.py +34 -0
- ralph/app.py +1328 -0
- ralph/claude_runner.py +22 -0
- ralph/colors.py +183 -0
- ralph/config.py +227 -0
- ralph/git_manager.py +304 -0
- ralph/harness.py +393 -0
- ralph/harness_runner.py +972 -0
- ralph/prd_manager.py +348 -0
- ralph/schemas/ralph_tasks_schema.json +95 -0
- ralph/schemas/task_schema.json +92 -0
- ralph/spinner.py +287 -0
- ralph/storage.py +77 -0
- ralph/tasks.py +298 -0
- ralph/user_stories.py +283 -0
- ralph/workflow.py +1036 -0
- ralph_code-0.5.0.dist-info/METADATA +79 -0
- ralph_code-0.5.0.dist-info/RECORD +23 -0
- ralph_code-0.5.0.dist-info/WHEEL +5 -0
- ralph_code-0.5.0.dist-info/entry_points.txt +2 -0
- ralph_code-0.5.0.dist-info/licenses/LICENSE +21 -0
- ralph_code-0.5.0.dist-info/top_level.txt +1 -0
ralph/__init__.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""ralph-code: Automated task implementation with Claude Code and Codex."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.1.0"
|
|
4
|
+
__author__ = "Ralph Coding"
|
|
5
|
+
|
|
6
|
+
from .app import RalphApp, main
|
|
7
|
+
from .config import Config, get_config
|
|
8
|
+
from .tasks import Task, TaskManager
|
|
9
|
+
from .workflow import WorkflowEngine, WorkflowState
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"RalphApp",
|
|
13
|
+
"main",
|
|
14
|
+
"Config",
|
|
15
|
+
"get_config",
|
|
16
|
+
"Task",
|
|
17
|
+
"TaskManager",
|
|
18
|
+
"WorkflowEngine",
|
|
19
|
+
"WorkflowState",
|
|
20
|
+
]
|
ralph/__main__.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Entry point for `python -m ralph`."""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
import click
|
|
7
|
+
|
|
8
|
+
from .app import main
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@click.command()
|
|
12
|
+
@click.option(
|
|
13
|
+
"--debug",
|
|
14
|
+
is_flag=True,
|
|
15
|
+
help="Enable verbose logging of all Claude interactions to .ralph/logs/",
|
|
16
|
+
)
|
|
17
|
+
@click.argument(
|
|
18
|
+
"directory",
|
|
19
|
+
required=False,
|
|
20
|
+
type=click.Path(exists=True, file_okay=False, dir_okay=True, path_type=Path),
|
|
21
|
+
)
|
|
22
|
+
def cli(debug: bool, directory: Path | None) -> None:
|
|
23
|
+
"""
|
|
24
|
+
Ralph Coding - Automated task implementation with Claude Code.
|
|
25
|
+
|
|
26
|
+
DIRECTORY is the optional target project directory.
|
|
27
|
+
Defaults to the current working directory.
|
|
28
|
+
"""
|
|
29
|
+
project_dir = directory or Path.cwd()
|
|
30
|
+
main(project_dir=project_dir, debug=debug)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
if __name__ == "__main__":
|
|
34
|
+
cli()
|