claude-history 0.6.0__py3-none-any.whl → 0.6.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.
claude_history/cli.py CHANGED
@@ -1,6 +1,5 @@
1
1
  """CLI for exploring Claude Code conversation history."""
2
2
 
3
- import importlib.resources
4
3
  import os
5
4
  import re
6
5
  import shutil
@@ -513,19 +512,20 @@ def export(session_id: str, output_format: str):
513
512
  if output_format == "json":
514
513
  import json
515
514
 
515
+ messages: list[dict] = []
516
516
  output = {
517
517
  "session_id": conv.session_id,
518
518
  "title": conv.title,
519
519
  "cwd": conv.cwd,
520
520
  "git_branch": conv.git_branch,
521
521
  "start_time": conv.start_time.isoformat() if conv.start_time else None,
522
- "messages": [],
522
+ "messages": messages,
523
523
  }
524
524
 
525
525
  for msg in conv.messages:
526
526
  if msg.is_meta:
527
527
  continue
528
- output["messages"].append(
528
+ messages.append(
529
529
  {
530
530
  "role": msg.role,
531
531
  "text": msg.text,
@@ -767,13 +767,9 @@ def install_skill(dest: str | None, force: bool):
767
767
  return
768
768
 
769
769
  # Get the bundled skill directory
770
- try:
771
- skill_source = importlib.resources.files("claude_history") / "skill"
772
- except (TypeError, AttributeError):
773
- # Fallback for older Python
774
- import claude_history
770
+ import claude_history
775
771
 
776
- skill_source = Path(claude_history.__file__).parent / "skill"
772
+ skill_source = Path(claude_history.__file__).parent / "skill"
777
773
 
778
774
  if not skill_source.is_dir():
779
775
  echo(f"Error: Bundled skill not found at {skill_source}")
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: claude-history
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: CLI tool to explore and inspect past Claude Code conversations
5
- Requires-Python: >=3.13
5
+ Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
7
7
  License-File: LICENSE
8
8
  Requires-Dist: click>=8.3.1
@@ -0,0 +1,10 @@
1
+ claude_history/__init__.py,sha256=LxQ6KVLbTgZQwEDL0NVY13TEyTKvIQlRCm9zcbK02YI,70
2
+ claude_history/cli.py,sha256=5Au3_ajCn6MZ6N8lcOgrTzs1JW8BI8E7Mpgi3h0doVI,25759
3
+ claude_history/parser.py,sha256=6wa8IZR3hriu_TO1Ilj1sVQvlKAB2HTs1hDqbS4TQmE,23720
4
+ claude_history/skill/SKILL.md,sha256=fPLva5O6P4lTP8yGU1AaB5pdrpSL7x_0AcFd-fu6rp4,3115
5
+ claude_history-0.6.1.dist-info/licenses/LICENSE,sha256=imFqspU9Bm-VsIjgk7JLGL98DLQWfQok8cOPRx9_Q68,1074
6
+ claude_history-0.6.1.dist-info/METADATA,sha256=Nr-R1cbUiWf1wd0i_E2CR7FjDYUfSOm8S-RXBcDTYN8,2734
7
+ claude_history-0.6.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
8
+ claude_history-0.6.1.dist-info/entry_points.txt,sha256=TyfkIjEs-N7dsHxQfw7EjmP3BfMTYM9VclzW7iqnr6g,59
9
+ claude_history-0.6.1.dist-info/top_level.txt,sha256=g8Z91H9Ym-Ta1bhTf0iVgwdKlG5nTLUjiL6kDQSigh8,15
10
+ claude_history-0.6.1.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- claude_history/__init__.py,sha256=LxQ6KVLbTgZQwEDL0NVY13TEyTKvIQlRCm9zcbK02YI,70
2
- claude_history/cli.py,sha256=wR4FQR6YZnBcyyELMVAiJQlAorlzFBCjnXJEbTH0TtM,25926
3
- claude_history/parser.py,sha256=6wa8IZR3hriu_TO1Ilj1sVQvlKAB2HTs1hDqbS4TQmE,23720
4
- claude_history/skill/SKILL.md,sha256=fPLva5O6P4lTP8yGU1AaB5pdrpSL7x_0AcFd-fu6rp4,3115
5
- claude_history-0.6.0.dist-info/licenses/LICENSE,sha256=imFqspU9Bm-VsIjgk7JLGL98DLQWfQok8cOPRx9_Q68,1074
6
- claude_history-0.6.0.dist-info/METADATA,sha256=w6takVgUiOG7GTUod5WhIo7FmoD8msOdXgVdxhSRu2I,2734
7
- claude_history-0.6.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
8
- claude_history-0.6.0.dist-info/entry_points.txt,sha256=TyfkIjEs-N7dsHxQfw7EjmP3BfMTYM9VclzW7iqnr6g,59
9
- claude_history-0.6.0.dist-info/top_level.txt,sha256=g8Z91H9Ym-Ta1bhTf0iVgwdKlG5nTLUjiL6kDQSigh8,15
10
- claude_history-0.6.0.dist-info/RECORD,,