Skip to main content

Crate code_system_graph

Crate code_system_graph 

Source
Expand description

Delivery-layer orchestration shared by the Code System Graph CLI and MCP server.

Modules§

http_server
Optional authenticated HTTP delivery for read-only application services.
mcp
MCP stdio delivery adapter.

Structs§

BackupSummary
Result of an explicit database backup.
ChangesInput
Read-only local change collection input shared by CLI and MCP.
CodeGraphRepositorySync
Bounded result for one repository’s local CodeGraph index.
CodeGraphSyncSummary
Aggregate CodeGraph synchronization result.
CommunityInput
Read-only request for one deterministic community page or snapshot comparison.
CommunityReport
Paginated and optionally comparative community result.
ConfigReport
Versioned read-only result returned by csgraph config show.
ConfiguredPatterns
Configured pattern list and the precedence layer that selected it.
DiagnosticBundle
Explicit source-free diagnostic bundle suitable for local support handoff.
EffectiveIgnoreRule
One ordered effective discovery rule returned by config show.
ExploreInput
Ephemeral intra-repository source and flow exploration input.
IgnorePolicy
Effective exclusion policy for one registered repository.
IgnorePolicyReport
Complete observable ignore policy for one registered repository.
InitReport
Result of creating a new strict workspace manifest.
ManifestMutationSummary
Preview or result of a constrained repository manifest mutation.
PullRequestInput
Explicit remote pull-request inspection input shared by CLI and MCP.
PullRequestListInput
Explicit hosted pull-request list input shared by delivery adapters.
RepositoryConfigReport
Effective configuration report for one repository alias.
RestoreSummary
Result of an explicit database restore.
ScanOverrides
Highest-precedence command-line scan overrides.
ScanSummary
Observable result of a successful scan.
SearchInput
Safe ranked-search input shared by CLI and MCP delivery.
SyncSummary
Observable result of one csgraph sync pass.
SyncTarget
One registered repository that participates in synchronization.
TraceInput
Input contract shared by CLI and MCP trace delivery.
WatcherStatus
Observable finite-watcher status returned by csgraph status.
WorkspaceMutationSummary
Result of adding or removing a persisted workspace registration.
WorkspaceRegistryItem
Compact workspace registry item returned by CLI listing.
WorkspaceStatus
Current workspace registry and snapshot health.

Enums§

ApplicationError
Error returned while executing delivery-layer application operations.
CodeGraphSyncState
Outcome of synchronizing one repository’s local CodeGraph index.
ConfigSource
Origin of an effective repository configuration value.
IgnoreRuleAction
Action performed by one effective repository discovery rule.
IgnoreRuleSource
Origin of one effective repository discovery rule.
WatcherState
Persisted lifecycle of the foreground sync watcher.

Constants§

DEFAULT_EXCLUDES
Dependency, cache, environment, and build trees excluded unless explicitly re-enabled.
PROTECTED_EXCLUDES
Repository metadata and generated state that can never be re-enabled for discovery.

Functions§

add_manual_link_to_manifest
Adds one exact manual relationship declaration to a workspace manifest or returns a preview.
add_repository_to_manifest
Adds a minimal repository entry to a workspace manifest or returns a preview.
add_workspace_to_registry
Validates and adds a workspace manifest to the persisted registry.
analyze_workspace_changes
Collects local Git state and maps it to bounded semantic graph impact.
analyze_workspace_changes_with_cancellation
Analyzes local changes with caller-owned cooperative cancellation.
application_exit_code
Classifies application failures into stable process exit codes.
backup_database
Creates a validated online database backup.
collect_workspace_changes
Collects a bounded fingerprinted local Git change set for one registered checkout.
collect_workspace_changes_with_cancellation
Collects a local change set with caller-owned cooperative cancellation.
communities_workspace
Lists, inspects, or compares persisted communities for the current workspace.
contracts_workspace
Inspects, validates, compares, or explains contracts in the current immutable graph.
create_diagnostic_bundle
Creates a redacted, source-free diagnostic bundle only at an explicit output path.
doctor_workspace
Consolidates configuration, schema, integrity, and freshness diagnostics.
explore_repository
Explores one registered checkout through bounded, ephemeral local code intelligence.
export_workspace
Renders one deterministic bounded source-free graph export.
impact_workspace
Computes conservative upstream or downstream impact from the current immutable graph.
impact_workspace_with_codegraph
Computes impact with optional bounded, ephemeral CodeGraph local enrichment.
initialize_workspace
Creates a strict minimal workspace manifest without overwriting existing files.
inspect_pull_request
Inspects one GitHub or Bitbucket Cloud pull request through the public provider API.
inspect_pull_request_with_cancellation
Inspects one pull request with caller-owned cooperative cancellation.
list_pull_requests
Lists one bounded page of source-free hosted pull-request summaries.
list_repository_registry
Lists repository registrations for one persisted workspace.
list_workspace_registry
Lists persisted workspaces without mutating or migrating the database.
remove_repository_from_manifest
Removes one repository entry from a workspace manifest or returns a preview.
remove_workspace_from_registry
Removes one workspace and its snapshot state from the persisted registry.
restore_database
Restores a validated backup while preserving the replaced database.
scan_workspace
Scans the initial HTTP vertical slice and publishes one atomic snapshot.
scan_workspace_with_overrides
Scans with explicit highest-precedence command-line overrides.
scan_workspace_with_worker_executable
Scans through an explicitly selected compatible worker executable.
search_workspace
Searches current graph entities with structural, FTS, community, evidence, and freshness signals.
show_config
Resolves and reports native discovery exclusions without opening a graph database.
status_workspace
Evaluates current repository state against the published snapshot.
sync_workspace_with_overrides
Synchronizes initialized local CodeGraph indexes and then publishes an incremental graph snapshot.
sync_workspace_with_worker_executable
Synchronizes through an explicitly selected compatible worker executable.
trace_workspace
Traces the current stored graph and returns a versioned conservative envelope.
traverse_workspace
Executes an advanced bounded traversal against the current immutable graph.
workspace_sync_targets
Resolves and validates the repository checkouts selected for synchronization.