Repository navigation
refactor: group Drive sources and Claude parsers into subpackages (#403) - #567
Conversation
…into parsers/claude/ Move Drive modules (drive_auth, drive_gateway, drive_source*, drive_types) into polylogue/sources/drive/ and Claude parser modules (claude_ai_parser, claude_code_parser, etc.) into polylogue/sources/parsers/claude/. drive.py → drive/__init__.py and claude.py → claude/__init__.py preserve the public import surface. Ref #403 Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ 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: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (32)
✨ 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. Review rate limit: 0/1 reviews remaining, refill in 59 minutes and 32 seconds.Comment |
There was a problem hiding this comment.
💡 Codex Review
polylogue/polylogue/sources/drive/source.py
Lines 3 to 4 in f1e519c
This module still imports old sibling names (.drive_auth, .drive_gateway, .drive_source_client, etc.) even though the files were renamed to auth.py, gateway.py, source_client.py, and so on. Importing polylogue.sources.drive.source now raises ModuleNotFoundError, which breaks Drive source wiring and any runtime paths that load Drive support.
polylogue/polylogue/sources/drive/__init__.py
Lines 11 to 14 in f1e519c
After moving this module under sources/drive/, these relative imports are now one level too shallow (for example ..assets resolves to polylogue.sources.assets, which does not exist). That causes import-time failures when loading polylogue.sources.drive, so Drive features cannot initialize.
polylogue/polylogue/sources/parsers/claude/__init__.py
Lines 13 to 16 in f1e519c
The new Claude package entrypoint still imports old module names like .claude_ai_parser and .claude_code_parser even though those files were renamed to ai_parser.py and code_parser.py in this commit. Importing polylogue.sources.parsers.claude will fail with ModuleNotFoundError, which breaks Claude parsing paths.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Two root causes left the CLI and MCP server broken: 1. Circular import in protocols.py: the runtime import from storage.runtime triggered a chain through products → storage.repair → protocols, failing on partially-initialized module. Moved record-type imports under TYPE_CHECKING since from __future__ import annotations makes them string-only at runtime. 2. #567 (group Drive/Claude sources into subpackages) renamed files but did not update internal cross-references. drive_auth.py → auth.py but imports still referenced .drive_auth. drive.py → drive/__init__.py changed the relative-import depth by one level (.dispatch → ..dispatch). Fixed 17 files across drive/ and parsers/claude/ to use correct module names and parent depth. Also fixed: sources/__init__.py still imported from .drive_source and .drive_types (old flat paths); assembly*.py referenced the old .claude_index name. Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
## Summary Group Drive-specific modules into `sources/drive/` and Claude parser modules into `sources/parsers/claude/`. - Drive: 10 files (drive_auth, drive_gateway, drive_source*, drive_types) → `sources/drive/` - Claude: 6 files (claude_ai_parser, claude_code_parser, etc.) → `sources/parsers/claude/` - `drive.py` → `drive/__init__.py` and `claude.py` → `claude/__init__.py` preserve public API Ref #403 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 <[email protected]>
Two root causes left the CLI and MCP server broken: 1. Circular import in protocols.py: the runtime import from storage.runtime triggered a chain through products → storage.repair → protocols, failing on partially-initialized module. Moved record-type imports under TYPE_CHECKING since from __future__ import annotations makes them string-only at runtime. 2. #567 (group Drive/Claude sources into subpackages) renamed files but did not update internal cross-references. drive_auth.py → auth.py but imports still referenced .drive_auth. drive.py → drive/__init__.py changed the relative-import depth by one level (.dispatch → ..dispatch). Fixed 17 files across drive/ and parsers/claude/ to use correct module names and parent depth. Also fixed: sources/__init__.py still imported from .drive_source and .drive_types (old flat paths); assembly*.py referenced the old .claude_index name. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Summary
Group Drive-specific modules into
sources/drive/and Claude parser modules intosources/parsers/claude/.sources/drive/sources/parsers/claude/drive.py→drive/__init__.pyandclaude.py→claude/__init__.pypreserve public APIRef #403
🤖 Generated with Claude Code