Closed paulgb closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
@greptileai
Looks great! Nice job!
Two things:
- I suppose this should get a major or minor version update? This is a breaking change as it requires the latest version of the y-sweet server, right? (Requires
baseUrl
on client token)- We'll need the same changes brought to the python SDK before Athena is good to go. Those will be in a follow up?
This PR:
DocConnection
class in the SDK, which wraps aClientToken
and can be used to make REST requests to a document.HttpClient
classDocumentManager.getDocAsUpdate
and.updateDoc
methods to work via aDocConnection
. This ensures that in a multi-node environment, application data goes directly to the relevant y-sweet server instead of traveling through the y-sweet API server.In the process, it modifies how authorization works in Y-Sweet so that a server token can be used to access any document.
Design doc: https://docs.google.com/document/d/10O4-i9sxUL5-bWjIYqgxbStJGqNCVLfP411J9x-fTFM/edit