Skip to content

Commit 1b47737

Browse files
authored
Merge pull request #9 from onkernel/release-please--branches--main--changes--next--components--sdk
release: 0.1.0-alpha.7
2 parents 40e5ff3 + 3b59da1 commit 1b47737

File tree

12 files changed

+21
-1431
lines changed

12 files changed

+21
-1431
lines changed

.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.1.0-alpha.6"
2+
".": "0.1.0-alpha.7"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 4
1+
configured_endpoints: 3
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-d168b58fcf39dbd0458d132091793d3e2d0930070b7dda2d5f7f1baff20dd31b.yml
33
openapi_spec_hash: b7e0fd7ee1656d7dbad57209d1584d92
4-
config_hash: 2d282609080a6011e3f6222451f72237
4+
config_hash: 9139d1eb064baf60fd2265aac382f097

CHANGELOG.md

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

3+
## 0.1.0-alpha.7 (2025-05-11)
4+
5+
Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/onkernel/kernel-node-sdk/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([aef2da7](https://github.com/onkernel/kernel-node-sdk/commit/aef2da7440950671557470da84955d0293fbbace))
10+
311
## 0.1.0-alpha.6 (2025-05-10)
412

513
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/onkernel/kernel-node-sdk/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ Types:
44

55
- <code><a href="./src/resources/apps.ts">AppDeployResponse</a></code>
66
- <code><a href="./src/resources/apps.ts">AppInvokeResponse</a></code>
7-
- <code><a href="./src/resources/apps.ts">AppRetrieveInvocationResponse</a></code>
87

98
Methods:
109

1110
- <code title="post /apps/deploy">client.apps.<a href="./src/resources/apps.ts">deploy</a>({ ...params }) -> AppDeployResponse</code>
1211
- <code title="post /apps/invoke">client.apps.<a href="./src/resources/apps.ts">invoke</a>({ ...params }) -> AppInvokeResponse</code>
13-
- <code title="get /apps/invocations/{id}">client.apps.<a href="./src/resources/apps.ts">retrieveInvocation</a>(id) -> AppRetrieveInvocationResponse</code>
1412

1513
# Browser
1614

bun.lock

Lines changed: 0 additions & 1370 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onkernel/sdk",
3-
"version": "0.1.0-alpha.6",
3+
"version": "0.1.0-alpha.7",
44
"description": "The official TypeScript library for the Kernel API",
55
"author": "Kernel <>",
66
"types": "dist/index.d.ts",

src/client.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ import {
2525
AppDeployResponse,
2626
AppInvokeParams,
2727
AppInvokeResponse,
28-
AppRetrieveInvocationResponse,
2928
Apps,
3029
} from './resources/apps';
3130
import { Browser, BrowserCreateSessionResponse } from './resources/browser';
3231
import { readEnv } from './internal/utils/env';
3332
import { formatRequestDetails, loggerFor } from './internal/utils/log';
3433
import { isEmptyObj } from './internal/utils/values';
35-
import { KernelApp, appRegistry } from './core/app-framework';
34+
import { KernelApp } from './core/app-framework';
3635

3736
const environments = {
3837
production: 'https://api.onkernel.com/',
@@ -705,14 +704,16 @@ export class Kernel {
705704
}
706705
}
707706

707+
/**
708+
* Create a new KernelApp instance.
709+
*
710+
* @param name - The name of the app to create.
711+
* @returns A new KernelApp instance you can attach actions to.
712+
*/
708713
public app(name: string): KernelApp {
709714
return new KernelApp(name);
710715
}
711716

712-
public static exportRegistry(): string {
713-
return appRegistry.exportJSON();
714-
}
715-
716717
static Kernel = this;
717718
static DEFAULT_TIMEOUT = 60000; // 1 minute
718719

@@ -737,15 +738,13 @@ export class Kernel {
737738
}
738739
Kernel.Apps = Apps;
739740
Kernel.Browser = Browser;
740-
Kernel.exportRegistry = () => appRegistry.exportJSON();
741741
export declare namespace Kernel {
742742
export type RequestOptions = Opts.RequestOptions;
743743

744744
export {
745745
Apps as Apps,
746746
type AppDeployResponse as AppDeployResponse,
747747
type AppInvokeResponse as AppInvokeResponse,
748-
type AppRetrieveInvocationResponse as AppRetrieveInvocationResponse,
749748
type AppDeployParams as AppDeployParams,
750749
type AppInvokeParams as AppInvokeParams,
751750
};

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ export {
2121
UnprocessableEntityError,
2222
} from './core/error';
2323

24-
export { KernelAction, KernelContext, KernelJson } from './core/app-framework';
24+
export { KernelAction, KernelContext, KernelJson, appRegistry } from './core/app-framework';

src/resources/apps.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { APIPromise } from '../core/api-promise';
55
import { type Uploadable } from '../core/uploads';
66
import { RequestOptions } from '../internal/request-options';
77
import { multipartFormRequestOptions } from '../internal/uploads';
8-
import { path } from '../internal/utils/path';
98

109
export class Apps extends APIResource {
1110
/**
@@ -40,20 +39,6 @@ export class Apps extends APIResource {
4039
invoke(body: AppInvokeParams, options?: RequestOptions): APIPromise<AppInvokeResponse> {
4140
return this._client.post('/apps/invoke', { body, ...options });
4241
}
43-
44-
/**
45-
* Get an app invocation by id
46-
*
47-
* @example
48-
* ```ts
49-
* const response = await client.apps.retrieveInvocation(
50-
* 'ckqwer3o20000jb9s7abcdef',
51-
* );
52-
* ```
53-
*/
54-
retrieveInvocation(id: string, options?: RequestOptions): APIPromise<AppRetrieveInvocationResponse> {
55-
return this._client.get(path`/apps/invocations/${id}`, options);
56-
}
5742
}
5843

5944
export interface AppDeployResponse {
@@ -90,22 +75,6 @@ export interface AppInvokeResponse {
9075
output?: string;
9176
}
9277

93-
export interface AppRetrieveInvocationResponse {
94-
id: string;
95-
96-
appName: string;
97-
98-
finishedAt: string | null;
99-
100-
input: string;
101-
102-
output: string;
103-
104-
startedAt: string;
105-
106-
status: string;
107-
}
108-
10978
export interface AppDeployParams {
11079
/**
11180
* Name of the application
@@ -154,7 +123,6 @@ export declare namespace Apps {
154123
export {
155124
type AppDeployResponse as AppDeployResponse,
156125
type AppInvokeResponse as AppInvokeResponse,
157-
type AppRetrieveInvocationResponse as AppRetrieveInvocationResponse,
158126
type AppDeployParams as AppDeployParams,
159127
type AppInvokeParams as AppInvokeParams,
160128
};

src/resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export {
44
Apps,
55
type AppDeployResponse,
66
type AppInvokeResponse,
7-
type AppRetrieveInvocationResponse,
87
type AppDeployParams,
98
type AppInvokeParams,
109
} from './apps';

0 commit comments

Comments
 (0)