Documentation
¶
Index ¶
- Constants
- Variables
- type AgentEntry
- type ClientMessage
- type ConversationContent
- type ConversationImage
- type ConversationMessage
- type ConversationReasoning
- type ConversationResult
- type ConversationTool
- type DiffEntry
- type FileContent
- type FileEntry
- type Frame
- type GitBranch
- type GitBranches
- type GitCommit
- type GitCompare
- type GitFileStatus
- type GitStatus
- type ScheduleEntry
- type Server
- func (s *Server) Close()
- func (s *Server) Confirm(ctx context.Context, message string) (bool, error)
- func (s *Server) Elicit(ctx context.Context, req tool.ElicitRequest) (tool.ElicitResult, error)
- func (s *Server) LaunchTerminal(_ context.Context, launch dap.TerminalLaunch) (dap.TerminalProcess, error)
- func (s *Server) Run(ctx context.Context, port int) error
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type ServerOptions
- type SessionEntry
- type SkillEntry
- type TaskEntry
- type TerminalEntry
- type TurnQueueEntry
Constants ¶
View Source
const ( MsgSend = "send" MsgCancel = "cancel" MsgQueueRemove = "queue_remove" MsgQueueUpdate = "queue_update" MsgQueueResume = "queue_resume" MsgQueueClear = "queue_clear" MsgSync = "sync" MsgPromptResponse = "prompt_response" MsgFocus = "focus" )
View Source
const ( EvtSessionState = "session_state" EvtTextDelta = "text_delta" EvtReasoningDelta = "reasoning_delta" EvtToolCall = "tool_call" EvtToolResult = "tool_result" EvtToolProgress = "tool_progress" EvtStreamReset = "stream_reset" EvtStreamCommit = "stream_commit" EvtPhase = "phase" EvtUsage = "usage" EvtError = "error" EvtPrompt = "prompt" EvtPromptCancel = "prompt_cancel" EvtFilesChanged = "files_changed" EvtDiffsChanged = "diffs_changed" EvtGitIndexChanged = "git_index_changed" EvtSessionsChanged = "sessions_changed" EvtDiagnosticsChanged = "diagnostics_changed" EvtCapabilitiesChanged = "capabilities_changed" EvtAgentChanged = "agent_changed" EvtModelChanged = "model_changed" EvtTurnInput = "turn_input" EvtTurnQueue = "turn_queue" EvtTasksChanged = "tasks_changed" EvtTerminalsChanged = "terminals_changed" EvtSkillsChanged = "skills_changed" )
View Source
const ( PromptKindAsk = "ask" PromptKindConfirm = "confirm" PromptScopeSession = "session" )
View Source
const DefaultPort = 9000
DefaultPort is the preferred port used when no explicit port is requested.
Variables ¶
View Source
var StaticFS, _ = fs.Sub(staticFiles, "static")
Functions ¶
This section is empty.
Types ¶
type AgentEntry ¶ added in v0.7.0
type ClientMessage ¶
type ClientMessage struct {
Type string `json:"type"`
SessionID string `json:"session,omitempty"`
Text string `json:"text,omitempty"`
Files []string `json:"files,omitempty"`
Images []string `json:"images,omitempty"`
ID string `json:"id,omitempty"`
Intent string `json:"intent,omitempty"`
ClearQueue bool `json:"clear_queue,omitempty"`
Sessions []string `json:"sessions,omitempty"`
PromptID string `json:"prompt_id,omitempty"`
Action string `json:"action,omitempty"`
Scope string `json:"scope,omitempty"`
Content map[string]any `json:"content,omitempty"`
}
type ConversationContent ¶
type ConversationContent struct {
Text string `json:"text,omitempty"`
TextID string `json:"text_id,omitempty"`
Image *ConversationImage `json:"image,omitempty"`
Reasoning *ConversationReasoning `json:"reasoning,omitempty"`
ToolCall *ConversationTool `json:"tool_call,omitempty"`
ToolResult *ConversationResult `json:"tool_result,omitempty"`
}
type ConversationImage ¶ added in v0.6.9
type ConversationMessage ¶
type ConversationMessage struct {
Role string `json:"role"`
Content []ConversationContent `json:"content"`
}
type ConversationReasoning ¶
type ConversationResult ¶
type ConversationTool ¶
type FileContent ¶
type Frame ¶ added in v0.6.9
type Frame struct {
Type string `json:"type"`
Session string `json:"session,omitempty"`
Text string `json:"text,omitempty"`
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Kind string `json:"kind,omitempty"`
Args string `json:"args,omitempty"`
Locations []agent.ToolLocation `json:"locations,omitempty"`
Hint string `json:"hint,omitempty"`
Content string `json:"content,omitempty"`
Phase string `json:"phase,omitempty"`
Message string `json:"message,omitempty"`
State string `json:"state,omitempty"`
Intent string `json:"intent,omitempty"`
Part int `json:"part,omitempty"`
Position int `json:"position,omitempty"`
Paused bool `json:"paused,omitempty"`
CanSteer bool `json:"can_steer,omitempty"`
Partial bool `json:"partial,omitempty"`
Input *TurnQueueEntry `json:"input,omitempty"`
Queue []TurnQueueEntry `json:"queue,omitempty"`
PromptID string `json:"prompt_id,omitempty"`
PromptKind string `json:"prompt_kind,omitempty"`
PromptFields []tool.ElicitField `json:"prompt_fields,omitempty"`
InputTokens int64 `json:"input_tokens,omitempty"`
OutputTokens int64 `json:"output_tokens,omitempty"`
ReasoningTokens int64 `json:"reasoning_tokens,omitempty"`
CacheReadInputTokens int64 `json:"cached_tokens,omitempty"`
CacheCreationInputTokens int64 `json:"cache_write_tokens,omitempty"`
LastInputTokens int64 `json:"last_input_tokens,omitempty"`
ContextWindow int64 `json:"context_window,omitempty"`
Messages []ConversationMessage `json:"messages,omitempty"`
}
type GitBranches ¶ added in v0.12.6
type GitCompare ¶ added in v0.14.2
type GitFileStatus ¶ added in v0.12.6
type GitFileStatus struct {
Path string `json:"path"`
OriginalPath string `json:"original_path,omitempty"`
IndexStatus string `json:"index_status,omitempty"`
WorktreeStatus string `json:"worktree_status,omitempty"`
Staged bool `json:"staged"`
Changed bool `json:"changed"`
Conflict bool `json:"conflict,omitempty"`
}
type ScheduleEntry ¶ added in v0.12.19
type ScheduleEntry struct {
ID string `json:"id"`
Prompt string `json:"prompt"`
Schedule string `json:"schedule"`
Status string `json:"status"`
Script bool `json:"script,omitempty"`
NextRun string `json:"next_run,omitempty"`
NextIn string `json:"next_in,omitempty"`
LastRun string `json:"last_run,omitempty"`
Failures int `json:"failures,omitempty"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Elicit ¶ added in v0.10.1
func (s *Server) Elicit(ctx context.Context, req tool.ElicitRequest) (tool.ElicitResult, error)
func (*Server) LaunchTerminal ¶ added in v0.14.10
func (s *Server) LaunchTerminal(_ context.Context, launch dap.TerminalLaunch) (dap.TerminalProcess, error)
LaunchTerminal implements dap.TerminalLauncher with Wingman's existing PTY service. DAP owns the reviewed command; the browser terminal API remains limited to the user's configured shells.
type ServerOptions ¶ added in v0.6.9
type ServerOptions struct {
NoBrowser bool
// contains filtered or unexported fields
}
type SessionEntry ¶
type SkillEntry ¶
type TerminalEntry ¶ added in v0.11.9
type TurnQueueEntry ¶ added in v0.10.9
Source Files
¶
- browser.go
- debug_terminal.go
- editor_tab.go
- editor_transform.go
- file_preview.go
- handler_agent.go
- handler_chat.go
- handler_debug.go
- handler_diffs.go
- handler_files.go
- handler_git.go
- handler_git_ai.go
- handler_graph.go
- handler_graph_ai.go
- handler_lsp.go
- handler_lsp_edit.go
- handler_mode.go
- handler_prompt.go
- handler_schedules.go
- handler_search.go
- handler_skills.go
- handler_tasks.go
- handler_terminal.go
- http_json.go
- protocol.go
- server.go
- tool_display.go
Click to show internal directories.
Click to hide internal directories.