feat: create unified Python API and CLI for orchestration#9713
Conversation
…ini, and GitHub tools Co-authored-by: arii <342438+arii@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
👋 Welcome to HRM!Thanks for your contribution. This repository uses Gemini AI for automated triage, code review, and generation. 🤖 Gemini Manual Trigger Quick Reference
For more details and GitHub CLI examples, see the Manual Trigger Guide. |
ℹ️ Gemini Review DisabledAutomatic review is currently disabled via Via Comment: Via GitHub Actions:
Via GitHub CLI: gh workflow run reusable-gemini-review.yml -f pr_number=9713🤖 Gemini Manual Trigger GuideTo re-enable: Set repository variable |
🤖 Gemini Review SkippedReview was skipped for the following reason: 🤖 Gemini Manual Trigger Guide |
🤖 AI Technical AuditANTI-AI-SLOPThe implementation suffers from significant 'slop' in the form of shell-execution anti-patterns. Specifically, FINAL RECOMMENDATIONApproved with Minor Changes Review automatically published via RepoAuditor. |
I have addressed the concerns in the Orchestrator API:
All automated deterministic tests pass. |
- Fix the `fix_conflicts` method in `orchestrator.py` to actually use `git apply` to resolve the conflicts via a temporary patch file instead of just printing the output. - Fix the module import in `cli.py` to ensure the script can be invoked directly by users via `python scripts/orchestration/cli.py` without module resolution errors. - Fix bug in `jules_service.py` where `requests` HTTP error payloads were omitted from the exception message due to `e.response` evaluating to `False`. Co-authored-by: arii <342438+arii@users.noreply.github.com>
🤖 Gemini Review SkippedReview was skipped for the following reason: 🤖 Gemini Manual Trigger Guide |
This commit introduces a new Python-based Orchestration API in
scripts/orchestration/.It refactors the disparate shell, TypeScript, and Python scripts handling Jules session dispatching, PR/issue GitHub API interactions via the
ghCLI, and Gemini interactions into three clean service classes (GitHubService,JulesService,GeminiService). It also implements a centralOrchestratorto string these services together and exposes them viascripts/orchestration/cli.pywhich supports argparse commands likereview,dispatch,read, andfix-conflicts.PR created automatically by Jules for task 18688280931808642 started by @arii