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.
@@ -0,0 +1,4 @@
1
+ """SnipContext package."""
2
+
3
+ __version__ = "0.1.0"
4
+ __all__: list[str] = []
@@ -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."""