feat(skills): add CRUD management methods to SkillsClient#166
Merged
Conversation
Implements installSkill, listInstalledSkills, getInstalledSkill, toggleSkill, uninstallSkill, refreshSkill, and getMarketplace methods on SkillsClient to interface with the new agent-server skills management endpoints added in OpenHands/software-agent-sdk#3231. New types added to src/models/api.ts: - InstallSkillRequest - InstalledSkillInfo / InstalledSkillSummary / InstalledSkillsResponse - ToggleSkillResponse - SkillActionResponse - RefreshSkillResponse - MarketplaceSkill / MarketplaceResponse All new types are re-exported from src/index.ts. Tests added for all seven new methods including URL encoding. Closes #163 Co-authored-by: openhands <openhands@all-hands.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
SkillsClientonly exposedgetSkillsandsyncSkills. The agent-server added CRUD endpoints for skills management in OpenHands/software-agent-sdk#3231, and the TypeScript client needs matching methods so frontends can use them.Summary
SkillsClient:installSkill,listInstalledSkills,getInstalledSkill,toggleSkill,uninstallSkill,refreshSkill,getMarketplacesrc/models/api.ts, all re-exported fromsrc/index.tsIssue Number
Closes #163
How to Test
Unit tests cover all new methods:
For integration testing, point
SkillsClientat an agent-server running software-agent-sdk v1.18.1+ and call each method.Video/Screenshots
N/A — no user-facing UI changes.
Type
Notes
Depends on agent-server endpoints from OpenHands/software-agent-sdk#3231 (already merged).
This PR was created by an AI agent (OpenHands) on behalf of the user.