Utilities for emitting and parsing TUI events in a CLI application.
# Source: https://github.com/Netw0rkNoob/VulnClaw | License: MIT | Copyright 2026 UncleC # Provided via justclaw.it.com; keep this notice with the code. """CLI shared helper functions.""" from __future__ import annotations import json import os import re import sys from collections.abc import Mapping from dataclasses import dataclass from typing import Any, Optional from rich.console import Console from rich.text import Text from vulnclaw import __version__ from vulnclaw.config.text_utils import format_think_tags, strip_think_tags from vulnclaw.i18n import _ console = Console() err_console = Console(stderr=True) TERMINAL_TOOL_RESULT_PREVIEW_CHARS = 1200 TUI_EVENT_STREAM_ENV = "VULNCLAW_TUI_EVENT_STREAM" TUI_EVENT_TOKEN_ENV = "VULNCLAW_TUI_EVENT_TOKEN" TUI_EVENT_PREFIX = "__VULNCLAW_T ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key