Type guard determining if a parsed message is a real user input, excluding system outputs.
// Source: https://github.com/matt1398/claude-devtools | License: MIT | Copyright 2026 claude-devtools contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Parsed message types and type guards for claude-devtools.
*
* ParsedMessage is the application's internal representation after parsing
* raw JSONL entries. This module also contains type guards for classifying
* parsed messages into categories for chunk building.
*/
import {
EMPTY_STDERR,
EMPTY_STDOUT,
HARD_NOISE_TAGS,
LOCAL_COMMAND_STDERR_TAG,
LOCAL_COMMAND_STDOUT_TAG,
SYSTEM_OUTPUT_TAGS,
} from '../constants/messageTags';
import { type MessageType, type TokenUsage } from './domain';
import { type ContentBlock, type ToolUseResultData } from './jsonl';
// ==============================
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key