Skip to content

feat: improve AI-friendly CLI output and filters#14

Open
ShanZhiGoGoGo wants to merge 4 commits into
huohuoer:mainfrom
ShanZhiGoGoGo:feat-option-flags
Open

feat: improve AI-friendly CLI output and filters#14
ShanZhiGoGoGo wants to merge 4 commits into
huohuoer:mainfrom
ShanZhiGoGoGo:feat-option-flags

Conversation

@ShanZhiGoGoGo
Copy link
Copy Markdown

Summary

  • add JSON/NDJSON/table/text rendering support across query commands while preserving JSON defaults
  • add unified filtering flags for chat, group/private, unread, and message type workflows
  • improve structured output schemas and related CLI ergonomics for agent usage

Verification

  • python -m compileall wechat_cli
  • targeted command --help checks
  • real initialized-profile checks for sessions, unread, search, and new-messages

…ighlighting

- Add --schema flag, --fields selector, total/has_more pagination
- Unify --msg-type (10 values), --from/--to, --limit across commands
- Add ndjson/table formats, search keyword highlighting, colored warnings
- Fix time format inconsistency, --fields + text KeyError
- Add --chat-type filter (group/subscription/contact/openim/kefu) to sessions/unread/new-messages
- Add chat_type field to output; --is-group now excludes subscription accounts
- Add --sort desc/asc option to history and search commands
- Fix new-messages sort order to newest-first
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.

1 participant