From 454451105ad3522d2ac3d22136eedee4a4d034af Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 17 Aug 2025 18:52:51 +0300 Subject: cli+lsp: refactor main packages into internal runners; add tests - Move CLI logic to internal/hexaicli with Run/RunWithClient - Move LSP logic to internal/hexailsp with Run/RunWithFactory - Extract helpers; keep behavior identical for both binaries - Add unit tests for hexaicli (input parsing, messages, streaming) and hexailsp (factory wiring, client creation, logging settings) - Add top-of-file summaries and 'Not yet reviewed by a human' comments to all Go files - Update README with internal package docs --- internal/llm/copilot.go | 2 ++ internal/llm/ollama.go | 2 ++ internal/llm/openai.go | 2 ++ internal/llm/provider.go | 2 ++ 4 files changed, 8 insertions(+) (limited to 'internal/llm') diff --git a/internal/llm/copilot.go b/internal/llm/copilot.go index a31022f..1e36bb7 100644 --- a/internal/llm/copilot.go +++ b/internal/llm/copilot.go @@ -1,3 +1,5 @@ +// Summary: GitHub Copilot client implementation for chat completions using the Copilot API. +// Not yet reviewed by a human package llm import ( diff --git a/internal/llm/ollama.go b/internal/llm/ollama.go index ffee354..774eaf1 100644 --- a/internal/llm/ollama.go +++ b/internal/llm/ollama.go @@ -1,3 +1,5 @@ +// Summary: Ollama client against a local server; supports chat responses and streaming via /api/chat. +// Not yet reviewed by a human package llm import ( diff --git a/internal/llm/openai.go b/internal/llm/openai.go index 080d4e9..288622f 100644 --- a/internal/llm/openai.go +++ b/internal/llm/openai.go @@ -1,3 +1,5 @@ +// Summary: OpenAI client implementation for chat completions with optional streaming and detailed logging. +// Not yet reviewed by a human package llm import ( diff --git a/internal/llm/provider.go b/internal/llm/provider.go index 3e3023e..09e97e6 100644 --- a/internal/llm/provider.go +++ b/internal/llm/provider.go @@ -1,3 +1,5 @@ +// Summary: LLM provider interfaces, request options, configuration, and factory to build a client from config. +// Not yet reviewed by a human package llm import ( -- cgit v1.2.3