@tracehound/cli
v1.8.10
Published
Tracehound CLI evaluation runtime
Maintainers
Readme
@tracehound/cli
CLI and TUI tools for inspecting a running Tracehound runtime.
Installation
pnpm add -g @tracehound/cli
# or
npm install -g @tracehound/cliLocal usage:
pnpm dlx @tracehound/cli --helpCommands
tracehound status [--json]
tracehound stats [--json] [--since <duration>]
tracehound inspect [trace-id] [--trace-id <id>] [--signature <sig>] [--limit <n>] [--json]
tracehound watch [--refresh <ms>]
tracehound history clear [--json]
tracehound disk clear [--json]Snapshot-backed Commands
status, stats, and watch read signed runtime snapshots written by @tracehound/core.
Required environment variables:
TRACEHOUND_SYSTEM_SNAPSHOT_PATHTRACEHOUND_SNAPSHOT_SECRET
Optional validation overrides:
TRACEHOUND_SNAPSHOT_MAX_AGE_MS(default5000)TRACEHOUND_SNAPSHOT_MAX_FUTURE_SKEW_MS(default5000)
Snapshot truth semantics:
- stale or missing snapshot =>
NO_INSTANCE - bad signature or future-skew violation =>
INTEGRITY_VIOLATION
Example:
export TRACEHOUND_SYSTEM_SNAPSHOT_PATH=/var/run/tracehound/system-snapshot.json
export TRACEHOUND_SNAPSHOT_SECRET=replace-me
tracehound statusInspect and Trace Registry Workflow
inspect, history clear, and disk clear operate on the local trace registry.
Optional environment variable:
TRACEHOUND_TRACE_REGISTRY_PATHto override the default trace-registry location used by inspect/history/disk commands
Typical flow:
- Enable
emitTraceIdHeader: truein Express/Fastify adapter. - Capture
x-tracehound-trace-idfrom a quarantined response. - Run
tracehound inspect --trace-id <id>.
Lifecycle commands:
tracehound history clearclears logical inspection history while preserving the registry file pathtracehound disk clearremoves persisted local trace-registry data from disktracehound inspectreturns trace-registry metadata only; forensic payload bytes remain quarantine-local and are never exposed by the CLI
Output Modes
- Human-readable table output by default
--jsonfor machine-readable pipelines
Related Packages
Further Reading
License
Apache-2.0
