legs

Results comments of legs

I think the implementation’s pretty much done. Let me know if you’d like any tweaks or changes. Could potentially add the same `HookWithError` type to the client hooks i suppose,...

Tbh when making this I was tossing up between per agent hooks vs general application lifecycle, I dont think it would to much of a refactor if you wanted me...

> found an issue when testing, there isn't proper type narrowing on the input type based on the agentId this is definitely some hellish generic nonsense that needs to get...

> > Tbh when making this I was tossing up between per agent hooks vs general application lifecycle, I dont think it would to much of a refactor if you...

> This kinda devolved into my scratch work to think this through, curious what u think... > > IGNORE: > > > ~~Yea actually I like that more custom middle...

> Been thinking about it and what I want to do is this: > > For now just do the before/after hooks on the agents themselves to keep things simpler,...

> if you could do a pass on more robust error handling that would be awesome. Taking the "RiverError" and making it way better in a similar way to trpc's...

didn't make a PR as it might not be the direction you want to go but had a go at making a rough demo for a server side implementation today...

> This is a WIP from v2 and while the syntax is a bit different, I'm 100% in agreement here that it should be more generic: > > import {...

thinking about it more if i was to continue with this api design id probably allow plugins to define a scope "global" or "stream" then on the stream there would...