python-codex 0.7.0__py3-none-any.whl → 0.7.2__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/config.py CHANGED
@@ -10,6 +10,19 @@ from .utils.codex_config import DEFAULT_CODEX_CONFIG_PATH, read_codex_config
10
10
  from .utils.dotenv import load_codex_dotenv
11
11
  from .utils.model_metadata import load_models_by_slug
12
12
 
13
+ SUPPORTED_HARNESSES = ("pycodex", "pyagy")
14
+
15
+
16
+ def _parse_harness(selected: "typing.Mapping[str, typing.Any]") -> "str":
17
+ value = selected.get("harness", "pycodex")
18
+ if not isinstance(value, str) or value not in SUPPORTED_HARNESSES:
19
+ raise ValueError(
20
+ "harness must be one of {0}, got {1!r}".format(
21
+ ", ".join(SUPPORTED_HARNESSES), value
22
+ )
23
+ )
24
+ return value
25
+
13
26
 
14
27
  @dataclass(frozen=True)
15
28
  class CodexConfig:
@@ -17,6 +30,7 @@ class CodexConfig:
17
30
  profile: "typing.Union[str, None]"
18
31
  provider: "ResponsesProviderConfig"
19
32
  context: "ContextConfig"
33
+ harness: "str" = "pycodex"
20
34
 
21
35
  @classmethod
22
36
  def from_env(
@@ -35,4 +49,5 @@ class CodexConfig:
35
49
  profile=selected["profile"],
36
50
  provider=ResponsesProviderConfig.from_mapping(selected, model_catalog),
37
51
  context=ContextConfig.from_mapping(selected, path, model_catalog),
52
+ harness=_parse_harness(selected),
38
53
  )
pycodex/events.py CHANGED
@@ -268,6 +268,17 @@ class AssistantDeltaEvent(ModelEvent):
268
268
  display.set_status("talking")
269
269
 
270
270
 
271
+ @dataclass(frozen=True)
272
+ class ReasoningEvent(ModelEvent):
273
+ text: "str"
274
+ turn_id: "str" = ""
275
+ submission_id: "typing.Union[str, None]" = None
276
+ kind: ClassVar[str] = "reasoning"
277
+
278
+ def visualize(self) -> "str":
279
+ return self.text
280
+
281
+
271
282
  @dataclass(frozen=True)
272
283
  class TokenCountEvent(ModelEvent):
273
284
  usage: "typing.Union[JSONDict, None]"
pycodex/model.py CHANGED
@@ -25,10 +25,12 @@ from .events import (
25
25
  ModelEvent,
26
26
  ModelRequestInterrupted,
27
27
  ModelRequestTimingEvent,
28
+ ReasoningEvent,
28
29
  StreamErrorEvent,
29
30
  TokenCountEvent,
30
31
  ToolCalledEvent,
31
32
  )
33
+ from .utils.event_helpers import reasoning_item_text
32
34
  from .utils.model_metadata import load_models_by_slug, model_metadata
33
35
  from .protocol import (
34
36
  AssistantMessage,
@@ -426,6 +428,12 @@ class ContextLengthExceeded(ResponsesApiError):
426
428
  self.usage: "typing.Union[typing.Dict[str, int], None]" = None
427
429
  self.token_limit: "typing.Union[int, None]" = None
428
430
  requested = re.search(r"requested\s+([0-9,]+)\s+tokens", message, re.IGNORECASE)
431
+ if requested is None:
432
+ requested = re.search(
433
+ r"input\s+token\s+count(?:\s*:\s*|\s*\()([0-9,]+)",
434
+ message,
435
+ re.IGNORECASE,
436
+ )
429
437
  if requested is not None:
430
438
  total = int(requested.group(1).replace(",", ""))
431
439
  self.usage = {"total_tokens": total, "input_tokens": total}
@@ -442,6 +450,12 @@ class ContextLengthExceeded(ResponsesApiError):
442
450
  message,
443
451
  re.IGNORECASE,
444
452
  )
453
+ if limit is None:
454
+ limit = re.search(
455
+ r"maximum\s+number\s+of\s+tokens\s+allowed\s*(?:is\s*|\()([0-9,]+)",
456
+ message,
457
+ re.IGNORECASE,
458
+ )
445
459
  if limit is not None:
446
460
  self.token_limit = int(limit.group(1).replace(",", ""))
447
461
 
@@ -1096,6 +1110,39 @@ class ResponsesModelClient:
1096
1110
  ) -> "ModelResponse":
1097
1111
  items: "typing.List[typing.Union[typing.Union[AssistantMessage, ToolCall], ReasoningItem]]" = ([])
1098
1112
  last_event_type = ""
1113
+ reasoning_item_id: "typing.Union[object, None]" = None
1114
+ raw_reasoning_chunks: "typing.List[str]" = []
1115
+ summary_index: "typing.Union[object, None]" = None
1116
+ summary_chunks: "typing.List[str]" = []
1117
+ last_reasoning = ""
1118
+ last_reasoning_emit_at: "typing.Union[float, None]" = None
1119
+
1120
+ def flush_reasoning(force: "bool" = True) -> "None":
1121
+ nonlocal last_reasoning, last_reasoning_emit_at
1122
+ if not raw_reasoning_chunks and not summary_chunks:
1123
+ return
1124
+ now = monotonic()
1125
+ if (
1126
+ not force
1127
+ and last_reasoning_emit_at is not None
1128
+ and now - last_reasoning_emit_at < 0.08
1129
+ ):
1130
+ return
1131
+ raw_text = "".join(raw_reasoning_chunks)
1132
+ text = raw_text if raw_text.strip() else "".join(summary_chunks)
1133
+ if text.strip() and text != last_reasoning:
1134
+ last_reasoning = text
1135
+ last_reasoning_emit_at = now
1136
+ EventScope.emit(ReasoningEvent(text))
1137
+
1138
+ def clear_reasoning_state() -> "None":
1139
+ nonlocal reasoning_item_id, summary_index, last_reasoning, last_reasoning_emit_at
1140
+ reasoning_item_id = None
1141
+ raw_reasoning_chunks.clear()
1142
+ summary_index = None
1143
+ summary_chunks.clear()
1144
+ last_reasoning = ""
1145
+ last_reasoning_emit_at = None
1099
1146
 
1100
1147
  for event_name, data in self._iter_sse_events(response, diagnostics):
1101
1148
  if not data:
@@ -1112,10 +1159,37 @@ class ResponsesModelClient:
1112
1159
  diagnostics.last_event_type = last_event_type
