@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
26 lines • 1.43 kB
TypeScript
import { Type } from "typebox";
import type { ExtensionAPI, ExtensionContext } from "../../../types.ts";
import { type TodoAsk, type TodoCompletionTransition, type TodoPhase } from "../state.ts";
export declare const TODO_PARAMS_SCHEMA: Type.TObject<{
op: Type.TOptional<Type.TUnion<[Type.TLiteral<"init">, Type.TLiteral<"start">, Type.TLiteral<"done">, Type.TLiteral<"rm">, Type.TLiteral<"drop">, Type.TLiteral<"append">, Type.TLiteral<"view">]>>;
list: Type.TOptional<Type.TArray<Type.TObject<{
phase: Type.TString;
items: Type.TArray<Type.TString>;
}>>>;
task: Type.TOptional<Type.TString>;
phase: Type.TOptional<Type.TString>;
items: Type.TOptional<Type.TArray<Type.TString>>;
}>;
type TodoAccessors = {
getCurrentPhases: () => TodoPhase[];
setCurrentPhases: (phases: TodoPhase[]) => void;
getCurrentAsk: () => TodoAsk | undefined;
setCurrentAsk: (ask: TodoAsk | undefined) => void;
syncWidget: (ctx: ExtensionContext, completedTasks?: readonly TodoCompletionTransition[]) => void;
/** Records a call this extension instance executed, so its own result is not adopted again as a foreign list. */
noteExecuted?: (toolCallId: string) => void;
};
export declare function phaseRomanNumeral(oneBasedIndex: number): string;
export declare function registerTodoTool(pi: ExtensionAPI, accessors: TodoAccessors): void;
export {};
//# sourceMappingURL=todo.d.ts.map