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.
- pycodex/utils/session_persist.py +12 -1
- {python_codex-0.1.14.dist-info → python_codex-0.1.15.dist-info}/METADATA +1 -1
- {python_codex-0.1.14.dist-info → python_codex-0.1.15.dist-info}/RECORD +9 -9
- workspace_server/__init__.py +2 -0
- workspace_server/app.py +485 -102
- workspace_server/workspace.html +144 -68
- {python_codex-0.1.14.dist-info → python_codex-0.1.15.dist-info}/WHEEL +0 -0
- {python_codex-0.1.14.dist-info → python_codex-0.1.15.dist-info}/entry_points.txt +0 -0
- {python_codex-0.1.14.dist-info → python_codex-0.1.15.dist-info}/licenses/LICENSE +0 -0
pycodex/utils/session_persist.py
CHANGED
|
@@ -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
|
-
|
|
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
|
|
@@ -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=
|
|
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=
|
|
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=
|
|
82
|
-
workspace_server/workspace.html,sha256=
|
|
83
|
-
python_codex-0.1.
|
|
84
|
-
python_codex-0.1.
|
|
85
|
-
python_codex-0.1.
|
|
86
|
-
python_codex-0.1.
|
|
87
|
-
python_codex-0.1.
|
|
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,,
|
workspace_server/__init__.py
CHANGED
|
@@ -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",
|