Skip to content

Commit 3dd3df9

Browse files
stainless-app[bot]rgarciacursoragent
authored
release: 0.36.0
* chore(internal): remove mock server code * chore: update mock server docs * chore(test): update skip reason message * feat: Add DELETE /deployments/{id} API endpoint * release: 0.36.0 * fix: skip tests that require mock server These tests were missing the test.skip annotation that all other mock-server-dependent tests have, causing CI failures. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Rafael Garcia <raf@kernel.sh> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent a4de86e commit 3dd3df9

28 files changed

+210
-254
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.35.0"
2+
".": "0.36.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 100
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-a0f1d08e6f62a74de2aac5c25e592494abdd59f2cfca2842c5810927554faee0.yml
3-
openapi_spec_hash: ebd8bf67b7bb371cf4b4fa68b967cab5
4-
config_hash: 27c0ea01aeb797a1767af139851c5b66
1+
configured_endpoints: 101
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-bbc3dbdd0410eb315cfaeb21aad9f85e4a7f92ac55526ebb702a8bee343c2ab7.yml
3+
openapi_spec_hash: 60a5134c45a8f3a217e128d4e3335cae
4+
config_hash: 147340811dd6fbb9c2d80515a7e31f9a

CHANGELOG.md

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

3+
## 0.36.0 (2026-02-21)
4+
5+
Full Changelog: [v0.35.0...v0.36.0](https://github.com/kernel/kernel-node-sdk/compare/v0.35.0...v0.36.0)
6+
7+
### Features
8+
9+
* Add DELETE /deployments/{id} API endpoint ([6df842e](https://github.com/kernel/kernel-node-sdk/commit/6df842e5d90124f64c312dd951027f0708a4e74f))
10+
11+
12+
### Chores
13+
14+
* **internal:** remove mock server code ([5784a3f](https://github.com/kernel/kernel-node-sdk/commit/5784a3f2b6ebf92c53767128da5712514bd46660))
15+
* **test:** update skip reason message ([e5d7f07](https://github.com/kernel/kernel-node-sdk/commit/e5d7f07905e39753b164553b85f5439418297f67))
16+
* update mock server docs ([1c1ae0f](https://github.com/kernel/kernel-node-sdk/commit/1c1ae0f5eaba7b0512dccf2c5e5979e30538d966))
17+
318
## 0.35.0 (2026-02-18)
419

520
Full Changelog: [v0.34.0...v0.35.0](https://github.com/kernel/kernel-node-sdk/compare/v0.34.0...v0.35.0)

CONTRIBUTING.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ $ pnpm link -—global @onkernel/sdk
6565

6666
## Running tests
6767

68-
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
69-
70-
```sh
71-
$ npx prism mock path/to/your/openapi.yml
72-
```
73-
7468
```sh
7569
$ yarn run test
7670
```

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Methods:
2727
- <code title="post /deployments">client.deployments.<a href="./src/resources/deployments.ts">create</a>({ ...params }) -> DeploymentCreateResponse</code>
2828
- <code title="get /deployments/{id}">client.deployments.<a href="./src/resources/deployments.ts">retrieve</a>(id) -> DeploymentRetrieveResponse</code>
2929
- <code title="get /deployments">client.deployments.<a href="./src/resources/deployments.ts">list</a>({ ...params }) -> DeploymentListResponsesOffsetPagination</code>
30+
- <code title="delete /deployments/{id}">client.deployments.<a href="./src/resources/deployments.ts">delete</a>(id) -> void</code>
3031
- <code title="get /deployments/{id}/events">client.deployments.<a href="./src/resources/deployments.ts">follow</a>(id, { ...params }) -> DeploymentFollowResponse</code>
3132

3233
# Apps

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.35.0",
3+
"version": "0.36.0",
44
"description": "The official TypeScript library for the Kernel API",
55
"author": "Kernel <>",
66
"types": "dist/index.d.ts",

scripts/mock

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

scripts/test

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,7 @@ set -e
44

55
cd "$(dirname "$0")/.."
66

7-
RED='\033[0;31m'
8-
GREEN='\033[0;32m'
9-
YELLOW='\033[0;33m'
10-
NC='\033[0m' # No Color
117

12-
function prism_is_running() {
13-
curl --silent "http://localhost:4010" >/dev/null 2>&1
14-
}
15-
16-
kill_server_on_port() {
17-
pids=$(lsof -t -i tcp:"$1" || echo "")
18-
if [ "$pids" != "" ]; then
19-
kill "$pids"
20-
echo "Stopped $pids."
21-
fi
22-
}
23-
24-
function is_overriding_api_base_url() {
25-
[ -n "$TEST_API_BASE_URL" ]
26-
}
27-
28-
if ! is_overriding_api_base_url && ! prism_is_running ; then
29-
# When we exit this script, make sure to kill the background mock server process
30-
trap 'kill_server_on_port 4010' EXIT
31-
32-
# Start the dev server
33-
./scripts/mock --daemon
34-
fi
35-
36-
if is_overriding_api_base_url ; then
37-
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
38-
echo
39-
elif ! prism_is_running ; then
40-
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
41-
echo -e "running against your OpenAPI spec."
42-
echo
43-
echo -e "To run the server, pass in the path or url of your OpenAPI"
44-
echo -e "spec to the prism command:"
45-
echo
46-
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
47-
echo
48-
49-
exit 1
50-
else
51-
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
52-
echo
53-
fi
548

559
echo "==> Running tests"
5610
./node_modules/.bin/jest "$@"

src/resources/deployments.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,22 @@ export class Deployments extends APIResource {
6363
});
6464
}
6565

66+
/**
67+
* Stops a running deployment and marks it for deletion. If the deployment is
68+
* already in a terminal state (stopped or failed), returns immediately.
69+
*
70+
* @example
71+
* ```ts
72+
* await client.deployments.delete('id');
73+
* ```
74+
*/
75+
delete(id: string, options?: RequestOptions): APIPromise<void> {
76+
return this._client.delete(path`/deployments/${id}`, {
77+
...options,
78+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
79+
});
80+
}
81+
6682
/**
6783
* Establishes a Server-Sent Events (SSE) stream that delivers real-time logs and
6884
* status updates for a deployment. The stream terminates automatically once the

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.35.0'; // x-release-please-version
1+
export const VERSION = '0.36.0'; // x-release-please-version

0 commit comments

Comments
 (0)