🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

chaser-sdk

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chaser-sdk - npm Package Compare versions

Comparing version
0.1.2
to
0.1.3
+36
-0
dist/types.d.ts

@@ -44,2 +44,12 @@ export type SessionType = 'browser' | 'sandbox';

}
export type NetworkMode = 'direct' | 'proxy';
export interface ProxyConfig {
url: string;
username?: string;
password?: string;
}
export interface NetworkConfig {
mode?: NetworkMode;
proxy?: ProxyConfig;
}
export interface PersistentSessionCreateRequest {

@@ -49,2 +59,3 @@ workspace: string;

proxy?: string;
network?: NetworkConfig;
ephemeral?: false;

@@ -56,2 +67,3 @@ }

proxy?: string;
network?: NetworkConfig;
}

@@ -63,2 +75,3 @@ export interface SandboxEphemeralSessionCreateRequest {

proxy?: string;
network?: NetworkConfig;
}

@@ -113,4 +126,25 @@ export type CreateSessionRequest = PersistentSessionCreateRequest | BrowserEphemeralSessionCreateRequest | SandboxEphemeralSessionCreateRequest;

cargo?: string;
rustc?: string;
go?: string;
}
export interface SessionRuntimeToolVersionsInfo {
node?: string;
python3?: string;
git?: string;
bun?: string;
cargo?: string;
rustc?: string;
go?: string;
}
export interface SessionRuntimeChaserInfo {
session_id?: string;
workspace_id?: string;
workspace_root?: string;
runtime_env?: string;
agent_brief_path?: string;
toolchain_root?: string;
toolchain_attached: boolean;
agent_impl?: string;
image?: string;
}
export interface SessionRuntimeInfo {

@@ -130,3 +164,5 @@ cwd: string;

proxy: SessionRuntimeProxyInfo;
chaser: SessionRuntimeChaserInfo;
tools: SessionRuntimeToolsInfo;
tool_versions: SessionRuntimeToolVersionsInfo;
}

@@ -133,0 +169,0 @@ export interface SessionSelfTestResponse {

+1
-1
{
"name": "chaser-sdk",
"version": "0.1.2",
"version": "0.1.3",
"description": "Official TypeScript SDK for the Chaser",

@@ -5,0 +5,0 @@ "type": "module",

@@ -12,2 +12,3 @@ # chaser-sdk

- files
- runtime self-tests and preview URLs
- browser CDP helpers

@@ -76,2 +77,27 @@ - accounts and organizations

## Runtime diagnostics and previews
```ts
const diagnostics = await client.sessions.selfTest(session.id);
const previewUrl = await client.sessions.forwardUrl(session.id, 3000);
console.log(diagnostics.runtime.tools.node, previewUrl.url);
```
## Network controls
```ts
const session = await client.sessions.create({
ephemeral: true,
session_type: 'sandbox',
network: {
mode: 'proxy',
proxy: {
url: 'socks5h://proxy.example.com:1080',
username: process.env.PROXY_USER,
password: process.env.PROXY_PASSWORD
}
}
});
```
## Browser CDP helper

@@ -133,1 +159,2 @@

- `client.browser.connect()` uses the public CDP endpoint and waits for browser readiness by default.
- `client.sessions.create(...)` now has typed `network.proxy.username/password` support for authenticated upstream proxies.