feat(skills): add ClawHub registry catalog parser and loader
This commit is contained in:
@@ -27,22 +27,22 @@
|
||||
|
||||
Checklist:
|
||||
|
||||
- [ ] Add registry types + parser module (`src/skills/registrySource.ts` or equivalent).
|
||||
- [ ] Support one source shape:
|
||||
- [ ] local JSON file path (for deterministic tests and offline use)
|
||||
- [ ] optional HTTPS URL source (fetch + timeout + parse)
|
||||
- [ ] Validate required fields for each skill entry:
|
||||
- [ ] `id`, `name`, `version`, `source`, `summary`
|
||||
- [ ] optional trust metadata (`publisher`, `homepage`, `sha256`)
|
||||
- [ ] Reject malformed registry entries with actionable errors.
|
||||
- [x] Add registry types + parser module (`src/skills/registrySource.ts` or equivalent).
|
||||
- [x] Support one source shape:
|
||||
- [x] local JSON file path (for deterministic tests and offline use)
|
||||
- [x] optional HTTPS URL source (fetch + timeout + parse)
|
||||
- [x] Validate required fields for each skill entry:
|
||||
- [x] `id`, `name`, `version`, `source`, `summary`
|
||||
- [x] optional trust metadata (`publisher`, `homepage`, `sha256`)
|
||||
- [x] Reject malformed registry entries with actionable errors.
|
||||
|
||||
Acceptance:
|
||||
|
||||
- `flynn skills` internals can load a normalized registry catalog.
|
||||
- [x] `flynn skills` internals can load a normalized registry catalog.
|
||||
|
||||
Tests:
|
||||
|
||||
- [ ] Unit tests for parser/validation edge cases.
|
||||
- [x] Unit tests for parser/validation edge cases.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user