@jaimevalasek/aioson 1.17.3 → 1.18.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 (57) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +85 -51
  3. package/docs/en/3-recipes/full-feature-with-sheldon.md +1 -1
  4. package/docs/en/5-reference/cli-reference.md +4 -4
  5. package/docs/en/5-reference/qa-browser.md +2 -2
  6. package/docs/en/README.md +1 -1
  7. package/docs/en/deyvin-subtask-scout/how-to-use.md +2 -2
  8. package/docs/en/deyvin-subtask-scout/sub-task-scout.md +3 -3
  9. package/docs/en/deyvin-subtask-scout/troubleshooting.md +1 -1
  10. package/docs/pt/3-receitas/publicar-no-aioson-com.md +17 -0
  11. package/docs/pt/5-referencia/comandos-cli.md +2 -2
  12. package/docs/pt/5-referencia/inteligencia-adaptativa.md +3 -3
  13. package/docs/pt/5-referencia/skills.md +1 -1
  14. package/docs/pt/5-referencia/web3.md +3 -3
  15. package/docs/pt/README.md +1 -1
  16. package/docs/pt/_arquivo/README.md +1 -1
  17. package/docs/pt/_arquivo/cenarios.md +31 -31
  18. package/docs/pt/_arquivo/design-hybrid-forge.md +5 -5
  19. package/docs/pt/_arquivo/guia-engineer.md +1 -1
  20. package/docs/pt/_arquivo/profiler-system.md +1 -1
  21. package/docs/pt/_arquivo/site-forge.md +16 -16
  22. package/docs/pt/_arquivo/squad-genome.md +2 -2
  23. package/docs/pt/agentes.md +37 -37
  24. package/docs/pt/deyvin-subtask-scout/como-usar.md +2 -2
  25. package/docs/pt/deyvin-subtask-scout/sub-task-scout.md +1 -1
  26. package/docs/pt/deyvin-subtask-scout/troubleshooting.md +1 -1
  27. package/docs/pt/living-memory/README.md +1 -1
  28. package/docs/pt/living-memory/memoria-viva.md +2 -2
  29. package/docs/pt/living-memory/reflexao-in-harness.md +1 -1
  30. package/docs/pt/living-memory/troubleshooting.md +6 -6
  31. package/package.json +1 -1
  32. package/src/commands/gate-approve.js +56 -1
  33. package/src/commands/live.js +81 -54
  34. package/src/commands/op-capture.js +27 -2
  35. package/src/commands/op-list.js +33 -1
  36. package/src/commands/store-system.js +4 -0
  37. package/src/commands/tool-capabilities.js +14 -10
  38. package/src/commands/workflow-heal.js +47 -1
  39. package/src/i18n/messages/en.js +6 -5
  40. package/src/i18n/messages/pt-BR.js +6 -5
  41. package/src/lib/dev-resume.js +6 -1
  42. package/src/lib/tool-capabilities.js +64 -37
  43. package/src/operator-memory/decision.js +11 -4
  44. package/src/operator-memory/proposal.js +11 -7
  45. package/src/session-handoff.js +52 -1
  46. package/template/.aioson/agents/analyst.md +33 -1
  47. package/template/.aioson/agents/architect.md +33 -1
  48. package/template/.aioson/agents/briefing.md +23 -0
  49. package/template/.aioson/agents/orchestrator.md +26 -0
  50. package/template/.aioson/agents/pentester.md +66 -14
  51. package/template/.aioson/agents/pm.md +18 -1
  52. package/template/.aioson/agents/product.md +11 -0
  53. package/template/.aioson/agents/sheldon.md +21 -1
  54. package/template/.aioson/agents/tester.md +114 -1
  55. package/template/.aioson/docs/pentester/browser-dast-playbook.md +398 -0
  56. package/template/.aioson/rules/agent-structural-contract.md +139 -0
  57. package/template/.aioson/skills/process/decision-presentation/SKILL.md +2 -2
