@letra-ai/cli 0.1.6 → 0.1.11

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.
Files changed (2) hide show
  1. package/README.md +49 -25
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -17,16 +17,16 @@ Letra é um framework de **Specification-Driven Development (SDD) agnóstico a f
17
17
  - **Thin Specs**: Máximo 1 página por feature.
18
18
  - **Spec-Anchored**: Spec vive junto com o código, atualizada como parte do DoD.
19
19
  - **Context First**: Intent, constraints e "porquês" — não markdown verbose.
20
- - **Agnóstico**: Adapters para OpenCode, Cursor, VS Code, e mais.
20
+ - **Agnóstico**: Adapters para OpenCode, Cursor, VS Code e mais.
21
21
 
22
22
  ## Instalação
23
23
 
24
24
  ```bash
25
- # Via npm
26
- npm install -g @letra/cli
25
+ # Execução direta via npx
26
+ npx @letra-ai/cli init meu-projeto
27
27
 
28
- # Ou baixe o binário standalone
29
- # (para usuários sem Node.js instalado)
28
+ # Ou instalação global
29
+ npm install -g @letra-ai/cli
30
30
  ```
31
31
 
32
32
  ## Uso
@@ -36,12 +36,12 @@ npm install -g @letra/cli
36
36
  letra init
37
37
 
38
38
  # Criar uma nova spec
39
- letra spec new feature-auth
39
+ letra spec minha-feature
40
40
 
41
- # Validar formato das specs
41
+ # Validar formato e completude das specs
42
42
  letra lint
43
43
 
44
- # Verificar acceptance criteria
44
+ # Verificar acceptance criteria das specs
45
45
  letra validate
46
46
  ```
47
47
 
@@ -49,29 +49,47 @@ letra validate
49
49
 
50
50
  ```
51
51
  .letra/
52
- ├── context.md # Intent global, domínio, restrições reais
53
- ├── constitution.md # Regras não-negociáveis
54
- ├── decisions/ # ADRs
52
+ ├── context.md # Intent global, domínio, restrições reais
53
+ ├── constitution.md # Regras não-negociáveis
54
+ ├── glossary.md # Termos do domínio
55
+ ├── lessons-learned.md # Erros recorrentes dos agentes
56
+ ├── decisions/ # ADRs
55
57
  ├── specs/
56
- │ ├── feature-auth/
57
- │ │ ├── spec.md # O que + porquê (1 página max)
58
- │ │ ├── acceptance.md # Critérios binários
59
- │ │ └── status.md # Sync status
60
- ├── lessons-learned.md # Erros recorrentes dos agentes
61
- ├── glossary.md # Termos do domínio
58
+ │ └── minha-feature/
59
+ │ ├── spec.md # O que + porquê (1 página max)
60
+ │ ├── acceptance.md # Critérios binários
61
+ │ └── status.md # Sync status
62
62
  └── adapters/
63
- ├── opencode.json # Como OpenCode injeta contexto
64
- ├── cursor.json
65
- └── vscode.json
63
+ └── opencode.json # Configuração do adapter OpenCode
66
64
  ```
67
65
 
68
66
  ## Adapters
69
67
 
70
- | Adapter | Status |
71
- |---------|--------|
72
- | OpenCode | Em desenvolvimento |
73
- | Cursor | Planejado |
74
- | VS Code | Planejado |
68
+ | Adapter | Status | Artefato Gerado |
69
+ |---------|--------|----------------|
70
+ | OpenCode | ✅ Completo | `.letra/adapters/opencode.json` |
71
+ | Cursor | ✅ Completo | `.cursorrules` |
72
+ | VS Code (Copilot) | ✅ Completo | `.github/copilot-instructions.md` + `.vscode/settings.json` |
73
+
74
+ ## Exemplo
75
+
76
+ ```bash
77
+ # Criar um novo projeto
78
+ mkdir meu-app
79
+ cd meu-app
80
+
81
+ # Inicializar o .letra/
82
+ npx @letra-ai/cli init
83
+
84
+ # Criar uma spec de autenticação
85
+ npx @letra-ai/cli spec auth
86
+
87
+ # Editar .letra/specs/auth/spec.md com sua intenção
88
+ # Desenvolver a funcionalidade...
89
+
90
+ # Validar se o código cumpre os acceptance criteria
91
+ npx @letra-ai/cli validate
92
+ ```
75
93
 
76
94
  ## Desenvolvimento
77
95
 
@@ -82,6 +100,12 @@ npm install
82
100
  # Rodar em dev
83
101
  npm run dev
84
102
 
103
+ # Lint e formatação
104
+ npm run lint
105
+
106
+ # Type check
107
+ npm run typecheck
108
+
85
109
  # Build
86
110
  npm run build
87
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letra-ai/cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.11",
4
4
  "description": "SDD-agnostic memory framework for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {