Add factory init command#191
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
Warning Review limit reached
Next review available in: 7 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
✨ 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 |
1ea1c0c to
48a48ab
Compare
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 48a48ab1a6
ℹ️ 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".
| out.write(`Checking ${repo} in Relay workspace ${workspaceId}…\n`) | ||
| await (options.ensureLocalMount ?? ensureLocalMount)(workspaceId, cwd, { | ||
| acceptableWorkspaceIds: 'cloudWorkspaceId' in workspace && workspace.cloudWorkspaceId ? [workspace.cloudWorkspaceId] : undefined, |
There was a problem hiding this comment.
Start the SDK mount instead of calling preflight directly
When factory init is run in a fresh checkout without an existing .integrations/.relay/state.json, this call reaches ensureLocalMount from local-mount-preflight, whose contract requires options.startMount; because this object does not provide it, the command fails with options.startMount is not a function before it can verify GitHub or create the config. Use the Relayfile mount client’s ensureLocalMount wrapper (or pass a real startMount callback) so init can bootstrap the local mount it is meant to set up.
Useful? React with 👍 / 👎.
Summary
factory init [owner/repo]to configure the current checkout for GitHub-native issue dispatchWhy
Factory previously required manually creating
factory.config.jsonand knowing the Relay/GitHub setup sequence. The new command gives users one entry point and stops with actionable guidance without writing partial configuration.Validation
git diff --checkSummary by cubic
Add
factory init [owner/repo]to set up the current checkout for GitHub‑native issue dispatch. It now ensures the Relay local mount is running before validating GitHub connectivity, then writes a safe, minimalfactory.config.json.New Features
factory init [owner/repo]with optional--workspace <id>; derives repo fromoriginif omitted.agent-relay,relayfile), starts the local mount, and verifies the GitHub repo; refuses to overwrite an existing config.Bug Fixes
Written for commit 03034a0. Summary will update on new commits.