/** * TaskExecutor — Runs a single task execution against NeuroLink.generate(). * * Handles: * - Isolated mode: fresh generate() call with no history * - Continuation mode: loads conversation history, appends new exchange * - Retry with exponential backoff for transient errors * - Run result construction and logging */ import type { AutoresearchEmitter, NeuroLinkExecutable, Task, TaskRunResult, TaskStore } from "../types/index.js"; export declare class TaskExecutor { private neurolink; private store; private emitter?; constructor(neurolink: NeuroLinkExecutable, store: TaskStore, emitter?: AutoresearchEmitter | undefined); /** * Execute a task once. Called by the backend on each scheduled tick. * Returns the run result (success or error). */ execute(task: Task): Promise; private executeOnce; }