Documentation
¶
Overview ¶
Package chat implements the AI-assisted chat command.
This package provides the `ksail chat` command, which starts an interactive AI chat session powered by GitHub Copilot. It supports both TUI and non-TUI modes, with tool permission enforcement and plan/agent mode switching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChatCmd ¶
NewChatCmd creates and returns the chat command.
func WrapToolsWithPermissionAndModeMetadata ¶
func WrapToolsWithPermissionAndModeMetadata( tools []copilot.Tool, eventChan chan tea.Msg, agentModeRef *chatui.AgentModeRef, toolMetadata map[string]toolgen.ToolDefinition, ) []copilot.Tool
WrapToolsWithPermissionAndModeMetadata wraps ALL tools with mode enforcement and permission prompts. In plan mode, ALL tool execution is blocked (model can only describe what it would do). In agent mode, edit tools require permission (based on RequiresPermission annotation), while read-only tools are auto-approved.
Types ¶
This section is empty.