refactor: migrated tab width resolution to pi-utils with EditorConfig caching
- Extracted tab width resolution from pi-natives to pi-utils with EditorConfig caching support. - Made tabWidth parameter required in native text functions (visibleWidth, truncateToWidth, wrapTextWithAnsi, sliceWithWidth, extractSegments). - Removed process-wide tab width state management from pi-natives text module. - Consolidated wrapper node promotion logic in chunk classification with abbreviated string representations. - Removed path-clean and pathdiff dependencies from pi-natives. - Updated all consuming packages to import tab width functions from pi-utils and pass explicit tabWidth parameters.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { sanitizeText, wrapTextWithAnsi } from "@oh-my-pi/pi-natives";
|
||||
import { replaceTabs, truncateToWidth } from "../tools/render-utils";
|
||||
import { sanitizeText } from "@oh-my-pi/pi-natives";
|
||||
import { replaceTabs, truncateToWidth, wrapTextWithAnsi } from "../tools/render-utils";
|
||||
|
||||
export function formatDebugLogLine(line: string, maxWidth: number): string {
|
||||
const sanitized = sanitizeText(line);
|
||||
|
||||
Reference in New Issue
Block a user