package/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.18.0] - 2026-05-27
8
+
9
+ ### Added
10
+ - **Agent Orchestration V2 — Phase 1: durable checkpoints, decision rationale, scoped operator memory.** Three must-have milestones shipped:
11
+ - **M1 — Checkpoint at gate.** `gate:approve` now writes a checkpoint JSON to `.aioson/runtime/checkpoints/gate-{A|B|C|D}-{slug}.json` after successful approval. Contains `prerequisites_snapshot` (artifact paths + mtimes), `gate_check_result`, and `decision_log`. Best-effort write (BR-AO-01: try/catch, never blocks approval). 5KB size cap with `decision_log` truncation (BR-AO-03). `workflow:heal` reads the latest checkpoint for the active feature using latest-gate-wins ordering (D > C > B > A per BR-AO-02) and injects recovery context into the healing prompt. Falls back gracefully when no checkpoint exists (EC-AO-02).
12
+ - **M2 — Decision rationale in handoffs.** `op:capture` appends confirmation signals to `.aioson/runtime/session-confirmations.jsonl`. `session-handoff.js` auto-collects these into `decision_rationale[]` in `last-handoff.json` (FIFO cap at 5 per BR-AO-04, only `signal=confirmation` per BR-AO-05). `dev:resume-data` passes rationale through to the context package. Accumulator cleared after each handoff.
13
+ - **M3 — Scoped operator memory.** `op:capture` accepts `--feature=<slug>` and `--session-id=<id>` flags (BR-AO-06: optional, NULL when omitted). Fields stored in proposal/decision markdown frontmatter and propagated on promotion. `op:list` accepts `--feature` and `--agent` filters (AND-composable per BR-AO-07). JSON output with `--feature` follows BR-AO-09 schema.
14
+
15
+ ### Notes
16
+ - **QA findings resolved:** H-01 (spec correction: markdown frontmatter, not SQL ALTER TABLE) and M-02 (confidence field type documented as string `'confirmed'`). Both are spec amendments, not code changes.
17
+ - **S1 (telemetry consumer mapping) and S2 (checkpoint lifecycle cleanup) deferred** as Should-have scope for a follow-up release.
18
+ - **Test coverage:** 36 feature-specific tests (23 by @dev + 13 by @tester). 115/115 related tests green. Full suite regression: 2822/2816 + 1 skipped + 5 fail (all pre-existing: AC-P1-07 operator-memory, AC-ALL-101 perf flake, product kernel size, pentester text contracts, tool-invocation-hardening).
19
+
7
20
  ## [1.17.2] - 2026-05-22
8
21
 
9
22
  ### Security
package/README.md CHANGED
@@ -559,32 +559,34 @@ aioson squad:dashboard # real-time web monitoring panel
559
559
 
560
560
  | Agent | Role | Best for |
561
561
  |-------|------|----------|
