validation

package
v0.3.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package validation provides input validation functions for the Entire CLI. This package has no dependencies to avoid import cycles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAgentID

func ValidateAgentID(id string) error

ValidateAgentID validates that an agent ID contains only safe characters for paths.

func ValidateAgentSessionID

func ValidateAgentSessionID(id string) error

ValidateAgentSessionID validates that an agent session ID contains only safe characters for paths. Agent session IDs can be UUIDs (Claude Code), test identifiers, or other formats depending on the agent. This prevents path traversal attacks when the ID is used in file path construction.

func ValidateSessionID

func ValidateSessionID(id string) error

ValidateSessionID validates that a session ID doesn't contain path separators. This prevents path traversal attacks when session IDs are used in file paths.

func ValidateToolUseID

func ValidateToolUseID(id string) error

ValidateToolUseID validates that a tool use ID contains only safe characters for paths. Tool use IDs can be UUIDs or prefixed identifiers like "toolu_xxx".

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL