python-codex 0.1.14__py3-none-any.whl → 0.1.15__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.
@@ -198,7 +198,18 @@ def load_resumed_session(
198
198
  session = sessions[resume_index - 1]
199
199
  thread_id = session["thread_id"]
200
200
  rollout_path = Path(session["rollout_path"])
201
- thread_name = _latest_thread_names_by_id(codex_home).get(thread_id)
201
+ return load_resumed_session_path(
202
+ rollout_path,
203
+ thread_name=_latest_thread_names_by_id(codex_home).get(thread_id),
204
+ )
205
+
206
+
207
+ def load_resumed_session_path(
208
+ rollout_path: 'typing.Union[str, Path]',
209
+ thread_name: 'typing.Union[str, None]' = None,
210
+ ) -> 'typing.Dict[str, object]':
211
+ rollout_path = Path(rollout_path)
212
+ thread_id = _thread_id_from_rollout_path(rollout_path) or ""
202
213
  session_id = thread_id
203
214
  history: 'typing.List[ConversationItem]' = []
204
215
  saw_user_turn = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-codex
3
- Version: 0.1.14
3
+ Version: 0.1.15
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
@@ -60,7 +60,7 @@ pycodex/utils/debug.py,sha256=JeEB5JfzYfbdG0fXlrWFmXyR1ts86fKsI_97IqgF6R0,296
60
60
  pycodex/utils/dotenv.py,sha256=rGKmurHjm7GdP4giyjHBPpSPv2Oi45qBqDB6HG3CnfA,1866
61
61
  pycodex/utils/get_env.py,sha256=5fNhcNhujOakWV6AS66rGW3jEA68WGpuE4YVXJZFE6U,7427
62
62
  pycodex/utils/random_ids.py,sha256=zBphjVGc7OXk9ZNExAbxRi_bk7ipyLG491qTv7hi8jM,380
63
- pycodex/utils/session_persist.py,sha256=OuPaYjrvtsroNcCcZ7Q5QrSRcPN39juYYsgxDjFcb58,17179
63
+ pycodex/utils/session_persist.py,sha256=M2CHgSriLkfL_6a4jhp5KlXfb5DAiW7wNaGW4mLU-_E,17513
64
64
  pycodex/utils/toolcall_visualize.py,sha256=zIqmdsOfyYaLy_P4jpKnRxDsfTgYLRBx55R8m1P_lBE,24708
65
65
  pycodex/utils/visualize.py,sha256=oTl1vqYW3nFBrdLcDyzwYfkNaPEW4OhVahJMHFSVkEg,20591
66
66
  responses_server/__init__.py,sha256=3yPv_zeGT7P11tTnmj5kXktISLNsNW-02MUnnbiZcb0,394
@@ -76,12 +76,12 @@ responses_server/trajectory_dump.py,sha256=XCwYaZZmlAxSsSXOfhk3zRvyfDpOHX5R8Kzsp
76
76
  responses_server/tools/__init__.py,sha256=ivsBSEy0SBUhY-Uea5v1XMLXShkwHdCVl0id-1FwdZg,150
77
77
  responses_server/tools/custom_adapter.py,sha256=LxO7ldydvR-GWachDz8GKC0Q8KGGFoFPbZxM0QvxuZ0,8350
78
78
  responses_server/tools/web_search.py,sha256=pm4ZUiHUfxc0bGY1kEvt-BCzDrZIyP24xzPUcga2ul0,8908
79
- workspace_server/__init__.py,sha256=IfWWf6c7A1DK72qHR7CYQSTr4jBjZ0ce-pfZ3MhlF-w,378
79
+ workspace_server/__init__.py,sha256=XbSU6aAeYBMsBTVi9Ug6ZW9sxcwefqPS7T_7wpt_VMo,462
80
80
  workspace_server/__main__.py,sha256=9SRp-Yw7ShGxc6DhSIXcDLKgGEdAVm3oBZ59rBOPjT0,62
81
- workspace_server/app.py,sha256=XVT9KS5lq0YJ1hPmwpl-IFCV52AzUtEtGbbUUy__Wzg,35704
82
- workspace_server/workspace.html,sha256=d9Flnafumrz-R2sM0DVfdR-YTtRt6ulCenqkQHfcbJI,23412
83
- python_codex-0.1.14.dist-info/METADATA,sha256=pcZ_sLuL-MbHrTjGbZqg_WVIWpSxjoWyFkKmnfH9sZ4,16813
84
- python_codex-0.1.14.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
85
- python_codex-0.1.14.dist-info/entry_points.txt,sha256=vkV2UWCtEKvQNMJuPNjt8HyBKiwp83JyqBatrBNGDp8,80
86
- python_codex-0.1.14.dist-info/licenses/LICENSE,sha256=0X8ifk312hYAORM4hlzg8wVSEXYKNmiPgWlB1YIy2Nw,10926
87
- python_codex-0.1.14.dist-info/RECORD,,
81
+ workspace_server/app.py,sha256=uhV58guXtl8QESEg0xt-b515woKv5mkJ_rVwP3p2YXo,50028
82
+ workspace_server/workspace.html,sha256=7d1eTxQ_4Hl-8YbMFHMTmRPpMRXE-a0KSJn1224JpXw,25563
83
+ python_codex-0.1.15.dist-info/METADATA,sha256=0wlfogi8hE98TqTKJvbDW55r9eBEVvwcpehPgF2-gwk,16813
84
+ python_codex-0.1.15.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
85
+ python_codex-0.1.15.dist-info/entry_points.txt,sha256=vkV2UWCtEKvQNMJuPNjt8HyBKiwp83JyqBatrBNGDp8,80
86
+ python_codex-0.1.15.dist-info/licenses/LICENSE,sha256=0X8ifk312hYAORM4hlzg8wVSEXYKNmiPgWlB1YIy2Nw,10926
87
+ python_codex-0.1.15.dist-info/RECORD,,
@@ -1,4 +1,5 @@
1
1
  from .app import (
2
+ ThreadedWorkspaceInteractiveSession,
2
3
  WebSessionView,
3
4
  WorkspaceInteractiveSession,
4
5
  WorkspaceSessionManager,
@@ -10,6 +11,7 @@ from .app import (
10
11
  )
11
12
 
12
13
  __all__ = [
14
+ "ThreadedWorkspaceInteractiveSession",
13
15
  "WebSessionView",
14
16
  "WorkspaceInteractiveSession",
15
17
  "WorkspaceSessionManager",