agents: track indexing tasks (#676)
* plumb through agent_id
* worker can access db to persist task agent rs
* decorator works
* does this actually work?
* fix missing args
* Squashed commit of the following:
commit 2ea591de3b04ddc37dad60feae0ed7a5073c5df2
Author: Scott <scottchu@cohere.com>
Date: Thu Aug 15 17:34:28 2024 -0400
db changes
* wire up agent task status with controller
* return serialized json from tasks
* .
* raise job errors correctly and read back exception snippet
* get task status in client
* thanks tailwind
* link to the indexing page
* copypasta galore
* fix type errors
* lint
* revert ui change
* lint with new tools
* will this fix tests?
* fix lint
* simplify restore
* .
* clean ups
* small fixes
* fix
* feedback
* lint
* fixes
* fixes, still need to check db changes
* fe changes
* fix all
---------
Co-authored-by: Scott <scottchu@cohere.com>
Co-authored-by: giannis <giannis@cohere.com>