dsh-coding-subscription-oauth 0.6.2 → 0.6.3
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 +222 -206
- package/CONTRIBUTING.md +129 -120
- package/INSTALL.md +218 -218
- package/LICENSE +19 -19
- package/NOTICE +11 -11
- package/README.de.md +289 -289
- package/README.es.md +290 -290
- package/README.fr.md +290 -290
- package/README.ja.md +290 -290
- package/README.ko.md +290 -290
- package/README.md +304 -304
- package/README.pt-BR.md +290 -290
- package/README.ru.md +290 -290
- package/README.zh-CN.md +302 -302
- package/compatibility/dsh-bom.json +0 -0
- package/cordis.patch.yml +13 -13
- package/docs/00-project-rules.md +212 -195
- package/docs/02-architecture.md +130 -130
- package/docs/02-architecture.zh-CN.md +130 -130
- package/lib/bin.js.map +1 -1
- package/lib/capability-settings.d.ts +8 -2
- package/lib/capability-settings.d.ts.map +1 -1
- package/lib/capability-tools.d.ts +7 -2
- package/lib/capability-tools.d.ts.map +1 -1
- package/lib/client.js +3 -3
- package/lib/client.js.map +2 -2
- package/lib/codex-images.d.ts +8 -0
- package/lib/codex-images.d.ts.map +1 -1
- package/lib/index.js +32 -7
- package/lib/index.js.map +2 -2
- package/lib/invariant.js.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 +148 -148
- package/patches/dsh-agy@0.1.2.patch +25 -25
- package/scripts/release.mjs +186 -186
- package/scripts/smoke-deployed-routes.mjs +146 -146
- package/scripts/verify-deployed-catalog.mjs +87 -87
- package/src/adapter.ts +273 -273
- package/src/alias-adapter.ts +130 -130
- package/src/auth-routes.ts +921 -921
- package/src/auth.ts +67 -67
- package/src/bin.ts +350 -350
- package/src/capability-routes.ts +279 -279
- package/src/capability-runtime.ts +314 -313
- package/src/capability-settings.ts +671 -658
- package/src/capability-tools.ts +685 -666
- package/src/catalog.ts +271 -271
- package/src/client/GrokBuildSettings.tsx +771 -770
- package/src/client/api.ts +88 -88
- package/src/client/components/AboutTab.tsx +30 -30
- package/src/client/components/AccountsTab.tsx +241 -241
- package/src/client/components/Badge.tsx +33 -33
- package/src/client/components/CapabilitiesTab.tsx +265 -265
- package/src/client/components/CliPullPreview.tsx +116 -116
- package/src/client/components/CopyButton.tsx +57 -57
- package/src/client/components/GatewayTab.tsx +469 -469
- package/src/client/components/NoticeBanner.tsx +46 -46
- package/src/client/components/ProgressBar.tsx +53 -53
- package/src/client/components/ProviderCard.tsx +606 -606
- package/src/client/components/SettingsTabs.tsx +75 -75
- package/src/client/components/ToggleSwitch.tsx +71 -71
- package/src/client/constants.ts +230 -224
- package/src/client/display.ts +61 -61
- package/src/client/dshClientAdapter.ts +127 -127
- package/src/client/gatewaySnippets.ts +37 -37
- package/src/client/index.tsx +156 -156
- package/src/client/locales.ts +540 -535
- package/src/client/microStyles.ts +52 -52
- package/src/client/parsers.ts +398 -396
- package/src/client/styles.ts +325 -325
- package/src/client/types.ts +199 -197
- package/src/codex-http.ts +447 -447
- package/src/codex-images.ts +503 -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 +41 -41
- package/src/dsh-host-adapter.ts +173 -173
- package/src/gateway-anthropic-messages.ts +84 -84
- package/src/gateway-auth.ts +102 -102
- 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 -158
- package/src/gateway.ts +258 -258
- 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 -59
- package/src/imagine-routes.ts +463 -463
- package/src/index.ts +709 -709
- 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 -324
- 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 -11
- package/src/redact.ts +72 -72
- package/src/session.ts +218 -218
- package/src/store.ts +217 -217
- package/src/web-origin.ts +296 -296
- package/src/web-routes.ts +38 -38
package/lib/invariant.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/invariant.ts"],
|
|
4
|
-
"sourcesContent": ["/**\
|
|
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"],
|
|
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
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
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.
|
|
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.3",
|
|
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
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",
|
|
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
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",
|
|
49
|
+
"build": "pnpm run release:build",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"test:watch": "vitest",
|
|
52
|
+
"lint": "biome check",
|
|
53
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",
|
|
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",
|
|
86
86
|
"docs/02-architecture.md",
|
|
87
87
|
"docs/02-architecture.zh-CN.md",
|
|
88
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",
|
|
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",
|
|
105
105
|
"dsh": {
|
|
106
106
|
"compatibility": {
|
|
107
107
|
"coreAbi": "dsh-coding-oauth-core/v1",
|
|
@@ -130,23 +130,23 @@
|
|
|
130
130
|
"react-dom": "18.3.1"
|
|
131
131
|
}
|
|
132
132
|
},
|
|
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
|
-
},
|
|
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
|
+
},
|
|
145
145
|
"dependencies": {
|
|
146
146
|
"dsh-coding-oauth-core": "0.1.0",
|
|
147
147
|
"undici": "^7.24.8"
|
|
148
148
|
},
|
|
149
|
-
"peerDependencies": {
|
|
149
|
+
"peerDependencies": {
|
|
150
150
|
"@deepseek-ai/cordis": "4.0.1",
|
|
151
151
|
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
152
152
|
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
@@ -157,39 +157,39 @@
|
|
|
157
157
|
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
158
158
|
"@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
|
|
159
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",
|
|
160
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
161
|
+
"@earendil-works/pi-ai": "0.84.2",
|
|
162
162
|
"react": "18.3.1",
|
|
163
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
|
-
},
|
|
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
184
|
"react": {
|
|
185
185
|
"optional": true
|
|
186
186
|
},
|
|
187
187
|
"react-dom": {
|
|
188
188
|
"optional": true
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
"devDependencies": {
|
|
192
|
-
"@biomejs/biome": "^2.5.8",
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"devDependencies": {
|
|
192
|
+
"@biomejs/biome": "^2.5.8",
|
|
193
193
|
"@deepseek-ai/cordis": "4.0.1",
|
|
194
194
|
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
195
195
|
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
@@ -205,19 +205,19 @@
|
|
|
205
205
|
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
206
206
|
"@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
|
|
207
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",
|
|
208
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
209
|
+
"@earendil-works/pi-ai": "0.84.2",
|
|
210
|
+
"@types/node": "^22.20.0",
|
|
211
211
|
"@types/react": "~18.3.1",
|
|
212
212
|
"@types/react-dom": "18.3.7",
|
|
213
|
-
"esbuild": "^0.28.2",
|
|
213
|
+
"esbuild": "^0.28.2",
|
|
214
214
|
"react": "18.3.1",
|
|
215
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
|
-
}
|
|
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);
|