@semacode/cli 2.3.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +265 -217
- package/dist/agentContextPack.js +14 -10
- package/dist/agentEntryPoints.d.ts +5 -0
- package/dist/agentEntryPoints.js +567 -557
- package/dist/angular-consumer-standalone.js +1 -1
- package/dist/bin.d.ts +6 -0
- package/dist/bin.js +130 -0
- package/dist/cliArgs.js +4 -4
- package/dist/cliControlError.d.ts +12 -0
- package/dist/cliControlError.js +47 -0
- package/dist/cliGrammar.d.ts +11 -0
- package/dist/cliGrammar.js +551 -0
- package/dist/cliHelp.d.ts +13 -0
- package/dist/cliHelp.js +19 -0
- package/dist/cliHelpTexto.d.ts +3 -0
- package/dist/cliHelpTexto.js +168 -0
- package/dist/cliRuntime.d.ts +2 -0
- package/dist/cliRuntime.js +31 -0
- package/dist/comandos.js +9 -22
- package/dist/contexto.js +5 -5
- package/dist/dev/index.d.ts +1 -0
- package/dist/dev/index.js +51 -9
- package/dist/discovery/catalog.js +3 -3
- package/dist/distribuicao/filesystemGlobal.d.ts +63 -0
- package/dist/distribuicao/filesystemGlobal.js +701 -0
- package/dist/distribuicao/index.d.ts +7 -0
- package/dist/distribuicao/index.js +227 -0
- package/dist/distribuicao/launcherGlobal.d.ts +53 -0
- package/dist/distribuicao/launcherGlobal.js +643 -0
- package/dist/distribuicao/launcherWindows.d.ts +28 -0
- package/dist/distribuicao/launcherWindows.js +326 -0
- package/dist/distribuicao/lockContextGlobal.d.ts +10 -0
- package/dist/distribuicao/lockContextGlobal.js +17 -0
- package/dist/distribuicao/lockGlobal.d.ts +6 -0
- package/dist/distribuicao/lockGlobal.js +520 -0
- package/dist/distribuicao/skillGlobal.d.ts +48 -0
- package/dist/distribuicao/skillGlobal.js +652 -0
- package/dist/distribuicao/skillIntentPolicy.d.ts +21 -0
- package/dist/distribuicao/skillIntentPolicy.js +115 -0
- package/dist/distribuicao/tipos.d.ts +50 -0
- package/dist/distribuicao/tipos.js +10 -0
- package/dist/distribuicao/versaoSemantica.d.ts +3 -0
- package/dist/distribuicao/versaoSemantica.js +62 -0
- package/dist/drift.part01.d.ts +26 -24
- package/dist/drift.part01.js +2 -1
- package/dist/drift.part04.d.ts +12 -3
- package/dist/drift.part04.js +88 -17
- package/dist/drift.part05.d.ts +2 -2
- package/dist/drift.part05.js +8 -6
- package/dist/drift.part06.d.ts +2 -2
- package/dist/drift.part06.js +113 -26
- package/dist/drift.part07.d.ts +11 -11
- package/dist/drift.part07.js +261 -265
- package/dist/drift.part08.d.ts +2 -2
- package/dist/drift.part08.js +35 -26
- package/dist/drift.part11.js +238 -56
- package/dist/drift.part12.d.ts +1 -1
- package/dist/drift.part12.js +193 -21
- package/dist/drift.part13.d.ts +20 -39
- package/dist/drift.part13.js +601 -647
- package/dist/drift.part14.js +21 -7
- package/dist/driftCacheCas.d.ts +43 -0
- package/dist/driftCacheCas.js +351 -0
- package/dist/driftCacheFilesystem.d.ts +64 -0
- package/dist/driftCacheFilesystem.js +313 -0
- package/dist/driftCacheModes.d.ts +38 -0
- package/dist/driftCacheModes.js +147 -0
- package/dist/driftCacheStore.d.ts +80 -0
- package/dist/driftCacheStore.js +603 -0
- package/dist/driftCatalogo.d.ts +2 -28
- package/dist/driftCatalogo.js +143 -284
- package/dist/driftEscopo.d.ts +1 -3
- package/dist/driftEscopo.js +235 -151
- package/dist/driftEscopoReferencias.d.ts +5 -1
- package/dist/driftEscopoReferencias.js +375 -28
- package/dist/driftOrcamento.d.ts +0 -6
- package/dist/driftOrcamento.js +2 -1
- package/dist/execucoesExternas.js +19 -5
- package/dist/geracaoCore.js +4 -6
- package/dist/iaPrompts.d.ts +3 -3
- package/dist/iaPrompts.js +312 -313
- package/dist/index.d.ts +4 -1
- package/dist/index.js +6 -25
- package/dist/index.part01.d.ts +20 -28
- package/dist/index.part01.js +16 -237
- package/dist/index.part02.js +36 -22
- package/dist/index.part03.d.ts +24 -2
- package/dist/index.part03.js +83 -19
- package/dist/index.part04.d.ts +10 -2
- package/dist/index.part04.js +142 -120
- package/dist/index.part05.js +80 -78
- package/dist/index.part06.js +34 -17
- package/dist/index.part07.js +7 -3
- package/dist/index.part08.d.ts +1 -1
- package/dist/index.part08.js +22 -27
- package/dist/initCommand.js +5 -1
- package/dist/initTemplatesBase.js +81 -79
- package/dist/pipelineConteudo/command.d.ts +1 -0
- package/dist/pipelineConteudo/command.js +9 -2
- package/dist/pipelineConteudo/help.d.ts +2 -0
- package/dist/pipelineConteudo/help.js +33 -0
- package/dist/profileAuthorCommand.js +3 -7
- package/dist/profileCommand.js +3 -7
- package/dist/projetoCarregar.js +35 -17
- package/dist/projetoCatalogo.d.ts +1 -0
- package/dist/projetoCatalogo.js +64 -25
- package/dist/projetoOrigens.d.ts +2 -0
- package/dist/projetoOrigens.js +65 -9
- package/dist/projetoTipos.d.ts +1 -0
- package/dist/resultadoCli.d.ts +20 -0
- package/dist/resultadoCli.js +57 -0
- package/dist/saidaCli.d.ts +35 -0
- package/dist/saidaCli.js +118 -0
- package/dist/sistemasInterativos/acceptanceEvidence.d.ts +22 -0
- package/dist/sistemasInterativos/acceptanceEvidence.js +345 -0
- package/dist/sistemasInterativos/engineObservation.d.ts +12 -0
- package/dist/sistemasInterativos/engineObservation.js +438 -0
- package/dist/sistemasInterativos/jobOrchestration.d.ts +2 -0
- package/dist/sistemasInterativos/jobOrchestration.js +204 -0
- package/dist/sistemasInterativos/operationPrimitives.d.ts +21 -0
- package/dist/sistemasInterativos/operationPrimitives.js +194 -0
- package/dist/sistemasInterativos/operations.d.ts +4 -39
- package/dist/sistemasInterativos/operations.js +5 -1164
- package/dist/skillCommand.d.ts +5 -0
- package/dist/skillCommand.js +88 -0
- package/docs/README.md +34 -30
- package/docs/ai-integration.md +25 -12
- package/docs/ai-onboarding.md +37 -18
- package/docs/ai-workflow.md +9 -7
- package/docs/cli.md +125 -7
- package/docs/commands.md +41 -20
- package/docs/deploy.md +21 -8
- package/docs/descoberta-capacidades.md +106 -106
- package/docs/documentation.md +49 -39
- package/docs/drift-cache.md +108 -0
- package/docs/getting-started.md +43 -18
- package/docs/pipeline-conteudo.md +246 -246
- package/docs/profiles.md +54 -54
- package/docs/repositories.md +19 -2
- package/docs/rollback.md +15 -8
- package/docs/security.md +25 -3
- package/docs/sistemas-interativos.md +379 -374
- package/docs/testing.md +139 -40
- 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_simulation.sema +211 -211
- package/exemplos/sistemas-interativos/README.md +100 -100
- package/exemplos/sistemas-interativos/advanced/acceptance-context-evaluate-valid.json +5 -5
- package/exemplos/sistemas-interativos/advanced/acceptance-lock-valid.json +16 -16
- package/exemplos/sistemas-interativos/advanced/asset-provenance-valid.json +32 -32
- package/exemplos/sistemas-interativos/advanced/autonomy-repair-valid.json +93 -93
- package/exemplos/sistemas-interativos/advanced/control-run-definition-valid.json +78 -78
- package/exemplos/sistemas-interativos/advanced/control-run-valid.json +27 -27
- package/exemplos/sistemas-interativos/advanced/distributed-workers-valid.json +79 -79
- package/exemplos/sistemas-interativos/advanced/editor-state-valid.json +42 -42
- package/exemplos/sistemas-interativos/advanced/engine-snapshot-after-valid.json +32 -32
- package/exemplos/sistemas-interativos/advanced/engine-snapshot-before-valid.json +23 -23
- package/exemplos/sistemas-interativos/advanced/job-orchestration-valid.json +39 -39
- package/exemplos/sistemas-interativos/advanced/multimodal-evidence-valid.json +46 -46
- package/exemplos/sistemas-interativos/advanced/multiplayer-authority-valid.json +39 -39
- package/exemplos/sistemas-interativos/advanced/playtest-fuzz-valid.json +37 -37
- package/exemplos/sistemas-interativos/advanced/portability-valid.json +104 -104
- package/exemplos/sistemas-interativos/advanced/temporal-evidence-valid.json +27 -27
- package/exemplos/sistemas-interativos/advanced/temporal-valid.json +118 -118
- package/exemplos/sistemas-interativos/experience-ir-valid.json +459 -459
- package/exemplos/sistemas-interativos/game-2d.json +83 -83
- package/exemplos/sistemas-interativos/game-3d-human.json +81 -81
- package/exemplos/sistemas-interativos/game-pixel-16-bit.json +97 -97
- package/exemplos/sistemas-interativos/game-pixel-8-bit.json +94 -94
- package/exemplos/sistemas-interativos/game-xr-human.json +80 -80
- package/exemplos/sistemas-interativos/hybrid-2-5d.json +108 -108
- package/exemplos/sistemas-interativos/protocol-mutating-rollback-valid.json +75 -75
- package/exemplos/sistemas-interativos/protocol-read-only-valid.json +58 -58
- package/exemplos/sistemas-interativos/simulation-2d-controlled.json +97 -97
- package/exemplos/sistemas-interativos/simulation-3d-calibrated-autonomous.json +141 -141
- package/exemplos/sistemas-interativos/simulation-headless-autonomous-batch.json +112 -112
- package/exemplos/sistemas-interativos/simulation-pixel-16-bit.json +103 -103
- package/exemplos/sistemas-interativos/simulation-text-controlled.json +95 -95
- package/node_modules/@sema/gerador-cpp/package.json +1 -1
- package/node_modules/@sema/gerador-dotnet/package.json +1 -1
- package/node_modules/@sema/gerador-lua/dist/index.js +51 -51
- package/node_modules/@sema/gerador-php/dist/index.js +113 -113
- package/node_modules/@sema/nucleo/dist/semantico/analisador.d.ts +1 -0
- package/node_modules/@sema/nucleo/dist/semantico/analisador.js +1 -0
- package/package.json +9 -4
- package/scripts/postinstall.mjs +148 -0
- package/skills/sema/SKILL.md +199 -0
- package/skills/sema/agents/openai.yaml +4 -0
- package/dist/driftCache.d.ts +0 -49
- package/dist/driftCache.js +0 -311
- package/dist/driftCacheIncremental.d.ts +0 -98
- package/dist/driftCacheIncremental.js +0 -596
- package/dist/driftCatalogoPersistente.d.ts +0 -8
- package/dist/driftCatalogoPersistente.js +0 -77
- package/node_modules/@sema/gerador-cpp/dist/index.js.map +0 -1
- package/node_modules/@sema/gerador-css/dist/index.js.map +0 -1
- package/node_modules/@sema/gerador-css/dist/index.part01.js.map +0 -1
- package/node_modules/@sema/gerador-css/dist/index.part02.js.map +0 -1
- package/node_modules/@sema/gerador-dart/dist/index.js.map +0 -1
- package/node_modules/@sema/gerador-dotnet/dist/index.js.map +0 -1
- package/node_modules/@sema/gerador-html/dist/index.js.map +0 -1
- package/node_modules/@sema/gerador-javascript/dist/index.js.map +0 -1
- package/node_modules/@sema/gerador-lua/dist/index.js.map +0 -1
- package/node_modules/@sema/gerador-php/dist/index.js.map +0 -1
- package/node_modules/@sema/gerador-python/dist/index.js.map +0 -1
- package/node_modules/@sema/gerador-python/dist/index.part01.js.map +0 -1
- package/node_modules/@sema/gerador-python/dist/index.part02.js.map +0 -1
- package/node_modules/@sema/gerador-typescript/dist/index.js.map +0 -1
- package/node_modules/@sema/gerador-typescript/dist/index.part01.js.map +0 -1
- package/node_modules/@sema/gerador-typescript/dist/index.part02.js.map +0 -1
- package/node_modules/@sema/gerador-typescript/dist/index.part03.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/ast/tipos.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/diagnosticos/index.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/diagnosticos/melhorador.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/diagnosticos/snippets.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/formatador/index.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/formatador/index.part01.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/formatador/index.part02.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/index.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/ir/conversor.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/ir/conversor.part01.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/ir/conversor.part02.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/ir/conversor.part03.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/ir/modelos.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/lexer/lexer.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/lexer/tokens.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/parser/parser.declaracoes.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/parser/parser.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/parser/parser.modulo.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/parser/parser.part01.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/parser/parser.part02.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/parser/parser.part03.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/persistencia/contratos.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/analisador.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/analisador.part01.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/analisador.part02.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/analisador.part03.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/analisador.part04.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/analisador.part05.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/analisador.part06.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/analisador.part07.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/analisador.part08.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/estruturas.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/estruturas.part01.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/estruturas.part02.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/orcamentoSemantico.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/semantico/seguranca.js.map +0 -1
- package/node_modules/@sema/nucleo/dist/util/arquivos.js.map +0 -1
- package/node_modules/@sema/padroes/dist/index.js.map +0 -1
package/docs/profiles.md
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
# Profiles
|
|
2
|
-
|
|
3
|
-
Profiles are local validation layers for domains where syntax alone is not
|
|
4
|
-
enough. They use the same `.sema` DSL and do not create a second language.
|
|
5
|
-
|
|
6
|
-
## Principle
|
|
7
|
-
|
|
8
|
-
A profile checks whether a contract is strong enough for a specific kind of
|
|
9
|
-
work. It can require:
|
|
10
|
-
|
|
11
|
-
- contract-first workflow;
|
|
12
|
-
- domain core fields;
|
|
13
|
-
- required rules, effects, guarantees, and tests;
|
|
14
|
-
- explicit forbidden behavior;
|
|
15
|
-
- evidence before closing the change.
|
|
16
|
-
|
|
17
|
-
When a profile returns `bloqueado: true`, the artifact is not approved.
|
|
18
|
-
|
|
19
|
-
## Commands
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
sema profile capabilities --json
|
|
23
|
-
sema profile validar software contratos/example.sema --maturidade production --preset default --json
|
|
24
|
-
sema profile validar simulation contratos/example.sema --maturidade production --preset calibration --json
|
|
25
|
-
sema rule-packs --profile software --json
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Built-In Profiles
|
|
29
|
-
|
|
30
|
-
- `software`: code, APIs, modules, refactors, persistence, and generated output.
|
|
31
|
-
- `workflow`: automations, queues, webhooks, scheduled jobs, and orchestration.
|
|
32
|
-
- `ops`: deploy plans, rollback, incidents, runbooks, and operational evidence.
|
|
33
|
-
- `legal`: terms, privacy, compliance, risk, and regulated language.
|
|
34
|
-
- `research`: comparisons, uncertainty, evidence, citations, and decisions.
|
|
35
|
-
- `game`: rules, loops, player states, scoring, and playability checks.
|
|
36
|
-
- `simulation`: models, assumptions, units, scenarios, calibration, uncertainty,
|
|
37
|
-
deterministic replay, and tolerance evidence.
|
|
38
|
-
- `redacao`: editorial and creative writing, narrative structure, voice,
|
|
39
|
-
clarity, and publication-ready evidence.
|
|
40
|
-
- `propostas`: commercial proposals, scope clarity, deliverables, constraints,
|
|
41
|
-
and client-ready wording.
|
|
42
|
-
- `conversas`: customer conversation guardrails, escalation, pricing promises,
|
|
43
|
-
and channel changes.
|
|
44
|
-
|
|
45
|
-
Profiles are local CLI checks. They do not create or require external service
|
|
46
|
-
accounts.
|
|
47
|
-
|
|
48
|
-
`author` remains a dedicated workflow under `sema author`; it is not exposed as
|
|
49
|
-
a fake `sema profile validar author` gate. Use `sema descobrir explicar workflow.author`
|
|
50
|
-
to inspect that boundary.
|
|
51
|
-
|
|
52
|
-
The legacy `sema profile capabilities` view lists only profiles accepted by
|
|
53
|
-
`profile validar`; its separate `workflowsEspecializados` field points Author
|
|
54
|
-
to `sema author` without advertising an invalid validation command.
|
|
1
|
+
# Profiles
|
|
2
|
+
|
|
3
|
+
Profiles are local validation layers for domains where syntax alone is not
|
|
4
|
+
enough. They use the same `.sema` DSL and do not create a second language.
|
|
5
|
+
|
|
6
|
+
## Principle
|
|
7
|
+
|
|
8
|
+
A profile checks whether a contract is strong enough for a specific kind of
|
|
9
|
+
work. It can require:
|
|
10
|
+
|
|
11
|
+
- contract-first workflow;
|
|
12
|
+
- domain core fields;
|
|
13
|
+
- required rules, effects, guarantees, and tests;
|
|
14
|
+
- explicit forbidden behavior;
|
|
15
|
+
- evidence before closing the change.
|
|
16
|
+
|
|
17
|
+
When a profile returns `bloqueado: true`, the artifact is not approved.
|
|
18
|
+
|
|
19
|
+
## Commands
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
sema profile capabilities --json
|
|
23
|
+
sema profile validar software contratos/example.sema --maturidade production --preset default --json
|
|
24
|
+
sema profile validar simulation contratos/example.sema --maturidade production --preset calibration --json
|
|
25
|
+
sema rule-packs --profile software --json
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Built-In Profiles
|
|
29
|
+
|
|
30
|
+
- `software`: code, APIs, modules, refactors, persistence, and generated output.
|
|
31
|
+
- `workflow`: automations, queues, webhooks, scheduled jobs, and orchestration.
|
|
32
|
+
- `ops`: deploy plans, rollback, incidents, runbooks, and operational evidence.
|
|
33
|
+
- `legal`: terms, privacy, compliance, risk, and regulated language.
|
|
34
|
+
- `research`: comparisons, uncertainty, evidence, citations, and decisions.
|
|
35
|
+
- `game`: rules, loops, player states, scoring, and playability checks.
|
|
36
|
+
- `simulation`: models, assumptions, units, scenarios, calibration, uncertainty,
|
|
37
|
+
deterministic replay, and tolerance evidence.
|
|
38
|
+
- `redacao`: editorial and creative writing, narrative structure, voice,
|
|
39
|
+
clarity, and publication-ready evidence.
|
|
40
|
+
- `propostas`: commercial proposals, scope clarity, deliverables, constraints,
|
|
41
|
+
and client-ready wording.
|
|
42
|
+
- `conversas`: customer conversation guardrails, escalation, pricing promises,
|
|
43
|
+
and channel changes.
|
|
44
|
+
|
|
45
|
+
Profiles are local CLI checks. They do not create or require external service
|
|
46
|
+
accounts.
|
|
47
|
+
|
|
48
|
+
`author` remains a dedicated workflow under `sema author`; it is not exposed as
|
|
49
|
+
a fake `sema profile validar author` gate. Use `sema descobrir explicar workflow.author`
|
|
50
|
+
to inspect that boundary.
|
|
51
|
+
|
|
52
|
+
The legacy `sema profile capabilities` view lists only profiles accepted by
|
|
53
|
+
`profile validar`; its separate `workflowsEspecializados` field points Author
|
|
54
|
+
to `sema author` without advertising an invalid validation command.
|
package/docs/repositories.md
CHANGED
|
@@ -15,7 +15,8 @@ and English documentation.
|
|
|
15
15
|
- local package scripts
|
|
16
16
|
- `AGENTS.md` as the official Codex entrypoint
|
|
17
17
|
- the official Sema skill as a thin bootstrap before `AGENTS.md` exists
|
|
18
|
-
- the
|
|
18
|
+
- the managed absolute launcher and portable global skill bundled in npm
|
|
19
|
+
- the optional repo marketplace that exposes the same skill namespaced
|
|
19
20
|
|
|
20
21
|
## Not Public
|
|
21
22
|
|
|
@@ -23,10 +24,26 @@ and English documentation.
|
|
|
23
24
|
- real credentials, environment files, or secret inventories
|
|
24
25
|
- private project data or generated private artifacts
|
|
25
26
|
- runtime authorization, activation, billing, credit, token, or panel gates
|
|
26
|
-
- product-specific entrypoint files for AI clients other than Codex
|
|
27
|
+
- product-specific repository entrypoint files for AI clients other than Codex
|
|
27
28
|
- MCP servers, remote workspace bridges, or duplicated governance inside the
|
|
28
29
|
bootstrap skill
|
|
29
30
|
|
|
31
|
+
The portable skill may be synchronized to the canonical user-level
|
|
32
|
+
`.agents/skills` directory and a detected Claude mirror. That does not change
|
|
33
|
+
the workspace boundary: Sema still generates only `AGENTS.md` as the official
|
|
34
|
+
repository protocol and never writes into plugin caches.
|
|
35
|
+
|
|
36
|
+
The repository has one npm package factory: `npm run cli:empacotar-publica`.
|
|
37
|
+
It assembles a private stage per execution and never materializes examples,
|
|
38
|
+
runtime dependencies, or skills inside `pacotes/cli`. Direct workspace packing
|
|
39
|
+
is intentionally blocked so a second, mutable packaging path cannot drift from
|
|
40
|
+
the public artifact.
|
|
41
|
+
|
|
42
|
+
The Windows distribution uses `sema.ps1` for PowerShell `PATH` resolution,
|
|
43
|
+
`sema.cmd` for `cmd.exe`, and `sema-managed.ps1` for the PATH-independent
|
|
44
|
+
fallback invoked through the absolute system `powershell.exe`; all remain
|
|
45
|
+
inside the managed `~/.sema/bin` boundary.
|
|
46
|
+
|
|
30
47
|
The CLI must run directly against the local workspace without login, user
|
|
31
48
|
authorization, a product-license check, activation key, credits, token, billing
|
|
32
49
|
service, or control panel.
|
package/docs/rollback.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Rollback Boundary
|
|
2
2
|
|
|
3
|
-
Public rollback covers
|
|
4
|
-
|
|
3
|
+
Public rollback covers the npm CLI, managed launcher, bundled global skill, and
|
|
4
|
+
the optional Codex plugin channel.
|
|
5
5
|
|
|
6
6
|
For a failed pre-publication candidate:
|
|
7
7
|
|
|
@@ -11,16 +11,23 @@ For a failed pre-publication candidate:
|
|
|
11
11
|
3. Re-run `npm run release:preparar-publica`.
|
|
12
12
|
|
|
13
13
|
If a bad commit was already pushed, revert it with a normal Git revert and push
|
|
14
|
-
the corrective commit.
|
|
14
|
+
the corrective commit. Install the corrected npm version and resynchronize its
|
|
15
|
+
managed distribution:
|
|
15
16
|
|
|
16
17
|
```bash
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
codex plugin add sema@sema
|
|
18
|
+
npm install -g @semacode/cli@<corrected-version>
|
|
19
|
+
sema skill sync --json
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
The same sequence may install an explicitly selected previous version. The
|
|
23
|
+
installed npm version is authoritative: `sema skill sync --json` aligns the
|
|
24
|
+
runtime, managed launcher, and bundled skill to the version that is actually
|
|
25
|
+
installed. This is synchronization, not a promise to block an intentional
|
|
26
|
+
downgrade.
|
|
27
|
+
|
|
28
|
+
If the optional plugin channel was also affected, upgrade or reinstall it after
|
|
29
|
+
the corrected commit is public. Open a new task before validating the repaired
|
|
30
|
+
skill; already-open tasks keep the catalog they started with.
|
|
24
31
|
|
|
25
32
|
If a bad npm version was published, do not overwrite it. Publish a corrected
|
|
26
33
|
version and direct users to that version. Verify the final registry/GitHub state
|
package/docs/security.md
CHANGED
|
@@ -7,9 +7,31 @@ Local Sema execution does not need a credential, login, activation key, license
|
|
|
7
7
|
token, billing token, or control-panel session. Do not introduce one as a
|
|
8
8
|
condition for reading or governing a local workspace.
|
|
9
9
|
|
|
10
|
-
The official
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
The official bootstrap skill contains instructions only. The global npm
|
|
11
|
+
postinstall may atomically update the managed launcher under `~/.sema/bin`, the
|
|
12
|
+
canonical copy under `~/.agents/skills/sema`, and a Claude mirror under
|
|
13
|
+
`~/.claude/skills/sema` when Claude is already detected. It must not scan the
|
|
14
|
+
home recursively, overwrite an unowned destination, follow symlinks or
|
|
15
|
+
junctions, write into a plugin cache, bundle an MCP server, add a credential
|
|
16
|
+
flow, or duplicate the repository governance that belongs in `AGENTS.md`.
|
|
17
|
+
|
|
18
|
+
Status output exposes symbolic paths such as `$HOME/.sema/bin/sema`,
|
|
19
|
+
`$HOME/.sema/bin/sema.ps1`, `$HOME/.sema/bin/sema.cmd`, and
|
|
20
|
+
`$HOME/.sema/bin/sema-managed.ps1`, never the real home, Node.js executable, or
|
|
21
|
+
package path. On Windows, PowerShell resolves `sema.ps1` from `PATH`, `cmd.exe`
|
|
22
|
+
resolves `sema.cmd`, and the fallback runs `sema-managed.ps1` through
|
|
23
|
+
`%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe`. A managed receipt
|
|
24
|
+
detects isolated corruption of the launchers and companion; it is integrity
|
|
25
|
+
recovery, not authentication against a hostile process running as the same
|
|
26
|
+
user. Private absolute paths are not published in JSON or logs.
|
|
27
|
+
|
|
28
|
+
The public-package factory rejects pre-existing symlinks, junctions, and
|
|
29
|
+
reparse points in source, stage, and output chains and revalidates filesystem
|
|
30
|
+
identity around each path-based operation. This is fail-closed hardening, not a
|
|
31
|
+
native sandbox: Node.js does not expose cross-platform `openat`/`linkat`-style
|
|
32
|
+
operations anchored to directory handles, so a hostile process running as the
|
|
33
|
+
same operating-system user can still race a parent-path swap. Do not present
|
|
34
|
+
the private package stage as a security boundary against that attacker.
|
|
13
35
|
|
|
14
36
|
Do not publish:
|
|
15
37
|
|