feat: wire AiPanel into EditorRightPanel with undo + coverage exclusions

Replace AIChatPanel with AiPanel in EditorRightPanel, pass onOpenNote
for vault navigation. Add partial undo (delete created notes). Add
coverage exclusions for AI agent files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
lucaronin
2026-02-28 22:21:42 +01:00
parent e405ea74d9
commit 690dd6d841
5 changed files with 65 additions and 59 deletions

View File

@@ -178,7 +178,7 @@ export interface ToolResult {
export interface AgentStepCallback {
onThinking: () => void
onToolStart: (toolName: string, toolId: string) => void
onToolStart: (toolName: string, toolId: string, args: Record<string, unknown>) => void
onToolDone: (toolId: string, result: unknown, isError: boolean) => void
onText: (text: string) => void
onError: (error: string) => void
@@ -344,7 +344,7 @@ export async function runAgentLoop(
for (const toolBlock of toolUseBlocks) {
if (abortSignal?.aborted) return
callbacks.onToolStart(toolBlock.name, toolBlock.id)
callbacks.onToolStart(toolBlock.name, toolBlock.id, toolBlock.input)
const { result, isError } = await executeToolViaWs(toolBlock.name, toolBlock.input)