UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

18 lines (17 loc) • 1.67 kB
import type { DeliveryContext } from "../utils/delivery-context.js"; import type { SubagentRunRecord } from "./subagent-registry.types.js"; export declare function findRunIdsByChildSessionKeyFromRuns(runs: Map<string, SubagentRunRecord>, childSessionKey: string): string[]; export declare function listRunsForRequesterFromRuns(runs: Map<string, SubagentRunRecord>, requesterSessionKey: string, options?: { requesterRunId?: string; }): SubagentRunRecord[]; export declare function listRunsForControllerFromRuns(runs: Map<string, SubagentRunRecord>, controllerSessionKey: string): SubagentRunRecord[]; export declare function resolveRequesterForChildSessionFromRuns(runs: Map<string, SubagentRunRecord>, childSessionKey: string): { requesterSessionKey: string; requesterOrigin?: DeliveryContext; } | null; export declare function shouldIgnorePostCompletionAnnounceForSessionFromRuns(runs: Map<string, SubagentRunRecord>, childSessionKey: string): boolean; export declare function countActiveRunsForSessionFromRuns(runs: Map<string, SubagentRunRecord>, controllerSessionKey: string): number; export declare function countActiveDescendantRunsFromRuns(runs: Map<string, SubagentRunRecord>, rootSessionKey: string): number; export declare function countPendingDescendantRunsFromRuns(runs: Map<string, SubagentRunRecord>, rootSessionKey: string): number; export declare function countPendingDescendantRunsExcludingRunFromRuns(runs: Map<string, SubagentRunRecord>, rootSessionKey: string, excludeRunId: string): number; export declare function listDescendantRunsForRequesterFromRuns(runs: Map<string, SubagentRunRecord>, rootSessionKey: string): SubagentRunRecord[];