- Create src/lib/services/orchestrator.ts with Connect-Web transport - Typed processRequest() async generator for server-streaming RPC - OrchestratorError class mapping gRPC status codes to app errors - Configurable endpoint with resetTransport() for reconfiguration Closes #4 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
778 B
778 B
Issue #4: gRPC-Web client service layer
Status: COMPLETED
Issue: #4
Branch: feature/issue-4-grpc-web-client
Summary
Create src/lib/services/orchestrator.ts wrapping Connect-Web client for the OrchestratorService, with typed processRequest() async generator and error mapping.
Acceptance Criteria
src/lib/services/orchestrator.tsmodule 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 ofProcessRequestResponse- Handles streaming responses correctly
Deviations
None.