Skip to main content

ucp_codegraph/
lib.rs

1mod context;
2mod legacy;
3mod model;
4mod programmatic;
5mod projection;
6
7pub use context::{
8    approximate_prompt_tokens, export_codegraph_context, export_codegraph_context_with_config,
9    is_codegraph_document, render_codegraph_context_prompt, resolve_codegraph_selector,
10    CodeGraphCoderef, CodeGraphContextEdgeExport, CodeGraphContextExport,
11    CodeGraphContextFrontierAction, CodeGraphContextHeuristics, CodeGraphContextNodeExport,
12    CodeGraphContextSession, CodeGraphContextSummary, CodeGraphContextUpdate, CodeGraphDetailLevel,
13    CodeGraphExportConfig, CodeGraphExportMode, CodeGraphExportOmissionDetail,
14    CodeGraphExportOmissionReason, CodeGraphExportOmissionReport, CodeGraphHiddenLevelSummary,
15    CodeGraphOperationBudget, CodeGraphPersistedSession, CodeGraphPrunePolicy,
16    CodeGraphRecommendation, CodeGraphRenderConfig, CodeGraphSelectionOrigin,
17    CodeGraphSelectionOriginKind, CodeGraphSessionEvent, CodeGraphSessionMutation,
18    CodeGraphSessionMutationKind, CodeGraphSessionPersistenceMetadata, CodeGraphTraversalConfig,
19    HydratedSourceExcerpt,
20};
21pub use legacy::{
22    build_code_graph, build_code_graph_incremental, canonical_codegraph_json,
23    canonical_fingerprint, validate_code_graph_profile,
24};
25pub use model::{
26    CodeGraphBuildInput, CodeGraphBuildResult, CodeGraphBuildStatus, CodeGraphDiagnostic,
27    CodeGraphExtractorConfig, CodeGraphIncrementalBuildInput, CodeGraphIncrementalStats,
28    CodeGraphSeverity, CodeGraphStats, CodeGraphValidationResult, CODEGRAPH_EXTRACTOR_VERSION,
29    CODEGRAPH_PROFILE_MARKER, CODEGRAPH_PROFILE_VERSION,
30};
31pub use programmatic::{
32    CodeGraphExpandMode, CodeGraphExportOmissionExplanation, CodeGraphFindQuery,
33    CodeGraphMutationEstimate, CodeGraphNavigator, CodeGraphNavigatorSession, CodeGraphNodeSummary,
34    CodeGraphPathHop, CodeGraphPathResult, CodeGraphProvenanceStep, CodeGraphPruneExplanation,
35    CodeGraphRecommendedActionsResult, CodeGraphSelectionExplanation,
36    CodeGraphSelectorResolutionExplanation, CodeGraphSessionDiff,
37};
38pub use projection::{
39    codegraph_prompt_projection, codegraph_prompt_projection_with_config,
40    CodeGraphPromptProjectionConfig,
41};
42pub use ucm_core::PortableDocument;