python-codex 0.1.7__py3-none-any.whl → 0.1.9__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.9
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
@@ -61,7 +61,7 @@ pycodex/utils/session_persist.py,sha256=dUvo3Z1QBB4HJT1tLerDlLD3ZB25umB6FP6JORg9
61
61
  pycodex/utils/visualize.py,sha256=JURzq2AbV046bblE5fojcAe885Juda0LDxt_gqT2PUc,41006
62
62
  responses_server/__init__.py,sha256=3yPv_zeGT7P11tTnmj5kXktISLNsNW-02MUnnbiZcb0,394
63
63
  responses_server/__main__.py,sha256=9SRp-Yw7ShGxc6DhSIXcDLKgGEdAVm3oBZ59rBOPjT0,62
64
- responses_server/app.py,sha256=4SUG8xqKqmVKVY9i1f5WF9QrnmxGbD4mwiI6s13zQDE,7742
64
+ responses_server/app.py,sha256=53SEwI2pUj_YL8zWvvYhQHiT1EUVVPzdRzOqXDvFMJ0,7770
65
65
  responses_server/config.py,sha256=leb3_uPrCyYdUIkyRyVPX4luGF88dQ62OkhRLPe7uxw,2718
66
66
  responses_server/messages_api.py,sha256=3GPMfs3ksQkhezLyWBjeW5zJ1e_MeHXVaq1lALIA7Mk,16815
67
67
  responses_server/payload_processors.py,sha256=gfOXqvVwlhCk-yjaDdGU4RKcpDdxIq2y6CmqUCggIjY,3444
@@ -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.9.dist-info/METADATA,sha256=TTqLcTsUAiOlUM5qksxFd1TIIV2oeN4thnaa7JML8kM,15719
75
+ python_codex-0.1.9.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
76
+ python_codex-0.1.9.dist-info/entry_points.txt,sha256=sNUVakoVuTrzJH505ZgRTQxmtRRPUHV_EH0i6EbYTyM,45
77
+ python_codex-0.1.9.dist-info/licenses/LICENSE,sha256=0X8ifk312hYAORM4hlzg8wVSEXYKNmiPgWlB1YIy2Nw,10926
78
+ python_codex-0.1.9.dist-info/RECORD,,
responses_server/app.py CHANGED
@@ -177,6 +177,7 @@ class ManagedResponseServer:
177
177
  self._app,
178
178
  host=self._config.host,
179
179
  port=self._config.port,
180
+ loop="asyncio",
180
181
  log_level="error",
181
182
  access_log=False,
182
183
  )