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": "scrapybara",
"version": "2.5.1",
"version": "2.5.2",
"private": false,
"repository": "https://github.com/scrapybara/scrapybara-ts",
"main": "./index.js",
Expand Down
16 changes: 8 additions & 8 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export class ScrapybaraClient {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -162,8 +162,8 @@ export class ScrapybaraClient {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -238,8 +238,8 @@ export class ScrapybaraClient {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -300,8 +300,8 @@ export class ScrapybaraClient {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
28 changes: 14 additions & 14 deletions src/api/resources/browser/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export class Browser {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -132,8 +132,8 @@ export class Browser {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -212,8 +212,8 @@ export class Browser {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -300,8 +300,8 @@ export class Browser {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -392,8 +392,8 @@ export class Browser {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -480,8 +480,8 @@ export class Browser {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -561,8 +561,8 @@ export class Browser {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/code/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export class Code {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
12 changes: 6 additions & 6 deletions src/api/resources/env/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export class Env {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -135,8 +135,8 @@ export class Env {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -220,8 +220,8 @@ export class Env {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
40 changes: 20 additions & 20 deletions src/api/resources/instance/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export class Instance {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -134,8 +134,8 @@ export class Instance {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -219,8 +219,8 @@ export class Instance {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -302,8 +302,8 @@ export class Instance {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -388,8 +388,8 @@ export class Instance {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -473,8 +473,8 @@ export class Instance {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -566,8 +566,8 @@ export class Instance {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -648,8 +648,8 @@ export class Instance {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -728,8 +728,8 @@ export class Instance {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -816,8 +816,8 @@ export class Instance {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
1 change: 1 addition & 0 deletions src/api/resources/instance/client/requests/BashRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ export interface BashRequest {
restart?: boolean;
listSessions?: boolean;
checkSession?: number;
timeout?: number;
}
28 changes: 14 additions & 14 deletions src/api/resources/notebook/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export class Notebook {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -136,8 +136,8 @@ export class Notebook {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -219,8 +219,8 @@ export class Notebook {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -301,8 +301,8 @@ export class Notebook {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -388,8 +388,8 @@ export class Notebook {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -475,8 +475,8 @@ export class Notebook {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -560,8 +560,8 @@ export class Notebook {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "scrapybara",
"X-Fern-SDK-Version": "2.5.1",
"User-Agent": "scrapybara/2.5.1",
"X-Fern-SDK-Version": "2.5.2",
"User-Agent": "scrapybara/2.5.2",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const BashRequest: core.serialization.Schema<serializers.BashRequest.Raw,
restart: core.serialization.boolean().optional(),
listSessions: core.serialization.property("list_sessions", core.serialization.boolean().optional()),
checkSession: core.serialization.property("check_session", core.serialization.number().optional()),
timeout: core.serialization.number().optional(),
});

export declare namespace BashRequest {
Expand All @@ -22,5 +23,6 @@ export declare namespace BashRequest {
restart?: boolean | null;
list_sessions?: boolean | null;
check_session?: number | null;
timeout?: number | null;
}
}
2 changes: 2 additions & 0 deletions src/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export function bashTool(instance: UbuntuInstance) {
restart: z.boolean().optional().default(false).describe("Whether to restart the shell"),
listSessions: z.boolean().optional().default(false).describe("Whether to list available sessions"),
checkSession: z.number().optional().describe("Session ID to check if it exists"),
timeout: z.number().optional().describe("Timeout for command execution"),
}),
execute: async (params) => {
return instance.bash({
Expand All @@ -191,6 +192,7 @@ export function bashTool(instance: UbuntuInstance) {
restart: params.restart,
listSessions: params.listSessions,
checkSession: params.checkSession,
timeout: params.timeout,
});
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = "2.5.1";
export const SDK_VERSION = "2.5.2";
Loading