mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 08:24:46 +00:00
feat(plugins): expose agent closed lifecycle event (#5971)
* feat(plugins): expose agent closed lifecycle event Emit the event when a live agent reaches its closed state so plugins can release agent-scoped resources. Keep archive and close notifications distinct. Co-authored-by: ilteoood <6383527+ilteoood@users.noreply.github.com> * fix(plugins): finish close hooks during daemon shutdown Wait briefly for pending lifecycle events before stopping plugins so agent close hooks can release their resources during shutdown. Co-authored-by: ilteoood <6383527+ilteoood@users.noreply.github.com> --------- Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: ilteoood <6383527+ilteoood@users.noreply.github.com>
This commit is contained in:
co-authored by
ilteoood
parent
8aec0787d2
commit
5375f43a05
@@ -60,6 +60,7 @@ export interface PluginLifecycleEvents {
|
||||
};
|
||||
"agent.archived": { agent: PluginHookAgent; archivedAt: string };
|
||||
"agent.created": { agent: PluginHookAgent };
|
||||
"agent.closed": { agent: PluginHookAgent };
|
||||
"workspace.created": { workspace: PluginHookWorkspace };
|
||||
"workspace.archived": { workspace: PluginHookWorkspace };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user