Provides API endpoints related to instance
Summary
Functions
List agents
List skills
List commands
Get formatter status
Dispose instance
Get LSP status
Get paths
Get VCS diff
Get VCS info
Types
Functions
@spec app_agents(opts :: keyword()) :: {:ok, [OpenCode.Generated.Agent.t()]} | :error
List agents
Get a list of all available AI agents in the OpenCode system.
Options
directoryworkspace
@spec app_skills(opts :: keyword()) :: {:ok, [app_skills_200_json_resp()]} | :error
List skills
Get a list of all available skills in the OpenCode system.
Options
directoryworkspace
@spec command_list(opts :: keyword()) :: {:ok, [OpenCode.Generated.Command.t()]} | :error
List commands
Get a list of all available commands in the OpenCode system.
Options
directoryworkspace
@spec formatter_status(opts :: keyword()) :: {:ok, [OpenCode.Generated.FormatterStatus.t()]} | :error
Get formatter status
Get formatter status
Options
directoryworkspace
Dispose instance
Clean up and dispose the current OpenCode instance, releasing all resources.
Options
directoryworkspace
@spec lsp_status(opts :: keyword()) :: {:ok, [OpenCode.Generated.LSPStatus.t()]} | :error
Get LSP status
Get LSP server status
Options
directoryworkspace
@spec path_get(opts :: keyword()) :: {:ok, OpenCode.Generated.Path.t()} | :error
Get paths
Retrieve the current working directory and related path information for the OpenCode instance.
Options
directoryworkspace
@spec vcs_diff(opts :: keyword()) :: {:ok, [OpenCode.Generated.VcsFileDiff.t()]} | :error
Get VCS diff
Retrieve the current git diff for the working tree or against the default branch.
Options
directoryworkspacemode
@spec vcs_get(opts :: keyword()) :: {:ok, OpenCode.Generated.VcsInfo.t()} | :error
Get VCS info
Retrieve version control system (VCS) information for the current project, such as git branch.
Options
directoryworkspace