@neetru/cli 2.7.1 → 2.7.3

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,26 @@
2
2
 
3
3
  Convenção: [Keep a Changelog](https://keepachangelog.com/) + [SemVer](https://semver.org/).
4
4
 
5
+ ## [2.7.3] — 2026-05-20 (polish do cabeçalho)
6
+
7
+ ### Mudado
8
+
9
+ - Cabeçalho do `neetru` interativo: logo renderizado **ao lado** do texto
10
+ (antes era acima), com a sessão e a versão alinhadas à direita do logo.
11
+ - Paleta de contorno do menu e do logo ajustada para um azul mais suave.
12
+
13
+ ## [2.7.2] — 2026-05-20 (aviso de versão + menu em 2 colunas)
14
+
15
+ ### Adicionado
16
+
17
+ - O cabeçalho do `neetru` interativo mostra a **versão instalada** (`v2.7.2`)
18
+ ao lado do usuário logado. Quando há uma versão mais nova publicada no
19
+ npm, aparece uma linha **amarela** avisando pra rodar `neetru upgrade`.
20
+ A checagem tem timeout curto e é à prova de falha — offline não trava o
21
+ CLI.
22
+ - Menu principal redesenhado em **duas colunas**, com navegação por setas
23
+ (↑/↓/←/→) e contorno azul-marinho; o item ativo é marcado com `> <`.
24
+
5
25
  ## [2.7.1] — 2026-05-20 (UI do CLI interativo)
6
26
 
7
27
  ### Adicionado
@@ -1,10 +1,28 @@
1
- type MenuAction = 'overview' | 'quickstart' | 'products' | 'workspaces' | 'deploy' | 'servers' | 'databases' | 'tenants' | 'support' | 'health' | 'auth' | 'exit';
1
+ import { type DocsBannerInfo } from '../utils/logger.js';
2
+ type MenuAction = 'overview' | 'quickstart' | 'products' | 'workspaces' | 'deploy' | 'servers' | 'databases' | 'tenants' | 'support' | 'docs' | 'health' | 'auth' | 'exit';
3
+ export declare const MENU_OUTLINE_COLOR = "#334C65";
4
+ export declare const MENU_FOOTER_TEXT_COLOR = "#CBD5E1";
5
+ type MenuDirection = 'up' | 'down' | 'left' | 'right';
6
+ type DocsMenuAction = 'list' | 'get' | 'meta' | 'back' | `recent:${string}`;
2
7
  /** Item do menu principal: nome do recurso + descrição opcional. */
3
8
  interface MainMenuItem {
4
9
  label: string;
5
10
  value: MenuAction;
6
11
  description?: string;
7
12
  }
13
+ export interface DocsMenuChoice {
14
+ name: string;
15
+ value: DocsMenuAction;
16
+ short: string;
17
+ }
18
+ export interface MenuFooterTask {
19
+ label: string;
20
+ progress: number;
21
+ }
22
+ export interface MenuFooterState {
23
+ sessionEmail?: string | null;
24
+ tasks?: MenuFooterTask[];
25
+ }
8
26
  /**
9
27
  * Menu principal do CLI. Cada recurso tem um nome e, quando ajuda, uma
10
28
  * descrição curta exibida abaixo dele.
@@ -20,5 +38,8 @@ export declare function buildMenuChoices(items: MainMenuItem[]): Array<{
20
38
  value: MenuAction;
21
39
  short: string;
22
40
  }>;
41
+ export declare function moveMenuSelection(currentIndex: number, direction: MenuDirection, totalItems: number, columns?: number): number;
42
+ export declare function renderMainMenu(items: MainMenuItem[], selectedIndex: number, terminalColumns?: number, footer?: MenuFooterState): string;
43
+ export declare function buildDocsMenuChoices(docsInfo?: DocsBannerInfo): DocsMenuChoice[];
23
44
  export declare function runTerminalUi(): Promise<void>;
24
45
  export {};