New ability: plugin-update — update plugins by name or update all
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript, php, wordpress
Research direction
Start with includes/abilities/plugin-update.php and src/extensions/abilities/plugin-update.js, then compare the existing update-check ability and the fuzzy-matching approach from #105. Add coverage for the three example queries and verify confirmation, disambiguation, per-plugin results, and permission or update failures. Done means named, all, and pending plugin updates work without confusing update-check.
Written by the indexing model from the issue text.
Description
Problem
When a user says "update the plugins that need to be updated", the LLM now correctly routes to update-check (fixed in PR #102), but that ability only lists available updates — it cannot perform them. There is no plugin-update ability.
Reported by @wpbullet in #66.
Proposed Solution
Create a new wp-agentic-admin/plugin-update ability that can:
- Update a specific plugin — "update WooCommerce", "update akismet"
- Update all plugins — "update all plugins", "update everything"
- Update plugins that need it — "update the plugins that need to be updated"
PHP backend (includes/abilities/plugin-update.php)
- Use the WordPress Plugin Upgrader API (
Plugin_Upgraderclass) - Accept
pluginparam (slug or "all") - When
pluginis a name, use fuzzy matching (same approach as #105) - When
pluginis "all" or empty, update all plugins with available updates - Return per-plugin results:
{ success, updated: [{ name, old_version, new_version }], failed: [{ name, error }] } - Handle common errors: expired license, download failures, permission issues
permission_callback:current_user_can( 'update_plugins' )
JS frontend (src/extensions/abilities/plugin-update.js)
- Keywords:
update,upgrade,patch,update plugin,update all plugins requiresConfirmation: true— updates can break sites- Summarize should list what was updated and what failed
- Differentiate from
update-check(check = read-only, update = action)
Disambiguation with update-check
update-check: "are there updates?", "check for outdated plugins" → read-onlyplugin-update: "update WooCommerce", "update all plugins" → performs the update
The update-check description should note: "To actually perform updates, use plugin-update."
The plugin-update description should note: "To check what updates are available without updating, use update-check."
Example user queries
- "update WooCommerce"
- "update all plugins"
- "update the plugins that need to be updated"
- "upgrade akismet to the latest version"
Test cases to add
{ input: 'update WooCommerce', expectTool: 'wp-agentic-admin/plugin-update' },
{ input: 'update all plugins', expectTool: 'wp-agentic-admin/plugin-update' },
{ input: 'upgrade akismet to the latest version', expectTool: 'wp-agentic-admin/plugin-update' },
Refs
Closes #66
- Dominant language
- JavaScript
- Stars
- 28
- Forks
- 6
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pluginslab/wp-agentic-admin
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pluginslab/wp-agentic-admin#226 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pluginslab/wp-agentic-admin#215 ·
-
WP.org submission: close out review T4 (17 Jun) and stop the review loopMay be free again @ivdimova claimed this 45 days ago, and no pull request is open. Openphp question wporg-submission
pluginslab/wp-agentic-admin#228 · 5 comments · 2 assignees ·
-
enhancement react-js ux
Difficulty 5/5 Over a week Newbie friendliness 35/100
pluginslab/wp-agentic-admin#224 ·
-
enhancement ux
Difficulty 4/5 3-5 days Newbie friendliness 48/100
pluginslab/wp-agentic-admin#223 ·
All issues in pluginslab/wp-agentic-admin
Similar issues
-
external-issue to-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
LearningCircuit/local-deep-research#7067 ·
Maintainers usually reply within 1 day
-
automated issue report
Difficulty 1/5 Under an hour Newbie friendliness 65/100
lirantal/discoprint#32 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day