dsh-coding-subscription-oauth 0.6.0 → 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.
Files changed (121) hide show
  1. package/CHANGELOG.md +236 -206
  2. package/CONTRIBUTING.md +129 -120
  3. package/INSTALL.md +221 -220
  4. package/LICENSE +19 -19
  5. package/NOTICE +11 -11
  6. package/README.de.md +292 -293
  7. package/README.es.md +293 -294
  8. package/README.fr.md +293 -294
  9. package/README.ja.md +293 -294
  10. package/README.ko.md +293 -294
  11. package/README.md +307 -308
  12. package/README.pt-BR.md +293 -294
  13. package/README.ru.md +293 -294
  14. package/README.zh-CN.md +305 -306
  15. package/compatibility/dsh-bom.json +17 -30
  16. package/cordis.patch.yml +13 -13
  17. package/docs/00-project-rules.md +212 -195
  18. package/docs/02-architecture.md +130 -130
  19. package/docs/02-architecture.zh-CN.md +130 -130
  20. package/lib/adapter.d.ts.map +1 -1
  21. package/lib/alias-adapter.d.ts +3 -1
  22. package/lib/alias-adapter.d.ts.map +1 -1
  23. package/lib/bin.js +3 -3
  24. package/lib/bin.js.map +2 -2
  25. package/lib/capability-settings.d.ts +8 -2
  26. package/lib/capability-settings.d.ts.map +1 -1
  27. package/lib/capability-tools.d.ts +7 -2
  28. package/lib/capability-tools.d.ts.map +1 -1
  29. package/lib/client.js +3 -3
  30. package/lib/client.js.map +4 -4
  31. package/lib/codex-images.d.ts +8 -0
  32. package/lib/codex-images.d.ts.map +1 -1
  33. package/lib/compatibility.d.ts +14 -14
  34. package/lib/dsh-host-adapter.d.ts.map +1 -1
  35. package/lib/index.d.ts +1 -1
  36. package/lib/index.d.ts.map +1 -1
  37. package/lib/index.js +141 -86
  38. package/lib/index.js.map +3 -3
  39. package/lib/invariant.js.map +1 -1
  40. package/media/en/settings_gateway.png +0 -0
  41. package/media/zh-CN/settings_gateway.png +0 -0
  42. package/package.json +185 -185
  43. package/patches/dsh-agy@0.1.2.patch +25 -25
  44. package/scripts/release.mjs +186 -186
  45. package/scripts/smoke-deployed-routes.mjs +146 -146
  46. package/scripts/verify-deployed-catalog.mjs +87 -87
  47. package/src/adapter.ts +348 -287
  48. package/src/alias-adapter.ts +147 -153
  49. package/src/auth-routes.ts +921 -921
  50. package/src/auth.ts +67 -67
  51. package/src/bin.ts +350 -350
  52. package/src/capability-routes.ts +279 -279
  53. package/src/capability-runtime.ts +314 -313
  54. package/src/capability-settings.ts +671 -658
  55. package/src/capability-tools.ts +685 -666
  56. package/src/catalog.ts +271 -271
  57. package/src/client/GrokBuildSettings.tsx +771 -770
  58. package/src/client/api.ts +88 -88
  59. package/src/client/components/AboutTab.tsx +30 -30
  60. package/src/client/components/AccountsTab.tsx +241 -241
  61. package/src/client/components/Badge.tsx +33 -33
  62. package/src/client/components/CapabilitiesTab.tsx +265 -265
  63. package/src/client/components/CliPullPreview.tsx +116 -116
  64. package/src/client/components/CopyButton.tsx +57 -57
  65. package/src/client/components/GatewayTab.tsx +469 -469
  66. package/src/client/components/NoticeBanner.tsx +46 -46
  67. package/src/client/components/ProgressBar.tsx +53 -53
  68. package/src/client/components/ProviderCard.tsx +606 -606
  69. package/src/client/components/SettingsTabs.tsx +75 -75
  70. package/src/client/components/ToggleSwitch.tsx +71 -71
  71. package/src/client/constants.ts +230 -224
  72. package/src/client/display.ts +61 -61
  73. package/src/client/dshClientAdapter.ts +127 -109
  74. package/src/client/gatewaySnippets.ts +37 -37
  75. package/src/client/index.tsx +156 -156
  76. package/src/client/locales.ts +540 -535
  77. package/src/client/microStyles.ts +52 -52
  78. package/src/client/parsers.ts +398 -396
  79. package/src/client/styles.ts +325 -325
  80. package/src/client/types.ts +199 -197
  81. package/src/codex-http.ts +447 -447
  82. package/src/codex-images.ts +503 -485
  83. package/src/codex-model-capabilities.ts +320 -320
  84. package/src/codex-search.ts +245 -245
  85. package/src/codex-usage.ts +263 -263
  86. package/src/compatibility.ts +55 -55
  87. package/src/dsh-host-adapter.ts +173 -171
  88. package/src/gateway-anthropic-messages.ts +84 -84
  89. package/src/gateway-auth.ts +102 -102
  90. package/src/gateway-backend.ts +274 -274
  91. package/src/gateway-body.ts +49 -49
  92. package/src/gateway-config.ts +76 -76
  93. package/src/gateway-http.ts +104 -104
  94. package/src/gateway-openai-chat.ts +124 -124
  95. package/src/gateway-openai-responses.ts +53 -53
  96. package/src/gateway-parse.ts +224 -224
  97. package/src/gateway-protocol.ts +52 -52
  98. package/src/gateway-routes.ts +158 -158
  99. package/src/gateway.ts +258 -258
  100. package/src/grok-errors.ts +24 -24
  101. package/src/grok-imagine.ts +1627 -1627
  102. package/src/grok-import.ts +151 -151
  103. package/src/http-json.ts +82 -82
  104. package/src/ids.ts +59 -59
  105. package/src/imagine-routes.ts +463 -463
  106. package/src/index.ts +735 -748
  107. package/src/invariant.ts +17 -17
  108. package/src/kimi-errors.ts +26 -26
  109. package/src/media-store.ts +927 -927
  110. package/src/oauth-import-routes.ts +324 -324
  111. package/src/oauth-providers.ts +152 -152
  112. package/src/oauth-session.ts +183 -183
  113. package/src/oauth-sources.ts +1104 -1104
  114. package/src/oauth.ts +620 -620
  115. package/src/provider.ts +128 -128
  116. package/src/proxy.ts +11 -11
  117. package/src/redact.ts +72 -72
  118. package/src/session.ts +218 -218
  119. package/src/store.ts +217 -217
  120. package/src/web-origin.ts +296 -296
  121. package/src/web-routes.ts +38 -38
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/invariant.ts"],
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"],
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
  }
