@anthonyhaussman/opencode-agy-auth 1.1.1 → 1.1.2-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/dist/index.d.ts +4 -18
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/src/constants.d.ts +7 -0
- package/dist/src/fetch.d.ts +1 -0
- package/dist/src/plugin/auth.d.ts +14 -0
- package/dist/src/plugin/cache.d.ts +28 -0
- package/dist/src/plugin/notify.d.ts +9 -0
- package/dist/src/plugin/oauth-authorize.d.ts +15 -0
- package/dist/src/plugin/project/context.d.ts +13 -0
- package/dist/src/plugin/project/index.d.ts +2 -0
- package/dist/src/plugin/project/types.d.ts +84 -0
- package/dist/src/plugin/project/utils.d.ts +35 -0
- package/dist/src/plugin/provider.d.ts +12 -0
- package/dist/src/plugin/quota-summary.d.ts +14 -0
- package/dist/src/plugin/quota-utils.d.ts +5 -0
- package/dist/src/plugin/quota.d.ts +14 -0
- package/dist/src/plugin/token.d.ts +2 -0
- package/dist/src/plugin/traffic.d.ts +47 -0
- package/dist/src/plugin/types.d.ts +31 -0
- package/dist/src/plugin.d.ts +6 -0
- package/dist/src/sdk/activity-request-id.d.ts +5 -0
- package/dist/src/sdk/agy-cli-version.d.ts +1 -0
- package/dist/src/sdk/cache/signature-cache.d.ts +130 -0
- package/dist/src/sdk/chat-logger.d.ts +8 -0
- package/dist/src/sdk/fetch_models.d.ts +47 -0
- package/dist/src/sdk/fetch_project.d.ts +9 -0
- package/dist/src/sdk/fetch_quota.d.ts +9 -0
- package/dist/src/sdk/oauth.d.ts +26 -0
- package/dist/src/sdk/request/identifiers.d.ts +16 -0
- package/dist/src/sdk/request/index.d.ts +11 -0
- package/dist/src/sdk/request/openai.d.ts +16 -0
- package/dist/src/sdk/request/prepare.d.ts +14 -0
- package/dist/src/sdk/request/response.d.ts +5 -0
- package/dist/src/sdk/request/shared.d.ts +20 -0
- package/dist/src/sdk/request/thinking.d.ts +129 -0
- package/dist/src/sdk/request/turn-state-tracker.d.ts +21 -0
- package/dist/src/sdk/request-helpers/errors.d.ts +9 -0
- package/dist/src/sdk/request-helpers/index.d.ts +4 -0
- package/dist/src/sdk/request-helpers/parsing.d.ts +9 -0
- package/dist/src/sdk/request-helpers/thinking.d.ts +5 -0
- package/dist/src/sdk/request-helpers/types.d.ts +65 -0
- package/dist/src/sdk/retry/cooldown-store.d.ts +14 -0
- package/dist/src/sdk/retry/helpers.d.ts +19 -0
- package/dist/src/sdk/retry/index.d.ts +9 -0
- package/dist/src/sdk/retry/quota.d.ts +28 -0
- package/dist/src/sdk/terminal-hyperlink.d.ts +3 -0
- package/dist/src/sdk/user-agent.d.ts +5 -0
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type PluginClient = OpencodeClient;
|
|
5
|
-
interface PluginContext {
|
|
6
|
-
client: PluginClient;
|
|
7
|
-
}
|
|
8
|
-
type PluginResult = Hooks;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Registers the Agy OAuth provider for Opencode.
|
|
12
|
-
*/
|
|
13
|
-
declare const AgyCLIOAuthPlugin: ({ client }: PluginContext) => Promise<PluginResult>;
|
|
14
|
-
declare const GoogleOAuthPlugin: ({ client }: PluginContext) => Promise<PluginResult>;
|
|
15
|
-
|
|
1
|
+
import { AgyCLIOAuthPlugin, GoogleOAuthPlugin } from "./src/plugin";
|
|
2
|
+
export { AgyCLIOAuthPlugin, GoogleOAuthPlugin };
|
|
16
3
|
declare const _default: {
|
|
17
4
|
id: string;
|
|
18
|
-
server:
|
|
5
|
+
server: typeof AgyCLIOAuthPlugin;
|
|
19
6
|
};
|
|
20
|
-
|
|
21
|
-
export { AgyCLIOAuthPlugin, GoogleOAuthPlugin, _default as default };
|
|
7
|
+
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -170,7 +170,7 @@ function createAgyActivityRequestId() {
|
|
|
170
170
|
import os from "os";
|
|
171
171
|
|
|
172
172
|
// src/sdk/agy-cli-version.ts
|
|
173
|
-
var AGY_CLI_VERSION = "1.1.
|
|
173
|
+
var AGY_CLI_VERSION = "1.1.2";
|
|
174
174
|
|
|
175
175
|
// src/sdk/user-agent.ts
|
|
176
176
|
var cachedUserAgent = null;
|
|
@@ -1390,7 +1390,7 @@ function createOAuthAuthorizeMethod(options) {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
return {
|
|
1392
1392
|
url: authorization.url,
|
|
1393
|
-
instructions: "Please complete Google account authorization in your browser. After authorization, the page will redirect to https://antigravity.google/oauth-callback?code=... . Please copy the full redirect URL from your browser address bar, or just the code parameter value, and paste it into the input box below:",
|
|
1393
|
+
instructions: isHeadless ? "Headless/SSH environment detected. Browser auto-open skipped. Please manually open the following URL in a browser on your local machine to authorize:\n\n" + authorization.url + "\n\nAfter authorization, the page will redirect to https://antigravity.google/oauth-callback?code=... . Copy the full redirect URL from your browser address bar, or just the code parameter value, and paste it into the input box below.\n\nNote: If you are not in a headless environment, unset OPENCODE_HEADLESS or run without SSH to enable browser auto-open." : "Please complete Google account authorization in your browser. After authorization, the page will redirect to https://antigravity.google/oauth-callback?code=... . Please copy the full redirect URL from your browser address bar, or just the code parameter value, and paste it into the input box below:",
|
|
1394
1394
|
method: "code",
|
|
1395
1395
|
callback: async (callbackUrl) => {
|
|
1396
1396
|
try {
|