Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cmd provides the CLI commands for OpenCode.
|
Package cmd provides the CLI commands for OpenCode. |
|
schema
command
Package main generates the OpenCode configuration JSON schema.
|
Package main generates the OpenCode configuration JSON schema. |
|
internal
|
|
|
agent
Package agent provides the agent registry and configuration management.
|
Package agent provides the agent registry and configuration management. |
|
config
Package config manages application configuration from various sources.
|
Package config manages application configuration from various sources. |
|
config/mocks
Package mock_config is a generated GoMock package.
|
Package mock_config is a generated GoMock package. |
|
db
Package db provides database access for sessions, messages, and files.
|
Package db provides database access for sessions, messages, and files. |
|
diff
Package diff provides utilities for computing and rendering differences between files.
|
Package diff provides utilities for computing and rendering differences between files. |
|
fileutil
Package fileutil provides utility functions for file operations including reading, writing, searching, and managing files and directories.
|
Package fileutil provides utility functions for file operations including reading, writing, searching, and managing files and directories. |
|
flow
Package flow provides discovery, caching, and validation for YAML-defined flows.
|
Package flow provides discovery, caching, and validation for YAML-defined flows. |
|
llm/provider
Package provider implements LLM provider clients for various AI services.
|
Package provider implements LLM provider clients for various AI services. |
|
llm/provider/sse
Package sse provides SSE (Server-Sent Events) decoding for Kilo Gateway's non-standard streaming protocol with concatenated data:, reasoning, and fragmented tool_calls.
|
Package sse provides SSE (Server-Sent Events) decoding for Kilo Gateway's non-standard streaming protocol with concatenated data:, reasoning, and fragmented tool_calls. |
|
llm/tools
Package tools provides tool implementations for the LLM agent system.
|
Package tools provides tool implementations for the LLM agent system. |
|
llm/tools/mocks
Package mock_tools is a generated GoMock package.
|
Package mock_tools is a generated GoMock package. |
|
logging
Package logging provides structured logging functionality for the application.
|
Package logging provides structured logging functionality for the application. |
|
lsp
Generated code.
|
Generated code. |
|
lsp/mocks
Package mock_lsp is a generated GoMock package.
|
Package mock_lsp is a generated GoMock package. |
|
permission/mocks
Package mock_permission is a generated GoMock package.
|
Package mock_permission is a generated GoMock package. |
|
tui/components/agents
agent details component, shows information about the selected agent, such as name, description, model, tools, etc.
|
agent details component, shows information about the selected agent, such as name, description, model, tools, etc. |
|
tui/components/chat
Package chat provides UI components for rendering chat messages and managing the chat interface in the OpenCode TUI.
|
Package chat provides UI components for rendering chat messages and managing the chat interface in the OpenCode TUI. |
|
tui/components/dialog
Package dialog provides various dialog components for the OpenCode TUI, including dialogs for arguments, commands, completion, file picking, help, initialization, model selection, permissions, quitting, sessions, and theme switching.
|
Package dialog provides various dialog components for the OpenCode TUI, including dialogs for arguments, commands, completion, file picking, help, initialization, model selection, permissions, quitting, sessions, and theme switching. |
|
tui/components/diff
Package diff provides shared diff parsing and rendering utilities for the OpenCode TUI.
|
Package diff provides shared diff parsing and rendering utilities for the OpenCode TUI. |
|
tui/components/editor
Package editor provides UI components for code viewing and editing in the TUI.
|
Package editor provides UI components for code viewing and editing in the TUI. |
|
tui/components/input
Package input provides the Input Box component with focus state handling.
|
Package input provides the Input Box component with focus state handling. |
|
tui/components/logs
Package logs provides UI components for displaying application logs in the TUI.
|
Package logs provides UI components for displaying application logs in the TUI. |
|
tui/components/shared
Package shared provides common UI components for the OpenCode TUI, including modals, spinners, and icon constants.
|
Package shared provides common UI components for the OpenCode TUI, including modals, spinners, and icon constants. |
|
tui/components/util
Package utilComponents provides reusable UI components for the OpenCode TUI, including a simple list component for displaying selectable items.
|
Package utilComponents provides reusable UI components for the OpenCode TUI, including a simple list component for displaying selectable items. |
|
tui/image
Package image provides image processing utilities for the OpenCode TUI.
|
Package image provides image processing utilities for the OpenCode TUI. |
|
tui/layout
Package layout provides responsive layout calculations for the OpenCode TUI.
|
Package layout provides responsive layout calculations for the OpenCode TUI. |
|
tui/page
page chat.go: This file defines the ChatPage, which is the main interface for users to interact with chat sessions, send messages, and view message history.
|
page chat.go: This file defines the ChatPage, which is the main interface for users to interact with chat sessions, send messages, and view message history. |
|
tui/styles
Package styles provides styling utilities for the OpenCode TUI.
|
Package styles provides styling utilities for the OpenCode TUI. |
|
tui/util
Package util provides utility types and functions for the OpenCode TUI.
|
Package util provides utility types and functions for the OpenCode TUI. |
Click to show internal directories.
Click to hide internal directories.