oxe-cc 1.0.0 → 1.2.1
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/.cursor/commands/oxe-ask.md +1 -1
- package/.cursor/commands/oxe-capabilities.md +1 -1
- package/.cursor/commands/oxe-checkpoint.md +1 -1
- package/.cursor/commands/oxe-compact.md +1 -1
- package/.cursor/commands/oxe-dashboard.md +1 -1
- package/.cursor/commands/oxe-debug.md +1 -1
- package/.cursor/commands/oxe-discuss.md +1 -1
- package/.cursor/commands/oxe-execute.md +2 -2
- package/.cursor/commands/oxe-forensics.md +1 -1
- package/.cursor/commands/oxe-help.md +1 -1
- package/.cursor/commands/oxe-loop.md +1 -1
- package/.cursor/commands/oxe-milestone.md +1 -1
- package/.cursor/commands/oxe-next.md +1 -1
- package/.cursor/commands/oxe-obs.md +1 -1
- package/.cursor/commands/oxe-plan-agent.md +1 -1
- package/.cursor/commands/oxe-plan.md +1 -1
- package/.cursor/commands/oxe-project.md +1 -1
- package/.cursor/commands/oxe-quick.md +1 -1
- package/.cursor/commands/oxe-research.md +1 -1
- package/.cursor/commands/oxe-retro.md +1 -1
- package/.cursor/commands/oxe-review-pr.md +1 -1
- package/.cursor/commands/oxe-route.md +1 -1
- package/.cursor/commands/oxe-scan.md +1 -1
- package/.cursor/commands/oxe-security.md +1 -1
- package/.cursor/commands/oxe-session.md +2 -2
- package/.cursor/commands/oxe-ship.md +45 -0
- package/.cursor/commands/oxe-skill.md +1 -1
- package/.cursor/commands/oxe-spec.md +1 -1
- package/.cursor/commands/oxe-ui-review.md +1 -1
- package/.cursor/commands/oxe-ui-spec.md +1 -1
- package/.cursor/commands/oxe-update.md +1 -1
- package/.cursor/commands/oxe-validate-gaps.md +1 -1
- package/.cursor/commands/oxe-verify.md +1 -1
- package/.cursor/commands/oxe-workstream.md +1 -1
- package/.cursor/commands/oxe.md +4 -4
- package/.github/copilot-instructions.md +91 -1
- package/.github/prompts/oxe-ask.prompt.md +1 -1
- package/.github/prompts/oxe-capabilities.prompt.md +1 -1
- package/.github/prompts/oxe-checkpoint.prompt.md +1 -1
- package/.github/prompts/oxe-compact.prompt.md +1 -1
- package/.github/prompts/oxe-dashboard.prompt.md +1 -1
- package/.github/prompts/oxe-debug.prompt.md +1 -1
- package/.github/prompts/oxe-discuss.prompt.md +1 -1
- package/.github/prompts/oxe-execute.prompt.md +2 -2
- package/.github/prompts/oxe-forensics.prompt.md +1 -1
- package/.github/prompts/oxe-help.prompt.md +1 -1
- package/.github/prompts/oxe-loop.prompt.md +1 -1
- package/.github/prompts/oxe-milestone.prompt.md +1 -1
- package/.github/prompts/oxe-next.prompt.md +1 -1
- package/.github/prompts/oxe-obs.prompt.md +1 -1
- package/.github/prompts/oxe-plan-agent.prompt.md +1 -1
- package/.github/prompts/oxe-plan.prompt.md +1 -1
- package/.github/prompts/oxe-project.prompt.md +1 -1
- package/.github/prompts/oxe-quick.prompt.md +1 -1
- package/.github/prompts/oxe-research.prompt.md +1 -1
- package/.github/prompts/oxe-retro.prompt.md +1 -1
- package/.github/prompts/oxe-review-pr.prompt.md +1 -1
- package/.github/prompts/oxe-route.prompt.md +1 -1
- package/.github/prompts/oxe-scan.prompt.md +1 -1
- package/.github/prompts/oxe-security.prompt.md +1 -1
- package/.github/prompts/oxe-session.prompt.md +2 -2
- package/.github/prompts/oxe-ship.prompt.md +45 -0
- package/.github/prompts/oxe-skill.prompt.md +1 -1
- package/.github/prompts/oxe-spec.prompt.md +1 -1
- package/.github/prompts/oxe-ui-review.prompt.md +1 -1
- package/.github/prompts/oxe-ui-spec.prompt.md +1 -1
- package/.github/prompts/oxe-update.prompt.md +1 -1
- package/.github/prompts/oxe-validate-gaps.prompt.md +1 -1
- package/.github/prompts/oxe-verify.prompt.md +1 -1
- package/.github/prompts/oxe-workstream.prompt.md +1 -1
- package/.github/prompts/oxe.prompt.md +3 -3
- package/AGENTS.md +43 -28
- package/CHANGELOG.md +158 -0
- package/README.md +72 -50
- package/bin/banner.txt +1 -1
- package/bin/lib/oxe-project-health.cjs +1 -1
- package/commands/oxe/ask.md +5 -1
- package/commands/oxe/checkpoint.md +1 -1
- package/commands/oxe/compact.md +1 -1
- package/commands/oxe/debug.md +1 -1
- package/commands/oxe/execute.md +2 -2
- package/commands/oxe/forensics.md +1 -1
- package/commands/oxe/loop.md +1 -1
- package/commands/oxe/milestone.md +1 -1
- package/commands/oxe/next.md +1 -1
- package/commands/oxe/obs.md +1 -1
- package/commands/oxe/oxe.md +3 -3
- package/commands/oxe/project.md +1 -1
- package/commands/oxe/research.md +1 -1
- package/commands/oxe/retro.md +1 -1
- package/commands/oxe/review-pr.md +1 -1
- package/commands/oxe/route.md +1 -1
- package/commands/oxe/scan.md +1 -1
- package/commands/oxe/security.md +1 -1
- package/commands/oxe/session.md +2 -2
- package/commands/oxe/ship.md +49 -0
- package/commands/oxe/spec.md +2 -2
- package/commands/oxe/ui-review.md +1 -1
- package/commands/oxe/ui-spec.md +1 -1
- package/commands/oxe/validate-gaps.md +1 -1
- package/commands/oxe/verify.md +2 -2
- package/commands/oxe/workstream.md +1 -1
- package/lib/runtime/audit/audit-trail.d.ts +71 -0
- package/lib/runtime/audit/audit-trail.js +154 -0
- package/lib/runtime/audit/index.d.ts +2 -0
- package/lib/runtime/audit/index.js +18 -0
- package/lib/runtime/audit/policy-pack.d.ts +15 -0
- package/lib/runtime/audit/policy-pack.js +57 -0
- package/lib/runtime/context/context-pack-builder.d.ts +15 -0
- package/lib/runtime/context/context-pack-builder.js +42 -0
- package/lib/runtime/context/context-pack-store.d.ts +38 -0
- package/lib/runtime/context/context-pack-store.js +142 -0
- package/lib/runtime/context/context-profiles.d.ts +11 -0
- package/lib/runtime/context/context-profiles.js +51 -0
- package/lib/runtime/context/index.d.ts +2 -0
- package/lib/runtime/context/index.js +2 -0
- package/lib/runtime/decision/decision-engine.d.ts +43 -0
- package/lib/runtime/decision/decision-engine.js +127 -0
- package/lib/runtime/decision/decision-memo.d.ts +53 -0
- package/lib/runtime/decision/decision-memo.js +173 -0
- package/lib/runtime/decision/index.d.ts +2 -0
- package/lib/runtime/decision/index.js +18 -0
- package/lib/runtime/delivery/index.d.ts +1 -0
- package/lib/runtime/delivery/index.js +1 -0
- package/lib/runtime/delivery/promotion-pipeline.d.ts +39 -0
- package/lib/runtime/delivery/promotion-pipeline.js +127 -0
- package/lib/runtime/index.d.ts +3 -0
- package/lib/runtime/index.js +4 -0
- package/lib/runtime/plugins/capability-matrix.d.ts +20 -0
- package/lib/runtime/plugins/capability-matrix.js +59 -0
- package/lib/runtime/plugins/index.d.ts +2 -0
- package/lib/runtime/plugins/index.js +2 -0
- package/lib/runtime/plugins/plugin-manifest.d.ts +22 -0
- package/lib/runtime/plugins/plugin-manifest.js +91 -0
- package/lib/runtime/plugins/plugin-registry.js +5 -0
- package/lib/runtime/policy/policy-engine.d.ts +28 -1
- package/lib/runtime/policy/policy-engine.js +96 -5
- package/lib/runtime/reducers/run-state-reducer.d.ts +26 -0
- package/lib/runtime/reducers/run-state-reducer.js +117 -1
- package/lib/runtime/scheduler/agent-registry.d.ts +44 -0
- package/lib/runtime/scheduler/agent-registry.js +96 -0
- package/lib/runtime/scheduler/agent-roles.d.ts +54 -0
- package/lib/runtime/scheduler/agent-roles.js +62 -0
- package/lib/runtime/scheduler/index.d.ts +3 -0
- package/lib/runtime/scheduler/index.js +3 -0
- package/lib/runtime/scheduler/multi-agent-coordinator.d.ts +2 -0
- package/lib/runtime/scheduler/multi-agent-coordinator.js +91 -4
- package/lib/runtime/scheduler/run-journal.d.ts +18 -0
- package/lib/runtime/scheduler/run-journal.js +54 -0
- package/lib/runtime/scheduler/scheduler.d.ts +11 -1
- package/lib/runtime/scheduler/scheduler.js +135 -7
- package/lib/runtime/verification/index.d.ts +1 -0
- package/lib/runtime/verification/index.js +1 -0
- package/lib/runtime/verification/verification-manifest.d.ts +58 -0
- package/lib/runtime/verification/verification-manifest.js +129 -0
- package/oxe/workflows/ask.md +4 -0
- package/oxe/workflows/checkpoint.md +14 -10
- package/oxe/workflows/debug.md +19 -15
- package/oxe/workflows/execute.md +30 -2
- package/oxe/workflows/forensics.md +13 -9
- package/oxe/workflows/help.md +97 -49
- package/oxe/workflows/loop.md +17 -13
- package/oxe/workflows/obs.md +4 -0
- package/oxe/workflows/oxe.md +64 -31
- package/oxe/workflows/project.md +6 -1
- package/oxe/workflows/references/workflow-runtime-contracts.json +23 -0
- package/oxe/workflows/research.md +32 -28
- package/oxe/workflows/retro.md +4 -0
- package/oxe/workflows/review-pr.md +15 -11
- package/oxe/workflows/scan.md +4 -0
- package/oxe/workflows/security.md +14 -10
- package/oxe/workflows/session.md +17 -1
- package/oxe/workflows/ship.md +142 -0
- package/oxe/workflows/spec.md +15 -0
- package/oxe/workflows/ui-review.md +20 -16
- package/oxe/workflows/ui-spec.md +7 -3
- package/oxe/workflows/validate-gaps.md +13 -9
- package/oxe/workflows/verify.md +42 -3
- package/package.json +1 -1
- package/packages/runtime/src/audit/audit-trail.ts +243 -0
- package/packages/runtime/src/audit/index.ts +2 -0
- package/packages/runtime/src/audit/policy-pack.ts +62 -0
- package/packages/runtime/src/context/context-pack-builder.ts +66 -0
- package/packages/runtime/src/context/context-pack-store.ts +197 -0
- package/packages/runtime/src/context/context-profiles.ts +60 -0
- package/packages/runtime/src/context/index.ts +2 -0
- package/packages/runtime/src/decision/decision-engine.ts +174 -0
- package/packages/runtime/src/decision/decision-memo.ts +211 -0
- package/packages/runtime/src/decision/index.ts +2 -0
- package/packages/runtime/src/delivery/index.ts +1 -0
- package/packages/runtime/src/delivery/promotion-pipeline.ts +180 -0
- package/packages/runtime/src/index.ts +5 -0
- package/packages/runtime/src/plugins/capability-matrix.ts +83 -0
- package/packages/runtime/src/plugins/index.ts +2 -0
- package/packages/runtime/src/plugins/plugin-manifest.ts +113 -0
- package/packages/runtime/src/plugins/plugin-registry.ts +5 -0
- package/packages/runtime/src/policy/policy-engine.ts +138 -7
- package/packages/runtime/src/reducers/run-state-reducer.ts +143 -1
- package/packages/runtime/src/scheduler/agent-registry.ts +132 -0
- package/packages/runtime/src/scheduler/agent-roles.ts +109 -0
- package/packages/runtime/src/scheduler/index.ts +3 -0
- package/packages/runtime/src/scheduler/multi-agent-coordinator.ts +106 -4
- package/packages/runtime/src/scheduler/run-journal.ts +62 -0
- package/packages/runtime/src/scheduler/scheduler.ts +168 -8
- package/packages/runtime/src/verification/index.ts +1 -0
- package/packages/runtime/src/verification/verification-manifest.ts +192 -0
- package/vscode-extension/oxe-agents-1.0.0.vsix +0 -0
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://www.npmjs.com/package/oxe-cc)
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
|
|
10
|
-
**Versão:** `1.
|
|
10
|
+
**Versão:** `1.2.1` · [package.json](package.json)
|
|
11
11
|
|
|
12
12
|
**Framework OXE — Orchestrated eXperience Engineering**
|
|
13
13
|
|
|
@@ -64,9 +64,12 @@ Para tarefas pequenas e pontuais, sem overhead:
|
|
|
64
64
|
### Standard — ciclo completo
|
|
65
65
|
Para features, refatorações ou qualquer trabalho com múltiplos arquivos:
|
|
66
66
|
```
|
|
67
|
-
/oxe
|
|
67
|
+
/oxe → /oxe-spec → /oxe-plan → /oxe-execute → /oxe-verify
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
+
> scan, research, debug, retro e validações especializadas são acionados automaticamente
|
|
71
|
+
> pelos estágios corretos ou por flags explícitas (ex.: `--research`, `--debug`, `--security`).
|
|
72
|
+
|
|
70
73
|
### Full — orquestração avançada
|
|
71
74
|
Para projetos longos, multi-domínio, múltiplos agentes ou times:
|
|
72
75
|
```
|
|
@@ -80,24 +83,36 @@ Para projetos longos, multi-domínio, múltiplos agentes ou times:
|
|
|
80
83
|
|
|
81
84
|
---
|
|
82
85
|
|
|
83
|
-
##
|
|
86
|
+
## Trilha principal
|
|
84
87
|
|
|
85
88
|
```
|
|
86
|
-
/oxe → onde estou / o que faço / help
|
|
87
|
-
/oxe-ask → entender a situação atual com leitura robusta de STATE + sessão + artefatos
|
|
88
|
-
/oxe-capabilities → listar, instalar, remover ou atualizar capabilities nativas do projeto
|
|
89
|
-
/oxe-cc azure → autenticar, sincronizar inventário e operar Azure com checkpoint formal
|
|
90
|
-
/oxe-obs → registrei algo importante (incorporado automaticamente)
|
|
89
|
+
/oxe → onde estou / o que faço / help / perguntas situacionais
|
|
91
90
|
/oxe-quick → tarefa pequena, sem cerimônia
|
|
92
|
-
/oxe-scan → mapeia o projeto (ou atualiza se já mapeado)
|
|
93
91
|
/oxe-spec → nova feature: perguntas → requisitos → roteiro
|
|
92
|
+
(absorve scan, research e ui-spec via flags)
|
|
94
93
|
/oxe-plan → tarefas por onda (--agents para multi-agente)
|
|
95
94
|
/oxe-execute → implementar (A: completo | B: por onda | C: por tarefa)
|
|
96
|
-
|
|
97
|
-
/oxe-
|
|
95
|
+
(absorve obs, debug, forensics, checkpoint, loop via flags)
|
|
96
|
+
/oxe-verify → validar e fechar o ciclo (retro automática)
|
|
97
|
+
(absorve gaps, security, ui-review, review-pr via flags)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Trilha avançada
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
/oxe-session → criar, alternar, retomar, fechar ou migrar sessões OXE
|
|
104
|
+
/oxe-dashboard → visualizar runtime, ondas, checkpoints e estado operacional
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Comandos administrativos
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
/oxe-capabilities → catálogo nativo de capabilities
|
|
111
|
+
/oxe-skill → skills OXE via @<id>
|
|
112
|
+
oxe-cc azure → autenticar, sincronizar inventário e operar Azure com checkpoint formal
|
|
98
113
|
```
|
|
99
114
|
|
|
100
|
-
Tudo o mais é ativado automaticamente por contexto ou
|
|
115
|
+
Tudo o mais é ativado automaticamente por contexto, por config, ou existe como flag dos estágios principais.
|
|
101
116
|
|
|
102
117
|
---
|
|
103
118
|
|
|
@@ -160,15 +175,22 @@ Com sessão ativa:
|
|
|
160
175
|
## A cadeia
|
|
161
176
|
|
|
162
177
|
```
|
|
163
|
-
/oxe-
|
|
164
|
-
|
|
165
|
-
/oxe-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
↓
|
|
169
|
-
(alimenta o próximo ciclo)
|
|
178
|
+
/oxe → /oxe-spec → /oxe-plan ──────────→ /oxe-execute → /oxe-verify
|
|
179
|
+
↓ ↓
|
|
180
|
+
/oxe-quick (trabalho pequeno) .oxe/global/LESSONS.md
|
|
181
|
+
↓
|
|
182
|
+
(alimenta o próximo ciclo)
|
|
170
183
|
```
|
|
171
184
|
|
|
185
|
+
**Comportamentos absorvidos por cada estágio:**
|
|
186
|
+
|
|
187
|
+
| Estágio | Absorve (via flags ou automático) |
|
|
188
|
+
|---------|-----------------------------------|
|
|
189
|
+
| `/oxe` | ask (perguntas situacionais inline) |
|
|
190
|
+
| `/oxe-spec` | scan (`--refresh`/`--full`), research (`--research`), ui-spec (`--ui`) |
|
|
191
|
+
| `/oxe-execute` | obs (`--note`), debug (`--debug`), forensics (`--deep-diagnosis`), checkpoint (`--checkpoint`), loop (`--iterative`) |
|
|
192
|
+
| `/oxe-verify` | gaps (`--gaps`), security (`--security`), ui-review (`--ui`), review-pr (`--pr`), retro (automática) |
|
|
193
|
+
|
|
172
194
|
Cada passo lê o anterior como contexto e escreve seu artefato no escopo correto: raiz `.oxe/` em modo legado, ou `.oxe/sessions/sNNN-slug/` quando `active_session` está definido. Nenhum passo depende de você re-explicar o que já foi decidido.
|
|
173
195
|
|
|
174
196
|
---
|
|
@@ -177,22 +199,17 @@ Cada passo lê o anterior como contexto e escreve seu artefato no escopo correto
|
|
|
177
199
|
|
|
178
200
|
| Comando | O que entrega |
|
|
179
201
|
|---------|--------------|
|
|
180
|
-
| `/oxe` | Sem input → próximo passo. Com
|
|
181
|
-
| `/oxe-
|
|
182
|
-
| `/oxe-
|
|
183
|
-
| `/oxe-
|
|
184
|
-
| `/oxe-
|
|
185
|
-
| `/oxe-verify` | Até 6 camadas por config: audit + critérios + decisões + **coerência operacional** (runtime/checkpoints) + **calibração do plano** + UAT + gaps (`verification_depth: thorough`) + OWASP (`security_in_verify: true`). Sugere `/oxe-retro` ao concluir. |
|
|
186
|
-
| `/oxe-retro` | Sintetiza 3–5 lições prescritivas em `.oxe/global/LESSONS.md` — consumidas automaticamente pelo próximo spec/plan. |
|
|
187
|
-
| `/oxe-obs` | Registra observação → propaga automaticamente para R-IDs e Tns afetados no próximo plan/spec/execute. |
|
|
202
|
+
| `/oxe` | Sem input → próximo passo. Com pergunta → situação atual (artefatos reais). Com "help" → trilha principal. |
|
|
203
|
+
| `/oxe-spec` | **5 fases**: perguntas → pesquisa → requisitos R-ID → roteiro → aprovação. `--refresh` / `--full` fazem scan antes. `--research` ativa spike explícito. `--ui` gera UI-SPEC ao final. **Auto-reflexão semântica** automática antes da aprovação. |
|
|
204
|
+
| `/oxe-plan` | **Test-first:** `Verificar` vem antes de `Implementar` em cada tarefa. `PLAN.md` com `## Autoavaliação do Plano` (rubrica fixa + confiança determinística). Usa investigações e capabilities como evidência. |
|
|
205
|
+
| `/oxe-execute` | Execução A/B/C. Valida autoavaliação antes de implementar. `--note` registra observação. `--debug` aciona diagnóstico inline. `--deep-diagnosis` escalona para forensics. `--checkpoint "<nome>"` cria snapshot. `--iterative` ativa loop de retry. Usa `EXECUTION-RUNTIME.md`, `ACTIVE-RUN.json`, `OXE-EVENTS.ndjson`. |
|
|
206
|
+
| `/oxe-verify` | Até 6 camadas: audit + critérios + decisões + coerência operacional + calibração + UAT. `--gaps` ativa Camada 5 (cobertura). `--security` ativa Camada 6 (OWASP). `--ui` inclui UI-REVIEW. `--pr` / `--diff` incluem revisão de PR. Retro automática ao fechar (`--skip-retro` para desativar). |
|
|
188
207
|
| `/oxe-quick` | Objetivo → passos → agentes opcionais (PDDA lean) → verify. Para correções pontuais e features pequenas. |
|
|
189
|
-
| `/oxe-
|
|
190
|
-
| `/oxe-
|
|
191
|
-
| `/oxe-
|
|
192
|
-
| `/oxe-
|
|
193
|
-
|
|
|
194
|
-
| `oxe-cc azure` | Provider Azure nativo via Azure CLI: autenticação corporativa com MFA, inventário via Resource Graph e operações guiadas para Service Bus, Event Grid e Azure SQL, sempre com evidência em `.oxe/cloud/azure/`. |
|
|
195
|
-
| `/oxe-dashboard` | Consolida `STATE`, `PLAN`, `ACTIVE-RUN`, trace log, runtime, checkpoints e verify numa visão visual de ciclo, artefatos, ondas, handoffs e aprovação antes do execute. |
|
|
208
|
+
| `/oxe-session` | Cria, alterna, retoma, fecha e migra sessões OXE. Subcomandos: `new`, `list`, `switch`, `resume`, `status`, `close`, `migrate`, `milestone`, `workstream`. |
|
|
209
|
+
| `/oxe-dashboard` | Consolida `STATE`, `PLAN`, `ACTIVE-RUN`, trace log, runtime, checkpoints e verify numa visão visual de ciclo, ondas, handoffs e aprovação. |
|
|
210
|
+
| `/oxe-capabilities` | Gera e mantém o catálogo nativo de capabilities em `.oxe/CAPABILITIES.md` e `.oxe/capabilities/`, com política, side effects e evidência esperada. |
|
|
211
|
+
| `/oxe-skill` | Descobrir, invocar e gerenciar skills OXE via `@<skill-id>`. Subcomandos: `list`, `explain <id>`, `new <id>`. |
|
|
212
|
+
| `oxe-cc azure` | Provider Azure nativo via Azure CLI: autenticação corporativa com MFA, inventário via Resource Graph e operações guiadas para Service Bus, Event Grid e Azure SQL. |
|
|
196
213
|
|
|
197
214
|
---
|
|
198
215
|
|
|
@@ -208,22 +225,27 @@ Se uma tarefa falha: diagnóstico inline automático (2-3 hipóteses → fix →
|
|
|
208
225
|
|
|
209
226
|
---
|
|
210
227
|
|
|
211
|
-
##
|
|
212
|
-
|
|
213
|
-
Estes
|
|
214
|
-
|
|
215
|
-
|
|
|
216
|
-
|
|
217
|
-
|
|
|
218
|
-
|
|
|
219
|
-
| `/oxe-
|
|
220
|
-
|
|
|
221
|
-
|
|
|
222
|
-
| `/oxe-
|
|
223
|
-
|
|
|
224
|
-
|
|
|
225
|
-
|
|
|
226
|
-
|
|
|
228
|
+
## Comportamentos especializados (via flags)
|
|
229
|
+
|
|
230
|
+
Estes comportamentos continuam existindo, mas agora são ativados como flags dos estágios principais ou automaticamente por contexto. Você não precisa decorar comandos separados.
|
|
231
|
+
|
|
232
|
+
| Comportamento | Como ativar |
|
|
233
|
+
|---------------|-------------|
|
|
234
|
+
| Scan / refresh do codebase | `/oxe-spec --refresh` (incremental) ou `--full` (completo) |
|
|
235
|
+
| Research / spike / engenharia reversa | `/oxe-spec --research` |
|
|
236
|
+
| Contrato UI/UX | `/oxe-spec --ui` |
|
|
237
|
+
| Registrar observação durante execução | `/oxe-execute --note "texto"` |
|
|
238
|
+
| Diagnóstico técnico inline | `/oxe-execute --debug` |
|
|
239
|
+
| Diagnóstico pós-falha persistente | `/oxe-execute --deep-diagnosis` |
|
|
240
|
+
| Snapshot nomeado de sessão | `/oxe-execute --checkpoint "<nome>"` |
|
|
241
|
+
| Loop de retry até verify passar | `/oxe-execute --iterative` |
|
|
242
|
+
| Auditoria de cobertura pós-verify | `/oxe-verify --gaps` |
|
|
243
|
+
| Auditoria OWASP P0/P1/P2 | `/oxe-verify --security` |
|
|
244
|
+
| Auditoria de implementação UI | `/oxe-verify --ui` |
|
|
245
|
+
| Revisão de PR ou diff de branches | `/oxe-verify --pr` ou `--diff branchA...branchB` |
|
|
246
|
+
| Retrospectiva (lições do ciclo) | automática ao fechar `/oxe-verify` (desativar: `--skip-retro`) |
|
|
247
|
+
|
|
248
|
+
**Compatibilidade:** os comandos legados (`/oxe-debug`, `/oxe-forensics`, `/oxe-research`, `/oxe-security`, `/oxe-validate-gaps`, `/oxe-ui-spec`, `/oxe-ui-review`, `/oxe-review-pr`, `/oxe-checkpoint`, `/oxe-loop`, `/oxe-obs`, `/oxe-ask`, `/oxe-scan`, `/oxe-retro`, `/oxe-project`) continuam funcionando desde v1.1.0 e exibem um aviso sugerindo o novo destino.
|
|
227
249
|
|
|
228
250
|
---
|
|
229
251
|
|
package/bin/banner.txt
CHANGED
|
@@ -649,7 +649,7 @@ function hasOtherManagedInstructionBlocks(filePath) {
|
|
|
649
649
|
.replace(/<!-- oxe-cc:install-begin -->[\s\S]*?<!-- oxe-cc:install-end -->/g, '')
|
|
650
650
|
.trim();
|
|
651
651
|
if (!withoutOxe) return false;
|
|
652
|
-
return /<!--[^>]*(managed|configuration|install-begin|install-end
|
|
652
|
+
return /<!--[^>]*(managed|configuration|install-begin|install-end)[^>]*-->/i.test(withoutOxe);
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
/**
|
package/commands/oxe/ask.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:ask
|
|
3
|
-
description: "
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe. Use: /oxe 'sua pergunta' — Perguntar ao OXE sobre a situação atual"
|
|
4
4
|
argument-hint: "[pergunta em texto livre]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
@@ -42,6 +42,10 @@ oxe_semantics_hash: b3f89121879267f9
|
|
|
42
42
|
|
|
43
43
|
<!-- oxe-reasoning-contract:end -->
|
|
44
44
|
|
|
45
|
+
> **[DEPRECATED v1.1.0]** Este comando foi incorporado por `/oxe`.
|
|
46
|
+
> Use: `/oxe "sua pergunta"` para perguntas situacionais.
|
|
47
|
+
> Este alias continuará funcionando nesta versão por compatibilidade.
|
|
48
|
+
|
|
45
49
|
**Workflow canónico:** `oxe/workflows/ask.md`
|
|
46
50
|
|
|
47
51
|
Execute integralmente esse ficheiro na raiz do repositório em que estás a trabalhar. Usa o texto em `$ARGUMENTS` como pergunta e foco.
|
package/commands/oxe/compact.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:compact
|
|
3
|
-
description:
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-spec. Use: /oxe-spec --refresh para refresh incremental do codebase"
|
|
4
4
|
oxe_workflow_slug: compact
|
|
5
5
|
oxe_reasoning_mode: discovery
|
|
6
6
|
oxe_question_policy: explore_first
|
package/commands/oxe/debug.md
CHANGED
package/commands/oxe/execute.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:execute
|
|
3
|
-
description: "Executar plano
|
|
4
|
-
argument-hint: "[A
|
|
3
|
+
description: "Executar plano A/B/C. Flags: --note (obs), --debug, --deep-diagnosis, --checkpoint '<nome>', --iterative"
|
|
4
|
+
argument-hint: "[A|B|C | --note 'texto' | --debug | --deep-diagnosis | --checkpoint '<nome>' | --iterative]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Bash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:forensics
|
|
3
|
-
description:
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-execute. Use: /oxe-execute --deep-diagnosis"
|
|
4
4
|
argument-hint: "[sintoma opcional]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
package/commands/oxe/loop.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:loop
|
|
3
|
-
description:
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-execute. Use: /oxe-execute --iterative"
|
|
4
4
|
argument-hint: "onda <N> [max:<tentativas>]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:milestone
|
|
3
|
-
description: "
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-session. Use: /oxe-session milestone new|complete|status|audit"
|
|
4
4
|
argument-hint: "new <nome> | complete | status | audit"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
package/commands/oxe/next.md
CHANGED
package/commands/oxe/obs.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:obs
|
|
3
|
-
description: "
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-execute. Use: /oxe-execute --note 'sua observação'"
|
|
4
4
|
argument-hint: "[observação: restrição, descoberta, preferência, risco ou decisão]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
package/commands/oxe/oxe.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe
|
|
3
|
-
description: OXE — Entrada universal: próximo passo,
|
|
4
|
-
argument-hint: "[contexto | 'help' | vazio]"
|
|
3
|
+
description: OXE — Entrada universal: próximo passo, perguntas situacionais, roteamento ou help da trilha principal (6 comandos)
|
|
4
|
+
argument-hint: "[contexto | 'help' | 'sua pergunta' | vazio]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Bash
|
|
@@ -46,4 +46,4 @@ oxe_semantics_hash: d7f65cd3f77b0abc
|
|
|
46
46
|
|
|
47
47
|
**Workflow canônico:** `oxe/workflows/oxe.md`
|
|
48
48
|
|
|
49
|
-
Execute integralmente esse ficheiro. `$ARGUMENTS`: vazio → próximo passo; texto → roteamento inteligente
|
|
49
|
+
Execute integralmente esse ficheiro. `$ARGUMENTS`: vazio → próximo passo; "help" → trilha principal (6 comandos + 2 avançados); pergunta situacional → situação atual com base nos artefatos; texto de ação → roteamento inteligente para o workflow correto.
|
package/commands/oxe/project.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:project
|
|
3
|
-
description:
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-session. Use: /oxe-session milestone|workstream. Checkpoint via /oxe-execute --checkpoint"
|
|
4
4
|
argument-hint: "milestone new|complete|status|audit | workstream new|switch|list|close <nome> | checkpoint [slug]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
package/commands/oxe/research.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:research
|
|
3
|
-
description:
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-spec. Use: /oxe-spec --research ou /oxe-spec --deep"
|
|
4
4
|
argument-hint: "[âmbito: spike, mapa sistema, reversa, modernização, …]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
package/commands/oxe/retro.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:retro
|
|
3
|
-
description:
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-verify (retro automática). Use: /oxe-verify (ou --skip-retro para desativar)"
|
|
4
4
|
argument-hint: "[opcional: contexto sobre o ciclo]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:review-pr
|
|
3
|
-
description:
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-verify. Use: /oxe-verify --pr ou /oxe-verify --diff branchA...branchB"
|
|
4
4
|
argument-hint: "<URL do PR ou branch:base..head>"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
package/commands/oxe/route.md
CHANGED
package/commands/oxe/scan.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:scan
|
|
3
|
-
description:
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-spec. Use: /oxe-spec --refresh (incremental) ou /oxe-spec --full (completo)"
|
|
4
4
|
argument-hint: "[área opcional, ex. auth, api]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
package/commands/oxe/security.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:security
|
|
3
|
-
description:
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-verify. Use: /oxe-verify --security"
|
|
4
4
|
argument-hint: "[opcional: categoria OWASP, módulo ou arquivo]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
package/commands/oxe/session.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:session
|
|
3
|
-
description: "Gerir sessões
|
|
4
|
-
argument-hint: "[new <nome> | list | switch <id> |
|
|
3
|
+
description: "Gerir sessões, milestones e workstreams OXE (absorve /oxe-project, /oxe-milestone, /oxe-workstream)"
|
|
4
|
+
argument-hint: "[new <nome> | list | switch <id> | close | migrate <nome> | milestone new|status|audit | workstream new|switch|list]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Bash
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oxe:ship
|
|
3
|
+
description: "OXE — Entregar: cria commit local com mensagem gerada de SPEC+PLAN+VERIFY. Flags: --message, --amend, --verify-first, --dry-run"
|
|
4
|
+
argument-hint: "[--message 'mensagem'] [--amend] [--verify-first] [--no-checks] [--dry-run]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Glob
|
|
9
|
+
- Grep
|
|
10
|
+
- Write
|
|
11
|
+
- Task
|
|
12
|
+
oxe_workflow_slug: ship
|
|
13
|
+
oxe_reasoning_mode: execution
|
|
14
|
+
oxe_question_policy: ask_high_impact_only
|
|
15
|
+
oxe_output_contract: execution
|
|
16
|
+
oxe_tool_profile: write_bounded
|
|
17
|
+
oxe_confidence_policy: explicit
|
|
18
|
+
oxe_context_tier: standard
|
|
19
|
+
oxe_contract_version: 2.0.0
|
|
20
|
+
oxe_semantics_hash: 3893740934e4f82b
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<!-- oxe-reasoning-contract:start -->
|
|
24
|
+
|
|
25
|
+
**Contrato de raciocínio OXE deste comando**
|
|
26
|
+
- **Workflow:** ship
|
|
27
|
+
- **Modo:** execução
|
|
28
|
+
- **Perguntas:** perguntar só alto impacto
|
|
29
|
+
- **Saída esperada:** execução
|
|
30
|
+
- **Perfil de ferramentas:** mutação limitada
|
|
31
|
+
- **Política de confiança:** explícita
|
|
32
|
+
- **Tier de contexto padrão:** padrão
|
|
33
|
+
- **Versão do contrato:** 2.0.0
|
|
34
|
+
- **Checksum semântico:** `3893740934e4f82b`
|
|
35
|
+
- **Entrada de contexto prioritária:** `.oxe/context/packs/ship.md` e `.oxe/context/packs/ship.json`
|
|
36
|
+
- **Regra pack-first:** ler o context pack primeiro; se estiver stale, incompleto ou ausente, cair para leitura direta com fallback explícito.
|
|
37
|
+
- **Inspeção estruturada:** `oxe-cc context inspect --workflow ship --json`
|
|
38
|
+
- Fazer reconhecimento curto antes de editar ou executar mutações.
|
|
39
|
+
- Trabalhar no menor write set viável e validar após cada fatia relevante.
|
|
40
|
+
- Parar e explicitar o bloqueio quando houver hipótese crítica não verificada.
|
|
41
|
+
- **Seções esperadas:** Contexto lido · Alvo da mudança · Validação executada · Resultado · Próximo passo
|
|
42
|
+
- **Bloqueios formais:** missing:verify_without_override · missing:tracked_changes
|
|
43
|
+
- **Referência canónica:** `oxe/workflows/references/reasoning-execution.md`
|
|
44
|
+
|
|
45
|
+
<!-- oxe-reasoning-contract:end -->
|
|
46
|
+
|
|
47
|
+
**Workflow canônico:** `oxe/workflows/ship.md`
|
|
48
|
+
|
|
49
|
+
Execute integralmente esse ficheiro na raiz do repositório em que estás a trabalhar. Usa `$ARGUMENTS` como flags de entrega (`--message`, `--amend`, `--verify-first`, `--no-checks`, `--dry-run`).
|
package/commands/oxe/spec.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:spec
|
|
3
|
-
description: "Spec em 5 fases:
|
|
4
|
-
argument-hint: "[descrição da feature
|
|
3
|
+
description: "Spec em 5 fases. Flags: --refresh (scan incremental), --full (scan completo), --research (spike), --ui (gera UI-SPEC)"
|
|
4
|
+
argument-hint: "[descrição da feature | --refresh | --full | --research | --ui]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
package/commands/oxe/ui-spec.md
CHANGED
package/commands/oxe/verify.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:verify
|
|
3
|
-
description: Valida
|
|
4
|
-
argument-hint: "[Tn
|
|
3
|
+
description: "Valida e fecha o ciclo (retro automática). Flags: --gaps, --security, --ui, --pr, --diff, --skip-retro"
|
|
4
|
+
argument-hint: "[Tn | --gaps | --security | --ui | --pr | --diff branchA...branchB | --skip-retro]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: oxe:workstream
|
|
3
|
-
description: "
|
|
3
|
+
description: "[DEPRECATED v1.1.0] Incorporado por /oxe-session. Use: /oxe-session workstream list|new|switch|close"
|
|
4
4
|
argument-hint: "list | new <nome> | switch <nome> | status | close <nome>"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export interface AuditQueryFilter {
|
|
2
|
+
action?: AuditAction;
|
|
3
|
+
severity?: AuditSeverity;
|
|
4
|
+
runId?: string;
|
|
5
|
+
since?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface RemoteAuditSink {
|
|
8
|
+
write(entry: AuditEntry): Promise<void>;
|
|
9
|
+
query(filter: AuditQueryFilter): Promise<AuditEntry[]>;
|
|
10
|
+
}
|
|
11
|
+
export interface AuditMetrics {
|
|
12
|
+
total_entries: number;
|
|
13
|
+
critical_count: number;
|
|
14
|
+
warn_count: number;
|
|
15
|
+
by_action: Partial<Record<AuditAction, number>>;
|
|
16
|
+
actors: string[];
|
|
17
|
+
oldest: string | null;
|
|
18
|
+
newest: string | null;
|
|
19
|
+
}
|
|
20
|
+
export type AuditAction = 'run_started' | 'run_completed' | 'run_paused' | 'run_recovered' | 'gate_requested' | 'gate_resolved' | 'policy_denied' | 'plugin_registered' | 'plugin_invoked' | 'secret_accessed' | 'infra_mutation' | 'pr_created' | 'merge_approved' | 'merge_blocked';
|
|
21
|
+
export type AuditSeverity = 'info' | 'warn' | 'critical';
|
|
22
|
+
export interface AuditEntry {
|
|
23
|
+
audit_id: string;
|
|
24
|
+
action: AuditAction;
|
|
25
|
+
severity: AuditSeverity;
|
|
26
|
+
run_id: string | null;
|
|
27
|
+
work_item_id: string | null;
|
|
28
|
+
actor: string;
|
|
29
|
+
resource: string | null;
|
|
30
|
+
detail: Record<string, unknown>;
|
|
31
|
+
timestamp: string;
|
|
32
|
+
}
|
|
33
|
+
export interface RunQuota {
|
|
34
|
+
run_id: string;
|
|
35
|
+
max_work_items: number;
|
|
36
|
+
max_mutations: number;
|
|
37
|
+
max_retries_total: number;
|
|
38
|
+
consumed_work_items: number;
|
|
39
|
+
consumed_mutations: number;
|
|
40
|
+
consumed_retries: number;
|
|
41
|
+
}
|
|
42
|
+
export interface QuotaViolation {
|
|
43
|
+
quota_type: 'work_items' | 'mutations' | 'retries';
|
|
44
|
+
limit: number;
|
|
45
|
+
consumed: number;
|
|
46
|
+
}
|
|
47
|
+
export declare class AuditTrail {
|
|
48
|
+
private readonly projectRoot;
|
|
49
|
+
private readonly remoteSink?;
|
|
50
|
+
constructor(projectRoot: string, remoteSink?: RemoteAuditSink | undefined);
|
|
51
|
+
record(action: AuditAction, actor: string, options?: {
|
|
52
|
+
runId?: string;
|
|
53
|
+
workItemId?: string;
|
|
54
|
+
resource?: string;
|
|
55
|
+
detail?: Record<string, unknown>;
|
|
56
|
+
}): AuditEntry;
|
|
57
|
+
query(filter?: {
|
|
58
|
+
action?: AuditAction;
|
|
59
|
+
severity?: AuditSeverity;
|
|
60
|
+
runId?: string;
|
|
61
|
+
since?: string;
|
|
62
|
+
}): AuditEntry[];
|
|
63
|
+
critical(): AuditEntry[];
|
|
64
|
+
metrics(): AuditMetrics;
|
|
65
|
+
private append;
|
|
66
|
+
private load;
|
|
67
|
+
private trailPath;
|
|
68
|
+
}
|
|
69
|
+
export declare function createQuota(runId: string, limits?: Partial<Omit<RunQuota, 'run_id' | 'consumed_work_items' | 'consumed_mutations' | 'consumed_retries'>>): RunQuota;
|
|
70
|
+
export declare function checkQuota(quota: RunQuota): QuotaViolation | null;
|
|
71
|
+
export declare function consumeQuota(quota: RunQuota, type: QuotaViolation['quota_type'], amount?: number): RunQuota;
|