Let the coordinator and workspace admins hand over tasks and routines
delegate_task takes a task_id to hand over a task already on a list: it moves to the worker (a workspace's task stays on its list), goes to doing, and the job is linked back so its end is noted on the task. hand_over_schedule moves a bot's own routine to another bot, keeping its workspace. Users get Hand over in the Tasks UI and both routine lists. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -89,6 +89,14 @@ export type BotWithLastMessage = BotWithFace & {
|
||||
* A bot's schedule with what the routines page shows beside it: the bot
|
||||
* and the workspace it runs in.
|
||||
*/
|
||||
/**
|
||||
* A bot a task or routine can be handed over to, for the picker.
|
||||
*/
|
||||
export type HandOverTarget = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
|
||||
export type CronJobWithNames = BUN_SQLITE_COBBLE_CRON_JOBS & {
|
||||
bot_name?: string | null;
|
||||
bot_kind?: string | null;
|
||||
|
||||
Reference in New Issue
Block a user