Skip to content

Wire upload endpoint to accept reference files#52

Merged
Aaronontheweb merged 1 commit intonetclaw-dev:devfrom
Aaronontheweb:feature/reference-file-uploads
Apr 29, 2026
Merged

Wire upload endpoint to accept reference files#52
Aaronontheweb merged 1 commit intonetclaw-dev:devfrom
Aaronontheweb:feature/reference-file-uploads

Conversation

@Aaronontheweb
Copy link
Copy Markdown
Contributor

Summary

  • Wires the POST /skills endpoint to accept optional references multipart form fields containing additional skill files (e.g., references/guide.md)
  • Routes them through ResourcePath validation and the existing UploadSkillWithResourcesAsync service method
  • Fully backward compatible — uploads without references work exactly as before
  • The service layer, database (skill_files table), blob storage, and RFC index already supported multi-file skills; only the HTTP endpoint was missing

Test plan

  • UploadSkillWithReferences_EndToEnd — uploads a skill with 2 reference files, verifies download via resource endpoint, verifies RFC index includes resources
  • UploadSkillWithReferences_WithoutReferences_StillWorks — confirms backward compatibility
  • Full test suite passes (70 tests: 48 unit + 22 integration)

The service layer, database schema, blob storage, and RFC index already
supported multi-file skills — only the HTTP endpoint was missing the
wiring. Accept optional `references` form fields in POST /skills,
validate paths via ResourcePath, and route through the existing
UploadSkillWithResourcesAsync method. Backward compatible — uploads
without references continue to work unchanged.
@Aaronontheweb Aaronontheweb merged commit d0db53e into netclaw-dev:dev Apr 29, 2026
5 checks passed
@Aaronontheweb Aaronontheweb mentioned this pull request Apr 29, 2026
3 tasks
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.

1 participant