🚀 Add Todo Write Tool for Task Management and Progress Tracking (#478)

This commit is contained in:
tanzhenxin
2025-08-28 20:32:21 +08:00
committed by GitHub
parent c1498668b6
commit 1610c1586e
13 changed files with 1901 additions and 103 deletions

View File

@@ -491,7 +491,7 @@ export function hasCycleInSchema(schema: object): boolean {
return traverse(schema, new Set<string>(), new Set<string>());
}
export type ToolResultDisplay = string | FileDiff;
export type ToolResultDisplay = string | FileDiff | TodoResultDisplay;
export interface FileDiff {
fileDiff: string;
@@ -508,6 +508,15 @@ export interface DiffStat {
user_removed_lines: number;
}
export interface TodoResultDisplay {
type: 'todo_list';
todos: Array<{
id: string;
content: string;
status: 'pending' | 'in_progress' | 'completed';
}>;
}
export interface ToolEditConfirmationDetails {
type: 'edit';
title: string;