Skip to content

feat(doctor): add remote scope support and scope validation check#10067

Merged
davidfirst merged 11 commits into
masterfrom
add-doctor-remote-support
Nov 10, 2025
Merged

feat(doctor): add remote scope support and scope validation check#10067
davidfirst merged 11 commits into
masterfrom
add-doctor-remote-support

Conversation

@davidfirst
Copy link
Copy Markdown
Member

Summary

Adds the ability to run bit doctor against remote scopes and introduces a new diagnosis to validate scope object integrity.

Changes

Remote Scope Support

  • New --remote <remote-name> flag to run doctor checks on remote scopes
  • Works with both FS and HTTP remotes via unified Network interface
  • Added doctor() method to Network interface, implemented in Fs and Http classes

New Diagnosis: Validate Scope Objects

  • Checks that all local components have their head version objects present
  • Works from workspace, bare scope, or against remote scopes
  • Reports missing head versions with component ID and hash

HTTP Implementation

  • Added GraphQL schema and resolver for doctor query
  • Follows same pattern as existing operations like list() and show()

Usage

# Run doctor on remote scope
bit doctor --remote my-remote-scope

# Run doctor from bare scope directory
cd /path/to/bare-scope && bit doctor

# Run specific diagnosis on remote
bit doctor "validate scope objects" --remote my-remote

@davidfirst davidfirst enabled auto-merge (squash) November 10, 2025 15:22
@davidfirst davidfirst merged commit 305a67d into master Nov 10, 2025
11 checks passed
@davidfirst davidfirst deleted the add-doctor-remote-support branch November 10, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants