claude-code-tools 0.2.2__tar.gz → 0.2.4__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.

Potentially problematic release.


This version of claude-code-tools might be problematic. Click here for more details.

Files changed (22) hide show
  1. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/PKG-INFO +1 -1
  2. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/claude_code_tools/__init__.py +1 -1
  3. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/claude_code_tools/find_claude_session.py +19 -8
  4. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/claude_code_tools/find_codex_session.py +1 -1
  5. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/pyproject.toml +2 -2
  6. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/.gitignore +0 -0
  7. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/LICENSE +0 -0
  8. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/README.md +0 -0
  9. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/claude_code_tools/codex_bridge_mcp.py +0 -0
  10. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/claude_code_tools/dotenv_vault.py +0 -0
  11. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/claude_code_tools/env_safe.py +0 -0
  12. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/claude_code_tools/tmux_cli_controller.py +0 -0
  13. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/claude_code_tools/tmux_remote_controller.py +0 -0
  14. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/docs/cc-codex-instructions.md +0 -0
  15. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/docs/claude-code-chutes.md +0 -0
  16. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/docs/claude-code-tmux-tutorials.md +0 -0
  17. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/docs/dot-zshrc.md +0 -0
  18. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/docs/find-claude-session.md +0 -0
  19. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/docs/lmsh.md +0 -0
  20. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/docs/reddit-post.md +0 -0
  21. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/docs/tmux-cli-instructions.md +0 -0
  22. {claude_code_tools-0.2.2 → claude_code_tools-0.2.4}/docs/vault-documentation.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: claude-code-tools
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Collection of tools for working with Claude Code
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.11
@@ -1,3 +1,3 @@
1
1
  """Claude Code Tools - Collection of utilities for Claude Code."""
2
2
 
3
- __version__ = "0.2.2"
3
+ __version__ = "0.2.4"
@@ -337,7 +337,7 @@ def display_interactive_ui(sessions: List[Tuple[str, float, int, str, str, str,
337
337
  table.add_column("Branch", style="magenta")
338
338
  table.add_column("Date-Range", style="blue")
339
339
  table.add_column("Lines", style="cyan", justify="right")
340
- table.add_column("Preview", style="white", max_width=60, overflow="fold")
340
+ table.add_column("Last User Message", style="white", max_width=60, overflow="fold")
341
341
 
342
342
  for idx, (session_id, mod_time, create_time, line_count, project_name, preview, _, git_branch) in enumerate(display_sessions, 1):
343
343
  # Format: "10/04 - 10/09 13:45"
@@ -509,15 +509,20 @@ def copy_session_file(session_file_path: str) -> None:
509
509
  print(f"\nError copying file: {e}")
510
510
 
511
511
 
512
- def resume_session(session_id: str, project_path: str, shell_mode: bool = False):
512
+ def resume_session(session_id: str, project_path: str, shell_mode: bool = False, claude_home: Optional[str] = None):
513
513
  """Resume a Claude session using claude -r command."""
514
514
  current_dir = os.getcwd()
515
-
515
+
516
516
  # In shell mode, output commands for the shell to evaluate
517
517
  if shell_mode:
518
518
  if project_path != current_dir:
519
519
  print(f'cd {shlex.quote(project_path)}')
520
- print(f'claude -r {shlex.quote(session_id)}')
520
+ # Set CLAUDE_CONFIG_DIR environment variable if custom path specified
521
+ if claude_home:
522
+ expanded_home = str(Path(claude_home).expanduser().absolute())
523
+ print(f'CLAUDE_CONFIG_DIR={shlex.quote(expanded_home)} claude -r {shlex.quote(session_id)}')
524
+ else:
525
+ print(f'claude -r {shlex.quote(session_id)}')
521
526
  return
522
527
 
523
528
  # Check if we need to change directory
@@ -560,7 +565,13 @@ def resume_session(session_id: str, project_path: str, shell_mode: bool = False)
560
565
  # Change directory if needed (won't persist after exit)
561
566
  if change_dir and project_path != current_dir:
562
567
  os.chdir(project_path)
563
-
568
+
569
+ # Set CLAUDE_CONFIG_DIR environment variable if custom path specified
570
+ if claude_home:
571
+ # Expand ~ and make absolute
572
+ expanded_home = str(Path(claude_home).expanduser().absolute())
573
+ os.environ['CLAUDE_CONFIG_DIR'] = expanded_home
574
+
564
575
  # Execute claude
565
576
  os.execvp("claude", ["claude", "-r", session_id])
566
577
 
@@ -665,7 +676,7 @@ To persist directory changes when resuming sessions:
665
676
 
666
677
  # Perform selected action
667
678
  if action == "resume":
668
- resume_session(session_id, project_path, shell_mode=args.shell)
679
+ resume_session(session_id, project_path, shell_mode=args.shell, claude_home=args.claude_home)
669
680
  elif action == "path":
670
681
  session_file_path = get_session_file_path(session_id, project_path, args.claude_home)
671
682
  print(f"\nSession file path:")
@@ -695,7 +706,7 @@ To persist directory changes when resuming sessions:
695
706
  if not args.shell:
696
707
  print("\nOnly one match found. Resuming automatically...")
697
708
  session_id, _, _, _, _, _, project_path, _ = matching_sessions[0]
698
- resume_session(session_id, project_path, shell_mode=args.shell)
709
+ resume_session(session_id, project_path, shell_mode=args.shell, claude_home=args.claude_home)
699
710
  else:
700
711
  try:
701
712
  if args.shell:
@@ -714,7 +725,7 @@ To persist directory changes when resuming sessions:
714
725
  idx = int(choice) - 1
715
726
  if 0 <= idx < min(args.num_matches, len(matching_sessions)):
716
727
  session_id, _, _, _, _, project_path, _ = matching_sessions[idx]
717
- resume_session(session_id, project_path, shell_mode=args.shell)
728
+ resume_session(session_id, project_path, shell_mode=args.shell, claude_home=args.claude_home)
718
729
  else:
719
730
  print("Invalid choice", file=sys.stderr)
720
731
  sys.exit(1)
@@ -296,7 +296,7 @@ def display_interactive_ui(
296
296
  table.add_column("Branch", style="magenta")
297
297
  table.add_column("Date-Range", style="blue")
298
298
  table.add_column("Lines", justify="right")
299
- table.add_column("Preview", style="dim", max_width=60, overflow="fold")
299
+ table.add_column("Last User Message", style="dim", max_width=60, overflow="fold")
300
300
 
301
301
  for i, match in enumerate(matches, 1):
302
302
  table.add_row(
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "claude-code-tools"
3
- version = "0.2.2"
3
+ version = "0.2.4"
4
4
  description = "Collection of tools for working with Claude Code"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -43,7 +43,7 @@ exclude = [
43
43
 
44
44
  [tool.commitizen]
45
45
  name = "cz_conventional_commits"
46
- version = "0.2.2"
46
+ version = "0.2.4"
47
47
  tag_format = "v$version"
48
48
  version_files = [
49
49
  "pyproject.toml:version",