@semacode/cli 2.1.0 → 2.3.0
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/README.md +107 -4
- package/dist/agentContext.d.ts +1 -1
- package/dist/agentContextPack.js +6 -1
- package/dist/agentContextTipos.d.ts +4 -2
- package/dist/agentContextTipos.js +7 -0
- package/dist/agentEntryPoints.js +70 -19
- package/dist/comandos.js +6 -0
- package/dist/discovery/catalog.d.ts +11 -0
- package/dist/discovery/catalog.js +521 -0
- package/dist/discovery/command.d.ts +11 -0
- package/dist/discovery/command.js +226 -0
- package/dist/discovery/index.d.ts +5 -0
- package/dist/discovery/index.js +8 -0
- package/dist/discovery/ranker.d.ts +3 -0
- package/dist/discovery/ranker.js +310 -0
- package/dist/discovery/redaction.d.ts +2 -0
- package/dist/discovery/redaction.js +21 -0
- package/dist/discovery/render.d.ts +2 -0
- package/dist/discovery/render.js +100 -0
- package/dist/discovery/types.d.ts +119 -0
- package/dist/discovery/types.js +13 -0
- package/dist/execucoesExternas.js +19 -5
- package/dist/exemplosOficiais.js +29 -8
- package/dist/iaPrompts.d.ts +1 -1
- package/dist/iaPrompts.js +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +24 -5
- package/dist/index.part01.d.ts +1 -1
- package/dist/index.part01.js +47 -3
- package/dist/index.part06.js +3 -0
- package/dist/initTemplatesBase.js +3 -2
- package/dist/pipelineConteudo/adapters.d.ts +84 -0
- package/dist/pipelineConteudo/adapters.js +449 -0
- package/dist/pipelineConteudo/canonical.d.ts +18 -0
- package/dist/pipelineConteudo/canonical.js +107 -0
- package/dist/pipelineConteudo/command.d.ts +3 -0
- package/dist/pipelineConteudo/command.js +572 -0
- package/dist/pipelineConteudo/index.d.ts +9 -0
- package/dist/pipelineConteudo/index.js +12 -0
- package/dist/pipelineConteudo/ledger.d.ts +68 -0
- package/dist/pipelineConteudo/ledger.js +732 -0
- package/dist/pipelineConteudo/planner.d.ts +12 -0
- package/dist/pipelineConteudo/planner.js +366 -0
- package/dist/pipelineConteudo/projection.d.ts +16 -0
- package/dist/pipelineConteudo/projection.js +57 -0
- package/dist/pipelineConteudo/state.d.ts +23 -0
- package/dist/pipelineConteudo/state.js +615 -0
- package/dist/pipelineConteudo/trust.d.ts +17 -0
- package/dist/pipelineConteudo/trust.js +750 -0
- package/dist/pipelineConteudo/types.d.ts +331 -0
- package/dist/pipelineConteudo/types.js +4 -0
- package/dist/profileArtefatoValidadores.d.ts +3 -2
- package/dist/profileArtefatoValidadores.js +81 -0
- package/dist/profileAuthorTipos.d.ts +4 -3
- package/dist/profileCatalogo.d.ts +5 -5
- package/dist/profileCatalogo.js +30 -0
- package/dist/profileCommand.d.ts +8 -2
- package/dist/profileCommand.js +15 -5
- package/dist/profileRegras.d.ts +5 -5
- package/dist/profileRegras.js +13 -1
- package/dist/profileRulePacks.js +68 -0
- package/dist/sistemasInterativos/adapterProtocol.d.ts +3 -0
- package/dist/sistemasInterativos/adapterProtocol.js +240 -0
- package/dist/sistemasInterativos/advancedCatalog.d.ts +5 -0
- package/dist/sistemasInterativos/advancedCatalog.js +442 -0
- package/dist/sistemasInterativos/autonomy.d.ts +230 -0
- package/dist/sistemasInterativos/autonomy.js +753 -0
- package/dist/sistemasInterativos/canonical.d.ts +3 -0
- package/dist/sistemasInterativos/canonical.js +43 -0
- package/dist/sistemasInterativos/catalog.d.ts +116 -0
- package/dist/sistemasInterativos/catalog.js +543 -0
- package/dist/sistemasInterativos/command.d.ts +7 -0
- package/dist/sistemasInterativos/command.js +311 -0
- package/dist/sistemasInterativos/controlRun.d.ts +56 -0
- package/dist/sistemasInterativos/controlRun.js +391 -0
- package/dist/sistemasInterativos/evidence.d.ts +5 -0
- package/dist/sistemasInterativos/evidence.js +306 -0
- package/dist/sistemasInterativos/experienceIr.d.ts +12 -0
- package/dist/sistemasInterativos/experienceIr.js +895 -0
- package/dist/sistemasInterativos/experienceIrSemantics.d.ts +30 -0
- package/dist/sistemasInterativos/experienceIrSemantics.js +368 -0
- package/dist/sistemasInterativos/experienceIrTypes.d.ts +370 -0
- package/dist/sistemasInterativos/experienceIrTypes.js +5 -0
- package/dist/sistemasInterativos/extensionCommand.d.ts +391 -0
- package/dist/sistemasInterativos/extensionCommand.js +383 -0
- package/dist/sistemasInterativos/index.d.ts +19 -0
- package/dist/sistemasInterativos/index.js +22 -0
- package/dist/sistemasInterativos/operations.d.ts +40 -0
- package/dist/sistemasInterativos/operations.js +1167 -0
- package/dist/sistemasInterativos/operationsTypes.d.ts +297 -0
- package/dist/sistemasInterativos/operationsTypes.js +11 -0
- package/dist/sistemasInterativos/planner.d.ts +2 -0
- package/dist/sistemasInterativos/planner.js +159 -0
- package/dist/sistemasInterativos/portability.d.ts +164 -0
- package/dist/sistemasInterativos/portability.js +539 -0
- package/dist/sistemasInterativos/render.d.ts +3 -0
- package/dist/sistemasInterativos/render.js +179 -0
- package/dist/sistemasInterativos/temporal.d.ts +183 -0
- package/dist/sistemasInterativos/temporal.js +543 -0
- package/dist/sistemasInterativos/types.d.ts +215 -0
- package/dist/sistemasInterativos/types.js +4 -0
- package/dist/sistemasInterativos/validator.d.ts +2 -0
- package/dist/sistemasInterativos/validator.js +305 -0
- package/docs/README.md +9 -0
- package/docs/ai-integration.md +7 -1
- package/docs/ai-workflow.md +5 -4
- package/docs/commands.md +43 -1
- package/docs/descoberta-capacidades.md +106 -0
- package/docs/documentation.md +11 -2
- package/docs/pipeline-conteudo.md +246 -0
- package/docs/profiles.md +11 -2
- package/docs/sistemas-interativos.md +381 -0
- package/docs/testing.md +11 -2
- package/exemplos/pipeline-conteudo/README.md +44 -0
- package/exemplos/pipeline-conteudo/alvos.json +23 -0
- package/exemplos/pipeline-conteudo/definicao.json +136 -0
- package/exemplos/profile_simulation.sema +211 -0
- package/exemplos/sistemas-interativos/README.md +100 -0
- package/exemplos/sistemas-interativos/advanced/acceptance-context-evaluate-valid.json +5 -0
- package/exemplos/sistemas-interativos/advanced/acceptance-lock-valid.json +16 -0
- package/exemplos/sistemas-interativos/advanced/asset-provenance-valid.json +32 -0
- package/exemplos/sistemas-interativos/advanced/autonomy-repair-valid.json +93 -0
- package/exemplos/sistemas-interativos/advanced/control-run-definition-valid.json +78 -0
- package/exemplos/sistemas-interativos/advanced/control-run-valid.json +27 -0
- package/exemplos/sistemas-interativos/advanced/distributed-workers-valid.json +79 -0
- package/exemplos/sistemas-interativos/advanced/editor-state-valid.json +42 -0
- package/exemplos/sistemas-interativos/advanced/engine-snapshot-after-valid.json +32 -0
- package/exemplos/sistemas-interativos/advanced/engine-snapshot-before-valid.json +23 -0
- package/exemplos/sistemas-interativos/advanced/job-orchestration-valid.json +39 -0
- package/exemplos/sistemas-interativos/advanced/multimodal-evidence-valid.json +46 -0
- package/exemplos/sistemas-interativos/advanced/multiplayer-authority-valid.json +39 -0
- package/exemplos/sistemas-interativos/advanced/playtest-fuzz-valid.json +37 -0
- package/exemplos/sistemas-interativos/advanced/portability-valid.json +104 -0
- package/exemplos/sistemas-interativos/advanced/temporal-evidence-valid.json +27 -0
- package/exemplos/sistemas-interativos/advanced/temporal-valid.json +118 -0
- package/exemplos/sistemas-interativos/experience-ir-valid.json +459 -0
- package/exemplos/sistemas-interativos/game-2d.json +83 -0
- package/exemplos/sistemas-interativos/game-3d-human.json +81 -0
- package/exemplos/sistemas-interativos/game-pixel-16-bit.json +97 -0
- package/exemplos/sistemas-interativos/game-pixel-8-bit.json +94 -0
- package/exemplos/sistemas-interativos/game-xr-human.json +80 -0
- package/exemplos/sistemas-interativos/hybrid-2-5d.json +108 -0
- package/exemplos/sistemas-interativos/protocol-mutating-rollback-valid.json +75 -0
- package/exemplos/sistemas-interativos/protocol-read-only-valid.json +58 -0
- package/exemplos/sistemas-interativos/simulation-2d-controlled.json +97 -0
- package/exemplos/sistemas-interativos/simulation-3d-calibrated-autonomous.json +141 -0
- package/exemplos/sistemas-interativos/simulation-headless-autonomous-batch.json +112 -0
- package/exemplos/sistemas-interativos/simulation-pixel-16-bit.json +103 -0
- package/exemplos/sistemas-interativos/simulation-text-controlled.json +95 -0
- package/node_modules/@sema/gerador-lua/dist/index.js +78 -4
- package/node_modules/@sema/gerador-lua/dist/index.js.map +1 -1
- package/node_modules/@sema/gerador-php/dist/index.js +8 -0
- package/node_modules/@sema/gerador-php/dist/index.js.map +1 -1
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -59,8 +59,9 @@ generated `AGENTS.md`. Installing this npm package never writes into
|
|
|
59
59
|
|
|
60
60
|
- `AGENTS.md` is the only official entrypoint. `sync-codex` changes only valid
|
|
61
61
|
Sema-managed blocks and preserves malformed or manual content for review.
|
|
62
|
-
- Agent Context Pack consumers use schema version
|
|
63
|
-
`entrypointCodex`, `codexNativo`, and
|
|
62
|
+
- Agent Context Pack consumers use schema version 7, including the deterministic
|
|
63
|
+
discovery summary and the fields `entrypointCodex`, `codexNativo`, and
|
|
64
|
+
`cliLocalSemAutorizacao`.
|
|
64
65
|
- The Sema Codex skill is required for first contact. It initializes the
|
|
65
66
|
workspace and generates `AGENTS.md`; it does not duplicate the governed
|
|
66
67
|
workflow after that handoff.
|
|
@@ -109,10 +110,112 @@ sema testar contratos/app.sema --alvo cpp --saida .tmp/app-cpp-tests
|
|
|
109
110
|
sema verificar contratos/app.sema --saida .tmp/app-check --json
|
|
110
111
|
```
|
|
111
112
|
|
|
113
|
+
## AI-native Content Pipeline
|
|
114
|
+
|
|
115
|
+
`sema conteudo` validates and plans multi-channel, multi-format content work,
|
|
116
|
+
verifies signed policies and evidence, replays canonical state, and projects
|
|
117
|
+
non-authoritative manifests. Producer agents, specialized AI evaluators,
|
|
118
|
+
creative tools, and delivery adapters run in an external runner; there is no
|
|
119
|
+
native human-review transition.
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
sema conteudo validar exemplos/pipeline-conteudo/definicao.json --json
|
|
123
|
+
sema conteudo planejar exemplos/pipeline-conteudo/definicao.json --alvos-arquivo exemplos/pipeline-conteudo/alvos.json --json
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
See `docs/pipeline-conteudo.md` for the signed trust, quorum, ledger, target,
|
|
127
|
+
adapter, and projection model.
|
|
128
|
+
|
|
129
|
+
## Capability Discovery and Interactive Systems
|
|
130
|
+
|
|
131
|
+
`sema descobrir` exposes one explainable catalog and a deterministic intent
|
|
132
|
+
router. `sema interativo` validates and plans games, simulations, and hybrids
|
|
133
|
+
across independent spatial models, render modes, retro visual profiles, control,
|
|
134
|
+
time, determinism, and fidelity axes without running an engine or silently
|
|
135
|
+
mutating a workspace.
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
sema descobrir catalogo --json
|
|
139
|
+
sema descobrir recomendar --intencao "calibrate a headless autonomous simulation" --json
|
|
140
|
+
sema interativo schema --json
|
|
141
|
+
sema interativo pipelines --json
|
|
142
|
+
sema interativo validar exemplos/sistemas-interativos/simulation-headless-autonomous-batch.json --json
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
The canonical interactive catalog contains 35 unique pipelines and 28 unique
|
|
146
|
+
external adapter descriptors. Its advanced P0/P1/P2 surface covers Experience
|
|
147
|
+
IR, semantic engine snapshots, asset provenance, editor-state descriptions,
|
|
148
|
+
multimodal evidence, resumable jobs, acceptance locks, temporal/shot/physics QA,
|
|
149
|
+
clean-install and hardware constraints, safe autonomous repair, bounded
|
|
150
|
+
playtest/fuzz plans, multiplayer authority, portability with declared losses,
|
|
151
|
+
and distributed worker DAGs.
|
|
152
|
+
|
|
153
|
+
Advanced read-only commands:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
sema interativo validar-ir <file> --json
|
|
157
|
+
sema interativo indexar-ir <file> --json
|
|
158
|
+
sema interativo consultar-ir <file> --semantic-id <id> --json
|
|
159
|
+
sema interativo chunk-ir <file> --semantic-id <id> [--raso] --json
|
|
160
|
+
sema interativo descrever-ir --json
|
|
161
|
+
|
|
162
|
+
sema interativo validar-engine-snapshot <file> --json
|
|
163
|
+
sema interativo diff-engine-snapshots <before> <after> --json
|
|
164
|
+
sema interativo validar-asset-provenance <file> --json
|
|
165
|
+
sema interativo validar-editor-state <file> --json
|
|
166
|
+
sema interativo planejar-jobs <file> --json
|
|
167
|
+
sema interativo validar-acceptance <file> --json
|
|
168
|
+
sema interativo operar-acceptance <lock> --operation <VALIDATE|EVALUATE|INVALIDATE> --context-file <file> --json
|
|
169
|
+
sema interativo validar-multimodal <file> --json
|
|
170
|
+
|
|
171
|
+
sema interativo validar-temporal <file> --json
|
|
172
|
+
sema interativo validar-evidencia-temporal <contract> --bundle-arquivo <file> --json
|
|
173
|
+
sema interativo validar-autonomia <file> --json
|
|
174
|
+
sema interativo validar-playtest-fuzz <file> --json
|
|
175
|
+
sema interativo validar-multiplayer <file> --json
|
|
176
|
+
sema interativo analisar-portabilidade <file> --json
|
|
177
|
+
sema interativo validar-workers <file> --json
|
|
178
|
+
|
|
179
|
+
sema interativo validar-control-run <control-run.json> --definition-arquivo <definition.json> --plano-arquivo <plan.json> --contrato-arquivo <validation-contract.json> --entrada-arquivo <input.json> [--entrada-auxiliar-arquivo <supporting-input.json>] --evidencia-arquivo <evidence.json> --resultado-arquivo <result.json> --json
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
All of these commands are local and read-only. Adapter entries are external
|
|
183
|
+
capability descriptors: the package does not detect, probe, launch, install, or
|
|
184
|
+
control any engine, editor, plug-in, process, verifier, or worker. A
|
|
185
|
+
`STRUCTURALLY_COMPLETE` result is local structural coverage only; it always
|
|
186
|
+
remains `completed: false`, `authoritative: false`, and awaits external
|
|
187
|
+
attestation. The CLI never equates a descriptor, fixture, plan, or supplied JSON
|
|
188
|
+
record with proof that external work occurred.
|
|
189
|
+
|
|
190
|
+
See `docs/descoberta-capacidades.md` and `docs/sistemas-interativos.md` for the
|
|
191
|
+
ranking, adapter protocol, evidence boundary, fidelity, and coverage model.
|
|
192
|
+
|
|
193
|
+
## Programmatic API
|
|
194
|
+
|
|
195
|
+
The package root can be imported without executing the CLI process:
|
|
196
|
+
|
|
197
|
+
```js
|
|
198
|
+
import {
|
|
199
|
+
analisarPlanoPortabilidadeInterativa,
|
|
200
|
+
indexarExperienceIr,
|
|
201
|
+
montarCatalogoCapacidades,
|
|
202
|
+
validarContratoTemporalInterativo,
|
|
203
|
+
validarControlRunInterativo,
|
|
204
|
+
validarDefinicaoSistemaInterativo,
|
|
205
|
+
validarExperienceIr,
|
|
206
|
+
} from "@semacode/cli";
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Only the package-root exports are public. Internal `dist/*` deep imports remain
|
|
210
|
+
blocked, and importing the package never parses CLI arguments or exits the host
|
|
211
|
+
process. Programmatic validators and planners preserve the same read-only,
|
|
212
|
+
non-authoritative boundary as their CLI equivalents.
|
|
213
|
+
|
|
112
214
|
## Public Boundary
|
|
113
215
|
|
|
114
|
-
The npm package is
|
|
115
|
-
sensitive operational
|
|
216
|
+
The npm package is local-only: its CLI and programmatic API do not depend on a
|
|
217
|
+
hosted Sema service. It must not contain private or sensitive operational
|
|
218
|
+
material.
|
|
116
219
|
|
|
117
220
|
## Commercial Use
|
|
118
221
|
|
package/dist/agentContext.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare function criarEntradaCanonicaProjeto(guiaPorCapacidade: GuiaCapac
|
|
|
13
13
|
pequena: import("./agentContextTipos.js").CapacidadeIa;
|
|
14
14
|
grande: import("./agentContextTipos.js").CapacidadeIa;
|
|
15
15
|
};
|
|
16
|
-
docsSuporte: ("docs/ai-integration.md" | "docs/ai-workflow.md" | "docs/ai-onboarding.md" | "docs/syntax.md" | "docs/cli.md" | "docs/commands.md" | "docs/profiles.md" | "docs/testing.md" | "docs/documentation.md" | "docs/deploy.md" | "docs/env.md" | "docs/rollback.md")[];
|
|
16
|
+
docsSuporte: ("docs/ai-integration.md" | "docs/ai-workflow.md" | "docs/ai-onboarding.md" | "docs/syntax.md" | "docs/cli.md" | "docs/commands.md" | "docs/descoberta-capacidades.md" | "docs/profiles.md" | "docs/sistemas-interativos.md" | "docs/testing.md" | "docs/documentation.md" | "docs/deploy.md" | "docs/env.md" | "docs/rollback.md")[];
|
|
17
17
|
agentContextPack: import("./agentContextTipos.js").AgentContextPack;
|
|
18
18
|
guiaPorCapacidade: GuiaCapacidadeIaMap;
|
|
19
19
|
};
|
package/dist/agentContextPack.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Descrição: monta o Agent Context Pack e políticas que agentes fracos, médios e fortes consomem antes do código.
|
|
3
3
|
import { LIMITE_AVISO_LINHAS_CODIGO_GOVERNADO, LIMITE_AVISO_LINHAS_CONTRATO_SEMA, LIMITE_BLOQUEIO_LINHAS_CODIGO_GOVERNADO, LIMITE_BLOQUEIO_LINHAS_CONTRATO_SEMA, } from './driftOrcamento.js';
|
|
4
4
|
import { ALIASES_CAPACIDADE_IA, ARQUIVO_AGENT_CONTEXT_PACK, ARQUIVO_DOC_AGENTES_CAPACIDADE, ARQUIVO_ENTRYPOINT_CODEX, ARQUIVO_SEMA_BOOT, ARQUIVO_SEMA_SMALL_MODEL, EXEMPLOS_OFICIAIS_AGENT_CONTEXT, } from './agentContextTipos.js';
|
|
5
|
+
import { criarResumoDescobertaAgentContext } from "./discovery/index.js";
|
|
5
6
|
export const LIMITE_CARACTERES_PAYLOAD_INLINE = 262144;
|
|
6
7
|
export function criarGuiaCapacidadeIa() {
|
|
7
8
|
const fraca = {
|
|
@@ -287,7 +288,7 @@ export function criarAgentContextPack(guiaPorCapacidade) {
|
|
|
287
288
|
];
|
|
288
289
|
return {
|
|
289
290
|
nome: "Agent Context Pack",
|
|
290
|
-
versao:
|
|
291
|
+
versao: 7,
|
|
291
292
|
objetivo: "Dar a agentes IA uma entrada curta, estruturada e auditável antes de abrir código cru ou inventar contexto.",
|
|
292
293
|
ordemLeitura: [
|
|
293
294
|
ARQUIVO_SEMA_BOOT,
|
|
@@ -304,6 +305,7 @@ export function criarAgentContextPack(guiaPorCapacidade) {
|
|
|
304
305
|
"Leia SEMA_BOOT.md antes de qualquer outro artefato de IA.",
|
|
305
306
|
"Leia AGENTS.md antes de editar código, contrato, docs operacionais, release ou deploy.",
|
|
306
307
|
"Leia docs/commands.md antes de escolher comando Sema, interpretar um gate ou usar --saida de sema compilar.",
|
|
308
|
+
"Quando a intenção não deixar claro qual profile, workflow, pipeline, gerador ou adapter usar, rode `sema descobrir recomendar --intencao \"<objetivo>\" --json`; a recomendação informa, mas nunca se autoexecuta.",
|
|
307
309
|
"Em workspace local, rode sema --version; se falhar, pare e peça a instalação da CLI. Com a CLI disponível, use diretamente sema resumo, docs-impacto, inspecionar, drift e impacto sobre a pasta local.",
|
|
308
310
|
"Antes de editar, rode `sema inspecionar <contrato.sema> --json`, `sema drift <contrato.sema> --escopo modulo --json` e `sema impacto <contrato.sema> --alvo <token> --mudanca \"<descricao>\" --json`.",
|
|
309
311
|
"Use exemplos oficiais antes de criar ou corrigir sintaxe .sema.",
|
|
@@ -326,6 +328,7 @@ export function criarAgentContextPack(guiaPorCapacidade) {
|
|
|
326
328
|
],
|
|
327
329
|
proibicoes: [
|
|
328
330
|
"Não inventar sintaxe Sema fora da gramática e dos exemplos oficiais.",
|
|
331
|
+
"Não adivinhar nem executar automaticamente uma capacidade quando discovery reportar no-match, ambiguidade ou inputs ausentes.",
|
|
329
332
|
"Não tratar README, texto livre ou código como fonte superior ao contrato.",
|
|
330
333
|
"Não substituir os gates da CLI Sema por README.md, busca local, inferência pelo nome do projeto ou bom senso.",
|
|
331
334
|
"Não tratar a pasta --saida de sema compilar como entrega final; entrega são os arquivos alvo/vínculos do contrato.",
|
|
@@ -349,6 +352,7 @@ export function criarAgentContextPack(guiaPorCapacidade) {
|
|
|
349
352
|
],
|
|
350
353
|
prioridades: [
|
|
351
354
|
"Menor artefato suficiente primeiro.",
|
|
355
|
+
"Catálogo de discovery antes de escolher por chute entre profile, workflow, pipeline, gerador ou adapter.",
|
|
352
356
|
"Workspace local: sema --version, resumo, docs-impacto, inspecionar, drift e impacto pela CLI; se sema não existir, pare e peça a instalação da CLI.",
|
|
353
357
|
"Contrato, índice e AGENTS complementam o contexto Sema; não substituem chamada Sema.",
|
|
354
358
|
"Exemplos oficiais antes de nova sintaxe.",
|
|
@@ -363,6 +367,7 @@ export function criarAgentContextPack(guiaPorCapacidade) {
|
|
|
363
367
|
"Se risco ou escopo estiver ambíguo, parar e pedir contrato/contexto.",
|
|
364
368
|
],
|
|
365
369
|
fontes,
|
|
370
|
+
descoberta: criarResumoDescobertaAgentContext(),
|
|
366
371
|
exemplosOficiais: [...EXEMPLOS_OFICIAIS_AGENT_CONTEXT],
|
|
367
372
|
textoBrutoSobDemanda: Object.fromEntries(fontes.map((fonte) => [fonte.caminho, fonte.incluirTextoBrutoQuando])),
|
|
368
373
|
guiaPorCapacidade: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ResumoDescobertaAgentContext } from "./discovery/types.js";
|
|
1
2
|
export type CapacidadeIa = "fraca" | "media" | "forte";
|
|
2
3
|
export type CapacidadeIaLegada = "pequena" | "grande";
|
|
3
4
|
export type ChaveGuiaCapacidadeIa = CapacidadeIa | CapacidadeIaLegada;
|
|
@@ -65,6 +66,7 @@ export interface AgentContextPack {
|
|
|
65
66
|
proibicoes: string[];
|
|
66
67
|
prioridades: string[];
|
|
67
68
|
fontes: FonteAgentContextPack[];
|
|
69
|
+
descoberta: ResumoDescobertaAgentContext;
|
|
68
70
|
exemplosOficiais: string[];
|
|
69
71
|
textoBrutoSobDemanda: Record<string, string>;
|
|
70
72
|
guiaPorCapacidade: Record<ChaveGuiaCapacidadeIa, string[]>;
|
|
@@ -89,5 +91,5 @@ export declare const CAPACIDADES_IA_OPERACIONAIS: readonly ["fraca", "media", "f
|
|
|
89
91
|
export declare const ALIASES_CAPACIDADE_IA: Record<CapacidadeIaLegada, CapacidadeIa>;
|
|
90
92
|
export declare const MARCADOR_SEMA_AGENT_ENTRYPOINT_INICIO = "<!-- sema:agent-entrypoint:start -->";
|
|
91
93
|
export declare const MARCADOR_SEMA_AGENT_ENTRYPOINT_FIM = "<!-- sema:agent-entrypoint:end -->";
|
|
92
|
-
export declare const DOCUMENTOS_SUPORTE_IA: readonly ["docs/ai-integration.md", "docs/ai-workflow.md", "docs/ai-onboarding.md", "docs/syntax.md", "docs/cli.md", "docs/commands.md", "docs/profiles.md", "docs/testing.md", "docs/documentation.md", "docs/deploy.md", "docs/env.md", "docs/rollback.md"];
|
|
93
|
-
export declare const EXEMPLOS_OFICIAIS_AGENT_CONTEXT: readonly ["exemplos/calculadora.sema", "exemplos/pagamento.sema", "exemplos/profile_software.sema", "exemplos/profile_workflow_n8n.sema", "exemplos/profile_ops.sema", "exemplos/profile_game.sema", "exemplos/profile_legal.sema", "exemplos/profile_research.sema", "exemplos/author_obra_comum.sema"];
|
|
94
|
+
export declare const DOCUMENTOS_SUPORTE_IA: readonly ["docs/ai-integration.md", "docs/ai-workflow.md", "docs/ai-onboarding.md", "docs/syntax.md", "docs/cli.md", "docs/commands.md", "docs/descoberta-capacidades.md", "docs/profiles.md", "docs/sistemas-interativos.md", "docs/testing.md", "docs/documentation.md", "docs/deploy.md", "docs/env.md", "docs/rollback.md"];
|
|
95
|
+
export declare const EXEMPLOS_OFICIAIS_AGENT_CONTEXT: readonly ["exemplos/calculadora.sema", "exemplos/pagamento.sema", "exemplos/profile_software.sema", "exemplos/profile_workflow_n8n.sema", "exemplos/profile_ops.sema", "exemplos/profile_game.sema", "exemplos/profile_simulation.sema", "exemplos/sistemas-interativos/game-pixel-16-bit.json", "exemplos/sistemas-interativos/simulation-headless-autonomous-batch.json", "exemplos/sistemas-interativos/simulation-3d-calibrated-autonomous.json", "exemplos/sistemas-interativos/protocol-read-only-valid.json", "exemplos/profile_legal.sema", "exemplos/profile_research.sema", "exemplos/author_obra_comum.sema"];
|
|
@@ -30,7 +30,9 @@ export const DOCUMENTOS_SUPORTE_IA = [
|
|
|
30
30
|
"docs/syntax.md",
|
|
31
31
|
"docs/cli.md",
|
|
32
32
|
"docs/commands.md",
|
|
33
|
+
"docs/descoberta-capacidades.md",
|
|
33
34
|
"docs/profiles.md",
|
|
35
|
+
"docs/sistemas-interativos.md",
|
|
34
36
|
"docs/testing.md",
|
|
35
37
|
"docs/documentation.md",
|
|
36
38
|
"docs/deploy.md",
|
|
@@ -44,6 +46,11 @@ export const EXEMPLOS_OFICIAIS_AGENT_CONTEXT = [
|
|
|
44
46
|
"exemplos/profile_workflow_n8n.sema",
|
|
45
47
|
"exemplos/profile_ops.sema",
|
|
46
48
|
"exemplos/profile_game.sema",
|
|
49
|
+
"exemplos/profile_simulation.sema",
|
|
50
|
+
"exemplos/sistemas-interativos/game-pixel-16-bit.json",
|
|
51
|
+
"exemplos/sistemas-interativos/simulation-headless-autonomous-batch.json",
|
|
52
|
+
"exemplos/sistemas-interativos/simulation-3d-calibrated-autonomous.json",
|
|
53
|
+
"exemplos/sistemas-interativos/protocol-read-only-valid.json",
|
|
47
54
|
"exemplos/profile_legal.sema",
|
|
48
55
|
"exemplos/profile_research.sema",
|
|
49
56
|
"exemplos/author_obra_comum.sema",
|
package/dist/agentEntryPoints.js
CHANGED
|
@@ -148,12 +148,13 @@ Você está em um projeto governado por Sema. O contrato semântico vem antes de
|
|
|
148
148
|
|
|
149
149
|
1. Confirme \`AGENTS.md\` na raiz e rode \`sema --version\`; se o comando não existir, pare e peça a instalação da CLI.
|
|
150
150
|
2. Use a CLI local diretamente para ler o workspace: \`sema resumo\`, \`sema docs-impacto\`, \`sema inspecionar\`, \`sema drift\` e \`sema impacto\`.
|
|
151
|
-
3.
|
|
152
|
-
4.
|
|
153
|
-
5.
|
|
154
|
-
6. Antes de
|
|
155
|
-
7. Antes de
|
|
156
|
-
8.
|
|
151
|
+
3. Se não estiver claro qual profile, workflow, pipeline, gerador ou adapter usar, rode \`sema descobrir recomendar --intencao "<objetivo>" --json\`; não execute automaticamente uma recomendação ambígua.
|
|
152
|
+
4. Não use fonte externa de workspace para substituir a CLI local quando ela estiver operacional.
|
|
153
|
+
5. Este boot é para workspace local em disco; se não houver workspace local, pare bloqueado em vez de inventar caminho.
|
|
154
|
+
6. Antes de criar módulo, rota, task ou contrato, inspecione o contrato \`.sema\` aplicável.
|
|
155
|
+
7. Antes de editar código existente, rode drift e impacto pela CLI local.
|
|
156
|
+
8. Antes de criar ou corrigir \`.sema\`, use os exemplos oficiais na CLI local.
|
|
157
|
+
9. Se qualquer etapa falhar, pare e diga que está bloqueado.
|
|
157
158
|
|
|
158
159
|
Não substitua esse fluxo por leitura manual de \`AGENTS.md\`, \`README.md\`, busca local, inferência pelo nome do projeto, bom senso ou ferramenta não citada aqui.
|
|
159
160
|
|
|
@@ -376,6 +377,12 @@ export function renderizarDocumentoAgentesPorCapacidade(agentContextPack) {
|
|
|
376
377
|
"points back to the applicable contract. The marker is not a substitute for",
|
|
377
378
|
"validation, drift, impact, or finalization gates.",
|
|
378
379
|
"",
|
|
380
|
+
"Generated Lua tests preserve the contract's failure shape. A case whose only",
|
|
381
|
+
"expectation is `sucesso: falso` may terminate without an output, while a case",
|
|
382
|
+
"that also declares observable output fields must return a structured failure",
|
|
383
|
+
"result. The generator keeps these paths distinct instead of forcing every",
|
|
384
|
+
"failure into one representation.",
|
|
385
|
+
"",
|
|
379
386
|
`Governed code above ${LIMITE_AVISO_LINHAS_CODIGO_GOVERNADO} lines requires a`,
|
|
380
387
|
`split plan. Governed code above ${LIMITE_BLOQUEIO_LINHAS_CODIGO_GOVERNADO}`,
|
|
381
388
|
"lines blocks closure. Markdown documentation is not counted as governed code",
|
|
@@ -410,7 +417,7 @@ export function renderizarDocumentoAgentesPorCapacidade(agentContextPack) {
|
|
|
410
417
|
"",
|
|
411
418
|
"Sema governs contract, scope, drift, evidence, and quality. It does not bypass",
|
|
412
419
|
"platform policies, terms of use, permissions, security controls, or laws.",
|
|
413
|
-
].join("\n");
|
|
420
|
+
].join("\n") + "\n";
|
|
414
421
|
}
|
|
415
422
|
function renderizarInstrucaoCodexSema(agentContextPack) {
|
|
416
423
|
const capacidade = "media";
|
|
@@ -425,13 +432,14 @@ Este workspace é governado por Sema. Antes de qualquer ação em código, contr
|
|
|
425
432
|
1. Leia \`${ARQUIVO_SEMA_BOOT}\`.
|
|
426
433
|
2. Rode \`sema --version\`; se falhar, pare e peça a instalação da CLI.
|
|
427
434
|
3. Use diretamente a CLI local: \`sema resumo\`, \`sema docs-impacto\`, \`sema inspecionar\`, \`sema drift\` e \`sema impacto\`.
|
|
428
|
-
4.
|
|
429
|
-
5.
|
|
430
|
-
6. Chame
|
|
431
|
-
7.
|
|
432
|
-
8. Antes de
|
|
433
|
-
9.
|
|
434
|
-
10.
|
|
435
|
+
4. Quando a capacidade correta não estiver clara, use \`sema descobrir recomendar --intencao "<objetivo>" --json\`; não autoexecute resultado ambíguo.
|
|
436
|
+
5. Não use fonte externa de workspace para substituir a CLI local quando ela estiver operacional.
|
|
437
|
+
6. Chame docs-impacto com a intenção declarada antes de agir.
|
|
438
|
+
7. Chame inspecionar no contrato \`.sema\` aplicável.
|
|
439
|
+
8. Antes de editar código existente, rode drift e impacto.
|
|
440
|
+
9. Antes de criar ou editar \`.sema\`, use exemplos oficiais.
|
|
441
|
+
10. Ao concluir mudança de contrato, rode validar.
|
|
442
|
+
11. Antes de finalizar, use finalizar-mudanca com as docs lidas.
|
|
435
443
|
|
|
436
444
|
É proibido substituir esse fluxo por leitura manual de \`AGENTS.md\`, \`README.md\`, busca local por arquivos, inferência pelo nome do projeto, bom senso ou ferramenta não citada nesta lista.
|
|
437
445
|
|
|
@@ -621,10 +629,11 @@ This is the minimum workflow for Codex in a local workspace.
|
|
|
621
629
|
4. Run \`sema docs-impacto --intencao "<change>" --json\`.
|
|
622
630
|
5. Read every required document returned by the command.
|
|
623
631
|
6. Read \`docs/commands.md\` before selecting a command or interpreting \`--saida\`.
|
|
624
|
-
7.
|
|
625
|
-
8.
|
|
626
|
-
9. Run \`sema
|
|
627
|
-
10. Run \`sema
|
|
632
|
+
7. If the right capability is unclear, run \`sema descobrir recomendar --intencao "<goal>" --json\`; do not auto-run ambiguous recommendations.
|
|
633
|
+
8. Use \`exemplos/\` and \`docs/syntax.md\` before creating or editing a contract.
|
|
634
|
+
9. Run \`sema drift\` and \`sema impacto\` before editing existing code.
|
|
635
|
+
10. Run \`sema formatar\` and \`sema validar\` after changing a \`.sema\` contract.
|
|
636
|
+
11. Run \`sema finalizar-mudanca\` with the documents read before closure.
|
|
628
637
|
|
|
629
638
|
Contract edit rule: \`.sema\` has its own size budget. Above ${LIMITE_AVISO_LINHAS_CONTRATO_SEMA} lines, plan a split by domain/capability; above ${LIMITE_BLOQUEIO_LINHAS_CONTRATO_SEMA}, do not create or edit before splitting. Do not use parte_1/parte_2 and do not force a 1:1 contract-to-file relationship; several contracts can govern the same file through \`vinculos\`.
|
|
630
639
|
|
|
@@ -680,6 +689,10 @@ Then read every required doc returned by \`docs-impacto\`.
|
|
|
680
689
|
- \`sema inspecionar <arquivo-ou-pasta> --json\`: shows modules, tasks, routes, entities, links, and expected files.
|
|
681
690
|
- \`sema ast <arquivo.sema> --json\`: shows AST for syntax debugging.
|
|
682
691
|
- \`sema ir <arquivo.sema> --json\`: shows the IR used by gates and generators.
|
|
692
|
+
- \`sema descobrir catalogo --json\`: lists governance flows, profiles, specialized workflows, pipelines, generators, capability tokens, and adapters from their canonical registries.
|
|
693
|
+
- \`sema descobrir recomendar --intencao "<goal>" --json\`: ranks compatible capabilities deterministically without executing the selected command.
|
|
694
|
+
- \`sema descobrir explicar <id> --json\`: explains inputs, boundaries, reasons, and the command template for one capability.
|
|
695
|
+
- \`sema pipeline listar|descrever <id> --json\` and \`sema capabilities --json\`: compact projections of the same discovery catalog.
|
|
683
696
|
|
|
684
697
|
## Change and Closure
|
|
685
698
|
|
|
@@ -725,10 +738,48 @@ Ready UI rule: if the task generates an app, site, dashboard, form, or static HT
|
|
|
725
738
|
## Profiles and Author
|
|
726
739
|
|
|
727
740
|
- \`sema author iniciar|validar|briefing|revisar-cliches|validar-narrativa|validar-proibicoes\`: governs authorial writing.
|
|
728
|
-
- \`sema profile validar <software|workflow|ops|game|legal|research|redacao|propostas|conversas> <arquivo> --json\`: validates an artifact by profile.
|
|
741
|
+
- \`sema profile validar <software|workflow|ops|game|simulation|legal|research|redacao|propostas|conversas> <arquivo> --json\`: validates an artifact by profile.
|
|
729
742
|
- \`sema profile capabilities --json\`: lists profiles/capabilities.
|
|
730
743
|
- \`sema rule-packs --profile <profile> --json\`: lists rule packs.
|
|
731
744
|
|
|
745
|
+
\`author\` is a specialized \`sema author\` workflow, not a \`profile validar\` alias. Discovery exposes that distinction explicitly.
|
|
746
|
+
|
|
747
|
+
## AI-native Content Pipeline
|
|
748
|
+
|
|
749
|
+
- \`sema conteudo capabilities --json\`: lists generic producer, evaluator, and adapter capabilities without fixing a platform.
|
|
750
|
+
- \`sema conteudo validar <definition.json> --json\`: validates the content DAG, gates, and open adapters.
|
|
751
|
+
- \`sema conteudo planejar <definition.json> --alvos-arquivo <targets.json> --json\`: creates a declarative multi-target plan for an external runner.
|
|
752
|
+
- \`sema conteudo validar-envelope --envelope-arquivo <envelope.json> --confianca-arquivo <trust.json> --trust-root-digest <sha256:...> --revocation-digest <sha256:...> --payload-type <type> --json\`: verifies Ed25519 identity, authorization, freshness, scope, and the separately pinned trust root and current revocation overlay.
|
|
753
|
+
- \`sema conteudo registrar <ledger.ndjson> --envelope-arquivo <envelope.json> --politica-arquivo <policy-envelope.json> --confianca-arquivo <trust.json> --trust-root-digest <sha256:...> --revocation-digest <sha256:...> --ledger-id <id> --expected-head <sha256:...> --json\`: appends a verified envelope under the signed run policy to the local replay ledger at an externally retained head.
|
|
754
|
+
- \`sema conteudo status <definition.json> --politica-arquivo <policy-envelope.json> --confianca-arquivo <trust.json> --trust-root-digest <sha256:...> --revocation-digest <sha256:...> --ledger-arquivo <ledger.ndjson> --expected-head <sha256:...> --json\`: verifies the signed policy and its \`targetSetDigest\`, then derives verdicts, operational conditions, completion, and next actions from canonical events.
|
|
755
|
+
- \`sema conteudo projetar <definition.json> --politica-arquivo <policy-envelope.json> --confianca-arquivo <trust.json> --trust-root-digest <sha256:...> --revocation-digest <sha256:...> --ledger-arquivo <ledger.ndjson> --expected-head <sha256:...> --saida <manifest.json> --json\`: regenerates a non-authoritative manifest bound to the ledger head.
|
|
756
|
+
|
|
757
|
+
The content command is an AI-native, multi-channel, multi-format control plane. It never runs producers, evaluators, creative tools, or publication adapters; those belong to an external runner. It has no native human-review transition. A signed policy binds \`runId\`, definition, ledger, trust root, gates, complete target set, and the full \`issuedAt\`/\`expiresAt\` authorization window; no event may be recorded outside it. Stages select \`adapterPolicy\` as \`NONE\`, \`CONSTRAINTS\`, or \`CONFIRMATION\`; definition v1 accepts one output per stage. Constraint results must come from independent signed observations, including independently observed media type, not artifact metadata or executor claims. Target metadata is an exact scalar allowlist from \`requiredMetadata + optionalMetadata\`; \`accountScope\` is a credential-free \`account:<alias>\` reference, and artifact metadata is prohibited in v1. Deterministic evidence and AI opinions have separate quorum fields. Evidence requires an exact \`content.evidence.attest:<evidenceType>\` capability; adapter evidence requires \`content.adapter.attest:<adapterId>@<version>:<evidenceType>\` plus signed adapter binding.
|
|
758
|
+
|
|
759
|
+
Verdicts such as \`APROVADO\`, \`REPROVADO\`, and \`INCONCLUSIVO\` remain separate from operational conditions such as \`AGUARDANDO_EVENTO_EXTERNO\` and \`FERRAMENTA_INDISPONIVEL\`. A generated manifest is only a projection and cannot alter canonical state.
|
|
760
|
+
|
|
761
|
+
Local NDJSON plus a hash chain is portable evidence for replay, not a strong append-only trust boundary. Retain \`expectedHead\`, the canonical trust-root digest, and the current revocation digest externally, or use protected storage for high assurance. The trust-root pin identifies the authority snapshot independently from the revocation overlay. A workspace-local trust file additionally requires \`--development-local-trust\`; the flag does not disable digest pinning. Append freshness uses the platform clock rather than caller-provided \`recordedAt\`, and an authority in the current revocation overlay cannot sign an accepted policy.
|
|
762
|
+
|
|
763
|
+
## AI-native Interactive Systems
|
|
764
|
+
|
|
765
|
+
- \`sema interativo capabilities --json\`: lists the canonical interactive capability vocabulary.
|
|
766
|
+
- \`sema interativo schema --json\`: exposes the stable read-only definition schema, enum matrix, constraints, extension-command and data-schema shapes, plus canonical example paths for AI clients.
|
|
767
|
+
- \`sema interativo pipelines --json\`: lists reusable game, simulation, and hybrid pipelines.
|
|
768
|
+
- \`sema interativo adapters [--spatial-model <NON_SPATIAL|TWO_D|TWO_POINT_FIVE_D|THREE_D>] [--render-mode <HEADLESS|TEXT|VISUAL|XR>] --json\`: lists compatible external adapter descriptors.
|
|
769
|
+
- \`sema interativo validar <definition.json> --json\`: validates independent kind, spatial model, render mode, visual profile, fidelity, control, time, world, budget, pipeline, and acceptance axes.
|
|
770
|
+
- \`sema interativo planejar <definition.json> --json\`: expands compatible stages and required evidence without running an engine.
|
|
771
|
+
- \`sema interativo validar-evidencias|status <definition.json> [--plano-arquivo <plan.json>] --bundle-arquivo <bundle.json> --json\`: validates a portable evidence bundle or derives non-authoritative status; \`--evidencias-arquivo\` is an alias and an omitted plan is recomputed deterministically.
|
|
772
|
+
- \`sema interativo validar-protocolo <adapter-run.json> --json\`: checks DETECT/PROBE/SNAPSHOT/PLAN/APPLY/VALIDATE/EVIDENCE/ROLLBACK ordering and stable target binding.
|
|
773
|
+
- Experience IR: \`validar-ir\`, \`indexar-ir\`, \`consultar-ir --semantic-id <id>\`, \`chunk-ir --semantic-id <id> [--raso]\`, and \`descrever-ir\`.
|
|
774
|
+
- Operational state: \`validar-engine-snapshot\`, \`diff-engine-snapshots\`, \`validar-asset-provenance\`, \`validar-editor-state\`, \`planejar-jobs\`, \`validar-acceptance\`, \`operar-acceptance --operation <VALIDATE|EVALUATE|INVALIDATE> --context-file <file>\`, and \`validar-multimodal\`.
|
|
775
|
+
- Temporal, autonomy, and testing: \`validar-temporal\`, \`validar-evidencia-temporal --bundle-arquivo <file>\`, \`validar-autonomia\`, \`validar-playtest-fuzz\`, and \`validar-multiplayer\`.
|
|
776
|
+
- Portability and workers: \`analisar-portabilidade\` and \`validar-workers\`.
|
|
777
|
+
- \`sema interativo validar-control-run <control-run.json> --definition-arquivo <definition.json> --plano-arquivo <plan.json> --contrato-arquivo <validation-contract.json> --entrada-arquivo <input.json> [--entrada-auxiliar-arquivo <supporting-input.json>] --evidencia-arquivo <evidence.json> --resultado-arquivo <result.json> --json\`: binds one advanced validation to its complete local digest chain instead of trusting a standalone result.
|
|
778
|
+
|
|
779
|
+
The control-run command recomputes the canonical plan and selected pure validator, then verifies the definition, pipeline descriptor, validation contract, schema-declared inputs, evidence, and result digests. Prefix advanced items with \`sema interativo\` and pass the documented JSON file as the positional argument; an agent does not have to infer the validator or payload shape from a filename or visual style. The machine-readable schema publishes command maps, input/output schema links, required top-level fields, \`outputTargets\` path segments from the payload root, at least one real output shape per command, and official fixtures for all 20 advanced commands. Validation-result shapes describe \`payload.resultado\`; projected IR values use \`indice\`, \`entry\`, \`chunk\`, or \`descriptor\`; operation projections such as \`engineDiff\` and \`jobOrchestrationPlan\` live under \`payload.resultado.value\`; the job plan's ordered \`queue\` is the assignment list and exposes kind, priority, adapter, dependencies, locks, budgets, heartbeat, checkpoint, and recovery data.
|
|
780
|
+
|
|
781
|
+
Spatial model and render mode are orthogonal: \`THREE_D + HEADLESS\` is valid, while XR requires \`THREE_D\`. \`PIXEL_8_BIT\` and \`PIXEL_16_BIT\` are independent visual profiles available to games and simulations. Every command above rejects unknown, duplicate, missing-value, or invalid-enum arguments, remains local, read-only, and non-authoritative, and leaves engine/editor execution, authorization, mutation, rollback, migration, rendering, playtest, and worker scheduling to external runners. Full local coverage is \`STRUCTURALLY_COMPLETE\`, never authoritative completion, and a local evidence bundle is never presented as authoritative trust.
|
|
782
|
+
|
|
732
783
|
## Operational
|
|
733
784
|
|
|
734
785
|
- \`sema doctor\`: diagnoses local installation.
|
package/dist/comandos.js
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
import { comandoDev } from "./dev/index.js";
|
|
4
4
|
import { comandoInit } from "./init/index.js";
|
|
5
5
|
import { comandoSyncPrisma } from "./sync/index.js";
|
|
6
|
+
import { comandoPipelineConteudo } from "./pipelineConteudo/command.js";
|
|
7
|
+
import { REGISTRO_HANDLERS_DESCOBERTA } from "./discovery/index.js";
|
|
8
|
+
import { comandoSistemasInterativos } from "./sistemasInterativos/command.js";
|
|
6
9
|
async function comandoInitHandler(posicionais, args, _emJson) {
|
|
7
10
|
try {
|
|
8
11
|
await comandoInit([...posicionais, ...args]);
|
|
@@ -59,5 +62,8 @@ export const REGISTRO_COMANDOS = {
|
|
|
59
62
|
init: comandoInitHandler,
|
|
60
63
|
dev: comandoDevHandler,
|
|
61
64
|
sync: comandoSyncPrismaHandler,
|
|
65
|
+
conteudo: comandoPipelineConteudo,
|
|
66
|
+
interativo: comandoSistemasInterativos,
|
|
67
|
+
...REGISTRO_HANDLERS_DESCOBERTA,
|
|
62
68
|
};
|
|
63
69
|
//# sourceMappingURL=comandos.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DiscoveryCatalogFilters, type DiscoveryCatalogPayload, type DiscoveryCommandTemplate, type DiscoveryEntry, type DiscoveryKind, type ResumoDescobertaAgentContext } from "./types.js";
|
|
2
|
+
export declare function normalizarDiscoveryKind(valor: string | null | undefined): DiscoveryKind | null;
|
|
3
|
+
export interface SuperficieCliPipelineInterativo {
|
|
4
|
+
readonly command: string;
|
|
5
|
+
readonly requiredInputs: readonly string[];
|
|
6
|
+
readonly effectClass: DiscoveryCommandTemplate["effectClass"];
|
|
7
|
+
}
|
|
8
|
+
export declare const SUPERFICIES_CLI_PIPELINES_AVANCADOS: Readonly<Record<string, SuperficieCliPipelineInterativo>>;
|
|
9
|
+
export declare function montarCatalogoCapacidades(filtros?: DiscoveryCatalogFilters): DiscoveryCatalogPayload;
|
|
10
|
+
export declare function obterEntradaDescoberta(id: string): DiscoveryEntry | null;
|
|
11
|
+
export declare function criarResumoDescobertaAgentContext(): ResumoDescobertaAgentContext;
|