@goodandready/dsh-subscriptions 0.1.0 → 0.1.1

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
@@ -59,7 +59,7 @@ Settings GET never returns access or refresh tokens — only
59
59
  | `codex` | ChatGPT / Codex | Vendor-public Codex CLI client id |
60
60
  | `claude` | Claude Pro/Max | Vendor-public Claude Code client id |
61
61
  | `grok` | xAI / SuperGrok | Vendor-public Grok CLI client id |
62
- | `antigravity` | Google Antigravity | Vendor-public Antigravity client id |
62
+ | `antigravity` | Google Antigravity | Your OAuth client id + secret in Config |
63
63
 
64
64
  Override `codexClientId`, `claudeClientId`, and the other empty Config fields
65
65
  if you register your own OAuth app.
@@ -67,16 +67,16 @@ if you register your own OAuth app.
67
67
  Live requests use the vendor subscription surfaces, not API-key hosts:
68
68
  Codex `chatgpt.com/backend-api/codex/responses`, Claude Messages with the
69
69
  OAuth beta header, Grok `cli-chat-proxy.grok.com` with CLI identity headers,
70
- and Gemini/Antigravity Cloud Code Assist (`loadCodeAssist` then
70
+ and Antigravity Cloud Code Assist (`loadCodeAssist` then
71
71
  `streamGenerateContent`). Usage endpoints, when they answer, feed the 100%
72
72
  skip. If a live model list fails, the built-in catalog is used.
73
- Installed-app Google client secrets are
74
- vendor-published (not user secrets); override `geminiClientSecret` /
75
- `antigravityClientSecret` when you use your own client.
73
+ Antigravity uses a confidential Google OAuth client: set `antigravityClientId`
74
+ and `antigravityClientSecret` in plugin Config (Settings) nothing is baked
75
+ into the repository.
76
76
 
77
77
  Default model catalogs are built-in lists you can replace with
78
- `codexModels`, `claudeModels`, `grokModels`, `geminiModels`,
79
- `antigravityModels` in the plugin Config.
78
+ `codexModels`, `claudeModels`, `grokModels`, `antigravityModels`
79
+ in the plugin Config.
80
80
 
81
81
  ## Rotation
82
82
 
@@ -3,7 +3,6 @@ import { buildAuthorizeUrl } from '../oauth.js'
3
3
  import { googleContents } from '../messages.js'
4
4
  import { formTokenRequest, googleStream, throwHttpError, tokenBlobFromOAuth } from '../wire.js'
5
5
  import { emailFromToken } from '../jwt.js'
6
- import { builtinAntigravityOAuth } from './antigravity-oauth.js'
7
6
  import {
8
7
  CODE_ASSIST_STREAM,
9
8
  antigravityMetadata,
@@ -32,11 +31,10 @@ export function providerInfo() {
32
31
  }
33
32
 
34
33
  export function defaults() {
35
- const builtin = builtinAntigravityOAuth()
36
34
  return {
37
- clientId: builtin.clientId,
38
- clientSecret: builtin.clientSecret,
39
- redirectUri: builtin.redirectUri,
35
+ clientId: '',
36
+ clientSecret: '',
37
+ redirectUri: 'https://antigravity.google/oauth-callback',
40
38
  models: ['gemini-3.5-flash-low', 'gemini-3-flash', 'gemini-2.5-flash'],
41
39
  }
42
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-subscriptions",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Use ChatGPT Codex, Claude, Grok, and Antigravity subscriptions as DeepSeek Harness LLM providers via OAuth.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,10 +0,0 @@
1
- export function builtinAntigravityOAuth() {
2
- // Public Antigravity IDE OAuth app (same credentials as desktop IDE).
3
- const clientId = String.fromCharCode(49,48,55,49,48,48,54,48,54,48,53,57,49,45,116,109,104,115,115,105,110,50,104,50,49,108,99,114,101,50,51,53,118,116,111,108,111,106,104,52,103,52,48,51,101,112,46,97,112,112,115,46,103,111,111,103,108,101,117,115,101,114,99,111,110,116,101,110,116,46,99,111,109)
4
- const clientSecret = String.fromCharCode(71,79,67,83,80,88,45,75,53,56,70,87,82,52,56,54,76,100,76,74,49,109,76,66,56,115,88,67,52,122,54,113,68,65,102)
5
- return {
6
- clientId,
7
- clientSecret,
8
- redirectUri: 'https://antigravity.google/oauth-callback',
9
- }
10
- }