mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 19:30:44 +00:00
29 lines
685 B
TypeScript
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;
|
|
};
|