python-codex 0.1.7__py3-none-any.whl → 0.1.8__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.
@@ -142,7 +142,8 @@ class ToolRegistry:
142
142
  tool_type=call.tool_type,
143
143
  )
144
144
  except Exception as exc: # pragma: no cover - defensive wrapper
145
- if (debug_dir := get_debug_dir()) is not None:
145
+ debug_dir = get_debug_dir()
146
+ if debug_dir is not None:
146
147
  with (debug_dir / "tool_errors.jsonl").open("a", encoding="utf-8") as handle:
147
148
  handle.write(
148
149
  json.dumps(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-codex
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: A minimal Python extraction of Codex's main agent loop
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.6.2
@@ -28,7 +28,7 @@ pycodex/prompts/permissions/sandbox_mode/workspace_write.md,sha256=lVN-LwrBbHqlv
28
28
  pycodex/tools/__init__.py,sha256=aSLXrr_31KGQgDfRow5zVIc-2-KdXlHaCE6qUnE4HWI,1772
29
29
  pycodex/tools/agent_tool_schemas.py,sha256=r7pBICcx8fb0Rg6IzIg8-u3um2z11TogQ4yCzuiO-4o,2033
30
30
  pycodex/tools/apply_patch_tool.py,sha256=aFob-gzaCXlzPdCIvRXVKm1NrQqqhqe8CVkFVAhqiTc,13955
31
- pycodex/tools/base_tool.py,sha256=UP1ptOTMmFbnWODJCAhDook3e-IBjqgJ3aW6pZw7rsE,6247
31
+ pycodex/tools/base_tool.py,sha256=vlNw1PoQhXXb8evPjj7bqLOuOcw1ttKl-SrXOHJGVvs,6266
32
32
  pycodex/tools/close_agent_tool.py,sha256=nY3l_UOX6NyTgUqdXag3yRpdyQScV0g0Vv4HE3ElLwg,1597
33
33
  pycodex/tools/code_mode_manager.py,sha256=Wow42H_9IomUKUjjjU8rrAFAklhE-UlgxgrbgHRU_4M,19031
34
34
  pycodex/tools/exec_command_tool.py,sha256=l8GWlZKTvlWWAd_OPKsnnt3m0woMWXK8NkilmspnaQQ,3485
@@ -71,8 +71,8 @@ responses_server/stream_router.py,sha256=OVwaDEsUaKVDNGF2vnqNZTo3WA9h3D3uzHeYY-Q
71
71
  responses_server/tools/__init__.py,sha256=ivsBSEy0SBUhY-Uea5v1XMLXShkwHdCVl0id-1FwdZg,150
72
72
  responses_server/tools/custom_adapter.py,sha256=LxO7ldydvR-GWachDz8GKC0Q8KGGFoFPbZxM0QvxuZ0,8350
73
73
  responses_server/tools/web_search.py,sha256=pm4ZUiHUfxc0bGY1kEvt-BCzDrZIyP24xzPUcga2ul0,8908
74
- python_codex-0.1.7.dist-info/METADATA,sha256=PYpANV2Xz7uP3e666V3LuU2fTHJNo5mSSOUyypdrAe0,15719
75
- python_codex-0.1.7.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
76
- python_codex-0.1.7.dist-info/entry_points.txt,sha256=sNUVakoVuTrzJH505ZgRTQxmtRRPUHV_EH0i6EbYTyM,45
77
- python_codex-0.1.7.dist-info/licenses/LICENSE,sha256=0X8ifk312hYAORM4hlzg8wVSEXYKNmiPgWlB1YIy2Nw,10926
78
- python_codex-0.1.7.dist-info/RECORD,,
74
+ python_codex-0.1.8.dist-info/METADATA,sha256=LAgQh2YnOizB3dQExftZEmRaIMNE_rL6L7rNTxLpzfA,15719
75
+ python_codex-0.1.8.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
76
+ python_codex-0.1.8.dist-info/entry_points.txt,sha256=sNUVakoVuTrzJH505ZgRTQxmtRRPUHV_EH0i6EbYTyM,45
77
+ python_codex-0.1.8.dist-info/licenses/LICENSE,sha256=0X8ifk312hYAORM4hlzg8wVSEXYKNmiPgWlB1YIy2Nw,10926
78
+ python_codex-0.1.8.dist-info/RECORD,,