@anthonyhaussman/opencode-agy-auth 1.2.13 → 1.2.14-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 CHANGED
@@ -14,6 +14,7 @@ An [OpenCode](https://opencode.ai/) authentication plugin that enables seamless
14
14
  - **Dynamic Model Retrieval**: Fetches available models based on user tier and current allocations.
15
15
  - **Quota Tracking**: Injects the `agy_quota` tool into OpenCode to check usage limits directly.
16
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.
17
18
 
18
19
  ## Installation
19
20
 
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
- declare const _default: {
4
- id: string;
5
- server: typeof AgyCLIOAuthPlugin;
6
- };
7
- export default _default;
5
+ export { setupOpenCodeV2, v2PluginDefinition };
6
+ export * from "./src/plugin/types";
7
+ declare const dualPlugin: DualOpenCodePlugin;
8
+ export default dualPlugin;