562
- | `/setup` | Project onboarding & context | First step on any project |
563
- | `/product` | Product decisions & PRD | Feature scope, user stories |
564
- | `/sheldon` | Deep technical reasoning & PRD hardening | Hard engineering problems, spec review |
565
- | `/analyst` | Domain discovery & entity mapping | Understanding the problem space |
566
- | `/architect` | Project structure & technical decisions | Architecture, stack choices |
567
- | `/ux-ui` | UI/UX design system & component specs | Dashboards, flows, components |
568
- | `/pm` | Backlog & user stories | Sprint planning, task breakdown |
569
- | `/orchestrator` | Session protocol & parallel execution | Multi-agent coordination |
570
- | `/dev` | Feature implementation (any stack) | Focused dev tasks |
571
- | `/deyvin` / `/pair` | Pair programming & continuity | Coding — greenfield or brownfield |
572
- | `/qa` | Risk-first review & test generation | Quality gates before ship |
573
- | `/tester` | Systematic test engineering | Coverage gaps, legacy code testing |
574
- | `/pentester` | Adversarial security review | Security gates before release |
575
- | `/squad` | Parallel agent squads | Large feature sets in parallel |
576
- | `/genome` | Agent knowledge & learning | Adaptive squad intelligence |
577
- | `/committer` | Semantic commit messages | High-quality Git commits |
578
- | `/briefing` | Plan → structured briefing | Pre-production planning, problem framing |
579
- | `/copywriter` | Conversion copy & content | Marketing pages, VSL scripts |
580
- | `/discover` | System discovery & semantic cache | Brownfield mapping, knowledge bootstrap |
581
- | `/neo` | Onboarding & next steps | "Where do I start?" guidance |
582
- | `/orache` | Market research & competitors | External data gathering |
583
- | `/profiler-researcher` | Persona research & profiling | DNA mental research |
584
- | `/profiler-enricher` | Profile enrichment | Cognitive analysis |
585
- | `/profiler-forge` | Profile generation | Genome 3.0 advisor creation |
586
- | `/site-forge` | Site cloning & design extraction | Clone, harvest, blend, or forge skills from any URL |
587
- | `/validator` | Deliverable validation | Pre-gate verification |
562
+ | `/aioson:agent:setup` | Project onboarding & context | First step on any project |
563
+ | `/aioson:agent:product` | Product decisions & PRD | Feature scope, user stories |
564
+ | `/aioson:agent:sheldon` | Deep technical reasoning & PRD hardening | Hard engineering problems, spec review |
565
+ | `/aioson:agent:analyst` | Domain discovery & entity mapping | Understanding the problem space |
566
+ | `/aioson:agent:architect` | Project structure & technical decisions | Architecture, stack choices |
567
+ | `/aioson:agent:ux-ui` | UI/UX design system & component specs | Dashboards, flows, components |
568
+ | `/aioson:agent:pm` | Backlog & user stories | Sprint planning, task breakdown |
569
+ | `/aioson:agent:orchestrator` | Session protocol & parallel execution | Multi-agent coordination |
570
+ | `/aioson:agent:dev` | Feature implementation (any stack) | Focused dev tasks |
571
+ | `/aioson:agent:deyvin` / `/aioson:agent:pair` | Pair programming & continuity | Coding — greenfield or brownfield |
572
+ | `/aioson:agent:qa` | Risk-first review & test generation | Quality gates before ship |
573
+ | `/aioson:agent:tester` | Systematic test engineering | Coverage gaps, legacy code testing |
574
+ | `/aioson:agent:pentester` | Adversarial security review | Security gates before release |
575
+ | `/aioson:agent:squad` | Parallel agent squads | Large feature sets in parallel |
576
+ | `/aioson:agent:genome` | Agent knowledge & learning | Adaptive squad intelligence |
577
+ | `/aioson:agent:committer` | Semantic commit messages | High-quality Git commits |
578
+ | `/aioson:agent:briefing` | Plan → structured briefing | Pre-production planning, problem framing |
579
+ | `/aioson:agent:copywriter` | Conversion copy & content | Marketing pages, VSL scripts |
580
+ | `/aioson:agent:discover` | System discovery & semantic cache | Brownfield mapping, knowledge bootstrap |
581
+ | `/aioson:agent:neo` | Onboarding & next steps | "Where do I start?" guidance |
582
+ | `/aioson:agent:orache` | Market research & competitors | External data gathering |
583
+ | `/aioson:agent:profiler-researcher` | Persona research & profiling | DNA mental research |
584
+ | `/aioson:agent:profiler-enricher` | Profile enrichment | Cognitive analysis |
585
+ | `/aioson:agent:profiler-forge` | Profile generation | Genome 3.0 advisor creation |
586
+ | `/aioson:agent:site-forge` | Site cloning & design extraction | Clone, harvest, blend, or forge skills from any URL |
587
+ | `/aioson:agent:design-hybrid-forge` | Hybrid design system generation | Merge two visual parents into one |
588
+ | `/aioson:agent:discovery-design-doc` | Discovery & design doc generation | Living design doc bridging discovery to implementation |
589
+ | `/aioson:agent:validator` | Deliverable validation | Pre-gate verification |
588
590
 
589
591
  ---
590
592
 
@@ -673,6 +675,9 @@ Package, publish, and distribute squads, genomes, skills, and full systems throu
673
675
  aioson system:package .
674
676
  aioson system:publish . --name=my-stack
675
677
 
678
+ # Build mode: compile TS/JSX, obfuscate JS (terser), package as ZIP
679
+ aioson system:publish . --name=my-stack --build
680
+
676
681
  # Publish squads, genomes, and skills
677
682
  aioson squad:publish . --squad=marketing --version=1.0.0
678
683
  aioson genome:publish . --slug=fintech --version=1.0.0
@@ -924,36 +929,65 @@ aioson scan:project --json
924
929
  ## Documentation
925
930
 
