RepoContext: Context<null | Repo> = ...

a context that provides access to an Automerge Repo. you don't need this, you can pass the repo in the second arg to the functions that need it.