[Feature]: add blocks list with filtering and JSON output
Feature description
Right now, Wave doesn’t provide a way to list or query blocks (terminals, previews, web views, etc.) from the CLI. This makes it harder to automate, script, and debug workflows.
I built a wsh blocks list subcommand to fill this gap. It outputs block data with optional filtering and structured JSON. This issue is to open up discussion, get feedback, and confirm if this fits into the project’s goals.
Implementation Suggestion
Here’s my initial PR as a starting point: https://github.com/wavetermdev/waveterm/pull/2337
Hello @sawka, I just noticed #1572, which covered a similar idea but was closed earlier this year. I didn’t see it at first since it was marked as done, but my PR takes that concept a bit further by adding richer filtering and JSON output. Happy to adjust if this overlaps with any planned work.