@semacode/cli 2.0.1 → 2.2.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.
Files changed (134) hide show
  1. package/LICENSE +39 -39
  2. package/README.md +141 -121
  3. package/dist/agentEntryPoints.js +499 -499
  4. package/dist/comandos.js +2 -0
  5. package/dist/doctorCommand.js +28 -0
  6. package/dist/execucoesExternas.js +19 -5
  7. package/dist/geracaoCore.js +97 -1
  8. package/dist/iaPrompts.d.ts +1 -1
  9. package/dist/iaPrompts.js +307 -307
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.js +1 -0
  12. package/dist/index.part01.d.ts +1 -1
  13. package/dist/index.part01.js +14 -4
  14. package/dist/index.part02.js +21 -21
  15. package/dist/index.part04.js +96 -96
  16. package/dist/index.part06.js +1 -1
  17. package/dist/index.part07.js +35 -24
  18. package/dist/init/templates.part01.js +393 -393
  19. package/dist/init/templates.part02.js +189 -189
  20. package/dist/initTemplatesBackend.js +73 -73
  21. package/dist/initTemplatesBase.js +81 -81
  22. package/dist/initTemplatesFlutter.js +137 -137
  23. package/dist/initTemplatesRuntime.js +350 -350
  24. package/dist/initTemplatesWeb.js +309 -309
  25. package/dist/nativeToolchains.d.ts +15 -0
  26. package/dist/nativeToolchains.js +132 -0
  27. package/dist/pipelineConteudo/adapters.d.ts +84 -0
  28. package/dist/pipelineConteudo/adapters.js +449 -0
  29. package/dist/pipelineConteudo/canonical.d.ts +18 -0
  30. package/dist/pipelineConteudo/canonical.js +107 -0
  31. package/dist/pipelineConteudo/command.d.ts +3 -0
  32. package/dist/pipelineConteudo/command.js +572 -0
  33. package/dist/pipelineConteudo/index.d.ts +9 -0
  34. package/dist/pipelineConteudo/index.js +12 -0
  35. package/dist/pipelineConteudo/ledger.d.ts +68 -0
  36. package/dist/pipelineConteudo/ledger.js +732 -0
  37. package/dist/pipelineConteudo/planner.d.ts +12 -0
  38. package/dist/pipelineConteudo/planner.js +366 -0
  39. package/dist/pipelineConteudo/projection.d.ts +16 -0
  40. package/dist/pipelineConteudo/projection.js +57 -0
  41. package/dist/pipelineConteudo/state.d.ts +23 -0
  42. package/dist/pipelineConteudo/state.js +615 -0
  43. package/dist/pipelineConteudo/trust.d.ts +17 -0
  44. package/dist/pipelineConteudo/trust.js +750 -0
  45. package/dist/pipelineConteudo/types.d.ts +331 -0
  46. package/dist/pipelineConteudo/types.js +4 -0
  47. package/dist/projetoConfig.js +7 -1
  48. package/dist/projetoResolucao.js +21 -6
  49. package/dist/sync/index.js +35 -35
  50. package/docs/README.md +28 -25
  51. package/docs/ai-onboarding.md +62 -62
  52. package/docs/ai-workflow.md +1 -1
  53. package/docs/auth.md +26 -26
  54. package/docs/cli.md +79 -72
  55. package/docs/commands.md +1 -1
  56. package/docs/database.md +15 -15
  57. package/docs/deploy.md +41 -36
  58. package/docs/documentation.md +39 -39
  59. package/docs/env.md +16 -16
  60. package/docs/frontend.md +41 -41
  61. package/docs/getting-started.md +57 -57
  62. package/docs/i18n.md +15 -15
  63. package/docs/pipeline-conteudo.md +246 -0
  64. package/docs/profiles.md +45 -43
  65. package/docs/repositories.md +43 -43
  66. package/docs/rollback.md +31 -31
  67. package/docs/security.md +32 -32
  68. package/docs/support.md +8 -8
  69. package/docs/syntax.md +1 -1
  70. package/docs/testing.md +35 -28
  71. package/docs/vocabulary.md +29 -29
  72. package/exemplos/agendamento.sema +1 -1
  73. package/exemplos/assinatura.sema +1 -1
  74. package/exemplos/auditoria.sema +1 -1
  75. package/exemplos/autenticacao.sema +1 -1
  76. package/exemplos/author_obra_comum.sema +1 -1
  77. package/exemplos/author_tema_sensivel.sema +1 -1
  78. package/exemplos/automacao.sema +1 -1
  79. package/exemplos/cadastro_usuario.sema +1 -1
  80. package/exemplos/calculadora.sema +1 -1
  81. package/exemplos/crud_simples.sema +1 -1
  82. package/exemplos/estoque.sema +1 -1
  83. package/exemplos/exportacao.sema +1 -1
  84. package/exemplos/fila.sema +1 -1
  85. package/exemplos/integracao_externa.sema +1 -1
  86. package/exemplos/multi_tenant.sema +1 -1
  87. package/exemplos/notificacao.sema +1 -1
  88. package/exemplos/operacao_estrategia.sema +132 -132
  89. package/exemplos/operacao_estrategia_discovery.sema +220 -220
  90. package/exemplos/operacao_estrategia_fluxo.sema +114 -114
  91. package/exemplos/operacao_estrategia_gates.sema +106 -106
  92. package/exemplos/operacao_estrategia_quarentena.sema +133 -133
  93. package/exemplos/operacao_estrategia_rollout.sema +124 -124
  94. package/exemplos/pagamento.sema +1 -1
  95. package/exemplos/pagamento_dominio.sema +1 -1
  96. package/exemplos/pedido.sema +1 -1
  97. package/exemplos/permissao.sema +1 -1
  98. package/exemplos/persistencia_vendor_first.sema +1 -1
  99. package/exemplos/pipeline-conteudo/README.md +44 -0
  100. package/exemplos/pipeline-conteudo/alvos.json +23 -0
  101. package/exemplos/pipeline-conteudo/definicao.json +136 -0
  102. package/exemplos/profile_conversas.sema +165 -165
  103. package/exemplos/profile_game.sema +1 -1
  104. package/exemplos/profile_legal.sema +1 -1
  105. package/exemplos/profile_ops.sema +1 -1
  106. package/exemplos/profile_research.sema +1 -1
  107. package/exemplos/profile_software.sema +1 -1
  108. package/exemplos/profile_workflow_n8n.sema +1 -1
  109. package/exemplos/relatorio.sema +1 -1
  110. package/exemplos/replica_analitica_erp.sema +1 -1
  111. package/exemplos/testes_embutidos.sema +1 -1
  112. package/exemplos/tratamento_erro.sema +1 -1
  113. package/exemplos/upload_arquivo.sema +1 -1
  114. package/exemplos/webhook.sema +1 -1
  115. package/node_modules/@sema/gerador-cpp/dist/index.d.ts +3 -0
  116. package/node_modules/@sema/gerador-cpp/dist/index.js +859 -0
  117. package/node_modules/@sema/gerador-cpp/dist/index.js.map +1 -0
  118. package/node_modules/@sema/gerador-cpp/package.json +7 -0
  119. package/node_modules/@sema/gerador-css/dist/index.part01.js +10 -10
  120. package/node_modules/@sema/gerador-css/dist/index.part02.js +460 -460
  121. package/node_modules/@sema/gerador-dotnet/dist/index.d.ts +3 -0
  122. package/node_modules/@sema/gerador-dotnet/dist/index.js +828 -0
  123. package/node_modules/@sema/gerador-dotnet/dist/index.js.map +1 -0
  124. package/node_modules/@sema/gerador-dotnet/package.json +7 -0
  125. package/node_modules/@sema/gerador-html/dist/index.js +17 -17
  126. package/node_modules/@sema/gerador-lua/dist/index.js +53 -8
  127. package/node_modules/@sema/gerador-lua/dist/index.js.map +1 -1
  128. package/node_modules/@sema/gerador-php/dist/index.js +121 -113
  129. package/node_modules/@sema/gerador-php/dist/index.js.map +1 -1
  130. package/node_modules/@sema/gerador-python/dist/index.part02.js +3 -3
  131. package/node_modules/@sema/gerador-typescript/dist/index.part02.js +11 -11
  132. package/node_modules/@sema/nucleo/dist/diagnosticos/melhorador.js +42 -42
  133. package/node_modules/@sema/padroes/dist/index.d.ts +1 -1
  134. package/package.json +12 -1
