Files
openclaw/src/tasks/task-registry-control.types.ts

29 lines
685 B
TypeScript

import type { OpenClawConfig } from "../config/types.openclaw.js";
export type CancelAcpSessionAdmin = (params: {
cfg: OpenClawConfig;
sessionKey: string;
reason: string;
}) => Promise<void>;
export type KillSubagentRunAdminResult = {
found: boolean;
killed: boolean;
runId?: string;
sessionKey?: string;
cascadeKilled?: number;
cascadeLabels?: string[];
};
export type KillSubagentRunAdmin = (params: {
cfg: OpenClawConfig;
sessionKey: string;
}) => Promise<KillSubagentRunAdminResult>;
export type TaskRegistryControlRuntime = {
getAcpSessionManager: () => {
cancelSession: CancelAcpSessionAdmin;
};
killSubagentRunAdmin: KillSubagentRunAdmin;
};