Skip to main content

Crate gid_core

Crate gid_core 

Source

Re-exports§

pub use slugify::slugify;
pub use query::QueryEngine;
pub use parser::load_graph;
pub use parser::save_graph;
pub use parser::find_graph_file;
pub use parser::find_graph_file_walk_up;
pub use parser::find_project_root;
pub use code_graph::CodeGraph;
pub use code_graph::CodeNode;
pub use code_graph::CodeEdge;
pub use code_graph::NodeKind;
pub use code_graph::EdgeRelation;
pub use code_graph::Language;
pub use code_graph::ImpactReport;
pub use code_graph::CausalChain;
pub use code_graph::ChainNode;
pub use code_graph::UnifiedGraphResult;
pub use code_graph::UnifiedNode;
pub use code_graph::UnifiedEdge;
pub use code_graph::ExtractMetadata;
pub use code_graph::FileState;
pub use code_graph::FileDelta;
pub use code_graph::ExtractReport;
pub use code_graph::compute_file_delta;
pub use unified::build_unified_graph;Deprecated
pub use unified::merge_relevant_code;Deprecated
pub use unified::UnifiedStats;
pub use working_mem::GidContext;
pub use working_mem::NodeInfo;
pub use working_mem::ErrorType;
pub use working_mem::RiskLevel;
pub use working_mem::ImpactAnalysis;
pub use working_mem::query_gid_context;
pub use working_mem::find_low_risk_alternatives;
pub use working_mem::classify_error;
pub use working_mem::extract_key_traceback;
pub use working_mem::analyze_impact;
pub use working_mem::analyze_impact_filtered;
pub use working_mem::format_impact_for_llm;
pub use working_mem::Action;
pub use working_mem::TestOutcome;
pub use working_mem::AttemptRecord;
pub use working_mem::NodeRisk;
pub use working_mem::WorkingMemory;
pub use history::HistoryManager;
pub use history::HistoryEntry;
pub use history::GraphDiff;
pub use visual::render;
pub use visual::render_ascii;
pub use visual::render_dot;
pub use visual::render_mermaid;
pub use visual::VisualFormat;
pub use advise::analyze;
pub use advise::AnalysisResult;
pub use advise::Advice;
pub use advise::Severity;
pub use advise::AdviceType;
pub use design::generate_graph_prompt;
pub use design::generate_scoped_graph_prompt;
pub use design::generate_features_prompt;
pub use design::generate_components_prompt;
pub use design::parse_llm_response;
pub use design::parse_features_response;
pub use design::parse_components_response;
pub use design::build_graph_from_proposals;
pub use design::FeatureProposal;
pub use design::ComponentProposal;
pub use design::DesignResult;
pub use semantify::generate_semantify_prompt;
pub use semantify::generate_full_transform_prompt;
pub use semantify::parse_semantify_response;
pub use semantify::parse_full_transform_response;
pub use semantify::apply_proposals;
pub use semantify::apply_heuristic_layers;
pub use semantify::heuristic_assign_layer;
pub use semantify::SemanticProposal;
pub use semantify::SemantifyResult;
pub use refactor::preview_rename;
pub use refactor::apply_rename;
pub use refactor::preview_merge;
pub use refactor::apply_merge;
pub use refactor::preview_split;
pub use refactor::apply_split;
pub use refactor::preview_extract;
pub use refactor::apply_extract;
pub use refactor::update_title;
pub use refactor::move_to_layer;
pub use refactor::RefactorPreview;
pub use refactor::Change;
pub use refactor::ChangeType;
pub use refactor::SplitDefinition;
pub use ignore::load_ignore_list;
pub use ignore::IgnoreList;
pub use ignore::IgnorePattern;
pub use ignore::is_common_ignore;
pub use ignore::DEFAULT_IGNORES;
pub use task_graph_knowledge::ToolCallRecord;
pub use task_graph_knowledge::KnowledgeNode;
pub use task_graph_knowledge::KnowledgeGraph;
pub use task_graph_knowledge::KnowledgeManagement;
pub use task_graph_knowledge::SimpleKnowledgeGraph;
pub use complexity::Complexity;
pub use complexity::ComplexityReport;
pub use complexity::assess_complexity_from_graph;
pub use complexity::assess_complexity;
pub use complexity::is_high_risk_change;
pub use complexity::assess_risk_level;
pub use lsp_client::LspClient;
pub use lsp_client::LspEnrichmentStats;
pub use lsp_client::LspLocation;
pub use lsp_client::LspMissingServer;
pub use lsp_client::LspRefinementStats;
pub use lsp_client::LspServerConfig;
pub use identity::Identity;
pub use identity::Organization;
pub use identity::Group;
pub use identity::Email;
pub use identity::SigningKey;
pub use identity::IdentityError;
pub use identity::IdentityBuilder;
pub use graph::*;

Modules§

advise
Graph analysis and advice module.
code_graph
Code Graph Extraction — extract code dependencies from source files
complexity
Complexity assessment — classify tasks using code graph structure
design
Design module for LLM-assisted graph generation.
graph
harness
Task execution harness — planning, topology analysis, context assembly, and execution.
history
History tracking for GID graphs.
identity
Core identity types and validation for GID.
ignore
Ignore list support for GID.
lsp_client
LSP client for precise call edge resolution.
lsp_daemon
LSP Daemon — Persistent language server process manager.
parser
query
refactor
Graph refactoring operations.
semantify
Semantify module for upgrading file-level graphs to semantic graphs.
slugify
storage
task_graph_knowledge
Knowledge management extension for task graphs
unified
Unified Graph — merge CodeGraph with TaskGraph
unify
Unify — convert CodeGraph to graph::Node/Edge for unified graph storage. Also provides reverse conversion (Graph → CodeGraph) for legacy command compatibility.
validator
Graph validation: detect cycles, orphan nodes, missing references, etc.
visual
Visual rendering for GID graphs.
watch
Watch — file system monitoring for automatic code graph sync.
working_mem
Working Memory — context for code changes