@jaimevalasek/aioson 1.3.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -1
- package/LICENSE +661 -21
- package/README.md +22 -3
- package/docs/en/squad-dashboard.md +372 -0
- package/docs/openclaw-bridge.md +308 -0
- package/docs/pt/README.md +62 -2
- package/docs/pt/advisor-spec.md +5 -5
- package/docs/pt/agentes-customizados.md +670 -0
- package/docs/pt/agentes.md +235 -23
- package/docs/pt/automacao-squads.md +407 -0
- package/docs/pt/cenarios.md +49 -5
- package/docs/pt/clientes-ai.md +62 -0
- package/docs/pt/comandos-cli.md +226 -17
- package/docs/pt/deyvin.md +115 -0
- package/docs/pt/genome-3.0-spec.md +11 -11
- package/docs/pt/inicio-rapido.md +63 -2
- package/docs/pt/memoria-contexto.md +255 -0
- package/docs/pt/output-strategy-delivery.md +655 -0
- package/docs/pt/profiler-system.md +17 -17
- package/docs/pt/runtime-observability.md +5 -1
- package/docs/pt/skills.md +175 -0
- package/docs/pt/squad-dashboard.md +373 -0
- package/docs/pt/{squad-genoma.md → squad-genome.md} +81 -75
- package/docs/testing/genome-2.0-matrix.md +5 -5
- package/docs/testing/genome-2.0-rollout.md +10 -10
- package/package.json +4 -4
- package/src/agents.js +21 -5
- package/src/backup-local.js +74 -0
- package/src/backup-provider.js +303 -0
- package/src/cli.js +276 -2
- package/src/commands/agents.js +22 -4
- package/src/commands/backup-local-cmd.js +25 -0
- package/src/commands/backup.js +533 -0
- package/src/commands/cloud.js +17 -17
- package/src/commands/context-pack.js +45 -0
- package/src/commands/implementation-plan.js +340 -0
- package/src/commands/learning.js +134 -0
- package/src/commands/live.js +1583 -0
- package/src/commands/runtime.js +1075 -2
- package/src/commands/scan-project.js +288 -24
- package/src/commands/setup-context.js +30 -2
- package/src/commands/skill.js +558 -0
- package/src/commands/squad-agent-create.js +788 -0
- package/src/commands/squad-daemon.js +209 -0
- package/src/commands/squad-dashboard.js +39 -0
- package/src/commands/squad-deploy.js +64 -0
- package/src/commands/squad-doctor.js +103 -1
- package/src/commands/squad-investigate.js +261 -0
- package/src/commands/squad-learning.js +209 -0
- package/src/commands/squad-mcp.js +270 -0
- package/src/commands/squad-pipeline.js +247 -1
- package/src/commands/squad-plan.js +329 -0
- package/src/commands/squad-processes.js +56 -0
- package/src/commands/squad-recovery.js +42 -0
- package/src/commands/squad-roi.js +291 -0
- package/src/commands/squad-score.js +250 -0
- package/src/commands/squad-status.js +38 -2
- package/src/commands/squad-validate.js +118 -1
- package/src/commands/squad-webhook.js +160 -0
- package/src/commands/squad-worker.js +191 -0
- package/src/commands/squad-worktrees.js +75 -0
- package/src/commands/test-agents.js +6 -1
- package/src/commands/web-map.js +70 -0
- package/src/commands/web-scrape.js +71 -0
- package/src/commands/workflow-next.js +8 -1
- package/src/commands/workflow-status.js +250 -0
- package/src/constants.js +88 -16
- package/src/context-memory.js +837 -0
- package/src/context-writer.js +47 -1
- package/src/delivery-runner.js +319 -0
- package/src/genome-files.js +1 -1
- package/src/genome-format.js +1 -1
- package/src/i18n/messages/en.js +333 -8
- package/src/i18n/messages/es.js +240 -6
- package/src/i18n/messages/fr.js +239 -5
- package/src/i18n/messages/pt-BR.js +330 -12
- package/src/installer.js +30 -2
- package/src/lib/genomes/compat.js +1 -1
- package/src/lib/webhook-server.js +328 -0
- package/src/mcp-connectors/registry.js +602 -0
- package/src/runtime-store.js +1037 -42
- package/src/session-handoff.js +77 -0
- package/src/squad/external-session.js +180 -0
- package/src/squad/inter-squad.js +74 -0
- package/src/squad/recovery-context.js +201 -0
- package/src/squad/worktree-manager.js +114 -0
- package/src/squad-daemon.js +490 -0
- package/src/squad-dashboard/api.js +223 -0
- package/src/squad-dashboard/attachment-handler.js +93 -0
- package/src/squad-dashboard/context-monitor.js +157 -0
- package/src/squad-dashboard/execution-logs.js +115 -0
- package/src/squad-dashboard/hunk-review.js +209 -0
- package/src/squad-dashboard/metrics.js +133 -0
- package/src/squad-dashboard/process-monitor.js +125 -0
- package/src/squad-dashboard/renderer.js +858 -0
- package/src/squad-dashboard/server.js +232 -0
- package/src/squad-dashboard/styles.js +525 -0
- package/src/squad-dashboard/token-tracker.js +99 -0
- package/src/web.js +284 -0
- package/src/worker-runner.js +339 -0
- package/template/.aioson/agents/analyst.md +40 -9
- package/template/.aioson/agents/architect.md +24 -5
- package/template/.aioson/agents/dev.md +254 -25
- package/template/.aioson/agents/deyvin.md +174 -0
- package/template/.aioson/agents/discovery-design-doc.md +25 -1
- package/template/.aioson/agents/{genoma.md → genome.md} +20 -20
- package/template/.aioson/agents/neo.md +152 -0
- package/template/.aioson/agents/orache.md +388 -0
- package/template/.aioson/agents/orchestrator.md +63 -2
- package/template/.aioson/agents/pair.md +5 -0
- package/template/.aioson/agents/pm.md +17 -5
- package/template/.aioson/agents/product.md +113 -29
- package/template/.aioson/agents/profiler-enricher.md +1 -1
- package/template/.aioson/agents/profiler-forge.md +9 -9
- package/template/.aioson/agents/profiler-researcher.md +1 -1
- package/template/.aioson/agents/qa.md +18 -5
- package/template/.aioson/agents/setup.md +138 -18
- package/template/.aioson/agents/sheldon.md +603 -0
- package/template/.aioson/agents/squad.md +866 -28
- package/template/.aioson/agents/tester.md +254 -0
- package/template/.aioson/agents/ux-ui.md +289 -34
- package/template/.aioson/config.md +181 -0
- package/template/.aioson/context/spec.md.template +17 -0
- package/template/.aioson/genomes/.gitkeep +0 -0
- package/template/.aioson/installed-skills/.gitkeep +0 -0
- package/template/.aioson/locales/en/agents/analyst.md +34 -4
- package/template/.aioson/locales/en/agents/architect.md +18 -0
- package/template/.aioson/locales/en/agents/dev.md +155 -11
- package/template/.aioson/locales/en/agents/deyvin.md +137 -0
- package/template/.aioson/locales/en/agents/{genoma.md → genome.md} +14 -14
- package/template/.aioson/locales/en/agents/neo.md +8 -0
- package/template/.aioson/locales/en/agents/orchestrator.md +62 -2
- package/template/.aioson/locales/en/agents/pair.md +5 -0
- package/template/.aioson/locales/en/agents/pm.md +7 -0
- package/template/.aioson/locales/en/agents/product.md +35 -17
- package/template/.aioson/locales/en/agents/qa.md +56 -0
- package/template/.aioson/locales/en/agents/setup.md +53 -6
- package/template/.aioson/locales/en/agents/sheldon.md +340 -0
- package/template/.aioson/locales/en/agents/squad.md +203 -15
- package/template/.aioson/locales/en/agents/ux-ui.md +383 -35
- package/template/.aioson/locales/es/agents/analyst.md +24 -4
- package/template/.aioson/locales/es/agents/architect.md +18 -0
- package/template/.aioson/locales/es/agents/dev.md +136 -9
- package/template/.aioson/locales/es/agents/deyvin.md +97 -0
- package/template/.aioson/locales/es/agents/{genoma.md → genome.md} +13 -13
- package/template/.aioson/locales/es/agents/neo.md +48 -0
- package/template/.aioson/locales/es/agents/orache.md +103 -0
- package/template/.aioson/locales/es/agents/orchestrator.md +62 -2
- package/template/.aioson/locales/es/agents/pair.md +5 -0
- package/template/.aioson/locales/es/agents/pm.md +7 -0
- package/template/.aioson/locales/es/agents/product.md +13 -3
- package/template/.aioson/locales/es/agents/qa.md +33 -0
- package/template/.aioson/locales/es/agents/setup.md +30 -6
- package/template/.aioson/locales/es/agents/sheldon.md +192 -0
- package/template/.aioson/locales/es/agents/squad.md +284 -15
- package/template/.aioson/locales/es/agents/ux-ui.md +34 -25
- package/template/.aioson/locales/fr/agents/analyst.md +24 -4
- package/template/.aioson/locales/fr/agents/architect.md +18 -0
- package/template/.aioson/locales/fr/agents/dev.md +136 -9
- package/template/.aioson/locales/fr/agents/deyvin.md +97 -0
- package/template/.aioson/locales/fr/agents/{genoma.md → genome.md} +7 -7
- package/template/.aioson/locales/fr/agents/neo.md +48 -0
- package/template/.aioson/locales/fr/agents/orache.md +104 -0
- package/template/.aioson/locales/fr/agents/orchestrator.md +62 -2
- package/template/.aioson/locales/fr/agents/pair.md +5 -0
- package/template/.aioson/locales/fr/agents/pm.md +7 -0
- package/template/.aioson/locales/fr/agents/product.md +13 -3
- package/template/.aioson/locales/fr/agents/qa.md +33 -0
- package/template/.aioson/locales/fr/agents/setup.md +30 -6
- package/template/.aioson/locales/fr/agents/sheldon.md +192 -0
- package/template/.aioson/locales/fr/agents/squad.md +279 -10
- package/template/.aioson/locales/fr/agents/ux-ui.md +34 -25
- package/template/.aioson/locales/pt-BR/agents/analyst.md +45 -4
- package/template/.aioson/locales/pt-BR/agents/architect.md +29 -0
- package/template/.aioson/locales/pt-BR/agents/dev.md +167 -15
- package/template/.aioson/locales/pt-BR/agents/deyvin.md +137 -0
- package/template/.aioson/locales/pt-BR/agents/{genoma.md → genome.md} +49 -49
- package/template/.aioson/locales/pt-BR/agents/neo.md +147 -0
- package/template/.aioson/locales/pt-BR/agents/orache.md +137 -0
- package/template/.aioson/locales/pt-BR/agents/orchestrator.md +62 -2
- package/template/.aioson/locales/pt-BR/agents/pair.md +5 -0
- package/template/.aioson/locales/pt-BR/agents/pm.md +7 -0
- package/template/.aioson/locales/pt-BR/agents/product.md +43 -20
- package/template/.aioson/locales/pt-BR/agents/qa.md +67 -0
- package/template/.aioson/locales/pt-BR/agents/setup.md +53 -6
- package/template/.aioson/locales/pt-BR/agents/sheldon.md +192 -0
- package/template/.aioson/locales/pt-BR/agents/squad.md +591 -47
- package/template/.aioson/locales/pt-BR/agents/ux-ui.md +369 -22
- package/template/.aioson/my-agents/.gitkeep +0 -0
- package/template/.aioson/rules/.gitkeep +0 -0
- package/template/.aioson/rules/squad/.gitkeep +0 -0
- package/template/.aioson/rules/squad/README.md +50 -0
- package/template/.aioson/schemas/genome-meta.schema.json +1 -1
- package/template/.aioson/schemas/genome.schema.json +1 -1
- package/template/.aioson/schemas/squad-blueprint.schema.json +32 -0
- package/template/.aioson/schemas/squad-manifest.schema.json +434 -1
- package/template/.aioson/skills/design/bold-editorial-ui/SKILL.md +205 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/art-direction.md +338 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/components.md +977 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/dashboards.md +218 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/design-tokens.md +326 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/motion.md +461 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/patterns.md +293 -0
- package/template/.aioson/skills/design/bold-editorial-ui/references/websites.md +352 -0
- package/template/.aioson/skills/design/clean-saas-ui/SKILL.md +210 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/art-direction.md +319 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/components.md +365 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/dashboards.md +196 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/design-tokens.md +244 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/motion.md +235 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/patterns.md +215 -0
- package/template/.aioson/skills/design/clean-saas-ui/references/websites.md +295 -0
- package/template/.aioson/skills/design/cognitive-core-ui/SKILL.md +203 -0
- package/template/.aioson/skills/design/cognitive-core-ui/references/art-direction.md +339 -0
- package/template/.aioson/skills/design/cognitive-core-ui/references/components.md +407 -0
- package/template/.aioson/skills/design/cognitive-core-ui/references/dashboards.md +272 -0
- package/template/.aioson/skills/design/cognitive-core-ui/references/design-tokens.md +524 -0
- package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +277 -0
- package/template/.aioson/skills/design/cognitive-core-ui/references/patterns.md +289 -0
- package/template/.aioson/skills/design/cognitive-core-ui/references/websites.md +437 -0
- package/template/.aioson/skills/design/interface-design/SKILL.md +47 -0
- package/template/.aioson/skills/design/interface-design/references/components-and-states.md +105 -0
- package/template/.aioson/skills/design/interface-design/references/design-directions.md +101 -0
- package/template/.aioson/skills/design/interface-design/references/handoff-and-quality.md +71 -0
- package/template/.aioson/skills/design/interface-design/references/intent-and-domain.md +74 -0
- package/template/.aioson/skills/design/interface-design/references/tokens-and-depth.md +173 -0
- package/template/.aioson/skills/design/premium-command-center-ui/SKILL.md +62 -0
- package/template/.aioson/skills/design/premium-command-center-ui/references/operations.md +74 -0
- package/template/.aioson/skills/design/premium-command-center-ui/references/patterns.md +116 -0
- package/template/.aioson/skills/design/premium-command-center-ui/references/validation.md +47 -0
- package/template/.aioson/skills/design/premium-command-center-ui/references/visual-system.md +215 -0
- package/template/.aioson/skills/design/warm-craft-ui/SKILL.md +209 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/art-direction.md +324 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/components.md +508 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/dashboards.md +223 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/design-tokens.md +374 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/motion.md +356 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/patterns.md +288 -0
- package/template/.aioson/skills/design/warm-craft-ui/references/websites.md +289 -0
- package/template/.aioson/skills/design-system/SKILL.md +92 -0
- package/template/.aioson/skills/design-system/cognitive-core-ui.skill +0 -0
- package/template/.aioson/skills/design-system/components/SKILL.md +274 -0
- package/template/.aioson/skills/design-system/components/SKILL.md:Zone.Identifier +0 -0
- package/template/.aioson/skills/design-system/dashboards/SKILL.md +184 -0
- package/template/.aioson/skills/design-system/dashboards/SKILL.md:Zone.Identifier +0 -0
- package/template/.aioson/skills/design-system/foundations/SKILL.md +250 -0
- package/template/.aioson/skills/design-system/foundations/SKILL.md:Zone.Identifier +0 -0
- package/template/.aioson/skills/design-system/motion/SKILL.md +197 -0
- package/template/.aioson/skills/design-system/motion/SKILL.md:Zone.Identifier +0 -0
- package/template/.aioson/skills/design-system/patterns/SKILL.md +231 -0
- package/template/.aioson/skills/design-system/patterns/SKILL.md:Zone.Identifier +0 -0
- package/template/.aioson/skills/premium-visual-design/SKILL.md +83 -0
- package/template/.aioson/skills/premium-visual-design/components/agent-badge.md +92 -0
- package/template/.aioson/skills/premium-visual-design/components/dependency-node.md +102 -0
- package/template/.aioson/skills/premium-visual-design/components/mention-autocomplete.md +136 -0
- package/template/.aioson/skills/premium-visual-design/components/notification-center.md +136 -0
- package/template/.aioson/skills/premium-visual-design/components/review-action-bar.md +188 -0
- package/template/.aioson/skills/premium-visual-design/components/team-switcher.md +131 -0
- package/template/.aioson/skills/premium-visual-design/patterns/agent-message-thread.md +198 -0
- package/template/.aioson/skills/premium-visual-design/patterns/notification-panel.md +275 -0
- package/template/.aioson/skills/premium-visual-design/patterns/review-workflow-ui.md +234 -0
- package/template/.aioson/skills/premium-visual-design/patterns/task-dependency-graph.md +147 -0
- package/template/.aioson/skills/premium-visual-design/tokens/status-extended.md +142 -0
- package/template/.aioson/skills/squad/SKILL.md +58 -0
- package/template/.aioson/skills/squad/domains/.gitkeep +0 -0
- package/template/.aioson/skills/squad/formats/.gitkeep +0 -0
- package/template/.aioson/skills/squad/formats/catalog.json +15 -0
- package/template/.aioson/skills/squad/formats/content/blog-post.md +47 -0
- package/template/.aioson/skills/squad/formats/content/newsletter.md +47 -0
- package/template/.aioson/skills/squad/formats/creative/podcast-script.md +43 -0
- package/template/.aioson/skills/squad/formats/creative/video-script.md +41 -0
- package/template/.aioson/skills/squad/formats/social/instagram-feed.md +42 -0
- package/template/.aioson/skills/squad/formats/social/linkedin-post.md +42 -0
- package/template/.aioson/skills/squad/formats/social/tiktok.md +39 -0
- package/template/.aioson/skills/squad/formats/social/twitter-thread.md +39 -0
- package/template/.aioson/skills/squad/formats/social/youtube-long.md +47 -0
- package/template/.aioson/skills/squad/formats/social/youtube-shorts.md +39 -0
- package/template/.aioson/skills/squad/patterns/.gitkeep +0 -0
- package/template/.aioson/skills/squad/patterns/multi-platform-pattern.md +108 -0
- package/template/.aioson/skills/squad/patterns/persona-based-pattern.md +98 -0
- package/template/.aioson/skills/squad/patterns/pipeline-pattern.md +106 -0
- package/template/.aioson/skills/squad/patterns/review-loop-pattern.md +81 -0
- package/template/.aioson/skills/squad/references/.gitkeep +0 -0
- package/template/.aioson/skills/squad/references/checklist-templates.md +122 -0
- package/template/.aioson/skills/squad/references/executor-archetypes.md +123 -0
- package/template/.aioson/skills/squad/references/workflow-templates.md +169 -0
- package/template/.aioson/skills/static/debugging-protocol.md +42 -0
- package/template/.aioson/skills/static/git-worktrees.md +36 -0
- package/template/.aioson/tasks/implementation-plan.md +307 -0
- package/template/.aioson/tasks/squad-create.md +1 -1
- package/template/.aioson/tasks/squad-design.md +28 -0
- package/template/.aioson/tasks/squad-execution-plan.md +279 -0
- package/template/.aioson/tasks/squad-export.md +1 -1
- package/template/.aioson/tasks/squad-investigate.md +44 -0
- package/template/.aioson/tasks/squad-learning-review.md +44 -0
- package/template/.aioson/tasks/squad-output-config.md +177 -0
- package/template/.aioson/tasks/squad-profile.md +48 -0
- package/template/.aioson/tasks/squad-review.md +61 -0
- package/template/.aioson/tasks/squad-task-decompose.md +66 -0
- package/template/.aioson/tasks/squad-validate.md +1 -1
- package/template/.claude/commands/aioson/agent/deyvin.md +5 -0
- package/template/.claude/commands/aioson/agent/discovery-design-doc.md +5 -0
- package/template/.claude/commands/aioson/agent/genome.md +5 -0
- package/template/.claude/commands/aioson/agent/neo.md +5 -0
- package/template/.claude/commands/aioson/agent/product.md +5 -0
- package/template/.claude/commands/aioson/agent/profiler-enricher.md +5 -0
- package/template/.claude/commands/aioson/agent/profiler-forge.md +5 -0
- package/template/.claude/commands/aioson/agent/profiler-researcher.md +5 -0
- package/template/.claude/commands/aioson/agent/squad.md +5 -0
- package/template/.claude/commands/aioson/agent/tester.md +5 -0
- package/template/.gemini/GEMINI.md +3 -0
- package/template/.gemini/commands/aios-deyvin.toml +6 -0
- package/template/.gemini/commands/aios-neo.toml +4 -0
- package/template/.gemini/commands/aios-pair.toml +6 -0
- package/template/.gemini/commands/aios-tester.toml +6 -0
- package/template/AGENTS.md +37 -6
- package/template/CLAUDE.md +34 -4
- package/template/OPENCODE.md +8 -2
- package/template/squad-searches/.gitkeep +0 -0
- package/template/.aioson/skills/static/interface-design.md +0 -372
- package/template/.aioson/skills/static/premium-command-center-ui.md +0 -190
- /package/template/.aioson/{genomas → docs}/.gitkeep +0 -0
- /package/template/.claude/commands/aioson/{analyst.md → agent/analyst.md} +0 -0
- /package/template/.claude/commands/aioson/{architect.md → agent/architect.md} +0 -0
- /package/template/.claude/commands/aioson/{dev.md → agent/dev.md} +0 -0
- /package/template/.claude/commands/aioson/{orchestrator.md → agent/orchestrator.md} +0 -0
- /package/template/.claude/commands/aioson/{pm.md → agent/pm.md} +0 -0
- /package/template/.claude/commands/aioson/{qa.md → agent/qa.md} +0 -0
- /package/template/.claude/commands/aioson/{setup.md → agent/setup.md} +0 -0
- /package/template/.claude/commands/aioson/{ux-ui.md → agent/ux-ui.md} +0 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
# OpenClaw + AIOSON Bridge
|
|
2
|
+
|
|
3
|
+
> AIOSON receives external triggers. OpenClaw delivers them. Neither system changes — the bridge is pure configuration.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
[External channel] [OpenClaw] [AIOSON squad-webhook]
|
|
9
|
+
WhatsApp, Telegram, → gateway de canal → POST /trigger
|
|
10
|
+
Slack, webhook ERP identifica sessão executa squad
|
|
11
|
+
↓
|
|
12
|
+
← callback HTTP ← POST callback_url
|
|
13
|
+
envia resposta
|
|
14
|
+
ao canal
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick start
|
|
18
|
+
|
|
19
|
+
### 1. Start the webhook server
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
export AIOSON_WEBHOOK_TOKEN=your-secret-token
|
|
23
|
+
aioson squad:webhook start --port 3210
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The server auto-discovers all squads in `.aioson/squads/`. Output:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
AIOSON squad webhook server started on port 3210
|
|
30
|
+
Available squads: atendimento, vendas, logistica
|
|
31
|
+
Endpoints: POST /trigger GET /status/:run_id GET /health
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 2. Generate the OpenClaw configuration
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
aioson squad:webhook config --channel whatsapp --squad atendimento
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Copy the output into your `openclaw.json`.
|
|
41
|
+
|
|
42
|
+
### 3. Verify
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
curl http://localhost:3210/health
|
|
46
|
+
# {"ok":true,"version":"x.x.x","squads":["atendimento","vendas","logistica"]}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Endpoints
|
|
52
|
+
|
|
53
|
+
### `GET /health`
|
|
54
|
+
|
|
55
|
+
No authentication required.
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{ "ok": true, "version": "1.4.0", "squads": ["atendimento", "vendas"] }
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
### `POST /trigger`
|
|
64
|
+
|
|
65
|
+
Async squad execution. Returns immediately with a `run_id`.
|
|
66
|
+
|
|
67
|
+
**Headers:**
|
|
68
|
+
```
|
|
69
|
+
Authorization: Bearer <AIOSON_WEBHOOK_TOKEN>
|
|
70
|
+
Content-Type: application/json
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Body:**
|
|
74
|
+
```json
|
|
75
|
+
{
|
|
76
|
+
"squad": "atendimento",
|
|
77
|
+
"input": "quero dipirona 500mg",
|
|
78
|
+
"session_id": "wa:5511999000",
|
|
79
|
+
"callback_url": "https://your-server/callback",
|
|
80
|
+
"metadata": {
|
|
81
|
+
"channel": "whatsapp",
|
|
82
|
+
"phone": "+5511999000",
|
|
83
|
+
"user_name": "João"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
| Field | Required | Description |
|
|
89
|
+
|----------------|----------|-------------|
|
|
90
|
+
| `squad` | yes | Squad slug to execute |
|
|
91
|
+
| `input` | yes | User message |
|
|
92
|
+
| `session_id` | no | Opaque string — enables conversation continuity |
|
|
93
|
+
| `callback_url` | no | Where to POST the response when done |
|
|
94
|
+
| `metadata` | no | Arbitrary key/value, echoed back in the callback |
|
|
95
|
+
|
|
96
|
+
**Response (202):**
|
|
97
|
+
```json
|
|
98
|
+
{ "run_id": "a1b2c3d4e5f6a7b8", "status": "queued" }
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Callback payload (async POST to `callback_url`):**
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"run_id": "a1b2c3d4e5f6a7b8",
|
|
105
|
+
"session_id": "wa:5511999000",
|
|
106
|
+
"response": "Temos dipirona 500mg por R$8,90. Deseja adicionar ao carrinho?",
|
|
107
|
+
"status": "completed",
|
|
108
|
+
"metadata": { "channel": "whatsapp", "phone": "+5511999000", "user_name": "João" }
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Callback delivery: 3 retries with exponential backoff (30s → 60s → 120s).
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
### `GET /status/:run_id`
|
|
117
|
+
|
|
118
|
+
Poll execution state when no `callback_url` was provided.
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
GET /status/a1b2c3d4e5f6a7b8
|
|
122
|
+
Authorization: Bearer <token>
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
```json
|
|
126
|
+
{
|
|
127
|
+
"run_id": "a1b2c3d4e5f6a7b8",
|
|
128
|
+
"status": "running",
|
|
129
|
+
"response": null,
|
|
130
|
+
"error": null
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
`status` values: `queued` → `running` → `completed` | `failed`
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
### `POST /query`
|
|
139
|
+
|
|
140
|
+
Synchronous query — for fast lookups that don't need a full squad session (e.g., product search from a website). Timeout: 10 seconds.
|
|
141
|
+
|
|
142
|
+
```json
|
|
143
|
+
{
|
|
144
|
+
"squad": "catalogo",
|
|
145
|
+
"query": "dipirona 500mg",
|
|
146
|
+
"max_results": 10
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
```json
|
|
151
|
+
{
|
|
152
|
+
"results": [{ "id": 42, "name": "Dipirona 500mg", "price": 8.90 }],
|
|
153
|
+
"squad": "catalogo",
|
|
154
|
+
"latency_ms": 340
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Session continuity
|
|
161
|
+
|
|
162
|
+
When `session_id` is provided, AIOSON maintains conversation history across multiple calls.
|
|
163
|
+
|
|
164
|
+
**First call:**
|
|
165
|
+
```json
|
|
166
|
+
{ "squad": "atendimento", "input": "quero dipirona", "session_id": "wa:5511999000" }
|
|
167
|
+
```
|
|
168
|
+
→ Squad receives: `quero dipirona`
|
|
169
|
+
|
|
170
|
+
**Second call (same session):**
|
|
171
|
+
```json
|
|
172
|
+
{ "squad": "atendimento", "input": "qual o preço?", "session_id": "wa:5511999000" }
|
|
173
|
+
```
|
|
174
|
+
→ Squad receives:
|
|
175
|
+
```
|
|
176
|
+
[Conversation history]
|
|
177
|
+
user: quero dipirona
|
|
178
|
+
assistant: Temos dipirona 500mg por R$8,90. Deseja adicionar ao carrinho?
|
|
179
|
+
|
|
180
|
+
[Current message]
|
|
181
|
+
qual o preço?
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Session files are stored in `.aioson/sessions/` and expire after 24 hours of inactivity (configurable via `AIOSON_SESSION_TTL_HOURS`).
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## OpenClaw configuration
|
|
189
|
+
|
|
190
|
+
### WhatsApp (full example)
|
|
191
|
+
|
|
192
|
+
```yaml
|
|
193
|
+
# openclaw.json
|
|
194
|
+
hooks:
|
|
195
|
+
whatsapp:
|
|
196
|
+
auto_reply:
|
|
197
|
+
- pattern: ".*"
|
|
198
|
+
action: webhook
|
|
199
|
+
url: "http://localhost:3210/trigger"
|
|
200
|
+
headers:
|
|
201
|
+
Authorization: "Bearer ${AIOSON_WEBHOOK_TOKEN}"
|
|
202
|
+
body_template: |
|
|
203
|
+
{
|
|
204
|
+
"squad": "atendimento",
|
|
205
|
+
"input": "{{message.text}}",
|
|
206
|
+
"session_id": "wa:{{message.from}}",
|
|
207
|
+
"callback_url": "{{openclaw.callback_url}}",
|
|
208
|
+
"metadata": {
|
|
209
|
+
"channel": "whatsapp",
|
|
210
|
+
"phone": "{{message.from}}",
|
|
211
|
+
"user_name": "{{message.contact_name}}"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Telegram
|
|
217
|
+
|
|
218
|
+
```yaml
|
|
219
|
+
hooks:
|
|
220
|
+
telegram:
|
|
221
|
+
auto_reply:
|
|
222
|
+
- pattern: ".*"
|
|
223
|
+
action: webhook
|
|
224
|
+
url: "http://localhost:3210/trigger"
|
|
225
|
+
headers:
|
|
226
|
+
Authorization: "Bearer ${AIOSON_WEBHOOK_TOKEN}"
|
|
227
|
+
body_template: |
|
|
228
|
+
{
|
|
229
|
+
"squad": "suporte",
|
|
230
|
+
"input": "{{message.text}}",
|
|
231
|
+
"session_id": "tg:{{message.chat_id}}",
|
|
232
|
+
"callback_url": "{{openclaw.callback_url}}",
|
|
233
|
+
"metadata": { "channel": "telegram" }
|
|
234
|
+
}
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
### Multiple squads by intent
|
|
238
|
+
|
|
239
|
+
Route different message patterns to different squads:
|
|
240
|
+
|
|
241
|
+
```yaml
|
|
242
|
+
hooks:
|
|
243
|
+
whatsapp:
|
|
244
|
+
auto_reply:
|
|
245
|
+
- pattern: "^(pedido|comprar|quero|carrinho)"
|
|
246
|
+
action: webhook
|
|
247
|
+
url: "http://localhost:3210/trigger"
|
|
248
|
+
headers:
|
|
249
|
+
Authorization: "Bearer ${AIOSON_WEBHOOK_TOKEN}"
|
|
250
|
+
body_template: |
|
|
251
|
+
{ "squad": "vendas", "input": "{{message.text}}", "session_id": "wa:{{message.from}}", "callback_url": "{{openclaw.callback_url}}" }
|
|
252
|
+
|
|
253
|
+
- pattern: "^(onde|entrega|rastreio|pedido)"
|
|
254
|
+
action: webhook
|
|
255
|
+
url: "http://localhost:3210/trigger"
|
|
256
|
+
headers:
|
|
257
|
+
Authorization: "Bearer ${AIOSON_WEBHOOK_TOKEN}"
|
|
258
|
+
body_template: |
|
|
259
|
+
{ "squad": "logistica", "input": "{{message.text}}", "session_id": "wa:{{message.from}}", "callback_url": "{{openclaw.callback_url}}" }
|
|
260
|
+
|
|
261
|
+
- pattern: ".*"
|
|
262
|
+
action: webhook
|
|
263
|
+
url: "http://localhost:3210/trigger"
|
|
264
|
+
headers:
|
|
265
|
+
Authorization: "Bearer ${AIOSON_WEBHOOK_TOKEN}"
|
|
266
|
+
body_template: |
|
|
267
|
+
{ "squad": "atendimento", "input": "{{message.text}}", "session_id": "wa:{{message.from}}", "callback_url": "{{openclaw.callback_url}}" }
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## Security
|
|
273
|
+
|
|
274
|
+
| Concern | Mechanism |
|
|
275
|
+
|---------|-----------|
|
|
276
|
+
| Authentication | Bearer token (`AIOSON_WEBHOOK_TOKEN`) on all endpoints except `/health` |
|
|
277
|
+
| Rate limiting | 60 req/min per IP by default |
|
|
278
|
+
| Squad allowlist | Only squads in `.aioson/squads/` are accessible |
|
|
279
|
+
| Callback security | Callbacks only POST to URLs provided by the caller |
|
|
280
|
+
| Session isolation | Each `session_id` maps to a separate file; no cross-session access |
|
|
281
|
+
|
|
282
|
+
Set `AIOSON_WEBHOOK_TOKEN` to a random secret (minimum 32 chars):
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
openssl rand -hex 32
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## Environment variables
|
|
291
|
+
|
|
292
|
+
| Variable | Default | Description |
|
|
293
|
+
|----------|---------|-------------|
|
|
294
|
+
| `AIOSON_WEBHOOK_TOKEN` | — | Bearer token (required for security) |
|
|
295
|
+
| `AIOSON_WEBHOOK_PORT` | `3210` | Server port |
|
|
296
|
+
| `AIOSON_SESSION_TTL_HOURS` | `24` | Session expiry in hours |
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
## CLI reference
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
# Start webhook server
|
|
304
|
+
aioson squad:webhook start [path] [--port 3210] [--token TOKEN]
|
|
305
|
+
|
|
306
|
+
# Generate OpenClaw config snippet
|
|
307
|
+
aioson squad:webhook config [--channel whatsapp] [--squad atendimento] [--port 3210]
|
|
308
|
+
```
|
package/docs/pt/README.md
CHANGED
|
@@ -8,9 +8,15 @@ Bem-vindo à documentação em português do AIOSON — um framework leve de age
|
|
|
8
8
|
|---|---|
|
|
9
9
|
| [Início Rápido](./inicio-rapido.md) | Instale, configure e comece em menos de 10 minutos |
|
|
10
10
|
| [Comandos CLI](./comandos-cli.md) | Referência em português dos comandos do `aioson`, com descrição, exemplos e usos práticos |
|
|
11
|
+
| [Memória e Contexto](./memoria-contexto.md) | Guia prático dos arquivos de memória, descoberta, índices e pacotes mínimos de contexto |
|
|
12
|
+
| [Deyvin](./deyvin.md) | Guia do agente de continuidade e pair programming do AIOSON |
|
|
11
13
|
| [Cenários de Uso](./cenarios.md) | Exemplos completos e práticos para projetos MICRO, SMALL e MEDIUM |
|
|
12
14
|
| [Guia de Agentes](./agentes.md) | Quando usar cada agente e o que ele entrega |
|
|
13
|
-
| [Squad e
|
|
15
|
+
| [Squad e Genome](./squad-genome.md) | Como criar squads modulares, diferenciar skill de genome, aplicar genomes e publicar entregáveis HTML |
|
|
16
|
+
| [Agentes Customizados](./agentes-customizados.md) | Criar agentes personalizados com `squad:agent-create` — tipos, Voice DNA, infra operacional, maturity scoring |
|
|
17
|
+
| [Skills](./skills.md) | Sistema de skills: tipos, instalação, mapeamento por framework e compatibilidade cross-tool |
|
|
18
|
+
| [Automação de Squads](./automacao-squads.md) | Transformar processos de squad em scripts executáveis (Python/Node.js) que rodam sem LLM |
|
|
19
|
+
| [Output Strategy e Delivery](./output-strategy-delivery.md) | Configurar webhooks, automatizar entrega de conteúdo, monitorar delivery e troubleshoot |
|
|
14
20
|
| [Suporte Web3](./web3.md) | Guia para projetos dApp (Ethereum, Solana, Cardano) |
|
|
15
21
|
|
|
16
22
|
## Documentação em inglês
|
|
@@ -39,8 +45,62 @@ Depois, abra seu AI IDE e digite `/setup` para começar.
|
|
|
39
45
|
|
|
40
46
|
Fluxo recomendado:
|
|
41
47
|
- `@setup` primeiro
|
|
42
|
-
- em projeto existente sem documentação, rode `scan:project --folder=src` ou `scan:project --folder=app` para gerar `scan-index.md`, `scan-folders.md`, `scan-<pasta>.md
|
|
48
|
+
- em projeto existente sem documentação, rode `scan:project --folder=src` ou `scan:project --folder=app` para gerar `scan-index.md`, `scan-folders.md`, `scan-<pasta>.md`, `scan-aioson.md`, `memory-index.md` e `module-<pasta>.md`
|
|
49
|
+
- se existir `spec.md`, o scan local também deriva `spec-current.md` e `spec-history.md`
|
|
50
|
+
- depois rode novamente com `--with-llm` para gerar ou atualizar `discovery.md` e `skeleton-system.md`
|
|
51
|
+
- quando quiser mandar só o contexto mínimo para uma tarefa, use `context:pack`
|
|
52
|
+
- quando quiser entender como o `@deyvin` trabalha, leia [Deyvin](./deyvin.md)
|
|
53
|
+
- quando quiser continuar uma sessao, corrigir um recorte pequeno ou trabalhar em modo companheiro tecnico, use `@deyvin`
|
|
43
54
|
- `@discovery-design-doc` quando o escopo ainda estiver vago ou a feature for grande
|
|
44
55
|
- `@analyst` / `@architect` / `@dev` conforme a clareza e o tipo do trabalho
|
|
45
56
|
|
|
46
57
|
Esse passo de `discovery-design-doc` e recomendado, nao obrigatorio.
|
|
58
|
+
|
|
59
|
+
## Brownfield sem duvida
|
|
60
|
+
|
|
61
|
+
Se voce instalou o AIOSON num projeto que ja existe, este e o fluxo inicial mais seguro:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# 1. Instale/atualize o AIOSON no repositorio
|
|
65
|
+
npx @jaimevalasek/aioson install
|
|
66
|
+
|
|
67
|
+
# 2. Gere o contexto principal
|
|
68
|
+
npx @jaimevalasek/aioson setup:context --defaults
|
|
69
|
+
|
|
70
|
+
# 3. Gere os mapas locais do codigo
|
|
71
|
+
npx @jaimevalasek/aioson scan:project . --folder=src,app
|
|
72
|
+
|
|
73
|
+
# 4. Gere ou atualize a memoria brownfield consolidada com LLM
|
|
74
|
+
npx @jaimevalasek/aioson scan:project . --folder=src,app --with-llm --provider=openai
|
|
75
|
+
|
|
76
|
+
# 5. Monte um pacote minimo de contexto para a tarefa atual
|
|
77
|
+
npx @jaimevalasek/aioson context:pack . --agent=dev --goal="ajustar captions do editor" --module=src
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
O que cada etapa entrega:
|
|
81
|
+
|
|
82
|
+
- `scan:project` sem `--with-llm`: gera `scan-index.md`, `scan-folders.md`, `scan-<pasta>.md`, `scan-aioson.md`, `memory-index.md`, `module-<pasta>.md` e, quando houver `spec.md`, também `spec-current.md` + `spec-history.md`
|
|
83
|
+
- `scan:project` com `--with-llm`: gera ou atualiza `discovery.md` e `skeleton-system.md`
|
|
84
|
+
- `scan:project` nunca gera `architecture.md`; esse arquivo vem depois com `@architect`
|
|
85
|
+
- `context:pack`: gera `.aioson/context/context-pack.md` com o pacote mínimo recomendado para a tarefa atual
|
|
86
|
+
|
|
87
|
+
Sem API LLM no `aioson`, ainda existe um caminho valido:
|
|
88
|
+
|
|
89
|
+
- rode `scan:project . --folder=...` para gerar os mapas locais
|
|
90
|
+
- rode `context:pack` se quiser entregar menos contexto e gastar menos tokens
|
|
91
|
+
- abra Codex, Claude Code, Gemini CLI ou outro cliente de IA
|
|
92
|
+
- ative `@analyst`
|
|
93
|
+
- o `@analyst` pode usar `scan-index.md`, `scan-folders.md`, `scan-<pasta>.md` e `scan-aioson.md` para escrever `discovery.md`
|
|
94
|
+
- se o cliente permitir escolher modelo, prefira um modelo rapido/barato nessa etapa
|
|
95
|
+
|
|
96
|
+
Fluxo recomendado depois do scanner em projeto SMALL brownfield:
|
|
97
|
+
|
|
98
|
+
- `@analyst` para consolidar ou revisar a descoberta do sistema e do escopo atual
|
|
99
|
+
- `@architect` para transformar essa descoberta em `architecture.md`
|
|
100
|
+
- `@dev` somente depois da memoria estar pronta
|
|
101
|
+
|
|
102
|
+
Regra importante sobre atualizacao:
|
|
103
|
+
|
|
104
|
+
- `scan:project --with-llm` usa `merge` por padrao quando `discovery.md` ou `skeleton-system.md` ja existem
|
|
105
|
+
- antes de sobrescrever, ele cria backup automatico em `.aioson/backups/`
|
|
106
|
+
- se voce quiser regenerar do zero, use `--context-mode=rewrite`
|
package/docs/pt/advisor-spec.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## O que é um Advisor
|
|
11
11
|
|
|
12
|
-
Um Advisor é um agente operacional completo baseado no perfil cognitivo inferido de uma pessoa real. Ele não é um
|
|
12
|
+
Um Advisor é um agente operacional completo baseado no perfil cognitivo inferido de uma pessoa real. Ele não é um genome aplicado passivamente; ele opera diretamente em modo consultivo.
|
|
13
13
|
|
|
14
14
|
Capacidades esperadas:
|
|
15
15
|
|
|
@@ -21,16 +21,16 @@ Capacidades esperadas:
|
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
-
## Advisor versus
|
|
24
|
+
## Advisor versus Genome
|
|
25
25
|
|
|
26
|
-
| Aspecto |
|
|
26
|
+
| Aspecto | Genome | Advisor |
|
|
27
27
|
|---------|--------|---------|
|
|
28
28
|
| Tipo | Artefato passivo de conhecimento | Agente ativo |
|
|
29
29
|
| Execução direta | Não | Sim, em modo consultivo |
|
|
30
30
|
| Web search | Não | Sim |
|
|
31
31
|
| Memória | Não | Sim |
|
|
32
32
|
| Uso principal | Enriquecer executores | Opinar, desafiar, aconselhar |
|
|
33
|
-
| Localização | `.aioson/
|
|
33
|
+
| Localização | `.aioson/genomes/` | `.aioson/advisors/` |
|
|
34
34
|
|
|
35
35
|
---
|
|
36
36
|
|
|
@@ -53,7 +53,7 @@ mbti: "[XXXX]"
|
|
|
53
53
|
confidence: [low|medium|high]
|
|
54
54
|
|
|
55
55
|
profiler_report: ".aioson/profiler-reports/[slug]/enriched-profile.md"
|
|
56
|
-
genome: ".aioson/
|
|
56
|
+
genome: ".aioson/genomes/[slug].md"
|
|
57
57
|
|
|
58
58
|
web_search: true
|
|
59
59
|
memory: true
|