Skip to content

add experimental provider auth HttpApi slice#22389

Merged
kitlangton merged 2 commits intodevfrom
kit/provider-auth-httpapi-spike
Apr 16, 2026
Merged

add experimental provider auth HttpApi slice#22389
kitlangton merged 2 commits intodevfrom
kit/provider-auth-httpapi-spike

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • move the shared provider auth DTOs to Effect Schema with derived .zod compatibility for the existing Hono routes
  • add a parallel experimental provider HttpApi slice for GET /provider/auth under the instance-scoped experimental surface
  • cover the provider auth list/docs flow with a server test using a temporary auth plugin override

Verification

  • bun typecheck
  • bun run test test/server/provider-httpapi-auth.test.ts

Base automatically changed from kit/question-httpapi-spike to dev April 14, 2026 19:43
@kitlangton kitlangton force-pushed the kit/provider-auth-httpapi-spike branch 7 times, most recently from e706498 to 8149631 Compare April 16, 2026 01:53
- migrate provider auth DTOs from Zod to Effect Schema as single source of truth
- derive .zod compat surfaces via @/util/effect-zod for existing Hono routes
- add provider httpapi route following question/permission pattern
- wire provider route into ExperimentalHttpApiServer with auth middleware
- regenerate SDK (structurally identical, now uses named component refs)
- add test using layerTest with Effect HttpClient
The @opencode-ai/server package was declared as a dependency but never
imported anywhere. The httpapi contracts and handlers live in
packages/opencode/src/server/instance/httpapi/ instead.
@kitlangton kitlangton force-pushed the kit/provider-auth-httpapi-spike branch from 8149631 to 81cf2bd Compare April 16, 2026 02:00
@kitlangton kitlangton marked this pull request as ready for review April 16, 2026 02:03
@kitlangton kitlangton enabled auto-merge (squash) April 16, 2026 02:03
@kitlangton kitlangton merged commit 5eae926 into dev Apr 16, 2026
11 checks passed
@kitlangton kitlangton deleted the kit/provider-auth-httpapi-spike branch April 16, 2026 02:07
jerome-benoit pushed a commit to jerome-benoit/opencode that referenced this pull request Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant