mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-20 06:20:55 +00:00
refactor: dedupe cli config cron and install flows
This commit is contained in:
@@ -570,8 +570,7 @@ export type PluginHookSubagentContext = {
|
||||
|
||||
export type PluginHookSubagentTargetKind = "subagent" | "acp";
|
||||
|
||||
// subagent_spawning hook
|
||||
export type PluginHookSubagentSpawningEvent = {
|
||||
type PluginHookSubagentSpawnBase = {
|
||||
childSessionKey: string;
|
||||
agentId: string;
|
||||
label?: string;
|
||||
@@ -585,6 +584,9 @@ export type PluginHookSubagentSpawningEvent = {
|
||||
threadRequested: boolean;
|
||||
};
|
||||
|
||||
// subagent_spawning hook
|
||||
export type PluginHookSubagentSpawningEvent = PluginHookSubagentSpawnBase;
|
||||
|
||||
export type PluginHookSubagentSpawningResult =
|
||||
| {
|
||||
status: "ok";
|
||||
@@ -620,19 +622,8 @@ export type PluginHookSubagentDeliveryTargetResult = {
|
||||
};
|
||||
|
||||
// subagent_spawned hook
|
||||
export type PluginHookSubagentSpawnedEvent = {
|
||||
export type PluginHookSubagentSpawnedEvent = PluginHookSubagentSpawnBase & {
|
||||
runId: string;
|
||||
childSessionKey: string;
|
||||
agentId: string;
|
||||
label?: string;
|
||||
mode: "run" | "session";
|
||||
requester?: {
|
||||
channel?: string;
|
||||
accountId?: string;
|
||||
to?: string;
|
||||
threadId?: string | number;
|
||||
};
|
||||
threadRequested: boolean;
|
||||
};
|
||||
|
||||
// subagent_ended hook
|
||||
|
||||
Reference in New Issue
Block a user