sigma-terminal 3.3.2__py3-none-any.whl → 3.4.1__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.
- sigma/__init__.py +5 -5
- sigma/app.py +570 -171
- sigma/charts.py +33 -8
- sigma/cli.py +11 -11
- sigma/config.py +175 -34
- sigma/llm.py +160 -13
- sigma/setup.py +16 -16
- sigma/tools.py +868 -3
- sigma_terminal-3.4.1.dist-info/METADATA +272 -0
- {sigma_terminal-3.3.2.dist-info → sigma_terminal-3.4.1.dist-info}/RECORD +13 -13
- sigma_terminal-3.3.2.dist-info/METADATA +0 -444
- {sigma_terminal-3.3.2.dist-info → sigma_terminal-3.4.1.dist-info}/WHEEL +0 -0
- {sigma_terminal-3.3.2.dist-info → sigma_terminal-3.4.1.dist-info}/entry_points.txt +0 -0
- {sigma_terminal-3.3.2.dist-info → sigma_terminal-3.4.1.dist-info}/licenses/LICENSE +0 -0
sigma/setup.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Sigma v3.
|
|
1
|
+
"""Sigma v3.4.1 - Setup Wizard."""
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
4
|
import sys
|
|
@@ -25,20 +25,20 @@ from .config import (
|
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
__version__ = "3.
|
|
28
|
+
__version__ = "3.4.1"
|
|
29
29
|
SIGMA = "σ"
|
|
30
30
|
console = Console()
|
|
31
31
|
|
|
32
|
-
# Clean banner - just SIGMA
|
|
32
|
+
# Clean banner - just SIGMA
|
|
33
33
|
BANNER = """
|
|
34
|
-
[bold
|
|
35
|
-
[bold
|
|
36
|
-
[bold
|
|
37
|
-
[bold
|
|
38
|
-
[bold
|
|
39
|
-
[bold
|
|
34
|
+
[bold #3b82f6]███████╗██╗ ██████╗ ███╗ ███╗ █████╗ [/bold #3b82f6]
|
|
35
|
+
[bold #60a5fa]██╔════╝██║██╔════╝ ████╗ ████║██╔══██╗[/bold #60a5fa]
|
|
36
|
+
[bold #93c5fd]███████╗██║██║ ███╗██╔████╔██║███████║[/bold #93c5fd]
|
|
37
|
+
[bold #60a5fa]╚════██║██║██║ ██║██║╚██╔╝██║██╔══██║[/bold #60a5fa]
|
|
38
|
+
[bold #3b82f6]███████║██║╚██████╔╝██║ ╚═╝ ██║██║ ██║[/bold #3b82f6]
|
|
39
|
+
[bold #1d4ed8]╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝[/bold #1d4ed8]
|
|
40
40
|
|
|
41
|
-
[bold cyan]σ Finance Research Agent[/bold cyan] [dim]- Setup Wizard v3.
|
|
41
|
+
[bold cyan]σ Finance Research Agent[/bold cyan] [dim]- Setup Wizard v3.4.1[/dim]
|
|
42
42
|
"""
|
|
43
43
|
|
|
44
44
|
|
|
@@ -185,8 +185,8 @@ class SetupWizard:
|
|
|
185
185
|
existing = getattr(self.settings, key_attr, None)
|
|
186
186
|
|
|
187
187
|
if existing:
|
|
188
|
-
|
|
189
|
-
console.print(f"[dim]Existing key: {
|
|
188
|
+
# Show full key - no masking
|
|
189
|
+
console.print(f"[dim]Existing key: {existing}[/dim]")
|
|
190
190
|
if not Confirm.ask("Replace?", default=False):
|
|
191
191
|
console.print(f"[cyan]{SIGMA}[/cyan] Keeping existing key")
|
|
192
192
|
return
|
|
@@ -265,7 +265,7 @@ class SetupWizard:
|
|
|
265
265
|
if self.settings.default_provider != LLMProvider.OLLAMA:
|
|
266
266
|
ollama_running, ollama_host = detect_ollama()
|
|
267
267
|
if ollama_running and ollama_host:
|
|
268
|
-
console.print(f"[green]
|
|
268
|
+
console.print(f"[green]OK[/green] Ollama detected at {ollama_host}")
|
|
269
269
|
if Confirm.ask("Enable Ollama as local fallback?", default=True):
|
|
270
270
|
save_setting("ollama_host", ollama_host)
|
|
271
271
|
console.print(f"[cyan]{SIGMA}[/cyan] Ollama enabled")
|
|
@@ -280,7 +280,7 @@ class SetupWizard:
|
|
|
280
280
|
lean_installed, lean_cli, lean_dir = detect_lean_installation()
|
|
281
281
|
|
|
282
282
|
if lean_installed:
|
|
283
|
-
console.print(f"[green]
|
|
283
|
+
console.print(f"[green]OK[/green] LEAN/QuantConnect detected!")
|
|
284
284
|
if lean_cli:
|
|
285
285
|
console.print(f" [dim]CLI: {lean_cli}[/dim]")
|
|
286
286
|
if lean_dir:
|
|
@@ -316,7 +316,7 @@ class SetupWizard:
|
|
|
316
316
|
success, message = install_lean_cli_sync()
|
|
317
317
|
|
|
318
318
|
if success:
|
|
319
|
-
console.print(f"[green]
|
|
319
|
+
console.print(f"[green]OK[/green] {message}")
|
|
320
320
|
save_setting("lean_enabled", "true")
|
|
321
321
|
save_setting("lean_cli_path", "lean")
|
|
322
322
|
|
|
@@ -325,7 +325,7 @@ class SetupWizard:
|
|
|
325
325
|
if lean_cli:
|
|
326
326
|
console.print(f"[cyan]{SIGMA}[/cyan] LEAN CLI ready: {lean_cli}")
|
|
327
327
|
else:
|
|
328
|
-
console.print(f"[red]
|
|
328
|
+
console.print(f"[red][x][/red] {message}")
|
|
329
329
|
console.print("[dim]You can install manually later: pip install lean[/dim]")
|
|
330
330
|
|
|
331
331
|
elif lean_choice == "manual":
|