Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,9 @@
from pathlib import Path
from rich.console import Console

# Allow running from src directly or as module
try:
from .sources.claude import ClaudeSource
from .targets.gemini import GeminiTarget
from .targets.opencode import OpenCodeTarget
except ImportError:
# Fallback if run as script (hacky but useful during dev)
sys.path.append(str(Path(__file__).parent))
from sources.claude import ClaudeSource
from targets.gemini import GeminiTarget
from targets.opencode import OpenCodeTarget
from .sources.claude import ClaudeSource
from .targets.gemini import GeminiTarget
from .targets.opencode import OpenCodeTarget

console = Console()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import yaml
from pathlib import Path
from typing import List, Dict, Any, Optional
from core import Agent, Skill, Command, SyncSource
from mappings import map_tool, GEMINI_TOOLS
from ..core import Agent, Skill, Command, SyncSource
from ..mappings import map_tool, GEMINI_TOOLS
from rich.console import Console

console = Console()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import yaml
from pathlib import Path
from typing import List, Optional
from core import Agent, Skill, Command, SyncTarget
from mappings import GEMINI_TOOLS
from ..core import Agent, Skill, Command, SyncTarget
from ..mappings import GEMINI_TOOLS
from rich.console import Console

console = Console()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import yaml
from pathlib import Path
from typing import List, Dict, Any, Optional
from core import Agent, Skill, Command, SyncTarget
from mappings import map_tool
from ..core import Agent, Skill, Command, SyncTarget
from ..mappings import map_tool
from rich.console import Console

console = Console()
Expand Down
7 changes: 3 additions & 4 deletions stapler-scripts/llm-sync/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import sys
from pathlib import Path

# Add src to python path
src_path = Path(__file__).parent / "src"
sys.path.append(str(src_path))
# Add project root to python path so we can import llm_sync as a package
sys.path.append(str(Path(__file__).parent))

from cli import main
from llm_sync.cli import main

if __name__ == "__main__":
main()
7 changes: 5 additions & 2 deletions stapler-scripts/llm-sync/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[project]
name = "llm-sync"
version = "0.1.0"
description = "Add your description here"
description = "Sync LLM agents from Claude to Gemini and OpenCode"
readme = "README.md"
requires-python = ">=3.14"
requires-python = ">=3.12"
dependencies = [
"pyyaml>=6.0.3",
"rich>=14.3.2",
]

[project.scripts]
llm-sync = "llm_sync.cli:main"