Skip to content

Add disk-usage ability - #46

Merged
pluginslab merged 2 commits into
devfrom
feature/disk-usage
Mar 20, 2026
Merged

pluginslab merged 2 commits into
devfrom
feature/disk-usage

Conversation

@ivdimova

Copy link
Copy Markdown
Collaborator

Summary

Changes

  • includes/abilities/disk-usage.php — PHP backend with wp_agentic_admin_dir_size() and wp_agentic_admin_format_bytes() helpers
  • src/extensions/abilities/disk-usage.js — JS frontend with summarize, interpretResult, execute
  • includes/class-abilities.php — Register disk-usage in core abilities
  • src/extensions/abilities/index.js — Import, re-export, and call registration
  • tests/abilities/core-abilities.test.js — 2 test cases for disk/storage 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

Report disk space usage for WordPress directories (uploads, plugins, themes, etc).
Read-only ability with manage_options permission check and recursive dir size calculation.

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 all 4 open PRs locally and ran full ability test suite — 29/29 passed (100%) in 63s. All conflicts resolved. LGTM!

@pluginslab
pluginslab merged commit 465b30a into dev Mar 20, 2026
@pluginslab
pluginslab deleted the feature/disk-usage 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