python-codex 0.1.14__tar.gz → 0.1.15__tar.gz
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.
- {python_codex-0.1.14 → python_codex-0.1.15}/PKG-INFO +1 -1
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/utils/session_persist.py +12 -1
- {python_codex-0.1.14 → python_codex-0.1.15}/pyproject.toml +4 -1
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_workspace_server.py +637 -2
- {python_codex-0.1.14 → python_codex-0.1.15}/workspace_server/__init__.py +2 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/workspace_server/app.py +485 -102
- {python_codex-0.1.14 → python_codex-0.1.15}/workspace_server/workspace.html +144 -68
- {python_codex-0.1.14 → python_codex-0.1.15}/.github/workflows/publish.yml +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/.github/workflows/test.yml +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/.gitignore +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/AGENTS.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/LICENSE +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/README.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/README_ZH.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/docs/ALIGNMENT.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/docs/CONTEXT.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/docs/responses_server/README.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/__init__.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/agent.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/cli.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/collaboration.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/compat.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/context.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/doctor.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/feishu_card.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/feishu_link.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/interactive_session.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/model.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/portable.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/portable_server.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/collaboration_default.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/collaboration_plan.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/default_base_instructions.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/models.json +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/permissions/approval_policy/never.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/permissions/approval_policy/on_failure.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/permissions/approval_policy/on_request.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/permissions/approval_policy/on_request_rule_request_permission.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/permissions/approval_policy/unless_trusted.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/permissions/sandbox_mode/danger_full_access.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/permissions/sandbox_mode/read_only.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/prompts/permissions/sandbox_mode/workspace_write.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/protocol.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/runtime.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/runtime_services.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/__init__.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/agent_tool_schemas.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/apply_patch_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/base_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/close_agent_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/code_mode_manager.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/exec_command_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/exec_runtime.js +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/exec_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/grep_files_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/ipython_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/list_dir_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/read_file_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/request_permissions_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/request_user_input_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/resume_agent_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/send_input_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/shell_command_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/shell_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/spawn_agent_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/unified_exec_manager.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/update_plan_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/view_image_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/wait_agent_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/wait_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/web_search_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/tools/write_stdin_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/utils/__init__.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/utils/async_bridge.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/utils/compactor.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/utils/debug.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/utils/dotenv.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/utils/get_env.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/utils/random_ids.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/utils/toolcall_visualize.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/pycodex/utils/visualize.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/__init__.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/__main__.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/app.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/config.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/messages_api.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/payload_processors.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/server.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/session_store.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/stream_router.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/tools/__init__.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/tools/custom_adapter.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/tools/web_search.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/responses_server/trajectory_dump.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/TESTS.md +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/__init__.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/compare_request_user_input_roundtrip.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/compare_steer_request_bodies.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/compare_tool_schemas.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/fake_responses_server.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/fakes.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/responses_server/fake_chat_completions_server.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/responses_server/test_server.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_agent.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_async_bridge.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_builtin_tools.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_cli.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_compactor.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_context.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_doctor.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_fake_responses_server.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_feishu_card.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_feishu_link.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_ipython_tool.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_model.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_portable.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_py36_syntax.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tests/test_visualize.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/tools/feishu_oauth.py +0 -0
- {python_codex-0.1.14 → python_codex-0.1.15}/workspace_server/__main__.py +0 -0
|
@@ -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
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-codex"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.15"
|
|
8
8
|
description = "A minimal Python extraction of Codex's main agent loop"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.6.2"
|
|
@@ -47,6 +47,9 @@ default-groups = []
|
|
|
47
47
|
packages = ["pycodex", "responses_server", "workspace_server"]
|
|
48
48
|
artifacts = ["workspace_server/workspace.html"]
|
|
49
49
|
|
|
50
|
+
[tool.hatch.build.targets.sdist]
|
|
51
|
+
exclude = [".venv*"]
|
|
52
|
+
|
|
50
53
|
[tool.pytest.ini_options]
|
|
51
54
|
pythonpath = ["."]
|
|
52
55
|
asyncio_mode = "auto"
|