codex-sdk-python 0.114.0__tar.gz → 0.114.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/PKG-INFO +25 -5
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/README.md +24 -4
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/pyproject.toml +1 -1
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/__init__.py +1 -1
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/integrations/pydantic_ai.py +1 -1
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/abort.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/app_server.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/codex.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/config_overrides.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/events.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/exceptions.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/exec.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/hooks.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/integrations/__init__.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/integrations/pydantic_ai_model.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/items.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/options.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/telemetry.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/thread.py +0 -0
- {codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/tool_envelope.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: codex-sdk-python
|
|
3
|
-
Version: 0.114.
|
|
3
|
+
Version: 0.114.1
|
|
4
4
|
Summary: Python SDK for the Codex CLI agent with async threads, streaming events, and structured outputs
|
|
5
5
|
Keywords: codex,sdk,python,api,cli,agent,async,streaming
|
|
6
6
|
Author: Vectorfy Co
|
|
@@ -44,7 +44,7 @@ Embed the Codex agent in Python workflows. This SDK wraps the bundled `codex` CL
|
|
|
44
44
|
<td><strong>Lifecycle</strong></td>
|
|
45
45
|
<td>
|
|
46
46
|
<a href="#ci-cd"><img src="https://img.shields.io/badge/CI%2FCD-Active-16a34a?style=flat&logo=githubactions&logoColor=white" alt="CI/CD badge" /></a>
|
|
47
|
-
<img src="https://img.shields.io/badge/Release-0.114.
|
|
47
|
+
<img src="https://img.shields.io/badge/Release-0.114.1-6b7280?style=flat&logo=pypi&logoColor=white" alt="Release badge" />
|
|
48
48
|
<a href="#license"><img src="https://img.shields.io/badge/License-Apache--2.0-0f766e?style=flat&logo=apache&logoColor=white" alt="License badge" /></a>
|
|
49
49
|
</td>
|
|
50
50
|
</tr>
|
|
@@ -672,7 +672,7 @@ def add(a: int, b: int) -> int:
|
|
|
672
672
|
|
|
673
673
|
model = CodexModel(
|
|
674
674
|
thread_options=ThreadOptions(
|
|
675
|
-
model="gpt-5",
|
|
675
|
+
model="gpt-5.4",
|
|
676
676
|
sandbox_mode="read-only",
|
|
677
677
|
skip_git_repo_check=True,
|
|
678
678
|
)
|
|
@@ -736,7 +736,7 @@ tool = codex_handoff_tool(
|
|
|
736
736
|
)
|
|
737
737
|
|
|
738
738
|
agent = Agent(
|
|
739
|
-
"openai:gpt-5",
|
|
739
|
+
"openai:gpt-5.4",
|
|
740
740
|
tools=[tool],
|
|
741
741
|
system_prompt=(
|
|
742
742
|
"You can delegate implementation details to the codex_handoff tool. "
|
|
@@ -893,6 +893,23 @@ Coverage is configured in `pyproject.toml` with `fail_under = 95`.
|
|
|
893
893
|
|
|
894
894
|
For SDK release updates, follow `UPGRADE_CHECKLIST.md`.
|
|
895
895
|
|
|
896
|
+
### Run CI checks before push
|
|
897
|
+
|
|
898
|
+
Install the repo-managed pre-push hook in your local clone:
|
|
899
|
+
|
|
900
|
+
```bash
|
|
901
|
+
python scripts/install_git_hooks.py
|
|
902
|
+
```
|
|
903
|
+
|
|
904
|
+
That hook runs the same local lint, type, vendor verification, and test stack
|
|
905
|
+
before allowing a push:
|
|
906
|
+
|
|
907
|
+
```bash
|
|
908
|
+
python scripts/run_ci_checks.py
|
|
909
|
+
```
|
|
910
|
+
|
|
911
|
+
If you need to bypass it for a single push, set `SKIP_PRE_PUSH_CI=1`.
|
|
912
|
+
|
|
896
913
|
### Format and lint
|
|
897
914
|
|
|
898
915
|
```bash
|
|
@@ -911,7 +928,10 @@ uv run mypy src
|
|
|
911
928
|
## 
|
|
912
929
|
|
|
913
930
|
This repository includes GitHub Actions workflows under `.github/workflows/`.
|
|
914
|
-
The CI pipeline runs linting, type checks,
|
|
931
|
+
The CI pipeline runs linting, type checks, binary setup, and
|
|
932
|
+
`pytest --cov=codex_sdk`. For local parity, the checked-in pre-push hook runs
|
|
933
|
+
the same lint/type/test gates plus a non-mutating vendor verification step after
|
|
934
|
+
you install it with `python scripts/install_git_hooks.py`.
|
|
915
935
|
Release automation creates GitHub releases from `CHANGELOG_SDK.md` when you push a
|
|
916
936
|
`vX.Y.Z` tag or manually dispatch the workflow, then the publish workflow uploads
|
|
917
937
|
the package to PyPI on release publish.
|
|
@@ -8,7 +8,7 @@ Embed the Codex agent in Python workflows. This SDK wraps the bundled `codex` CL
|
|
|
8
8
|
<td><strong>Lifecycle</strong></td>
|
|
9
9
|
<td>
|
|
10
10
|
<a href="#ci-cd"><img src="https://img.shields.io/badge/CI%2FCD-Active-16a34a?style=flat&logo=githubactions&logoColor=white" alt="CI/CD badge" /></a>
|
|
11
|
-
<img src="https://img.shields.io/badge/Release-0.114.
|
|
11
|
+
<img src="https://img.shields.io/badge/Release-0.114.1-6b7280?style=flat&logo=pypi&logoColor=white" alt="Release badge" />
|
|
12
12
|
<a href="#license"><img src="https://img.shields.io/badge/License-Apache--2.0-0f766e?style=flat&logo=apache&logoColor=white" alt="License badge" /></a>
|
|
13
13
|
</td>
|
|
14
14
|
</tr>
|
|
@@ -636,7 +636,7 @@ def add(a: int, b: int) -> int:
|
|
|
636
636
|
|
|
637
637
|
model = CodexModel(
|
|
638
638
|
thread_options=ThreadOptions(
|
|
639
|
-
model="gpt-5",
|
|
639
|
+
model="gpt-5.4",
|
|
640
640
|
sandbox_mode="read-only",
|
|
641
641
|
skip_git_repo_check=True,
|
|
642
642
|
)
|
|
@@ -700,7 +700,7 @@ tool = codex_handoff_tool(
|
|
|
700
700
|
)
|
|
701
701
|
|
|
702
702
|
agent = Agent(
|
|
703
|
-
"openai:gpt-5",
|
|
703
|
+
"openai:gpt-5.4",
|
|
704
704
|
tools=[tool],
|
|
705
705
|
system_prompt=(
|
|
706
706
|
"You can delegate implementation details to the codex_handoff tool. "
|
|
@@ -857,6 +857,23 @@ Coverage is configured in `pyproject.toml` with `fail_under = 95`.
|
|
|
857
857
|
|
|
858
858
|
For SDK release updates, follow `UPGRADE_CHECKLIST.md`.
|
|
859
859
|
|
|
860
|
+
### Run CI checks before push
|
|
861
|
+
|
|
862
|
+
Install the repo-managed pre-push hook in your local clone:
|
|
863
|
+
|
|
864
|
+
```bash
|
|
865
|
+
python scripts/install_git_hooks.py
|
|
866
|
+
```
|
|
867
|
+
|
|
868
|
+
That hook runs the same local lint, type, vendor verification, and test stack
|
|
869
|
+
before allowing a push:
|
|
870
|
+
|
|
871
|
+
```bash
|
|
872
|
+
python scripts/run_ci_checks.py
|
|
873
|
+
```
|
|
874
|
+
|
|
875
|
+
If you need to bypass it for a single push, set `SKIP_PRE_PUSH_CI=1`.
|
|
876
|
+
|
|
860
877
|
### Format and lint
|
|
861
878
|
|
|
862
879
|
```bash
|
|
@@ -875,7 +892,10 @@ uv run mypy src
|
|
|
875
892
|
## 
|
|
876
893
|
|
|
877
894
|
This repository includes GitHub Actions workflows under `.github/workflows/`.
|
|
878
|
-
The CI pipeline runs linting, type checks,
|
|
895
|
+
The CI pipeline runs linting, type checks, binary setup, and
|
|
896
|
+
`pytest --cov=codex_sdk`. For local parity, the checked-in pre-push hook runs
|
|
897
|
+
the same lint/type/test gates plus a non-mutating vendor verification step after
|
|
898
|
+
you install it with `python scripts/install_git_hooks.py`.
|
|
879
899
|
Release automation creates GitHub releases from `CHANGELOG_SDK.md` when you push a
|
|
880
900
|
`vX.Y.Z` tag or manually dispatch the workflow, then the publish workflow uploads
|
|
881
901
|
the package to PyPI on release publish.
|
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "codex-sdk-python"
|
|
7
|
-
version = "0.114.
|
|
7
|
+
version = "0.114.1"
|
|
8
8
|
description = "Python SDK for the Codex CLI agent with async threads, streaming events, and structured outputs"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "Apache-2.0"}
|
{codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/integrations/pydantic_ai.py
RENAMED
|
@@ -165,7 +165,7 @@ def codex_handoff_tool(
|
|
|
165
165
|
|
|
166
166
|
Example:
|
|
167
167
|
tool = codex_handoff_tool(thread_options=ThreadOptions(sandbox_mode='workspace-write'))
|
|
168
|
-
agent = Agent('openai:gpt-5', tools=[tool])
|
|
168
|
+
agent = Agent('openai:gpt-5.4', tools=[tool])
|
|
169
169
|
"""
|
|
170
170
|
if codex is None:
|
|
171
171
|
codex = Codex(codex_options)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codex_sdk_python-0.114.0 → codex_sdk_python-0.114.1}/src/codex_sdk/integrations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|