Forked from bakit/terminal
Forked from bakit/terminal
src / enhancedUtils.ts
/**
* Re-export barrel — provides a single import for all utility functions.
*/
export { expandPath, sanitizeFilePath, validateWritePath, sanitizeCommand, validateExecutionParams } from "./securityEnhanced";
export { detectPlatform, resolvePwshPath, resolveCwd, normalizeLineEndings, formatBytes, withRetry, execCommand, runProcess, execCommandStream } from "./executor";
export { readFile, writeFileSync, appendFileSync, deleteFileSync, copyFileSync, moveFileSync, ensureDirectory, fileExists, isDirectory, getFileStats, listDirectory, zipCreate, zipExtract, zipList, fileChecksum, diffFiles } from "./fileUtilities";
export { getSystemInfo, clearSystemInfoCache, getNetworkInterfaces } from "./systemUtilities";
export { Cache, commandCache } from "./cache";
export { ProgressIndicator } from "./progressIndicator";
export { detectRuntime, which } from "./runtimeResolver";
export { logger } from "./logger";
export { TerminalError, CommandExecutionError, SecurityError, TimeoutError, ValidationError } from "./errors";
export type { TerminalConfig } from "./config";
export { DEFAULT_CONFIG } from "./config";
export {
EXEC_DEFAULT_TIMEOUT_MS,
EXEC_MAX_TIMEOUT_MS,
MAX_OUTPUT_CHARS,
MAX_TIMER_MS,
} from "./constants";
src / enhancedUtils.ts
/**
* Re-export barrel — provides a single import for all utility functions.
*/
export { expandPath, sanitizeFilePath, validateWritePath, sanitizeCommand, validateExecutionParams } from "./securityEnhanced";
export { detectPlatform, resolvePwshPath, resolveCwd, normalizeLineEndings, formatBytes, withRetry, execCommand, runProcess, execCommandStream } from "./executor";
export { readFile, writeFileSync, appendFileSync, deleteFileSync, copyFileSync, moveFileSync, ensureDirectory, fileExists, isDirectory, getFileStats, listDirectory, zipCreate, zipExtract, zipList, fileChecksum, diffFiles } from "./fileUtilities";
export { getSystemInfo, clearSystemInfoCache, getNetworkInterfaces } from "./systemUtilities";
export { Cache, commandCache } from "./cache";
export { ProgressIndicator } from "./progressIndicator";
export { detectRuntime, which } from "./runtimeResolver";
export { logger } from "./logger";
export { TerminalError, CommandExecutionError, SecurityError, TimeoutError, ValidationError } from "./errors";
export type { TerminalConfig } from "./config";
export { DEFAULT_CONFIG } from "./config";
export {
EXEC_DEFAULT_TIMEOUT_MS,
EXEC_MAX_TIMEOUT_MS,
MAX_OUTPUT_CHARS,
MAX_TIMER_MS,
} from "./constants";