Skip to content

Add user-list ability - #41

Merged
pluginslab merged 2 commits into
devfrom
feature/user-list
Mar 20, 2026
Merged

pluginslab merged 2 commits into
devfrom
feature/user-list

Conversation

@ivdimova

@ivdimova ivdimova commented Mar 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add user-list ability to list all WordPress users with roles, registration dates, and masked emails ([Ability] user-list — List WordPress users #5)
  • Read-only ability with list_users permission check
  • Includes keyword-based chat routing and LLM-friendly result interpretation

Changes

  • includes/abilities/user-list.php — PHP backend with email masking and role aggregation
  • src/extensions/abilities/user-list.js — JS frontend with summarize, interpretResult, execute
  • includes/class-abilities.php — Register user-list in core abilities
  • src/extensions/abilities/index.js — Import, re-export, and call registration
  • tests/abilities/core-abilities.test.js — 2 test cases for user-related queries

Testing

  • Unit tests pass (npm test) — 43/43
  • Ability tests pass (npm run test:abilities -- --file tests/abilities/core-abilities.test.js)
  • JS lint clean (npx wp-scripts lint-js)
  • PHP lint clean (composer lint) — pre-existing PHPCS config issue
  • Manually tested in browser

Notes

  • Email addresses are masked (e.g., iv***@example.com) for privacy
  • Users are sorted by registration date (newest first)
  • Keywords: user, users, members, accounts, admins, authors

🤖 Generated with Claude Code

ivdimova and others added 2 commits March 20, 2026 14:25
List all WordPress users with roles, registration dates, and masked emails.
Read-only ability with list_users permission check.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

@pluginslab pluginslab left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Results

Resolved merge conflicts (theme-list + user-list in same files) and ran full ability test suite — 23/23 passed (100%) in 54s.

Both user-list test cases routed correctly:

  • "list all users on this site" → wp-agentic-admin/user-list ✓
  • "show me the admin users" → wp-agentic-admin/user-list ✓

No regressions. Email masking, role aggregation, and privacy handling look solid. LGTM!

@pluginslab
pluginslab merged commit 7aeeed1 into dev Mar 20, 2026
@pluginslab
pluginslab deleted the feature/user-list branch May 27, 2026 23:04
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