1113
1160
 
1114
1161
  if event_type == "response.output_text.delta":
1162
+ flush_reasoning()
1163
+ clear_reasoning_state()
1115
1164
  EventScope.emit(AssistantDeltaEvent(str(payload.get("delta", ""))))
1116
1165
  continue
1117
1166
 
1167
+ if event_type in (
1168
+ "response.reasoning_text.delta",
1169
+ "response.reasoning_summary_text.delta",
1170
+ ):
1171
+ item_id = payload.get("item_id")
1172
+ if item_id != reasoning_item_id:
1173
+ flush_reasoning()
1174
+ clear_reasoning_state()
1175
+ reasoning_item_id = item_id
1176
+
1177
+ if event_type == "response.reasoning_text.delta":
1178
+ raw_reasoning_chunks.append(str(payload.get("delta", "")))
1179
+ else:
1180
+ part_index = payload.get("summary_index", 0)
1181
+ if part_index != summary_index:
1182
+ flush_reasoning()
1183
+ summary_index = part_index
1184
+ summary_chunks.clear()
1185
+ if not raw_reasoning_chunks:
1186
+ last_reasoning_emit_at = None
1187
+ summary_chunks.append(str(payload.get("delta", "")))
1188
+ flush_reasoning(force=False)
1189
+ continue
1190
+
1118
1191
  if event_type == "response.output_item.done":
1192
+ flush_reasoning()
1119
1193
  item_payload = payload.get("item", {})
1120
1194
  if (
1121
1195
  isinstance(item_payload, dict)
@@ -1163,7 +1237,13 @@ class ResponsesModelClient:
1163
1237
 
1164
1238
  parsed = self._parse_output_item(item_payload)
1165
1239
  if parsed is not None:
1166
- if isinstance(parsed, ToolCall):
1240
+ if isinstance(parsed, ReasoningItem):
1241
+ streamed_raw = "".join(raw_reasoning_chunks) if item_payload.get("id") == reasoning_item_id else ""
1242
+ text = reasoning_item_text(parsed, streamed_raw)
1243
+ if text and text != last_reasoning:
1244
+ EventScope.emit(ReasoningEvent(text))
1245
+ clear_reasoning_state()
1246
+ elif isinstance(parsed, ToolCall):
1167
1247
  EventScope.emit(ToolCalledEvent(parsed.call_id, parsed.name))
1168
1248
  items.append(parsed)
1169
1249
  if diagnostics is not None:
@@ -1171,6 +1251,7 @@ class ResponsesModelClient:
1171
1251
  continue
1172
1252
 
1173
1253
  if event_type == "response.completed":
1254
+ flush_reasoning()
1174
1255
  response_payload = payload.get("response")
1175
1256
  usage = None
1176
1257
  if isinstance(response_payload, dict):
@@ -1183,6 +1264,7 @@ class ResponsesModelClient:
1183
1264
  return ModelResponse(items=items, usage=usage)
1184
1265
 
1185
1266
  if event_type == "response.incomplete":
1267
+ flush_reasoning()
1186
1268
  partial_items = tuple(items)
1187
1269
  reason = self._response_incomplete_reason(payload)
1188
1270
  raise ResponsesIncompleteError(
@@ -1606,6 +1688,8 @@ def _is_context_length_error_message(message: "str") -> "bool":
1606
1688
  or "maximum context length" in lower
1607
1689
  or "exceeds the context window" in lower
1608
1690
  or "exceeded the context window" in lower
1691
+ or "exceeds the maximum number of tokens" in lower
1692
+ or "exceeded the maximum number of tokens" in lower
1609
1693
  )
1610
1694
 
1611
1695
 
pycodex/multi_agents.py CHANGED
@@ -326,7 +326,7 @@ class AgentsManager:
326
326
  async def wait_for_activity(self, agent_id, timeout_ms):
327
327
  return await self._runtimes[agent_id].wait_for_activity(timeout_ms)
328
328
 
329
- def request_close(self, agent_id) -> "None":
329
+ def request_close(self, agent_id, finish_turn=False) -> "None":
330
330
  """Signal a whole subtree before waiting for any of its operations."""
331
331
  path = self._runtimes[agent_id].agent.agent_path
332
332
  runtimes = [
@@ -340,7 +340,7 @@ class AgentsManager:
340
340
  child for child in runtimes
341
341
  if child.agent.agent_path.rsplit("/", 1)[0] == runtime.agent.agent_path
342
342
  )
343
- runtime.request_close()
343
+ runtime.request_close(finish_turn)
344
344
 
345
345
  async def shutdown_children(self, agent_id) -> "None":
346
346
  # Children may finish and unregister while their parent's turn stops.
pycodex/protocol.py CHANGED
@@ -25,6 +25,7 @@ from .utils.random_ids import uuid7_string
25
25
 
26
26
  JSONValue: "TypeAlias" = Any
27
27
  JSONDict: "TypeAlias" = typing.Dict[str, Any]
28
+ MessageVisibility: "TypeAlias" = typing.Union[bool, str]
28
29
 
29
30
 
30
31
  def message_timestamp():
@@ -99,7 +100,7 @@ class UserMessage:
99
100
  id: "typing.Union[str, None]" = None
100
101
  # Local history metadata; serialize() is the model-facing representation.
101
102
  name: "str" = "user"
102
- visible: "bool" = True
103
+ visible: "MessageVisibility" = True
103
104
  message_id: "str" = field(default_factory=uuid7_string, compare=False)
104
105
  created_at: "typing.Union[str, None]" = field(default_factory=message_timestamp, compare=False)
105
106
  turn_id: "typing.Union[str, None]" = field(default=None, compare=False)
@@ -124,7 +125,7 @@ class AgentMessage:
124
125
  content_items: "typing.Tuple[JSONDict, ...]"
125
126
  id: "typing.Union[str, None]" = None
126
127
  internal_chat_message_metadata_passthrough: "typing.Union[JSONDict, None]" = None
127
- visible: "bool" = False
128
+ visible: "MessageVisibility" = False
128
129
  message_id: "str" = field(default_factory=uuid7_string, compare=False)
129
130
  created_at: "typing.Union[str, None]" = field(default_factory=message_timestamp, compare=False)
130
131
  turn_id: "typing.Union[str, None]" = field(default=None, compare=False)
pycodex/runtime.py CHANGED
@@ -8,19 +8,27 @@ from time import monotonic
8
8
 
9
9
  from .agent import Agent
10
10
  from .events import (
11
+ AssistantDeltaEvent,
12
+ AutoCompactCompletedEvent,
11
13
  BASE_EVENT_HANDLER,
12
14
  CommandCompletedEvent,
13
15
  CommandFailedEvent,
14
16
  CommandStartedEvent,
17
+ CompactCompletedEvent,
15
18
  Event,
16
19
  EventScope,
17
20
  InputQueuedEvent,
18
21
  InputRequestedEvent,
19
22
  InputResolvedEvent,
23
+ MessagesAddedEvent,
24
+ ModelCalledEvent,
20
25
  ModelRequestInterrupted,
26
+ ReasoningEvent,
21
27
  RuntimeUpdatedEvent,
22
28
  SessionClosedEvent,
23
29
  SessionStateEvent,
30
+ StreamErrorEvent,
31
+ ToolStartedEvent,
24
32
  TurnEvent,
25
33
  TurnInterrupted,
26
34
  )
@@ -28,7 +36,7 @@ from .model import ModelControl, RetryCodes, matches_retry_codes
28
36
  from .protocol import AgentMessage, ToolResult, TurnResult, UserMessage
29
37
  from .tools.runtime_services import close_resources
30
38
  from .utils import uuid7_string
31
- from .utils.event_helpers import shorten_title, visible_input_text
39
+ from .utils.event_helpers import last_reasoning_text, shorten_title, visible_input_text
32
40
  from .utils.history import conversation_history_to_turns
33
41
  from .utils.truncation import truncate_tool_result_for_history
34
42
  from .utils.session_persist import (
@@ -41,6 +49,12 @@ if typing.TYPE_CHECKING:
41
49
  from .multi_agents import AgentsManager
42
50
 
43
51
 
52
+ _INVOKE_VISIBLE_TAGS = {
53
+ "clock_tick": "Wake-up",
54
+ "exec_command_completed": "Task done",
55
+ }
56
+
57
+
44
58
  class SubmissionInterrupted(RuntimeError):
45
59
  def __init__(self) -> "None":
46
60
  super().__init__("submission interrupted")
@@ -256,12 +270,27 @@ class AgentRuntime:
256
270
  "history": conversation_history_to_turns(self.agent.history),
257
271
  }
258
272
 
273
+ def active_turn_snapshot(self):
274
+ active = self._active_turn
275
+ if active is None:
276
+ return None
277
+ return {
278
+ "turn_id": active.turn_id,
279
+ "submission_id": self._current_submission.submission_id
280
+ if self._current_submission is not None else active.turn_id,
281
+ "messages": active.messages,
282
+ "assistant_text": active.assistant_text,
283
+ "reasoning": self._stream_reasoning,
284
+ "model_errors": list(active.model_errors),
285
+ }
286
+
259
287
  def state_snapshot(self):
260
288
  """Current frontend state, without completed conversation history."""
261
289
  agent = self.agent
262
290
  execution = agent.execution_snapshot()
263
291
  client = typing.cast(ModelControl, agent.model_client)
264
- active = self._active_turn
292
+ status = self._last_agent_status
293
+ failed = status == "interrupted" or isinstance(status, dict) and "errored" in status
265
294
  pending = []
266
295
  if self._triggered_submission is not None:
267
296
  pending.append(("steer", self._triggered_submission))
@@ -276,14 +305,8 @@ class AgentRuntime:
276
305
  "reasoning_effort": client.reasoning_effort,
277
306
  },
