Provides API endpoints related to project
Summary
Types
@type t() :: %OpenCode.Generated.Project{ commands: OpenCode.Generated.ProjectCommands.t() | nil, icon: OpenCode.Generated.ProjectIcon.t() | nil, id: String.t(), name: String.t() | nil, sandboxes: [String.t()], time: OpenCode.Generated.ProjectTime.t(), vcs: String.t() | nil, worktree: String.t() }
Functions
Get current project
Retrieve the currently active project that OpenCode is working with.
Options
directoryworkspace
Initialize git repository
Create a git repository for the current project and return the refreshed project info.
Options
directoryworkspace
List all projects
Get a list of projects that have been opened with OpenCode.
Options
directoryworkspace
@spec project_update(projectID :: String.t(), body :: map(), opts :: keyword()) :: {:ok, t()} | {:error, OpenCode.Generated.BadRequestError.t() | OpenCode.Generated.NotFoundError.t()}
Update project
Update project properties such as name, icon, and commands.
Options
directoryworkspace
Request Body
Content Types: application/json