From 8dbec6969ceff32662c41bd267210c34b90d8810 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 19 Jun 2026 08:36:13 +0300 Subject: Refactor hexaiaction handlers for nk0 --- internal/hexaiaction/action_diagnostics.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 internal/hexaiaction/action_diagnostics.go (limited to 'internal/hexaiaction/action_diagnostics.go') diff --git a/internal/hexaiaction/action_diagnostics.go b/internal/hexaiaction/action_diagnostics.go new file mode 100644 index 0000000..bb2c412 --- /dev/null +++ b/internal/hexaiaction/action_diagnostics.go @@ -0,0 +1,17 @@ +package hexaiaction + +import "context" + +func init() { + registerActionHandler(ActionDiagnostics, actionHandlerFunc(handleDiagnosticsActionRequest)) +} + +func handleDiagnosticsActionRequest(ctx context.Context, req actionRequest) (string, error) { + return handleDiagnosticsAction(ctx, req.parts, req.cfg, req.client) +} + +func handleDiagnosticsAction(ctx context.Context, parts InputParts, cfg actionConfig, client chatDoer) (string, error) { + return runWithTimeout(ctx, timeout20s, func(cctx context.Context) (string, error) { + return runDiagnostics(cctx, cfg, client, parts.Diagnostics, parts.Selection) + }) +} -- cgit v1.2.3