opencode/experimental

Search:
Group by:

Types

GetExperimentalConsoleOrgsResponse = object
Switchable Console orgs

Procs

proc deleteExperimentalWorktree(client: OpencodeClient;
                                directory: string = default(string);
                                workspace: string = default(string);
                                body: types.WorktreeRemoveInput): Future[bool] {.
    ...stackTrace: false, raises: [Exception, ValueError, KeyError,
                                HttpRequestError, LibraryError, SslError,
                                OSError, IOError, ProtocolError,
                                OpenParserJsonError, OpencodeClientError],
    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Remove a git worktree and delete its branch.
proc getExperimentalCapabilities(client: OpencodeClient;
                                 directory: string = default(string);
                                 workspace: string = default(string)): Future[
    ExperimentalCapabilities] {....stackTrace: false, raises: [Exception,
    ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError,
    IOError, ProtocolError, OpenParserJsonError, OpencodeClientError],
                                tags: [RootEffect, ReadIOEffect, TimeEffect],
                                forbids: [].}
Get experimental features enabled on the OpenCode server.
proc getExperimentalConsole(client: OpencodeClient;
                            directory: string = default(string);
                            workspace: string = default(string)): Future[
    ConsoleState] {....stackTrace: false, raises: [Exception, ValueError, KeyError,
    HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError,
    OpenParserJsonError, OpencodeClientError],
                    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Get the active Console org name and the set of provider IDs managed by that Console org.
proc getExperimentalConsoleOrgs(client: OpencodeClient;
                                directory: string = default(string);
                                workspace: string = default(string)): Future[
    GetExperimentalConsoleOrgsResponse] {....stackTrace: false, raises: [Exception,
    ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError,
    IOError, ProtocolError, OpenParserJsonError, OpencodeClientError],
    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Get the available Console orgs across logged-in accounts, including the current active org.
proc getExperimentalResource(client: OpencodeClient;
                             directory: string = default(string);
                             workspace: string = default(string)): Future[
    JsonNode] {....stackTrace: false, raises: [Exception, ValueError, KeyError,
    HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError,
    OpenParserJsonError, OpencodeClientError],
                tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Get all available MCP resources from connected servers. Optionally filter by name.
proc getExperimentalSession(client: OpencodeClient;
                            directory: string = default(string);
                            workspace: string = default(string);
                            roots: JsonNode = default(JsonNode);
                            start: float64 = default(float64);
                            cursor: float64 = default(float64);
                            search: string = default(string);
                            limit: float64 = default(float64);
                            archived: JsonNode = default(JsonNode)): Future[
    seq[types.GlobalSession]] {....stackTrace: false, raises: [Exception,
    ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError,
    IOError, ProtocolError, OpenParserJsonError, OpencodeClientError],
                                tags: [RootEffect, ReadIOEffect, TimeEffect],
                                forbids: [].}
Get a list of all OpenCode sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
proc getExperimentalTool(client: OpencodeClient;
                         directory: string = default(string);
                         workspace: string = default(string); provider: string;
                         model: string): Future[ToolList] {....stackTrace: false, raises: [
    Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError,
    OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError],
    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
proc getExperimentalToolIds(client: OpencodeClient;
                            directory: string = default(string);
                            workspace: string = default(string)): Future[ToolIDs] {.
    ...stackTrace: false, raises: [Exception, ValueError, KeyError,
                                HttpRequestError, LibraryError, SslError,
                                OSError, IOError, ProtocolError,
                                OpenParserJsonError, OpencodeClientError],
    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
proc getExperimentalWorktree(client: OpencodeClient;
                             directory: string = default(string);
                             workspace: string = default(string)): Future[
    seq[string]] {....stackTrace: false, raises: [Exception, ValueError, KeyError,
    HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError,
    OpenParserJsonError, OpencodeClientError],
                   tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
List all sandbox worktrees for the current project.
proc postExperimentalConsoleSwitch(client: OpencodeClient;
                                   directory: string = default(string);
                                   workspace: string = default(string);
                                   body: PostExperimentalConsoleSwitchRequest): Future[
    bool] {....stackTrace: false, raises: [Exception, ValueError, KeyError,
                                        HttpRequestError, LibraryError,
                                        SslError, OSError, IOError,
                                        ProtocolError, OpenParserJsonError,
                                        OpencodeClientError],
            tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Persist a new active Console account/org selection for the current local OpenCode state.
proc postExperimentalSessionSessionIDBackground(client: OpencodeClient;
    sessionID: string; directory: string = default(string);
    workspace: string = default(string)): Future[bool] {....stackTrace: false, raises: [
    Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError,
    OSError, IOError, ProtocolError, OpenParserJsonError, OpencodeClientError],
    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Detach any synchronous subagents currently blocking the session and continue them in the background.
proc postExperimentalWorktree(client: OpencodeClient;
                              directory: string = default(string);
                              workspace: string = default(string);
                              body: types.WorktreeCreateInput): Future[Worktree] {.
    ...stackTrace: false, raises: [Exception, ValueError, KeyError,
                                HttpRequestError, LibraryError, SslError,
                                OSError, IOError, ProtocolError,
                                OpenParserJsonError, OpencodeClientError],
    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Create a new git worktree for the current project and run any configured startup scripts.
proc postExperimentalWorktreeReset(client: OpencodeClient;
                                   directory: string = default(string);
                                   workspace: string = default(string);
                                   body: types.WorktreeResetInput): Future[bool] {.
    ...stackTrace: false, raises: [Exception, ValueError, KeyError,
                                HttpRequestError, LibraryError, SslError,
                                OSError, IOError, ProtocolError,
                                OpenParserJsonError, OpencodeClientError],
    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Reset a worktree branch to the primary default branch.