Expand description
Provider for OpenCode Go via the opencode.ai web dashboard.
Manual setup: there is no public usage API, so this provider authenticates
with a browser session Cookie header configured by the user and scrapes the
workspace dashboard hydration payload. One cookie can cover multiple
workspaces. See docs/providers/opencode-go.md for the full extraction spec.
Structs§
- Open
Code GoProvider - Workspace
Ref - A workspace reference: id plus an optional human-readable name.
Functions§
- add_
workspace - Adds a workspace (id or dashboard URL, with an optional name) to a list of
config entries. Errors when the reference has no
wrk_id. Adding an existing id only succeeds when a new/changed name is provided; unchanged duplicates are rejected. - normalize_
workspace_ id - Normalizes a workspace reference: bare
wrk_...id, a dashboard URL containing/workspace/<id>/, or any string embedding awrk_id. - parse_
workspace_ entry - Parses a config entry:
wrk_id,wrk_id=Name, or a dashboard URL (optionally with=Name). - remove_
workspace - Removes a workspace (matched by id) from a list of config entries.