refactor: dedupe cli config cron and install flows

This commit is contained in:
Peter Steinberger
2026-03-02 19:48:38 +00:00
parent 9d30159fcd
commit b1c30f0ba9
80 changed files with 1379 additions and 2027 deletions

View File

@@ -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