@semacode/cli 2.0.0 → 2.1.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/LICENSE +39 -39
- package/README.md +125 -121
- package/dist/agentEntryPoints.js +499 -499
- package/dist/doctorCommand.js +28 -0
- package/dist/geracaoCore.js +97 -1
- package/dist/iaPrompts.d.ts +1 -1
- package/dist/iaPrompts.js +307 -307
- package/dist/index.part01.js +4 -3
- package/dist/index.part02.js +21 -21
- package/dist/index.part04.js +96 -96
- package/dist/index.part06.js +1 -1
- package/dist/index.part07.js +35 -24
- 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 -81
- package/dist/initTemplatesFlutter.js +137 -137
- package/dist/initTemplatesRuntime.js +350 -350
- package/dist/initTemplatesWeb.js +309 -309
- package/dist/nativeToolchains.d.ts +15 -0
- package/dist/nativeToolchains.js +132 -0
- package/dist/projetoConfig.js +7 -1
- package/dist/projetoResolucao.js +21 -6
- package/dist/sync/index.js +35 -35
- package/docs/README.md +25 -25
- package/docs/ai-onboarding.md +62 -62
- package/docs/ai-workflow.md +1 -1
- package/docs/auth.md +26 -26
- package/docs/cli.md +79 -72
- package/docs/commands.md +1 -1
- package/docs/database.md +15 -15
- package/docs/deploy.md +41 -36
- 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/profiles.md +45 -43
- package/docs/repositories.md +43 -43
- package/docs/rollback.md +31 -31
- package/docs/security.md +32 -32
- package/docs/support.md +8 -8
- package/docs/syntax.md +1 -1
- package/docs/testing.md +35 -28
- 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/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_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/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.d.ts +3 -0
- package/node_modules/@sema/gerador-cpp/dist/index.js +859 -0
- package/node_modules/@sema/gerador-cpp/dist/index.js.map +1 -0
- package/node_modules/@sema/gerador-cpp/package.json +7 -0
- 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.d.ts +3 -0
- package/node_modules/@sema/gerador-dotnet/dist/index.js +828 -0
- package/node_modules/@sema/gerador-dotnet/dist/index.js.map +1 -0
- package/node_modules/@sema/gerador-dotnet/package.json +7 -0
- package/node_modules/@sema/gerador-html/dist/index.js +17 -17
- package/node_modules/@sema/gerador-lua/dist/index.js +5 -5
- 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/node_modules/@sema/padroes/dist/index.d.ts +1 -1
- package/package.json +5 -1
package/docs/cli.md
CHANGED
|
@@ -1,72 +1,79 @@
|
|
|
1
|
-
# Sema CLI
|
|
2
|
-
|
|
3
|
-
Sema is a Codex-native local CLI distribution. The public package reads the
|
|
4
|
-
workspace on the user's machine, validates `.sema` contracts, checks drift,
|
|
5
|
-
maps impact, and generates code without login, user authorization, license
|
|
6
|
-
activation, tokens, credits, billing services, a control panel, or external
|
|
7
|
-
service credentials.
|
|
8
|
-
|
|
9
|
-
Support: suporte@otimitare.online
|
|
10
|
-
|
|
11
|
-
## Install
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install -g @semacode/cli
|
|
15
|
-
sema --version
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
For development inside this repository:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npm install
|
|
22
|
-
npm run build
|
|
23
|
-
node pacotes/cli/dist/index.js --help
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Codex Setup
|
|
27
|
-
|
|
28
|
-
`AGENTS.md` is the official Sema entrypoint for Codex. Create or refresh it from
|
|
29
|
-
the local CLI:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
sema sync-codex --json
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Codex automatically loads `AGENTS.md` as repository guidance. Sema is an
|
|
36
|
-
independent product and is not affiliated with or endorsed by OpenAI.
|
|
37
|
-
|
|
38
|
-
## Required Local Flow
|
|
39
|
-
|
|
40
|
-
Codex and humans should use the same local sequence before changing governed
|
|
41
|
-
code, contracts, workflows, release scripts, or operational docs:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
sema --version
|
|
45
|
-
sema resumo
|
|
46
|
-
sema docs-impacto --intencao "describe the change" --json
|
|
47
|
-
sema inspecionar contratos/example.sema --json
|
|
48
|
-
sema drift contratos/example.sema --escopo modulo --json
|
|
49
|
-
sema impacto contratos/example.sema --alvo sema.example.target --mudanca "describe the change" --json
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Commands run directly against the local workspace. If `sema --version` fails,
|
|
53
|
-
install or repair the npm package; there is no separate authorization gate.
|
|
54
|
-
|
|
55
|
-
## Core Commands
|
|
56
|
-
|
|
57
|
-
- `sema iniciar`: create a governed starting point.
|
|
58
|
-
- `sema validar`: validate `.sema` contracts.
|
|
59
|
-
- `sema inspecionar`: inspect the applicable contract surface.
|
|
60
|
-
- `sema drift`: compare contracts and implementation.
|
|
61
|
-
- `sema impacto`: map the blast radius of a planned change.
|
|
62
|
-
- `sema docs-impacto`: identify docs that must be read or updated.
|
|
63
|
-
- `sema finalizar-mudanca`: close the governed change with evidence.
|
|
64
|
-
- `sema compilar`: generate code from contracts.
|
|
65
|
-
- `sema
|
|
66
|
-
- `sema
|
|
67
|
-
- `sema
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
1
|
+
# Sema CLI
|
|
2
|
+
|
|
3
|
+
Sema is a Codex-native local CLI distribution. The public package reads the
|
|
4
|
+
workspace on the user's machine, validates `.sema` contracts, checks drift,
|
|
5
|
+
maps impact, and generates code without login, user authorization, license
|
|
6
|
+
activation, tokens, credits, billing services, a control panel, or external
|
|
7
|
+
service credentials.
|
|
8
|
+
|
|
9
|
+
Support: suporte@otimitare.online
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g @semacode/cli
|
|
15
|
+
sema --version
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
For development inside this repository:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install
|
|
22
|
+
npm run build
|
|
23
|
+
node pacotes/cli/dist/index.js --help
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Codex Setup
|
|
27
|
+
|
|
28
|
+
`AGENTS.md` is the official Sema entrypoint for Codex. Create or refresh it from
|
|
29
|
+
the local CLI:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
sema sync-codex --json
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Codex automatically loads `AGENTS.md` as repository guidance. Sema is an
|
|
36
|
+
independent product and is not affiliated with or endorsed by OpenAI.
|
|
37
|
+
|
|
38
|
+
## Required Local Flow
|
|
39
|
+
|
|
40
|
+
Codex and humans should use the same local sequence before changing governed
|
|
41
|
+
code, contracts, workflows, release scripts, or operational docs:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
sema --version
|
|
45
|
+
sema resumo
|
|
46
|
+
sema docs-impacto --intencao "describe the change" --json
|
|
47
|
+
sema inspecionar contratos/example.sema --json
|
|
48
|
+
sema drift contratos/example.sema --escopo modulo --json
|
|
49
|
+
sema impacto contratos/example.sema --alvo sema.example.target --mudanca "describe the change" --json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Commands run directly against the local workspace. If `sema --version` fails,
|
|
53
|
+
install or repair the npm package; there is no separate authorization gate.
|
|
54
|
+
|
|
55
|
+
## Core Commands
|
|
56
|
+
|
|
57
|
+
- `sema iniciar`: create a governed starting point.
|
|
58
|
+
- `sema validar`: validate `.sema` contracts.
|
|
59
|
+
- `sema inspecionar`: inspect the applicable contract surface.
|
|
60
|
+
- `sema drift`: compare contracts and implementation.
|
|
61
|
+
- `sema impacto`: map the blast radius of a planned change.
|
|
62
|
+
- `sema docs-impacto`: identify docs that must be read or updated.
|
|
63
|
+
- `sema finalizar-mudanca`: close the governed change with evidence.
|
|
64
|
+
- `sema compilar`: generate code from contracts.
|
|
65
|
+
- `sema testar`: generate, compile, and execute local contract tests, including `dotnet` and `cpp`.
|
|
66
|
+
- `sema verificar`: run the final local verification bundle.
|
|
67
|
+
- `sema contexto-ia`: build local AI context from a contract.
|
|
68
|
+
- `sema sync-codex`: create or refresh the official `AGENTS.md` entrypoint.
|
|
69
|
+
|
|
70
|
+
Generation targets are `typescript`, `python`, `php`, `dart`, `lua`,
|
|
71
|
+
`javascript`, `html`, `css`, `dotnet`, and `cpp`. The aliases `cs` and
|
|
72
|
+
`csharp` select `dotnet`; `c++`, `cxx`, and `cc` select `cpp`.
|
|
73
|
+
Native targets are opt-in in `sema.config.json.alvos` for project-wide
|
|
74
|
+
verification because they require local compiler toolchains.
|
|
75
|
+
|
|
76
|
+
## Public Boundary
|
|
77
|
+
|
|
78
|
+
Do not publish private or sensitive operational material in public Sema
|
|
79
|
+
artifacts.
|
package/docs/commands.md
CHANGED
|
@@ -35,7 +35,7 @@ Honest closure: treat drift JSON as the source of truth. `sucesso:false`, `vincu
|
|
|
35
35
|
|
|
36
36
|
## Sema Code
|
|
37
37
|
|
|
38
|
-
- `sema compilar <arquivo-ou-pasta> --alvo <typescript|python|php|dart|lua|javascript|html|css> --saida <diretorio>`: generates starter/support artifacts from the contract.
|
|
38
|
+
- `sema compilar <arquivo-ou-pasta> --alvo <typescript|python|php|dart|lua|javascript|html|css|dotnet|cpp> --saida <diretorio>`: generates starter/support artifacts from the contract.
|
|
39
39
|
- `sema testar <arquivo.sema> --alvo <alvo> --saida <diretorio-temporario>`: generates and runs local tests when the target supports it.
|
|
40
40
|
- `sema importar <fonte> <diretorio> --saida <diretorio> --json`: imports a legacy project into initial contracts.
|
|
41
41
|
- `sema renomear-semantico <arquivo-ou-pasta> --de <nome> --para <nome> --json`: helps rename symbols semantically.
|
package/docs/database.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Database Boundary
|
|
2
|
-
|
|
3
|
-
The public Sema CLI does not require a database.
|
|
4
|
-
|
|
5
|
-
Sema reads contracts and source files from the local workspace. Any database used
|
|
6
|
-
by an application governed by Sema belongs to that application, not to the public
|
|
7
|
-
Sema CLI distribution.
|
|
8
|
-
|
|
9
|
-
## Public Rule
|
|
10
|
-
|
|
11
|
-
Do not ship private database material, real credentials, operational schemas, or
|
|
12
|
-
project-specific data in the public Sema package.
|
|
13
|
-
|
|
14
|
-
Application-specific database docs should live in the application repository
|
|
15
|
-
that owns the database.
|
|
1
|
+
# Database Boundary
|
|
2
|
+
|
|
3
|
+
The public Sema CLI does not require a database.
|
|
4
|
+
|
|
5
|
+
Sema reads contracts and source files from the local workspace. Any database used
|
|
6
|
+
by an application governed by Sema belongs to that application, not to the public
|
|
7
|
+
Sema CLI distribution.
|
|
8
|
+
|
|
9
|
+
## Public Rule
|
|
10
|
+
|
|
11
|
+
Do not ship private database material, real credentials, operational schemas, or
|
|
12
|
+
project-specific data in the public Sema package.
|
|
13
|
+
|
|
14
|
+
Application-specific database docs should live in the application repository
|
|
15
|
+
that owns the database.
|
package/docs/deploy.md
CHANGED
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
# Deployment Boundary
|
|
2
|
-
|
|
3
|
-
The public Sema repository documents two coordinated release surfaces: the
|
|
4
|
-
local npm CLI and the Codex bootstrap skill. The skill remains a separate,
|
|
5
|
-
explicit Codex installation and is never injected by npm lifecycle scripts.
|
|
6
|
-
|
|
7
|
-
Run the complete public gate:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm run build
|
|
11
|
-
npm run
|
|
12
|
-
npm run
|
|
13
|
-
npm run
|
|
14
|
-
npm
|
|
15
|
-
npm
|
|
16
|
-
npm run release:
|
|
17
|
-
npm run release:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
the
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
`
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
# Deployment Boundary
|
|
2
|
+
|
|
3
|
+
The public Sema repository documents two coordinated release surfaces: the
|
|
4
|
+
local npm CLI and the Codex bootstrap skill. The skill remains a separate,
|
|
5
|
+
explicit Codex installation and is never injected by npm lifecycle scripts.
|
|
6
|
+
|
|
7
|
+
Run the complete public gate:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm run build
|
|
11
|
+
npm run codex:sync-entrypoint
|
|
12
|
+
npm run status:check
|
|
13
|
+
npm run repo:verificar-publico
|
|
14
|
+
npm run plugin:testar-codex
|
|
15
|
+
npm test
|
|
16
|
+
npm run release:verificar-drift
|
|
17
|
+
npm run release:preparar-publica
|
|
18
|
+
npm run release:publicar-npm-dry-run
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`release:preparar-publica` performs the Codex entrypoint sync before checking
|
|
22
|
+
the public boundary, so a clean clone does not depend on ignored generated
|
|
23
|
+
handshake files left by a previous local run.
|
|
24
|
+
|
|
25
|
+
The plugin smoke installs the repo marketplace into an isolated `CODEX_HOME`,
|
|
26
|
+
installs `sema@sema`, compares the cached skill with the versioned source, and
|
|
27
|
+
proves no Sema MCP server was registered. Plugin and CLI versions must match
|
|
28
|
+
before the commit is pushed. The release command itself runs the full test suite
|
|
29
|
+
and project-wide Sema drift gate; these are not optional manual preliminaries.
|
|
30
|
+
|
|
31
|
+
Push the commit containing `.agents/plugins/marketplace.json` and
|
|
32
|
+
`plugins/sema/` before telling users to install from `gerlanss/Sema`. Publish
|
|
33
|
+
the npm package only after the tarball smoke passes. After npm publication, run
|
|
34
|
+
`npm run release:verificar-distribuicao` to verify the registry and live GitHub
|
|
35
|
+
state. That final verifier also requires the remote GitHub HEAD to match the
|
|
36
|
+
local commit, installs `sema@sema` from `gerlanss/Sema` in an isolated
|
|
37
|
+
`CODEX_HOME`, compares the remote skill with the versioned source, and proves
|
|
38
|
+
that the remote plugin registers no Sema MCP. The current contract does not
|
|
39
|
+
permit creating a GitHub Release or release asset.
|
|
40
|
+
|
|
41
|
+
Do not publish private or sensitive operational material in this repository.
|
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.
|