@cyberstrike-io/cyberstrike 1.1.16-beta.2 → 1.2.0-beta.0
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/hackbrowser-worker.js +0 -29
- package/package.json +2 -12
package/hackbrowser-worker.js
CHANGED
|
@@ -129489,35 +129489,6 @@ function createModelFromDescriptor(desc) {
|
|
|
129489
129489
|
opts2.fetch = samplingFetch;
|
|
129490
129490
|
return createAnthropic(opts2)(desc.modelApiId);
|
|
129491
129491
|
}
|
|
129492
|
-
if (desc.npm.includes("github-copilot") && desc.copilotToken) {
|
|
129493
|
-
const token = desc.copilotToken;
|
|
129494
|
-
const factory10 = BUNDLED_PROVIDERS[desc.npm];
|
|
129495
|
-
if (!factory10)
|
|
129496
|
-
throw new Error(`hackbrowser: missing bundled provider "${desc.npm}"`);
|
|
129497
|
-
const opts2 = {
|
|
129498
|
-
apiKey: "placeholder",
|
|
129499
|
-
fetch: (url3, init) => {
|
|
129500
|
-
const headers = new Headers(init?.headers);
|
|
129501
|
-
headers.delete("x-api-key");
|
|
129502
|
-
headers.delete("authorization");
|
|
129503
|
-
headers.set("Authorization", `Bearer ${token}`);
|
|
129504
|
-
headers.set("x-initiator", "user");
|
|
129505
|
-
headers.set("User-Agent", `cyberstrike/${CYBERSTRIKE_VERSION}`);
|
|
129506
|
-
headers.set("Openai-Intent", "conversation-edits");
|
|
129507
|
-
return fetch(url3, {
|
|
129508
|
-
...init,
|
|
129509
|
-
headers,
|
|
129510
|
-
body: stripSampling ? stripSamplingParams(init?.body) : init?.body
|
|
129511
|
-
});
|
|
129512
|
-
}
|
|
129513
|
-
};
|
|
129514
|
-
if (desc.baseURL)
|
|
129515
|
-
opts2.baseURL = desc.baseURL;
|
|
129516
|
-
if (desc.headers)
|
|
129517
|
-
opts2.headers = desc.headers;
|
|
129518
|
-
const sdk2 = factory10(opts2);
|
|
129519
|
-
return sdk2.languageModel(desc.modelApiId);
|
|
129520
|
-
}
|
|
129521
129492
|
const factory7 = BUNDLED_PROVIDERS[desc.npm];
|
|
129522
129493
|
if (!factory7) {
|
|
129523
129494
|
throw new Error(`hackbrowser: unsupported model provider "${desc.npm}" (model "${desc.modelApiId}"). ` + `The crawler subprocess can only use providers in the bundled provider map. ` + `Set a bundled API-key provider (e.g. Anthropic, OpenAI, Google/Gemini) as your default model for hackbrowser runs.`);
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"scripts": {
|
|
8
8
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
9
9
|
},
|
|
10
|
-
"version": "1.
|
|
10
|
+
"version": "1.2.0-beta.0",
|
|
11
11
|
"license": "AGPL-3.0-only",
|
|
12
12
|
"keywords": [
|
|
13
13
|
"cyberstrike",
|
|
@@ -40,16 +40,6 @@
|
|
|
40
40
|
"playwright": "1.58.2"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@cyberstrike-io/cyberstrike-
|
|
44
|
-
"@cyberstrike-io/cyberstrike-darwin-arm64": "1.1.16-beta.2",
|
|
45
|
-
"@cyberstrike-io/cyberstrike-linux-arm64": "1.1.16-beta.2",
|
|
46
|
-
"@cyberstrike-io/cyberstrike-windows-x64": "1.1.16-beta.2",
|
|
47
|
-
"@cyberstrike-io/cyberstrike-darwin-x64-baseline": "1.1.16-beta.2",
|
|
48
|
-
"@cyberstrike-io/cyberstrike-linux-x64": "1.1.16-beta.2",
|
|
49
|
-
"@cyberstrike-io/cyberstrike-linux-x64-baseline": "1.1.16-beta.2",
|
|
50
|
-
"@cyberstrike-io/cyberstrike-linux-x64-baseline-musl": "1.1.16-beta.2",
|
|
51
|
-
"@cyberstrike-io/cyberstrike-darwin-x64": "1.1.16-beta.2",
|
|
52
|
-
"@cyberstrike-io/cyberstrike-linux-arm64-musl": "1.1.16-beta.2",
|
|
53
|
-
"@cyberstrike-io/cyberstrike-windows-x64-baseline": "1.1.16-beta.2"
|
|
43
|
+
"@cyberstrike-io/cyberstrike-darwin-arm64": "1.2.0-beta.0"
|
|
54
44
|
}
|
|
55
45
|
}
|