Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperbrowser/sdk",
"version": "1.5.1",
"version": "1.5.2",
"description": "Node SDK for Hyperbrowser API",
"author": "",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/types/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export type CuaReasoningEffort = "none" | "low" | "medium" | "high" | "xhigh" |
export type HyperAgentVersion = "0.8.0" | "1.1.0";

export type HyperAgentLlm =
| "gpt-6.1-terra"
| "gpt-6-luna"
| "gpt-5.6-luna"
| "gpt-5.5"
Expand Down
24 changes: 24 additions & 0 deletions tests/integration/client-http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ const startServer = async (
return;
}

if (request.method === "POST" && request.url === "/api/task/hyper-agent") {
sendJson(response, 200, { jobId: "hyper_agent_job_123", liveUrl: null });
return;
}

if (request.method === "POST" && request.url === "/api/task/claude-computer-use") {
sendJson(response, 200, { jobId: "claude_job_123", liveUrl: null });
return;
Expand Down Expand Up @@ -680,6 +685,25 @@ describe("client HTTP integration", () => {
]);
});

test("HyperAgent accepts GPT-6.1 Terra", async () => {
const server = await startServer();
servers.push(server);
const client = new HyperbrowserClient({
apiKey: "test-api-key",
baseUrl: server.baseUrl,
});

await client.agents.hyperAgent.start({
task: "Complete the task",
llm: "gpt-6.1-terra",
version: "1.1.0",
});

expect(server.requests.map((request) => request.body)).toEqual([
{ task: "Complete the task", llm: "gpt-6.1-terra", version: "1.1.0" },
]);
});

test("session create can start from a snapshot", async () => {
const server = await startServer();
servers.push(server);
Expand Down