π File detail
utils/sandbox/sandbox-ui-utils.ts
π§© .tsπ 13 linesπΎ 389 bytesπ text
β Back to All Filesπ― Use case
This file lives under βutils/β, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, β¦). On the API surface it exposes removeSandboxViolationTags β mainly functions, hooks, or classes. What the file header says: UI utilities for sandbox violations These utilities are used for displaying sandbox-related information in the UI.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
UI utilities for sandbox violations These utilities are used for displaying sandbox-related information in the UI
π€ Exports (heuristic)
removeSandboxViolationTags
π₯οΈ Source preview
/**
* UI utilities for sandbox violations
* These utilities are used for displaying sandbox-related information in the UI
*/
/**
* Remove <sandbox_violations> tags from text
* Used to clean up error messages for display purposes
*/
export function removeSandboxViolationTags(text: string): string {
return text.replace(/<sandbox_violations>[\s\S]*?<\/sandbox_violations>/g, '')
}