Skip to content

feat(#765): Add Chat CLI commands for session management#771

Merged
chubes4 merged 2 commits intoExtra-Chill:mainfrom
saraichinwag:feature/765-chat-cli
Mar 9, 2026
Merged

feat(#765): Add Chat CLI commands for session management#771
chubes4 merged 2 commits intoExtra-Chill:mainfrom
saraichinwag:feature/765-chat-cli

Conversation

@saraichinwag
Copy link
Contributor

Summary

Adds WP-CLI commands for chat session management, wrapping the existing ChatAbilities.

Commands Added

  • wp datamachine chat list - List sessions for a user with pagination and filtering
  • wp datamachine chat get <session_id> - Retrieve a session with conversation
  • wp datamachine chat create - Create a new session
  • wp datamachine chat delete <session_id> - Delete a session (with confirmation)
  • wp datamachine chat title <session_id> - Generate AI title for a session

Testing

# List sessions
wp datamachine chat list --user=1

# Create a session
wp datamachine chat create --user=1

# Get a session
wp datamachine chat get <session_id> --user=1

# Delete a session
wp datamachine chat delete <session_id> --user=1 --yes

# Generate title
wp datamachine chat title <session_id>

Closes

Closes #765

Running Version

v0.39.0

Adds wp datamachine chat with subcommands:
- list: List sessions for a user with pagination and filtering
- get: Retrieve a session with conversation
- create: Create a new session
- delete: Delete a session (with confirmation)
- title: Generate AI title for a session

Wraps ChatAbilities for CLI access.
The database method requires a string for agent_type, not null.
@chubes4 chubes4 merged commit b7bf4c2 into Extra-Chill:main Mar 9, 2026
3 checks passed
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.

Add Chat CLI commands for session management

2 participants