@illuma-ai/code-sandbox 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,27 @@
1
1
  /**
2
- * Terminal — Display terminal output from Nodepod processes.
2
+ * Terminal — Git-bash inspired terminal output panel.
3
3
  *
4
- * Simple scrolling output panel styled like a terminal.
5
- * Auto-scrolls to the bottom as new output arrives.
4
+ * Renders process stdout/stderr with color-coded output:
5
+ * - Commands ($ ...) get a green prompt + white command
6
+ * - stderr lines get red text
7
+ * - Success markers (checkmarks) get green
8
+ * - Warnings get yellow
9
+ * - Package names get purple
10
+ * - URLs and paths get cyan
11
+ * - Exit codes get colored by status
12
+ *
13
+ * Uses a simple div-based approach (not xterm.js) to keep the bundle lean.
14
+ * Auto-scrolls to bottom as new output arrives.
6
15
  */
7
16
  import type { TerminalProps } from "../types";
8
17
  /**
9
- * Terminal component — renders process stdout/stderr in a terminal-style panel.
18
+ * Terminal component — renders process output in a git-bash inspired panel.
10
19
  *
11
- * Uses a simple div-based approach (not xterm.js) for the initial version.
12
- * This keeps the bundle small and avoids the xterm peer dependency
13
- * for consumers who don't need full terminal emulation.
20
+ * Features:
21
+ * - Color-coded output (commands, errors, warnings, info, packages)
22
+ * - Monospace font stack (Cascadia Code JetBrains Mono → Fira Code → fallback)
23
+ * - Auto-scroll to bottom on new output
24
+ * - Modern thin scrollbar matching the sandbox theme
25
+ * - Dark background separate from editor for visual distinction
14
26
  */
15
27
  export declare function Terminal({ output, className }: TerminalProps): import("react/jsx-runtime").JSX.Element;