278
307
  "running": execution.running,
279
- "active_turn": None if active is None else {
280
- "turn_id": active.turn_id,
281
- "submission_id": self._current_submission.submission_id
282
- if self._current_submission is not None else active.turn_id,
283
- "messages": active.messages,
284
- "assistant_text": active.assistant_text,
285
- "model_errors": list(active.model_errors),
286
- },
308
+ "last_reasoning": last_reasoning_text(agent.history) if self._active_turn is None and not failed else "",
309
+ "active_turn": self.active_turn_snapshot(),
287
310
  "queued_inputs": [
288
311
  {
289
312
  "submission_id": item.submission_id,
@@ -371,20 +394,29 @@ class AgentRuntime:
371
394
  if self._queue_event is not None:
372
395
  self._queue_event.set()
373
396
 
374
- async def close(self):
375
- """Stop admission across the subtree and wait for issued work and cleanup."""
397
+ async def close(self, finish_turn=False):
398
+ """Stop admission across the subtree and wait for issued work and cleanup.
399
+
400
+ With ``finish_turn`` active turns run to their natural end instead of
401
+ receiving a cooperative stop; only waits are woken early.
402
+ """
376
403
  if self._worker is None:
377
404
  self._worker = asyncio.create_task(self._run_forever())
378
405
  if self.accepts_input:
379
- self.agents_manager.request_close(self.agent.agent_id)
406
+ self.agents_manager.request_close(self.agent.agent_id, finish_turn)
380
407
  await asyncio.shield(self._worker)
381
408
 
382
- def request_close(self):
409
+ def request_close(self, finish_turn=False):
383
410
  """Manager-only local signal, after it captures this node's children."""
384
411
  if not self.accepts_input:
385
412
  return
386
413
  self.agent.accepts_input = False
387
- self.stop_asap()
414
+ if not finish_turn:
415
+ self.stop_asap()
416
+ elif self.agent.is_running:
417
+ self._wait_interrupted = True
418
+ if self._input_activity is not None:
419
+ self._input_activity.set()
388
420
  pending = list(self._enqueue_queue)
389
421
  if self._triggered_submission is not None:
390
422
  pending.append(self._triggered_submission)
@@ -712,7 +744,7 @@ class AgentRuntime:
712
744
  f"</{tag}>"
713
745
  )
714
746
  await self.start()
715
- self.message(text)
747
+ self.message(UserMessage(text, visible=_INVOKE_VISIBLE_TAGS.get(tag, tag)))
716
748
  _submission_id, future = self.trigger()
717
749
  await future
718
750
  return True
@@ -812,6 +844,9 @@ class AgentRuntime:
812
844
  await waiter
813
845
  except asyncio.CancelledError:
814
846
  pass
847
+ if not self.accepts_input:
848
+ # A graceful close cannot wait for input that will never arrive.
849
+ self.stop_asap()
815
850
  if self._wait_interrupted:
816
851
  return {"message": "Wait interrupted by new input.", "timed_out": False}
817
852
  if self._steer_queue:
@@ -913,6 +948,7 @@ class AgentRuntime:
913
948
  return
914
949
 
915
950
  self._last_agent_status = "running"
951
+ self._stream_reasoning = ""
916
952
  self._turn_started_at = monotonic()
917
953
  self._turn_finished_at = None
918
954
  final_answer = None
@@ -921,7 +957,12 @@ class AgentRuntime:
921
957
  self._active_turn = turn
922
958
  turn.deliver_messages = self._deliver_messages
923
959
  if not self.title:
924
- prompt = visible_input_text(turn.messages)
960
+ prompt = "\n".join(
961
+ message.text
962
+ for message in turn.messages
963
+ if isinstance(message, (UserMessage, AgentMessage))
964
+ and message.visible is True
965
+ ).strip()
925
966
  if prompt:
926
967
  self.title = shorten_title(prompt)
927
968
  self.publish_state("auto_title")
@@ -946,6 +987,15 @@ class AgentRuntime:
946
987
 
947
988
  @EventScope.router
948
989
  def _publish_agent_event(self, event: "Event") -> "None":
990
+ if isinstance(event, ReasoningEvent):
991
+ self._stream_reasoning = event.text
992
+ elif isinstance(event, AssistantDeltaEvent) and event.delta:
993
+ self._stream_reasoning = ""
994
+ elif isinstance(event, (
995
+ MessagesAddedEvent, StreamErrorEvent, ModelCalledEvent, ToolStartedEvent,
996
+ AutoCompactCompletedEvent, CompactCompletedEvent,
997
+ )):
998
+ self._stream_reasoning = last_reasoning_text(self.agent.history)
949
999
  queued = self._current_submission
950
1000
  if isinstance(event, TurnEvent) and queued is not None and event.turn_id == queued.turn_id:
951
1001
  event = replace(event, submission_id=event.submission_id or queued.submission_id)
pycodex/tools/__init__.py CHANGED
@@ -108,7 +108,9 @@ def get_tools(
108
108
  restart=code_mode_manager.restart, close=code_mode_manager.close,
109
109
  )
110
110
  elif tool is exec_command_tool:
111
- runtime_environment.register_resource(tool.name, unified_exec_manager)
111
+ runtime_environment.register_resource(
112
+ tool.name, unified_exec_manager, close=unified_exec_manager.close,
113
+ )
112
114
  elif tool is set_period_tool:
113
115
  runtime_environment.register_resource("clock", clock_manager)
114
116
  return registry
@@ -12,8 +12,11 @@ Expected behavior:
12
12
  """
13
13
 
14
14
  import asyncio
15
+ import os
16
+ import subprocess
15
17
 
16
18
  from ..protocol import JSONDict, JSONValue
19
+ from ..utils.get_env import build_shell_command
17
20
  from .base_tool import BaseTool, ToolContext
18
21
 
19
22
  DEFAULT_SHELL_TIMEOUT_MS = 10_000
@@ -61,7 +64,10 @@ class ShellCommandTool(BaseTool):
61
64
  login = bool(args.get("login", True))
62
65
  workdir_arg = args.get("workdir")
63
66
  working_directory = context.resolve_path(workdir_arg)
64
- shell_args = ["bash", "-lc" if login else "-c", command]
67
+ if os.name == "nt":
68
+ shell_args = build_shell_command(command, login=login)
69
+ else:
70
+ shell_args = ["bash", "-lc" if login else "-c", command]
65
71
 
66
72
  process = await asyncio.create_subprocess_exec(
67
73
  *shell_args,
@@ -77,7 +83,17 @@ class ShellCommandTool(BaseTool):
77
83
  )
78
84
  timed_out = False
79
85
  except asyncio.TimeoutError:
80
- process.kill()
86
+ if os.name == "nt":
87
+ try:
88
+ subprocess.run(
89
+ ["taskkill", "/F", "/T", "/PID", str(process.pid)],
90
+ stdout=subprocess.DEVNULL,
91
+ stderr=subprocess.DEVNULL,
92
+ )
93
+ except OSError:
94
+ process.kill()
95
+ else:
96
+ process.kill()
81
97
  stdout_bytes, stderr_bytes = await process.communicate()
82
98
  timed_out = True
83
99
 
@@ -14,6 +14,8 @@ Expected behavior:
14
14
  import asyncio
15
15
  import os
16
16
  import shlex
17
+ import signal
18
+ import subprocess
17
19
  import threading
18
20
  import typing
19
21
  import uuid
@@ -24,6 +26,7 @@ from loguru import logger
24
26
 
25
27
  from ..protocol import JSONValue
26
28
  from ..utils.compat import shlex_join, stream_writer_is_closing
29
+ from ..utils.get_env import build_shell_command
27
30
  from ..utils.truncation import (
28
31
  DEFAULT_MAX_OUTPUT_TOKENS,
29
32
  approx_token_count,
@@ -137,6 +140,21 @@ class UnifiedExecManager:
137
140
  def shutdown(self):
138
141
  self._notify_hook = None
139
142
 
143
+ async def close(self):
144
+ """Terminate command process trees left running when the session closes."""
145
+ with self._lock:
146
+ sessions = list(self._sessions.values())
147
+ self._sessions.clear()
148
+ for session in sessions:
149
+ if session.process.returncode is None:
150
+ _kill_process_tree(session.process.pid)
151
+ for session in sessions:
152
+ await session.process.wait()
153
+ if session.reader_task is not None:
154
+ await asyncio.gather(session.reader_task, return_exceptions=True)
155
+ if sessions:
156
+ self._state_changed()
157
+
140
158
  def background_work_count(self, after_reply) -> "int":
141
159
  return sum(
142
160
  1
@@ -416,13 +434,12 @@ class UnifiedExecManager:
416
434
  shell: "typing.Union[str, None]",
417
435
  login: "bool",
418
436
  ) -> "typing.List[str]":
419
- shell_path = shell or os.environ.get("SHELL") or "/bin/bash"
420
- shell_name = Path(shell_path).name.lower()
421
- if shell_name in {"cmd", "cmd.exe"}:
422
- return [shell_path, "/C", cmd]
423
- if "powershell" in shell_name:
424
- return [shell_path, "-NoProfile", "-Command", cmd]
425
- return [shell_path, "-lc" if login else "-c", cmd]
437
+ return build_shell_command(
438
+ cmd,
439
+ shell=shell,
440
+ login=login,
441
+ default_posix="/bin/bash",
442
+ )
426
443
 
427
444
  def _truncate_output(
428
445
  self, output: "str", max_output_tokens: "typing.Union[int, None]"
@@ -437,3 +454,17 @@ class UnifiedExecManager:
437
454
  def _tty_echo(self, chars: "str") -> "bytes":
438
455
  normalized = chars.replace("\n", "\r\n")
439
456
  return normalized.encode("utf-8")
457
+
458
+
459
+ def _kill_process_tree(pid: "int") -> "None":
460
+ if os.name == "nt":
461
+ subprocess.run(
462
+ ["taskkill", "/F", "/T", "/PID", str(pid)],
463
+ stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
464
+ )
465
+ return
466
+ try:
467
+ # Commands start in their own session, so the group holds their children.
468
+ os.killpg(pid, signal.SIGKILL)
469
+ except ProcessLookupError:
470
+ pass
@@ -6,7 +6,7 @@ import shlex
6
6
  import typing
7
7
  from dataclasses import asdict
8
8
 
9
- from ..protocol import AgentMessage, UserMessage
9
+ from ..protocol import AgentMessage, AssistantMessage, ReasoningItem, UserMessage
10
10
 
11
11
  PROMPT_CONTEXT_BASELINE_TOKENS = 12_000
12
12
 
@@ -96,11 +96,49 @@ def shorten_title(text: "str", limit: "int" = 48) -> "str":
96
96
 
97
97
  def visible_input_text(messages):
98
98
  return "\n".join(
99
- message.text for message in messages
99
+ "[{0}]".format(message.visible) if isinstance(message.visible, str) else message.text
100
+ for message in messages
100
101
  if isinstance(message, (UserMessage, AgentMessage)) and message.visible
101
102
  )
102
103
 
103
104
 
105
+ def reasoning_item_text(item: "ReasoningItem", streamed_raw: "str" = "") -> "str":
106
+ content = item.payload.get("content")
107
+ if isinstance(content, list):
108
+ raw_text = "".join(
109
+ str(part.get("text", ""))
110
+ for part in content
111
+ if isinstance(part, dict) and part.get("type") == "reasoning_text"
112
+ )
113
+ if raw_text.strip():
114
+ return raw_text
115
+ if streamed_raw.strip():
116
+ return streamed_raw
117
+ summary = item.payload.get("summary")
118
+ if isinstance(summary, list):
119
+ for part in reversed(summary):
120
+ if isinstance(part, dict) and part.get("type") == "summary_text":
121
+ text = str(part.get("text", ""))
122
+ if text.strip():
123
+ return text
124
+ return ""
125
+
126
+
127
+ def last_reasoning_text(history: "typing.Sequence[object]") -> "str":
128
+ for item in reversed(history):
129
+ if item is None or (isinstance(item, dict) and item.get("type") == "compacted"):
130
+ return ""
131
+ if isinstance(item, AssistantMessage) and item.visible and item.text.strip():
132
+ return ""
133
+ if isinstance(item, ReasoningItem):
134
+ text = reasoning_item_text(item)
135
+ if text:
136
+ return text
137
+ if isinstance(item, (UserMessage, AgentMessage)) and item.visible:
138
+ return ""
139
+ return ""
140
+
141
+
104
142
  def percent_of_context_window_remaining(total_tokens, context_window_tokens):
105
143
  if context_window_tokens <= PROMPT_CONTEXT_BASELINE_TOKENS:
106
144
  return 0
pycodex/utils/get_env.py CHANGED
@@ -1,16 +1,68 @@
1
1
  import os
2
2
  import platform
3
+ import shutil
3
4
  import subprocess
4
5
  import typing
5
6
  from datetime import datetime
6
- from pathlib import Path
7
+ from pathlib import Path, PureWindowsPath
7
8
 
8
9
 
9
- def get_shell_name() -> "str":
10
- shell_path = os.environ.get("SHELL")
10
+ def resolve_default_shell_path(default_posix: "str" = "/bin/bash") -> "str":
11
+ shell_path = (os.environ.get("SHELL") or "").strip()
11
12
  if shell_path:
12
- return Path(shell_path).name or shell_path
13
- return "bash"
13
+ if os.name != "nt":
14
+ return shell_path
15
+ if not shell_path.startswith("/") or os.path.isfile(shell_path):
16
+ return shell_path
17
+ win_equiv = shutil.which(PureWindowsPath(shell_path).name)
18
+ if win_equiv:
19
+ return win_equiv
20
+ if os.name == "nt":
21
+ for candidate in ("powershell.exe", "powershell", "pwsh.exe", "pwsh"):
22
+ resolved = shutil.which(candidate)
23
+ if resolved:
24
+ return resolved
25
+ return os.environ.get("COMSPEC") or "cmd.exe"
26
+ return default_posix
27
+
28
+
29
+ def build_shell_command(
30
+ cmd: "str",
31
+ shell: "typing.Union[str, None]" = None,
32
+ login: "bool" = True,
33
+ default_posix: "str" = "/bin/bash",
34
+ ) -> "typing.List[str]":
35
+ shell_path = shell or resolve_default_shell_path(default_posix=default_posix)
36
+ shell_name = (
37
+ PureWindowsPath(shell_path).name.lower()
38
+ if os.name == "nt"
39
+ else Path(shell_path).name.lower()
40
+ )
41
+ if shell_name in {"cmd", "cmd.exe"}:
42
+ return [shell_path, "/C", cmd]
43
+ if "powershell" in shell_name or shell_name in {"pwsh", "pwsh.exe"}:
44
+ return [shell_path, "-NoProfile", "-Command", cmd]
45
+ return [shell_path, "-lc" if login else "-c", cmd]
46
+
47
+
48
+ def get_shell_name() -> "str":
49
+ if os.name != "nt":
50
+ shell_path = os.environ.get("SHELL")
51
+ if shell_path:
52
+ return Path(shell_path).name or shell_path
53
+ return "bash"
54
+ resolved = resolve_default_shell_path()
55
+ name = PureWindowsPath(resolved).name or resolved
56
+ lower = name.lower()
57
+ if "powershell" in lower:
58
+ return "powershell"
59
+ if lower in {"pwsh", "pwsh.exe"}:
60
+ return "pwsh"
61
+ if lower in {"cmd", "cmd.exe"}:
62
+ return "cmd"
63
+ if lower.endswith(".exe"):
64
+ return name[:-4]
65
+ return name
14
66
 
15
67
 
16
68
  def get_timezone_name() -> "str":
pycodex/utils/history.py CHANGED
@@ -19,8 +19,10 @@ def serialize_history_item(item):
19
19
 
20
20
  def restore_message_metadata(item, payload, record_id, timestamp=None):
21
21
  visible = payload.get("visible", item.visible)
22
- if not isinstance(visible, bool):
23
- raise ValueError("history item visible must be a boolean")
22
+ if not isinstance(visible, bool) and (
23
+ not isinstance(visible, str) or not visible.strip()
24
+ ):
25
+ raise ValueError("history item visible must be a boolean or non-empty string")
24
26
  legacy_id = sha256(json.dumps(
25
27
  [record_id, timestamp, payload], ensure_ascii=False, sort_keys=True,
26
28
  ).encode("utf-8")).hexdigest()[:32]
@@ -30,11 +32,16 @@ def restore_message_metadata(item, payload, record_id, timestamp=None):
30
32
  )
31
33
 
32
34
 
35
+ def compaction_prefix_id(turn):
36
+ first = turn["messages"][0].message_id if turn["messages"] else turn["response_id"]
37
+ return "part-" + first
38
+
39
+
33
40
  def conversation_history_to_turns(history, previous=()):
34
41
  """Convert a transcript or append committed items to existing display values.
35
42
 
36
43
  The caller owns the result; neither the previous values nor messages change.
37
- Explicit turn IDs group new messages. Old records retain phase boundaries.
44
+ Explicit turn IDs group messages between compactions. Old records retain phase boundaries.
38
45
  """
39
46
  turns = [
40
47
  {key: turn[key] for key in (
@@ -43,7 +50,9 @@ def conversation_history_to_turns(history, previous=()):
43
50
  )}
44
51
  for turn in previous
45
52
  ]
46
- by_id = {turn["turn_id"]: turn for turn in turns}
53
+ by_id = {turn["turn_id"]: index for index, turn in enumerate(turns)}
54
+ boundary = next((i + 1 for i in reversed(range(len(turns)))
55
+ if turns[i]["kind"] == "compaction"), 0)
47
56
  current = turns[-1] if turns else None
48
57
  if current is not None and (
49
58
  current["kind"] == "compaction" or current["response_phase"] == "final"
@@ -55,6 +64,7 @@ def conversation_history_to_turns(history, previous=()):
55
64
  )
56
65
  if is_compaction:
57
66
  turn_id = item["id"] if item is not None else "compaction-{0}".format(len(turns))
67
+ boundary = len(turns)
58
68
  current = None
59
69
  elif isinstance(item, (UserMessage, AgentMessage, AssistantMessage)):
60
70
  is_input = isinstance(item, (UserMessage, AgentMessage))
@@ -68,15 +78,20 @@ def conversation_history_to_turns(history, previous=()):
68
78
  turn_id = item.turn_id or (current["turn_id"] if current is not None else item.message_id)
69
79
  else:
70
80
  continue
71
- turn = by_id.get(turn_id)
72
- if turn is None:
81
+ index = by_id.get(turn_id)
82
+ if index is None or index < boundary:
83
+ if index is not None:
84
+ earlier = turns[index]
85
+ earlier["turn_id"] = compaction_prefix_id(earlier)
73
86
  turn = {
74
87
  "turn_id": turn_id, "messages": (), "response": "",
75
88
  "response_id": None, "response_at": None, "response_phase": None,
76
89
  "kind": "compaction" if is_compaction else "assistant",
77
90
  }
91
+ by_id[turn_id] = len(turns)
78
92
  turns.append(turn)
79
- by_id[turn_id] = turn
93
+ else:
94
+ turn = turns[index]
80
95
  if is_compaction:
81
96
  continue
82
97
  if is_input:
@@ -420,8 +420,7 @@ def load_display_history(
420
420
  items.append(item)
421
421
  if isinstance(item, dict):
422
422
  remaining -= 1
423
- if oldest_turn_id is not None:
424
- continue
423
+ oldest_turn_id = None
425
424
  elif not item.visible:
426
425
  continue
427
426
  else:
@@ -568,6 +567,11 @@ def _find_last_compacted_offset(
568
567
  return None
569
568
 
570
569
 
570
+ def last_compaction_id(path):
571
+ offset = _find_last_compacted_offset(Path(path))
572
+ return "compaction-{0}".format(offset) if offset is not None else None
573
+
574
+
571
575
  def _iter_rollout_entries(
572
576
  rollout_path: "Path",
573
577
  start_offset: "int" = 0,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-codex
3
- Version: 0.7.0
3
+ Version: 0.7.2
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
@@ -33,7 +33,8 @@ See [upstream alignment](docs/ALIGNMENT.md) for the supported scope and differen
33
33
  | Package | Includes | Python |
34
34
  | --- | --- | --- |
35
35
  | `python-codex` | CLI and Python API | 3.6.2+ |
36
- | `pycodex-ws` | Core plus browser workspace and optional Feishu integration | 3.7+ |
36
+ | `pyagy` | Core plus Antigravity CLI (`agy`) wire-compatible harness | 3.7+ |
37
+ | `pycodex-ws` | Core, `pyagy`, browser workspace and optional Feishu integration | 3.7+ |
37
38
 
38
39
  For the CLI and Python API:
39
40
 
@@ -41,7 +42,7 @@ For the CLI and Python API:
41
42
  python3 -m pip install --upgrade python-codex
42
43
  ```
43
44
 
44
- For the browser workspace, install `pycodex-ws`; it includes the matching core version:
45
+ For the browser workspace, install `pycodex-ws`; it includes matching `python-codex` and `pyagy` versions:
45
46
 
46
47
  ```bash
47
48
  python3 -m pip install --upgrade pycodex-ws
@@ -83,6 +84,11 @@ Use `--profile NAME` to select `NAME.config.toml` beside the base config or an
83
84
  embedded `[profiles.NAME]` table. Use `--config PATH` for a different config file,
84
85
  and `pycodex doctor` to check configuration and connectivity.
85
86
  The browser workspace picks up profile changes for new sessions without a restart.
87
+ With `harness = "pyagy"`, Web and Feishu preview the current reasoning text or
88
+ summary until assistant text streams in and takes its place. The browser limits
89
+ the Markdown preview to four lines, lets you scroll longer text, and expands
90
+ the same block for the final reply. Native pycodex exposes reasoning through
91
+ its own event and uses assistant text for the preview.
86
92
 
87
93
  See [configuration](docs/CONTEXT.md#配置读取与-profile) and the
88
94
  [Gemini setup example](docs/responses_server/README.md#gemini-api).
@@ -178,9 +184,7 @@ descriptions and send a feature name, ID or custom request in chat to start the
178
184
  Settings also provides password-protected sharing
179
185
  and [External Call](packages/pycodex-ws/README.md#external-call)
180
186
  sessions that connect an external client to a Web conversation. See the [workspace guide](packages/pycodex-ws/README.md) for
181
- session controls, storage and Feishu setup. A separate
182
- [VS Code extension](packages/pycodex-ws/extensions/vscode/README.md) connects to
183
- the same backend, including over Remote SSH.
187
+ session controls, storage and Feishu setup.
184
188
 
185
189
  ## Use the Python API
186
190
 
@@ -3,13 +3,13 @@ pycodex/__main__.py,sha256=MHKZ_ae3fSLGTLUUMOx15fWdeOnJSHhq-zslRP5F5Lc,79
3
3
  pycodex/agent.py,sha256=uwhdz4YpJonSvGvc0FOmS1rBu-f0-jDKczNsMm-6IaU,25867
4
4
  pycodex/bootstrap.py,sha256=4bn2MhNzAHk1fFVFO1V8p2hFKcOMbe4-y2PA5qhPY98,5429
5
5
  pycodex/cli.py,sha256=HkX_fFNUyPnNo25FeSa9ZMaQG79rqk3b0oV4ZH0h68c,12576
6
- pycodex/config.py,sha256=WDelsGpLgqZF38sgEEjGRwMqzpXCG4GaOueIMuOdt8A,1348
6
+ pycodex/config.py,sha256=wK4CKaykZuGH1dFG_K3yGuH8nWcY-lOEOmGERrqD2FE,1844
7
7
  pycodex/context.py,sha256=yMG7JzsDo8OP7-SUmF-YKkIc9_GT2dgViUgiKnJfQEg,42632
8
- pycodex/events.py,sha256=vj890PCw5QJ5IlQmCgXFI6LRUTjnrOLzM9XHALdiPBc,26305
9
- pycodex/model.py,sha256=bnI605p10gN2LLDrHKw72bcnjd7N-GnlG-J-z24fOCU,64908
10
- pycodex/multi_agents.py,sha256=RBBXHTyJkhHaTXfmy-eDDhz9lWoDTKdeiNYp6W5A2aY,15203
11
- pycodex/protocol.py,sha256=sIgnfBYo9zvRBGnJWk89YDyD5Qjqq_-DcQUzwRldqnU,15635
12
- pycodex/runtime.py,sha256=MAGSw72Y7Y-3YFoDRhfw2bOyeCwY-3W_u2zshpChUeU,39103
8
+ pycodex/events.py,sha256=nU874-hrO3pvXqMSfoy4Kd4VAoLcJGmWcvYNjhht8sU,26555
9
+ pycodex/model.py,sha256=NAmwkQ1n8yhJ6Vi3LIz43t3CVphfV33UkllMO6OGC8I,68617
10
+ pycodex/multi_agents.py,sha256=OMtHSVY1hwg7aIk9RBxasJxVtZRkZjAxBU-K_MiJaRg,15233
11
+ pycodex/protocol.py,sha256=agGs0pxCHWbJyFRnItd-hKPemF_BP9uRKxPiEDAc9iA,15718
12
+ pycodex/runtime.py,sha256=ceocvyzdUZ32QyShUmpCt8yurP0NRe1IHR6UL3y5FPw,41133
13
13
  pycodex/portable/__init__.py,sha256=NgACNTFK5hbRK6fqbL89qjPuh44N950pr4eoDWLfKD4,1110
14
14
  pycodex/portable/client.py,sha256=ZvXjKCB557ZZ-ELmec9DIxymWbG8QBZsaU6e0axu0T0,15508
15
15
  pycodex/portable/protocol.py,sha256=jtyPHI3aVY4UldlSIzeZRQX3MCFzPYfG-0iDC6JSWYo,931
@@ -27,7 +27,7 @@ pycodex/prompts/permissions/approval_policy/unless_trusted.md,sha256=XHpi1Lfx1iI
27
27
  pycodex/prompts/permissions/sandbox_mode/danger_full_access.md,sha256=nZ7YHacBd3cAHKRZc9XClOOOnXJPXPh0WFBueh5C2D0,197
28
28
  pycodex/prompts/permissions/sandbox_mode/read_only.md,sha256=2rAPEXsBYCcuttI5j3euS-3uv_v97catIsnhxlSQSIM,173
29
29
  pycodex/prompts/permissions/sandbox_mode/workspace_write.md,sha256=lVN-LwrBbHqlv5yVjcd_mU8tzZW8jfKpTatJKIZu9HI,277
30
- pycodex/tools/__init__.py,sha256=RJ0Ejcqwt41jFwEhTtvKjYu7wmJzI3Kd--3oGAQdZ8U,5101
30
+ pycodex/tools/__init__.py,sha256=tppYyq7lmcyEuCaXKZgi231JSvoaaCiFOWnv3hg3hOI,5166
31
31
  pycodex/tools/agent_tool_schemas.py,sha256=juw4b2pp2tDhDPVTVY4rytm8IyVr2h686Qfk_5e9S0E,780
32
32
  pycodex/tools/apply_patch_tool.py,sha256=LcyJuGtndmLLbFL1sIUQ2Y6KLCef95KBfi0adGA1bN8,13183
33
33
  pycodex/tools/base_tool.py,sha256=dD_makVyjbnJN_cAhRAj_sJJHYh8VUDoXFiRoWDh6Ko,8644
@@ -49,10 +49,10 @@ pycodex/tools/read_file_tool.py,sha256=YK__uhIVldBjAQega5S_ZuZU5jgP_kLOwr-YhjAmR
49
49
  pycodex/tools/request_permissions_tool.py,sha256=t-Y-iEhvUyE9IJAeiwnzfUdbQ73Gw7uxFcWLwS0no4o,4000
50
50
  pycodex/tools/runtime_services.py,sha256=59Vg22uQ6F0VPokAVf8x5AXdSdmj8_FffBzheD6RLFo,7810
51
51
  pycodex/tools/send_message_tool.py,sha256=mH51ufxTCcsHuLFI1tDKyX14AHPMij2cMJLJdlFFjZQ,1414
52
- pycodex/tools/shell_command_tool.py,sha256=bJKlTdIs2i28vH5f4GZfpunezr6JNicRzsL_6Vc3HvU,3675
52
+ pycodex/tools/shell_command_tool.py,sha256=iRQOHg1eTUPkntGc-ClyqyvNxI6JFGkT4S1heCj-8KA,4242
53
53
  pycodex/tools/shell_tool.py,sha256=I6lYLABSmLddRrNmpk0Li83AV55MI8x0bckWaRkFGI0,3527
54
54
  pycodex/tools/spawn_agent_tool.py,sha256=yjkjHsUxGdSHOn9_kZTs8Bd-0ZnWznZxOfcy3E-WKcA,3596
55
- pycodex/tools/unified_exec_manager.py,sha256=jFI6y8jsJ-9uv0S_8m81FVFJYbIxIg4uUeHPG8NdCpM,14853
55
+ pycodex/tools/unified_exec_manager.py,sha256=vYghA6o7PGsDfYY9sYDpDYdDaRxuM5VBSsQa85STloY,15757
56
56
  pycodex/tools/update_plan_tool.py,sha256=xwrSrerw5qfkbFc9Ltx1OZEmD__CWtryOy3UhL0-Jp4,3198
57
57
  pycodex/tools/view_image_tool.py,sha256=H7OP-QZEU5Gf-E4YnQbXfu2hDkL5-dJ3Apla2YYjErQ,3754
58
58
  pycodex/tools/wait_agent_tool.py,sha256=uo4KcFZBm8BAmw7i_wVjg2i3f_T9PrGL4ZnxbGt3-38,2516
@@ -68,14 +68,14 @@ pycodex/utils/crypto.py,sha256=HRCXF26Ft3S8CG2X0YpZwa8GMU9YJ0Loo8Q9PMPMcNw,1249
68
68
  pycodex/utils/debug.py,sha256=5XMpWpwFSm6woyx6RGXvN2qL0afRtTQbwlOAv-LotTw,913
69
69
  pycodex/utils/doctor.py,sha256=xhPflFEYFfmtQ4-LjnIyz-cNts0GjNtAK0inVTYfKiI,10764
70
70
  pycodex/utils/dotenv.py,sha256=rLHBfz5zPZMbrJqyRyYPy3j4oiDwuzfrH4mDH3XRrow,1647
71
- pycodex/utils/event_helpers.py,sha256=99f94sdQOdFVMzGKBzeNzhs67ccM3HZPj7faqb1G2AI,12260
72
- pycodex/utils/get_env.py,sha256=L4S8h84tkgxZKvrxY7ezTgePbXepG-yIigUTKeY6uuE,6094
73
- pycodex/utils/history.py,sha256=qgt5IxxkfCYjjpr08VJFhasICSSlqxQM7d-DjRJVjHA,3845
71
+ pycodex/utils/event_helpers.py,sha256=fzVvCJ3u8zi0FseuTJi7OcpVnNuASwEwIMwUcuurInw,13732
72
+ pycodex/utils/get_env.py,sha256=fHIl1-Z0UP-KM9uQrmIm8GDgWsk3Kuxq2OEBSB0PLEI,7927
73
+ pycodex/utils/history.py,sha256=EsXbZFvtMrzZ99dkthjPmdN5ZvOjUI6WCFVNImi5G5M,4495
74
74
  pycodex/utils/http_headers.py,sha256=4Jlnmun6QFSQ6L7javlDQfom1p2AZZQFXvcHzD3_cQk,877
75
75
  pycodex/utils/image_utils.py,sha256=OUzUs0Cow4L8Z2np0EBeEUotAqqsCmRmhrV8AxZUXRw,2460
76
76
  pycodex/utils/model_metadata.py,sha256=kCfe3jof1wrXJX9f2nDB9XN11v6JFSATNW4ewXb9gBI,1392
77
77
  pycodex/utils/random_ids.py,sha256=jLTxZZ0MBbRdQOFDFWGVRjWzIo6FKSQ5ADXbQSLPp1s,379
78
- pycodex/utils/session_persist.py,sha256=7JXXInvKaeO-9zz-n4LrnqrNn4BvFPEoVgZ88c9yZrM,31333
78
+ pycodex/utils/session_persist.py,sha256=B2CULvlofibcdnzMcszIM-R8spqtKmZJRsTZcTmTjPw,31455
79
79
  pycodex/utils/skill_catalog.py,sha256=3W-r6pn_fzEGyd89aKD2shGNhrUK2hLgrlwOlqYOpgU,618
80
80
  pycodex/utils/truncation.py,sha256=5D6vAorT8EgXgjd7ASwtraAyIZdlCR-w5jKZqJxDzho,5446
81
81
  pycodex/utils/_aes_gcm/LICENSE,sha256=KvdHagY3sYIK34GldJaRi34sNnGwMVJIIoDhbC9MRu8,2805
@@ -101,8 +101,8 @@ responses_server/transport.py,sha256=-pR-8zMxarSOH8H62i6IaG9nxi-IcWibRQarXs3Nk-s
101
101
  responses_server/tools/__init__.py,sha256=ivsBSEy0SBUhY-Uea5v1XMLXShkwHdCVl0id-1FwdZg,150
102
102
  responses_server/tools/custom_adapter.py,sha256=leYNJKp4Ute0JWNfGpe-ntSyFqRgYCdWF4dMYQFINlk,8615
103
103
  responses_server/tools/web_search.py,sha256=JyF6NHCS0SqoBrO18jX8cgBsiV4OYQBPz0Ky4u3juSQ,9059
104
- python_codex-0.7.0.dist-info/METADATA,sha256=9IpkJ6m_iJqpXm2UV0_9JjUkrWhZWrp5JNrF467pIZo,9743
105
- python_codex-0.7.0.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
106
- python_codex-0.7.0.dist-info/entry_points.txt,sha256=sNUVakoVuTrzJH505ZgRTQxmtRRPUHV_EH0i6EbYTyM,45
107
- python_codex-0.7.0.dist-info/licenses/LICENSE,sha256=0X8ifk312hYAORM4hlzg8wVSEXYKNmiPgWlB1YIy2Nw,10926
108
- python_codex-0.7.0.dist-info/RECORD,,
104
+ python_codex-0.7.2.dist-info/METADATA,sha256=6KwWNAfiOTFloeF5536qyYH690p2yBX41LU9pbZ17YM,10077
105
+ python_codex-0.7.2.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
106
+ python_codex-0.7.2.dist-info/entry_points.txt,sha256=sNUVakoVuTrzJH505ZgRTQxmtRRPUHV_EH0i6EbYTyM,45
107
+ python_codex-0.7.2.dist-info/licenses/LICENSE,sha256=0X8ifk312hYAORM4hlzg8wVSEXYKNmiPgWlB1YIy2Nw,10926
108
+ python_codex-0.7.2.dist-info/RECORD,,