πŸ“„ 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, '')
}