bugxhunter 0.9.0 → 0.9.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 +1 -0
- package/package.json +1 -1
- package/server/dist/providers.js +1 -1
- package/server/dist/scx.js +9 -4
- package/web/dist/assets/index-DpbUOeo1.js +230 -0
- package/web/dist/assets/{index-CT8NJnBq.css → index-gwJcczPG.css} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-BOnK2IXF.js +0 -218
package/README.md
CHANGED
|
@@ -335,6 +335,7 @@ GHCR images by digest) and the signed `checksums.txt` that covers them all.
|
|
|
335
335
|
<!-- releases:start -->
|
|
336
336
|
| Release | Published | Checksums | Signature | Signature check | Build |
|
|
337
337
|
| --- | --- | --- | --- | --- | --- |
|
|
338
|
+
| [v0.9.0](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.9.0) | 2026-10-28 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.9.0/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.9.0/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/40700626754) |
|
|
338
339
|
| [v0.8.7](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.8.7) | 2026-10-28 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.7/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.7/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/40622263442) |
|
|
339
340
|
| [v0.8.6](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.8.6) | 2026-10-27 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.6/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.6/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/40601789047) |
|
|
340
341
|
| [v0.8.5](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.8.5) | 2026-10-21 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.5/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.5/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/39618294874) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bugxhunter",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "BugXHunter: an AI security-testing agent with a sandboxed runner, a passkey-sealed key vault and read-only GitHub access. `npx bugxhunter` runs it on your machine.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://bugxhunter.com",
|
package/server/dist/providers.js
CHANGED
|
@@ -257,7 +257,7 @@ async function nvidiaModels() {
|
|
|
257
257
|
const probeClient = new SCXClient({ apiKey: () => apiKey("nvidia"), baseUrl: PROVIDERS.nvidia.baseUrl, timeoutMs: 15_000 });
|
|
258
258
|
export async function probeNvidia(id) {
|
|
259
259
|
try {
|
|
260
|
-
await probeClient.chat({ model: id, messages: [{ role: "user", content: "hi" }], max_tokens: 1, stream: false });
|
|
260
|
+
await probeClient.chat({ model: id, messages: [{ role: "user", content: "hi" }], max_tokens: 1, stream: false }, { timeoutMs: 15_000 });
|
|
261
261
|
return "ok";
|
|
262
262
|
}
|
|
263
263
|
catch (e) {
|
package/server/dist/scx.js
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* parsed provider message (so tier/rate-limit `429`s surface cleanly).
|
|
11
11
|
*/
|
|
12
12
|
export const SCX_DEFAULT_BASE_URL = "https://api.scx.ai/v1";
|
|
13
|
+
/** Limit for a whole non-streamed completion (see chat()). */
|
|
14
|
+
export const NON_STREAM_TIMEOUT_MS = Number(process.env.OPEN_RUNNER_NON_STREAM_TIMEOUT_MS ?? 600_000);
|
|
13
15
|
export class SCXError extends Error {
|
|
14
16
|
status;
|
|
15
17
|
type;
|
|
@@ -37,10 +39,10 @@ export class SCXClient {
|
|
|
37
39
|
}
|
|
38
40
|
/** Low-level fetch that injects auth, JSON headers, and a timeout. */
|
|
39
41
|
async request(path, init = {}) {
|
|
40
|
-
const { json, headers, ...rest } = init;
|
|
42
|
+
const { json, headers, timeoutMs = this.timeoutMs, ...rest } = init;
|
|
41
43
|
const apiKey = this.key(); // may throw (vault sealed): before any network call
|
|
42
44
|
const ctrl = new AbortController();
|
|
43
|
-
const t = setTimeout(() => ctrl.abort(),
|
|
45
|
+
const t = setTimeout(() => ctrl.abort(), timeoutMs);
|
|
44
46
|
try {
|
|
45
47
|
return await fetch(`${this.baseUrl}${path}`, {
|
|
46
48
|
...rest,
|
|
@@ -57,7 +59,7 @@ export class SCXClient {
|
|
|
57
59
|
catch (e) {
|
|
58
60
|
if (ctrl.signal.aborted) {
|
|
59
61
|
const host = new URL(this.baseUrl).host;
|
|
60
|
-
throw new SCXError(504, `${host} did not start answering within ${Math.round(
|
|
62
|
+
throw new SCXError(504, `${host} did not start answering within ${Math.round(timeoutMs / 1000)}s. The model may be busy or queued; try again or pick another model.`, "timeout");
|
|
61
63
|
}
|
|
62
64
|
throw e;
|
|
63
65
|
}
|
|
@@ -99,10 +101,13 @@ export class SCXClient {
|
|
|
99
101
|
return data.data;
|
|
100
102
|
}
|
|
101
103
|
// --- Chat Completions -----------------------------------------------------
|
|
102
|
-
async chat(params) {
|
|
104
|
+
async chat(params, opts = {}) {
|
|
105
|
+
// Non-streamed: nothing arrives until the whole answer is written, which a reasoning model
|
|
106
|
+
// can take minutes over, so allow longer than the "started answering" limit for streams.
|
|
103
107
|
const res = await this.request("/chat/completions", {
|
|
104
108
|
method: "POST",
|
|
105
109
|
json: { ...params, stream: false },
|
|
110
|
+
timeoutMs: opts.timeoutMs ?? Math.max(this.timeoutMs, NON_STREAM_TIMEOUT_MS),
|
|
106
111
|
});
|
|
107
112
|
return this.json(res);
|
|
108
113
|
}
|