codex-python 0.2.11__tar.gz → 0.2.13__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codex-python
3
- Version: 0.2.11
3
+ Version: 0.2.13
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3 :: Only
6
6
  Classifier: Programming Language :: Python :: 3.13
@@ -104,7 +104,7 @@ Common tasks
104
104
  - Generate protocol types from upstream: `make gen-protocol`
105
105
 
106
106
  Protocol types
107
- - `make gen-protocol` generates TS types (via Codex or cargo) into `.generated/ts` and then writes Pydantic models to `codex/protocol/types.py`.
107
+ - `make gen-protocol` generates TS types and a JSON Schema, then writes Pydantic v2 models to `codex/protocol/types.py`. The process runs entirely from the native helper in this repo; no manual scripts needed.
108
108
  - Generated models use `model_config = ConfigDict(extra='allow')` and place it at the end of each class.
109
109
 
110
110
  Releasing
@@ -85,7 +85,7 @@ Common tasks
85
85
  - Generate protocol types from upstream: `make gen-protocol`
86
86
 
87
87
  Protocol types
88
- - `make gen-protocol` generates TS types (via Codex or cargo) into `.generated/ts` and then writes Pydantic models to `codex/protocol/types.py`.
88
+ - `make gen-protocol` generates TS types and a JSON Schema, then writes Pydantic v2 models to `codex/protocol/types.py`. The process runs entirely from the native helper in this repo; no manual scripts needed.
89
89
  - Generated models use `model_config = ConfigDict(extra='allow')` and place it at the end of each class.
90
90
 
91
91
  Releasing
@@ -31,4 +31,4 @@ __all__ = [
31
31
  ]
32
32
 
33
33
  # Package version. Kept in sync with Cargo.toml via CI before builds.
34
- __version__ = "0.2.11"
34
+ __version__ = "0.2.13"
@@ -0,0 +1,8 @@
1
+ from __future__ import annotations
2
+
3
+ from pydantic import BaseModel
4
+ from pydantic.config import ConfigDict
5
+
6
+
7
+ class BaseModelWithExtras(BaseModel):
8
+ model_config = ConfigDict(extra="allow")