1#![allow(
2 missing_docs,
3 clippy::expect_used,
4 dead_code,
5 unused_imports,
6 reason = "Intentional compatibility, platform, or test-only suppression."
7)]
8pub mod ansi;
21pub mod ansi_capabilities;
22pub mod ansi_codes;
23pub mod async_utils;
24pub mod at_pattern;
25pub mod cgp;
26pub mod color256_theme;
27pub mod color_policy;
28pub mod colors;
29pub mod diff;
30pub mod diff_paths;
31pub mod diff_preview;
32pub mod diff_theme;
33pub mod editor;
34pub mod env_lock;
35pub mod error_category;
36pub mod errors;
37pub mod exclusions;
38pub mod file_input;
39pub mod formatting;
40pub mod fs;
41pub mod http;
42pub mod image;
43pub mod interjection;
44pub mod interner;
45pub mod json_extract;
46pub mod line_framing;
47pub mod llm;
48pub mod lr_map;
49pub mod memory;
50pub mod message_metadata;
51pub mod misconfiguration;
52pub mod modal_hints;
53pub mod model_family;
54pub mod paths;
55pub mod preview;
56pub mod program_status;
57pub mod project;
58pub mod provider;
59pub mod reasoning;
60pub mod reference;
61pub mod retry;
62pub mod runtime_diagnostics;
63pub mod sanitizer;
64pub mod search;
65pub mod serde_helpers;
66pub mod slug;
67#[doc(hidden)]
68pub mod startup_trace;
69pub mod stop_hints;
70pub mod styling;
71pub mod task_guard;
72pub mod telemetry;
73pub mod terminal_detection;
74pub mod text_fence;
75pub mod thread_safety;
76pub mod tokens;
77pub mod tool_types;
78pub mod trace_flush;
79pub mod ui_protocol;
80pub mod unicode;
81pub mod utils;
82pub mod validation;
83pub mod vtcode_paths;
84pub mod vtcodegitignore;
85pub mod walk;
86pub mod workspace_snapshot;
87pub use colors::{blend_colors, color_from_hex, contrasting_color, is_light_color, style};
88pub use editor::{
89 EditorPoint, EditorTarget, normalize_editor_hash_fragment, parse_editor_target, resolve_editor_path,
90 resolve_editor_target,
91};
92pub use error_category::{
93 BackoffStrategy, ErrorCategory, Retryability, classify_anyhow_error, classify_error_message,
94 is_context_capacity_error, is_context_capacity_message, is_retryable_llm_error_message,
95};
96pub use errors::{DisplayErrorFormatter, ErrorFormatter, ErrorReporter, MultiErrors, NoopErrorReporter};
97pub(crate) use interjection::{
98 EventQueue, FormattedInterjection, InterjectionBuffer, LARGE_PROMPT_THRESHOLD, PendingInterjection,
99 drain_formatted, format_interjection, user_query,
100};
101pub use interner::{StringId, StringInterner};
102pub use misconfiguration::{
103 ConfigGuidance, MisconfigurationKind, detect_misconfiguration, detect_misconfiguration_in_anyhow,
104 detect_misconfiguration_in_llm_error, is_misconfiguration,
105};
106pub use modal_hints::{
107 APPROVAL_NAVIGATE_CANCEL, APPROVAL_NAVIGATE_DENY, APPROVAL_NAVIGATE_STOP, choose_handling_line, truncate_modal_text,
108};
109pub use paths::{
110 PathExt, PathResolver, PathScope, StrPathExt, WorkspacePaths, canonicalize, canonicalize_async,
111 file_name_from_path, is_safe_relative_path, normalize_ascii_identifier, resolve_workspace_path,
112 workspace_relative_display,
113};
114pub use project::{ProjectOverview, build_project_overview};
115pub use reference::{MemoryErrorReporter, MemoryTelemetry, StaticWorkspacePaths};
116pub use stop_hints::{STOP_HINT_COMPACT, STOP_HINT_INLINE, with_stop_hint};
117pub use styling::{ColorPalette, DiffColorPalette, render_styled};
118pub use task_guard::TaskGuard;
119pub use telemetry::{NoopTelemetry, TelemetrySink};
120pub use tokens::{estimate_tokens, truncate_to_tokens};
121pub use unicode::{UNICODE_MONITOR, UnicodeMonitor, UnicodeValidationContext};
122pub use validation::{EmptyCollectionError, NonEmptySlice, NonEmptyString, NonEmptyVec};
123pub use vtcode_paths::{
124 MigrationEntry, MigrationFailure, MigrationReport, MigrationSkip, MigrationSkipReason, VtCodePaths,
125};
126
127pub(crate) use thread_safety::RelaxedAtomic;