codex-sdk-py 0.0.3__py3-none-any.whl → 0.0.4__py3-none-any.whl
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/__init__.py
CHANGED
codex_sdk/exec.py
CHANGED
|
@@ -381,7 +381,7 @@ def _find_codex_path() -> str:
|
|
|
381
381
|
if not target_triple:
|
|
382
382
|
raise RuntimeError(f"Unsupported platform: {system} ({machine})")
|
|
383
383
|
|
|
384
|
-
#
|
|
384
|
+
# Return bundled binary path (matches TypeScript behavior)
|
|
385
385
|
script_dir = Path(__file__).parent
|
|
386
386
|
vendor_root = script_dir / "vendor"
|
|
387
387
|
arch_root = vendor_root / target_triple
|
|
@@ -389,8 +389,4 @@ def _find_codex_path() -> str:
|
|
|
389
389
|
binary_name = "codex.exe" if sys.platform == "win32" else "codex"
|
|
390
390
|
binary_path = arch_root / "codex" / binary_name
|
|
391
391
|
|
|
392
|
-
|
|
393
|
-
return str(binary_path)
|
|
394
|
-
|
|
395
|
-
# Fall back to PATH
|
|
396
|
-
return "codex"
|
|
392
|
+
return str(binary_path)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codex-sdk-py
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Python SDK for the OpenAI Codex agent
|
|
5
|
-
Project-URL: Homepage, https://github.com/nogataka/codex-sdk-
|
|
6
|
-
Project-URL: Documentation, https://github.com/nogataka/codex-sdk-
|
|
7
|
-
Project-URL: Repository, https://github.com/nogataka/codex-sdk-
|
|
8
|
-
Project-URL: Issues, https://github.com/nogataka/codex-sdk-
|
|
5
|
+
Project-URL: Homepage, https://github.com/nogataka/codex-sdk-py
|
|
6
|
+
Project-URL: Documentation, https://github.com/nogataka/codex-sdk-py#readme
|
|
7
|
+
Project-URL: Repository, https://github.com/nogataka/codex-sdk-py
|
|
8
|
+
Project-URL: Issues, https://github.com/nogataka/codex-sdk-py/issues
|
|
9
9
|
Author-email: OpenAI <support@openai.com>
|
|
10
10
|
License-Expression: Apache-2.0
|
|
11
11
|
Keywords: agent,ai,codex,openai,sdk
|
|
@@ -34,6 +34,17 @@ Embed the Codex agent in your workflows and apps.
|
|
|
34
34
|
|
|
35
35
|
The Python SDK wraps the bundled `codex` binary. It spawns the CLI and exchanges JSONL events over stdin/stdout.
|
|
36
36
|
|
|
37
|
+
## TypeScript版との互換性
|
|
38
|
+
|
|
39
|
+
このPython SDKは [TypeScript版 Codex SDK](https://github.com/openai/codex/tree/main/sdk/typescript) を1対1でポーティングしており、**全ての機能・データ構造・動作が同一**です。
|
|
40
|
+
|
|
41
|
+
- 全8種のイベント型(ThreadStartedEvent, TurnCompletedEvent など)
|
|
42
|
+
- 全8種のアイテム型(AgentMessageItem, CommandExecutionItem など)
|
|
43
|
+
- 全4種のEnum(ApprovalMode, SandboxMode, ModelReasoningEffort, WebSearchMode)
|
|
44
|
+
- CLI引数の構築ロジック、環境変数の処理、TOML設定シリアライズ
|
|
45
|
+
|
|
46
|
+
詳細な比較は [docs/typescript-python-comparison.md](docs/typescript-python-comparison.md) を参照してください。
|
|
47
|
+
|
|
37
48
|
## Installation
|
|
38
49
|
|
|
39
50
|
```bash
|
|
@@ -353,8 +364,8 @@ class WebSearchMode(StrEnum):
|
|
|
353
364
|
|
|
354
365
|
```bash
|
|
355
366
|
# Clone the repository
|
|
356
|
-
git clone https://github.com/
|
|
357
|
-
cd codex
|
|
367
|
+
git clone https://github.com/nogataka/codex-sdk-py.git
|
|
368
|
+
cd codex-sdk-py
|
|
358
369
|
|
|
359
370
|
# Install development dependencies
|
|
360
371
|
pip install -e ".[dev]"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
codex_sdk/__init__.py,sha256=
|
|
1
|
+
codex_sdk/__init__.py,sha256=TCo693ZU0ayytml_2taUppWv9dvgz_KwC7CL6scG4Y0,2442
|
|
2
2
|
codex_sdk/codex.py,sha256=ZTfzyP0Af_mp_6tYk-nRm0hEXjFUnRJUrpIC0RXPaAs,2148
|
|
3
3
|
codex_sdk/codex_options.py,sha256=j6VXVLqXFgfzgfi59uZFXadGSa_Quv3PMhHcY5FXkPs,1174
|
|
4
4
|
codex_sdk/events.py,sha256=fThiDLn3F2osyOYy6X9NYDAlkhpDXBaBdX7j4lvF0nc,2453
|
|
5
|
-
codex_sdk/exec.py,sha256=
|
|
5
|
+
codex_sdk/exec.py,sha256=eEmsnoglXzZf_xTBwqdxQzWEtBIaCEwdAC1mO1pCWhA,13232
|
|
6
6
|
codex_sdk/items.py,sha256=6Vdw_4_IhZWcimfFlH-NCvOZ8dj6T-ktQdPYb0oiVyk,4206
|
|
7
7
|
codex_sdk/output_schema_file.py,sha256=YbMsIVJ6DE8a7XqMWYXZRVqRFhfPQ-bhu2mGI0zrOkk,1950
|
|
8
8
|
codex_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
codex_sdk/thread.py,sha256=njoS-ku6JXM_1jKMddaqk_4bFrj0z-hPGhVV4UYt0o8,7695
|
|
10
10
|
codex_sdk/thread_options.py,sha256=gCfUS-CPcVK1mAgOPRMYW2tsf3F-vpaN6JF93pp8UqA,1742
|
|
11
11
|
codex_sdk/turn_options.py,sha256=iGfg4Tlq5U9whxIOtuqmErRkrmwJXEfOa-fqcTFwoas,535
|
|
12
|
-
codex_sdk_py-0.0.
|
|
13
|
-
codex_sdk_py-0.0.
|
|
14
|
-
codex_sdk_py-0.0.
|
|
12
|
+
codex_sdk_py-0.0.4.dist-info/METADATA,sha256=1kUXvx01jolUDDQnEiF7BNzVsDPxAJVSthMlbITV8E4,12007
|
|
13
|
+
codex_sdk_py-0.0.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
14
|
+
codex_sdk_py-0.0.4.dist-info/RECORD,,
|
|
File without changes
|