feat: add API versioning and native manifest client support#116
Merged
Conversation
- Version all API endpoints under /api/v1/ prefix - Wire up UseStaticFiles() with fallback to index.html for gallery UI - SkillClient discovers API paths from manifest (ResolveHref helper) - NativeManifestClient routes through Api() base path - Add wwwroot Content to csproj for publish inclusion - Update all tests for new paths - Keep /.well-known/agent-skills/index.json at root (RFC standard) 214/214 tests passing.
- Restructured manifest to use versioned API prefixes (/skills/v1/..., /subagents/v1/...) - Added version negotiation: client resolves best supported version from manifest - Added search links (skillSearch, subagentSearch) for discovery - Removed RFC feed from manifest (it exists independently) - Updated explicit index.json filenames for consistency - Added NativeManifestClient.GetNativeManifestAsync() and ResolveVersion() - Updated all integration tests, forward-compat tests, and CLI tests - Updated spec and README to match implementation Resolves 13 build errors from previous agent's incomplete changes. All 214 tests pass.
…sion negotiation test - Extract MapV1Api() extension method for cleaner API versioning - Move UseStaticFiles() after MapSkillServerEndpoints() to avoid unnecessary file system lookups - Extract CurrentApiVersion constant in NativeManifestGenerator - Add trailing newlines to SkillServerClient.cs and SubAgentClient.cs - Add test for ResolveVersionAsync when no compatible version exists All 215 tests pass.
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.
Summary
Adds API versioning support to SkillServer and enhanced native manifest client discovery.
close #85
Changes
Backend (SkillServer):
Accept: application/netclaw.v1+jsonheaderNativeManifestGeneratorIndexGeneratorwwwroot/Client (Netclaw.SkillClient):
NativeManifestClient— discovers and downloads native manifestsNativeManifestModels— client-side models for native manifestsSkillServerClient— updated to support versioned API callsSubAgentClient— updated to support versioned API callsTests:
ClientForwardCompatTests)NativeSyncSecurityTests)SkillServerClientNativeManifestTestsDownloadSubAgentCommandTestsandPublishSubAgentCommandTestsDependencies
This PR should be merged after or alongside the gallery mockups PR (#115).