diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc341d9..f79a4b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/kernel-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Node uses: actions/setup-node@v4 @@ -41,7 +41,7 @@ jobs: contents: read id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Node uses: actions/setup-node@v4 @@ -74,7 +74,7 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/kernel-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Node uses: actions/setup-node@v4 diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 9032e71..a660478 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Node uses: actions/setup-node@v3 diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 8e58775..588ae1b 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -12,7 +12,7 @@ jobs: if: github.repository == 'kernel/kernel-node-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Check release environment run: | diff --git a/.stats.yml b/.stats.yml index 330b531..2857ba8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 91 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-4f5307643555b7917e8681b1966ae0b99f770cf59805e2f917ec7528edf11ba8.yml -openapi_spec_hash: 873a9aa3a88b6cec1ad94f848eeb1c45 -config_hash: 20337f7888852c165d099faa7589c90a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-fc2c80b398a8dd511010ae7cda5e21c353e388ee130aa288974b47af4208b5b8.yml +openapi_spec_hash: 5e06586dbbb9fce12b907f4e32497006 +config_hash: cc7fdd701d995d4b3456d77041c604cf diff --git a/CHANGELOG.md b/CHANGELOG.md index 941a157..ea2fc14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 0.26.0 (2026-01-17) + +Full Changelog: [v0.26.0...v0.26.0](https://github.com/kernel/kernel-node-sdk/compare/v0.26.0...v0.26.0) + +### Features + +* Auth agents auth check URL ([7c75e74](https://github.com/kernel/kernel-node-sdk/commit/7c75e7439229cb1a699d0eb25fd830ed72053fda)) + + +### Bug Fixes + +* **stainless:** use @onkernel/sdk package name for TypeScript SDK ([0cf8ce1](https://github.com/kernel/kernel-node-sdk/commit/0cf8ce1528ace2106d2dd4f80cf7722aa871409a)) + + +### Chores + +* **internal:** update `actions/checkout` version ([1ddf4de](https://github.com/kernel/kernel-node-sdk/commit/1ddf4de47a73022e392459109d17d25f80f38db9)) + ## 0.26.0 (2026-01-16) Full Changelog: [v0.24.0...v0.26.0](https://github.com/kernel/kernel-node-sdk/compare/v0.24.0...v0.26.0) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d5a7d5d..83efbea 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,12 +55,12 @@ $ cd kernel-node-sdk # With yarn $ yarn link $ cd ../my-package -$ yarn link @kernel/sdk +$ yarn link @onkernel/sdk # With pnpm $ pnpm link --global $ cd ../my-package -$ pnpm link -—global @kernel/sdk +$ pnpm link -—global @onkernel/sdk ``` ## Running tests diff --git a/README.md b/README.md index ea4cb90..54e6fd0 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # Kernel TypeScript API Library -[![NPM version]()](https://npmjs.org/package/@kernel/sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@kernel/sdk) +[![NPM version]()](https://npmjs.org/package/@onkernel/sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@onkernel/sdk) This library provides convenient access to the Kernel REST API from server-side TypeScript or JavaScript. -The REST API documentation can be found on [docs.onkernel.com](https://www.kernel.sh/docs/api-reference). The full API of this library can be found in [api.md](api.md). +The REST API documentation can be found on [kernel.sh](https://kernel.sh/docs). The full API of this library can be found in [api.md](api.md). It is generated with [Stainless](https://www.stainless.com/). ## Installation ```sh -npm install @kernel/sdk +npm install @onkernel/sdk ``` ## Usage @@ -20,7 +20,7 @@ The full API of this library can be found in [api.md](api.md). ```js -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted @@ -38,7 +38,7 @@ This library includes TypeScript definitions for all request params and response ```ts -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted @@ -62,7 +62,7 @@ Request parameters that correspond to file uploads can be passed in many differe ```ts import fs from 'fs'; -import Kernel, { toFile } from '@kernel/sdk'; +import Kernel, { toFile } from '@onkernel/sdk'; const client = new Kernel(); @@ -227,7 +227,7 @@ The log level can be configured in two ways: 2. Using the `logLevel` client option (overrides the environment variable if set) ```ts -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ logLevel: 'debug', // Show all log messages @@ -255,7 +255,7 @@ When providing a custom logger, the `logLevel` option still controls which messa below the configured level will not be sent to your logger. ```ts -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; import pino from 'pino'; const logger = pino(); @@ -324,7 +324,7 @@ globalThis.fetch = fetch; Or pass it to the client: ```ts -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; import fetch from 'my-fetch'; const client = new Kernel({ fetch }); @@ -335,7 +335,7 @@ const client = new Kernel({ fetch }); If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.) ```ts -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ fetchOptions: { @@ -352,7 +352,7 @@ options to requests: **Node** [[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)] ```ts -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; import * as undici from 'undici'; const proxyAgent = new undici.ProxyAgent('http://localhost:8888'); @@ -366,7 +366,7 @@ const client = new Kernel({ **Bun** [[docs](https://bun.sh/guides/http/proxy)] ```ts -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ fetchOptions: { @@ -378,7 +378,7 @@ const client = new Kernel({ **Deno** [[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)] ```ts -import Kernel from 'npm:@kernel/sdk'; +import Kernel from 'npm:@onkernel/sdk'; const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } }); const client = new Kernel({ diff --git a/eslint.config.mjs b/eslint.config.mjs index b9c449d..341aac5 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -25,7 +25,7 @@ export default tseslint.config( { patterns: [ { - regex: '^@kernel/sdk(/.*)?', + regex: '^@onkernel/sdk(/.*)?', message: 'Use a relative import, not a package import.', }, ], diff --git a/jest.config.ts b/jest.config.ts index 091bd92..f21115c 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -7,8 +7,8 @@ const config: JestConfigWithTsJest = { '^.+\\.(t|j)sx?$': ['@swc/jest', { sourceMaps: 'inline' }], }, moduleNameMapper: { - '^@kernel/sdk$': '/src/index.ts', - '^@kernel/sdk/(.*)$': '/src/$1', + '^@onkernel/sdk$': '/src/index.ts', + '^@onkernel/sdk/(.*)$': '/src/$1', }, modulePathIgnorePatterns: [ '/ecosystem-tests/', diff --git a/package.json b/package.json index 56082e4..76168f1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@kernel/sdk", + "name": "@onkernel/sdk", "version": "0.26.0", "description": "The official TypeScript library for the Kernel API", "author": "Kernel <>", diff --git a/scripts/build b/scripts/build index c92df21..a008cb0 100755 --- a/scripts/build +++ b/scripts/build @@ -8,7 +8,7 @@ node scripts/utils/check-version.cjs # Build into dist and will publish the package from there, # so that src/resources/foo.ts becomes /resources/foo.js -# This way importing from `"@kernel/sdk/resources/foo"` works +# This way importing from `"@onkernel/sdk/resources/foo"` works # even with `"moduleResolution": "node"` rm -rf dist; mkdir dist @@ -42,8 +42,8 @@ node scripts/utils/postprocess-files.cjs # make sure that nothing crashes when we require the output CJS or # import the output ESM -(cd dist && node -e 'require("@kernel/sdk")') -(cd dist && node -e 'import("@kernel/sdk")' --input-type=module) +(cd dist && node -e 'require("@onkernel/sdk")') +(cd dist && node -e 'import("@onkernel/sdk")' --input-type=module) if [ -e ./scripts/build-deno ] then diff --git a/src/resources/agents/auth/auth.ts b/src/resources/agents/auth/auth.ts index a02a64f..ac69356 100644 --- a/src/resources/agents/auth/auth.ts +++ b/src/resources/agents/auth/auth.ts @@ -286,6 +286,12 @@ export interface AuthAgent { * When the last authentication check was performed */ last_auth_check_at?: string; + + /** + * URL where the browser landed after successful login. Query parameters and + * fragments are stripped for privacy. + */ + post_login_url?: string; } /** diff --git a/tests/api-resources/agents/auth/auth.test.ts b/tests/api-resources/agents/auth/auth.test.ts index ea592ca..1f8a923 100644 --- a/tests/api-resources/agents/auth/auth.test.ts +++ b/tests/api-resources/agents/auth/auth.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/agents/auth/invocations.test.ts b/tests/api-resources/agents/auth/invocations.test.ts index de72d35..b30496c 100644 --- a/tests/api-resources/agents/auth/invocations.test.ts +++ b/tests/api-resources/agents/auth/invocations.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/apps.test.ts b/tests/api-resources/apps.test.ts index 68cc966..d1a35f2 100644 --- a/tests/api-resources/apps.test.ts +++ b/tests/api-resources/apps.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/browser-pools.test.ts b/tests/api-resources/browser-pools.test.ts index 148b439..97737bb 100644 --- a/tests/api-resources/browser-pools.test.ts +++ b/tests/api-resources/browser-pools.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/browsers/browsers.test.ts b/tests/api-resources/browsers/browsers.test.ts index 9703514..f6d629d 100644 --- a/tests/api-resources/browsers/browsers.test.ts +++ b/tests/api-resources/browsers/browsers.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel, { toFile } from '@kernel/sdk'; +import Kernel, { toFile } from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/browsers/computer.test.ts b/tests/api-resources/browsers/computer.test.ts index acdc93d..b95f0fa 100644 --- a/tests/api-resources/browsers/computer.test.ts +++ b/tests/api-resources/browsers/computer.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/browsers/fs/fs.test.ts b/tests/api-resources/browsers/fs/fs.test.ts index ebb6d48..92a0c9c 100644 --- a/tests/api-resources/browsers/fs/fs.test.ts +++ b/tests/api-resources/browsers/fs/fs.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel, { toFile } from '@kernel/sdk'; +import Kernel, { toFile } from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/browsers/fs/watch.test.ts b/tests/api-resources/browsers/fs/watch.test.ts index 0e4e3a6..47ddfb8 100644 --- a/tests/api-resources/browsers/fs/watch.test.ts +++ b/tests/api-resources/browsers/fs/watch.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/browsers/logs.test.ts b/tests/api-resources/browsers/logs.test.ts index 3fb0227..0fa405e 100644 --- a/tests/api-resources/browsers/logs.test.ts +++ b/tests/api-resources/browsers/logs.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/browsers/playwright.test.ts b/tests/api-resources/browsers/playwright.test.ts index b2a6fe5..5c45947 100644 --- a/tests/api-resources/browsers/playwright.test.ts +++ b/tests/api-resources/browsers/playwright.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/browsers/process.test.ts b/tests/api-resources/browsers/process.test.ts index c428741..c608e24 100644 --- a/tests/api-resources/browsers/process.test.ts +++ b/tests/api-resources/browsers/process.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/browsers/replays.test.ts b/tests/api-resources/browsers/replays.test.ts index 3484b8c..d0ee498 100644 --- a/tests/api-resources/browsers/replays.test.ts +++ b/tests/api-resources/browsers/replays.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/credentials.test.ts b/tests/api-resources/credentials.test.ts index f0e11b6..d825b4e 100644 --- a/tests/api-resources/credentials.test.ts +++ b/tests/api-resources/credentials.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/deployments.test.ts b/tests/api-resources/deployments.test.ts index bbc3793..b3f0c20 100644 --- a/tests/api-resources/deployments.test.ts +++ b/tests/api-resources/deployments.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/extensions.test.ts b/tests/api-resources/extensions.test.ts index eaeb587..515415f 100644 --- a/tests/api-resources/extensions.test.ts +++ b/tests/api-resources/extensions.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel, { toFile } from '@kernel/sdk'; +import Kernel, { toFile } from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/invocations.test.ts b/tests/api-resources/invocations.test.ts index d8f4e5d..b8c8024 100644 --- a/tests/api-resources/invocations.test.ts +++ b/tests/api-resources/invocations.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 51a2925..9fe686a 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/api-resources/proxies.test.ts b/tests/api-resources/proxies.test.ts index afe5fce..1086c4f 100644 --- a/tests/api-resources/proxies.test.ts +++ b/tests/api-resources/proxies.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Kernel from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', diff --git a/tests/base64.test.ts b/tests/base64.test.ts index 9b72246..2e2538e 100644 --- a/tests/base64.test.ts +++ b/tests/base64.test.ts @@ -1,4 +1,4 @@ -import { fromBase64, toBase64 } from '@kernel/sdk/internal/utils/base64'; +import { fromBase64, toBase64 } from '@onkernel/sdk/internal/utils/base64'; describe.each(['Buffer', 'atob'])('with %s', (mode) => { let originalBuffer: BufferConstructor; diff --git a/tests/buildHeaders.test.ts b/tests/buildHeaders.test.ts index ec9447a..039a800 100644 --- a/tests/buildHeaders.test.ts +++ b/tests/buildHeaders.test.ts @@ -1,5 +1,5 @@ import { inspect } from 'node:util'; -import { buildHeaders, type HeadersLike, type NullableHeaders } from '@kernel/sdk/internal/headers'; +import { buildHeaders, type HeadersLike, type NullableHeaders } from '@onkernel/sdk/internal/headers'; function inspectNullableHeaders(headers: NullableHeaders) { return `NullableHeaders {${[ diff --git a/tests/form.test.ts b/tests/form.test.ts index 0c30749..8abe689 100644 --- a/tests/form.test.ts +++ b/tests/form.test.ts @@ -1,5 +1,5 @@ -import { multipartFormRequestOptions, createForm } from '@kernel/sdk/internal/uploads'; -import { toFile } from '@kernel/sdk/core/uploads'; +import { multipartFormRequestOptions, createForm } from '@onkernel/sdk/internal/uploads'; +import { toFile } from '@onkernel/sdk/core/uploads'; describe('form data validation', () => { test('valid values do not error', async () => { diff --git a/tests/index.test.ts b/tests/index.test.ts index c485147..decad6e 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -1,10 +1,10 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import { APIPromise } from '@kernel/sdk/core/api-promise'; +import { APIPromise } from '@onkernel/sdk/core/api-promise'; import util from 'node:util'; -import Kernel from '@kernel/sdk'; -import { APIUserAbortError } from '@kernel/sdk'; +import Kernel from '@onkernel/sdk'; +import { APIUserAbortError } from '@onkernel/sdk'; const defaultFetch = fetch; describe('instantiate client', () => { diff --git a/tests/internal/decoders/line.test.ts b/tests/internal/decoders/line.test.ts index 9f83564..1146678 100644 --- a/tests/internal/decoders/line.test.ts +++ b/tests/internal/decoders/line.test.ts @@ -1,4 +1,4 @@ -import { findDoubleNewlineIndex, LineDecoder } from '@kernel/sdk/internal/decoders/line'; +import { findDoubleNewlineIndex, LineDecoder } from '@onkernel/sdk/internal/decoders/line'; function decodeChunks(chunks: string[], { flush }: { flush: boolean } = { flush: false }): string[] { const decoder = new LineDecoder(); diff --git a/tests/path.test.ts b/tests/path.test.ts index 247f0c8..b209e96 100644 --- a/tests/path.test.ts +++ b/tests/path.test.ts @@ -1,4 +1,4 @@ -import { createPathTagFunction, encodeURIPath } from '@kernel/sdk/internal/utils/path'; +import { createPathTagFunction, encodeURIPath } from '@onkernel/sdk/internal/utils/path'; import { inspect } from 'node:util'; import { runInNewContext } from 'node:vm'; diff --git a/tests/streaming.test.ts b/tests/streaming.test.ts index ac5aa48..0124e21 100644 --- a/tests/streaming.test.ts +++ b/tests/streaming.test.ts @@ -1,6 +1,6 @@ import assert from 'assert'; -import { _iterSSEMessages } from '@kernel/sdk/core/streaming'; -import { ReadableStreamFrom } from '@kernel/sdk/internal/shims'; +import { _iterSSEMessages } from '@onkernel/sdk/core/streaming'; +import { ReadableStreamFrom } from '@onkernel/sdk/internal/shims'; describe('streaming decoding', () => { test('basic', async () => { diff --git a/tests/stringifyQuery.test.ts b/tests/stringifyQuery.test.ts index 05e5cc3..1170f01 100644 --- a/tests/stringifyQuery.test.ts +++ b/tests/stringifyQuery.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import { Kernel } from '@kernel/sdk'; +import { Kernel } from '@onkernel/sdk'; const { stringifyQuery } = Kernel.prototype as any; diff --git a/tests/uploads.test.ts b/tests/uploads.test.ts index df09f70..ba84b0c 100644 --- a/tests/uploads.test.ts +++ b/tests/uploads.test.ts @@ -1,6 +1,6 @@ import fs from 'fs'; -import type { ResponseLike } from '@kernel/sdk/internal/to-file'; -import { toFile } from '@kernel/sdk/core/uploads'; +import type { ResponseLike } from '@onkernel/sdk/internal/to-file'; +import { toFile } from '@onkernel/sdk/core/uploads'; import { File } from 'node:buffer'; class MyClass { @@ -97,7 +97,7 @@ describe('missing File error message', () => { }); test('is thrown', async () => { - const uploads = await import('@kernel/sdk/core/uploads'); + const uploads = await import('@onkernel/sdk/core/uploads'); await expect( uploads.toFile(mockResponse({ url: 'https://example.com/my/audio.mp3' })), ).rejects.toMatchInlineSnapshot( diff --git a/tsconfig.build.json b/tsconfig.build.json index f161b5d..762269d 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -5,8 +5,8 @@ "compilerOptions": { "rootDir": "./dist/src", "paths": { - "@kernel/sdk/*": ["./dist/src/*"], - "@kernel/sdk": ["./dist/src/index.ts"] + "@onkernel/sdk/*": ["./dist/src/*"], + "@onkernel/sdk": ["./dist/src/index.ts"] }, "noEmit": false, "declaration": true, diff --git a/tsconfig.json b/tsconfig.json index 57fc9d6..73ce218 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,8 +8,8 @@ "moduleResolution": "node", "esModuleInterop": true, "paths": { - "@kernel/sdk/*": ["./src/*"], - "@kernel/sdk": ["./src/index.ts"] + "@onkernel/sdk/*": ["./src/*"], + "@onkernel/sdk": ["./src/index.ts"] }, "noEmit": true,