waveterm/cmd
Oleksandr Hreshchuk 7681214fa1
feat(cli): add blocks list with filtering and JSON output (#2337)
### What This Does
Adds a new `wsh blocks list` subcommand that lists all blocks in all or
specified workspace, window, or tab. Includes filtering options and JSON
output for automation.

### Motivation
Wave users had no simple way to programmatically discover block IDs for
scripting and automation. This feature:
- Enables workflows like syncing Preview widgets with `cd` changes.
- Simplifies debugging and introspection.
- Provides a foundation for future CLI enhancements (focus/close
blocks).

### Usage
```wsh blocks [list|ls|get] [--workspace=<workspace-id>] [--window=<window-id>] [--tab=<tab-id>] [--view=<view-type>] [--json]```

Where `<view-type>` can be one of: term, terminal, shell, console, web, browser, url, preview, edit, sysinfo, sys, system, waveai, ai, or assistant.

### Notes
- Fully backward compatible.
- Code follows existing CLI patterns.
2025-10-08 13:41:24 -07:00
..
generatego New AIPanel (#2370) 2025-10-07 13:32:10 -07:00
generateschema feat: add schema for widgets.json (#1929) 2025-02-07 15:39:57 -08:00
generatets Happy new year! (#1684) 2025-01-04 20:56:57 -08:00
packfiles Add license identifiers to missing files (#1806) 2025-01-22 20:06:36 -08:00
server New AIPanel (#2370) 2025-10-07 13:32:10 -07:00
test Happy new year! (#1684) 2025-01-04 20:56:57 -08:00
testai New AIPanel (#2370) 2025-10-07 13:32:10 -07:00
testopenai New AIPanel (#2370) 2025-10-07 13:32:10 -07:00
wsh feat(cli): add blocks list with filtering and JSON output (#2337) 2025-10-08 13:41:24 -07:00