Skip to content

release: 2.7.0 - #245

Open
stainless-app[bot] wants to merge 13 commits into
mainfrom
release-please--branches--main--changes--next
Open

release: 2.7.0#245
stainless-app[bot] wants to merge 13 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app

@stainless-app stainless-app Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Automated Release PR

2.7.0 (2026-07-28)

Full Changelog: v2.6.0...v2.7.0

Features

  • spec: expose computed attributes (8f30d04)
  • spec: hide HighlightConfig.rank_fragments_by's RankBy ref from Stainless (4499367)
  • spec: make compute_attributes value x-stainless-any (bfbe79f)
  • spec: rename HighlightConfig -> HighlightConfigParams (df57c87)
  • stlc: configurable CI runner and private-production-repo support in workflow templates (6db1360)

Bug Fixes

  • internal: resolve build failures (53ce6dd)

Chores

  • regenerate custom types for compute attributes (#246) (98a9d11)

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

@stainless-app

stainless-app Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

🧪 Testing

To try out this version of the SDK:

pip install 'https://pkg.stainless.com/s/turbopuffer-python/5f9badadf89fef1d768e3245de3718eeb122a245/turbopuffer-2.6.0-py3-none-any.whl'

Expires at: Thu, 27 Aug 2026 23:23:48 GMT
Updated at: Tue, 28 Jul 2026 23:23:48 GMT

@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from d9feaff to c78e59f Compare July 17, 2026 17:20
@stainless-app stainless-app Bot changed the title release: 2.6.1 release: 2.7.0 Jul 17, 2026
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from c78e59f to eed8564 Compare July 17, 2026 17:21
…50cc737f03437

Picks up ComputeAttribute support (turbopuffer/turbopuffer-apigen).
…-attributes

scripts: bump turbopuffer-apigen image for ComputeAttribute support
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from eed8564 to 54f11a3 Compare July 17, 2026 23:34
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 54f11a3 to 688106a Compare July 18, 2026 00:06
Comment thread src/turbopuffer/resources/namespaces.py
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 688106a to 6aef733 Compare July 24, 2026 15:41
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 6aef733 to dbe1c32 Compare July 24, 2026 18:00
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from dbe1c32 to 5efa7a9 Compare July 24, 2026 19:58

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5efa7a9. Configure here.

Comment thread uv.lock
[[package]]
name = "turbopuffer"
version = "2.4.0"
version = "2.6.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Lockfile version lags release

Low Severity

The root turbopuffer entry in uv.lock is 2.6.0 while this release sets 2.7.0 in pyproject.toml, _version.py, and the release-please manifest. The lock was updated in this change set but not to the released version.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5efa7a9. Configure here.

Lands the apigen-generated ComputeAttributes union into custom.py. The auto
regen workflow can't push to next (ruleset requires a PR), so landing via PR.
Depends on the HighlightConfig->HighlightConfigParams rename (now on next).
Verified: ruff format leaves it unchanged (idempotent), syntax valid.
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 5efa7a9 to 4b86ab5 Compare July 27, 2026 21:57
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 4b86ab5 to 6a04390 Compare July 27, 2026 23:33
…tes` (#247)

* Rich compute_attributes typing (Path B override)

Hand-type the compute_attributes query param as
Dict[str, ComputeAttributes] using the apigen union in custom.py,
across namespace_query_params, namespace_explain_query_params, and
namespace_multi_query_params.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* chore: regenerate custom.py (ComputeAttributesVectorDist -> Sequence[float])

The committed custom.py carried a stale ComputeAttributesVectorDist using
Vector; current apigen emits Sequence[float] (per the inline VectorDist spec
change). Regenerated via scripts/gen so 'supplemental generated code' is current.

* test: use valid ComputeAttributes union values in namespace tests

compute_attributes is now Dict[str, ComputeAttributes], so the generated
{"foo": "bar"} mocks no longer typecheck. Use the Highlight tuple
("Highlight", "bar"), mirroring how aggregate_by uses ("Sum", "bar").

* test: add ComputeAttributes union serialization test

Exercises every variant of the ComputeAttributes union (VectorDist,
Highlight, HighlightWithConfig, RankBy) through the request-body
serialization path (maybe_transform over NamespaceQueryParams) and
asserts the JSON wire form for each.

Placed in a non-skipped module so it runs in CI (the generated
api_resources tests and test_transform.py are skipped).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 6a04390 to 5f13a9c Compare July 28, 2026 17:56
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 5f13a9c to 21510ad Compare July 28, 2026 23:23
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