@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 1.17 kB
TypeScript
import type { SessionEntry } from "../../../session-manager.ts";
import type { Goal } from "./types.ts";
/**
* Contents of every non-terminal (pending / in_progress) task in the thread's
* latest todo list. The goal builtin refuses to mark a goal complete while any
* of these remain: an open todo task is remaining work by definition.
*/
export declare function openTodoTaskContents(entries: SessionEntry[]): string[];
export declare function openTodoCompletionError(openTasks: readonly string[]): string;
/**
* True when a successful todo tool result came from an add operation (init /
* append) that left at least one open (pending / in_progress) task behind.
*/
export declare function todoResultAddsOpenTasks(details: unknown): boolean;
/**
* System reminder injected into a todo tool result when new open tasks were
* added while the thread has no goal, or only a stale (already complete) one.
* The mirror of the completion gate above: newly tracked work should be
* anchored to a live goal when it serves a durable objective.
*/
export declare function staleGoalTodoReminder(goal: Goal | null): string | undefined;
//# sourceMappingURL=todo-gate.d.ts.map