mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 04:01:05 +00:00
45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
import type { DeliveryContext } from "../utils/delivery-context.types.js";
|
|
import type { SubagentRunOutcome } from "./subagent-announce-output.js";
|
|
import type { SubagentLifecycleEndedReason } from "./subagent-lifecycle-events.js";
|
|
import type { SpawnSubagentMode } from "./subagent-spawn.types.js";
|
|
|
|
export type SubagentRunRecord = {
|
|
runId: string;
|
|
childSessionKey: string;
|
|
controllerSessionKey?: string;
|
|
requesterSessionKey: string;
|
|
requesterOrigin?: DeliveryContext;
|
|
requesterDisplayKey: string;
|
|
task: string;
|
|
cleanup: "delete" | "keep";
|
|
label?: string;
|
|
model?: string;
|
|
workspaceDir?: string;
|
|
runTimeoutSeconds?: number;
|
|
spawnMode?: SpawnSubagentMode;
|
|
createdAt: number;
|
|
startedAt?: number;
|
|
sessionStartedAt?: number;
|
|
accumulatedRuntimeMs?: number;
|
|
endedAt?: number;
|
|
outcome?: SubagentRunOutcome;
|
|
archiveAtMs?: number;
|
|
cleanupCompletedAt?: number;
|
|
cleanupHandled?: boolean;
|
|
suppressAnnounceReason?: "steer-restart" | "killed";
|
|
expectsCompletionMessage?: boolean;
|
|
announceRetryCount?: number;
|
|
lastAnnounceRetryAt?: number;
|
|
endedReason?: SubagentLifecycleEndedReason;
|
|
wakeOnDescendantSettle?: boolean;
|
|
frozenResultText?: string | null;
|
|
frozenResultCapturedAt?: number;
|
|
fallbackFrozenResultText?: string | null;
|
|
fallbackFrozenResultCapturedAt?: number;
|
|
endedHookEmittedAt?: number;
|
|
completionAnnouncedAt?: number;
|
|
attachmentsDir?: string;
|
|
attachmentsRootDir?: string;
|
|
retainAttachmentsOnKeep?: boolean;
|
|
};
|