Expand description
Utility functions for the VT Code agent
This module contains common utility functions that are used across different parts of the VT Code agent, helping to reduce code duplication and improve maintainability.
Structs§
- Project
Overview - Lightweight project overview extracted from workspace files
Functions§
- build_
project_ overview - Build a minimal project overview from Cargo.toml and README.md
- current_
timestamp - Get current Unix timestamp in seconds
- detect_
workspace_ languages - Detect the dominant workspace languages using file extension heuristics.
- display_
language_ from_ editor_ language_ id - display_
language_ from_ path - extract_
readme_ excerpt - Get the first meaningful section of the README/markdown as an excerpt
- extract_
toml_ str - Extract a string value from a simple TOML key assignment within the
[package]section - merge_
env_ patterns - Merge a base list of patterns with patterns loaded from an environment variable. The environment variable, if set, is expected to be a comma-separated list of values.
- render_
pty_ output_ fn - Render PTY output in a terminal-like interface
- safe_
replace_ text - Safe text replacement with validation
- summarize_
workspace_ languages - Summarize workspace languages using file extension heuristics