eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
24 lines (23 loc) • 1.36 kB
TypeScript
import type { HarnessSession as RuntimeSession } from "#harness/types.js";
import type { RuntimeActionResult, RuntimeToolCallActionRequest } from "#shared/action-types.js";
import { type BackgroundWorkflowToolRun } from "#harness/workflow-tool-runs.js";
import type { TaskView } from "#tasks/types.js";
/**
* Result and lookup helpers shared by the task-control executors
* (`task_cancel` in the dispatch module,
* task controls in their own).
*/
/** Resolves owned index entries, or the ids this session does not own. */
export declare function lookupTaskEntries(session: RuntimeSession, taskIds: readonly string[]): {
readonly entries: BackgroundWorkflowToolRun[];
readonly kind: "found";
} | {
readonly kind: "unknown";
readonly unknown: string[];
};
/** One successful task-control result carrying full task views. */
export declare function createTaskViewsResult(action: RuntimeToolCallActionRequest, views: readonly TaskView[]): RuntimeActionResult;
/** One task-control error the model can act on. */
export declare function createTaskControlError(action: RuntimeToolCallActionRequest, message: string): RuntimeActionResult;
/** The ownership error for ids outside this session's task index. */
export declare function createUnknownTasksError(action: RuntimeToolCallActionRequest, unknown: readonly string[]): RuntimeActionResult;