diff options
| author | Paul Buetow <paul@buetow.org> | 2025-08-16 17:51:44 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-08-16 17:51:44 +0300 |
| commit | 1b01e35c34b953cbf51298f4650dc3215c382a4f (patch) | |
| tree | d110ee48f9baa382b1906e74f45d42a264351f4c | |
| parent | 77ff5d250ecc5cc8d4a493f4b98c5b82c6b84283 (diff) | |
feat(logging): add LLM stats (averages and per-minute)v0.0.2
| -rw-r--r-- | IDEAS.md | 14 | ||||
| -rw-r--r-- | internal/lsp/handlers.go | 3 | ||||
| -rw-r--r-- | internal/version.go | 2 |
3 files changed, 14 insertions, 5 deletions
@@ -64,5 +64,15 @@ command = "hexai" ## Prompting -* Write a new function: `;Implement a function counting the number of files in a directory;` -* In-place code add: `;Get number of files in a directory;` +* Write a new function: `` +* In-place code add: `` + +# Summary: +# - Refactor and modularize code, add unit tests +# - Address TODOs and improve diagnostics/code actions +# - Integrate LLM-based code/text completion, code generation, and inline chat +# - Support multiple LLMs (Ollama, OpenAI, Claude, Gemini) +# - Enable code block actions (commenting, refactoring) +# - Provide Helix LSP server integration and usage notes +# - Facilitate prompting for code generation and actions:w + diff --git a/internal/lsp/handlers.go b/internal/lsp/handlers.go index ae43b4c..d8c13a1 100644 --- a/internal/lsp/handlers.go +++ b/internal/lsp/handlers.go @@ -278,10 +278,9 @@ func inParamList(current string, cursor int) bool { return open >= 0 && cursor > open && (close == -1 || cursor <= close) } -// TODO: Not just be a Go code completion engine, make this flexible. func buildPrompts(inParams bool, p CompletionParams, above, current, below, funcCtx string) (string, string) { if inParams { - sys := "You are a terse Go code completion engine for function signatures. Return only the parameter list contents (without parentheses), no braces, no prose. Prefer idiomatic names and types." + sys := "You are a code completion engine for function signatures. Return only the parameter list contents (without parentheses), no braces, no prose. Prefer idiomatic names and types." user := fmt.Sprintf("Cursor is inside the function parameter list. Suggest only the parameter list (no parentheses).\nFunction line: %s\nCurrent line (cursor at %d): %s", funcCtx, p.Position.Character, current) return sys, user } diff --git a/internal/version.go b/internal/version.go index 673db85..e9c3a2b 100644 --- a/internal/version.go +++ b/internal/version.go @@ -1,3 +1,3 @@ package internal -const Version = "0.0.1" +const Version = "0.0.2" |
