From 3059bb70970a0865f93e224e22bd272883905c36 Mon Sep 17 00:00:00 2001 From: YOUR NAME Date: Mon, 17 Nov 2025 16:37:24 -0800 Subject: [PATCH 1/2] Fix type for Checkbox defaultChecked --- chatkit/widgets.py | 2 +- docs/release.md | 9 +++++++++ docs/widgets.md | 2 +- pyproject.toml | 2 +- uv.lock | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/chatkit/widgets.py b/chatkit/widgets.py index 8c64bbd..1d4995f 100644 --- a/chatkit/widgets.py +++ b/chatkit/widgets.py @@ -709,7 +709,7 @@ class Checkbox(WidgetComponentBase): """The name of the form control field used when submitting forms.""" label: str | None = None """Optional label text rendered next to the checkbox.""" - defaultChecked: str | None = None + defaultChecked: bool | None = None """The initial checked state of the checkbox.""" onChangeAction: ActionConfig | None = None """Action dispatched when the checked state changes.""" diff --git a/docs/release.md b/docs/release.md index fb672a2..41909ad 100644 --- a/docs/release.md +++ b/docs/release.md @@ -22,3 +22,12 @@ We will increment patch versions for non-breaking changes: - `CustomSummary`, `CustomTask`, and `EntitySource` types have been updated to restrict `icon` to `IconName`. - All `ThreadItemConverter` methods have been updated to be asynchronous. + +### 1.2.0 + +- Updated `agents.stream_agent_response` to add annotation parts as they are received rather than adding all the annotations at the end after the response is completed. +- Added support for rendering `container_file_citation`. + +### 1.3.0 + +- Fixed the type for the `defaultChecked` property of `Checkbox` widgets, updating it from `string` to `bool`. diff --git a/docs/widgets.md b/docs/widgets.md index bf932f5..f120e73 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -150,7 +150,7 @@ Checkbox input component. | `type` | `Checkbox` | 'Checkbox' | | `name` | `str` | | | `label` | `str | None` | None | -| `defaultChecked` | `str | None` | None | +| `defaultChecked` | `bool | None` | None | | `onChangeAction` | `ActionConfig | None` | None | | `disabled` | `bool | None` | None | | `required` | `bool | None` | None | diff --git a/pyproject.toml b/pyproject.toml index 6688e43..7d96c15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai-chatkit" -version = "1.2.0" +version = "1.3.0" description = "A ChatKit backend SDK." readme = "README.md" requires-python = ">=3.10" diff --git a/uv.lock b/uv.lock index fdec985..f01682d 100644 --- a/uv.lock +++ b/uv.lock @@ -819,7 +819,7 @@ wheels = [ [[package]] name = "openai-chatkit" -version = "1.2.0" +version = "1.3.0" source = { virtual = "." } dependencies = [ { name = "openai" }, From 888bb98c90e7ae3eacf264d356bafd9d9acd6193 Mon Sep 17 00:00:00 2001 From: YOUR NAME Date: Mon, 17 Nov 2025 16:40:39 -0800 Subject: [PATCH 2/2] Fix changelog order --- docs/release.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/release.md b/docs/release.md index 41909ad..93b182a 100644 --- a/docs/release.md +++ b/docs/release.md @@ -18,16 +18,16 @@ We will increment patch versions for non-breaking changes: ## Breaking change changelog -### 1.1.0 +### 1.3.0 -- `CustomSummary`, `CustomTask`, and `EntitySource` types have been updated to restrict `icon` to `IconName`. -- All `ThreadItemConverter` methods have been updated to be asynchronous. +- Fixed the type for the `defaultChecked` property of `Checkbox` widgets, updating it from `string` to `bool`. ### 1.2.0 - Updated `agents.stream_agent_response` to add annotation parts as they are received rather than adding all the annotations at the end after the response is completed. - Added support for rendering `container_file_citation`. -### 1.3.0 +### 1.1.0 -- Fixed the type for the `defaultChecked` property of `Checkbox` widgets, updating it from `string` to `bool`. +- `CustomSummary`, `CustomTask`, and `EntitySource` types have been updated to restrict `icon` to `IconName`. +- All `ThreadItemConverter` methods have been updated to be asynchronous.