926
931
  **CLI & commands**
927
- - [CLI reference](docs/en/cli-reference.md) — full docs for every command
928
- - [JSON schemas](docs/en/json-schemas.md) — `--json` output contracts
932
+ - [CLI reference](docs/en/5-reference/cli-reference.md) — full docs for every command
933
+ - [JSON schemas](docs/en/5-reference/json-schemas.md) — `--json` output contracts
929
934
 
930
935
  **Feature guides**
931
- - [Parallel orchestration](docs/en/parallel.md)
932
- - [MCP guide](docs/en/mcp.md)
933
- - [Browser QA guide](docs/en/qa-browser.md)
934
- - [Web3 guide](docs/en/web3.md)
935
- - [i18n guide](docs/en/i18n.md)
936
- - [Squad Dashboard](docs/en/squad-dashboard.md)
936
+ - [Parallel orchestration](docs/en/5-reference/parallel.md)
937
+ - [MCP guide](docs/en/5-reference/mcp.md)
938
+ - [Browser QA guide](docs/en/5-reference/qa-browser.md)
939
+ - [Web3 guide](docs/en/5-reference/web3.md)
940
+ - [i18n guide](docs/en/5-reference/i18n.md)
941
+ - [Squad Dashboard](docs/en/5-reference/squad-dashboard.md)
937
942
 
938
943
  **Portuguese guides**
939
- - [Início rápido](docs/pt/inicio-rapido.md)
944
+
945
+ *Entender*
946
+ - [O que é AIOSON](docs/pt/1-entender/o-que-e-aioson.md)
947
+ - [Por que existe](docs/pt/1-entender/por-que-existe.md)
948
+ - [Mapa do ecossistema](docs/pt/1-entender/mapa-do-ecossistema.md)
949
+ - [Glossário](docs/pt/1-entender/glossario.md)
950
+
951
+ *Começar*
952
+ - [Primeiro projeto](docs/pt/2-comecar/primeiro-projeto.md)
953
+ - [Projeto existente](docs/pt/2-comecar/projeto-existente.md)
954
+ - [Decisões iniciais](docs/pt/2-comecar/decisoes-iniciais.md)
955
+
956
+ *Receitas*
957
+ - [App SaaS do zero](docs/pt/3-receitas/app-saas-do-zero.md)
958
+ - [Feature completa com Sheldon](docs/pt/3-receitas/feature-completa-com-sheldon.md)
959
+ - [Da ideia ao PRD via briefing](docs/pt/3-receitas/da-ideia-ao-prd-via-briefing.md)
960
+ - [Landing page](docs/pt/3-receitas/landing-page.md)
961
+ - [Continuidade entre sessões](docs/pt/3-receitas/continuidade-entre-sessoes.md)
962
+ - [Integração em codebase grande](docs/pt/3-receitas/integracao-em-codebase-grande.md)
963
+ - [Refatoração grande](docs/pt/3-receitas/refatoracao-grande.md)
964
+ - [Auditoria de segurança](docs/pt/3-receitas/auditoria-seguranca.md)
965
+ - [Clonar design de site](docs/pt/3-receitas/clonar-design-de-site.md)
966
+ - [Publicar no AIOSON Store](docs/pt/3-receitas/publicar-no-aioson-com.md)
967
+
968
+ *Agentes*
940
969
  - [Guia de agentes](docs/pt/agentes.md)
