Files
shahondin1624 d011447190 feat: add gRPC-Web client service layer for OrchestratorService
- 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>
2026-03-12 11:22:15 +01:00

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.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

Deviations

None.