summaryrefslogtreecommitdiff
path: root/internal/hexaiaction/prompts.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-25 08:49:02 +0300
committerPaul Buetow <paul@buetow.org>2026-04-25 08:49:02 +0300
commite33cd60277bc717ad7a8c73cf01c7bedad0d1837 (patch)
treecf3e72b6e16223a207883c7049ae200ac57aee2d /internal/hexaiaction/prompts.go
parentcaa7876ac8bdb5cc23e12db4d4cb65cf86861151 (diff)
Release v0.35.0: fix-typos action and tmux popup for hexai-tmux-actionv0.35.0
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/hexaiaction/prompts.go')
-rw-r--r--internal/hexaiaction/prompts.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/hexaiaction/prompts.go b/internal/hexaiaction/prompts.go
index 03a9441..4b2d8be 100644
--- a/internal/hexaiaction/prompts.go
+++ b/internal/hexaiaction/prompts.go
@@ -82,6 +82,13 @@ func runSimplify(ctx context.Context, cfg actionConfig, client chatDoer, selecti
return runOnce(ctx, client, sys, user, reqOptsFrom(cfg))
}
+func runFixTypos(ctx context.Context, cfg actionConfig, client chatDoer, selection string) (string, error) {
+ prompts := cfg.PromptSection()
+ sys := prompts.PromptCodeActionFixTyposSystem
+ user := Render(prompts.PromptCodeActionFixTyposUser, map[string]string{"selection": selection})
+ return runOnce(ctx, client, sys, user, reqOptsFrom(cfg))
+}
+
func runGoTest(ctx context.Context, cfg actionConfig, client chatDoer, funcCode string) (string, error) {
prompts := cfg.PromptSection()
sys := prompts.PromptCodeActionGoTestSystem