claude-code-tools 0.2.3__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.
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/PKG-INFO +1 -1
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/__init__.py +1 -1
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/find_claude_session.py +18 -7
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/pyproject.toml +2 -2
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/.gitignore +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/LICENSE +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/README.md +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/codex_bridge_mcp.py +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/dotenv_vault.py +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/env_safe.py +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/find_codex_session.py +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/tmux_cli_controller.py +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/tmux_remote_controller.py +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/docs/cc-codex-instructions.md +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/docs/claude-code-chutes.md +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/docs/claude-code-tmux-tutorials.md +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/docs/dot-zshrc.md +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/docs/find-claude-session.md +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/docs/lmsh.md +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/docs/reddit-post.md +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/docs/tmux-cli-instructions.md +0 -0
- {claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/docs/vault-documentation.md +0 -0
{claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/find_claude_session.py
RENAMED
|
@@ -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
|
-
|
|
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)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "claude-code-tools"
|
|
3
|
-
version = "0.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.
|
|
46
|
+
version = "0.2.4"
|
|
47
47
|
tag_format = "v$version"
|
|
48
48
|
version_files = [
|
|
49
49
|
"pyproject.toml:version",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/tmux_cli_controller.py
RENAMED
|
File without changes
|
{claude_code_tools-0.2.3 → claude_code_tools-0.2.4}/claude_code_tools/tmux_remote_controller.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|