941
- - [Squad e Genome](docs/pt/squad-genome.md)
942
- - [Cenários de uso](docs/pt/cenarios.md)
943
- - [Clientes AI](docs/pt/clientes-ai.md)
944
- - [Runtime observability](docs/pt/runtime-observability.md)
945
- - [Recuperação de sessão](docs/pt/recuperacao-de-sessao.md)
946
- - [Monitor de contexto](docs/pt/monitor-de-contexto.md)
947
- - [Busca de contexto](docs/pt/busca-de-contexto.md)
948
- - [Cache de contexto](docs/pt/cache-de-contexto.md)
949
- - [Sandbox executor](docs/pt/sandbox.md)
950
- - [Agent sharding](docs/pt/agent-sharding.md)
951
- - [Guia do engenheiro](docs/pt/guia-engineer.md)
952
- - [Squad Dashboard (PT)](docs/pt/squad-dashboard.md)
953
- - [SDD automation scripts](docs/pt/sdd-automation-scripts.md)
954
- - [Motor hardening](docs/pt/motor-hardening.md)
955
- - [Design-docs governance](docs/pt/design-docs-governance.md)
956
- - [Runner system](docs/pt/runner-system.md)
970
+ - [Referência por agente](docs/pt/4-agentes/README.md)
971
+
972
+ *Referência*
973
+ - [Clientes AI](docs/pt/5-referencia/clientes-ai.md)
974
+ - [SDD framework](docs/pt/5-referencia/sdd-framework.md)
975
+ - [Motor hardening](docs/pt/5-referencia/motor-hardening.md)
976
+ - [Runtime observability](docs/pt/5-referencia/runtime-observability.md)
977
+ - [Live sessions](docs/pt/5-referencia/live-sessions.md)
978
+ - [Memória e contexto](docs/pt/5-referencia/memoria-e-contexto.md)
979
+ - [Feature dossier](docs/pt/5-referencia/feature-dossier.md)
980
+ - [Agent sharding](docs/pt/5-referencia/agent-sharding.md)
981
+ - [Skills](docs/pt/5-referencia/skills.md)
982
+ - [Sandbox executor](docs/pt/5-referencia/sandbox.md)
983
+ - [Squad Dashboard (PT)](docs/pt/5-referencia/squad-dashboard.md)
984
+ - [Design-docs governance](docs/pt/5-referencia/design-docs-governance.md)
985
+ - [Runner system](docs/pt/5-referencia/runner-system.md)
986
+ - [Secure by default](docs/pt/5-referencia/secure-by-default.md)
987
+
988
+ *Living Memory*
989
+ - [Memória viva](docs/pt/living-memory/memoria-viva.md)
990
+ - [Autonomy contract](docs/pt/living-memory/autonomy-contract.md)
957
991
 
958
992
  ---
959
993
 
@@ -10,7 +10,7 @@
10
10
  ## The trail in one line
11
11
 
12
12
  ```
13
- @product → @sheldon → @analyst → @architect → @ux-ui → @pm → @orchestrator → @dev
13
+ /aioson:agent:product → @sheldon → @analyst → @architect → @ux-ui → @pm → @orchestrator → @dev
14
14
 
15
15
  (@qa ↔ @dev) ← autonomous loop
16
16
 
@@ -225,13 +225,13 @@ aioson agents --json
225
225
  **Output example:**
226
226
  ```
227
227
  Agents (locale: en):
228
- @setup (setup)
228
+ /aioson:agent:setup (setup)
229
229
  Path: .aioson/locales/en/agents/setup.md
230
230
  Active: .aioson/agents/setup.md
231
231
  Depends on: none
232
232
  Output: .aioson/context/project.context.md
233
233
 
234
- @product (product)
234
+ /aioson:agent:product (product)
235
235
  Path: .aioson/locales/en/agents/product.md
236
236
  Active: .aioson/agents/product.md
237
237
  Depends on: none
@@ -261,7 +261,7 @@ aioson agent:prompt dev --tool=gemini --json
261
261
  - `--tool=codex|claude|gemini|opencode` — formats the prompt for the target CLI. Default: `codex`.
262
262
  - `--json` — returns structured JSON with the prompt string.
263
263
 
264
- **When to use:** if you're using an AI CLI that doesn't support `/setup` slash commands, run this to get the exact text to paste into the chat.
264
+ **When to use:** if you're using an AI CLI that doesn't support `/aioson:agent:setup` slash commands, run this to get the exact text to paste into the chat.
265
265
 
266
266
  ```bash
267
267
  # Copy the prompt for @analyst in Gemini
@@ -310,7 +310,7 @@ Notes:
310
310
  Once the project is set up, each new feature follows a shorter sequence — no `@setup` required:
311
311
 
312
312
  ```
