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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.8.3"
".": "0.9.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 19
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-9f2d347a4bcb03aed092ba4495aac090c3d988e9a99af091ee35c09994adad8b.yml
openapi_spec_hash: 73b92bd5503ab6c64dc26da31cca36e2
config_hash: 65328ff206b8c0168c915914506d9dba
configured_endpoints: 31
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-e907afeabfeea49dedd783112ac3fd29267bc86f3d594f89ba9a2abf2bcbc9d8.yml
openapi_spec_hash: 060ca6288c1a09b6d1bdf207a0011165
config_hash: f67e4b33b2fb30c1405ee2fff8096320
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 0.9.0 (2025-08-08)

Full Changelog: [v0.8.3...v0.9.0](https://github.com/onkernel/kernel-node-sdk/compare/v0.8.3...v0.9.0)

### Features

* **api:** browser instance file i/o ([cc7f07f](https://github.com/onkernel/kernel-node-sdk/commit/cc7f07fedf78492e092dd1e982634a6e142f0dfa))


### Bug Fixes

* **methods:** define methods with parameters and binary body correctly ([6c70c14](https://github.com/onkernel/kernel-node-sdk/commit/6c70c147bfca8429aec6c114e42741d405c552b2))


### Chores

* **internal:** move publish config ([7662fc0](https://github.com/onkernel/kernel-node-sdk/commit/7662fc06f49f4816b9ff6328bae5aa70964a4143))

## 0.8.3 (2025-08-01)

Full Changelog: [v0.8.2...v0.8.3](https://github.com/onkernel/kernel-node-sdk/compare/v0.8.2...v0.8.3)
Expand Down
32 changes: 32 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,35 @@ Methods:
- <code title="get /browsers/{id}/replays/{replay_id}">client.browsers.replays.<a href="./src/resources/browsers/replays.ts">download</a>(replayID, { ...params }) -> Response</code>
- <code title="post /browsers/{id}/replays">client.browsers.replays.<a href="./src/resources/browsers/replays.ts">start</a>(id, { ...params }) -> ReplayStartResponse</code>
- <code title="post /browsers/{id}/replays/{replay_id}/stop">client.browsers.replays.<a href="./src/resources/browsers/replays.ts">stop</a>(replayID, { ...params }) -> void</code>

## Fs

Types:

- <code><a href="./src/resources/browsers/fs/fs.ts">FFileInfoResponse</a></code>
- <code><a href="./src/resources/browsers/fs/fs.ts">FListFilesResponse</a></code>

Methods:

- <code title="put /browsers/{id}/fs/create_directory">client.browsers.fs.<a href="./src/resources/browsers/fs/fs.ts">createDirectory</a>(id, { ...params }) -> void</code>
- <code title="put /browsers/{id}/fs/delete_directory">client.browsers.fs.<a href="./src/resources/browsers/fs/fs.ts">deleteDirectory</a>(id, { ...params }) -> void</code>
- <code title="put /browsers/{id}/fs/delete_file">client.browsers.fs.<a href="./src/resources/browsers/fs/fs.ts">deleteFile</a>(id, { ...params }) -> void</code>
- <code title="get /browsers/{id}/fs/file_info">client.browsers.fs.<a href="./src/resources/browsers/fs/fs.ts">fileInfo</a>(id, { ...params }) -> FFileInfoResponse</code>
- <code title="get /browsers/{id}/fs/list_files">client.browsers.fs.<a href="./src/resources/browsers/fs/fs.ts">listFiles</a>(id, { ...params }) -> FListFilesResponse</code>
- <code title="put /browsers/{id}/fs/move">client.browsers.fs.<a href="./src/resources/browsers/fs/fs.ts">move</a>(id, { ...params }) -> void</code>
- <code title="get /browsers/{id}/fs/read_file">client.browsers.fs.<a href="./src/resources/browsers/fs/fs.ts">readFile</a>(id, { ...params }) -> Response</code>
- <code title="put /browsers/{id}/fs/set_file_permissions">client.browsers.fs.<a href="./src/resources/browsers/fs/fs.ts">setFilePermissions</a>(id, { ...params }) -> void</code>
- <code title="put /browsers/{id}/fs/write_file">client.browsers.fs.<a href="./src/resources/browsers/fs/fs.ts">writeFile</a>(id, contents, { ...params }) -> void</code>

### Watch

Types:

- <code><a href="./src/resources/browsers/fs/watch.ts">WatchEventsResponse</a></code>
- <code><a href="./src/resources/browsers/fs/watch.ts">WatchStartResponse</a></code>

Methods:

- <code title="get /browsers/{id}/fs/watch/{watch_id}/events">client.browsers.fs.watch.<a href="./src/resources/browsers/fs/watch.ts">events</a>(watchID, { ...params }) -> WatchEventsResponse</code>
- <code title="post /browsers/{id}/fs/watch">client.browsers.fs.watch.<a href="./src/resources/browsers/fs/watch.ts">start</a>(id, { ...params }) -> WatchStartResponse</code>
- <code title="delete /browsers/{id}/fs/watch/{watch_id}">client.browsers.fs.watch.<a href="./src/resources/browsers/fs/watch.ts">stop</a>(watchID, { ...params }) -> void</code>
2 changes: 1 addition & 1 deletion bin/publish-npm
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ else
fi

# Publish with the appropriate tag
yarn publish --access public --tag "$TAG"
yarn publish --tag "$TAG"
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onkernel/sdk",
"version": "0.8.3",
"version": "0.9.0",
"description": "The official TypeScript library for the Kernel API",
"author": "Kernel <>",
"types": "dist/index.d.ts",
Expand All @@ -13,6 +13,9 @@
"**/*"
],
"private": false,
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "./scripts/test",
"build": "./scripts/build",
Expand Down
32 changes: 32 additions & 0 deletions src/resources/browsers/browsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,29 @@ import {
ReplayStopParams,
Replays,
} from './replays';
import * as FsAPI from './fs/fs';
import {
FCreateDirectoryParams,
FDeleteDirectoryParams,
FDeleteFileParams,
FFileInfoParams,
FFileInfoResponse,
FListFilesParams,
FListFilesResponse,
FMoveParams,
FReadFileParams,
FSetFilePermissionsParams,
FWriteFileParams,
Fs,
} from './fs/fs';
import { APIPromise } from '../../core/api-promise';
import { buildHeaders } from '../../internal/headers';
import { RequestOptions } from '../../internal/request-options';
import { path } from '../../internal/utils/path';

export class Browsers extends APIResource {
replays: ReplaysAPI.Replays = new ReplaysAPI.Replays(this._client);
fs: FsAPI.Fs = new FsAPI.Fs(this._client);

/**
* Create a new browser session from within an action.
Expand Down Expand Up @@ -212,6 +228,7 @@ export interface BrowserDeleteParams {
}

Browsers.Replays = Replays;
Browsers.Fs = Fs;

export declare namespace Browsers {
export {
Expand All @@ -231,4 +248,19 @@ export declare namespace Browsers {
type ReplayStartParams as ReplayStartParams,
type ReplayStopParams as ReplayStopParams,
};

export {
Fs as Fs,
type FFileInfoResponse as FFileInfoResponse,
type FListFilesResponse as FListFilesResponse,
type FCreateDirectoryParams as FCreateDirectoryParams,
type FDeleteDirectoryParams as FDeleteDirectoryParams,
type FDeleteFileParams as FDeleteFileParams,
type FFileInfoParams as FFileInfoParams,
type FListFilesParams as FListFilesParams,
type FMoveParams as FMoveParams,
type FReadFileParams as FReadFileParams,
type FSetFilePermissionsParams as FSetFilePermissionsParams,
type FWriteFileParams as FWriteFileParams,
};
}
3 changes: 3 additions & 0 deletions src/resources/browsers/fs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export * from './fs/index';
Loading