Skip to content

Feat: Implement Experts API module for @perstack/api-client#397

Closed
FL4TLiN3 wants to merge 4 commits intomainfrom
feat/816-experts-api-module
Closed

Feat: Implement Experts API module for @perstack/api-client#397
FL4TLiN3 wants to merge 4 commits intomainfrom
feat/816-experts-api-module

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Jan 9, 2026

Summary

  • Implement Experts API module for @perstack/api-client package
  • Add complete API surface for Scopes, Versions, Drafts, and Publish/Unpublish operations
  • All operations use proper URL encoding for special characters (e.g., @perstack/base@1.0.0)

Changes

  • src/experts/types.ts - Zod schemas for Scope, ScopeMeta, Version, Draft, DraftRef, Expert
  • src/experts/versions.ts - VersionsApi with list operation
  • src/experts/drafts.ts - DraftsApi with list, get, create, update, delete, assignVersion
  • src/experts/api.ts - ExpertsApi with list, get, getMeta, publish, unpublish, yank
  • src/experts/index.ts - Module exports
  • src/client.ts - Integrate experts API into ApiClient
  • src/index.ts - Export all types and APIs

Test plan

  • All 45 unit tests pass with MSW mocks
  • 100% code coverage on experts module
  • Typecheck passes
  • Biome lint passes
  • Build succeeds

Related

Closes wintermute-llc/wintermute#816


🤖 Generated with Claude Code

- Add types.ts with Zod schemas for Scope, Version, Draft, etc.
- Add versions.ts with VersionsApi sub-module
- Add drafts.ts with DraftsApi sub-module (CRUD + assignVersion)
- Add api.ts with main ExpertsApi (list, get, getMeta, publish, unpublish, yank)
- Add comprehensive MSW tests for all endpoints
- Update client.ts to include experts API
- Update index.ts to export all types and APIs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Jan 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

FL4TLiN3 and others added 3 commits January 9, 2026 06:23
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 closed this Jan 9, 2026
@FL4TLiN3 FL4TLiN3 deleted the feat/816-experts-api-module branch January 9, 2026 10:10
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