feat: install enrichment launch agent#151
Conversation
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
@coderabbitai review |
|
@codex review |
|
@greptileai review |
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 15 minutes and 4 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR implements a macOS launchd LaunchAgent to automatically run realtime Gemini enrichment at login. Changes include updating the plist template to execute Python directly, refactoring the installer script to resolve Google API keys from environment or shell configuration, and updating documentation with installation instructions and configuration details. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Actions performedReview triggered.
|
|
You need to increase your spend limit or enable usage-based billing to run background agents. Go to Cursor |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Summary
brainlayer.enrichment_controller.enrich_realtime~/Library/LaunchAgents, resolveGOOGLE_API_KEYfrom the environment or~/.zshrcat install time, and add explicitload/unloadconvenience actions to the installerNice=10, move logging to~/Library/Logs/brainlayer-enrichment.log, and document the new launchd flowTest plan
pytest tests/test_enrichment_controller.py -k 'enrichment_plist or launchd_installer' -vpytest tests/test_enrichment_controller.py -v(57 passed / 5 pre-existing failures in the same file unrelated to this LaunchAgent work)bash -n scripts/launchd/install.shbash scripts/launchd/install.sh enrichmentplutil -p ~/Library/LaunchAgents/com.brainlayer.enrichment.plistbash scripts/launchd/install.sh unload enrichmentbash scripts/launchd/install.sh load enrichmentpytest -x(stops on pre-existing failure:tests/test_enrichment_controller.py::test_enrich_batch_uses_checkpoint_db_for_resume)Notes
cr review --plainwas attempted twice. The first run surfaced a docs consistency issue that was fixed; the second run hit a rate limit before completing.brain-bar/build-app.sh, which is intentionally excluded from this PR.Note
Install macOS LaunchAgent for realtime Gemini enrichment
enrich_realtime(limit=50, since_hours=24) via Python on a scheduled interval withNice=10and logs to~/Library/Logs/brainlayer-enrichment.log.resolve_google_api_key(reads from environment or~/.zshrc),load_plist/unload_plisthelpers, and newload,unload, andenrichmentsubcommands.GOOGLE_API_KEYcannot be resolved; the key is baked into the rendered plist at install time..zshrc.Macroscope summarized 40412a4.
Summary by CodeRabbit
New Features
Documentation
Changes
load/unloadcommands for enrichment service management.Tests