Overview of @va/client
mainThe @va/client package provides hand-written TypeScript definitions shared between the VibeAround web dashboard and the Tauri desktop UI. It serves as the TypeScript boundary for communicating with the VibeAround daemon.
Key components include:
- Route Builders: Located in
src/routes.ts, these provideVA_PREFIXand base-URL builders that match the daemon's route layout (configured via.nest("/va", ...)in the server). - Wire Schemas: Located in
src/schemas.ts, these contain Zod schemas and inferred types for all HTTP and WebSocket wire shapes, along with constants likeAGENT_IDSandPREVIEW_SHARE_TTL_SECS. - Entry Point:
src/index.tsacts as the barrel file for the package.