clockwork-cli 0.2.0__py3-none-any.whl → 0.2.1__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.
- clockwork_cli/__init__.py +22 -4
- {clockwork_cli-0.2.0.dist-info → clockwork_cli-0.2.1.dist-info}/METADATA +1 -1
- clockwork_cli-0.2.1.dist-info/RECORD +8 -0
- {clockwork_cli-0.2.0.dist-info → clockwork_cli-0.2.1.dist-info}/WHEEL +1 -1
- clockwork_cli-0.2.0.dist-info/RECORD +0 -8
- {clockwork_cli-0.2.0.dist-info → clockwork_cli-0.2.1.dist-info}/entry_points.txt +0 -0
- {clockwork_cli-0.2.0.dist-info → clockwork_cli-0.2.1.dist-info}/licenses/LICENSE +0 -0
- {clockwork_cli-0.2.0.dist-info → clockwork_cli-0.2.1.dist-info}/top_level.txt +0 -0
clockwork_cli/__init__.py
CHANGED
|
@@ -55,7 +55,7 @@ import hashlib
|
|
|
55
55
|
from datetime import datetime, timedelta, timezone
|
|
56
56
|
from collections import defaultdict
|
|
57
57
|
|
|
58
|
-
__version__ = "0.2.
|
|
58
|
+
__version__ = "0.2.1"
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
def _resolve_claude_dir():
|
|
@@ -270,7 +270,7 @@ def _claude_timestamps_from_files(files):
|
|
|
270
270
|
"""Parse user/human turn timestamps from Claude .jsonl files."""
|
|
271
271
|
timestamps = []
|
|
272
272
|
for f in sorted(files):
|
|
273
|
-
with open(f) as fh:
|
|
273
|
+
with open(f, encoding="utf-8") as fh:
|
|
274
274
|
for line in fh:
|
|
275
275
|
line = line.strip()
|
|
276
276
|
if not line:
|
|
@@ -339,7 +339,7 @@ def _codex_parse_file(path):
|
|
|
339
339
|
canonical = []
|
|
340
340
|
fallback = []
|
|
341
341
|
try:
|
|
342
|
-
with open(path) as fh:
|
|
342
|
+
with open(path, encoding="utf-8") as fh:
|
|
343
343
|
for line in fh:
|
|
344
344
|
line = line.strip()
|
|
345
345
|
if not line:
|
|
@@ -397,7 +397,7 @@ def _codex_cwd_only(path):
|
|
|
397
397
|
the `session_meta` record carrying `cwd` is at the top of the rollout.
|
|
398
398
|
"""
|
|
399
399
|
try:
|
|
400
|
-
with open(path) as fh:
|
|
400
|
+
with open(path, encoding="utf-8") as fh:
|
|
401
401
|
for line in fh:
|
|
402
402
|
line = line.strip()
|
|
403
403
|
if not line:
|
|
@@ -983,7 +983,25 @@ def _parse_args(argv):
|
|
|
983
983
|
return positionals, opts
|
|
984
984
|
|
|
985
985
|
|
|
986
|
+
def _force_utf8_streams():
|
|
987
|
+
"""Write UTF-8 on stdout/stderr regardless of the platform locale.
|
|
988
|
+
|
|
989
|
+
Windows falls back to the locale codepage (usually cp1252) whenever output
|
|
990
|
+
is redirected to a file or pipe, and the bar glyph and status marks used
|
|
991
|
+
below are not encodable there. Reconfiguring keeps output byte-identical
|
|
992
|
+
across platforms; the JSON export is pure ASCII either way.
|
|
993
|
+
"""
|
|
994
|
+
for stream in (sys.stdout, sys.stderr):
|
|
995
|
+
try:
|
|
996
|
+
stream.reconfigure(encoding="utf-8")
|
|
997
|
+
except (AttributeError, ValueError):
|
|
998
|
+
# Detached or replaced streams (test capture, some launchers) have
|
|
999
|
+
# nothing to reconfigure; whatever encoding they carry stands.
|
|
1000
|
+
pass
|
|
1001
|
+
|
|
1002
|
+
|
|
986
1003
|
def main():
|
|
1004
|
+
_force_utf8_streams()
|
|
987
1005
|
argv = sys.argv[1:]
|
|
988
1006
|
if "-h" in argv or "--help" in argv:
|
|
989
1007
|
print(__doc__.strip())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
clockwork_cli/__init__.py,sha256=qFoEGLod4QKiBAnjLBs8ygtd7NgGk5vp5Tpjn_5V5OM,36452
|
|
2
|
+
clockwork_cli/__main__.py,sha256=HcXz3nL5ocmXEASzCOKbjM3Sj6czPe8sqJSXglAjBw0,39
|
|
3
|
+
clockwork_cli-0.2.1.dist-info/licenses/LICENSE,sha256=pz4uy4Ra9e-Ks0T7UFFi8rGL86-f29m2ZOB0WgixjLY,1068
|
|
4
|
+
clockwork_cli-0.2.1.dist-info/METADATA,sha256=Udvr34v3iVXN7duh-aZLBYEirjQbKrHCjXpa-QpSepU,12227
|
|
5
|
+
clockwork_cli-0.2.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
6
|
+
clockwork_cli-0.2.1.dist-info/entry_points.txt,sha256=wmiWdgLrHpNKK9wDwCOiX4zyLFx71_G5DzydSiu8DWs,49
|
|
7
|
+
clockwork_cli-0.2.1.dist-info/top_level.txt,sha256=g5lh3hqDChq8bNBmiN2Kze86weZTddLJspNABd-2ckg,14
|
|
8
|
+
clockwork_cli-0.2.1.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
clockwork_cli/__init__.py,sha256=OlRHKN2tPx8eUEwBsEz_E3I9xCxNlppL1IQ9EBCuWCk,35644
|
|
2
|
-
clockwork_cli/__main__.py,sha256=HcXz3nL5ocmXEASzCOKbjM3Sj6czPe8sqJSXglAjBw0,39
|
|
3
|
-
clockwork_cli-0.2.0.dist-info/licenses/LICENSE,sha256=pz4uy4Ra9e-Ks0T7UFFi8rGL86-f29m2ZOB0WgixjLY,1068
|
|
4
|
-
clockwork_cli-0.2.0.dist-info/METADATA,sha256=B4yV8lkbt1U3sfJ2yEm2WHJn4WBstIsJxCHfBnI6d0o,12227
|
|
5
|
-
clockwork_cli-0.2.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
6
|
-
clockwork_cli-0.2.0.dist-info/entry_points.txt,sha256=wmiWdgLrHpNKK9wDwCOiX4zyLFx71_G5DzydSiu8DWs,49
|
|
7
|
-
clockwork_cli-0.2.0.dist-info/top_level.txt,sha256=g5lh3hqDChq8bNBmiN2Kze86weZTddLJspNABd-2ckg,14
|
|
8
|
-
clockwork_cli-0.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|