v1.0.1 — Fix output directory when installed as a package
Bug fix
oracle generate produced empty PR comments when run via the GitHub Action.
When Oracle is pip-installed (as the action does with pip install "${GITHUB_ACTION_PATH}"), __file__ in orchestrator.py resolves to the site-packages directory. The mkdir call on that path raised PermissionError, crashing oracle generate before any JSON was written to stdout. The action silently swallowed the error (|| RESULT=""), resulting in a PR comment with blank test type, framework, and output fields.
Fix: switched output_dir from Path(__file__).resolve().parents[2] to Path.cwd(), so generated tests are always written relative to the invoking project directory.
Upgrade
Users pinned to @v1 receive this fix automatically. To pin explicitly:
- uses: bri-stevenski/oracle-test-ai-agent@v1.0.1