@anthonyhaussman/opencode-agy-auth 1.2.12 → 1.2.13-alpha.0
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 +11 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.js +911 -67
- package/dist/index.js.map +1 -1
- package/dist/src/constants.d.ts +2 -0
- package/dist/src/plugin/oauth-authorize.d.ts +9 -0
- package/dist/src/plugin/types.d.ts +35 -0
- package/dist/src/plugin/v2.d.ts +22 -0
- package/dist/src/plugin.d.ts +23 -0
- package/dist/src/sdk/agy-cli-version.d.ts +1 -1
- package/package.json +12 -1
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# OpenCode Antigravity CLI Auth Plugin
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@anthonyhaussman/opencode-agy-auth)
|
|
4
|
+
[](https://www.npmjs.com/package/@anthonyhaussman/opencode-agy-auth)
|
|
5
|
+
[](https://github.com/anthonyhaussman/opencode-agy-auth/actions/workflows/ci.yml)
|
|
6
|
+
[](https://github.com/anthonyhaussman/opencode-agy-auth/blob/main/LICENSE)
|
|
7
|
+
[](https://github.com/anthonyhaussman/opencode-agy-auth)
|
|
8
|
+
|
|
3
9
|
An [OpenCode](https://opencode.ai/) authentication plugin that enables seamless interaction with the Antigravity CLI (`agy`) by hooking into its authentication, quota retrieval, and dynamic model fetching layers.
|
|
4
10
|
|
|
5
11
|
## Features
|
|
@@ -8,6 +14,7 @@ An [OpenCode](https://opencode.ai/) authentication plugin that enables seamless
|
|
|
8
14
|
- **Dynamic Model Retrieval**: Fetches available models based on user tier and current allocations.
|
|
9
15
|
- **Quota Tracking**: Injects the `agy_quota` tool into OpenCode to check usage limits directly.
|
|
10
16
|
- **Traffic Simulation**: Maintains background heartbeat with `agy` servers.
|
|
17
|
+
- **Dual OpenCode Compatibility**: Fully supports both OpenCode v1 (>= 1.18.29) and OpenCode v2 seamlessly without breaking changes.
|
|
11
18
|
|
|
12
19
|
## Installation
|
|
13
20
|
|
|
@@ -160,3 +167,7 @@ The `@alpha` channel provides dual compatibility with both OpenCode v1 and [Open
|
|
|
160
167
|
|
|
161
168
|
> [!WARNING]
|
|
162
169
|
> **Instability Warning**: The `@alpha` release contains experimental features, active development builds, and potential breaking protocol changes. It may be unstable, break unexpectedly, or cause disruptions in session authentication and model requests. Use only for testing and development. For day-to-day work, use the stable release.
|
|
170
|
+
|
|
171
|
+
## Star History & Support
|
|
172
|
+
|
|
173
|
+
If this plugin saved you time or made using Antigravity models in OpenCode smoother, consider giving the repository a star on [GitHub](https://github.com/anthonyhaussman/opencode-agy-auth) - it helps others discover the project.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AgyCLIOAuthPlugin, GoogleOAuthPlugin } from "./src/plugin";
|
|
2
|
+
import { setupOpenCodeV2, v2PluginDefinition } from "./src/plugin/v2";
|
|
3
|
+
import type { DualOpenCodePlugin } from "./src/plugin/types";
|
|
2
4
|
export { AgyCLIOAuthPlugin, GoogleOAuthPlugin };
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default _default;
|
|
5
|
+
export { setupOpenCodeV2, v2PluginDefinition };
|
|
6
|
+
export * from "./src/plugin/types";
|
|
7
|
+
declare const dualPlugin: DualOpenCodePlugin;
|
|
8
|
+
export default dualPlugin;
|