dsh-coding-subscription-oauth 0.5.8 → 0.6.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/CHANGELOG.md +217 -188
- package/CONTRIBUTING.md +120 -120
- package/INSTALL.md +241 -209
- package/LICENSE +19 -19
- package/NOTICE +11 -11
- package/README.de.md +298 -294
- package/README.es.md +299 -295
- package/README.fr.md +299 -295
- package/README.ja.md +299 -295
- package/README.ko.md +299 -295
- package/README.md +313 -307
- package/README.pt-BR.md +299 -295
- package/README.ru.md +299 -295
- package/README.zh-CN.md +311 -305
- package/compatibility/dsh-bom.json +30 -0
- package/cordis.patch.yml +13 -13
- package/docs/00-project-rules.md +195 -195
- package/docs/02-architecture.md +134 -129
- package/docs/02-architecture.zh-CN.md +134 -129
- package/lib/adapter.d.ts.map +1 -1
- package/lib/alias-adapter.d.ts +3 -1
- package/lib/alias-adapter.d.ts.map +1 -1
- package/lib/auth-routes.d.ts +8 -15
- package/lib/auth-routes.d.ts.map +1 -1
- package/lib/bin.js +746 -1402
- package/lib/bin.js.map +4 -4
- package/lib/capability-routes.d.ts +3 -3
- package/lib/capability-routes.d.ts.map +1 -1
- package/lib/capability-settings.d.ts +5 -4
- package/lib/capability-settings.d.ts.map +1 -1
- package/lib/client.js +27 -8
- package/lib/client.js.map +4 -4
- package/lib/compatibility.d.ts +46 -0
- package/lib/compatibility.d.ts.map +1 -0
- package/lib/dsh-host-adapter.d.ts +18 -0
- package/lib/dsh-host-adapter.d.ts.map +1 -0
- package/lib/gateway-auth.d.ts +1 -2
- package/lib/gateway-auth.d.ts.map +1 -1
- package/lib/gateway-routes.d.ts +3 -4
- package/lib/gateway-routes.d.ts.map +1 -1
- package/lib/gateway.d.ts +4 -0
- package/lib/gateway.d.ts.map +1 -1
- package/lib/ids.d.ts +3 -32
- package/lib/ids.d.ts.map +1 -1
- package/lib/imagine-routes.d.ts +2 -0
- package/lib/imagine-routes.d.ts.map +1 -1
- package/lib/index.d.ts +19 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +26627 -1047
- package/lib/index.js.map +4 -4
- package/lib/invariant.js.map +1 -1
- package/lib/oauth-import-routes.d.ts +3 -4
- package/lib/oauth-import-routes.d.ts.map +1 -1
- package/lib/proxy.d.ts +3 -16
- package/lib/proxy.d.ts.map +1 -1
- package/lib/web-origin.d.ts +28 -4
- package/lib/web-origin.d.ts.map +1 -1
- package/lib/web-routes.d.ts.map +1 -1
- package/media/en/settings_accounts.png +0 -0
- package/media/en/settings_capabilities.png +0 -0
- package/media/en/settings_gateway.png +0 -0
- package/media/settings_accounts.png +0 -0
- package/media/settings_capabilities.png +0 -0
- package/media/settings_gateway.png +0 -0
- package/media/settings_overview.png +0 -0
- package/media/zh-CN/settings_accounts.png +0 -0
- package/media/zh-CN/settings_capabilities.png +0 -0
- package/media/zh-CN/settings_gateway.png +0 -0
- package/package.json +211 -174
- package/patches/dsh-agy@0.1.2.patch +25 -25
- package/scripts/release.mjs +186 -170
- package/scripts/smoke-deployed-routes.mjs +146 -146
- package/scripts/verify-deployed-catalog.mjs +87 -87
- package/src/adapter.ts +329 -268
- package/src/alias-adapter.ts +141 -147
- package/src/auth-routes.ts +921 -871
- package/src/auth.ts +67 -67
- package/src/bin.ts +350 -350
- package/src/capability-routes.ts +279 -275
- package/src/capability-runtime.ts +313 -313
- package/src/capability-settings.ts +658 -657
- package/src/capability-tools.ts +666 -666
- package/src/catalog.ts +271 -271
- package/src/client/GrokBuildSettings.tsx +770 -718
- package/src/client/api.ts +88 -88
- package/src/client/components/AboutTab.tsx +30 -30
- package/src/client/components/AccountsTab.tsx +241 -224
- package/src/client/components/Badge.tsx +33 -33
- package/src/client/components/CapabilitiesTab.tsx +265 -227
- package/src/client/components/CliPullPreview.tsx +116 -107
- package/src/client/components/CopyButton.tsx +57 -57
- package/src/client/components/GatewayTab.tsx +469 -409
- package/src/client/components/NoticeBanner.tsx +46 -46
- package/src/client/components/ProgressBar.tsx +53 -53
- package/src/client/components/ProviderCard.tsx +606 -502
- package/src/client/components/SettingsTabs.tsx +75 -75
- package/src/client/components/ToggleSwitch.tsx +71 -62
- package/src/client/constants.ts +224 -206
- package/src/client/display.ts +61 -61
- package/src/client/dshClientAdapter.ts +127 -0
- package/src/client/gatewaySnippets.ts +37 -36
- package/src/client/index.tsx +156 -37
- package/src/client/locales.ts +535 -491
- package/src/client/microStyles.ts +52 -33
- package/src/client/parsers.ts +396 -386
- package/src/client/styles.ts +325 -307
- package/src/client/types.ts +197 -185
- package/src/codex-http.ts +447 -447
- package/src/codex-images.ts +485 -485
- package/src/codex-model-capabilities.ts +320 -320
- package/src/codex-search.ts +245 -245
- package/src/codex-usage.ts +263 -263
- package/src/compatibility.ts +55 -0
- package/src/dsh-host-adapter.ts +173 -0
- package/src/gateway-anthropic-messages.ts +84 -84
- package/src/gateway-auth.ts +102 -100
- package/src/gateway-backend.ts +274 -274
- package/src/gateway-body.ts +49 -49
- package/src/gateway-config.ts +76 -76
- package/src/gateway-http.ts +104 -104
- package/src/gateway-openai-chat.ts +124 -124
- package/src/gateway-openai-responses.ts +53 -53
- package/src/gateway-parse.ts +224 -224
- package/src/gateway-protocol.ts +52 -52
- package/src/gateway-routes.ts +158 -152
- package/src/gateway.ts +258 -242
- package/src/grok-errors.ts +24 -24
- package/src/grok-imagine.ts +1627 -1627
- package/src/grok-import.ts +151 -151
- package/src/http-json.ts +82 -82
- package/src/ids.ts +59 -45
- package/src/imagine-routes.ts +463 -461
- package/src/index.ts +729 -592
- package/src/invariant.ts +17 -17
- package/src/kimi-errors.ts +26 -26
- package/src/media-store.ts +927 -927
- package/src/oauth-import-routes.ts +324 -314
- package/src/oauth-providers.ts +152 -152
- package/src/oauth-session.ts +183 -183
- package/src/oauth-sources.ts +1104 -1104
- package/src/oauth.ts +620 -620
- package/src/provider.ts +128 -128
- package/src/proxy.ts +11 -99
- package/src/redact.ts +72 -72
- package/src/session.ts +218 -218
- package/src/store.ts +217 -217
- package/src/web-origin.ts +296 -60
- package/src/web-routes.ts +38 -75
package/lib/invariant.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/invariant.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Package-owned invariant companion for `dsh-coding-subscription-oauth`.\n * @module dsh-coding-subscription-oauth/invariant\n */\n\nimport type { Context } from \"@deepseek-ai/cordis\";\nimport type { InvariantInstaller } from \"@deepseek-ai/dsh-invariants\";\n\nconst PACKAGE_NAME = \"dsh-coding-subscription-oauth\";\n\nexport const name = \"grok-build-invariant\";\nexport const inject = [\"invariants\"];\n\nconst install: InvariantInstaller = () => {};\n\nexport const apply = (ctx: Context): Promise<() => void> =>\n\tPromise.resolve(ctx.invariants.register(PACKAGE_NAME, install));\n"],
|
|
4
|
+
"sourcesContent": ["/**\r\n * Package-owned invariant companion for `dsh-coding-subscription-oauth`.\r\n * @module dsh-coding-subscription-oauth/invariant\r\n */\r\n\r\nimport type { Context } from \"@deepseek-ai/cordis\";\r\nimport type { InvariantInstaller } from \"@deepseek-ai/dsh-invariants\";\r\n\r\nconst PACKAGE_NAME = \"dsh-coding-subscription-oauth\";\r\n\r\nexport const name = \"grok-build-invariant\";\r\nexport const inject = [\"invariants\"];\r\n\r\nconst install: InvariantInstaller = () => {};\r\n\r\nexport const apply = (ctx: Context): Promise<() => void> =>\r\n\tPromise.resolve(ctx.invariants.register(PACKAGE_NAME, install));\r\n"],
|
|
5
5
|
"mappings": ";;;AAQA,IAAM,eAAe;AAEd,IAAM,OAAO;AACb,IAAM,SAAS,CAAC,YAAY;AAEnC,IAAM,UAA8B,MAAM;AAAC;AAEpC,IAAM,QAAQ,CAAC,QACrB,QAAQ,QAAQ,IAAI,WAAW,SAAS,cAAc,OAAO,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
9
9
|
import { type OAuthImportCommitAction, type OAuthImportSessionOptions, type OAuthSourceCredential, type OAuthSourceDiscovery, type OAuthSourceKind, type OAuthSourcePathOptions } from "./oauth-sources.js";
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
export declare const OAUTH_IMPORT_COMMIT_PATH = "/plugins/dsh-grok-build/oauth/sources/commit";
|
|
13
|
-
export declare const OAUTH_IMPORT_CANCEL_PATH = "/plugins/dsh-grok-build/oauth/sources/cancel";
|
|
10
|
+
import { type OwnerRequestPolicy } from "./web-origin.js";
|
|
11
|
+
export { OAUTH_IMPORT_CANCEL_PATH, OAUTH_IMPORT_COMMIT_PATH, OAUTH_IMPORT_PREVIEW_PATH, OAUTH_IMPORT_SOURCES_PATH, } from "./ids.js";
|
|
14
12
|
export interface OAuthImportRouteContext {
|
|
15
13
|
webServer: {
|
|
16
14
|
register(route: {
|
|
@@ -38,6 +36,7 @@ export interface OAuthImportAppliedEvent {
|
|
|
38
36
|
}
|
|
39
37
|
export interface OAuthImportRouteOptions extends OAuthImportSessionOptions, OAuthSourcePathOptions {
|
|
40
38
|
onImported?: (event: OAuthImportAppliedEvent) => void | Promise<void>;
|
|
39
|
+
ownerRequestPolicy?: OwnerRequestPolicy;
|
|
41
40
|
}
|
|
42
41
|
export interface OAuthImportSourcesResponse {
|
|
43
42
|
sources: OAuthSourceDiscovery[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-import-routes.d.ts","sourceRoot":"","sources":["../../src/oauth-import-routes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"oauth-import-routes.d.ts","sourceRoot":"","sources":["../../src/oauth-import-routes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQjE,OAAO,EAIN,KAAK,uBAAuB,EAI5B,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAGzB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAiC,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGzF,OAAO,EACN,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,GACzB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,uBAAuB;IACvC,SAAS,EAAE;QACV,QAAQ,CAAC,KAAK,EAAE;YACf,IAAI,EAAE,OAAO,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;SACtF,GAAG,MAAM,IAAI,CAAC;KACf,CAAC;IACF,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvE;AAED,MAAM,WAAW,2BAA2B;IAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,MAAM,CACL,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,CAAC,OAAO,EAAE,qBAAqB,GAAG,SAAS,KAAK,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,GAC5F,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,sBAAsB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,MAAM,uBAAuB,GAAG;KAAG,CAAC,IAAI,eAAe,GAAG,sBAAsB;CAAE,CAAC;AAEzF,MAAM,WAAW,uBAAuB;IACvC,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC,uBAAuB,EAAE,UAAU,GAAG,aAAa,CAAC,CAAC;CACrE;AAED,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB,EAAE,sBAAsB;IACjG,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,0BAA0B;IAC1C,OAAO,EAAE,oBAAoB,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,uBAAuB;IACvC,EAAE,EAAE,IAAI,CAAC;IACT,SAAS,EAAE,OAAO,CAAC;CACnB;AAED,qFAAqF;AACrF,wBAAgB,yBAAyB,CACxC,GAAG,EAAE,uBAAuB,EAC5B,YAAY,EAAE,uBAAuB,EACrC,OAAO,GAAE,uBAA4B,GACnC,MAAM,IAAI,CAkGZ;AAwED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAsB7D"}
|
package/lib/proxy.d.ts
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export interface CodingOAuthProxyOptions {
|
|
6
|
-
proxyKimi?: boolean;
|
|
7
|
-
}
|
|
8
|
-
/** Install one process-wide dispatcher that proxies only the audited host list. */
|
|
9
|
-
export declare function ensureCodingOAuthProxy(explicit?: string, options?: CodingOAuthProxyOptions): string | undefined;
|
|
10
|
-
/** Backward-compatible name retained for existing callers. */
|
|
11
|
-
export declare function ensureGrokBuildProxy(explicit?: string): string | undefined;
|
|
12
|
-
export declare function codingOAuthProxyInEffect(): string | undefined;
|
|
13
|
-
/** Appended to Grok discovery/token/catalog transport errors when a scoped proxy is installed. */
|
|
14
|
-
export declare function codingOAuthProxyUnreachableHint(): string;
|
|
15
|
-
/** Backward-compatible status accessor. */
|
|
16
|
-
export declare function grokBuildProxyInEffect(): string | undefined;
|
|
1
|
+
/** Compatibility facade for the shared process-wide coding OAuth proxy. */
|
|
2
|
+
export type { CodingOAuthProxyLease, CodingOAuthProxyOptions } from "dsh-coding-oauth-core";
|
|
3
|
+
export { acquireCodingOAuthProxy, codingOAuthProxyInEffect, codingOAuthProxyUnreachableHint, ensureCodingOAuthProxy, ensureGrokBuildProxy, grokBuildProxyInEffect, } from "dsh-coding-oauth-core";
|
|
17
4
|
//# sourceMappingURL=proxy.d.ts.map
|
package/lib/proxy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/proxy.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/proxy.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAE3E,YAAY,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EACN,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,GACtB,MAAM,uBAAuB,CAAC"}
|
package/lib/web-origin.d.ts
CHANGED
|
@@ -1,10 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Rejecting non-loopback Host values closes DNS-rebinding access even when the
|
|
4
|
-
* TCP peer itself is 127.0.0.1 or ::1.
|
|
2
|
+
* Owner-request authorization shared by private plugin Web routes.
|
|
5
3
|
* @module dsh-coding-subscription-oauth/web-origin
|
|
6
4
|
*/
|
|
7
5
|
import type { IncomingMessage } from "node:http";
|
|
8
|
-
|
|
6
|
+
import type { OwnerRequestPolicy as CoreOwnerRequestPolicy } from "dsh-coding-oauth-core";
|
|
7
|
+
import type { DshCompatibilityDiagnostic } from "./compatibility.js";
|
|
8
|
+
export declare const OWNER_PROOF_HEADER = "x-dsh-owner-proof";
|
|
9
|
+
export declare const OWNER_CSRF_HEADER = "x-dsh-csrf-token";
|
|
10
|
+
export type { OwnerAccessMode } from "dsh-coding-oauth-core";
|
|
11
|
+
export interface TrustedReverseProxyPolicyConfig {
|
|
12
|
+
/** Exact TCP peers allowed to inject owner-only headers. Forwarded peers never count. */
|
|
13
|
+
readonly peers?: readonly string[];
|
|
14
|
+
/** Exact browser origins allowed through the trusted proxy. */
|
|
15
|
+
readonly origins?: readonly string[];
|
|
16
|
+
/** Secret injected by the trusted proxy only after owner authentication. */
|
|
17
|
+
readonly ownerProof?: string;
|
|
18
|
+
/** Independent CSRF secret injected by the trusted proxy. */
|
|
19
|
+
readonly csrfToken?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface OwnerRequestPolicyConfig {
|
|
22
|
+
/** Use when loopback is intentionally reached through an SSH port forward. */
|
|
23
|
+
readonly loopbackAccessMode?: "loopback" | "ssh-tunnel";
|
|
24
|
+
readonly trustedProxy?: TrustedReverseProxyPolicyConfig;
|
|
25
|
+
}
|
|
26
|
+
export type OwnerRequestPolicy = CoreOwnerRequestPolicy<IncomingMessage, DshCompatibilityDiagnostic>;
|
|
27
|
+
/** Adapt a host-owned policy so service churn cannot escape through Web routes. */
|
|
28
|
+
export declare function safeguardOwnerRequestPolicy(policy: OwnerRequestPolicy): OwnerRequestPolicy;
|
|
29
|
+
/** Build an immutable owner-request policy. Partial proxy configuration is deliberately unusable. */
|
|
30
|
+
export declare function createOwnerRequestPolicy(config?: OwnerRequestPolicyConfig): OwnerRequestPolicy;
|
|
31
|
+
export declare const LOOPBACK_OWNER_REQUEST_POLICY: OwnerRequestPolicy;
|
|
32
|
+
/** Backward-compatible loopback predicate for external callers. */
|
|
9
33
|
export declare function isTrustedLoopbackWebRequest(req: IncomingMessage): boolean;
|
|
10
34
|
//# sourceMappingURL=web-origin.d.ts.map
|
package/lib/web-origin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-origin.d.ts","sourceRoot":"","sources":["../../src/web-origin.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"web-origin.d.ts","sourceRoot":"","sources":["../../src/web-origin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EACX,kBAAkB,IAAI,sBAAsB,EAG5C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAErE,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAEpD,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,MAAM,WAAW,+BAA+B;IAC/C,yFAAyF;IACzF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACxC,8EAA8E;IAC9E,QAAQ,CAAC,kBAAkB,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxD,QAAQ,CAAC,YAAY,CAAC,EAAE,+BAA+B,CAAC;CACxD;AAED,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,eAAe,EAAE,0BAA0B,CAAC,CAAC;AAWrG,mFAAmF;AACnF,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,kBAAkB,GAAG,kBAAkB,CAgC1F;AAgBD,qGAAqG;AACrG,wBAAgB,wBAAwB,CAAC,MAAM,GAAE,wBAA6B,GAAG,kBAAkB,CAgDlG;AAED,eAAO,MAAM,6BAA6B,oBAA6B,CAAC;AAExE,mEAAmE;AACnE,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAEzE"}
|
package/lib/web-routes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-routes.d.ts","sourceRoot":"","sources":["../../src/web-routes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"web-routes.d.ts","sourceRoot":"","sources":["../../src/web-routes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMjE,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,cAAc,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtF;AAED,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,IAAI,CAAC;CAC5C;AAED,6EAA6E;AAC7E,wBAAgB,+BAA+B,CAC9C,QAAQ,EAAE,sBAAsB,EAChC,KAAK,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,OAAO,GACjD,MAAM,IAAI,CAEZ;AAED,mEAAmE;AACnE,wBAAgB,2BAA2B,CAC1C,QAAQ,EAAE,sBAAsB,EAChC,MAAM,EAAE,SAAS,cAAc,EAAE,GAC/B,MAAM,IAAI,CAEZ"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,186 +1,223 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-coding-subscription-oauth",
|
|
3
|
-
"description": "DeepSeek Harness coding-subscription OAuth: SuperGrok/Grok Build, ChatGPT Plus Codex, Kimi Code, Claude Code. Fixes AUTH API key is invalid, INVALID_REPLAY_STATE, grok-4.6 xhigh, Kimi Bearer vs x-api-key.",
|
|
4
|
-
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public",
|
|
7
|
-
"registry": "https://registry.npmjs.org/"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/lninghaha/dsh-coding-subscription-oauth.git"
|
|
12
|
-
},
|
|
13
|
-
"bugs": "https://github.com/lninghaha/dsh-coding-subscription-oauth/issues",
|
|
14
|
-
"homepage": "https://github.com/lninghaha/dsh-coding-subscription-oauth#readme",
|
|
15
|
-
"keywords": [
|
|
16
|
-
"deepseek-harness",
|
|
17
|
-
"dsh-plugin",
|
|
18
|
-
"oauth",
|
|
19
|
-
"grok-build",
|
|
20
|
-
"super-grok",
|
|
21
|
-
"grok-4.6",
|
|
22
|
-
"cli-chat-proxy",
|
|
23
|
-
"openai-codex",
|
|
24
|
-
"chatgpt-plus",
|
|
25
|
-
"kimi-code",
|
|
26
|
-
"claude-code",
|
|
27
|
-
"google-antigravity",
|
|
28
|
-
"xhigh",
|
|
29
|
-
"device-code"
|
|
30
|
-
],
|
|
31
|
-
"type": "module",
|
|
32
|
-
"packageManager": "pnpm@11.21.0",
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": "^22.19.0 || >=24.0.0"
|
|
35
|
-
},
|
|
36
|
-
"main": "lib/index.js",
|
|
37
|
-
"types": "lib/index.d.ts",
|
|
38
|
-
"bin": {
|
|
39
|
-
"dsh-coding-oauth": "lib/bin.js",
|
|
40
|
-
"dsh-grok-build": "lib/bin.js"
|
|
41
|
-
},
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-coding-subscription-oauth",
|
|
3
|
+
"description": "DeepSeek Harness coding-subscription OAuth: SuperGrok/Grok Build, ChatGPT Plus Codex, Kimi Code, Claude Code. Fixes AUTH API key is invalid, INVALID_REPLAY_STATE, grok-4.6 xhigh, Kimi Bearer vs x-api-key.",
|
|
4
|
+
"version": "0.6.2",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"registry": "https://registry.npmjs.org/"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/lninghaha/dsh-coding-subscription-oauth.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": "https://github.com/lninghaha/dsh-coding-subscription-oauth/issues",
|
|
14
|
+
"homepage": "https://github.com/lninghaha/dsh-coding-subscription-oauth#readme",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"deepseek-harness",
|
|
17
|
+
"dsh-plugin",
|
|
18
|
+
"oauth",
|
|
19
|
+
"grok-build",
|
|
20
|
+
"super-grok",
|
|
21
|
+
"grok-4.6",
|
|
22
|
+
"cli-chat-proxy",
|
|
23
|
+
"openai-codex",
|
|
24
|
+
"chatgpt-plus",
|
|
25
|
+
"kimi-code",
|
|
26
|
+
"claude-code",
|
|
27
|
+
"google-antigravity",
|
|
28
|
+
"xhigh",
|
|
29
|
+
"device-code"
|
|
30
|
+
],
|
|
31
|
+
"type": "module",
|
|
32
|
+
"packageManager": "pnpm@11.21.0",
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
35
|
+
},
|
|
36
|
+
"main": "lib/index.js",
|
|
37
|
+
"types": "lib/index.d.ts",
|
|
38
|
+
"bin": {
|
|
39
|
+
"dsh-coding-oauth": "lib/bin.js",
|
|
40
|
+
"dsh-grok-build": "lib/bin.js"
|
|
41
|
+
},
|
|
42
42
|
"scripts": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"build:
|
|
47
|
-
"build:
|
|
48
|
-
"build": "pnpm run
|
|
49
|
-
"
|
|
50
|
-
"test
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"check": "pnpm run lint && pnpm run
|
|
54
|
-
"
|
|
55
|
-
"release:
|
|
56
|
-
"release:
|
|
57
|
-
"release:
|
|
58
|
-
"release:
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"./
|
|
74
|
-
"./
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
43
|
+
"check:bom": "node build/verify-dsh-bom.mjs",
|
|
44
|
+
"clean": "node build/clean.mjs",
|
|
45
|
+
"typecheck": "tsc -b tsconfig.host.json tsconfig.client.json",
|
|
46
|
+
"build:server": "tsc -p tsconfig.build.json && tsc -p tsconfig.dts-bin.json && node build/build-server.mjs",
|
|
47
|
+
"build:client": "node build/build-client.mjs",
|
|
48
|
+
"build:artifacts": "pnpm run check:bom && pnpm run clean && pnpm run typecheck && pnpm run build:server && pnpm run build:client",
|
|
49
|
+
"build": "pnpm run release:build",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"test:watch": "vitest",
|
|
52
|
+
"lint": "biome check",
|
|
53
|
+
"check:next": "pnpm run check:bom && pnpm run lint && pnpm run typecheck && pnpm run test",
|
|
54
|
+
"check": "pnpm run lint && pnpm run release:build && pnpm run test",
|
|
55
|
+
"release:promote": "node build/promote-release.mjs",
|
|
56
|
+
"release:verify": "node build/verify-release.mjs",
|
|
57
|
+
"release:build": "pnpm run build:artifacts && pnpm run release:promote",
|
|
58
|
+
"release:dry": "node scripts/release.mjs --dry-run",
|
|
59
|
+
"release:pack": "node scripts/release.mjs --pack",
|
|
60
|
+
"verify:deployed": "node scripts/verify-deployed-catalog.mjs",
|
|
61
|
+
"smoke:deployed": "node scripts/smoke-deployed-routes.mjs",
|
|
62
|
+
"prepack": "pnpm run release:build"
|
|
63
|
+
},
|
|
64
|
+
"exports": {
|
|
65
|
+
".": {
|
|
66
|
+
"types": "./lib/index.d.ts",
|
|
67
|
+
"default": "./lib/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./invariant": {
|
|
70
|
+
"types": "./lib/invariant.d.ts",
|
|
71
|
+
"default": "./lib/invariant.js"
|
|
72
|
+
},
|
|
73
|
+
"./client": "./lib/client.js",
|
|
74
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
75
|
+
"./package.json": "./package.json"
|
|
76
|
+
},
|
|
77
|
+
"files": [
|
|
78
|
+
"lib",
|
|
79
|
+
"src",
|
|
80
|
+
"media",
|
|
81
|
+
"cordis.patch.yml",
|
|
82
|
+
"INSTALL.md",
|
|
83
|
+
"CHANGELOG.md",
|
|
84
|
+
"CONTRIBUTING.md",
|
|
85
|
+
"docs/00-project-rules.md",
|
|
85
86
|
"docs/02-architecture.md",
|
|
86
87
|
"docs/02-architecture.zh-CN.md",
|
|
87
|
-
"
|
|
88
|
-
"README.
|
|
89
|
-
"README.
|
|
90
|
-
"README.
|
|
91
|
-
"README.
|
|
92
|
-
"README.
|
|
93
|
-
"README.
|
|
94
|
-
"README.
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"scripts/
|
|
98
|
-
"scripts/
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
88
|
+
"compatibility/dsh-bom.json",
|
|
89
|
+
"README.zh-CN.md",
|
|
90
|
+
"README.ja.md",
|
|
91
|
+
"README.ko.md",
|
|
92
|
+
"README.pt-BR.md",
|
|
93
|
+
"README.es.md",
|
|
94
|
+
"README.fr.md",
|
|
95
|
+
"README.de.md",
|
|
96
|
+
"README.ru.md",
|
|
97
|
+
"patches/dsh-agy@0.1.2.patch",
|
|
98
|
+
"scripts/verify-deployed-catalog.mjs",
|
|
99
|
+
"scripts/smoke-deployed-routes.mjs",
|
|
100
|
+
"scripts/release.mjs",
|
|
101
|
+
"LICENSE",
|
|
102
|
+
"NOTICE"
|
|
103
|
+
],
|
|
104
|
+
"license": "Apache-2.0",
|
|
103
105
|
"dsh": {
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
+
"compatibility": {
|
|
107
|
+
"coreAbi": "dsh-coding-oauth-core/v1",
|
|
108
|
+
"verifiedBom": "./compatibility/dsh-bom.json",
|
|
109
|
+
"participant": "coding-subscription-oauth",
|
|
110
|
+
"diagnostics": "standalone",
|
|
111
|
+
"bom": {
|
|
112
|
+
"@deepseek-ai/cordis": "4.0.1",
|
|
113
|
+
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
114
|
+
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
115
|
+
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
|
|
116
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
117
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
|
|
118
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-client-web": "0.1.1-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
121
|
+
"@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
|
|
122
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
|
|
123
|
+
"@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
|
|
124
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
125
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
|
|
126
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
127
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
128
|
+
"@earendil-works/pi-ai": "0.84.2",
|
|
129
|
+
"react": "18.3.1",
|
|
130
|
+
"react-dom": "18.3.1"
|
|
131
|
+
}
|
|
106
132
|
},
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
133
|
+
"bundle": {
|
|
134
|
+
"patch": "./cordis.patch.yml"
|
|
135
|
+
},
|
|
136
|
+
"client": {
|
|
137
|
+
"inject": [
|
|
138
|
+
"@deepseek-ai/dsh-client-runtime",
|
|
139
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
140
|
+
"@deepseek-ai/dsh-client-locale"
|
|
141
|
+
],
|
|
142
|
+
"platform": "web"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
116
145
|
"dependencies": {
|
|
146
|
+
"dsh-coding-oauth-core": "0.1.0",
|
|
117
147
|
"undici": "^7.24.8"
|
|
118
148
|
},
|
|
119
|
-
"peerDependencies": {
|
|
120
|
-
"@deepseek-ai/cordis": "
|
|
121
|
-
"@deepseek-ai/dsh-atomic-write": "0.1.
|
|
122
|
-
"@deepseek-ai/dsh-attachment": "
|
|
123
|
-
"@deepseek-ai/dsh-credentials": "
|
|
124
|
-
"@deepseek-ai/dsh-home-paths": "0.1.
|
|
125
|
-
"@deepseek-ai/dsh-host-webserver": "
|
|
126
|
-
"@deepseek-ai/dsh-invariants": "
|
|
127
|
-
"@deepseek-ai/dsh-llm": "0.1.
|
|
128
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.1.
|
|
129
|
-
"@deepseek-ai/dsh-tools": "
|
|
130
|
-
"@deepseek-ai/schemastery": "3.18.1",
|
|
131
|
-
"@earendil-works/pi-ai": "0.84.2",
|
|
132
|
-
"react": "
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
"peerDependencies": {
|
|
150
|
+
"@deepseek-ai/cordis": "4.0.1",
|
|
151
|
+
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
152
|
+
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
153
|
+
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
154
|
+
"@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
|
|
155
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
|
|
156
|
+
"@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
|
|
157
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
158
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
|
|
159
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
160
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
161
|
+
"@earendil-works/pi-ai": "0.84.2",
|
|
162
|
+
"react": "18.3.1",
|
|
163
|
+
"react-dom": "18.3.1"
|
|
164
|
+
},
|
|
165
|
+
"peerDependenciesMeta": {
|
|
166
|
+
"@deepseek-ai/cordis": {
|
|
167
|
+
"optional": true
|
|
168
|
+
},
|
|
169
|
+
"@deepseek-ai/dsh-attachment": {
|
|
170
|
+
"optional": true
|
|
171
|
+
},
|
|
172
|
+
"@deepseek-ai/dsh-credentials": {
|
|
173
|
+
"optional": true
|
|
174
|
+
},
|
|
175
|
+
"@deepseek-ai/dsh-host-webserver": {
|
|
176
|
+
"optional": true
|
|
177
|
+
},
|
|
178
|
+
"@deepseek-ai/dsh-invariants": {
|
|
179
|
+
"optional": true
|
|
180
|
+
},
|
|
181
|
+
"@deepseek-ai/dsh-tools": {
|
|
182
|
+
"optional": true
|
|
183
|
+
},
|
|
184
|
+
"react": {
|
|
151
185
|
"optional": true
|
|
152
186
|
},
|
|
153
|
-
"react": {
|
|
187
|
+
"react-dom": {
|
|
154
188
|
"optional": true
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"devDependencies": {
|
|
158
|
-
"@biomejs/biome": "^2.5.8",
|
|
159
|
-
"@deepseek-ai/cordis": "
|
|
160
|
-
"@deepseek-ai/dsh-atomic-write": "0.1.
|
|
161
|
-
"@deepseek-ai/dsh-attachment": "0.1.
|
|
162
|
-
"@deepseek-ai/dsh-client-locale": "0.1.
|
|
163
|
-
"@deepseek-ai/dsh-client-runtime": "0.1.
|
|
164
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.
|
|
165
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.
|
|
166
|
-
"@deepseek-ai/dsh-
|
|
167
|
-
"@deepseek-ai/dsh-
|
|
168
|
-
"@deepseek-ai/dsh-
|
|
169
|
-
"@deepseek-ai/dsh-
|
|
170
|
-
"@deepseek-ai/dsh-
|
|
171
|
-
"@deepseek-ai/dsh-llm
|
|
172
|
-
"@deepseek-ai/dsh-
|
|
173
|
-
"@deepseek-ai/
|
|
174
|
-
"@
|
|
175
|
-
"@
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"devDependencies": {
|
|
192
|
+
"@biomejs/biome": "^2.5.8",
|
|
193
|
+
"@deepseek-ai/cordis": "4.0.1",
|
|
194
|
+
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
195
|
+
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
196
|
+
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
|
|
197
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
198
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
|
|
199
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
200
|
+
"@deepseek-ai/dsh-client-web": "0.1.1-rc.2",
|
|
201
|
+
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
202
|
+
"@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
|
|
203
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
|
|
204
|
+
"@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
|
|
205
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
206
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
|
|
207
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
208
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
209
|
+
"@earendil-works/pi-ai": "0.84.2",
|
|
210
|
+
"@types/node": "^22.20.0",
|
|
176
211
|
"@types/react": "~18.3.1",
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
212
|
+
"@types/react-dom": "18.3.7",
|
|
213
|
+
"esbuild": "^0.28.2",
|
|
214
|
+
"react": "18.3.1",
|
|
215
|
+
"react-dom": "18.3.1",
|
|
216
|
+
"typescript": "^6.0.3",
|
|
217
|
+
"undici": "^7.24.8",
|
|
218
|
+
"vitest": "^4.1.8"
|
|
219
|
+
},
|
|
220
|
+
"overrides": {
|
|
221
|
+
"@earendil-works/pi-ai": "0.84.2"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
diff --git a/lib/plugin-common-YSDKp1DG.mjs b/lib/plugin-common-YSDKp1DG.mjs
|
|
2
|
-
index 3bd4405d9010705cdbfb675e62538645c4af5321..aeb9dd8375ac4dfc0376b525f44e4cf8eba67719 100644
|
|
3
|
-
--- a/lib/plugin-common-YSDKp1DG.mjs
|
|
4
|
-
+++ b/lib/plugin-common-YSDKp1DG.mjs
|
|
5
|
-
@@ -135,12 +135,17 @@ var AgyAdapter = class extends LlmAdapter {
|
|
6
|
-
providerInfo(_provider) {
|
|
7
|
-
return {
|
|
8
|
-
id: "agy",
|
|
9
|
-
- name: "Antigravity (agy)"
|
|
10
|
-
+ name: "Google Antigravity (OAuth)"
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
async listModels(_provider) {
|
|
14
|
-
- const session = await this.options.getSession();
|
|
15
|
-
- return listAgyModels(session?.auth.access, session?.account.projectId);
|
|
16
|
-
+ try {
|
|
17
|
-
+ const session = await this.options.getSession();
|
|
18
|
-
+ if (!session) return [];
|
|
19
|
-
+ return listAgyModels(session.auth.access, session.account.projectId);
|
|
20
|
-
+ } catch {
|
|
21
|
-
+ return [];
|
|
22
|
-
+ }
|
|
23
|
-
}
|
|
24
|
-
async resolveModel(provider, model) {
|
|
25
|
-
return resolveAgyModel(provider, model);
|
|
1
|
+
diff --git a/lib/plugin-common-YSDKp1DG.mjs b/lib/plugin-common-YSDKp1DG.mjs
|
|
2
|
+
index 3bd4405d9010705cdbfb675e62538645c4af5321..aeb9dd8375ac4dfc0376b525f44e4cf8eba67719 100644
|
|
3
|
+
--- a/lib/plugin-common-YSDKp1DG.mjs
|
|
4
|
+
+++ b/lib/plugin-common-YSDKp1DG.mjs
|
|
5
|
+
@@ -135,12 +135,17 @@ var AgyAdapter = class extends LlmAdapter {
|
|
6
|
+
providerInfo(_provider) {
|
|
7
|
+
return {
|
|
8
|
+
id: "agy",
|
|
9
|
+
- name: "Antigravity (agy)"
|
|
10
|
+
+ name: "Google Antigravity (OAuth)"
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
async listModels(_provider) {
|
|
14
|
+
- const session = await this.options.getSession();
|
|
15
|
+
- return listAgyModels(session?.auth.access, session?.account.projectId);
|
|
16
|
+
+ try {
|
|
17
|
+
+ const session = await this.options.getSession();
|
|
18
|
+
+ if (!session) return [];
|
|
19
|
+
+ return listAgyModels(session.auth.access, session.account.projectId);
|
|
20
|
+
+ } catch {
|
|
21
|
+
+ return [];
|
|
22
|
+
+ }
|
|
23
|
+
}
|
|
24
|
+
async resolveModel(provider, model) {
|
|
25
|
+
return resolveAgyModel(provider, model);
|