Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 26, 2025

Adds CLI tool to monitor workflow statistics in real-time with parameter-based filtering.

Implementation

  • CLI Command (liteflow stats): Displays workflow metrics (total, completed, pending, failed, avg steps), most frequent steps, and optional detailed workflow list
  • Real-time Mode (--watch): Auto-refreshes dashboard at configurable intervals (default 2s)
  • Filters: Status (--status), identifier key/value (--key/--value), verbose mode (--verbose)
  • Output: Formatted tables with color-coded status indicators (green/yellow/red)

Usage

# Basic dashboard
liteflow stats --db ./workflows.db

# Real-time monitoring with filters
liteflow stats --db ./workflows.db --watch --status pending --verbose

# Filter by identifier
liteflow stats --db ./workflows.db --key userId --value 1001

Technical Details

  • Dependencies: commander (CLI framework), chalk (colors), cli-table3 (tables)
  • Bin entry: dist/cli.js added to package.json
  • Test coverage: 7 new CLI tests, all existing tests passing
  • No security vulnerabilities in new dependencies
Original prompt

Cli üzerinden genel istatistiklerin takip edilebileceği bir altyapı ekle. Realtime takip ve parametrelerle filtreleme seçenekleri olabilir


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits October 26, 2025 19:56
Co-authored-by: indatawetrust <6845298+indatawetrust@users.noreply.github.com>
Co-authored-by: indatawetrust <6845298+indatawetrust@users.noreply.github.com>
Co-authored-by: indatawetrust <6845298+indatawetrust@users.noreply.github.com>
Co-authored-by: indatawetrust <6845298+indatawetrust@users.noreply.github.com>
Copilot AI changed the title [WIP] Add infrastructure for tracking general statistics Add CLI for real-time workflow statistics monitoring with filtering Oct 26, 2025
Copilot AI requested a review from indatawetrust October 26, 2025 20:05
Copilot finished work on behalf of indatawetrust October 26, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants