claude-jacked 0.2.7__py3-none-any.whl → 0.3.0__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.
jacked/__init__.py CHANGED
@@ -1,22 +1,42 @@
1
1
  """
2
- Claude Jacked - Cross-machine semantic search for Claude Code sessions.
2
+ Claude Jacked - Smart reviewers, commands, and session search for Claude Code.
3
3
 
4
- This package provides tools to index, search, and retrieve context from past
5
- Claude Code sessions, enabling seamless context sharing across machines.
4
+ Base install provides agents, commands, and behavioral rules.
5
+ Install extras for additional features:
6
+ pip install "claude-jacked[search]" — session search via Qdrant
7
+ pip install "claude-jacked[security]" — security gatekeeper hook
8
+ pip install "claude-jacked[all]" — everything
6
9
  """
7
10
 
8
- __version__ = "0.2.1"
11
+ __version__ = "0.3.0"
12
+
13
+
14
+ def _qdrant_available() -> bool:
15
+ """Check if qdrant-client is installed."""
16
+ try:
17
+ import qdrant_client # noqa: F401
18
+ return True
19
+ except ImportError:
20
+ return False
21
+
22
+
23
+ def __getattr__(name: str):
24
+ """Lazy imports for backwards compat — only works if [search] extra installed."""
25
+ _search_classes = {
26
+ "SmartForkConfig": "jacked.config",
27
+ "QdrantSessionClient": "jacked.client",
28
+ "SessionIndexer": "jacked.indexer",
29
+ "SessionSearcher": "jacked.searcher",
30
+ "SessionRetriever": "jacked.retriever",
31
+ }
32
+ if name in _search_classes:
33
+ import importlib
34
+ module = importlib.import_module(_search_classes[name])
35
+ return getattr(module, name)
36
+ raise AttributeError(f"module 'jacked' has no attribute {name!r}")
9
37
 
10
- from jacked.config import SmartForkConfig
11
- from jacked.client import QdrantSessionClient
12
- from jacked.indexer import SessionIndexer
13
- from jacked.searcher import SessionSearcher
14
- from jacked.retriever import SessionRetriever
15
38
 
16
39
  __all__ = [
17
- "SmartForkConfig",
18
- "QdrantSessionClient",
19
- "SessionIndexer",
20
- "SessionSearcher",
21
- "SessionRetriever",
40
+ "__version__",
41
+ "_qdrant_available",
22
42
  ]