@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
19 lines • 1.14 kB
TypeScript
import type { ExtensionAPI, ExtensionContext } from "../../types.ts";
import { type TodoAsk, type TodoCompletionTransition, type TodoItem, type TodoPhase } from "./state.ts";
export type TodoCommandAccessors = {
getCurrentPhases: () => TodoPhase[];
setCurrentPhases: (phases: TodoPhase[]) => void;
getCurrentAsk: () => TodoAsk | undefined;
syncWidget: (ctx: ExtensionContext, completedTasks?: readonly TodoCompletionTransition[]) => void;
};
/** Tokenizer honoring double-quoted strings and backslash escapes. */
export declare function tokenizeTodoArgs(input: string): string[];
/** Exact name first, then unique prefix, then unique substring (case-insensitive). */
export declare function findPhaseFuzzy(phases: TodoPhase[], query: string): TodoPhase | undefined;
/** Exact content first, then unique substring; ambiguity resolved toward open work. */
export declare function findTaskFuzzy(phases: TodoPhase[], query: string): {
task: TodoItem;
phase: TodoPhase;
} | undefined;
export declare function registerTodoCommand(pi: ExtensionAPI, accessors: TodoCommandAccessors): void;
//# sourceMappingURL=commands.d.ts.map