Module utils

Module utils 

Source
Expand description

Utility functions for the VTCode agent

This module contains common utility functions that are used across different parts of the VTCode agent, helping to reduce code duplication and improve maintainability.

Structs§

ProjectOverview
Lightweight project overview extracted from workspace files

Functions§

build_project_overview
Build a minimal project overview from Cargo.toml and README.md
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 [package]
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