gRPC-Web client service layer #4

Closed
opened 2026-03-12 09:55:45 +01:00 by shahondin1624 · 1 comment

Milestone: Infrastructure & Setup

Create a src/lib/services/orchestrator.ts module that wraps the generated stubs, handles connection setup, error mapping, and exposes a typed processRequest() function returning an async iterator of ProcessRequestResponse.

Acceptance Criteria

  • src/lib/services/orchestrator.ts module created
  • Wraps generated gRPC-Web stubs with typed interface
  • Connection setup with configurable endpoint
  • Error mapping from gRPC status codes to application errors
  • processRequest() returns an async iterator of ProcessRequestResponse
  • Handles streaming responses correctly
## Milestone: Infrastructure & Setup Create a `src/lib/services/orchestrator.ts` module that wraps the generated stubs, handles connection setup, error mapping, and exposes a typed `processRequest()` function returning an async iterator of `ProcessRequestResponse`. ### Acceptance Criteria - [ ] `src/lib/services/orchestrator.ts` module created - [ ] Wraps generated gRPC-Web stubs with typed interface - [ ] Connection setup with configurable endpoint - [ ] Error mapping from gRPC status codes to application errors - [ ] `processRequest()` returns an async iterator of `ProcessRequestResponse` - [ ] Handles streaming responses correctly
Author
Owner

Implemented and auto-merged via PR #24.

Created orchestrator service layer with typed processRequest() async generator, error mapping, and configurable endpoint. All quality gates passed.

Implemented and auto-merged via PR #24. Created orchestrator service layer with typed processRequest() async generator, error mapping, and configurable endpoint. All quality gates passed.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: llm-multiverse/llm-multiverse-ui#4