codexapi 0.1.9__tar.gz → 0.2.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codexapi
3
- Version: 0.1.9
3
+ Version: 0.2.0
4
4
  Summary: Minimal Python API for running the Codex CLI.
5
5
  License: MIT
6
6
  Keywords: codex,agent,cli,openai
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "codexapi"
7
- version = "0.1.9"
7
+ version = "0.2.0"
8
8
  description = "Minimal Python API for running the Codex CLI."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -12,4 +12,4 @@ __all__ = [
12
12
  "task",
13
13
  "task_result",
14
14
  ]
15
- __version__ = "0.1.8"
15
+ __version__ = "0.2.0"
@@ -87,9 +87,12 @@ def _parse_timestamp(value):
87
87
  if value.endswith("Z"):
88
88
  value = value[:-1] + "+00:00"
89
89
  try:
90
- return datetime.fromisoformat(value)
90
+ parsed = datetime.fromisoformat(value)
91
91
  except ValueError:
92
92
  return None
93
+ if parsed.tzinfo is None:
94
+ return parsed
95
+ return parsed.astimezone().replace(tzinfo=None)
93
96
 
94
97
 
95
98
  def _tail_lines(path):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codexapi
3
- Version: 0.1.9
3
+ Version: 0.2.0
4
4
  Summary: Minimal Python API for running the Codex CLI.
5
5
  License: MIT
6
6
  Keywords: codex,agent,cli,openai
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes