@openhoo/hoopilot 0.5.7 → 0.5.8
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 -3
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/codexx.js +52 -2
- package/dist/codexx.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ First sign in with GitHub Copilot OAuth in your browser:
|
|
|
68
68
|
npx @openhoo/hoopilot login
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
The login command prints a one-time code, opens `https://github.com/login/device` best-effort, verifies that the returned OAuth token can reach the Copilot API, and stores it in Hoopilot's auth file.
|
|
71
|
+
The login command prints a one-time code, opens `https://github.com/login/device` best-effort, verifies that the returned OAuth token can reach the Copilot API, and stores it in Hoopilot's auth file. Re-run `npx @openhoo/hoopilot login` after upgrading Hoopilot if Copilot reports a supported model as unavailable; older stored tokens can have a reduced model set.
|
|
72
72
|
|
|
73
73
|
Then start the proxy:
|
|
74
74
|
|
|
@@ -137,7 +137,10 @@ effort with `CODEXX_MODEL_REASONING_EFFORT`.
|
|
|
137
137
|
`codexx` defaults to `gpt-5.5` with `model_reasoning_effort="xhigh"`. Codex sends
|
|
138
138
|
those requests through its Responses API provider, and Hoopilot forwards them to
|
|
139
139
|
Copilot's Responses endpoint because `gpt-5.5` is not available through Copilot's
|
|
140
|
-
chat-completions endpoint.
|
|
140
|
+
chat-completions endpoint. Before starting Codex, `codexx` checks
|
|
141
|
+
`http://127.0.0.1:4141/v1/models` and reports if the logged-in Copilot account does
|
|
142
|
+
not advertise the requested model. Set `CODEXX_MODEL` to one of the listed models,
|
|
143
|
+
or log in with a Copilot account that has `gpt-5.5`.
|
|
141
144
|
|
|
142
145
|
If no `HOOPILOT_API_KEY` is configured, Hoopilot accepts local requests without client authentication. Binding to a non-loopback host requires `HOOPILOT_API_KEY` unless `--allow-unauthenticated` is set.
|
|
143
146
|
|
|
@@ -178,7 +181,7 @@ Direct bearer tokens, GitHub CLI token fallback, classic GitHub PATs, and fine-g
|
|
|
178
181
|
Supported authentication-related settings:
|
|
179
182
|
|
|
180
183
|
- `HOOPILOT_AUTH_FILE`: OAuth credential store path.
|
|
181
|
-
- `HOOPILOT_GITHUB_CLIENT_ID`: GitHub OAuth app client ID override.
|
|
184
|
+
- `HOOPILOT_GITHUB_CLIENT_ID`: GitHub OAuth app client ID override. The default uses the same GitHub Copilot OAuth app as opencode's Copilot provider.
|
|
182
185
|
- `HOOPILOT_GITHUB_DOMAIN`: GitHub domain override. Default: `github.com`.
|
|
183
186
|
- `COPILOT_API_BASE_URL`: upstream Copilot API base URL override. Default: `https://api.githubcopilot.com`.
|
|
184
187
|
|
package/dist/cli.js
CHANGED
|
@@ -103,7 +103,7 @@ function trimTrailingSlash(value) {
|
|
|
103
103
|
|
|
104
104
|
// src/github-device.ts
|
|
105
105
|
import { setTimeout as sleep } from "timers/promises";
|
|
106
|
-
var DEFAULT_GITHUB_COPILOT_CLIENT_ID = "
|
|
106
|
+
var DEFAULT_GITHUB_COPILOT_CLIENT_ID = "Ov23li8tweQw6odWQebz";
|
|
107
107
|
var DEFAULT_GITHUB_DOMAIN = "github.com";
|
|
108
108
|
var DEVICE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|
|
109
109
|
var POLLING_SAFETY_MARGIN_MS = 3e3;
|