@magpie-community/opencode-qoder-auth 0.2.24 → 0.2.25
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 +6 -1
- package/index.mjs +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,11 @@ hosts; [its section](#qoder-cn) says what differs.
|
|
|
22
22
|
3. The device token is traded for a job token, and the account's email and
|
|
23
23
|
name are read.
|
|
24
24
|
|
|
25
|
+
The page is asked for no `redirect_uri`, as Qoder's CLI asks for none, so
|
|
26
|
+
the sign-in ends in the browser tab even when Qoder.app is installed
|
|
27
|
+
(before 0.2.25 it sent the desktop app's `qoder-app://`, which handed the
|
|
28
|
+
page to Qoder.app).
|
|
29
|
+
|
|
25
30
|
**Sign in with Qoder PAT** (and **Sign in with Qoder CN PAT**) skips the
|
|
26
31
|
device flow: a Personal Access Token from `<site>/account/integrations` is
|
|
27
32
|
posted to `/api/v1/jobToken/exchange` (`personal_token`), which answers a
|
|
@@ -178,7 +183,7 @@ Qoder CN's own CLI builds in for its `cn` build (`@qodercn-ai/qoderclicn`
|
|
|
178
183
|
| Accounts: poll, tokens, user info, usage | openapi.qoder.sh | openapi.qoder.com.cn |
|
|
179
184
|
| Models and chat | api3.qoder.sh | gateway.qoder.com.cn |
|
|
180
185
|
| Device-flow client id | Qoder's desktop client's | Qoder CN's CLI's (production) |
|
|
181
|
-
| `redirect_uri` on the sign-in page |
|
|
186
|
+
| `redirect_uri` on the sign-in page | none, as Qoder's CLI sends (since 0.2.25) | none, as the CLI sends |
|
|
182
187
|
|
|
183
188
|
Qoder CN's CLI chats with the device token itself and never makes a job
|
|
184
189
|
token. The plugin asks qoder.cn for a job token first, as it does on
|
package/index.mjs
CHANGED
|
@@ -1504,7 +1504,10 @@ const SITES = {
|
|
|
1504
1504
|
web: "https://qoder.com",
|
|
1505
1505
|
openapi: "https://openapi.qoder.sh",
|
|
1506
1506
|
api: "https://api3.qoder.sh",
|
|
1507
|
-
|
|
1507
|
+
// none, as Qoder's CLI (@qoder-ai/qodercli 1.1.75) sends: the desktop
|
|
1508
|
+
// app's qoder-app:// hands the finished page to Qoder.app, when it is
|
|
1509
|
+
// installed, instead of leaving it in the tab while this polls (#276)
|
|
1510
|
+
redirect: "",
|
|
1508
1511
|
models: MODELS,
|
|
1509
1512
|
},
|
|
1510
1513
|
"qoder-cn": {
|
package/package.json
CHANGED