313
- @product → @analyst → @dev → @qa
313
+ /aioson:agent:product → @analyst → @dev → @qa
314
314
  ```
315
315
 
316
316
  `@product` creates a feature-scoped `prd-{slug}.md` and registers the feature in `features.md`. `@analyst` produces `requirements-{slug}.md` and `spec-{slug}.md`. `@dev` reads the feature spec. `@qa` closes the feature by running `feature:close --verdict=PASS`, which updates `spec-{slug}.md` with a QA sign-off, marks it `done` in `features.md`, and automatically archives all feature artefacts to `.aioson/context/done/{slug}/`.
@@ -259,14 +259,14 @@ Two terminals, running in parallel:
259
259
 
260
260
  ```bash
261
261
  # Terminal 1 — aioson agents
262
- @setup → @product → @analyst → @architect → @dev
262
+ /aioson:agent:setup → @product → @analyst → @architect → @dev
263
263
 
264
264
  # Terminal 2 — browser QA (while app is running)
265
265
  aioson qa:init --url=http://localhost:3000
266
266
  aioson qa:run
267
267
 
268
268
  # Terminal 1 — continues with merged findings
269
- @qa # reads aios-qa-report.md automatically
269
+ /aioson:agent:qa # reads aios-qa-report.md automatically
270
270
  ```
271
271
 
272
272
  ---
package/docs/en/README.md CHANGED
@@ -83,7 +83,7 @@ npx @jaimevalasek/aioson init my-project
83
83
  cd my-project
84
84
 
85
85
  # 3. Open your AI client (Claude Code, Codex, Gemini, OpenCode) and type:
86
- @setup
86
+ /aioson:agent:setup
87
87
  ```
88
88
 
89
89
  From there, the agents guide you. Details in [First project from scratch](./2-start/first-project.md).
@@ -95,7 +95,7 @@ Output:
95
95
  }
96
96
  ```
97
97
 
98
- Scout persists with `status: "error"`. `@deyvin` informs the user and offers manual handoff to `/architect` if needed.
98
+ Scout persists with `status: "error"`. `@deyvin` informs the user and offers manual handoff to `/aioson:agent:architect` if needed.
99
99
 
100
100
  ---
101
101
 
@@ -121,7 +121,7 @@ Output:
121
121
  }
122
122
  ```
123
123
 
124
- `@deyvin` surfaces the message and asks the user how to proceed: usually handoff to `/architect` if scouts keep multiplying.
124
+ `@deyvin` surfaces the message and asks the user how to proceed: usually handoff to `/aioson:agent:architect` if scouts keep multiplying.
125
125
 
126
126
  To increase the limit in the project:
127
127
 
@@ -9,7 +9,7 @@
9
9
  Without the scout, `@deyvin` had two bad options when a question required inspecting many files:
10
10
 
11
11
  1. **Read everything inline** — burns ≥10k tokens in the parent context, pollutes the agent's working memory, and forces the next turn to compete with stale survey content.
