summaryrefslogtreecommitdiff
path: root/internal/hexaiaction/types.go
blob: eb1f3f41075efaf23ef8afc3fe4c3235cabe113f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Package hexaiaction provides core types and constants for hexai-tmux-action.
package hexaiaction

type ActionKind string

const (
	ActionSkip        ActionKind = "skip"
	ActionRewrite     ActionKind = "rewrite"
	ActionDiagnostics ActionKind = "diagnostics"
	ActionDocument    ActionKind = "document"
	ActionGoTest      ActionKind = "gotest"
	ActionSimplify    ActionKind = "simplify"
	ActionFixTypos    ActionKind = "fix_typos"
	// ActionCustom represents a configured custom action from the submenu.
	ActionCustom ActionKind = "custom"
	// ActionCustomPrompt is the free-form prompt opened in the editor (hotkey 'p').
	ActionCustomPrompt ActionKind = "custom_prompt"
)

// InputParts represents parsed stdin input for actions.
type InputParts struct {
	Selection   string
	Diagnostics []string
}