Provides API endpoints related to instance
Summary
Functions
List agents
List skills
List commands
Get formatter status
Dispose instance
Get LSP status
Get paths
Apply VCS patch
Get VCS diff
Get raw VCS diff
Get VCS info
Get VCS status
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_apply(body :: map(), opts :: keyword()) :: {:ok, vcs_apply_200_json_resp()} | {:error, OpenCode.Generated.VcsApplyError.t()}
Apply VCS patch
Apply a raw patch to the current working tree.
Options
directoryworkspace
Request Body
Content Types: application/json
@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
Get raw VCS diff
Retrieve a raw patch for current uncommitted changes.
Options
directoryworkspace
@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
@spec vcs_status(opts :: keyword()) :: {:ok, [OpenCode.Generated.VcsFileStatus.t()]} | :error
Get VCS status
Retrieve changed files in the current working tree without patches.
Options
directoryworkspace