12
- 2. **Hand off to `/architect` or pause** — overshoots the actual need (most surveys don't require architectural decisions) and breaks the conversation flow with a full agent switch.
12
+ 2. **Hand off to `/aioson:agent:architect` or pause** — overshoots the actual need (most surveys don't require architectural decisions) and breaks the conversation flow with a full agent switch.
13
13
 
14
14
  The scout resolves this: the parent agent keeps its context lean and receives a structured report of ~500 tokens instead of the raw files.
15
15
 
@@ -31,7 +31,7 @@ aioson scout:prep --question="..." --scope-paths="a.js,b.js" ...
31
31
  └─ returns { id, prompt, output_path, cap_remaining }
32
32
 
33
33
 
34
- @deyvin calls harness.sub-agent(prompt)
34
+ /aioson:agent:deyvin calls harness.sub-agent(prompt)
35
35
  └─ sub-agent runs in ISOLATED context
36
36
  └─ allowed tools: [Read, Grep]
37
37
  └─ disallowed tools: [Bash, Edit, Write] ← Nautilus pattern
@@ -50,7 +50,7 @@ aioson scout:commit --input=<output_path>
50
50
  └─ emits telemetry action=committed
51
51
 
52
52
 
53
- @deyvin reads findings, confidence, recommendation
53
+ /aioson:agent:deyvin reads findings, confidence, recommendation
54
54
  └─ folds into user-facing reply
55
55
  └─ parent context grew ~500 tokens (just the report)
56
56
  vs inline survey: ~10k+ tokens (raw file contents)
@@ -81,7 +81,7 @@ You have 1 retry (`max_retries_on_malformed_json=1`). If the second attempt also
81
81
  **What to do:**
82
82
 
83
83
  1. The scout was persisted with `status: "error"` at `.aioson/runtime/scouts/{id}.json`.
84
- 2. `@deyvin` informs the user and offers handoff to `/architect` or a direct best-effort answer.
84
+ 2. `@deyvin` informs the user and offers handoff to `/aioson:agent:architect` or a direct best-effort answer.
85
85
  3. To increase retries: `{ "max_retries_on_malformed_json": 2 }` in config (rarely needed — if it happens frequently, the prompt template needs tightening).
86
86
 
87
87
  ---
@@ -189,6 +189,23 @@ O `package.json` do pacote é diferente do seu `package.json` de Node.js. É o m
189
189
 
190
190
  ---
191
191
 
192
+ ## Build antes de publicar (v1.17.2+)
193
+
194
+ Se o seu pacote contém TypeScript, JSX ou código que precisa ser compilado, use a flag `--build`:
195
+
196
+ ```bash
197
+ npx @jaimevalasek/aioson system:publish --slug=legal-compliance --type=squad --build
198
+ ```
199
+
200
+ O `--build`:
201
+ 1. Compila TS/JSX antes de empacotar
202
+ 2. Aplica ofuscação JS via terser (minificação + mangling)
203
+ 3. Gera o pacote final em formato ZIP
204
+
205
+ Útil para proteger lógica proprietária em squads e skills distribuídos via aioson.com.
206
+
207
+ ---
208
+
192
209
  ## Variações
193
210
 
194
211
  | Situação | Ajuste |
@@ -179,7 +179,7 @@ A nova versão da Store permite empacotar, distribuir e instalar não só agente
179
179
  | Comando | O que faz | Quando usar |
180
180
  |---|---|---|
181
181
  | `system:package` | Lê o `system.json` e empacota o projeto local em `.aioson/system-packages` | Quando quiser testar o empacotamento completo do seu sistema antes de submetê-lo |
182
- | `system:publish` | Empacota e publica seu sistema/boilerplate na AIOSON Store | Quando quiser distribuir uma base arquitetural inteira para que outros comecem projetos rapidamente |
182
+ | `system:publish` | Empacota e publica seu sistema/boilerplate na AIOSON Store. Com `--build`, compila TS/JSX e aplica ofuscação JS (terser). Pacote final em ZIP. | Quando quiser distribuir uma base arquitetural inteira para que outros comecem projetos rapidamente |
183
183
  | `system:list` | Lista os sistemas disponíveis localmente ou na nuvem | Para descobrir boilerplates e sistemas base que podem ser instalados |
184
184
  | `system:install` | Baixa e inicializa um sistema completo a partir da Store | Para dar kickstart num projeto novo a partir de um `system` já configurado com squads e arquitetura |
185
185
  | `squad:list` | Lista squads instaladas localmente ou remotamente na Store `--remote` | Para descobrir e inspecionar quais squads estão ativas ou disponíveis na nuvem |
@@ -488,7 +488,7 @@ aioson agents . --lang=pt-BR
488
488
  aioson agent:prompt architect . --tool=codex
489
489
  ```
490
490
 
491
- Use `agents` para ver quem existe e `agent:prompt` quando o cliente de IA nao entende `/setup`, `@dev` ou slash commands, ou quando voce quer um handoff direto rastreado no runtime antes de continuar em outro cliente.
491
+ Use `agents` para ver quem existe e `agent:prompt` quando o cliente de IA nao entende `/aioson:agent:setup`, `@dev` ou slash commands, ou quando voce quer um handoff direto rastreado no runtime antes de continuar em outro cliente.
492
492
 
493
493
  ### 10. Validar agentes e pacote antes de release
494
494
 
@@ -64,7 +64,7 @@ aioson learning:apply . --file=.aioson/evolution/pending-2026-03-30T12-00-00.jso
64
64
 
65
65
  ### Exemplos práticos
66
66
 
67
- **Cenário:** durante 3 sessões com o agente `/dev`, você corrigiu o mesmo erro — o agente tentava criar arquivos `.ts` num projeto que usa apenas `.js`.
67
+ **Cenário:** durante 3 sessões com o agente `/aioson:agent:dev`, você corrigiu o mesmo erro — o agente tentava criar arquivos `.ts` num projeto que usa apenas `.js`.
68
68
 
69
69
  O agente registrou um learning `correction` a cada sessão. Com frequência 3:
70
70
 
@@ -164,7 +164,7 @@ aioson tool:unregister . --name=run_tests
164
164
 
165
165
  ### Exemplos práticos
166
166
 
167
- **Cenário:** agente `/qa` precisa checar se o servidor local está no ar antes de rodar testes. Em vez de escrever o curl toda vez:
167
+ **Cenário:** agente `/aioson:agent:qa` precisa checar se o servidor local está no ar antes de rodar testes. Em vez de escrever o curl toda vez:
168
168
 
169
169
  ```bash
170
170
  aioson tool:register . \
@@ -180,7 +180,7 @@ aioson tool:call . --name=check_health --input='{}'
180
180
  # OK
181
181
  ```
182
182
 
183
- **Cenário:** agente `/dev` cria um script mais complexo para validar migrações:
183
+ **Cenário:** agente `/aioson:agent:dev` cria um script mais complexo para validar migrações:
184
184
 
185
185
  ```bash
186
186
  # Agente cria o arquivo
@@ -202,7 +202,7 @@ Se você quer o fluxo completo em um só lugar, leia a página dedicada: [design
202
202
 
203
203
  Fluxo padrão:
204
204
 
205
- 1. O usuário ativa `@design-hybrid-forge` no Codex ou `/design-hybrid-forge` no Claude
205
+ 1. O usuário ativa `@design-hybrid-forge` no Codex ou `/aioson:agent:design-hybrid-forge` no Claude
206
206
  2. Se quiser um overlay visual mais ousado, o usuário pode rodar `aioson design-hybrid:options` para gerar `.aioson/context/design-variation-preset.md`
207
207
  3. O comando usa `conversation_language` do projeto quando existir; `--locale` funciona como override manual
208
208
  4. O agente pede as 2 skills primárias, até 2 modificadores opcionais e lê o preset visual quando ele existir
@@ -240,7 +240,7 @@ O @dev segue estas regras para contratos:
240
240
  O @qa em projetos Web3 vai além de testes funcionais:
241
241
 
242
242
  ```
243
- /qa
243
+ /aioson:agent:qa
244
244
 
245
245
  Audite os contratos para:
246
246
  - Reentrancy (todas as funções externas que modificam estado)
@@ -288,7 +288,7 @@ Após instalar, você tem acesso a skills estáticas de referência:
288
288
 
289
289
  Para usar uma skill, referencie no seu AI IDE:
290
290
  ```
291
- /dev Usando a skill web3-security-checklist, audite nosso contrato.
291
+ /aioson:agent:dev Usando a skill web3-security-checklist, audite nosso contrato.
292
292
  ```
293
293
 
294
294
  ---
@@ -762,7 +762,7 @@ async function takeDown(contract: BBoardAPI) {
762
762
  #### @qa audita:
763
763
 
764
764
  ```
765
- /qa
765
+ /aioson:agent:qa
766
766
 
767
767
  Revise o bboard.compact para:
768
768
  - Replay attack: sequence.increment() executado corretamente no takeDown?
package/docs/pt/README.md CHANGED
@@ -83,7 +83,7 @@ npx @jaimevalasek/aioson init meu-projeto
83
83
  cd meu-projeto
84
84
 
85
85
  # 3. Abra seu cliente AI (Claude Code, Codex, Gemini, OpenCode) e digite:
86
- @setup
86
+ /aioson:agent:setup
87
87
  ```
88
88
 
89
89
  A partir daí, os agentes guiam você. Detalhes em [Primeiro projeto do zero](./2-comecar/primeiro-projeto.md).
@@ -65,7 +65,7 @@ npx @jaimevalasek/aioson setup:context
65
65
  npx @jaimevalasek/aioson doctor
66
66
  ```
67
67
 
68
- Depois, abra seu AI IDE e digite `/setup` para começar.
68
+ Depois, abra seu AI IDE e digite `/aioson:agent:setup` para começar.
69
69
 
70
70
  Fluxo recomendado:
71
71
  - `@setup` primeiro