@letra-ai/cli 0.5.3 → 0.6.2
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/dist/chunk-6HSUVCTR.js +363 -0
- package/dist/chunk-BKAUN5QH.js +300 -0
- package/dist/chunk-DMOLJWWW.js +3321 -0
- package/dist/chunk-EDD55PWL.js +119 -0
- package/dist/chunk-H64RC3YS.js +254 -0
- package/dist/chunk-JMIC5NKB.js +235 -0
- package/dist/chunk-L6YKDTAQ.js +275 -0
- package/dist/chunk-MJ2QXNH6.js +130 -0
- package/dist/chunk-OIHMDOIN.js +1326 -0
- package/dist/chunk-PDX44BCA.js +11 -0
- package/dist/chunk-URUC6ZZP.js +4781 -0
- package/dist/client/assets/index-EyRsq1SH.css +1 -0
- package/dist/client/assets/index-WfKR7Xp6.js +232 -0
- package/dist/client/favicon.svg +16 -4
- package/dist/client/index.html +25 -20
- package/dist/fallback-MQLGS4KL.js +46 -0
- package/dist/flow-serve-G5MSSB3G.js +18 -0
- package/dist/focus-sync-3D3XWCTI.js +17 -0
- package/dist/generate-UPFERQMD.js +20 -0
- package/dist/harness/default/v0.1.0/flows/sdlc.yaml +179 -0
- package/dist/harness/default/v0.1.0/gates/all-acs-passing.yaml +8 -0
- package/dist/harness/default/v0.1.0/gates/has-spec-file.yaml +7 -0
- package/dist/harness/default/v0.1.0/gates/human-approved-code.yaml +8 -0
- package/dist/harness/default/v0.1.0/gates/human-approved-spec.yaml +8 -0
- package/dist/harness/default/v0.1.0/gates/security-clear.yaml +8 -0
- package/dist/harness/default/v0.1.0/policies/sdlc-default.json +20 -0
- package/dist/harness/default/v0.1.0/roles/analyst.yaml +9 -0
- package/dist/harness/default/v0.1.0/roles/builder.yaml +9 -0
- package/dist/harness/default/v0.1.0/roles/pr-bot.yaml +8 -0
- package/dist/harness/default/v0.1.0/roles/reviewer.yaml +10 -0
- package/dist/harness/default/v0.1.0/roles/security.yaml +8 -0
- package/dist/harness/default/v0.1.1/flows/flow-main.yaml +61 -0
- package/dist/harness/default/v0.1.1/flows/sdlc.yaml +179 -0
- package/dist/harness/default/v0.1.1/gates/all-acs-passing.yaml +8 -0
- package/dist/harness/default/v0.1.1/gates/has-spec-file.yaml +7 -0
- package/dist/harness/default/v0.1.1/gates/human-approved-code.yaml +8 -0
- package/dist/harness/default/v0.1.1/gates/human-approved-spec.yaml +8 -0
- package/dist/harness/default/v0.1.1/gates/security-clear.yaml +8 -0
- package/dist/harness/default/v0.1.1/policies/sdlc-default.json +20 -0
- package/dist/harness/default/v0.1.1/roles/analyst.yaml +9 -0
- package/dist/harness/default/v0.1.1/roles/builder.yaml +9 -0
- package/dist/harness/default/v0.1.1/roles/pr-bot.yaml +8 -0
- package/dist/harness/default/v0.1.1/roles/reviewer.yaml +10 -0
- package/dist/harness/default/v0.1.1/roles/security.yaml +8 -0
- package/dist/harness/default/v0.1.2/flows/flow-main.yaml +86 -0
- package/dist/harness/default/v0.1.2/flows/sdlc.yaml +179 -0
- package/dist/harness/default/v0.1.2/gates/all-acs-passing.yaml +8 -0
- package/dist/harness/default/v0.1.2/gates/has-spec-file.yaml +7 -0
- package/dist/harness/default/v0.1.2/gates/human-approved-code.yaml +8 -0
- package/dist/harness/default/v0.1.2/gates/human-approved-spec.yaml +8 -0
- package/dist/harness/default/v0.1.2/gates/security-clear.yaml +8 -0
- package/dist/harness/default/v0.1.2/policies/sdlc-default.json +20 -0
- package/dist/harness/default/v0.1.2/roles/analyst.yaml +9 -0
- package/dist/harness/default/v0.1.2/roles/builder.yaml +9 -0
- package/dist/harness/default/v0.1.2/roles/pr-bot.yaml +8 -0
- package/dist/harness/default/v0.1.2/roles/reviewer.yaml +10 -0
- package/dist/harness/default/v0.1.2/roles/security.yaml +8 -0
- package/dist/harness/default/v0.1.3/flows/flow-main.yaml +90 -0
- package/dist/harness/default/v0.1.3/flows/sdlc.yaml +179 -0
- package/dist/harness/default/v0.1.3/gates/all-acs-passing.yaml +8 -0
- package/dist/harness/default/v0.1.3/gates/has-spec-file.yaml +7 -0
- package/dist/harness/default/v0.1.3/gates/human-approved-code.yaml +9 -0
- package/dist/harness/default/v0.1.3/gates/human-approved-spec.yaml +9 -0
- package/dist/harness/default/v0.1.3/gates/security-clear.yaml +8 -0
- package/dist/harness/default/v0.1.3/policies/sdlc-default.json +20 -0
- package/dist/harness/default/v0.1.3/roles/analyst.yaml +9 -0
- package/dist/harness/default/v0.1.3/roles/builder.yaml +9 -0
- package/dist/harness/default/v0.1.3/roles/pr-bot.yaml +8 -0
- package/dist/harness/default/v0.1.3/roles/reviewer.yaml +10 -0
- package/dist/harness/default/v0.1.3/roles/security.yaml +8 -0
- package/dist/harness/default/v0.2.0/executors/registry.yaml +51 -0
- package/dist/harness/default/v0.2.0/flows/flow-main.yaml +249 -0
- package/dist/harness/default/v0.2.0/gates/code-reviewed.yaml +7 -0
- package/dist/harness/default/v0.2.0/gates/human-approved.yaml +10 -0
- package/dist/harness/default/v0.2.0/gates/security-clear.yaml +7 -0
- package/dist/harness/default/v0.2.0/gates/spec-approved.yaml +10 -0
- package/dist/harness/default/v0.2.0/policies/sdlc-default.json +20 -0
- package/dist/harness/default/v0.2.0/roles/analyst.yaml +16 -0
- package/dist/harness/default/v0.2.0/roles/implementer.yaml +17 -0
- package/dist/harness/default/v0.2.0/roles/reviewer.yaml +17 -0
- package/dist/harness/default/v0.2.0/roles/security.yaml +17 -0
- package/dist/health-record-YDVXEVLR.js +21 -0
- package/dist/index.js +1951 -2530
- package/dist/init-wizard-NODBBNKO.js +178 -0
- package/dist/push-VJRSQGUD.js +116 -0
- package/dist/registry-6VPIA3EG.js +18 -0
- package/dist/server-P6GKRWDX.js +423 -0
- package/dist/service-2JN2KI4D.js +29 -0
- package/dist/session-log-WTQ5JBEN.js +21 -0
- package/dist/sitrep-OKNZJICV.js +16 -0
- package/package.json +37 -28
- package/dist/chunk-56GTTLC4.js +0 -1322
- package/dist/chunk-QWT5M4XU.js +0 -643
- package/dist/client/assets/index-CuLfFw4K.js +0 -85
- package/dist/client/assets/index-iyLqZcWx.css +0 -1
- package/dist/generate-BF5R5GGA.js +0 -7
- package/dist/sitrep-SI6ZFIAM.js +0 -10
- package/tsup.config.ts +0 -11
package/dist/client/favicon.svg
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
-
<rect width="
|
|
3
|
-
<
|
|
4
|
-
|
|
1
|
+
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="64" height="64" rx="16" fill="#0B0D12"/>
|
|
3
|
+
<defs>
|
|
4
|
+
<linearGradient id="flowAmber" x1="10" y1="18" x2="50" y2="34" gradientUnits="userSpaceOnUse">
|
|
5
|
+
<stop stop-color="#FFE08A"/>
|
|
6
|
+
<stop offset="0.48" stop-color="#FFB800"/>
|
|
7
|
+
<stop offset="1" stop-color="#F59E0B"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
</defs>
|
|
10
|
+
<circle cx="14" cy="20" r="4" fill="url(#flowAmber)"/>
|
|
11
|
+
<path d="M19 20H28L32 24H40L44 28H50" stroke="url(#flowAmber)" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
12
|
+
<circle cx="32" cy="24" r="3.5" fill="url(#flowAmber)"/>
|
|
13
|
+
<circle cx="44" cy="28" r="3.5" fill="url(#flowAmber)"/>
|
|
14
|
+
<rect x="50" y="22" width="10" height="10" rx="2.4" transform="rotate(45 50 22)" fill="url(#flowAmber)"/>
|
|
15
|
+
<circle cx="12.8" cy="18.8" r="1" fill="#FFF3D0" opacity="0.82"/>
|
|
16
|
+
</svg>
|
package/dist/client/index.html
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
|
|
7
|
-
|
|
8
|
-
<link rel="preconnect" href="https://fonts.
|
|
9
|
-
<link
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="pt-BR" class="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
|
|
7
|
+
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
10
|
+
<link
|
|
11
|
+
href="https://fonts.googleapis.com/css2?family=Goldman:wght@400;700&display=swap"
|
|
12
|
+
rel="stylesheet"
|
|
13
|
+
/>
|
|
14
|
+
<link
|
|
15
|
+
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap"
|
|
16
|
+
rel="stylesheet"
|
|
17
|
+
/>
|
|
18
|
+
<title>Letra. Da intenção à entrega</title>
|
|
19
|
+
<script type="module" crossorigin src="./assets/index-WfKR7Xp6.js"></script>
|
|
20
|
+
<link rel="stylesheet" crossorigin href="./assets/index-EyRsq1SH.css">
|
|
21
|
+
</head>
|
|
22
|
+
<body>
|
|
23
|
+
<div id="root"></div>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
resolveAgentDirection
|
|
4
|
+
} from "./chunk-DMOLJWWW.js";
|
|
5
|
+
import {
|
|
6
|
+
logEntry
|
|
7
|
+
} from "./chunk-BKAUN5QH.js";
|
|
8
|
+
import "./chunk-JMIC5NKB.js";
|
|
9
|
+
import "./chunk-EDD55PWL.js";
|
|
10
|
+
import "./chunk-MJ2QXNH6.js";
|
|
11
|
+
import "./chunk-6HSUVCTR.js";
|
|
12
|
+
import "./chunk-PDX44BCA.js";
|
|
13
|
+
|
|
14
|
+
// src/agent-direction/fallback.ts
|
|
15
|
+
var FALLBACK_WARNING = {
|
|
16
|
+
code: "LIVE_CONTEXT_UNAVAILABLE",
|
|
17
|
+
message: "O contexto vivo por MCP n\xE3o est\xE1 sendo usado. Execute letra direction --json antes de agir e novamente antes de concluir."
|
|
18
|
+
};
|
|
19
|
+
var degradedLogged = false;
|
|
20
|
+
function resolveFallbackDirection(root) {
|
|
21
|
+
const canonical = resolveAgentDirection(root);
|
|
22
|
+
const mode = canonical.mode === "unconfigured" ? "unconfigured" : "degraded";
|
|
23
|
+
if (mode === "degraded" && !degradedLogged) {
|
|
24
|
+
degradedLogged = true;
|
|
25
|
+
logEntry(root, "adapter_degraded", "MCP n\xE3o est\xE1 dispon\xEDvel; modo degradado ativado.", {
|
|
26
|
+
itemId: canonical.item?.id,
|
|
27
|
+
details: {
|
|
28
|
+
adapter: "codex",
|
|
29
|
+
mode: "degraded",
|
|
30
|
+
revision: canonical.revision,
|
|
31
|
+
outcome: "accepted"
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
...canonical,
|
|
37
|
+
mode,
|
|
38
|
+
warnings: [
|
|
39
|
+
...canonical.warnings.filter((warning) => warning.code !== FALLBACK_WARNING.code),
|
|
40
|
+
FALLBACK_WARNING
|
|
41
|
+
]
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
resolveFallbackDirection
|
|
46
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
FlowServer,
|
|
4
|
+
flowServeAction
|
|
5
|
+
} from "./chunk-URUC6ZZP.js";
|
|
6
|
+
import "./chunk-H64RC3YS.js";
|
|
7
|
+
import "./chunk-L6YKDTAQ.js";
|
|
8
|
+
import "./chunk-DMOLJWWW.js";
|
|
9
|
+
import "./chunk-BKAUN5QH.js";
|
|
10
|
+
import "./chunk-JMIC5NKB.js";
|
|
11
|
+
import "./chunk-EDD55PWL.js";
|
|
12
|
+
import "./chunk-MJ2QXNH6.js";
|
|
13
|
+
import "./chunk-6HSUVCTR.js";
|
|
14
|
+
import "./chunk-PDX44BCA.js";
|
|
15
|
+
export {
|
|
16
|
+
FlowServer,
|
|
17
|
+
flowServeAction
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
clearFocusFile,
|
|
4
|
+
extractOutcome,
|
|
5
|
+
readFocusFile,
|
|
6
|
+
syncFocus,
|
|
7
|
+
writeFocusFile
|
|
8
|
+
} from "./chunk-EDD55PWL.js";
|
|
9
|
+
import "./chunk-6HSUVCTR.js";
|
|
10
|
+
import "./chunk-PDX44BCA.js";
|
|
11
|
+
export {
|
|
12
|
+
clearFocusFile,
|
|
13
|
+
extractOutcome,
|
|
14
|
+
readFocusFile,
|
|
15
|
+
syncFocus,
|
|
16
|
+
writeFocusFile
|
|
17
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
TOOL_TARGETS,
|
|
4
|
+
generateAdapters,
|
|
5
|
+
renderAdapterFiles
|
|
6
|
+
} from "./chunk-DMOLJWWW.js";
|
|
7
|
+
import "./chunk-BKAUN5QH.js";
|
|
8
|
+
import {
|
|
9
|
+
supportedAdapterTools
|
|
10
|
+
} from "./chunk-JMIC5NKB.js";
|
|
11
|
+
import "./chunk-EDD55PWL.js";
|
|
12
|
+
import "./chunk-MJ2QXNH6.js";
|
|
13
|
+
import "./chunk-6HSUVCTR.js";
|
|
14
|
+
import "./chunk-PDX44BCA.js";
|
|
15
|
+
export {
|
|
16
|
+
TOOL_TARGETS,
|
|
17
|
+
generateAdapters,
|
|
18
|
+
renderAdapterFiles,
|
|
19
|
+
supportedAdapterTools
|
|
20
|
+
};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
id: sdlc
|
|
2
|
+
version: 0.1.0
|
|
3
|
+
name: Software Development Life Cycle
|
|
4
|
+
description: Fluxo padrão para desenvolvimento de software com gates humanos e automatizados.
|
|
5
|
+
defaultPolicy: policies/sdlc-default.json
|
|
6
|
+
|
|
7
|
+
stages:
|
|
8
|
+
- id: backlog
|
|
9
|
+
name: Backlog
|
|
10
|
+
order: 0
|
|
11
|
+
zone: todo
|
|
12
|
+
description: Item registrado, aguardando priorização.
|
|
13
|
+
agents: []
|
|
14
|
+
gate: null
|
|
15
|
+
|
|
16
|
+
- id: spec-draft
|
|
17
|
+
name: Spec Draft
|
|
18
|
+
order: 1
|
|
19
|
+
zone: doing
|
|
20
|
+
description: Agente gera rascunho de especificação a partir do ticket.
|
|
21
|
+
agents: ["analyst"]
|
|
22
|
+
gate: null
|
|
23
|
+
|
|
24
|
+
- id: spec-review
|
|
25
|
+
name: Spec Review
|
|
26
|
+
order: 2
|
|
27
|
+
zone: doing
|
|
28
|
+
description: Humano aprova ou rejeita a especificação.
|
|
29
|
+
agents: ["reviewer"]
|
|
30
|
+
gate: gates/human-approved-spec.yaml
|
|
31
|
+
activity:
|
|
32
|
+
gate:
|
|
33
|
+
label: Aprovação de direção/spec
|
|
34
|
+
evidence: outcome, constraints, exclusions e decisões em aberto
|
|
35
|
+
decision: Aprovação de direção/spec
|
|
36
|
+
signalCode: spec-approval
|
|
37
|
+
|
|
38
|
+
- id: code
|
|
39
|
+
name: Code
|
|
40
|
+
order: 3
|
|
41
|
+
zone: doing
|
|
42
|
+
description: Implementação das mudanças aprovadas.
|
|
43
|
+
agents: ["builder"]
|
|
44
|
+
gate: null
|
|
45
|
+
|
|
46
|
+
- id: code-review
|
|
47
|
+
name: Code Review
|
|
48
|
+
order: 4
|
|
49
|
+
zone: doing
|
|
50
|
+
description: Revisão de diff, comentários, aprovação final.
|
|
51
|
+
agents: ["reviewer"]
|
|
52
|
+
gate: gates/human-approved-code.yaml
|
|
53
|
+
activity:
|
|
54
|
+
gate:
|
|
55
|
+
label: Aprovação de revisão
|
|
56
|
+
evidence: issues abertas, aderência à spec, riscos e sinais operacionais
|
|
57
|
+
decision: Aprovação de revisão
|
|
58
|
+
signalCode: gate-review
|
|
59
|
+
review:
|
|
60
|
+
label: Revisão do item atual
|
|
61
|
+
emphasis: aderência à spec, riscos e evidências do trabalho entregue
|
|
62
|
+
riskFocus: Destacar bugs, regressões e violações de processo antes de aprovar.
|
|
63
|
+
evidencePrompt: Verificar se testes, sinais e logs recentes sustentam a revisão.
|
|
64
|
+
signalCode: review-stage
|
|
65
|
+
phases:
|
|
66
|
+
initialState: auto-review
|
|
67
|
+
states:
|
|
68
|
+
auto-review:
|
|
69
|
+
id: auto-review
|
|
70
|
+
label: Auto Review
|
|
71
|
+
description: Agente revisa o diff e encontra issues
|
|
72
|
+
actions:
|
|
73
|
+
- type: agent-prompt
|
|
74
|
+
prompt: Revise o diff e liste issues encontradas
|
|
75
|
+
transitions:
|
|
76
|
+
- target: code-fix
|
|
77
|
+
auto: true
|
|
78
|
+
- target: human-review
|
|
79
|
+
harness:
|
|
80
|
+
instructions: Foque em encontrar bugs, violações de spec e problemas de segurança
|
|
81
|
+
checks:
|
|
82
|
+
- diff contra spec
|
|
83
|
+
- testes passando
|
|
84
|
+
- code style
|
|
85
|
+
review:
|
|
86
|
+
label: Auto Review
|
|
87
|
+
emphasis: diff contra spec, testes passando, code style
|
|
88
|
+
riskFocus: Confirmar se o diff introduziu bugs, regressões ou violações de processo.
|
|
89
|
+
evidencePrompt: Verificar se testes, sinais e logs recentes sustentam a revisão automática.
|
|
90
|
+
signalCode: review-phase-auto-review
|
|
91
|
+
code-fix:
|
|
92
|
+
id: code-fix
|
|
93
|
+
label: Code Fix
|
|
94
|
+
description: Agente corrige issues encontradas
|
|
95
|
+
actions:
|
|
96
|
+
- type: command
|
|
97
|
+
cmd: npm run fix
|
|
98
|
+
harness:
|
|
99
|
+
review:
|
|
100
|
+
label: Code Fix
|
|
101
|
+
emphasis: corrigir os problemas encontrados antes de seguir
|
|
102
|
+
riskFocus: Confirmar se correções realmente eliminaram os problemas anteriores.
|
|
103
|
+
evidencePrompt: Verificar se a correção cobre os problemas anteriores com evidências claras.
|
|
104
|
+
signalCode: review-phase-code-fix
|
|
105
|
+
transitions:
|
|
106
|
+
- target: re-review
|
|
107
|
+
re-review:
|
|
108
|
+
id: re-review
|
|
109
|
+
label: Re-Review
|
|
110
|
+
description: Agente verifica se correções foram aplicadas
|
|
111
|
+
actions:
|
|
112
|
+
- type: generate-report
|
|
113
|
+
template: review-report
|
|
114
|
+
harness:
|
|
115
|
+
review:
|
|
116
|
+
label: Re-Review
|
|
117
|
+
emphasis: verificar se as correções fecharam o ciclo de revisão
|
|
118
|
+
riskFocus: Confirmar se ainda restam problemas após as correções.
|
|
119
|
+
evidencePrompt: Verificar se há evidências suficientes para retornar à revisão automática ou humana.
|
|
120
|
+
signalCode: review-phase-re-review
|
|
121
|
+
transitions:
|
|
122
|
+
- target: auto-review
|
|
123
|
+
- target: human-review
|
|
124
|
+
auto: true
|
|
125
|
+
human-review:
|
|
126
|
+
id: human-review
|
|
127
|
+
label: Human Review
|
|
128
|
+
description: Humano aprova ou rejeita as mudanças
|
|
129
|
+
actions:
|
|
130
|
+
- type: notify-human
|
|
131
|
+
message: Código pronto para revisão humana
|
|
132
|
+
- type: wait-human
|
|
133
|
+
gate: human-approved-code
|
|
134
|
+
harness:
|
|
135
|
+
review:
|
|
136
|
+
label: Human Review
|
|
137
|
+
emphasis: aprovação final humana baseada em evidências explícitas
|
|
138
|
+
riskFocus: Destacar riscos residuais antes da aprovação final humana.
|
|
139
|
+
evidencePrompt: Verificar se há evidências suficientes para aprovação final humana.
|
|
140
|
+
signalCode: review-phase-human-review
|
|
141
|
+
transitions:
|
|
142
|
+
- target: code-fix
|
|
143
|
+
- target: __EXIT__
|
|
144
|
+
|
|
145
|
+
- id: security
|
|
146
|
+
name: Security
|
|
147
|
+
order: 5
|
|
148
|
+
zone: doing
|
|
149
|
+
description: Scan de vulnerabilidades, análise de dependências.
|
|
150
|
+
agents: ["security"]
|
|
151
|
+
gate: gates/security-clear.yaml
|
|
152
|
+
activity:
|
|
153
|
+
gate:
|
|
154
|
+
label: Liberação de segurança
|
|
155
|
+
evidence: alertas, achados e sinais de risco antes do avanço
|
|
156
|
+
decision: Liberação de segurança
|
|
157
|
+
signalCode: security-clearance
|
|
158
|
+
|
|
159
|
+
- id: ready-to-pr
|
|
160
|
+
name: Ready to PR
|
|
161
|
+
order: 6
|
|
162
|
+
zone: doing
|
|
163
|
+
description: Gera descrição, adiciona checks, cria PR.
|
|
164
|
+
agents: ["pr-bot"]
|
|
165
|
+
gate: gates/all-acs-passing.yaml
|
|
166
|
+
activity:
|
|
167
|
+
gate:
|
|
168
|
+
label: Aprovação para PR
|
|
169
|
+
evidence: ACs cumpridos, sinais limpos e evidências de entrega
|
|
170
|
+
decision: Aprovação para PR
|
|
171
|
+
signalCode: pr-readiness
|
|
172
|
+
|
|
173
|
+
- id: done
|
|
174
|
+
name: Done
|
|
175
|
+
order: 7
|
|
176
|
+
zone: done
|
|
177
|
+
description: PR mergeado, ciclo concluído.
|
|
178
|
+
agents: []
|
|
179
|
+
gate: null
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "sdlc-default",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"review": {
|
|
5
|
+
"minReviewers": 1,
|
|
6
|
+
"requireHuman": true,
|
|
7
|
+
"allowAgentToComment": true,
|
|
8
|
+
"allowAgentToApprove": false
|
|
9
|
+
},
|
|
10
|
+
"security": {
|
|
11
|
+
"blockOnCritical": true,
|
|
12
|
+
"blockOnHigh": true,
|
|
13
|
+
"allowAgentToOverride": false
|
|
14
|
+
},
|
|
15
|
+
"pr": {
|
|
16
|
+
"requireDescription": true,
|
|
17
|
+
"requireChecksPassing": true,
|
|
18
|
+
"allowAgentToMerge": false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
id: flow-main
|
|
2
|
+
version: 0.1.1
|
|
3
|
+
name: Letra Main Flow
|
|
4
|
+
description: Fluxo compatível com workspaces Letra existentes de cinco estágios.
|
|
5
|
+
defaultPolicy: policies/sdlc-default.json
|
|
6
|
+
|
|
7
|
+
stages:
|
|
8
|
+
- id: backlog
|
|
9
|
+
name: Backlog
|
|
10
|
+
order: 0
|
|
11
|
+
zone: todo
|
|
12
|
+
description: Item registrado e aguardando priorização.
|
|
13
|
+
agents: []
|
|
14
|
+
gate: null
|
|
15
|
+
|
|
16
|
+
- id: design
|
|
17
|
+
name: Design
|
|
18
|
+
order: 1
|
|
19
|
+
zone: doing
|
|
20
|
+
description: Definição de solução, restrições e aprovação de direção.
|
|
21
|
+
agents: ["analyst"]
|
|
22
|
+
gate: null
|
|
23
|
+
|
|
24
|
+
- id: code
|
|
25
|
+
name: Code
|
|
26
|
+
order: 2
|
|
27
|
+
zone: doing
|
|
28
|
+
description: Implementação orientada pela spec aprovada.
|
|
29
|
+
agents: ["builder"]
|
|
30
|
+
gate: null
|
|
31
|
+
|
|
32
|
+
- id: review
|
|
33
|
+
name: Review
|
|
34
|
+
order: 3
|
|
35
|
+
zone: doing
|
|
36
|
+
description: Revisão de aderência, riscos, testes e evidências.
|
|
37
|
+
agents: ["reviewer"]
|
|
38
|
+
gate: null
|
|
39
|
+
activity:
|
|
40
|
+
review:
|
|
41
|
+
label: Revisão técnica
|
|
42
|
+
emphasis: aderência à spec, riscos e evidências
|
|
43
|
+
riskFocus: bugs, regressões e violações da constitution
|
|
44
|
+
evidencePrompt: Verificar testes, build, diff e rastros operacionais.
|
|
45
|
+
signalCode: technical-review
|
|
46
|
+
|
|
47
|
+
- id: security
|
|
48
|
+
name: Security
|
|
49
|
+
order: 4
|
|
50
|
+
zone: doing
|
|
51
|
+
description: Verificação de segurança e riscos antes da conclusão.
|
|
52
|
+
agents: ["security"]
|
|
53
|
+
gate: null
|
|
54
|
+
|
|
55
|
+
- id: done
|
|
56
|
+
name: Done
|
|
57
|
+
order: 5
|
|
58
|
+
zone: done
|
|
59
|
+
description: Trabalho concluído e aceito.
|
|
60
|
+
agents: []
|
|
61
|
+
gate: null
|