Files
oh-my-opencode/dist/features/background-agent/task-history.d.ts
T
2026-03-14 04:56:50 +00:00

20 lines
621 B
TypeScript

import type { BackgroundTaskStatus } from "./types";
export interface TaskHistoryEntry {
id: string;
sessionID?: string;
agent: string;
description: string;
status: BackgroundTaskStatus;
category?: string;
startedAt?: Date;
completedAt?: Date;
}
export declare class TaskHistory {
private entries;
record(parentSessionID: string | undefined, entry: TaskHistoryEntry): void;
getByParentSession(parentSessionID: string): TaskHistoryEntry[];
clearSession(parentSessionID: string): void;
clearAll(): void;
formatForCompaction(parentSessionID: string): string | null;
}