1#[macro_use]
5mod versioned_blob;
6
7mod action_id;
8mod action_operation;
9mod action_struct;
10mod annotated_tag;
11mod audience_tier;
12mod blob;
13pub mod collaboration;
14mod diff;
15mod discussion;
16mod frontier_ref;
17mod hash;
18mod identifiers;
19mod key_binding;
20pub mod manifest;
21mod operation_id;
22mod redaction;
23mod risk_signal;
24mod semantic_change;
25mod semantic_edges;
26mod semantic_graph_query;
27mod semantic_index;
28mod semantic_reverse_deps;
29mod session;
30mod source;
31mod spool_id;
32mod staleness_core;
33mod state_attachment;
34mod state_attribution;
35mod state_context;
36mod state_core;
37mod state_provenance;
38mod state_review;
39mod state_visibility;
40mod structured_conflict;
41#[cfg(test)]
42mod structured_conflict_tests;
43mod suggestion_core;
44mod timeline;
45mod tree;
46mod tree_canonical;
47mod tree_diff;
48mod tree_path;
49mod tree_source;
50mod tree_stream;
51pub mod tree_walk;
52mod visibility_tier;
53
54pub use action_id::ActionId;
55pub use action_operation::Operation;
56pub use action_struct::Action;
57pub use annotated_tag::{AnnotatedTag, AnnotatedTagError, AnnotatedTagMarker};
58pub use audience_tier::{AudienceParseError, AudienceTier, visible};
59pub use blob::Blob;
60pub use collaboration::*;
61pub use diff::{DiffKind, FileChange, FileChangeSet};
62pub use discussion::{
63 Discussion, DiscussionError, DiscussionId, DiscussionReference, DiscussionReferenceKind,
64 DiscussionResolution, DiscussionTurn, DiscussionsBlob, generate_discussion_id,
65};
66pub use frontier_ref::{
67 GIT_SYNTHETIC_FRONTIER_PREFIX, SYNTHETIC_FRONTIER_PREFIX, SyntheticFrontierName,
68 SyntheticFrontierNameError,
69};
70pub use hash::{ChangeId, ChangeIdParseError, ContentHash, StateId, StateIdParseError};
71pub use identifiers::{
72 MarkerName, RESERVED_REF_SEGMENT, ReservedRefNameError, Scope, ThreadName,
73 is_reserved_heddle_namespace,
74};
75pub use key_binding::{
76 KEY_BINDING_REGISTRY_SIGNING_PAYLOAD_VERSION_TAG, KEY_BINDING_SIGNING_PAYLOAD_VERSION_TAG,
77 KeyBinding, KeyBindingError, KeyBindingRegistry, KeyRole,
78};
79pub use manifest::{
80 BuiltManifest, FsckFinding, FsckOptions, FsckReport, FsckRule, ManifestBinding,
81 ManifestBuildError, ManifestFacet, ManifestKey, ManifestNode, ManifestNodeSource,
82 ManifestObject, ManifestObjectKind, ManifestOwnerKind, PackRangeAudit, PackRangeClaim,
83 PackRecord, build_manifest, expand_manifest, fsck_manifest, fsck_manifest_with,
84 fsck_pack_range,
85};
86pub use operation_id::{OperationId, OperationIdParseError};
87pub use redaction::{
88 PURGE_SIGNING_PAYLOAD_VERSION_TAG, PurgeEvidence, REDACTION_SIGNING_PAYLOAD_VERSION_TAG,
89 Redaction, RedactionError, RedactionsBlob,
90};
91pub use risk_signal::{
92 MAX_REASON_LEN, ProducerId, RiskSignal, RiskSignalBlob, RiskSignalError, RiskSignalKind,
93 SignalAnchor,
94};
95pub use semantic_change::{ChangeImportance, ModificationKind, SemanticChange};
96pub use semantic_edges::{BindingDelta, FileBindingDelta, ResolvedSemanticEdge, SemanticEdgeKind};
97pub use semantic_graph_query::{
98 SemanticGraphQueryKind, SemanticGraphQueryRequest, SemanticGraphQueryResponse, SemanticGraphRef,
99};
100pub use semantic_index::{
101 ByteSpan, ImportBinding, ImportEntry, ImportKindTag, OccurrenceEntry, OccurrenceRole,
102 ScopeEntry, ScopeKind, SemanticEntryKind, SemanticFileFacts, SemanticFileNode,
103 SemanticIndexError, SemanticIndexRoot, SemanticTreeEntry, SemanticTreeNode, SymbolEntry,
104 SymbolKindTag, SymbolNamespace, compute_dir_semantic_digest, compute_file_scaffold_hash,
105 compute_file_semantic_digest, compute_symbol_semantic_hash,
106};
107pub use semantic_reverse_deps::ReverseDependencyIndex;
108pub use session::{Session, SessionSegment, generate_session_id};
109#[cfg(feature = "async-source")]
110pub use source::AsyncObjectSource;
111pub use source::ObjectSource;
112pub use spool_id::{SpoolId, SpoolIdParseError};
113pub use staleness_core::{
114 StalenessStatus, annotation_status_for_source,
115 annotation_status_for_source_with_symbol_resolver, extract_line_range, resolve_current_symbol,
116};
117pub use state_attachment::{
118 StateAttachment, StateAttachmentBody, StateAttachmentId, StateAttachmentKind,
119};
120pub use state_attribution::{Agent, Attribution, Principal};
121pub use state_context::{
122 Annotation, AnnotationAnchorStatus, AnnotationKind, AnnotationRevision, AnnotationScope,
123 AnnotationStatus, ContextBlob, ContextError, ContextTarget,
124};
125pub use state_core::{
126 ChangeLineage, ChangeLineageKind, SignatureStatus, State, StateSignature, Status, Verification,
127 parse_commit_extension_headers,
128};
129pub use state_provenance::{FileProvenance, LineSpan, Origin, OriginSet, ProvenanceError};
130pub use state_review::{
131 ReviewKind, ReviewScope, ReviewSignature, ReviewSignatureError, ReviewSignaturesBlob,
132 SymbolAnchor, signing_payload,
133};
134pub use state_visibility::{
135 STATE_VISIBILITY_SIGNING_PAYLOAD_VERSION_TAG, StateVisibility, StateVisibilityBlob,
136 StateVisibilityError,
137};
138pub use structured_conflict::{
139 ConflictError, ConflictRange, ConflictRegion, ConflictSide, StructuredConflict,
140};
141pub use suggestion_core::{
142 ContextSuggestion, ContextSuggestionTier, HIGH_SUGGESTION_THRESHOLD,
143 MAJOR_REWRITE_THRESHOLD_PCT, MEDIUM_SUGGESTION_THRESHOLD, SUGGESTION_WINDOW, SuggestionInputs,
144 SuggestionSignal, score_suggestions,
145};
146pub use timeline::{
147 BranchCreatedV1, CursorMovedV1, NativeToolCallRefV1, TIMELINE_OPERATION_SCHEMA_VERSION,
148 TimelineBranchId, TimelineBranchReason, TimelineCodecError, TimelineCursorMoveReason,
149 TimelineLabel, TimelineOperationBodyV1, TimelineOperationEnvelope, TimelineOperationId,
150 TimelineOperationIdParseError, TimelineOperationKind, TimelineStepId, TimelineToolCallStatus,
151 TimelineToolPayloadMetadata, ToolCallFinishedV1, ToolCallStartedV1,
152};
153pub use tree::{
154 EntryType, FileMode, Tree, TreeDecodeError, TreeEntry, TreeEntryTarget, TreeError,
155 validate_name as validate_tree_entry_name,
156};
157pub use tree_canonical::{
158 TREE_BLOCK_ENCODING_VERSION, TREE_BLOCK_MIN_ENTRIES, TREE_CANONICAL_MAGIC,
159 TREE_DELTA_ANCHOR_INTERVAL, TREE_DELTA_ENCODING_VERSION, TREE_DELTA_HEADER_LEN,
160 TREE_DELTA_MAGIC, TREE_DELTA_MAX_OPS, TREE_ENCODING_VERSION, TREE_HEADER_LEN,
161 TREE_LEAN_ENCODING_VERSION, TREE_LEAN_MAGIC, TreeDeltaHeader, TreeDeltaOp, TreeHeader,
162 apply_tree_delta, decode_header, decode_lean_prefix, decode_tree_delta,
163 decode_tree_delta_header, decode_tree_delta_header_prefix, decode_tree_delta_ops,
164 decode_tree_delta_ops_prefix, encode_lean_entry, encode_tree_delta, is_canonical_tree,
165 is_delta_tree, is_lean_tree, is_streamable_tree, tree_delta,
166};
167#[cfg(feature = "async-source")]
168pub use tree_diff::diff_trees_visit_async;
169pub use tree_diff::{diff_trees, diff_trees_visit};
170#[cfg(feature = "async-source")]
171pub use tree_path::resolve_tree_path_async;
172pub use tree_path::{
173 LeafPolicy, ResolvedTreeTarget, TreePathResolveError, resolve_tree_path, split_path,
174};
175pub use tree_source::{
176 BytesTreeSource, FileTreeSource, OpenedTreeBody, TreeBodyIntegrity, TreeByteSource,
177};
178pub use tree_stream::{
179 TreeEntryReader, TreePage, TreePageLimits, TreeResumeCursor, TreeStreamError,
180};
181pub use tree_walk::{TreeIntegrityEvent, walk_tree_integrity};
182pub use visibility_tier::VisibilityTier;