python-codex 0.5.1__py3-none-any.whl → 0.6.0__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/__init__.py +18 -8
- pycodex/agent.py +89 -74
- pycodex/bootstrap.py +27 -239
- pycodex/cli.py +19 -14
- pycodex/config.py +36 -0
- pycodex/context.py +369 -51
- pycodex/events.py +28 -186
- pycodex/model.py +181 -88
- pycodex/multi_agents.py +401 -0
- pycodex/portable/__init__.py +8 -6
- pycodex/portable/client.py +24 -39
- pycodex/portable/protocol.py +28 -0
- pycodex/portable/server.py +3 -3
- pycodex/prompts/developer_messages.json +13 -0
- pycodex/prompts/goals/budget_limit.md +19 -0
- pycodex/prompts/goals/continuation.md +56 -0
- pycodex/prompts/models.json +1069 -140
- pycodex/protocol.py +78 -15
- pycodex/runtime.py +461 -203
- pycodex/tools/__init__.py +100 -7
- pycodex/tools/agent_tool_schemas.py +0 -38
- pycodex/tools/apply_patch_tool.py +17 -34
- pycodex/tools/base_tool.py +63 -29
- pycodex/tools/clock_manager.py +182 -0
- pycodex/tools/clock_tool.py +2 -139
- pycodex/tools/code_mode_manager.py +165 -246
- pycodex/tools/exec_command_tool.py +0 -12
- pycodex/tools/exec_runtime.py +381 -0
- pycodex/tools/exec_tool.py +78 -31
- pycodex/tools/followup_task_tool.py +44 -0
- pycodex/tools/goal_manager.py +205 -0
- pycodex/tools/goal_tool.py +126 -0
- pycodex/tools/interrupt_agent_tool.py +48 -0
- pycodex/tools/list_agents_tool.py +66 -0
- pycodex/tools/python_tool_schema.py +141 -0
- pycodex/tools/request_permissions_tool.py +1 -0
- pycodex/tools/request_user_input_tool.py +3 -23
- pycodex/tools/runtime_services.py +124 -408
- pycodex/tools/send_message_tool.py +42 -0
- pycodex/tools/spawn_agent_tool.py +55 -94
- pycodex/tools/unified_exec_manager.py +52 -34
- pycodex/tools/wait_agent_tool.py +46 -66
- pycodex/tools/wait_tool.py +24 -13
- pycodex/tools/web_search_tool.py +1 -0
- pycodex/utils/codex_config.py +105 -0
- pycodex/utils/compactor.py +4 -0
- pycodex/utils/compat.py +2 -2
- pycodex/utils/doctor.py +5 -4
- pycodex/utils/event_helpers.py +143 -13
- pycodex/utils/history.py +33 -0
- pycodex/utils/session_persist.py +106 -33
- python_codex-0.6.0.dist-info/METADATA +352 -0
- python_codex-0.6.0.dist-info/RECORD +106 -0
- responses_server/__init__.py +2 -0
- responses_server/app.py +7 -6
- responses_server/config.py +0 -11
- responses_server/payload_processors.py +4 -4
- responses_server/request_translation.py +480 -0
- responses_server/server.py +31 -24
- responses_server/stream_events.py +124 -0
- responses_server/stream_router.py +33 -830
- responses_server/tools/custom_adapter.py +29 -29
- responses_server/transport.py +332 -0
- pycodex/tools/close_agent_tool.py +0 -60
- pycodex/tools/exec_runtime.js +0 -161
- pycodex/tools/resume_agent_tool.py +0 -54
- pycodex/tools/send_input_tool.py +0 -110
- python_codex-0.5.1.dist-info/METADATA +0 -235
- python_codex-0.5.1.dist-info/RECORD +0 -90
- {python_codex-0.5.1.dist-info → python_codex-0.6.0.dist-info}/WHEEL +0 -0
- {python_codex-0.5.1.dist-info → python_codex-0.6.0.dist-info}/entry_points.txt +0 -0
- {python_codex-0.5.1.dist-info → python_codex-0.6.0.dist-info}/licenses/LICENSE +0 -0
pycodex/tools/send_input_tool.py
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"""`send_input` tool for the Python Codex prototype.
|
|
2
|
-
|
|
3
|
-
Original Codex mapping:
|
|
4
|
-
- Corresponds to the original Codex `send_input` collaboration tool.
|
|
5
|
-
|
|
6
|
-
Expected behavior:
|
|
7
|
-
- Send a follow-up message to an existing spawned agent.
|
|
8
|
-
- Optionally interrupt the agent's current turn before queueing the new input.
|
|
9
|
-
- Return the submission id for the queued input.
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
import typing
|
|
13
|
-
|
|
14
|
-
from ..protocol import JSONDict, JSONValue
|
|
15
|
-
from .agent_tool_schemas import COLLAB_INPUT_ITEMS_SCHEMA
|
|
16
|
-
from .base_tool import BaseTool, ToolContext
|
|
17
|
-
from .runtime_services import SubAgentManager
|
|
18
|
-
|
|
19
|
-
SEND_INPUT_OUTPUT_SCHEMA = {
|
|
20
|
-
"type": "object",
|
|
21
|
-
"properties": {
|
|
22
|
-
"submission_id": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "Identifier for the queued input submission.",
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"required": ["submission_id"],
|
|
28
|
-
"additionalProperties": False,
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class SendInputTool(BaseTool):
|
|
33
|
-
name = "send_input"
|
|
34
|
-
description = (
|
|
35
|
-
"Send a message to an existing agent. Use interrupt=true to redirect "
|
|
36
|
-
"work immediately. You should reuse the agent by send_input if you "
|
|
37
|
-
"believe your assigned task is highly dependent on the context of a "
|
|
38
|
-
"previous task."
|
|
39
|
-
)
|
|
40
|
-
input_schema = {
|
|
41
|
-
"type": "object",
|
|
42
|
-
"properties": {
|
|
43
|
-
"id": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"description": "Agent id to message (from spawn_agent).",
|
|
46
|
-
},
|
|
47
|
-
"message": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"description": "Legacy plain-text message to send to the agent. Use either message or items.",
|
|
50
|
-
},
|
|
51
|
-
"items": COLLAB_INPUT_ITEMS_SCHEMA,
|
|
52
|
-
"interrupt": {
|
|
53
|
-
"type": "boolean",
|
|
54
|
-
"description": "True interrupts the current task and handles this message immediately; false or omitted queues it.",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
"required": ["id"],
|
|
58
|
-
"additionalProperties": False,
|
|
59
|
-
}
|
|
60
|
-
output_schema = SEND_INPUT_OUTPUT_SCHEMA
|
|
61
|
-
supports_parallel = False
|
|
62
|
-
|
|
63
|
-
def __init__(self, subagent_manager: "SubAgentManager") -> "None":
|
|
64
|
-
self._subagent_manager = subagent_manager
|
|
65
|
-
|
|
66
|
-
async def run(self, context: "ToolContext", args: "JSONDict") -> "JSONValue":
|
|
67
|
-
del context
|
|
68
|
-
agent_id = str(args.get("id", "")).strip()
|
|
69
|
-
if not agent_id:
|
|
70
|
-
return "Error: `id` is required."
|
|
71
|
-
items = args.get("items")
|
|
72
|
-
if items is not None and not isinstance(items, list):
|
|
73
|
-
return "Error: `items` must be a list when provided."
|
|
74
|
-
prompt_text = self._compose_prompt(
|
|
75
|
-
self._optional_string(args, "message"),
|
|
76
|
-
items,
|
|
77
|
-
)
|
|
78
|
-
if not prompt_text:
|
|
79
|
-
return "Error: `message` or `items` is required."
|
|
80
|
-
return await self._subagent_manager.send_input(
|
|
81
|
-
agent_id,
|
|
82
|
-
prompt_text,
|
|
83
|
-
interrupt=bool(args.get("interrupt", False)),
|
|
84
|
-
)
|
|
85
|
-
|
|
86
|
-
def _compose_prompt(
|
|
87
|
-
self,
|
|
88
|
-
message: "typing.Union[str, None]",
|
|
89
|
-
items: "typing.Union[typing.List[typing.Dict[str, object]], None]",
|
|
90
|
-
) -> "str":
|
|
91
|
-
parts: "typing.List[str]" = []
|
|
92
|
-
if message:
|
|
93
|
-
parts.append(message.strip())
|
|
94
|
-
for item in items or []:
|
|
95
|
-
item_type = str(item.get("type", ""))
|
|
96
|
-
if item_type == "text":
|
|
97
|
-
text = str(item.get("text", "")).strip()
|
|
98
|
-
if text:
|
|
99
|
-
parts.append(text)
|
|
100
|
-
else:
|
|
101
|
-
parts.append(str(item))
|
|
102
|
-
return "\n\n".join(part for part in parts if part)
|
|
103
|
-
|
|
104
|
-
def _optional_string(
|
|
105
|
-
self, args: "JSONDict", key: "str"
|
|
106
|
-
) -> "typing.Union[str, None]":
|
|
107
|
-
value = args.get(key)
|
|
108
|
-
if value in (None, ""):
|
|
109
|
-
return None
|
|
110
|
-
return str(value)
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: python-codex
|
|
3
|
-
Version: 0.5.1
|
|
4
|
-
Summary: A minimal Python extraction of Codex's main agent loop
|
|
5
|
-
License-File: LICENSE
|
|
6
|
-
Requires-Python: >=3.6.2
|
|
7
|
-
Requires-Dist: dataclasses>=0.8; python_version < '3.7'
|
|
8
|
-
Requires-Dist: importlib-metadata>=4.8.3; python_version < '3.8'
|
|
9
|
-
Requires-Dist: loguru>=0.7.3
|
|
10
|
-
Requires-Dist: prompt-toolkit>=3.0.36
|
|
11
|
-
Requires-Dist: pyyaml>=6.0
|
|
12
|
-
Requires-Dist: requests>=2.27.1
|
|
13
|
-
Requires-Dist: starlette<0.20,>=0.19.1; python_version < '3.7'
|
|
14
|
-
Requires-Dist: starlette>=0.19.1; python_version >= '3.7'
|
|
15
|
-
Requires-Dist: tomli<2,>=1.2.3; python_version < '3.11'
|
|
16
|
-
Requires-Dist: typing-extensions>=4.1.1; python_version < '3.8'
|
|
17
|
-
Requires-Dist: uvicorn<0.17,>=0.16.0; python_version < '3.7'
|
|
18
|
-
Requires-Dist: uvicorn>=0.16.0; python_version >= '3.7'
|
|
19
|
-
Description-Content-Type: text/markdown
|
|
20
|
-
|
|
21
|
-
# pycodex
|
|
22
|
-
|
|
23
|
-
[中文](README_ZH.md)
|
|
24
|
-
|
|
25
|
-
pycodex brings the [Codex](https://github.com/openai/codex) agent loop to Python,
|
|
26
|
-
with a CLI, reusable Agent API and browser workspace. It aims to follow upstream
|
|
27
|
-
behavior; supported features and deliberate differences are documented in
|
|
28
|
-
[Alignment](docs/ALIGNMENT.md).
|
|
29
|
-
|
|
30
|
-
| Package | Provides | Python |
|
|
31
|
-
| --- | --- | --- |
|
|
32
|
-
| `python-codex` | Agent, runtime, CLI, tools, Responses compatibility server and portable storage | 3.6.2+ |
|
|
33
|
-
| `pycodex-ws` | Browser workspace, Canvas, file/diff viewers and optional Feishu integration | 3.7+ |
|
|
34
|
-
|
|
35
|
-
The workspace package installs the matching core version. Python imports use
|
|
36
|
-
`pycodex`; the commands are `pycodex` and `pycodex-ws`.
|
|
37
|
-
|
|
38
|
-
## Install and run
|
|
39
|
-
|
|
40
|
-
Install the core CLI:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
python3 -m pip install python-codex
|
|
44
|
-
pycodex
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Or install the browser workspace, which includes core:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
python3 -m pip install pycodex-ws
|
|
51
|
-
pycodex-ws --help
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Use `python3 -m pip install --upgrade pycodex-ws` to upgrade both packages
|
|
55
|
-
together. If a command is missing from `PATH`, use `python3 -m pycodex` or
|
|
56
|
-
`python3 -m workspace_server` with the interpreter used for installation.
|
|
57
|
-
|
|
58
|
-
## Model configuration
|
|
59
|
-
|
|
60
|
-
pycodex reads `~/.codex/config.toml` and the adjacent `.env`. Configure `model`,
|
|
61
|
-
`model_provider`, and the provider's `base_url` and `env_key` as needed.
|
|
62
|
-
The built-in `openai` provider uses `OPENAI_API_KEY`. Authentication uses API
|
|
63
|
-
keys; ChatGPT sign-in credentials from `auth.json` or the OS keychain are not
|
|
64
|
-
loaded.
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
pycodex --profile my_profile "Summarize this repository."
|
|
68
|
-
pycodex --config /path/to/config.toml
|
|
69
|
-
pycodex doctor
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Models use the streaming Responses API. For a Chat Completions backend, set
|
|
73
|
-
`use_chat_completion = true` in its provider table. Other backend options include:
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
pycodex --vllm-endpoint http://127.0.0.1:18000
|
|
77
|
-
pycodex --profile my_profile --use-messages
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
See [context and configuration](docs/CONTEXT.md) and the
|
|
81
|
-
[Responses compatibility server](docs/responses_server/README.md).
|
|
82
|
-
|
|
83
|
-
## CLI
|
|
84
|
-
|
|
85
|
-
Run `pycodex` without a prompt for an interactive session, or supply a prompt
|
|
86
|
-
for a single turn:
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
pycodex "Summarize this repository in one sentence."
|
|
90
|
-
printf 'Reply with exactly OK.' | pycodex
|
|
91
|
-
pycodex --json "Reply with exactly OK."
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
| Command | Purpose |
|
|
95
|
-
| --- | --- |
|
|
96
|
-
| `/model`, `/effort` | Show or change the model and reasoning effort |
|
|
97
|
-
| `/cd <directory>` | Change the session's working directory while idle |
|
|
98
|
-
| `/title`, `/history` | Manage the title and inspect conversation history |
|
|
99
|
-
| `/resume` | List saved sessions; pass an index or session UUID to resume |
|
|
100
|
-
| `/compact` | Summarize history to free context |
|
|
101
|
-
| `/fork` | Continue the current history under a new session ID |
|
|
102
|
-
| `/queue <message>` | Wait for the active turn to finish before submitting |
|
|
103
|
-
|
|
104
|
-
Ordinary input during a turn steers at the next safe sampling boundary.
|
|
105
|
-
Slash input uses Codex's command rules: `/data/project` and `/tmp/` are
|
|
106
|
-
ordinary messages, while an unknown single-component name such as `/modle`
|
|
107
|
-
or `/tmp` reports a command error. Start the input with a space to send any
|
|
108
|
-
slash-prefixed text literally, including known commands such as ` /model`.
|
|
109
|
-
These rules also apply to the browser workspace and Feishu.
|
|
110
|
-
Sessions are saved under `CODEX_HOME/sessions`. Set
|
|
111
|
-
`model_auto_compact_token_limit` in the configuration to compact automatically.
|
|
112
|
-
|
|
113
|
-
Ctrl+D or Ctrl+C closes the CLI after accepted work finishes. A second Ctrl+C
|
|
114
|
-
during closing exits immediately. Use `pycodex --help` for startup options.
|
|
115
|
-
|
|
116
|
-
## Browser workspace
|
|
117
|
-
|
|
118
|
-
Create `workspaces.json`:
|
|
119
|
-
|
|
120
|
-
```json
|
|
121
|
-
{
|
|
122
|
-
"workspaces": [
|
|
123
|
-
{"id": "demo", "work_dir": ".", "state_path": "demo", "enable_board": true}
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
pycodex-ws --listen 127.0.0.1:6007 --workspace-config workspaces.json
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
Open `http://127.0.0.1:6007`. The workspace combines conversations with a live
|
|
133
|
-
HTML Canvas and read-only file/diff viewers. Click file links in replies to open
|
|
134
|
-
them, and use **Insert into chat** to add selected code to an editable draft.
|
|
135
|
-
Keep the server's stdin open: EOF initiates shutdown.
|
|
136
|
-
The gear button starts an Agent conversation for customizing the interface
|
|
137
|
-
through files in `~/.pycodex/frontend/`.
|
|
138
|
-
|
|
139
|
-
See the [workspace guide](packages/pycodex-ws/README.md) for session controls,
|
|
140
|
-
storage and Feishu setup. The separately distributed
|
|
141
|
-
[VS Code extension](packages/pycodex-ws/extensions/vscode/README.md) uses the same
|
|
142
|
-
workspace backend, including on Remote SSH hosts.
|
|
143
|
-
|
|
144
|
-
## Python API
|
|
145
|
-
|
|
146
|
-
Use the standard model and tool setup from Python:
|
|
147
|
-
|
|
148
|
-
```python
|
|
149
|
-
from pycodex.bootstrap import build_agent, build_model
|
|
150
|
-
|
|
151
|
-
agent = build_agent(build_model())
|
|
152
|
-
try:
|
|
153
|
-
result = agent.ask("Summarize this repository in one sentence.")
|
|
154
|
-
print(result.output_text)
|
|
155
|
-
finally:
|
|
156
|
-
agent.shutdown()
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
For custom integrations, `Agent` accepts a model client, `ToolRegistry` and
|
|
160
|
-
`ContextConfig`. `await agent.run_turn([...])` runs an asynchronous turn;
|
|
161
|
-
`AgentRuntime` adds input queues, commands and frontend subscriptions.
|
|
162
|
-
See [runtime contracts and examples](docs/RUNTIME.md).
|
|
163
|
-
|
|
164
|
-
## Portable configuration
|
|
165
|
-
|
|
166
|
-
Portable mode transfers an encrypted bundle of your configuration, instructions
|
|
167
|
-
and skills to another machine. Start a storage service in a separate terminal:
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
python3 -m pycodex.portable.server --root .tmp/pycodex_storage --host 127.0.0.1 --port 5577
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
Upload the default Codex home, or specify another directory:
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
pycodex --put @127.0.0.1:5577
|
|
177
|
-
pycodex --put /path/to/.codex/@127.0.0.1:5577
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
After verifying a download round trip, the command prints a reusable
|
|
181
|
-
`pycodex --call ...` command. Run it on the target machine using a storage
|
|
182
|
-
address reachable from that machine.
|
|
183
|
-
|
|
184
|
-
## Development and reference
|
|
185
|
-
|
|
186
|
-
```bash
|
|
187
|
-
uv sync --dev
|
|
188
|
-
uv run pycodex
|
|
189
|
-
uv run --dev pytest
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
- [Test environments and coverage](tests/TESTS.md)
|
|
193
|
-
- [Architecture, package layout and runtime contracts](docs/RUNTIME.md)
|
|
194
|
-
- [Prompts, configuration and context](docs/CONTEXT.md)
|
|
195
|
-
- [Upstream alignment](docs/ALIGNMENT.md)
|
|
196
|
-
- [Responses compatibility server](docs/responses_server/README.md)
|
|
197
|
-
|
|
198
|
-
Release notes and implementation details live in `docs/`.
|
|
199
|
-
|
|
200
|
-
## Markdown view modes
|
|
201
|
-
|
|
202
|
-
Markdown file views include a Show source / Show preview button. Switching
|
|
203
|
-
modes preserves each mode's reading position without replaying a previous line
|
|
204
|
-
target.
|
|
205
|
-
|
|
206
|
-
## Responses reliability
|
|
207
|
-
|
|
208
|
-
Providers can opt into ordered failover with `fallback_models = ["backup-one",
|
|
209
|
-
"backup-two"]` in their `[model_providers.<name>]` table. Each target uses the
|
|
210
|
-
same endpoint, credentials, history and tools; request settings are rebuilt for
|
|
211
|
-
that model, while the session's selected model stays unchanged. Transient errors
|
|
212
|
-
exhaust `stream_max_retries` before advancing. Unavailable-model errors and
|
|
213
|
-
first-data timeouts advance immediately. Existing retry notices name both models
|
|
214
|
-
and include the underlying error.
|
|
215
|
-
|
|
216
|
-
Failed models cool down for 900 seconds within that client. Subsequent requests
|
|
217
|
-
skip them, retry them after expiry, and restart the full chain when every target
|
|
218
|
-
is cooling. `fallback_cooldown_seconds = 0` disables cooldown; explicit model
|
|
219
|
-
selection clears it. New sessions and subagents have independent cooldowns.
|
|
220
|
-
An absent or empty list disables failover. Invalid input, context-length and
|
|
221
|
-
terminal incomplete errors retain their existing handling. Backups must support
|
|
222
|
-
the active tools and context size; compaction keeps the selected model's policy.
|
|
223
|
-
|
|
224
|
-
Responses HTTP 408/429 and server errors use the provider retry budget.
|
|
225
|
-
Rate-limit messages containing `try again in` or `retry after` supply the retry
|
|
226
|
-
delay. CLI and workspace retry notices include the underlying error details;
|
|
227
|
-
workspace notices survive browser refresh and active-turn reattachment, and
|
|
228
|
-
remain separate from the assistant reply. They are not persisted in rollouts.
|
|
229
|
-
|
|
230
|
-
## Workspace input history
|
|
231
|
-
|
|
232
|
-
The workspace message box supports Up/Down input history. Up recalls earlier
|
|
233
|
-
human inputs in the current conversation; Down returns to the unsent draft.
|
|
234
|
-
Automatic wake-up messages are excluded, and arrows retain normal cursor
|
|
235
|
-
movement inside multiline drafts.
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
pycodex/__init__.py,sha256=fHEyhylULeRo-5xEnl-UxT5ZpBzbFzRW7vLwdy_7oxU,2660
|
|
2
|
-
pycodex/__main__.py,sha256=MHKZ_ae3fSLGTLUUMOx15fWdeOnJSHhq-zslRP5F5Lc,79
|
|
3
|
-
pycodex/agent.py,sha256=n37WeYIEZXahhHSv4fXc5wR5PF1SLuTn5LNl5Zwcogo,21863
|
|
4
|
-
pycodex/bootstrap.py,sha256=wUNipqvIPzJlcP3PTY0cCyPH_QTeIbSR8xtyw4AEP6Y,12282
|
|
5
|
-
pycodex/cli.py,sha256=uCrRARI2IypIU-1aC0Y2DLzhzYGWQta1f7zYWsyaNnU,12797
|
|
6
|
-
pycodex/context.py,sha256=8P3fBXbwzTKmoXGDdkzTsAghfOkAZstJnMTqr-cxHyI,27019
|
|
7
|
-
pycodex/events.py,sha256=Vmmtx3CcjB1UMpaAMy4c8xhbcYvTGjyjHdgba0gcdVo,30252
|
|
8
|
-
pycodex/model.py,sha256=KmSO-k_QkOm5qCgkVk9gibvyyiU6-tImZY-PUcX5S6I,54043
|
|
9
|
-
pycodex/protocol.py,sha256=uzUz_06iA4m9vAoqZeCGiJ4SocKZDzOfCJUU4Bpt5dI,12033
|
|
10
|
-
pycodex/runtime.py,sha256=qYItoNQvz7Mq72hjWjC60eAOUCxYWBsmzhV9fwFImjs,25248
|
|
11
|
-
pycodex/portable/__init__.py,sha256=FmspRPmblYuZIVXMpXaxE1uosCaz2hZDpkpOzxDJQic,1084
|
|
12
|
-
pycodex/portable/client.py,sha256=DOxzZljVfN1ynmhqrChX7NsT1IFSFVKzEn1J3wvV3XQ,16038
|
|
13
|
-
pycodex/portable/server.py,sha256=w4YD71Sxb7MD5q57GPuIgx7AoicTv0R9xzX2kAaibPA,7503
|
|
14
|
-
pycodex/prompts/default_base_instructions.md,sha256=D65mcj6bo4CDvVom-D9cbJRJVNquo0NghKt164_fRsg,20923
|
|
15
|
-
pycodex/prompts/models.json,sha256=u-bS5xtI7ZHbrG_nbzrt-xmp5RtQT6YL8PHbd_4XZB4,397650
|
|
16
|
-
pycodex/prompts/permissions/approval_policy/never.md,sha256=QceTG6wjkaJARjYr0HYV1aPnPcpGcrkRUW-smWRr6MQ,120
|
|
17
|
-
pycodex/prompts/permissions/approval_policy/on_failure.md,sha256=dfJjpXkpO6_ANdCKxbVJ8o4vyLxevrJWfKsGHTqtbkc,289
|
|
18
|
-
pycodex/prompts/permissions/approval_policy/on_request.md,sha256=hVQalzh0FAdkKzw5u-N4H7-LtC9ijVDlYsh3OKsZKzo,3661
|
|
19
|
-
pycodex/prompts/permissions/approval_policy/on_request_rule_request_permission.md,sha256=mOinishp1k-wlPsaEuIOMn5GoVm_dAIsWIuEMmv2r7o,1725
|
|
20
|
-
pycodex/prompts/permissions/approval_policy/unless_trusted.md,sha256=XHpi1Lfx1iIXFbbQ_ho_kGstA3JN-RLho291HM30UNw,247
|
|
21
|
-
pycodex/prompts/permissions/sandbox_mode/danger_full_access.md,sha256=nZ7YHacBd3cAHKRZc9XClOOOnXJPXPh0WFBueh5C2D0,197
|
|
22
|
-
pycodex/prompts/permissions/sandbox_mode/read_only.md,sha256=2rAPEXsBYCcuttI5j3euS-3uv_v97catIsnhxlSQSIM,173
|
|
23
|
-
pycodex/prompts/permissions/sandbox_mode/workspace_write.md,sha256=lVN-LwrBbHqlv5yVjcd_mU8tzZW8jfKpTatJKIZu9HI,277
|
|
24
|
-
pycodex/tools/__init__.py,sha256=UYwmsX_Ckw_YaYQ6TYhUU6w5pxi2qzZoTrq6BAgNErM,1857
|
|
25
|
-
pycodex/tools/agent_tool_schemas.py,sha256=8cL9ml4So0H6IIeK0ZzjAo9bk3VeprDOSYPpIamOqEU,2048
|
|
26
|
-
pycodex/tools/apply_patch_tool.py,sha256=n30M-ofZlOkDCC18nX10MPF5FLROiURACFLG1hd4FK8,13906
|
|
27
|
-
pycodex/tools/base_tool.py,sha256=NtzDTCudWIdwjhfgk6kd98C5KVl3PrruymOOURLApSA,6655
|
|
28
|
-
pycodex/tools/clock_tool.py,sha256=2_RYbBEw4V9_f1L-qZl3hhJ6XNPM_gBDmOlCh1cCAjo,6575
|
|
29
|
-
pycodex/tools/close_agent_tool.py,sha256=uIbCjsQx9MLkjVYheS8ZVf5VVPbC6Iviwox4pneJpmI,2030
|
|
30
|
-
pycodex/tools/code_mode_manager.py,sha256=oEzYkebFdgX993NBC0A4R0mthg4qdhJ-dD0fgeE3III,18948
|
|
31
|
-
pycodex/tools/exec_command_tool.py,sha256=EvlV355-i9trrKTAXDFiZyYMviTxL_FehhKlQmjuDpw,4443
|
|
32
|
-
pycodex/tools/exec_runtime.js,sha256=DR1uocKailTqNWAcJNFJuQgFFMSUzTpT_uQsRaneg2s,3643
|
|
33
|
-
pycodex/tools/exec_tool.py,sha256=tuC21rlhP8CPSYml4XnSDSRV0UPGkQ6aHj0DLIoOOvM,2274
|
|
34
|
-
pycodex/tools/grep_files_tool.py,sha256=KCBVNaSTU45ND-iAhh14YawMyjQnMRZnGI1NGKL3zgg,4809
|
|
35
|
-
pycodex/tools/list_dir_tool.py,sha256=_U6ouRcVbGHT5mChVyUsiMgDGrFK7EFMFaspPLAHtH8,5337
|
|
36
|
-
pycodex/tools/read_file_tool.py,sha256=YK__uhIVldBjAQega5S_ZuZU5jgP_kLOwr-YhjAmRo4,9735
|
|
37
|
-
pycodex/tools/request_permissions_tool.py,sha256=nEt3_uw3lmFXyydqcN3PxuKwrEvaRPtfjA_U8nikCtU,3978
|
|
38
|
-
pycodex/tools/request_user_input_tool.py,sha256=_7siHF2p3KiNDFwsTqKKIUw2kPCXMzLaR12PkZ1wdIQ,4050
|
|
39
|
-
pycodex/tools/resume_agent_tool.py,sha256=bZvXEUNdc1RVD2N5Msjv63Rni62FQk4gj9LAXK1Vsy8,1613
|
|
40
|
-
pycodex/tools/runtime_services.py,sha256=KPLtB1e7jmqEN9rhXV70rUMlhYNFsXja4CypIunzXLU,15962
|
|
41
|
-
pycodex/tools/send_input_tool.py,sha256=w63SKM05_e3oXvdaBtL-hk941TvkWKuTUDEqTSyWEMQ,3761
|
|
42
|
-
pycodex/tools/shell_command_tool.py,sha256=bJKlTdIs2i28vH5f4GZfpunezr6JNicRzsL_6Vc3HvU,3675
|
|
43
|
-
pycodex/tools/shell_tool.py,sha256=I6lYLABSmLddRrNmpk0Li83AV55MI8x0bckWaRkFGI0,3527
|
|
44
|
-
pycodex/tools/spawn_agent_tool.py,sha256=Jx5jYpxsH_CQ3BLkXYPZuIINW5deO_zY8tyw8kZpreY,6208
|
|
45
|
-
pycodex/tools/unified_exec_manager.py,sha256=n6N9Sf125Tt4Vdl8C0lqng8tQbS7Dj04uZnDVqgGkxw,14056
|
|
46
|
-
pycodex/tools/update_plan_tool.py,sha256=xwrSrerw5qfkbFc9Ltx1OZEmD__CWtryOy3UhL0-Jp4,3198
|
|
47
|
-
pycodex/tools/view_image_tool.py,sha256=H7OP-QZEU5Gf-E4YnQbXfu2hDkL5-dJ3Apla2YYjErQ,3754
|
|
48
|
-
pycodex/tools/wait_agent_tool.py,sha256=pLsnk9TxSt4v7krC7s7vxi91pLisSNU0lATt9s-P_3E,3134
|
|
49
|
-
pycodex/tools/wait_tool.py,sha256=0_OO_DvMsBhG3oDKZePTOjZTBq1lmWntXAzqIqvebdA,3206
|
|
50
|
-
pycodex/tools/web_search_tool.py,sha256=3ao1IvJw7MwcP35UKLbqrM-nlm5Z-UUFVdEzkJYOV1o,988
|
|
51
|
-
pycodex/tools/write_stdin_tool.py,sha256=jvBDchLLmoDITd7g-ZVeEVXHRhWKkmnjM5laL-53FOM,3609
|
|
52
|
-
pycodex/utils/__init__.py,sha256=ih_KyZ2_bajR5YlZ1QMTWOHnuEBda-S3gQ7PwnBtLZQ,453
|
|
53
|
-
pycodex/utils/async_bridge.py,sha256=BXsKTUTUvUtPJnItQlulFRdV7opdKKDlsKLdtVTYshs,1732
|
|
54
|
-
pycodex/utils/compactor.py,sha256=0tlszw1n54aMEGH6sL1U1dEgFSU5ioYL2NI5uSvHSiM,6119
|
|
55
|
-
pycodex/utils/compat.py,sha256=QxcI4AQuUD-gE2494qPGezgm0OIX98qSHdAiof1JrlU,3550
|
|
56
|
-
pycodex/utils/crypto.py,sha256=HRCXF26Ft3S8CG2X0YpZwa8GMU9YJ0Loo8Q9PMPMcNw,1249
|
|
57
|
-
pycodex/utils/debug.py,sha256=5XMpWpwFSm6woyx6RGXvN2qL0afRtTQbwlOAv-LotTw,913
|
|
58
|
-
pycodex/utils/doctor.py,sha256=fI66oQqB5zNL7aEpFbiHnzhELyp9XydwMyAGznw5YSE,10616
|
|
59
|
-
pycodex/utils/dotenv.py,sha256=h7ZgvqpEswetqjhtwfiaHyokAHwNKPakizTAHPHz5Ds,1865
|
|
60
|
-
pycodex/utils/event_helpers.py,sha256=ar4WoIkpiShoayN_GZlnDijy74CC2Z8_5p76EryduNk,6517
|
|
61
|
-
pycodex/utils/get_env.py,sha256=L4S8h84tkgxZKvrxY7ezTgePbXepG-yIigUTKeY6uuE,6094
|
|
62
|
-
pycodex/utils/image_utils.py,sha256=OUzUs0Cow4L8Z2np0EBeEUotAqqsCmRmhrV8AxZUXRw,2460
|
|
63
|
-
pycodex/utils/model_metadata.py,sha256=uK3iI4yC7Ge7yN4I1_gQYalQ4MYKddz2qMwsmQb-P80,1337
|
|
64
|
-
pycodex/utils/random_ids.py,sha256=jLTxZZ0MBbRdQOFDFWGVRjWzIo6FKSQ5ADXbQSLPp1s,379
|
|
65
|
-
pycodex/utils/session_persist.py,sha256=P-tsYdb1r0Ca_mVgTcK24bZM09zR-tNFgoFXlVIn5Q0,24012
|
|
66
|
-
pycodex/utils/truncation.py,sha256=5D6vAorT8EgXgjd7ASwtraAyIZdlCR-w5jKZqJxDzho,5446
|
|
67
|
-
pycodex/utils/_aes_gcm/LICENSE,sha256=KvdHagY3sYIK34GldJaRi34sNnGwMVJIIoDhbC9MRu8,2805
|
|
68
|
-
pycodex/utils/_aes_gcm/README.md,sha256=D9XGeewCgU2PVqJCO6WusUs0Mw2FbMnABCqaVktqCnE,3045
|
|
69
|
-
pycodex/utils/_aes_gcm/__init__.py,sha256=p0U1CVy6dQBDAfGvSYG0opn6iP2VGF5rqUUM-mNLJxU,70
|
|
70
|
-
pycodex/utils/_aes_gcm/aes.py,sha256=12p_5O7gX-e-LQ08nNe2CBdP_H4eX3J84LlXaVr9i8A,9269
|
|
71
|
-
pycodex/utils/_aes_gcm/gcm.py,sha256=Z8fYHpnLpqJyTPmjDOZtryqe0xmT_93vscNuJe5ZY-w,2762
|
|
72
|
-
pycodex/utils/_aes_gcm/source-sha256.json,sha256=g9uPWXuA0D9Wq9EGnduyiVanTgi8QWRFW-9T69FG-fc,215
|
|
73
|
-
responses_server/__init__.py,sha256=sx9C88YWqmehASZy24FUMqT14A36doM_rj0MIZtQ9iQ,377
|
|
74
|
-
responses_server/__main__.py,sha256=876xZTqhPeDBD2GKKr8pKX33Af8PhFTosAI8bYQsFgQ,61
|
|
75
|
-
responses_server/app.py,sha256=PE-jWn_hmL5os1xsVL81KwU0kDZHOkZoVdSOK-7x3xQ,8400
|
|
76
|
-
responses_server/config.py,sha256=sCJYGisPHW9Uup26-R9Zv0o9W_kRVt-ETc2MFCVjG90,2795
|
|
77
|
-
responses_server/messages_api.py,sha256=ialAYTMmN0y-uxQB3Y51ukq-kvkSVO84WVLXaqLsKw0,18775
|
|
78
|
-
responses_server/payload_processors.py,sha256=dqPwqHD-FhyiIwjzFEMf2wCtQDxkRyerZzbdqnH1aDE,3561
|
|
79
|
-
responses_server/server.py,sha256=k4DbsOYkaHHcy38uF9u_QXahJC1cplKsTu-MdC3DCIs,2286
|
|
80
|
-
responses_server/session_store.py,sha256=nwGxQL6nUVKnDVeDHz8IzqNQ7dWk8Ybf0URekOHdxTo,1133
|
|
81
|
-
responses_server/stream_router.py,sha256=TQX2-8uOGad3TBJnRu9SOtDaHBHjYwE-WERYz6rcuo8,46274
|
|
82
|
-
responses_server/trajectory_dump.py,sha256=5_Wy6tslszrqx3j1JeP_boyTbzIicKy8No84PzMnmHk,5111
|
|
83
|
-
responses_server/tools/__init__.py,sha256=ivsBSEy0SBUhY-Uea5v1XMLXShkwHdCVl0id-1FwdZg,150
|
|
84
|
-
responses_server/tools/custom_adapter.py,sha256=SnIiNUdomff3APtTriURAC9YCeEdhCDjzGMEYusfUdk,8340
|
|
85
|
-
responses_server/tools/web_search.py,sha256=pnKH9JyTScRehWpZS3HpXRvjWsQvC0QZqxjEOCT4ndg,8936
|
|
86
|
-
python_codex-0.5.1.dist-info/METADATA,sha256=gzj3gSxTGOW0Y2_vKm61LsBDcPX2B6dQbDkDduj3I7s,8850
|
|
87
|
-
python_codex-0.5.1.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
|
|
88
|
-
python_codex-0.5.1.dist-info/entry_points.txt,sha256=sNUVakoVuTrzJH505ZgRTQxmtRRPUHV_EH0i6EbYTyM,45
|
|
89
|
-
python_codex-0.5.1.dist-info/licenses/LICENSE,sha256=0X8ifk312hYAORM4hlzg8wVSEXYKNmiPgWlB1YIy2Nw,10926
|
|
90
|
-
python_codex-0.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|