Files
AX-Copilot-Codex/tmp_hook_check.cs

10 lines
580 B
C#

using System;
using AxCopilot.Services;
using AxCopilot.Services.Agent;
var service = new TaskRunService();
service.ApplyAgentEvent(new AgentEvent { RunId = "run-hook", Type = AgentEventType.HookResult, ToolName = "file_write", Summary = "[Hook:precheck] ok", Success = true });
Console.WriteLine($"active={service.ActiveTasks.Count}, recent={service.RecentTasks.Count}");
foreach (var t in service.ActiveTasks) Console.WriteLine($"A {t.Id} {t.Kind} {t.Status} {t.Summary}");
foreach (var t in service.RecentTasks) Console.WriteLine($"R {t.Id} {t.Kind} {t.Status} {t.Summary}");