hdresearch / nolita

Work with web-enabled agents quickly — whether running a quick task or bootstrapping a full-stack product.
https://nolita.ai
MIT License
79 stars 3 forks source link

bin: add record, replay #94

Closed matildepark closed 3 weeks ago

matildepark commented 3 weeks ago

Adds --record and --replay flags. Record is a boolean that will return the pageId with a successful objective. Replay takes in a session ID. If we're replaying, we skip all checks, since we don't actually use anything else provided besides our core auth credentials.

One thing I will note is that we don't seem to provide any logs for replayed routes, which makes this somewhat pointless at the moment.

Screenshot 2024-06-27 at 4 42 20 PM

Finally I will also note that bin/run.ts is getting a little complex and messy and it's getting due for a rewrite or at least a reconsolidation for different task phases (placing validation, auth, runner steps into their own files, probably).