package/docs/auth.md CHANGED
@@ -1,26 +1,26 @@
1
- # Local Runtime Boundary
2
-
3
- The public Sema CLI executes directly against the local workspace. It does not
4
- require a Sema login, user authentication, product authorization, license
5
- activation, install key, token, credits, billing service, control panel, or an
6
- external request.
7
-
8
- Use local commands:
9
-
10
- ```bash
11
- sema --version
12
- sema resumo
13
- sema validar contratos/example.sema --json
14
- ```
15
-
16
- The repository license governs use and redistribution. It is not checked as a
17
- runtime activation mechanism.
18
-
19
- An `authz` block inside a `.sema` contract describes authorization in the
20
- application being governed. It does not authenticate a person before the Sema
21
- CLI can run.
22
-
23
- Do not put private or sensitive operational material in this repository.
24
-
25
- Application-specific authentication belongs in the application repository that
26
- owns it.
1
+ # Local Runtime Boundary
2
+
3
+ The public Sema CLI executes directly against the local workspace. It does not
4
+ require a Sema login, user authentication, product authorization, license
5
+ activation, install key, token, credits, billing service, control panel, or an
6
+ external request.
7
+
8
+ Use local commands:
9
+
10
+ ```bash
11
+ sema --version
12
+ sema resumo
13
+ sema validar contratos/example.sema --json
14
+ ```
15
+
16
+ The repository license governs use and redistribution. It is not checked as a
17
+ runtime activation mechanism.
18
+
19
+ An `authz` block inside a `.sema` contract describes authorization in the
20
+ application being governed. It does not authenticate a person before the Sema
21
+ CLI can run.
22
+
23
+ Do not put private or sensitive operational material in this repository.
24
+
25
+ Application-specific authentication belongs in the application repository that
26
+ owns it.
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 verificar`: run the final local verification bundle.
66
- - `sema contexto-ia`: build local AI context from a contract.
67
- - `sema sync-codex`: create or refresh the official `AGENTS.md` entrypoint.
68
-
69
- ## Public Boundary
70
-
71
- Do not publish private or sensitive operational material in public Sema
72
- artifacts.
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 status:check
12
- npm run repo:verificar-publico
13
- npm run plugin:testar-codex
14
- npm test
15
- npm run release:verificar-drift
16
- npm run release:preparar-publica
17
- npm run release:publicar-npm-dry-run
18
- ```
19
-
20
- The plugin smoke installs the repo marketplace into an isolated `CODEX_HOME`,
21
- installs `sema@sema`, compares the cached skill with the versioned source, and
22
- proves no Sema MCP server was registered. Plugin and CLI versions must match
23
- before the commit is pushed. The release command itself runs the full test suite
24
- and project-wide Sema drift gate; these are not optional manual preliminaries.
25
-
26
- Push the commit containing `.agents/plugins/marketplace.json` and
27
- `plugins/sema/` before telling users to install from `gerlanss/Sema`. Publish
28
- the npm package only after the tarball smoke passes. After npm publication, run
29
- `npm run release:verificar-distribuicao` to verify the registry and live GitHub
30
- state. That final verifier also requires the remote GitHub HEAD to match the
31
- local commit, installs `sema@sema` from `gerlanss/Sema` in an isolated
32
- `CODEX_HOME`, compares the remote skill with the versioned source, and proves
33
- that the remote plugin registers no Sema MCP. The current contract does not
34
- permit creating a GitHub Release or release asset.
35
-
36
- Do not publish private or sensitive operational material in this repository.
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.
@@ -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.
@@ -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