Binary file
Binary file
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.0",
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",
@@ -110,114 +110,114 @@
110
110
  "diagnostics": "standalone",
111
111
  "bom": {
112
112
  "@deepseek-ai/cordis": "4.0.1",
113
- "@deepseek-ai/dsh-atomic-write": "0.1.0-rc.6",
114
- "@deepseek-ai/dsh-attachment": "0.1.0-rc.6",
115
- "@deepseek-ai/dsh-client-locale": "0.1.0-rc.6",
116
- "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.6",
117
- "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.6",
118
- "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.6",
119
- "@deepseek-ai/dsh-client-web": "0.1.0-rc.6",
120
- "@deepseek-ai/dsh-credentials": "0.1.0-rc.6",
121
- "@deepseek-ai/dsh-home-paths": "0.1.0-rc.6",
122
- "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.6",
123
- "@deepseek-ai/dsh-invariants": "0.1.0-rc.6",
124
- "@deepseek-ai/dsh-llm": "0.1.0-rc.6",
125
- "@deepseek-ai/dsh-llm-pi-ai": "0.1.0-rc.6",
126
- "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
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
127
  "@deepseek-ai/schemastery": "3.18.1",
128
128
  "@earendil-works/pi-ai": "0.84.2",
129
129
  "react": "18.3.1",
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
- "@deepseek-ai/dsh-atomic-write": "0.1.0-rc.6",
152
- "@deepseek-ai/dsh-attachment": "0.1.0-rc.6",
153
- "@deepseek-ai/dsh-credentials": "0.1.0-rc.6",
154
- "@deepseek-ai/dsh-home-paths": "0.1.0-rc.6",
155
- "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.6",
156
- "@deepseek-ai/dsh-invariants": "0.1.0-rc.6",
157
- "@deepseek-ai/dsh-llm": "0.1.0-rc.6",
158
- "@deepseek-ai/dsh-llm-pi-ai": "0.1.0-rc.6",
159
- "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
160
- "@deepseek-ai/schemastery": "3.18.1",
161
- "@earendil-works/pi-ai": "0.84.2",
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
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
- "@deepseek-ai/dsh-atomic-write": "0.1.0-rc.6",
195
- "@deepseek-ai/dsh-attachment": "0.1.0-rc.6",
196
- "@deepseek-ai/dsh-client-locale": "0.1.0-rc.6",
197
- "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.6",
198
- "@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.6",
199
- "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.6",
200
- "@deepseek-ai/dsh-client-web": "0.1.0-rc.6",
201
- "@deepseek-ai/dsh-credentials": "0.1.0-rc.6",
202
- "@deepseek-ai/dsh-home-paths": "0.1.0-rc.6",
203
- "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.6",
204
- "@deepseek-ai/dsh-invariants": "0.1.0-rc.6",
205
- "@deepseek-ai/dsh-llm": "0.1.0-rc.6",
206
- "@deepseek-ai/dsh-llm-pi-ai": "0.1.0-rc.6",
207
- "@deepseek-ai/dsh-tools": "0.1.0-rc.6",
208
- "@deepseek-ai/schemastery": "3.18.1",
209
- "@earendil-works/pi-ai": "0.84.2",
210
- "@types/node": "^22.20.0",
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",
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);