UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

19 lines • 1.46 kB
import type { SessionEntry } from "../../../session-manager.ts"; import { type TodoAsk, type TodoItem, type TodoPhase, type TodoState } from "./todo-types.ts"; type BranchEntry = SessionEntry; export declare function isTodoAsk(value: unknown): value is TodoAsk; export declare function cloneTask(task: TodoItem): TodoItem; export declare function clonePhases(phases: readonly TodoPhase[]): TodoPhase[]; export declare function isTodoItem(value: unknown): value is TodoItem; export declare function isTodoItemArray(value: unknown): value is TodoItem[]; export declare function isTodoPhase(value: unknown): value is TodoPhase; export declare function isTodoPhaseArray(value: unknown): value is TodoPhase[]; /** The list a `todo` (or legacy `todowrite`) tool result carries in its details; `undefined` for any other message. */ export declare function getTodoStateFromToolResult(message: unknown): TodoState | undefined; /** Latest todo list and its captured ask on the branch; the ask travels with the entry that wrote the list. */ export declare function getLatestTodoStateFromBranchEntries(entries: readonly BranchEntry[]): TodoState; export declare function getLatestPhasesFromBranchEntries(entries: readonly BranchEntry[]): TodoPhase[]; /** Compatibility reader for callers that still expect the old flat array. */ export declare function getLatestTodosFromBranchEntries(entries: BranchEntry[]): TodoItem[]; export {}; //# sourceMappingURL=todo-storage.d.ts.map