vyra-code 0.2.40__tar.gz → 0.2.41__tar.gz
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.
- {vyra_code-0.2.40 → vyra_code-0.2.41}/PKG-INFO +2 -2
- {vyra_code-0.2.40 → vyra_code-0.2.41}/README.md +1 -1
- {vyra_code-0.2.40 → vyra_code-0.2.41}/pyproject.toml +1 -1
- {vyra_code-0.2.40 → vyra_code-0.2.41}/vyra.py +16 -9
- {vyra_code-0.2.40 → vyra_code-0.2.41}/vyra_code.egg-info/PKG-INFO +2 -2
- {vyra_code-0.2.40 → vyra_code-0.2.41}/setup.cfg +0 -0
- {vyra_code-0.2.40 → vyra_code-0.2.41}/vyra_code.egg-info/SOURCES.txt +0 -0
- {vyra_code-0.2.40 → vyra_code-0.2.41}/vyra_code.egg-info/dependency_links.txt +0 -0
- {vyra_code-0.2.40 → vyra_code-0.2.41}/vyra_code.egg-info/entry_points.txt +0 -0
- {vyra_code-0.2.40 → vyra_code-0.2.41}/vyra_code.egg-info/requires.txt +0 -0
- {vyra_code-0.2.40 → vyra_code-0.2.41}/vyra_code.egg-info/top_level.txt +0 -0
- {vyra_code-0.2.40 → vyra_code-0.2.41}/vyra_i18n.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vyra-code
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.41
|
|
4
4
|
Summary: Vyra Code: assistente de IA no terminal (Termux, Linux, macOS e Windows) (chat em streaming, tarefas, memória, projetos e terminal remoto)
|
|
5
5
|
License: Proprietary
|
|
6
6
|
Keywords: termux,ai,assistant,cli,android,llm
|
|
@@ -70,7 +70,7 @@ Digite `vyra` para abrir a interface interativa (resposta em streaming, `/help`
|
|
|
70
70
|
| `vyra update [--check]` | atualiza ou só confere a versão |
|
|
71
71
|
| `vyra status`, `models`, `history`, `whoami`, `logout` | utilitários |
|
|
72
72
|
|
|
73
|
-
Dentro do `vyra`: `/avatar think` e `/avatar run` mostram a animação do avatar (anel
|
|
73
|
+
Dentro do `vyra`: `/avatar think` e `/avatar run` mostram a animação do avatar (anel prateado ao responder, arco-íris ao executar comandos).
|
|
74
74
|
|
|
75
75
|
## Segurança
|
|
76
76
|
|
|
@@ -49,7 +49,7 @@ Digite `vyra` para abrir a interface interativa (resposta em streaming, `/help`
|
|
|
49
49
|
| `vyra update [--check]` | atualiza ou só confere a versão |
|
|
50
50
|
| `vyra status`, `models`, `history`, `whoami`, `logout` | utilitários |
|
|
51
51
|
|
|
52
|
-
Dentro do `vyra`: `/avatar think` e `/avatar run` mostram a animação do avatar (anel
|
|
52
|
+
Dentro do `vyra`: `/avatar think` e `/avatar run` mostram a animação do avatar (anel prateado ao responder, arco-íris ao executar comandos).
|
|
53
53
|
|
|
54
54
|
## Segurança
|
|
55
55
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "vyra-code"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.41"
|
|
8
8
|
description = "Vyra Code: assistente de IA no terminal (Termux, Linux, macOS e Windows) (chat em streaming, tarefas, memória, projetos e terminal remoto)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -75,9 +75,10 @@ def default_home(env: dict | None = None, win: bool | None = None) -> str:
|
|
|
75
75
|
return new
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
VERSION = "0.2.
|
|
78
|
+
VERSION = "0.2.41"
|
|
79
79
|
DEFAULT_BACKEND = "https://aihub-api.vyntrica.com"
|
|
80
80
|
CHANGELOG = {
|
|
81
|
+
"0.2.41": ["cores da interface agora seguem a paleta da logo (prata e grafite-azulado), em vez do laranja do AI Hub Code; sucesso/aviso/falha continuam verde/amarelo/vermelho"],
|
|
81
82
|
"0.2.40": ["caixa de entrada fixa: a mensagem fica sempre embaixo, inclusive enquanto a IA responde", "spinner de espera mais sóbrio (uma linha, sem o anel animado)", "blocos de ferramenta (vyra-run/browse) com cabeçalho ●, comando │ e resultado ⎿"],
|
|
82
83
|
"0.2.39": ["AI Hub Code agora se chama Vyra Code: nova logo, novo comando vyra (aihub continua funcionando como atalho), pacote vyra-code (aihub-code continua como ponte)", "Sua configuração e sessão são levadas automaticamente de ~/.config/aihub-code para ~/.config/vyra-code", "Variáveis VYRA_* valem como as antigas AIHUB_*"],
|
|
83
84
|
"0.2.36": ["status: mostra se o executor está online (visto há…) em vez do rótulo antigo \"Codespace\""],
|
|
@@ -2017,11 +2018,16 @@ def show_news_once(c: Client, out: Callable[[str], None], color: bool = True) ->
|
|
|
2017
2018
|
import shlex
|
|
2018
2019
|
import textwrap
|
|
2019
2020
|
|
|
2020
|
-
|
|
2021
|
-
|
|
2021
|
+
# Paleta extraída da logo (V prateado com duas camadas cinza-grafite sobre fundo preto,
|
|
2022
|
+
# ver assets/vyra/vyra-logo.png e docs/ai-hub-code/BRAND.md): ACCENT é o grafite-azulado das
|
|
2023
|
+
# camadas de trás, amplificado para ler bem como destaque no terminal; ACCENT_SOFT é a mesma
|
|
2024
|
+
# família mais clara/suave. GREEN/YELLOW/RED continuam semânticos (sucesso/aviso/falha) —
|
|
2025
|
+
# não fazem parte da marca, então não mudam.
|
|
2026
|
+
ACCENT = "\x1b[38;5;103m"
|
|
2027
|
+
ACCENT_SOFT = "\x1b[38;5;146m"
|
|
2022
2028
|
DIM = "\x1b[38;5;244m"
|
|
2023
2029
|
BOLD = "\x1b[1m"
|
|
2024
|
-
CYAN = "\x1b[38;5;
|
|
2030
|
+
CYAN = "\x1b[38;5;146m"
|
|
2025
2031
|
GREEN = "\x1b[38;5;78m"
|
|
2026
2032
|
YELLOW = "\x1b[38;5;220m"
|
|
2027
2033
|
RED = "\x1b[38;5;203m"
|
|
@@ -2258,13 +2264,14 @@ def _lerp(a: tuple[int, int, int], b: tuple[int, int, int], t: float) -> tuple[i
|
|
|
2258
2264
|
|
|
2259
2265
|
|
|
2260
2266
|
def ring_color(angle: float, phase: float, mode: str) -> tuple[int, int, int]:
|
|
2261
|
-
"""Cor de um pedaço do anel. `think`: giro
|
|
2267
|
+
"""Cor de um pedaço do anel. `think`: giro prateado/grafite com cometa (cor da logo);
|
|
2268
|
+
`run`: arco-íris girando (sinal à parte, de execução ativa — não é cor de marca)."""
|
|
2262
2269
|
behind = (phase - angle) % 1.0 # 0 = cabeça do cometa, cresce para trás (sentido horário)
|
|
2263
2270
|
tail = max(0.0, 1.0 - behind * 1.5)
|
|
2264
2271
|
if mode == "run":
|
|
2265
2272
|
return _hsv(angle - phase, 0.92, 0.6 + 0.4 * tail)
|
|
2266
|
-
c = _lerp((
|
|
2267
|
-
return _lerp(c, (
|
|
2273
|
+
c = _lerp((40, 43, 52), (150, 160, 185), 0.12 + 0.88 * tail)
|
|
2274
|
+
return _lerp(c, (235, 237, 242), 1.0 - behind / 0.07) if behind < 0.07 else c
|
|
2268
2275
|
|
|
2269
2276
|
|
|
2270
2277
|
def mini_grid(mode: str | None, phase: float) -> list[list[tuple[int, int, int] | None]]:
|
|
@@ -2317,7 +2324,7 @@ class LivePanel:
|
|
|
2317
2324
|
"""Painel animado embaixo do texto: avatar com o anel girando + status.
|
|
2318
2325
|
|
|
2319
2326
|
Fica abaixo do cursor e é redesenhado a cada ~80 ms; o texto da resposta continua saindo acima dele.
|
|
2320
|
-
`think` = anel
|
|
2327
|
+
`think` = anel prateado girando (respondendo/pesquisando). `run` = arco-íris girando (executando comandos).
|
|
2321
2328
|
"""
|
|
2322
2329
|
|
|
2323
2330
|
HEIGHT = 7
|
|
@@ -3813,7 +3820,7 @@ def cmd_tui(c: Client, a: argparse.Namespace, out: Callable[[str], None] = print
|
|
|
3813
3820
|
demo = rest.strip() if rest.strip() in ("think", "run") else None
|
|
3814
3821
|
if demo and tty:
|
|
3815
3822
|
pn = LivePanel(True, color)
|
|
3816
|
-
out(render_detail("modo " + demo + (" (anel
|
|
3823
|
+
out(render_detail("modo " + demo + (" (anel prateado girando)" if demo == "think" else " (arco-íris girando)") + " · 5 s", color))
|
|
3817
3824
|
pn.start(demo)
|
|
3818
3825
|
try:
|
|
3819
3826
|
time.sleep(5)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vyra-code
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.41
|
|
4
4
|
Summary: Vyra Code: assistente de IA no terminal (Termux, Linux, macOS e Windows) (chat em streaming, tarefas, memória, projetos e terminal remoto)
|
|
5
5
|
License: Proprietary
|
|
6
6
|
Keywords: termux,ai,assistant,cli,android,llm
|
|
@@ -70,7 +70,7 @@ Digite `vyra` para abrir a interface interativa (resposta em streaming, `/help`
|
|
|
70
70
|
| `vyra update [--check]` | atualiza ou só confere a versão |
|
|
71
71
|
| `vyra status`, `models`, `history`, `whoami`, `logout` | utilitários |
|
|
72
72
|
|
|
73
|
-
Dentro do `vyra`: `/avatar think` e `/avatar run` mostram a animação do avatar (anel
|
|
73
|
+
Dentro do `vyra`: `/avatar think` e `/avatar run` mostram a animação do avatar (anel prateado ao responder, arco-íris ao executar comandos).
|
|
74
74
|
|
|
75
75
|
## Segurança
|
|
76
76
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|