Skip to content

Conversation

@stainless-app
Copy link
Contributor

@stainless-app stainless-app bot commented Dec 16, 2025

Automated Release PR

0.24.0 (2025-12-17)

Full Changelog: v0.23.0...v0.24.0

Features

  • Enhance AuthAgentInvocationCreateResponse to include already_authenti… (2db6fed)
  • Fix browser pool sdk types (6e0b8a3)

Chores

  • internal: add missing files argument to base client (1dce21b)
  • speedup initial import (74ccf15)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions


Note

Adds Credentials CRUD API and extends agent auth (delete/reauth, credential linking, enhanced invocation response), updates browser pool types, and adds files support to PATCH methods.

  • Features
    • Credentials: New client.credentials resource with create/retrieve/update/list/delete; adds Credential and related param types.
    • Agent Auth:
      • Endpoints: add delete /agents/auth/{id} and post /agents/auth/{id}/reauth (returns ReauthResponse).
      • Create: supports optional credential_name.
      • Invocations: create accepts save_credential_as and returns a discriminated union (already_authenticated | invocation_created).
    • BrowserPools: Fix types by replacing BrowserPoolRequest with BrowserPoolConfig in BrowserPool.
  • Client
    • Add files support to patch() (sync/async) in _base_client.
    • Lazily expose resources via cached_property; add credentials resource; update raw/streaming wrappers.
  • Docs/Meta
    • Update api.md and tests for new endpoints and types; configured endpoints: 82 → 89.
    • Bump version to 0.24.0 and update changelog.

Written by Cursor Bugbot for commit 601a341. This will update automatically on new commits. Configure here.

@stainless-app
Copy link
Contributor Author

stainless-app bot commented Dec 16, 2025

🧪 Testing

To try out this version of the SDK, run:

pip install 'https://pkg.stainless.com/s/kernel-python/6e0b8a39f8ca11297417479994e475c149155967/kernel-0.23.0-py3-none-any.whl'

Expires at: Fri, 16 Jan 2026 23:31:59 GMT
Updated at: Wed, 17 Dec 2025 23:31:59 GMT

) -> ResponseT:
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
opts = FinalRequestOptions.construct(
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Async patch method uses sync file handling function

The async patch method incorrectly uses the synchronous to_httpx_files(files) instead of await async_to_httpx_files(files). The async post method (line 1763) and async put method (line 1791) both correctly use await async_to_httpx_files(files). When files contain PathLike objects, the sync version will perform blocking I/O (path.read_bytes()) in an async context, potentially blocking the event loop.

Fix in Cursor Fix in Web

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from c899551 to eae0512 Compare December 17, 2025 02:01
@stainless-app stainless-app bot changed the title release: 0.23.1 release: 0.24.0 Dec 17, 2025
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from eae0512 to 0824aba Compare December 17, 2025 02:01
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 0824aba to 1570b63 Compare December 17, 2025 04:10
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 1570b63 to 1ff2d12 Compare December 17, 2025 04:35
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 1ff2d12 to 601a341 Compare December 17, 2025 23:31
@Sayan- Sayan- merged commit 78419db into main Dec 17, 2025
8 checks passed
@stainless-app
Copy link
Contributor Author

stainless-app bot commented Dec 17, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants