Skip to content

Commit 0459d07

Browse files
authored
Merge pull request #12 from onkernel/release-please--branches--main--changes--next
release: 0.5.0
2 parents 16ce790 + 7fdbf85 commit 0459d07

13 files changed

Lines changed: 91 additions & 23 deletions

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.4.0"
2+
".": "0.5.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-64ccdff4ca5d73d79d89e817fe83ccfd3d529696df3e6818c3c75e586ae00801.yml
3-
openapi_spec_hash: 21c7b8757fc0cc9415cda1bc06251de6
4-
config_hash: b3fcacd707da56b21d31ce0baf4fb87d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-4502c65bef0843a6ae96d23bba075433af6bab49b55b544b1522f63e7881c00c.yml
3+
openapi_spec_hash: 3e67b77bbc8cd6155b8f66f3271f2643
4+
config_hash: c6bab7ac8da570a5abbcfb19db119b6b

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## 0.5.0 (2025-06-04)
4+
5+
Full Changelog: [v0.4.0...v0.5.0](https://github.com/onkernel/kernel-go-sdk/compare/v0.4.0...v0.5.0)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([f0b66f8](https://github.com/onkernel/kernel-go-sdk/commit/f0b66f87541f4bc109f479906c3554bffb38c26f))
10+
* **api:** update via SDK Studio ([d60d333](https://github.com/onkernel/kernel-go-sdk/commit/d60d3337306d90c8c51a54c6abeece2731dd4834))
11+
* **client:** allow overriding unions ([51d877d](https://github.com/onkernel/kernel-go-sdk/commit/51d877d1ae7584b237fdb9238e97949b832c3cc8))
12+
13+
14+
### Bug Fixes
15+
16+
* **client:** cast to raw message when converting to params ([de14358](https://github.com/onkernel/kernel-go-sdk/commit/de14358a78248e642c03bd669f9c361bf6b3c8ba))
17+
* fix error ([7d27985](https://github.com/onkernel/kernel-go-sdk/commit/7d2798511671e285d41943c51c3ac8ebc6a7d6d6))
18+
19+
20+
### Chores
21+
22+
* make go mod tidy continue on error ([91b5021](https://github.com/onkernel/kernel-go-sdk/commit/91b50217a8a08dd06ba64e05d025386d91d586c8))
23+
324
## 0.4.0 (2025-05-28)
425

526
Full Changelog: [v0.3.0...v0.4.0](https://github.com/onkernel/kernel-go-sdk/compare/v0.3.0...v0.4.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Or to pin the version:
2424
<!-- x-release-please-start-version -->
2525

2626
```sh
27-
go get -u 'github.com/onkernel/kernel-go-sdk@v0.4.0'
27+
go get -u 'github.com/onkernel/kernel-go-sdk@v0.5.0'
2828
```
2929

3030
<!-- x-release-please-end -->

app.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ func NewAppService(opts ...option.RequestOption) (r AppService) {
3838
return
3939
}
4040

41-
// List application versions for the authenticated user. Optionally filter by app
42-
// name and/or version label.
41+
// List applications. Optionally filter by app name and/or version label.
4342
func (r *AppService) List(ctx context.Context, query AppListParams, opts ...option.RequestOption) (res *[]AppListResponse, err error) {
4443
opts = append(r.Options[:], opts...)
4544
path := "apps"

appdeployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func NewAppDeploymentService(opts ...option.RequestOption) (r AppDeploymentServi
4242
return
4343
}
4444

45-
// Deploy a new application
45+
// Deploy a new application and associated actions to Kernel.
4646
func (r *AppDeploymentService) New(ctx context.Context, body AppDeploymentNewParams, opts ...option.RequestOption) (res *AppDeploymentNewResponse, err error) {
4747
opts = append(r.Options[:], opts...)
4848
path := "deploy"

appinvocation.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ func NewAppInvocationService(opts ...option.RequestOption) (r AppInvocationServi
3535
return
3636
}
3737

38-
// Invoke an application
38+
// Invoke an action.
3939
func (r *AppInvocationService) New(ctx context.Context, body AppInvocationNewParams, opts ...option.RequestOption) (res *AppInvocationNewResponse, err error) {
4040
opts = append(r.Options[:], opts...)
4141
path := "invocations"
4242
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
4343
return
4444
}
4545

46-
// Get an app invocation by id
46+
// Get details about an invocation's status and output.
4747
func (r *AppInvocationService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *AppInvocationGetResponse, err error) {
4848
opts = append(r.Options[:], opts...)
4949
if id == "" {
@@ -55,7 +55,7 @@ func (r *AppInvocationService) Get(ctx context.Context, id string, opts ...optio
5555
return
5656
}
5757

58-
// Update invocation status or output
58+
// Update an invocation's status or output.
5959
func (r *AppInvocationService) Update(ctx context.Context, id string, body AppInvocationUpdateParams, opts ...option.RequestOption) (res *AppInvocationUpdateResponse, err error) {
6060
opts = append(r.Options[:], opts...)
6161
if id == "" {

browser.go

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package kernel
44

55
import (
66
"context"
7+
"encoding/json"
78
"errors"
89
"fmt"
910
"net/http"
@@ -36,15 +37,15 @@ func NewBrowserService(opts ...option.RequestOption) (r BrowserService) {
3637
return
3738
}
3839

39-
// Create Browser Session
40+
// Create a new browser session from within an action.
4041
func (r *BrowserService) New(ctx context.Context, body BrowserNewParams, opts ...option.RequestOption) (res *BrowserNewResponse, err error) {
4142
opts = append(r.Options[:], opts...)
4243
path := "browsers"
4344
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
4445
return
4546
}
4647

47-
// Get Browser Session by ID
48+
// Get information about a browser session.
4849
func (r *BrowserService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *BrowserGetResponse, err error) {
4950
opts = append(r.Options[:], opts...)
5051
if id == "" {
@@ -56,15 +57,15 @@ func (r *BrowserService) Get(ctx context.Context, id string, opts ...option.Requ
5657
return
5758
}
5859

59-
// List active browser sessions for the authenticated user
60+
// List active browser sessions
6061
func (r *BrowserService) List(ctx context.Context, opts ...option.RequestOption) (res *[]BrowserListResponse, err error) {
6162
opts = append(r.Options[:], opts...)
6263
path := "browsers"
6364
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
6465
return
6566
}
6667

67-
// Delete a persistent browser session by persistent_id query parameter.
68+
// Delete a persistent browser session by its persistent_id.
6869
func (r *BrowserService) Delete(ctx context.Context, body BrowserDeleteParams, opts ...option.RequestOption) (err error) {
6970
opts = append(r.Options[:], opts...)
7071
opts = append([]option.RequestOption{option.WithHeader("Accept", "")}, opts...)
@@ -73,7 +74,7 @@ func (r *BrowserService) Delete(ctx context.Context, body BrowserDeleteParams, o
7374
return
7475
}
7576

76-
// Delete Browser Session by ID
77+
// Delete a browser session by ID
7778
func (r *BrowserService) DeleteByID(ctx context.Context, id string, opts ...option.RequestOption) (err error) {
7879
opts = append(r.Options[:], opts...)
7980
opts = append([]option.RequestOption{option.WithHeader("Accept", "")}, opts...)
@@ -110,7 +111,7 @@ func (r *BrowserPersistence) UnmarshalJSON(data []byte) error {
110111
// be used at the last possible moment before sending a request. Test for this with
111112
// BrowserPersistenceParam.Overrides()
112113
func (r BrowserPersistence) ToParam() BrowserPersistenceParam {
113-
return param.Override[BrowserPersistenceParam](r.RawJSON())
114+
return param.Override[BrowserPersistenceParam](json.RawMessage(r.RawJSON()))
114115
}
115116

116117
// Optional persistence configuration for the browser session.
@@ -211,6 +212,9 @@ func (r *BrowserListResponse) UnmarshalJSON(data []byte) error {
211212
type BrowserNewParams struct {
212213
// action invocation ID
213214
InvocationID string `json:"invocation_id,required"`
215+
// If true, launches the browser in stealth mode to reduce detection by anti-bot
216+
// mechanisms.
217+
Stealth param.Opt[bool] `json:"stealth,omitzero"`
214218
// Optional persistence configuration for the browser session.
215219
Persistence BrowserPersistenceParam `json:"persistence,omitzero"`
216220
paramObj

browser_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func TestBrowserNewWithOptionalParams(t *testing.T) {
3131
Persistence: kernel.BrowserPersistenceParam{
3232
ID: "my-awesome-browser-for-user-1234",
3333
},
34+
Stealth: kernel.Bool(true),
3435
})
3536
if err != nil {
3637
var apierr *kernel.Error

internal/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
package internal
44

5-
const PackageVersion = "0.4.0" // x-release-please-version
5+
const PackageVersion = "0.5.0" // x-release-please-version

0 commit comments

Comments
 (0)