@anthonyhaussman/opencode-agy-auth 1.1.19-alpha.0 → 1.1.19-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -13
- package/dist/index.js +1264 -1361
- package/dist/index.js.map +1 -1
- package/dist/src/constants.d.ts +2 -2
- package/package.json +1 -1
- package/dist/src/sdk/credentials.d.ts +0 -10
package/README.md
CHANGED
|
@@ -9,16 +9,6 @@ An [OpenCode](https://opencode.ai/) authentication plugin that enables seamless
|
|
|
9
9
|
- **Quota Tracking**: Injects the `agy_quota` tool into OpenCode to check usage limits directly.
|
|
10
10
|
- **Traffic Simulation**: Maintains background heartbeat with `agy` servers.
|
|
11
11
|
|
|
12
|
-
## Prerequisites
|
|
13
|
-
|
|
14
|
-
The plugin dynamically resolves Google OAuth credentials at runtime using one of the following methods:
|
|
15
|
-
|
|
16
|
-
1. **Installed `agy` / `antigravity` CLI binary (recommended)**:
|
|
17
|
-
- Ensure `agy` or `antigravity` is installed and available in your `PATH`.
|
|
18
|
-
- Alternatively, specify the binary path using the `AGY_BIN_PATH` environment variable.
|
|
19
|
-
2. **Environment variables (headless/CI or standalone environments)**:
|
|
20
|
-
- Set `AGY_CLIENT_ID` (or `GOOGLE_AGY_CLIENT_ID`) and `AGY_CLIENT_SECRET` (or `GOOGLE_AGY_CLIENT_SECRET`).
|
|
21
|
-
|
|
22
12
|
## Installation
|
|
23
13
|
|
|
24
14
|
Install the plugin from npm (or directly using local file configurations if developing):
|
|
@@ -52,9 +42,6 @@ You can switch your active OpenCode provider to `agy` or let the plugin inject a
|
|
|
52
42
|
|
|
53
43
|
If you are running OpenCode in environments with specific requirements for Antigravity, you can use the following environment variables:
|
|
54
44
|
|
|
55
|
-
- `AGY_BIN_PATH`: Explicit path to the `agy` / `antigravity` CLI executable.
|
|
56
|
-
- `AGY_CLIENT_ID` / `GOOGLE_AGY_CLIENT_ID`: Override or explicitly provide the Google OAuth Client ID.
|
|
57
|
-
- `AGY_CLIENT_SECRET` / `GOOGLE_AGY_CLIENT_SECRET`: Override or explicitly provide the Google OAuth Client Secret.
|
|
58
45
|
- `OPENCODE_AGY_PROJECT_ID`: Specify your Google Cloud Project ID manually.
|
|
59
46
|
- `OPENCODE_AGY_AUTH_PROXY`: Define a proxy if accessing authentication endpoints behind a corporate firewall.
|
|
60
47
|
- `OPENCODE_AGY_ENDPOINT`: Override the default internal `daily-cloudcode-pa.googleapis.com` API endpoint.
|