Pre-flight checks
OpenCode version reviewed
1.14.29
Problem statement
Currently to setup Opencode Go quota information in this plugin, we need to add certain env values:
export OPENCODE_GO_WORKSPACE_ID="your-workspace-id"
export OPENCODE_GO_AUTH_COOKIE="your-auth-cookie"
Proposed change
Is there a way to query the local DB and configurations, without these values. The Openusage application doesn't require this, yet it shows the up to date information about the Opencode Go usage, I found the source file which queries this information: https://github.com/robinebers/openusage/blob/main/plugins/opencode-go/plugin.js
...
const AUTH_PATH = "~/.local/share/opencode/auth.json";
const DB_PATH = "~/.local/share/opencode/opencode.db";
...
Looks like it queries the information automatically.
Is there an option for this plugin to do the same?
Alternatives considered
No response
Acceptance criteria
No response
Pre-flight checks
OpenCode version reviewed
1.14.29
Problem statement
Currently to setup Opencode Go quota information in this plugin, we need to add certain env values:
Proposed change
Is there a way to query the local DB and configurations, without these values. The Openusage application doesn't require this, yet it shows the up to date information about the Opencode Go usage, I found the source file which queries this information: https://github.com/robinebers/openusage/blob/main/plugins/opencode-go/plugin.js
Looks like it queries the information automatically.
Is there an option for this plugin to do the same?
Alternatives considered
No response
Acceptance criteria
No response