Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
3bdef65
chore(release): bump version to 0.5.3 for npm publish
booletec Jun 17, 2026
103c2dc
Merge branch 'main' of https://github.com/jspengine/letra
booletec Jun 17, 2026
cd5dbd7
docs(letra-dev-loop): add explicit publish-from-clean-main rule
booletec Jun 17, 2026
8f820d6
feat: gate enforcement + empty state + ac CLI + harness loader
booletec Jun 22, 2026
8b6a501
feat(kanban): empty state + gate enforcement visual
booletec Jun 22, 2026
df7057e
feat: harness viewer cascade (L1-L4) + sheet popover bg fix + audit l…
booletec Jul 2, 2026
4640e2e
fix: sync specs with implementation, unify sidebar width, remove dupl…
booletec Jul 30, 2026
42128ee
feat: full platform update — DS v2, adapters, harness v0.1.3, Storybo…
booletec Jul 30, 2026
f5318da
chore: ITEM-64 adapter-platform-v2 → Done — all 10 ACs verified
booletec Jul 30, 2026
e9a291d
chore: sync focus to ITEM-63 after ITEM-64 completion
booletec Jul 30, 2026
2b9e619
fix: AC counting regex excludes false positives from example text
booletec Jul 31, 2026
bad967b
feat(AC5): Trabalho consolidado — remove harness bypass, usa gate-dec…
booletec Jul 31, 2026
df3ae04
feat(product-supervision-navigation): AC6-12 — roles, translations, l…
booletec Jul 31, 2026
3ae05bf
chore: move ITEM-62 to done
booletec Jul 31, 2026
43337c5
feat: create workspace-settings spec and ITEM-77
booletec Jul 31, 2026
60fd935
refactor(workspace-settings): simplify architecture — workflow.json a…
booletec Jul 31, 2026
a0a1e57
refactor(workspace-settings): remove build/test, rename targets to lo…
booletec Jul 31, 2026
aeacfd2
refactor(workspace-settings): improve adapter lifecycle and detection
booletec Jul 31, 2026
0277386
feat: convert workspace settings from Sheet to dedicated page
booletec Jul 31, 2026
c9f065b
feat(agent-orchestration): add orchestration types and spec v2
booletec Aug 22, 2026
378fdd4
feat(workspace-externalization): externalize .letra/ to ~/.letra/work…
booletec Aug 22, 2026
fd0ebdc
refactor(constitution-governance): rewrite spec v2 with code confront…
booletec Aug 23, 2026
4862251
feat(constitution-governance): implement constitution as active gover…
booletec Aug 23, 2026
6c4d0df
test(constitution-governance): add governance tests for AC7
booletec Aug 23, 2026
ee1bd35
feat(agent-orchestration): add harness v0.2.0 with roles, gates, and …
booletec Aug 23, 2026
a03f9ee
feat(agent-orchestration): add checkHandoffAllowed to GateChecker
booletec Aug 23, 2026
86f2ca7
feat(agent-orchestration): implement handoff protocol (AC4)
booletec Aug 23, 2026
7e2e30b
feat(agent-orchestration): implement Orchestrator service (AC5)
booletec Aug 23, 2026
7741d11
feat(agent-orchestration): complete AC3 and AC4
booletec Aug 23, 2026
dc00e90
feat(agent-orchestration): implement Executor interface (AC6)
booletec Aug 23, 2026
044969f
test(agent-orchestration): add executor fallback tests for AC7
booletec Aug 23, 2026
c9337cd
feat(agent-orchestration): add handoff logging to session-log (AC12)
booletec Aug 23, 2026
7350278
docs(agent-orchestration): update acceptance checklist
booletec Aug 23, 2026
a222c0e
feat: agent orchestration AC8/AC10/AC12 + close ITEM-81
booletec Aug 23, 2026
99e5f1e
chore: bump CLI to v0.6.0, fix TypeScript errors
booletec Aug 23, 2026
c17eae7
feat: cross-process file lock + SSE/polling for handoffs
booletec Aug 23, 2026
5945189
test: AC14 complete — concurrency, regression, cross-adapter tests
booletec Aug 23, 2026
11b5f85
feat: SSE Integration — Orchestrator wired to FlowServer
booletec Aug 24, 2026
0e1a7bf
feat: Kanban board com layout 2 colunas e painel colapsável
booletec Aug 24, 2026
fa5d294
fix: colapso do painel e scroll horizontal do Kanban
booletec Aug 24, 2026
cd62378
fix: sinais de supervisão com mensagens acionáveis
booletec Aug 24, 2026
656306d
fix: melhorar detector ac-false-pos para reduzir falsos positivos
booletec Aug 24, 2026
b4c4d59
fix: detector ac-false-pos busca sub-comandos em linhas separadas
booletec Aug 24, 2026
d6b7590
spec: agent-identity — identidade visual de agentes e gestão de equipe
booletec Aug 24, 2026
233dba3
fix: lint — CRLF→LF, biome format, typecheck errors, test fixes
booletec Aug 24, 2026
57339f6
fix: CI — graceful broken-link fallback, remove .letra-link from git,…
booletec Aug 24, 2026
cdd79cc
ci: trigger new CI run after resolver fix
booletec Aug 24, 2026
25cfdf8
fix: add fallback walk-up for specs resolution + CI debug diagnostics
booletec Aug 24, 2026
1c25de5
fix: remove broken debug steps from CI, rely on fallback walk-up in l…
booletec Aug 24, 2026
4c1c8e3
fix: slim down specs to pass lint (all under 3000 chars, required sec…
booletec Aug 24, 2026
5595e9d
fix: add ExecutionView surface, fix CSS @import ordering for DS catalog
booletec Aug 24, 2026
bbad32c
fix: a11y violations - tablist roles, progressbar labels, contrast, s…
booletec Aug 24, 2026
851220a
fix: a11y round 2 - tablist structure, contrast token, DocumentEditor…
booletec Aug 24, 2026
05c56ef
fix: a11y round 3 - Badge/Tag contrast with hardcoded accessible colo…
booletec Aug 24, 2026
5104091
fix: replace color-mix() with hardcoded opaque hex for a11y contrast
booletec Aug 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
131 changes: 0 additions & 131 deletions .cursorrules

This file was deleted.

3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Force LF line endings for YAML files in workflows
.github/workflows/**/*.yml text eol=lf
.github/workflows/**/*.yaml text eol=lf
143 changes: 17 additions & 126 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -1,131 +1,22 @@
# Gerado por letra flow move. Nao edite manualmente.

### ⚠ ATENÇÃO: 2 problema(s) grave(s) detectado(s) pelo diagnóstico automático
Execute `letra health` para detalhes e `letra health ack <id>` para reconhecer.
# Letra Session — letra

PASSO OBRIGATÓRIO #1: letra pulse — verificar estado do workspace
PASSO OBRIGATÓRIO #2: Leia .letra/context.md — contexto completo do projeto
PASSO OBRIGATÓRIO #3: Leia .letra/focus.md — foco e outcome da sessão
PASSO OBRIGATÓRIO #4: Leia .letra/specs/write-sync/spec.md — ACs do item

## Foco Atual

Item: ITEM-1 · Branding: header Letra no flow serve + 3 opções de logo
Spec: write-sync
Estágio: Done

## Alertas

Alerta · severidade baixa
ID: hr-4652f8f0
O que: AC "flow diff" marcado [ ] mas implementado
Onde: ac-stale
Desde: 17/06/2026, 14:13:59
Ação: `letra health ack hr-4652f8f0`

Alerta · severidade baixa
ID: hr-4103b765
O que: AC "flow visualize" marcado [ ] mas implementado
Onde: ac-stale
Desde: 17/06/2026, 14:13:59
Ação: `letra health ack hr-4103b765`

Alerta · severidade baixa
ID: hr-dd77601
O que: AC "flow export" marcado [ ] mas implementado
Onde: ac-stale
Desde: 17/06/2026, 14:13:59
Ação: `letra health ack hr-dd77601`

Alerta · severidade baixa
ID: hr-6380dc9e
O que: AC "GET /" marcado [ ] mas implementado
Onde: ac-stale
Desde: 17/06/2026, 14:13:59
Ação: `letra health ack hr-6380dc9e`

Alerta · severidade baixa
ID: hr-352219f2
O que: AC "letra sitrep" marcado [ ] mas implementado
Onde: ac-stale
Desde: 17/06/2026, 14:13:59
Ação: `letra health ack hr-352219f2`

e mais 3 alertas

## Regras (Violação = Erro Grave)

**Violação = Erro Grave**

- Não edite workflow.json manualmente — use `letra flow` e `letra focus`
- Não crie specs fora de .letra/specs/ — use `letra spec new`
- Não pule os passos obrigatórios de início acima
- Execute `letra validate` antes de mover item entre estágios
- Siga a constitution.md rigorosamente

## Fluxo de Execução

**Loop por AC**:
1. Implemente o AC no código
2. `letra ac done <AC-ID>` — marca como concluído no spec.md
3. `letra validate` — verifica se ACs estão consistentes
4. Repita até todos os ACs do item estarem concluídos

**Ao concluir todos ACs**:
→ `letra pulse` — confirma estado
→ `letra sitrep` — atualiza context.md
→ `letra flow move <ITEM-ID> --auto` — avança para próximo estágio

## Comandos

**Leitura (seguro — não muda nada):**
`letra pulse` — Overview do workspace
`letra health` — Alertas ativos
`letra flow board` — Todas as colunas do fluxo
`letra flow backlog` — Itens no backlog
`letra validate` — Validar specs e ACs

**Escrita (muda estado):**
`letra health ack <id>` — Reconhecer alerta
`letra health dismiss <id>` — Descartar alerta
`letra health scan` — Re-executar verificações
`letra sitrep` — Atualizar context.md
`letra flow move <id> --to <s>` — Mover item entre estágios
`letra focus <spec>` — Definir foco
`letra focus --clear` — Limpar foco

## Continuidade

Última atividade: 15/06/2026, 17:55:27
Ações:
• item_move: Item ITEM-49 movido: Backlog → Done
• item_move: Item ITEM-44 movido: Backlog → Code
• item_move: Item ITEM-44 movido: Code → Review
• item_move: Item ITEM-44 movido: Review → Done
• validate: Validação executada — 26 passed, 0 failed, 248 war

## Checklist de Encerramento

1. `letra pulse --json` — veja itens, ACs, alertas, backlog

2. Decida o estado:

**CONTINUE** (backlog tem itens OU item atual tem ACs pendentes):
→ Relate o progresso: quais ACs fez, o que falta, onde parou
→ Se sessão >30 min, pare e relate. Caso contrário, continue.

**BLOCKED** (backlog vazio, item sem ACs pendentes, aguardando humano):
→ Relate "Trabalho concluído, aguardando revisão"
→ Liste o que foi feito e decisões necessárias

**ALL_DONE** (todos os itens em Done, backlog vazio):
→ Relate missão completa: itens concluídos, o que foi construído, próximos passos

## Arquivos de Contexto

# Gerado por letra ac. Nao edite manualmente.
# Letra Context — VSCode Copilot Adapter
Read the following files before starting any task:
- .letra/context.md
- .letra/constitution.md
- .letra/glossary.md
- .letra/constraints.md
- .letra/focus.md

# Rules
- Always read specs in .letra/specs/ before writing code
- Run `letra validate` to check acceptance criteria
- Execute `letra ac done <ID>` after implementing each AC
- Follow the constitution.md rules strictly
- Use formal tone in all generated content

<!-- mermaid-ai-skills:start -->
## Mermaid Diagrams

When the user asks to create, edit, or visualize a diagram, follow the
instructions in `.github/instructions/mermaid.instructions.md`.
<!-- mermaid-ai-skills:end -->
85 changes: 85 additions & 0 deletions .github/instructions/mermaid.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
applyTo: "**"
---
# Mermaid AI Skills

When the user asks to create, edit, or visualize any diagram, use the Mermaid
VS Code extension tools and commands described below.

## Workflow

1. Determine the diagram type and generate Mermaid syntax.
2. Write the diagram to a `.mmd` file in the project.
3. Validate syntax: correct first-line keyword, arrow types, balanced brackets.
4. Preview via the Mermaid extension — open the `.mmd` file (auto-preview) or run
**MermaidChart: Preview Diagram** (`mermaidChart.preview`).

## LM Tools — call these for every diagram interaction

- `mermaid-diagram-validator` — validate Mermaid syntax before presenting any diagram
- `mermaid-diagram-preview` — render a live preview inside VS Code after generating
- `get-syntax-docs-mermaid` — fetch correct syntax docs for any diagram type

## VS Code Commands

Invoke via Command Palette or the VS Code command API (GitHub Copilot in VS Code only).
Do not invent command IDs. Prefer writing/editing `.mmd` files when a command is not needed.

### Diagram editing & preview
- **Preview** (`mermaidChart.preview`) — preview the active Mermaid editor (`.mmd` / `.mermaid` must be open).
- **Create Diagram** (`mermaidChart.createMermaidFile`) — creates a demo flowchart and opens preview side by side.
- **Repair Diagram** (`mermaidChart.repairDiagram`) — Mermaid AI repair for the active diagram; uses Mermaid AI credits — tell the user before running.
- **Improve Diagram** (`mermaidChart.improveDiagram`) — uses Copilot / LM API; suggests layout + styling variants for the active diagram.

### Generate diagrams (GitHub Copilot required)
- **Generate Diagram from Code** (`mermaidChart.generateDiagramFromCode`)
- **Generate Cloud Diagram** (`mermaidChart.generateCloudDiagram`)
- **Generate ER Diagram** (`mermaidChart.generateERDiagram`)
- **Generate Docker Diagram** (`mermaidChart.generateDockerDiagram`)
- **Open AI Chat** (`mermaidChart.openCopilotChat`)

### Mermaid Chart cloud
- **Login** (`mermaidChart.login`) / **Logout** (`mermaidChart.logout`)
- **Connect Diagram** (`mermaidChart.connectDiagramToMermaidChart`) — link a local diagram to Mermaid Chart.
- **Sync Diagram** (`mermaidChart.syncDiagramWithMermaid`) — only for diagrams already connected (frontmatter has `id:`). Example:
```yaml
---
id: cbd9e9ba-a2cb-47c5-a98e-8c28a753428d
---
```

### Review Mermaid Sync
For diagrams updated by the Mermaid Chart GitHub Sync app (or pre-commit regenerate):
- **Review Mermaid Sync** (`mermaidChart.reviewAppCommits`) — start / open the review flow.
- **Regenerate with Mermaid AI** (`mermaidChart.regenerateDiagramWithMermaidAI`) — regenerate from source references.
Do not manually rewrite diagrams managed by this workflow. Accept/reject/diff UI actions stay in the extension UI.

### Install / update this pack
- **MermaidChart: Install AI Skills…** (`mermaidChart.installAiSkills`)

## @mermaid-chart slash commands

| Command | Purpose |
|---|---|
| `/generate_diagram_from_code` | General diagram from any source file |
| `/generate_execution_sequence` | Sequence diagram from code flow |
| `/generate_er_diagram` | ER diagram from schema / models |
| `/generate_cloud_architecture_diagram` | Cloud / CI-CD architecture |
| `/generate_docker_diagram` | Architecture from Dockerfiles |
| `/generate_c4_topdown_architecture` | C4 top-down architecture |
| `/analyze_code_ownership` | Code ownership diagram |
| `/generate_dependency_diagram` | Dependency / security visualisation |

## Rules

1. Always call `mermaid-diagram-validator` before showing any diagram.
2. Always call `mermaid-diagram-preview` after generating a diagram.
3. Use `get-syntax-docs-mermaid` before generating an unfamiliar diagram type.
4. Prefer `@mermaid-chart` slash commands for complex generation.
5. Write diagrams to `.mmd` files; never return unvalidated Mermaid syntax.
6. Warn the user before Repair (Mermaid AI credits).
7. Cooperate with the Sync workflow — do not manually regenerate managed diagrams.

## Docs

More commands and features: https://marketplace.visualstudio.com/items?itemName=MermaidChart.vscode-mermaid-chart
Loading
Loading