@semacode/cli 2.2.0 → 2.3.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/LICENSE +39 -39
- package/README.md +251 -141
- 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 +551 -499
- package/dist/angular-consumer-standalone.d.ts +3 -1
- package/dist/angular-consumer-standalone.js +12 -8
- package/dist/comandos.js +4 -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/drift.part01.d.ts +32 -2
- package/dist/drift.part01.js +2 -0
- package/dist/drift.part04.d.ts +3 -2
- package/dist/drift.part04.js +6 -3
- package/dist/drift.part05.d.ts +2 -1
- package/dist/drift.part05.js +4 -3
- package/dist/drift.part06.d.ts +2 -1
- package/dist/drift.part06.js +9 -5
- package/dist/drift.part07.d.ts +11 -10
- package/dist/drift.part07.js +40 -30
- package/dist/drift.part08.d.ts +2 -1
- package/dist/drift.part08.js +4 -3
- package/dist/drift.part11.js +71 -6
- package/dist/drift.part12.js +14 -1
- package/dist/drift.part13.d.ts +42 -7
- package/dist/drift.part13.js +660 -36
- package/dist/driftCache.d.ts +49 -0
- package/dist/driftCache.js +311 -0
- package/dist/driftCacheIncremental.d.ts +98 -0
- package/dist/driftCacheIncremental.js +596 -0
- package/dist/driftCatalogo.d.ts +91 -0
- package/dist/driftCatalogo.js +657 -0
- package/dist/driftCatalogoPersistente.d.ts +8 -0
- package/dist/driftCatalogoPersistente.js +77 -0
- package/dist/driftEscopo.d.ts +23 -0
- package/dist/driftEscopo.js +563 -0
- package/dist/driftEscopoReferencias.d.ts +4 -0
- package/dist/driftEscopoReferencias.js +265 -0
- package/dist/driftOrcamento.d.ts +12 -0
- package/dist/driftOrcamento.js +19 -3
- package/dist/execucoesExternas.js +5 -19
- package/dist/exemplosOficiais.js +29 -8
- package/dist/iaPrompts.d.ts +1 -1
- package/dist/iaPrompts.js +310 -307
- package/dist/index.d.ts +2 -0
- package/dist/index.js +23 -5
- package/dist/index.part01.d.ts +17 -2
- package/dist/index.part01.js +119 -8
- package/dist/index.part02.js +21 -21
- package/dist/index.part03.d.ts +2 -2
- package/dist/index.part03.js +14 -3
- package/dist/index.part04.d.ts +2 -2
- package/dist/index.part04.js +113 -101
- package/dist/index.part05.d.ts +1 -1
- package/dist/index.part05.js +99 -22
- package/dist/index.part06.js +6 -2
- package/dist/index.part07.js +24 -24
- package/dist/index.part08.js +1 -1
- package/dist/init/templates.part01.js +393 -393
- package/dist/init/templates.part02.js +189 -189
- package/dist/initTemplatesBackend.js +73 -73
- package/dist/initTemplatesBase.js +81 -80
- package/dist/initTemplatesFlutter.js +137 -137
- package/dist/initTemplatesRuntime.js +350 -350
- package/dist/initTemplatesWeb.js +309 -309
- package/dist/pipelineConteudo/command.js +1 -36
- 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/projeto.d.ts +1 -1
- package/dist/projetoCarregar.d.ts +2 -2
- package/dist/projetoCarregar.js +47 -24
- package/dist/projetoCatalogo.d.ts +7 -0
- package/dist/projetoCatalogo.js +125 -0
- package/dist/projetoTipos.d.ts +14 -5
- 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/dist/sync/index.js +35 -35
- package/docs/README.md +34 -28
- package/docs/ai-onboarding.md +62 -62
- package/docs/ai-workflow.md +9 -4
- package/docs/auth.md +26 -26
- package/docs/cli.md +79 -79
- package/docs/commands.md +47 -2
- package/docs/database.md +15 -15
- package/docs/deploy.md +41 -41
- package/docs/descoberta-capacidades.md +106 -0
- package/docs/documentation.md +39 -39
- package/docs/env.md +16 -16
- package/docs/frontend.md +41 -41
- package/docs/getting-started.md +57 -57
- package/docs/i18n.md +15 -15
- package/docs/pipeline-conteudo.md +246 -246
- package/docs/profiles.md +54 -45
- package/docs/repositories.md +43 -43
- package/docs/rollback.md +31 -31
- package/docs/security.md +32 -32
- package/docs/sistemas-interativos.md +376 -0
- package/docs/support.md +8 -8
- package/docs/testing.md +51 -35
- package/docs/vocabulary.md +29 -29
- package/exemplos/agendamento.sema +1 -1
- package/exemplos/assinatura.sema +1 -1
- package/exemplos/auditoria.sema +1 -1
- package/exemplos/autenticacao.sema +1 -1
- package/exemplos/author_obra_comum.sema +1 -1
- package/exemplos/author_tema_sensivel.sema +1 -1
- package/exemplos/automacao.sema +1 -1
- package/exemplos/cadastro_usuario.sema +1 -1
- package/exemplos/calculadora.sema +1 -1
- package/exemplos/crud_simples.sema +1 -1
- package/exemplos/estoque.sema +1 -1
- package/exemplos/exportacao.sema +1 -1
- package/exemplos/fila.sema +1 -1
- package/exemplos/integracao_externa.sema +1 -1
- package/exemplos/multi_tenant.sema +1 -1
- package/exemplos/notificacao.sema +1 -1
- package/exemplos/operacao_estrategia.sema +132 -132
- package/exemplos/operacao_estrategia_discovery.sema +220 -220
- package/exemplos/operacao_estrategia_fluxo.sema +114 -114
- package/exemplos/operacao_estrategia_gates.sema +106 -106
- package/exemplos/operacao_estrategia_quarentena.sema +133 -133
- package/exemplos/operacao_estrategia_rollout.sema +124 -124
- package/exemplos/pagamento.sema +1 -1
- package/exemplos/pagamento_dominio.sema +1 -1
- package/exemplos/pedido.sema +1 -1
- package/exemplos/permissao.sema +1 -1
- package/exemplos/persistencia_vendor_first.sema +1 -1
- package/exemplos/pipeline-conteudo/README.md +44 -44
- package/exemplos/pipeline-conteudo/alvos.json +23 -23
- package/exemplos/pipeline-conteudo/definicao.json +136 -136
- package/exemplos/profile_conversas.sema +165 -165
- package/exemplos/profile_game.sema +1 -1
- package/exemplos/profile_legal.sema +1 -1
- package/exemplos/profile_ops.sema +1 -1
- package/exemplos/profile_research.sema +1 -1
- package/exemplos/profile_simulation.sema +211 -0
- package/exemplos/profile_software.sema +1 -1
- package/exemplos/profile_workflow_n8n.sema +1 -1
- package/exemplos/relatorio.sema +1 -1
- package/exemplos/replica_analitica_erp.sema +1 -1
- 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/exemplos/testes_embutidos.sema +1 -1
- package/exemplos/tratamento_erro.sema +1 -1
- package/exemplos/upload_arquivo.sema +1 -1
- package/exemplos/webhook.sema +1 -1
- package/node_modules/@sema/gerador-cpp/dist/index.js +176 -176
- package/node_modules/@sema/gerador-cpp/package.json +1 -1
- package/node_modules/@sema/gerador-css/dist/index.part01.js +10 -10
- package/node_modules/@sema/gerador-css/dist/index.part02.js +460 -460
- package/node_modules/@sema/gerador-dotnet/dist/index.js +169 -169
- package/node_modules/@sema/gerador-dotnet/package.json +1 -1
- package/node_modules/@sema/gerador-html/dist/index.js +17 -17
- package/node_modules/@sema/gerador-lua/dist/index.js +76 -47
- package/node_modules/@sema/gerador-lua/dist/index.js.map +1 -1
- package/node_modules/@sema/gerador-php/dist/index.js +113 -113
- package/node_modules/@sema/gerador-python/dist/index.part02.js +3 -3
- package/node_modules/@sema/gerador-typescript/dist/index.part02.js +11 -11
- package/node_modules/@sema/nucleo/dist/diagnosticos/melhorador.js +42 -42
- package/package.json +3 -3
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Capability Discovery
|
|
2
|
+
|
|
3
|
+
Sema exposes one explainable catalog so an AI can distinguish a validation
|
|
4
|
+
profile, an orchestration pipeline, a specialized workflow, a generator, a
|
|
5
|
+
governance gate, an adapter descriptor, and an opaque capability token.
|
|
6
|
+
|
|
7
|
+
Discovery is local, deterministic, and read-only. It recommends or explains a
|
|
8
|
+
capability but never executes the recommended command:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
sema descobrir catalogo --json
|
|
12
|
+
sema descobrir recomendar --intencao "validar simulador 3D autonomo calibrado" --json
|
|
13
|
+
sema descobrir recomendar --intencao "port a 16-bit game to another engine and declare losses" --json
|
|
14
|
+
sema descobrir explicar interactive.portability --json
|
|
15
|
+
sema pipeline listar --json
|
|
16
|
+
sema pipeline descrever interactive.playtest --json
|
|
17
|
+
sema capabilities --json
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The response schema is `sema.discovery/v1` and always reports:
|
|
21
|
+
|
|
22
|
+
- `executed: false`;
|
|
23
|
+
- `workspaceMutated: false`;
|
|
24
|
+
- `externalCalls: false`;
|
|
25
|
+
- actionable command templates with placeholders;
|
|
26
|
+
- required inputs and execution boundaries;
|
|
27
|
+
- matched signals, reasons, missing inputs, and stable scores.
|
|
28
|
+
|
|
29
|
+
Advanced interactive intent is routed to the narrowest local validator or
|
|
30
|
+
analyzer (`validar-temporal`, `validar-playtest-fuzz`, `analisar-portabilidade`,
|
|
31
|
+
and peers). A broad profile or engine descriptor does not outrank that specific
|
|
32
|
+
pipeline, and the suggested template retains every required file and flag.
|
|
33
|
+
|
|
34
|
+
Raw paths and credential-like values supplied in intents or filters are used
|
|
35
|
+
only for the in-memory lookup and are redacted from JSON and human output.
|
|
36
|
+
|
|
37
|
+
## Catalog coverage
|
|
38
|
+
|
|
39
|
+
The interactive catalog exposes **35 unique pipelines** and **28 unique
|
|
40
|
+
external adapter descriptors**. The pipeline set covers the original game and
|
|
41
|
+
simulation lifecycle plus P0/P1/P2 operational capabilities:
|
|
42
|
+
|
|
43
|
+
- P0 representation and observation: Experience IR, engine snapshots, asset
|
|
44
|
+
provenance, editor state, multimodal evidence, resumable jobs, and acceptance
|
|
45
|
+
locks;
|
|
46
|
+
- P1 behavior over time: timeline validation, shot/camera checks, physics
|
|
47
|
+
relations, temporal QA, clean-install/launch/smoke checks, and hardware
|
|
48
|
+
budgets;
|
|
49
|
+
- P2 autonomy and scale: safe repair cycles, bot playtests, state fuzzing,
|
|
50
|
+
multiplayer authority, engine migration, portability with declared losses,
|
|
51
|
+
and distributed job DAGs.
|
|
52
|
+
|
|
53
|
+
These entries apply across 3D, 2.5D, 2D, 8-bit, 16-bit, text, XR, and headless
|
|
54
|
+
games and simulations. Discovery ranks the requested goal independently from
|
|
55
|
+
the spatial model and visual profile.
|
|
56
|
+
|
|
57
|
+
The 28 adapters are **descriptors for external capabilities**. Catalog lookup
|
|
58
|
+
does not detect an installed engine, inspect an editor, enumerate plug-ins,
|
|
59
|
+
probe processes, contact a worker, or prove that any integration is available.
|
|
60
|
+
An external runner must establish runtime availability and return bound
|
|
61
|
+
evidence.
|
|
62
|
+
|
|
63
|
+
## Capability kinds
|
|
64
|
+
|
|
65
|
+
- `GOVERNANCE_FLOW`: contract, drift, impact, verification, and closure gates.
|
|
66
|
+
- `PROFILE_GATE`: semantic validation such as game, simulation, software, or ops.
|
|
67
|
+
- `SPECIALIZED_WORKFLOW`: dedicated surfaces such as `sema author`.
|
|
68
|
+
- `ORCHESTRATION_PIPELINE`: a staged workflow such as content, interactive
|
|
69
|
+
playtest, temporal validation, portability, or distributed jobs.
|
|
70
|
+
- `CAPABILITY_TOKEN`: an opaque producer, evaluator, runtime, or evidence token.
|
|
71
|
+
- `GENERATOR`: code generation targets.
|
|
72
|
+
- `ADAPTER`: compatibility descriptors for external engines, editors, runtimes,
|
|
73
|
+
observers, verifiers, asset tools, build systems, and workers.
|
|
74
|
+
|
|
75
|
+
`author` is intentionally a specialized workflow, not a fake
|
|
76
|
+
`sema profile validar author` command. Likewise, `profile.game` validates game
|
|
77
|
+
semantics; it is not the same thing as the `interactive.playtest` pipeline.
|
|
78
|
+
|
|
79
|
+
## Deterministic recommendation
|
|
80
|
+
|
|
81
|
+
The base router normalizes accents and aliases, applies positive and negative
|
|
82
|
+
signals, scores the entry kind and domain, and sorts by score then stable ID.
|
|
83
|
+
The minimum recommendation score is 60. When the top two candidates are within
|
|
84
|
+
seven points, the response reports ambiguity and does not choose a command.
|
|
85
|
+
|
|
86
|
+
This rule is deliberate: an AI should request more concrete intent instead of
|
|
87
|
+
silently running the wrong pipeline.
|
|
88
|
+
|
|
89
|
+
Interactive pipeline entries point to declarative planning with
|
|
90
|
+
`sema interativo planejar <definition.json> --json`. The definition must list
|
|
91
|
+
the recommended pipeline ID; the secondary `descrever` template remains
|
|
92
|
+
available when the AI first needs the pipeline contract. Advanced entries point
|
|
93
|
+
to their dedicated `sema interativo` validator or analyzer. Those commands
|
|
94
|
+
still return local, non-authoritative results and do not execute engines,
|
|
95
|
+
editors, plug-ins, or workers.
|
|
96
|
+
|
|
97
|
+
Legacy views remain available:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
sema profile capabilities --json
|
|
101
|
+
sema conteudo capabilities --json
|
|
102
|
+
sema interativo capabilities --json
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
They are projections of the same authoritative catalog sources, not separate
|
|
106
|
+
manually maintained product maps.
|
package/docs/documentation.md
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
# Documentation Governance
|
|
2
|
-
|
|
3
|
-
Documentation is part of every governed change. Codex must use
|
|
4
|
-
`sema docs-impacto` before editing contracts, code, operational docs, workflows,
|
|
5
|
-
profiles, generated artifacts, or release material.
|
|
6
|
-
|
|
7
|
-
Public Sema documentation is English and local-only.
|
|
8
|
-
|
|
9
|
-
## Required Flow
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
sema docs-impacto --intencao "describe the change" --json
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
The result lists:
|
|
16
|
-
|
|
17
|
-
- `leituraObrigatoria`: files that must be read before the change;
|
|
18
|
-
- `docsAusentes`: missing docs that block the change;
|
|
19
|
-
- `docsCriadas`: generated draft docs that must be completed by Codex;
|
|
20
|
-
- `bloqueios`: blocking diagnostics.
|
|
21
|
-
|
|
22
|
-
Before closing the change, prove the required docs were read:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
sema finalizar-mudanca \
|
|
26
|
-
--intencao "describe the change" \
|
|
27
|
-
--doc-lida README.md \
|
|
28
|
-
--doc-lida docs/documentation.md \
|
|
29
|
-
--json
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Public Docs Rules
|
|
33
|
-
|
|
34
|
-
- Write public docs in English.
|
|
35
|
-
- Keep commands, file paths, package names, environment variable names, and DSL
|
|
36
|
-
keywords literal.
|
|
37
|
-
- Do not include private or sensitive operational material.
|
|
38
|
-
- Prefer local CLI examples.
|
|
39
|
-
- Point support requests to suporte@otimitare.online.
|
|
1
|
+
# Documentation Governance
|
|
2
|
+
|
|
3
|
+
Documentation is part of every governed change. Codex must use
|
|
4
|
+
`sema docs-impacto` before editing contracts, code, operational docs, workflows,
|
|
5
|
+
profiles, generated artifacts, or release material.
|
|
6
|
+
|
|
7
|
+
Public Sema documentation is English and local-only.
|
|
8
|
+
|
|
9
|
+
## Required Flow
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
sema docs-impacto --intencao "describe the change" --json
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The result lists:
|
|
16
|
+
|
|
17
|
+
- `leituraObrigatoria`: files that must be read before the change;
|
|
18
|
+
- `docsAusentes`: missing docs that block the change;
|
|
19
|
+
- `docsCriadas`: generated draft docs that must be completed by Codex;
|
|
20
|
+
- `bloqueios`: blocking diagnostics.
|
|
21
|
+
|
|
22
|
+
Before closing the change, prove the required docs were read:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
sema finalizar-mudanca \
|
|
26
|
+
--intencao "describe the change" \
|
|
27
|
+
--doc-lida README.md \
|
|
28
|
+
--doc-lida docs/documentation.md \
|
|
29
|
+
--json
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Public Docs Rules
|
|
33
|
+
|
|
34
|
+
- Write public docs in English.
|
|
35
|
+
- Keep commands, file paths, package names, environment variable names, and DSL
|
|
36
|
+
keywords literal.
|
|
37
|
+
- Do not include private or sensitive operational material.
|
|
38
|
+
- Prefer local CLI examples.
|
|
39
|
+
- Point support requests to suporte@otimitare.online.
|
package/docs/env.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Environment
|
|
2
|
-
|
|
3
|
-
The public Sema CLI works without private service credentials. No environment
|
|
4
|
-
variable unlocks local execution: there is no login, activation, product
|
|
5
|
-
authorization, license-key, billing, credit, token, or panel gate.
|
|
6
|
-
|
|
7
|
-
Allowed public examples may use placeholders:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
EXAMPLE_API_KEY=replace-me
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Do not publish private or sensitive operational material in public Sema docs.
|
|
14
|
-
|
|
15
|
-
If an application governed by Sema needs environment variables, document them in
|
|
16
|
-
that application repository.
|
|
1
|
+
# Environment
|
|
2
|
+
|
|
3
|
+
The public Sema CLI works without private service credentials. No environment
|
|
4
|
+
variable unlocks local execution: there is no login, activation, product
|
|
5
|
+
authorization, license-key, billing, credit, token, or panel gate.
|
|
6
|
+
|
|
7
|
+
Allowed public examples may use placeholders:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
EXAMPLE_API_KEY=replace-me
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Do not publish private or sensitive operational material in public Sema docs.
|
|
14
|
+
|
|
15
|
+
If an application governed by Sema needs environment variables, document them in
|
|
16
|
+
that application repository.
|
package/docs/frontend.md
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
# User Experience Quality
|
|
2
|
-
|
|
3
|
-
When Sema governs a UI, dashboard, app, site, game, or terminal tool, the
|
|
4
|
-
experience must be modern, contextual, and verified. This is a quality gate, not
|
|
5
|
-
decoration.
|
|
6
|
-
|
|
7
|
-
## Before Building
|
|
8
|
-
|
|
9
|
-
Define:
|
|
10
|
-
|
|
11
|
-
- audience and domain
|
|
12
|
-
- primary workflow
|
|
13
|
-
- density and information hierarchy
|
|
14
|
-
- interaction states
|
|
15
|
-
- responsive behavior
|
|
16
|
-
- accessibility basics
|
|
17
|
-
- evidence needed before closing
|
|
18
|
-
|
|
19
|
-
## Browser Evidence
|
|
20
|
-
|
|
21
|
-
For web UI, check desktop and mobile. On a narrow viewport such as 390px, this
|
|
22
|
-
must be true:
|
|
23
|
-
|
|
24
|
-
```js
|
|
25
|
-
document.documentElement.scrollWidth <= document.documentElement.clientWidth
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Fix overlapping text, broken wrapping, hidden controls, and incoherent layout
|
|
29
|
-
before closing the change.
|
|
30
|
-
|
|
31
|
-
## Terminal Evidence
|
|
32
|
-
|
|
33
|
-
For CLI/TUI work, smoke-check:
|
|
34
|
-
|
|
35
|
-
- `--help`
|
|
36
|
-
- success output
|
|
37
|
-
- error output
|
|
38
|
-
- JSON output when supported
|
|
39
|
-
|
|
40
|
-
The public Sema CLI itself must stay local-only and must not depend on private
|
|
41
|
-
or sensitive operational material for these checks.
|
|
1
|
+
# User Experience Quality
|
|
2
|
+
|
|
3
|
+
When Sema governs a UI, dashboard, app, site, game, or terminal tool, the
|
|
4
|
+
experience must be modern, contextual, and verified. This is a quality gate, not
|
|
5
|
+
decoration.
|
|
6
|
+
|
|
7
|
+
## Before Building
|
|
8
|
+
|
|
9
|
+
Define:
|
|
10
|
+
|
|
11
|
+
- audience and domain
|
|
12
|
+
- primary workflow
|
|
13
|
+
- density and information hierarchy
|
|
14
|
+
- interaction states
|
|
15
|
+
- responsive behavior
|
|
16
|
+
- accessibility basics
|
|
17
|
+
- evidence needed before closing
|
|
18
|
+
|
|
19
|
+
## Browser Evidence
|
|
20
|
+
|
|
21
|
+
For web UI, check desktop and mobile. On a narrow viewport such as 390px, this
|
|
22
|
+
must be true:
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
document.documentElement.scrollWidth <= document.documentElement.clientWidth
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Fix overlapping text, broken wrapping, hidden controls, and incoherent layout
|
|
29
|
+
before closing the change.
|
|
30
|
+
|
|
31
|
+
## Terminal Evidence
|
|
32
|
+
|
|
33
|
+
For CLI/TUI work, smoke-check:
|
|
34
|
+
|
|
35
|
+
- `--help`
|
|
36
|
+
- success output
|
|
37
|
+
- error output
|
|
38
|
+
- JSON output when supported
|
|
39
|
+
|
|
40
|
+
The public Sema CLI itself must stay local-only and must not depend on private
|
|
41
|
+
or sensitive operational material for these checks.
|
package/docs/getting-started.md
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
# Installation And First Use
|
|
2
|
-
|
|
3
|
-
Sema is installed and used as a local CLI.
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npm install -g @semacode/cli
|
|
7
|
-
codex plugin marketplace add gerlanss/Sema
|
|
8
|
-
codex plugin add sema@sema
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Open a new Codex task in the target repository so the newly installed `$sema`
|
|
12
|
-
skill is loaded, then ask it to initialize Sema. Existing tasks do not refresh
|
|
13
|
-
their skill catalog. After bootstrap, `AGENTS.md` becomes the automatic protocol
|
|
14
|
-
for subsequent tasks.
|
|
15
|
-
|
|
16
|
-
Then verify the local engine:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
sema --version
|
|
20
|
-
sema resumo
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
The CLI is ready when `sema --version` succeeds. No Sema login, user
|
|
24
|
-
authorization, activation key, product-license check, token, credits, billing
|
|
25
|
-
service, or control panel is involved.
|
|
26
|
-
|
|
27
|
-
The Codex skill is required for first contact with a project that does not yet
|
|
28
|
-
have Sema. It only bootstraps the local CLI and generates the repository's
|
|
29
|
-
`AGENTS.md`; that file becomes the automatic workspace protocol afterward.
|
|
30
|
-
Plugin installation is explicit and does not happen from npm lifecycle scripts.
|
|
31
|
-
|
|
32
|
-
## First Project
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
sema iniciar --template base
|
|
36
|
-
sema validar contratos/*.sema --json
|
|
37
|
-
sema resumo
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
`sema iniciar` preserves existing project files and refuses symlink or junction
|
|
41
|
-
escapes. The bootstrap skill never uses `--force`; explicit overwrite remains a
|
|
42
|
-
human decision.
|
|
43
|
-
|
|
44
|
-
## Existing Project
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
sema resumo
|
|
48
|
-
sema docs-impacto --intencao "describe the change" --json
|
|
49
|
-
sema inspecionar contratos/example.sema --json
|
|
50
|
-
sema drift contratos/example.sema --escopo modulo --json
|
|
51
|
-
sema impacto contratos/example.sema --alvo sema.example.target --mudanca "describe the change" --json
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
The public CLI does not require private service credentials or an external
|
|
55
|
-
request before local commands run.
|
|
56
|
-
|
|
57
|
-
Support: suporte@otimitare.online
|
|
1
|
+
# Installation And First Use
|
|
2
|
+
|
|
3
|
+
Sema is installed and used as a local CLI.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install -g @semacode/cli
|
|
7
|
+
codex plugin marketplace add gerlanss/Sema
|
|
8
|
+
codex plugin add sema@sema
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Open a new Codex task in the target repository so the newly installed `$sema`
|
|
12
|
+
skill is loaded, then ask it to initialize Sema. Existing tasks do not refresh
|
|
13
|
+
their skill catalog. After bootstrap, `AGENTS.md` becomes the automatic protocol
|
|
14
|
+
for subsequent tasks.
|
|
15
|
+
|
|
16
|
+
Then verify the local engine:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
sema --version
|
|
20
|
+
sema resumo
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The CLI is ready when `sema --version` succeeds. No Sema login, user
|
|
24
|
+
authorization, activation key, product-license check, token, credits, billing
|
|
25
|
+
service, or control panel is involved.
|
|
26
|
+
|
|
27
|
+
The Codex skill is required for first contact with a project that does not yet
|
|
28
|
+
have Sema. It only bootstraps the local CLI and generates the repository's
|
|
29
|
+
`AGENTS.md`; that file becomes the automatic workspace protocol afterward.
|
|
30
|
+
Plugin installation is explicit and does not happen from npm lifecycle scripts.
|
|
31
|
+
|
|
32
|
+
## First Project
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
sema iniciar --template base
|
|
36
|
+
sema validar contratos/*.sema --json
|
|
37
|
+
sema resumo
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`sema iniciar` preserves existing project files and refuses symlink or junction
|
|
41
|
+
escapes. The bootstrap skill never uses `--force`; explicit overwrite remains a
|
|
42
|
+
human decision.
|
|
43
|
+
|
|
44
|
+
## Existing Project
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
sema resumo
|
|
48
|
+
sema docs-impacto --intencao "describe the change" --json
|
|
49
|
+
sema inspecionar contratos/example.sema --json
|
|
50
|
+
sema drift contratos/example.sema --escopo modulo --json
|
|
51
|
+
sema impacto contratos/example.sema --alvo sema.example.target --mudanca "describe the change" --json
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The public CLI does not require private service credentials or an external
|
|
55
|
+
request before local commands run.
|
|
56
|
+
|
|
57
|
+
Support: suporte@otimitare.online
|
package/docs/i18n.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Language And Identifiers
|
|
2
|
-
|
|
3
|
-
Public Sema documentation is English.
|
|
4
|
-
|
|
5
|
-
Do not translate commands, file paths, package names, endpoint paths, environment
|
|
6
|
-
variable names, code symbols, DSL keywords, or brand names.
|
|
7
|
-
|
|
8
|
-
Examples:
|
|
9
|
-
|
|
10
|
-
- Keep `sema validar`, not an English paraphrase.
|
|
11
|
-
- Keep `.sema`, `task`, `input`, `output`, `rules`, `effects`, and `guarantees`.
|
|
12
|
-
- Keep package names such as `@semacode/cli`.
|
|
13
|
-
|
|
14
|
-
Human-facing prose should be clear English. Contract DSL can keep its own
|
|
15
|
-
keywords and domain identifiers.
|
|
1
|
+
# Language And Identifiers
|
|
2
|
+
|
|
3
|
+
Public Sema documentation is English.
|
|
4
|
+
|
|
5
|
+
Do not translate commands, file paths, package names, endpoint paths, environment
|
|
6
|
+
variable names, code symbols, DSL keywords, or brand names.
|
|
7
|
+
|
|
8
|
+
Examples:
|
|
9
|
+
|
|
10
|
+
- Keep `sema validar`, not an English paraphrase.
|
|
11
|
+
- Keep `.sema`, `task`, `input`, `output`, `rules`, `effects`, and `guarantees`.
|
|
12
|
+
- Keep package names such as `@semacode/cli`.
|
|
13
|
+
|
|
14
|
+
Human-facing prose should be clear English. Contract DSL can keep its own
|
|
15
|
+
keywords and domain identifiers.
|