Documentation
¶
Index ¶
Constants ¶
View Source
const ToolName = "todo"
ToolName is the canonical name used by the planning tool.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ParseResult ¶
type ParseResult struct {
Items []events.RuntimeTodoItem
Mode Mode
Merge bool
}
ParseResult 是运行时待办更新的标准化解析结果。
type Reporter ¶
type Reporter interface {
// Snapshot 替换当前待办列表并发出快照事件。
Snapshot(ctx context.Context, items []events.RuntimeTodoItem) error
// Update 更新当前待办列表并发出更新事件。
Update(ctx context.Context, items []events.RuntimeTodoItem, merge bool) error
// List 返回当前待办列表的副本。
List() []events.RuntimeTodoItem
}
Click to show internal directories.
Click to hide internal directories.