Explanation of the Repository
apps/gateway/src/routes/api
packages/core
which is also reused in other parts of the code.
Architecture Pattern:
errorHandlingMiddleware
) that serializes errors to OpenAPI error schema.tracerMiddleware
)Transaction
, per test, that includes additional logic of retries and more that is useful for our tests (use it even for 1 row!!)apps/web/src/app
There are two main folders that separate views:
apps/web/src/actions
The idea behind this is to group all write actions in one place
To do reads, -> NextJS App routes that call backend services
A Redis cache is used around the code if needed.
Tests are created using Vitest to verify:
POST /worker-events
websocket
) or a bearer token from a workerPOST /worker-events
; then the WS server rebroadcasts to the right room.LatitudeWebsocketsProvider
to reconnect, auto-refresh expired tokens, and listen with React hooks to any updates from the workerspackages/core/src/events/handlers
), and these job implementations are also defined the core package, which calls backend services behind the scenes, etc..promptl
file (or raw prompt JSON) and returns a fully-typed message array, metadata, and chain representation used by the Gateway and SDKs.
Status: To be deprecated