diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 10f30916..6b7b74c5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.0" + ".": "0.3.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 24460002..91b0d833 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 5 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/tembo%2Ftembo-5fe090391ca60fa921541fe6f752600aa007cc5792e11f72d9ddd826d3fa1c6d.yml -openapi_spec_hash: 6ed695478549a2d1ef66fa823ab7b827 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/tembo%2Ftembo-abb0dd7ce0a04c3649de3cffb4f8cb26b3ed94034a9f2c6250b3c93f613fc1e8.yml +openapi_spec_hash: b1ff97fd7f889922a6d8abd2cd9574b9 config_hash: 8fba1d45a848bce88e9564ab8a960838 diff --git a/CHANGELOG.md b/CHANGELOG.md index de57ecc4..c2ae4ba9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.3.0 (2026-01-13) + +Full Changelog: [v0.2.0...v0.3.0](https://github.com/tembo/sdk-python/compare/v0.2.0...v0.3.0) + +### Features + +* **api:** api update ([21a1a2b](https://github.com/tembo/sdk-python/commit/21a1a2b996a404bafb6b32f711ec95d1fc061a4d)) + ## 0.2.0 (2026-01-05) Full Changelog: [v0.1.0...v0.2.0](https://github.com/tembo/sdk-python/compare/v0.1.0...v0.2.0) diff --git a/pyproject.toml b/pyproject.toml index 935be241..67b32c81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tembo-sdk-python" -version = "0.2.0" +version = "0.3.0" description = "The official Python library for the tembo API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/tembo/_version.py b/src/tembo/_version.py index 235ab975..1c16e702 100644 --- a/src/tembo/_version.py +++ b/src/tembo/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "tembo" -__version__ = "0.2.0" # x-release-please-version +__version__ = "0.3.0" # x-release-please-version diff --git a/src/tembo/resources/task.py b/src/tembo/resources/task.py index 5f208dcc..44160737 100644 --- a/src/tembo/resources/task.py +++ b/src/tembo/resources/task.py @@ -49,10 +49,11 @@ def create( self, *, agent: str | Omit = omit, - branch: Optional[str] | Omit = omit, + branch_name: Optional[str] | Omit = omit, prompt: str | Omit = omit, queue_right_away: Optional[bool] | Omit = omit, repositories: SequenceNotStr[str] | Omit = omit, + target_branch: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -66,7 +67,7 @@ def create( Args: agent: The agent to use for this task - branch: Specific git branch to target for this task + branch_name: The branch name to use for the work prompt: Description of the task to be performed. Supports tagging files. @@ -75,6 +76,8 @@ def create( repositories: Array of code repository urls that this task relates to + target_branch: The branch to open the pull request against (e.g. main, develop) + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -88,10 +91,11 @@ def create( body=maybe_transform( { "agent": agent, - "branch": branch, + "branch_name": branch_name, "prompt": prompt, "queue_right_away": queue_right_away, "repositories": repositories, + "target_branch": target_branch, }, task_create_params.TaskCreateParams, ), @@ -222,10 +226,11 @@ async def create( self, *, agent: str | Omit = omit, - branch: Optional[str] | Omit = omit, + branch_name: Optional[str] | Omit = omit, prompt: str | Omit = omit, queue_right_away: Optional[bool] | Omit = omit, repositories: SequenceNotStr[str] | Omit = omit, + target_branch: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -239,7 +244,7 @@ async def create( Args: agent: The agent to use for this task - branch: Specific git branch to target for this task + branch_name: The branch name to use for the work prompt: Description of the task to be performed. Supports tagging files. @@ -248,6 +253,8 @@ async def create( repositories: Array of code repository urls that this task relates to + target_branch: The branch to open the pull request against (e.g. main, develop) + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -261,10 +268,11 @@ async def create( body=await async_maybe_transform( { "agent": agent, - "branch": branch, + "branch_name": branch_name, "prompt": prompt, "queue_right_away": queue_right_away, "repositories": repositories, + "target_branch": target_branch, }, task_create_params.TaskCreateParams, ), diff --git a/src/tembo/types/task_create_params.py b/src/tembo/types/task_create_params.py index 9df7e21f..9d406fc4 100644 --- a/src/tembo/types/task_create_params.py +++ b/src/tembo/types/task_create_params.py @@ -15,8 +15,8 @@ class TaskCreateParams(TypedDict, total=False): agent: str """The agent to use for this task""" - branch: Optional[str] - """Specific git branch to target for this task""" + branch_name: Annotated[Optional[str], PropertyInfo(alias="branchName")] + """The branch name to use for the work""" prompt: str """Description of the task to be performed. Supports tagging files.""" @@ -29,3 +29,6 @@ class TaskCreateParams(TypedDict, total=False): repositories: SequenceNotStr[str] """Array of code repository urls that this task relates to""" + + target_branch: Annotated[Optional[str], PropertyInfo(alias="targetBranch")] + """The branch to open the pull request against (e.g. main, develop)""" diff --git a/tests/api_resources/test_task.py b/tests/api_resources/test_task.py index a7e0393d..f48bb013 100644 --- a/tests/api_resources/test_task.py +++ b/tests/api_resources/test_task.py @@ -32,10 +32,11 @@ def test_method_create(self, client: Tembo) -> None: def test_method_create_with_all_params(self, client: Tembo) -> None: task = client.task.create( agent="claudeCode:claude-4-5-sonnet", - branch="feature/auth-fix", + branch_name="feature/auth-fix", prompt="Fix the authentication bug in the login component", queue_right_away=False, repositories=["https://github.com/org/repo", "https://gitlab.com/org/repo-2"], + target_branch="main", ) assert_matches_type(TaskCreateResponse, task, path=["response"]) @@ -159,10 +160,11 @@ async def test_method_create(self, async_client: AsyncTembo) -> None: async def test_method_create_with_all_params(self, async_client: AsyncTembo) -> None: task = await async_client.task.create( agent="claudeCode:claude-4-5-sonnet", - branch="feature/auth-fix", + branch_name="feature/auth-fix", prompt="Fix the authentication bug in the login component", queue_right_away=False, repositories=["https://github.com/org/repo", "https://gitlab.com/org/repo-2"], + target_branch="main", ) assert_matches_type(TaskCreateResponse, task, path=["response"])