snipcontext 0.1.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.
- snipcontext/__init__.py +4 -0
- snipcontext/__main__.py +38 -0
- snipcontext/cli/__init__.py +1 -0
- snipcontext/cli/main.py +1046 -0
- snipcontext/config/__init__.py +1 -0
- snipcontext/config/settings.py +206 -0
- snipcontext/core/__init__.py +1 -0
- snipcontext/core/models.py +247 -0
- snipcontext/core/search.py +856 -0
- snipcontext/core/storage.py +452 -0
- snipcontext/core/watcher.py +83 -0
- snipcontext/plugins/__init__.py +1 -0
- snipcontext/plugins/base.py +183 -0
- snipcontext/providers/__init__.py +1 -0
- snipcontext/providers/base.py +93 -0
- snipcontext/providers/claude.py +65 -0
- snipcontext/providers/cursor.py +49 -0
- snipcontext/providers/generic.py +45 -0
- snipcontext/providers/openai.py +62 -0
- snipcontext-0.1.0.dist-info/METADATA +426 -0
- snipcontext-0.1.0.dist-info/RECORD +24 -0
- snipcontext-0.1.0.dist-info/WHEEL +4 -0
- snipcontext-0.1.0.dist-info/entry_points.txt +9 -0
- snipcontext-0.1.0.dist-info/licenses/LICENSE +21 -0
snipcontext/__init__.py
ADDED
snipcontext/__main__.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""SnipContext runtime CLI facade.
|
|
2
|
+
|
|
3
|
+
Prefers the full Typer CLI when available; otherwise falls back to a minimal
|
|
4
|
+
stdlib-only no-op entry point so `python -m snipcontext` is always executable.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from typing import TYPE_CHECKING
|
|
10
|
+
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
import typer
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def get_app() -> typer.Typer:
|
|
16
|
+
try:
|
|
17
|
+
from snipcontext.cli.main import app
|
|
18
|
+
|
|
19
|
+
return app
|
|
20
|
+
except Exception:
|
|
21
|
+
try:
|
|
22
|
+
import typer
|
|
23
|
+
except Exception as exc: # pragma: no cover - defensive fallback
|
|
24
|
+
print(f"SnipContext CLI unavailable: {exc}")
|
|
25
|
+
raise SystemExit(1) from exc
|
|
26
|
+
|
|
27
|
+
app = typer.Typer(add_completion=True)
|
|
28
|
+
|
|
29
|
+
@app.command()
|
|
30
|
+
def demo() -> None:
|
|
31
|
+
"""Run the SnipContext demo."""
|
|
32
|
+
print("SnipContext demo not available in minimal runtime.")
|
|
33
|
+
|
|
34
|
+
return app
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
if __name__ == "__main__":
|
|
38
|
+
get_app()()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""SnipContext CLI."""
|