Skip to content

Add post-list ability - #59

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

pluginslab merged 2 commits into
devfrom
feature/post-list

Conversation

@ivdimova

Copy link
Copy Markdown
Collaborator

Summary

  • Add post-list ability to list WordPress posts with optional filters ([Ability] post-list — List recent WordPress posts #10)
  • Supports status (draft/publish/pending/trash) and post type (post/page) filtering
  • Includes parseIntent for natural language extraction of filters from user messages

Changes

  • includes/abilities/post-list.php — PHP backend using get_posts() with status/type/count params
  • src/extensions/abilities/post-list.js — JS frontend with parseIntent, summarize, interpretResult
  • includes/class-abilities.php — Register post-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 post-related queries

Testing

  • Unit tests pass (npm test) — 43/43
  • Ability tests pass (npm run test:abilities)
  • JS lint clean
  • PHP lint clean — pre-existing PHPCS config issue
  • Manually tested in browser

🤖 Generated with Claude Code

List WordPress posts with optional status and post type filters.
Includes parseIntent for natural language extraction of draft/publish/page filters.

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

Merged with all other abilities and ran full suite — 32/33 (97%) in 75s. Both post-list tests pass:

  • "list my recent posts" → post-list ✓
  • "show me all draft posts" → post-list ✓

The one failure is a pre-existing flaky test ("what PHP version") unrelated to this PR. LGTM!

@pluginslab
pluginslab merged commit 0bc0be4 into dev Mar 20, 2026
@pluginslab
pluginslab deleted the feature/post-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