resq — Developer CLI
Rust developer tooling CLI for the ResQ monorepo. Handles license headers, image placeholders, security audits, dependency cost analysis, secret scanning, and provides a suite of TUI explorers for logs, performance, health, and deployments.
Build & Install
# Build from workspace root
# Optional: install globally
Binary: target/release/resq
Commands
copyright — License Header Management
Adds or checks copyright headers across every source file in the repo.
Supported formats: C-style block (/** */), XML/HTML (<!-- -->), hash-line (#), double-dash (--), Elisp (;;), AsciiDoc (////). Shebangs (#!/...) are always preserved at line 0.
Licenses: mit (default), apache-2.0, gpl-3.0, bsd-3-clause
# Check all tracked files (CI — exits 1 if any missing)
# Preview what would be added without writing
# Add headers to all files missing them
# Overwrite existing headers (e.g. change license or author)
lqip — Low-Quality Image Placeholders
Generates tiny base64-encoded data URIs from images for use as blur-up placeholders in the web dashboard.
# Single image → prints data URI
# Directory of images → text list
# Recursive with JSON output (for import into JS)
audit — Security & Quality Audit
Three-pass security and quality sweep covering all language ecosystems in the monorepo. Runs OSV Scanner (cross-ecosystem), npm audit-ci, and React Doctor.
# Full audit (all three passes)
# Run only the OSV Scanner pass
cost — Dependency Size Analysis
Fetches package sizes from registries (npm, crates.io, PyPI) and categorizes dependencies by download footprint.
# Auto-detect project type and analyze
# Specific project
secrets — Secret Scanner
Scans source files for hardcoded credentials, API keys, private keys, tokens, and high-entropy strings.
# Scan all git-tracked files (default)
# Only scan staged changes (pre-commit hook)
tree-shake — TypeScript Dead Code Removal
Runs tsr to remove unused TypeScript exports from the project entry points.
dev — Development Utilities
Unified entry point for repository-level development tasks.
# List all development scripts
# Run a specific developer workflow
explore — Performance Monitor (TUI)
Launches the resq-perf TUI to monitor live CPU usage, memory consumption, and request metrics for ResQ services (primarily coordination-hce).
# Launch the performance explorer
Dedicated TUI shortcuts are also available:
resq logs— Multi-source log aggregator (launchesresq-logs)resq health— Service health dashboard (launchesresq-health)resq deploy— Docker/K8s deployment manager (launchesresq-deploy)resq clean— Visual workspace cleaner (launchesresq-clean)resq asm— Machine code & binary analyzer (launchesresq-bin)
pre-commit — Unified Hook
Runs a suite of checks suitable for a git pre-commit hook: copyright headers, secret scanning, and basic audits.
version — Monorepo Versioning
Manages package versions and changesets across the monorepo.
# Check version status
# Bump versions based on changesets
docs — Documentation Export
Manages documentation generation, export, and publication for the monorepo.
# Export all documentation to HTML/PDF