@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.
Files changed (330) hide show
  1. package/CHANGELOG.md +31 -1
  2. package/LICENSE +661 -21
  3. package/README.md +22 -3
  4. package/docs/en/squad-dashboard.md +372 -0
  5. package/docs/openclaw-bridge.md +308 -0
  6. package/docs/pt/README.md +62 -2
  7. package/docs/pt/advisor-spec.md +5 -5
  8. package/docs/pt/agentes-customizados.md +670 -0
  9. package/docs/pt/agentes.md +235 -23
  10. package/docs/pt/automacao-squads.md +407 -0
  11. package/docs/pt/cenarios.md +49 -5
  12. package/docs/pt/clientes-ai.md +62 -0
  13. package/docs/pt/comandos-cli.md +226 -17
  14. package/docs/pt/deyvin.md +115 -0
  15. package/docs/pt/genome-3.0-spec.md +11 -11
  16. package/docs/pt/inicio-rapido.md +63 -2
  17. package/docs/pt/memoria-contexto.md +255 -0
  18. package/docs/pt/output-strategy-delivery.md +655 -0
  19. package/docs/pt/profiler-system.md +17 -17
  20. package/docs/pt/runtime-observability.md +5 -1
  21. package/docs/pt/skills.md +175 -0
  22. package/docs/pt/squad-dashboard.md +373 -0
  23. package/docs/pt/{squad-genoma.md → squad-genome.md} +81 -75
  24. package/docs/testing/genome-2.0-matrix.md +5 -5
  25. package/docs/testing/genome-2.0-rollout.md +10 -10
  26. package/package.json +4 -4
  27. package/src/agents.js +21 -5
  28. package/src/backup-local.js +74 -0
  29. package/src/backup-provider.js +303 -0
  30. package/src/cli.js +276 -2
  31. package/src/commands/agents.js +22 -4
  32. package/src/commands/backup-local-cmd.js +25 -0
  33. package/src/commands/backup.js +533 -0
  34. package/src/commands/cloud.js +17 -17
  35. package/src/commands/context-pack.js +45 -0
  36. package/src/commands/implementation-plan.js +340 -0
  37. package/src/commands/learning.js +134 -0
  38. package/src/commands/live.js +1583 -0
  39. package/src/commands/runtime.js +1075 -2
  40. package/src/commands/scan-project.js +288 -24
  41. package/src/commands/setup-context.js +30 -2
  42. package/src/commands/skill.js +558 -0
  43. package/src/commands/squad-agent-create.js +788 -0
  44. package/src/commands/squad-daemon.js +209 -0
  45. package/src/commands/squad-dashboard.js +39 -0
  46. package/src/commands/squad-deploy.js +64 -0
  47. package/src/commands/squad-doctor.js +103 -1
  48. package/src/commands/squad-investigate.js +261 -0
  49. package/src/commands/squad-learning.js +209 -0
  50. package/src/commands/squad-mcp.js +270 -0
  51. package/src/commands/squad-pipeline.js +247 -1
  52. package/src/commands/squad-plan.js +329 -0
  53. package/src/commands/squad-processes.js +56 -0
  54. package/src/commands/squad-recovery.js +42 -0
  55. package/src/commands/squad-roi.js +291 -0
  56. package/src/commands/squad-score.js +250 -0
  57. package/src/commands/squad-status.js +38 -2
  58. package/src/commands/squad-validate.js +118 -1
  59. package/src/commands/squad-webhook.js +160 -0
  60. package/src/commands/squad-worker.js +191 -0
  61. package/src/commands/squad-worktrees.js +75 -0
  62. package/src/commands/test-agents.js +6 -1
  63. package/src/commands/web-map.js +70 -0
  64. package/src/commands/web-scrape.js +71 -0
  65. package/src/commands/workflow-next.js +8 -1
  66. package/src/commands/workflow-status.js +250 -0
  67. package/src/constants.js +88 -16
  68. package/src/context-memory.js +837 -0
  69. package/src/context-writer.js +47 -1
  70. package/src/delivery-runner.js +319 -0
  71. package/src/genome-files.js +1 -1
  72. package/src/genome-format.js +1 -1
  73. package/src/i18n/messages/en.js +333 -8
  74. package/src/i18n/messages/es.js +240 -6
  75. package/src/i18n/messages/fr.js +239 -5
  76. package/src/i18n/messages/pt-BR.js +330 -12
  77. package/src/installer.js +30 -2
  78. package/src/lib/genomes/compat.js +1 -1
  79. package/src/lib/webhook-server.js +328 -0
  80. package/src/mcp-connectors/registry.js +602 -0
  81. package/src/runtime-store.js +1037 -42
  82. package/src/session-handoff.js +77 -0
  83. package/src/squad/external-session.js +180 -0
  84. package/src/squad/inter-squad.js +74 -0
  85. package/src/squad/recovery-context.js +201 -0
  86. package/src/squad/worktree-manager.js +114 -0
  87. package/src/squad-daemon.js +490 -0
  88. package/src/squad-dashboard/api.js +223 -0
  89. package/src/squad-dashboard/attachment-handler.js +93 -0
  90. package/src/squad-dashboard/context-monitor.js +157 -0
  91. package/src/squad-dashboard/execution-logs.js +115 -0
  92. package/src/squad-dashboard/hunk-review.js +209 -0
  93. package/src/squad-dashboard/metrics.js +133 -0
  94. package/src/squad-dashboard/process-monitor.js +125 -0
  95. package/src/squad-dashboard/renderer.js +858 -0
  96. package/src/squad-dashboard/server.js +232 -0
  97. package/src/squad-dashboard/styles.js +525 -0
  98. package/src/squad-dashboard/token-tracker.js +99 -0
  99. package/src/web.js +284 -0
  100. package/src/worker-runner.js +339 -0
  101. package/template/.aioson/agents/analyst.md +40 -9
  102. package/template/.aioson/agents/architect.md +24 -5
  103. package/template/.aioson/agents/dev.md +254 -25
  104. package/template/.aioson/agents/deyvin.md +174 -0
  105. package/template/.aioson/agents/discovery-design-doc.md +25 -1
  106. package/template/.aioson/agents/{genoma.md → genome.md} +20 -20
  107. package/template/.aioson/agents/neo.md +152 -0
  108. package/template/.aioson/agents/orache.md +388 -0
  109. package/template/.aioson/agents/orchestrator.md +63 -2
  110. package/template/.aioson/agents/pair.md +5 -0
  111. package/template/.aioson/agents/pm.md +17 -5
  112. package/template/.aioson/agents/product.md +113 -29
  113. package/template/.aioson/agents/profiler-enricher.md +1 -1
  114. package/template/.aioson/agents/profiler-forge.md +9 -9
  115. package/template/.aioson/agents/profiler-researcher.md +1 -1
  116. package/template/.aioson/agents/qa.md +18 -5
  117. package/template/.aioson/agents/setup.md +138 -18
  118. package/template/.aioson/agents/sheldon.md +603 -0
  119. package/template/.aioson/agents/squad.md +866 -28
  120. package/template/.aioson/agents/tester.md +254 -0
  121. package/template/.aioson/agents/ux-ui.md +289 -34
  122. package/template/.aioson/config.md +181 -0
  123. package/template/.aioson/context/spec.md.template +17 -0
  124. package/template/.aioson/genomes/.gitkeep +0 -0
  125. package/template/.aioson/installed-skills/.gitkeep +0 -0
  126. package/template/.aioson/locales/en/agents/analyst.md +34 -4
  127. package/template/.aioson/locales/en/agents/architect.md +18 -0
  128. package/template/.aioson/locales/en/agents/dev.md +155 -11
  129. package/template/.aioson/locales/en/agents/deyvin.md +137 -0
  130. package/template/.aioson/locales/en/agents/{genoma.md → genome.md} +14 -14
  131. package/template/.aioson/locales/en/agents/neo.md +8 -0
  132. package/template/.aioson/locales/en/agents/orchestrator.md +62 -2
  133. package/template/.aioson/locales/en/agents/pair.md +5 -0
  134. package/template/.aioson/locales/en/agents/pm.md +7 -0
  135. package/template/.aioson/locales/en/agents/product.md +35 -17
  136. package/template/.aioson/locales/en/agents/qa.md +56 -0
  137. package/template/.aioson/locales/en/agents/setup.md +53 -6
  138. package/template/.aioson/locales/en/agents/sheldon.md +340 -0
  139. package/template/.aioson/locales/en/agents/squad.md +203 -15
  140. package/template/.aioson/locales/en/agents/ux-ui.md +383 -35
  141. package/template/.aioson/locales/es/agents/analyst.md +24 -4
  142. package/template/.aioson/locales/es/agents/architect.md +18 -0
  143. package/template/.aioson/locales/es/agents/dev.md +136 -9
  144. package/template/.aioson/locales/es/agents/deyvin.md +97 -0
  145. package/template/.aioson/locales/es/agents/{genoma.md → genome.md} +13 -13
  146. package/template/.aioson/locales/es/agents/neo.md +48 -0
  147. package/template/.aioson/locales/es/agents/orache.md +103 -0
  148. package/template/.aioson/locales/es/agents/orchestrator.md +62 -2
  149. package/template/.aioson/locales/es/agents/pair.md +5 -0
  150. package/template/.aioson/locales/es/agents/pm.md +7 -0
  151. package/template/.aioson/locales/es/agents/product.md +13 -3
  152. package/template/.aioson/locales/es/agents/qa.md +33 -0
  153. package/template/.aioson/locales/es/agents/setup.md +30 -6
  154. package/template/.aioson/locales/es/agents/sheldon.md +192 -0
  155. package/template/.aioson/locales/es/agents/squad.md +284 -15
  156. package/template/.aioson/locales/es/agents/ux-ui.md +34 -25
  157. package/template/.aioson/locales/fr/agents/analyst.md +24 -4
  158. package/template/.aioson/locales/fr/agents/architect.md +18 -0
  159. package/template/.aioson/locales/fr/agents/dev.md +136 -9
  160. package/template/.aioson/locales/fr/agents/deyvin.md +97 -0
  161. package/template/.aioson/locales/fr/agents/{genoma.md → genome.md} +7 -7
  162. package/template/.aioson/locales/fr/agents/neo.md +48 -0
  163. package/template/.aioson/locales/fr/agents/orache.md +104 -0
  164. package/template/.aioson/locales/fr/agents/orchestrator.md +62 -2
  165. package/template/.aioson/locales/fr/agents/pair.md +5 -0
  166. package/template/.aioson/locales/fr/agents/pm.md +7 -0
  167. package/template/.aioson/locales/fr/agents/product.md +13 -3
  168. package/template/.aioson/locales/fr/agents/qa.md +33 -0
  169. package/template/.aioson/locales/fr/agents/setup.md +30 -6
  170. package/template/.aioson/locales/fr/agents/sheldon.md +192 -0
  171. package/template/.aioson/locales/fr/agents/squad.md +279 -10
  172. package/template/.aioson/locales/fr/agents/ux-ui.md +34 -25
  173. package/template/.aioson/locales/pt-BR/agents/analyst.md +45 -4
  174. package/template/.aioson/locales/pt-BR/agents/architect.md +29 -0
  175. package/template/.aioson/locales/pt-BR/agents/dev.md +167 -15
  176. package/template/.aioson/locales/pt-BR/agents/deyvin.md +137 -0
  177. package/template/.aioson/locales/pt-BR/agents/{genoma.md → genome.md} +49 -49
  178. package/template/.aioson/locales/pt-BR/agents/neo.md +147 -0
  179. package/template/.aioson/locales/pt-BR/agents/orache.md +137 -0
  180. package/template/.aioson/locales/pt-BR/agents/orchestrator.md +62 -2
  181. package/template/.aioson/locales/pt-BR/agents/pair.md +5 -0
  182. package/template/.aioson/locales/pt-BR/agents/pm.md +7 -0
  183. package/template/.aioson/locales/pt-BR/agents/product.md +43 -20
  184. package/template/.aioson/locales/pt-BR/agents/qa.md +67 -0
  185. package/template/.aioson/locales/pt-BR/agents/setup.md +53 -6
  186. package/template/.aioson/locales/pt-BR/agents/sheldon.md +192 -0
  187. package/template/.aioson/locales/pt-BR/agents/squad.md +591 -47
  188. package/template/.aioson/locales/pt-BR/agents/ux-ui.md +369 -22
  189. package/template/.aioson/my-agents/.gitkeep +0 -0
  190. package/template/.aioson/rules/.gitkeep +0 -0
  191. package/template/.aioson/rules/squad/.gitkeep +0 -0
  192. package/template/.aioson/rules/squad/README.md +50 -0
  193. package/template/.aioson/schemas/genome-meta.schema.json +1 -1
  194. package/template/.aioson/schemas/genome.schema.json +1 -1
  195. package/template/.aioson/schemas/squad-blueprint.schema.json +32 -0
  196. package/template/.aioson/schemas/squad-manifest.schema.json +434 -1
  197. package/template/.aioson/skills/design/bold-editorial-ui/SKILL.md +205 -0
  198. package/template/.aioson/skills/design/bold-editorial-ui/references/art-direction.md +338 -0
  199. package/template/.aioson/skills/design/bold-editorial-ui/references/components.md +977 -0
  200. package/template/.aioson/skills/design/bold-editorial-ui/references/dashboards.md +218 -0
  201. package/template/.aioson/skills/design/bold-editorial-ui/references/design-tokens.md +326 -0
  202. package/template/.aioson/skills/design/bold-editorial-ui/references/motion.md +461 -0
  203. package/template/.aioson/skills/design/bold-editorial-ui/references/patterns.md +293 -0
  204. package/template/.aioson/skills/design/bold-editorial-ui/references/websites.md +352 -0
  205. package/template/.aioson/skills/design/clean-saas-ui/SKILL.md +210 -0
  206. package/template/.aioson/skills/design/clean-saas-ui/references/art-direction.md +319 -0
  207. package/template/.aioson/skills/design/clean-saas-ui/references/components.md +365 -0
  208. package/template/.aioson/skills/design/clean-saas-ui/references/dashboards.md +196 -0
  209. package/template/.aioson/skills/design/clean-saas-ui/references/design-tokens.md +244 -0
  210. package/template/.aioson/skills/design/clean-saas-ui/references/motion.md +235 -0
  211. package/template/.aioson/skills/design/clean-saas-ui/references/patterns.md +215 -0
  212. package/template/.aioson/skills/design/clean-saas-ui/references/websites.md +295 -0
  213. package/template/.aioson/skills/design/cognitive-core-ui/SKILL.md +203 -0
  214. package/template/.aioson/skills/design/cognitive-core-ui/references/art-direction.md +339 -0
  215. package/template/.aioson/skills/design/cognitive-core-ui/references/components.md +407 -0
  216. package/template/.aioson/skills/design/cognitive-core-ui/references/dashboards.md +272 -0
  217. package/template/.aioson/skills/design/cognitive-core-ui/references/design-tokens.md +524 -0
  218. package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +277 -0
  219. package/template/.aioson/skills/design/cognitive-core-ui/references/patterns.md +289 -0
  220. package/template/.aioson/skills/design/cognitive-core-ui/references/websites.md +437 -0
  221. package/template/.aioson/skills/design/interface-design/SKILL.md +47 -0
  222. package/template/.aioson/skills/design/interface-design/references/components-and-states.md +105 -0
  223. package/template/.aioson/skills/design/interface-design/references/design-directions.md +101 -0
  224. package/template/.aioson/skills/design/interface-design/references/handoff-and-quality.md +71 -0
  225. package/template/.aioson/skills/design/interface-design/references/intent-and-domain.md +74 -0
  226. package/template/.aioson/skills/design/interface-design/references/tokens-and-depth.md +173 -0
  227. package/template/.aioson/skills/design/premium-command-center-ui/SKILL.md +62 -0
  228. package/template/.aioson/skills/design/premium-command-center-ui/references/operations.md +74 -0
  229. package/template/.aioson/skills/design/premium-command-center-ui/references/patterns.md +116 -0
  230. package/template/.aioson/skills/design/premium-command-center-ui/references/validation.md +47 -0
  231. package/template/.aioson/skills/design/premium-command-center-ui/references/visual-system.md +215 -0
  232. package/template/.aioson/skills/design/warm-craft-ui/SKILL.md +209 -0
  233. package/template/.aioson/skills/design/warm-craft-ui/references/art-direction.md +324 -0
  234. package/template/.aioson/skills/design/warm-craft-ui/references/components.md +508 -0
  235. package/template/.aioson/skills/design/warm-craft-ui/references/dashboards.md +223 -0
  236. package/template/.aioson/skills/design/warm-craft-ui/references/design-tokens.md +374 -0
  237. package/template/.aioson/skills/design/warm-craft-ui/references/motion.md +356 -0
  238. package/template/.aioson/skills/design/warm-craft-ui/references/patterns.md +288 -0
  239. package/template/.aioson/skills/design/warm-craft-ui/references/websites.md +289 -0
  240. package/template/.aioson/skills/design-system/SKILL.md +92 -0
  241. package/template/.aioson/skills/design-system/cognitive-core-ui.skill +0 -0
  242. package/template/.aioson/skills/design-system/components/SKILL.md +274 -0
  243. package/template/.aioson/skills/design-system/components/SKILL.md:Zone.Identifier +0 -0
  244. package/template/.aioson/skills/design-system/dashboards/SKILL.md +184 -0
  245. package/template/.aioson/skills/design-system/dashboards/SKILL.md:Zone.Identifier +0 -0
  246. package/template/.aioson/skills/design-system/foundations/SKILL.md +250 -0
  247. package/template/.aioson/skills/design-system/foundations/SKILL.md:Zone.Identifier +0 -0
  248. package/template/.aioson/skills/design-system/motion/SKILL.md +197 -0
  249. package/template/.aioson/skills/design-system/motion/SKILL.md:Zone.Identifier +0 -0
  250. package/template/.aioson/skills/design-system/patterns/SKILL.md +231 -0
  251. package/template/.aioson/skills/design-system/patterns/SKILL.md:Zone.Identifier +0 -0
  252. package/template/.aioson/skills/premium-visual-design/SKILL.md +83 -0
  253. package/template/.aioson/skills/premium-visual-design/components/agent-badge.md +92 -0
  254. package/template/.aioson/skills/premium-visual-design/components/dependency-node.md +102 -0
  255. package/template/.aioson/skills/premium-visual-design/components/mention-autocomplete.md +136 -0
  256. package/template/.aioson/skills/premium-visual-design/components/notification-center.md +136 -0
  257. package/template/.aioson/skills/premium-visual-design/components/review-action-bar.md +188 -0
  258. package/template/.aioson/skills/premium-visual-design/components/team-switcher.md +131 -0
  259. package/template/.aioson/skills/premium-visual-design/patterns/agent-message-thread.md +198 -0
  260. package/template/.aioson/skills/premium-visual-design/patterns/notification-panel.md +275 -0
  261. package/template/.aioson/skills/premium-visual-design/patterns/review-workflow-ui.md +234 -0
  262. package/template/.aioson/skills/premium-visual-design/patterns/task-dependency-graph.md +147 -0
  263. package/template/.aioson/skills/premium-visual-design/tokens/status-extended.md +142 -0
  264. package/template/.aioson/skills/squad/SKILL.md +58 -0
  265. package/template/.aioson/skills/squad/domains/.gitkeep +0 -0
  266. package/template/.aioson/skills/squad/formats/.gitkeep +0 -0
  267. package/template/.aioson/skills/squad/formats/catalog.json +15 -0
  268. package/template/.aioson/skills/squad/formats/content/blog-post.md +47 -0
  269. package/template/.aioson/skills/squad/formats/content/newsletter.md +47 -0
  270. package/template/.aioson/skills/squad/formats/creative/podcast-script.md +43 -0
  271. package/template/.aioson/skills/squad/formats/creative/video-script.md +41 -0
  272. package/template/.aioson/skills/squad/formats/social/instagram-feed.md +42 -0
  273. package/template/.aioson/skills/squad/formats/social/linkedin-post.md +42 -0
  274. package/template/.aioson/skills/squad/formats/social/tiktok.md +39 -0
  275. package/template/.aioson/skills/squad/formats/social/twitter-thread.md +39 -0
  276. package/template/.aioson/skills/squad/formats/social/youtube-long.md +47 -0
  277. package/template/.aioson/skills/squad/formats/social/youtube-shorts.md +39 -0
  278. package/template/.aioson/skills/squad/patterns/.gitkeep +0 -0
  279. package/template/.aioson/skills/squad/patterns/multi-platform-pattern.md +108 -0
  280. package/template/.aioson/skills/squad/patterns/persona-based-pattern.md +98 -0
  281. package/template/.aioson/skills/squad/patterns/pipeline-pattern.md +106 -0
  282. package/template/.aioson/skills/squad/patterns/review-loop-pattern.md +81 -0
  283. package/template/.aioson/skills/squad/references/.gitkeep +0 -0
  284. package/template/.aioson/skills/squad/references/checklist-templates.md +122 -0
  285. package/template/.aioson/skills/squad/references/executor-archetypes.md +123 -0
  286. package/template/.aioson/skills/squad/references/workflow-templates.md +169 -0
  287. package/template/.aioson/skills/static/debugging-protocol.md +42 -0
  288. package/template/.aioson/skills/static/git-worktrees.md +36 -0
  289. package/template/.aioson/tasks/implementation-plan.md +307 -0
  290. package/template/.aioson/tasks/squad-create.md +1 -1
  291. package/template/.aioson/tasks/squad-design.md +28 -0
  292. package/template/.aioson/tasks/squad-execution-plan.md +279 -0
  293. package/template/.aioson/tasks/squad-export.md +1 -1
  294. package/template/.aioson/tasks/squad-investigate.md +44 -0
  295. package/template/.aioson/tasks/squad-learning-review.md +44 -0
  296. package/template/.aioson/tasks/squad-output-config.md +177 -0
  297. package/template/.aioson/tasks/squad-profile.md +48 -0
  298. package/template/.aioson/tasks/squad-review.md +61 -0
  299. package/template/.aioson/tasks/squad-task-decompose.md +66 -0
  300. package/template/.aioson/tasks/squad-validate.md +1 -1
  301. package/template/.claude/commands/aioson/agent/deyvin.md +5 -0
  302. package/template/.claude/commands/aioson/agent/discovery-design-doc.md +5 -0
  303. package/template/.claude/commands/aioson/agent/genome.md +5 -0
  304. package/template/.claude/commands/aioson/agent/neo.md +5 -0
  305. package/template/.claude/commands/aioson/agent/product.md +5 -0
  306. package/template/.claude/commands/aioson/agent/profiler-enricher.md +5 -0
  307. package/template/.claude/commands/aioson/agent/profiler-forge.md +5 -0
  308. package/template/.claude/commands/aioson/agent/profiler-researcher.md +5 -0
  309. package/template/.claude/commands/aioson/agent/squad.md +5 -0
  310. package/template/.claude/commands/aioson/agent/tester.md +5 -0
  311. package/template/.gemini/GEMINI.md +3 -0
  312. package/template/.gemini/commands/aios-deyvin.toml +6 -0
  313. package/template/.gemini/commands/aios-neo.toml +4 -0
  314. package/template/.gemini/commands/aios-pair.toml +6 -0
  315. package/template/.gemini/commands/aios-tester.toml +6 -0
  316. package/template/AGENTS.md +37 -6
  317. package/template/CLAUDE.md +34 -4
  318. package/template/OPENCODE.md +8 -2
  319. package/template/squad-searches/.gitkeep +0 -0
  320. package/template/.aioson/skills/static/interface-design.md +0 -372
  321. package/template/.aioson/skills/static/premium-command-center-ui.md +0 -190
  322. /package/template/.aioson/{genomas → docs}/.gitkeep +0 -0
  323. /package/template/.claude/commands/aioson/{analyst.md → agent/analyst.md} +0 -0
  324. /package/template/.claude/commands/aioson/{architect.md → agent/architect.md} +0 -0
  325. /package/template/.claude/commands/aioson/{dev.md → agent/dev.md} +0 -0
  326. /package/template/.claude/commands/aioson/{orchestrator.md → agent/orchestrator.md} +0 -0
  327. /package/template/.claude/commands/aioson/{pm.md → agent/pm.md} +0 -0
  328. /package/template/.claude/commands/aioson/{qa.md → agent/qa.md} +0 -0
  329. /package/template/.claude/commands/aioson/{setup.md → agent/setup.md} +0 -0
  330. /package/template/.claude/commands/aioson/{ux-ui.md → agent/ux-ui.md} +0 -0
@@ -0,0 +1,524 @@
1
+ # Design Tokens — Cognitive Core UI
2
+
3
+ All components and patterns depend on these tokens. Load this file first before any other reference.
4
+
5
+ ---
6
+
7
+ ## Typography strategy
8
+
9
+ Default to **system fonts** first. Add Google Fonts only when the agent decides the stack, product context, and delivery constraints justify them.
10
+
11
+ **System font stack (default — works everywhere, no CDN needed):**
12
+ ```css
13
+ --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
14
+ --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
15
+ --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
16
+ ```
17
+
18
+ **Google Fonts (optional — use when building the Mentes Sintéticas aesthetic explicitly):**
19
+ ```css
20
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
21
+
22
+ --font-display: 'Inter', system-ui, sans-serif;
23
+ --font-body: 'Inter', system-ui, sans-serif;
24
+ --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
25
+ ```
26
+
27
+ ---
28
+
29
+ ## Complete CSS Variables
30
+
31
+ Include this full block in every project.
32
+
33
+ ```css
34
+ /* ═══════════════════════════════════════════
35
+ SHARED TOKENS — in :root (see Token Scope Guardrails)
36
+ ═══════════════════════════════════════════ */
37
+ :root {
38
+ /* Typography (set defaults here; override with Google Fonts if needed) */
39
+ --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
40
+ --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
41
+ --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
42
+
43
+ /* Font Sizes */
44
+ --text-xs: 0.72rem; /* 11.5px — micro labels, mono uppercase */
45
+ --text-sm: 0.82rem; /* 13px */
46
+ --text-base: 0.95rem; /* 15px — default body */
47
+ --text-lg: 1rem; /* 16px */
48
+ --text-xl: 1.25rem; /* 20px */
49
+ --text-2xl: 1.6rem; /* 25.6px */
50
+ --text-3xl: 2.2rem; /* 35px */
51
+ --text-4xl: 3rem; /* 48px — stat numbers */
52
+ --text-5xl: 4rem; /* 64px — hero headings */
53
+
54
+ /* Font Weights */
55
+ --weight-light: 300;
56
+ --weight-normal: 400;
57
+ --weight-medium: 500;
58
+ --weight-semibold: 600;
59
+ --weight-bold: 700;
60
+ --weight-black: 800;
61
+
62
+ /* Letter Spacing */
63
+ --tracking-tight: -0.025em;
64
+ --tracking-normal: 0;
65
+ --tracking-wide: 0.04em;
66
+ --tracking-wider: 0.08em;
67
+ --tracking-widest: 0.12em;
68
+
69
+ /* Line Height */
70
+ --leading-none: 1;
71
+ --leading-tight: 1.08;
72
+ --leading-snug: 1.24;
73
+ --leading-normal: 1.5;
74
+ --leading-relaxed: 1.68;
75
+
76
+ /* Spacing */
77
+ --space-0: 0;
78
+ --space-1: 0.25rem;
79
+ --space-2: 0.5rem;
80
+ --space-3: 0.75rem;
81
+ --space-4: 1rem;
82
+ --space-5: 1.25rem;
83
+ --space-6: 1.5rem;
84
+ --space-8: 2rem;
85
+ --space-10: 2.5rem;
86
+ --space-12: 3rem;
87
+ --space-16: 4rem;
88
+ --space-20: 5rem;
89
+ --space-24: 6rem;
90
+
91
+ /* Border Radius */
92
+ --radius-sm: 0.375rem;
93
+ --radius-md: 0.625rem;
94
+ --radius-lg: 0.875rem;
95
+ --radius-xl: 1.125rem;
96
+ --radius-2xl: 1.5rem;
97
+ --radius-full: 9999px;
98
+
99
+ /* Interactive element heights */
100
+ --control-xs: 1.75rem;
101
+ --control-sm: 2rem;
102
+ --control-md: 2.5rem;
103
+ --control-lg: 3rem;
104
+
105
+ /* Transitions */
106
+ --transition-fast: 140ms ease;
107
+ --transition-base: 200ms ease;
108
+ --transition-slow: 300ms ease;
109
+ --transition-theme: background 240ms ease, color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
110
+
111
+ /* Shared interaction tokens */
112
+ --focus-ring-width: 2px;
113
+ --focus-ring-offset: 2px;
114
+
115
+ /* Z-index */
116
+ --z-base: 0;
117
+ --z-elevated: 10;
118
+ --z-dropdown: 20;
119
+ --z-sticky: 30;
120
+ --z-modal: 50;
121
+ --z-toast: 60;
122
+ }
123
+
124
+ /* ═══════════════════════════════════════════
125
+ DARK THEME
126
+ ═══════════════════════════════════════════ */
127
+ [data-theme="dark"] {
128
+ /* Backgrounds — layered navy depth */
129
+ --bg-void: #060910;
130
+ --bg-base: #0b0f15;
131
+ --bg-surface: #111827;
132
+ --bg-elevated: #172133;
133
+ --bg-overlay: #223148;
134
+
135
+ /* Borders */
136
+ --border-subtle: rgba(255, 255, 255, 0.06);
137
+ --border-medium: rgba(255, 255, 255, 0.10);
138
+ --border-strong: rgba(255, 255, 255, 0.16);
139
+ --border-accent: rgba(34, 211, 238, 0.26);
140
+ --border-accent-strong: rgba(34, 211, 238, 0.50);
141
+
142
+ /* Text */
143
+ --text-heading: #f7fafc;
144
+ --text-primary: #dbe4ee;
145
+ --text-secondary: #95a3b8;
146
+ --text-muted: #6b778c;
147
+ --text-accent: #34d8ff;
148
+ --text-inverse: #081018;
149
+
150
+ /* Accent — teal/cyan */
151
+ --accent: #22d3ee;
152
+ --accent-strong: #09bfe0;
153
+ --accent-dim: rgba(34, 211, 238, 0.16);
154
+ --accent-glow: rgba(34, 211, 238, 0.12);
155
+ --accent-subtle: rgba(34, 211, 238, 0.08);
156
+ --accent-hover: #06b6d4;
157
+ --accent-contrast: #07131a;
158
+
159
+ /* Semantic */
160
+ --semantic-green: #16c784;
161
+ --semantic-green-dim: rgba(22, 199, 132, 0.18);
162
+ --semantic-amber: #f4a91d;
163
+ --semantic-amber-dim: rgba(244, 169, 29, 0.18);
164
+ --semantic-red: #ff5a67;
165
+ --semantic-red-dim: rgba(255, 90, 103, 0.18);
166
+ --semantic-blue: #59a7ff;
167
+ --semantic-blue-dim: rgba(89, 167, 255, 0.18);
168
+ --semantic-purple: #a78bfa;
169
+ --semantic-purple-dim: rgba(167, 139, 250, 0.18);
170
+
171
+ /* Shadows */
172
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.22);
173
+ --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.32);
174
+ --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.44);
175
+ --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.05), 0 10px 28px rgba(3, 12, 22, 0.42);
176
+ --shadow-glow-strong: 0 0 30px rgba(34, 211, 238, 0.20), 0 0 10px rgba(34, 211, 238, 0.10);
177
+
178
+ /* Scrollbar */
179
+ --scrollbar-track: #0b0f15;
180
+ --scrollbar-thumb: #172133;
181
+ }
182
+
183
+ /* ═══════════════════════════════════════════
184
+ LIGHT THEME
185
+ ═══════════════════════════════════════════ */
186
+ [data-theme="light"] {
187
+ /* Backgrounds — layered white/gray */
188
+ --bg-void: #edf3f9;
189
+ --bg-base: #f5f8fc;
190
+ --bg-surface: #ffffff;
191
+ --bg-elevated: #eaf0f6;
192
+ --bg-overlay: #dde8f1;
193
+
194
+ /* Borders */
195
+ --border-subtle: rgba(12, 23, 40, 0.07);
196
+ --border-medium: rgba(12, 23, 40, 0.12);
197
+ --border-strong: rgba(12, 23, 40, 0.18);
198
+ --border-accent: rgba(14, 165, 233, 0.22);
199
+ --border-accent-strong: rgba(14, 165, 233, 0.42);
200
+
201
+ /* Text */
202
+ --text-heading: #0f172a;
203
+ --text-primary: #334155;
204
+ --text-secondary: #61748a;
205
+ --text-muted: #8b9aae;
206
+ --text-accent: #0f766e;
207
+ --text-inverse: #f8fbff;
208
+
209
+ /* Accent — deeper teal for AA-friendly buttons and links */
210
+ --accent: #0f766e;
211
+ --accent-strong: #115e59;
212
+ --accent-dim: rgba(15, 118, 110, 0.10);
213
+ --accent-glow: rgba(15, 118, 110, 0.08);
214
+ --accent-subtle: rgba(15, 118, 110, 0.05);
215
+ --accent-hover: #115e59;
216
+ --accent-contrast: #f8fbff;
217
+
218
+ /* Semantic */
219
+ --semantic-green: #059669;
220
+ --semantic-green-dim: rgba(5, 150, 105, 0.10);
221
+ --semantic-amber: #d97706;
222
+ --semantic-amber-dim: rgba(217, 119, 6, 0.10);
223
+ --semantic-red: #dc2626;
224
+ --semantic-red-dim: rgba(220, 38, 38, 0.10);
225
+ --semantic-blue: #2563eb;
226
+ --semantic-blue-dim: rgba(37, 99, 235, 0.10);
227
+ --semantic-purple: #7c3aed;
228
+ --semantic-purple-dim: rgba(124, 58, 237, 0.10);
229
+
230
+ /* Shadows */
231
+ --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
232
+ --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
233
+ --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
234
+ --shadow-glow: 0 0 0 1px rgba(14, 165, 233, 0.04), 0 14px 28px rgba(15, 23, 42, 0.06);
235
+ --shadow-glow-strong: 0 4px 16px rgba(14, 165, 233, 0.12);
236
+
237
+ /* Scrollbar */
238
+ --scrollbar-track: #f5f8fc;
239
+ --scrollbar-thumb: #cbd5e1;
240
+ }
241
+
242
+ /* ═══════════════════════════════════════════
243
+ BASE STYLES
244
+ ═══════════════════════════════════════════ */
245
+ body {
246
+ font-family: var(--font-body);
247
+ margin: 0;
248
+ -webkit-font-smoothing: antialiased;
249
+ }
250
+
251
+ [data-theme] {
252
+ color: var(--text-primary);
253
+ background: var(--bg-base);
254
+ transition: var(--transition-theme);
255
+ }
256
+
257
+ *, *::before, *::after { box-sizing: border-box; }
258
+
259
+ /* Custom scrollbar */
260
+ ::-webkit-scrollbar { width: 6px; height: 6px; }
261
+ ::-webkit-scrollbar-track { background: var(--scrollbar-track); }
262
+ ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: var(--radius-full); }
263
+ ::-webkit-scrollbar-thumb:hover { background: var(--border-medium); }
264
+ ```
265
+
266
+ ---
267
+
268
+ ## Token Scope Guardrails
269
+
270
+ **This is the most critical implementation rule.** Font and typography bugs almost always come from scope violations.
271
+
272
+ **Rule 1:** Put typography, spacing, radius, and transition tokens in `:root` — not in `[data-theme]`.
273
+
274
+ **Rule 2:** Put theme-specific colors and surface values on the theme owner (`[data-theme]`).
275
+
276
+ **Rule 3:** If `body` consumes `var(--font-body)`, that variable must exist in `:root` or in a scope `body` inherits.
277
+
278
+ **Rule 4:** If the theme lives on a shell container instead of `body`, either keep typography in `:root`, or apply `font-family` directly on that shell.
279
+
280
+ **Safe — typography in :root:**
281
+ ```css
282
+ :root { --font-body: system-ui, sans-serif; }
283
+ body { font-family: var(--font-body); }
284
+ .shell[data-theme="dark"] { --bg-base: #0b0f15; }
285
+ ```
286
+
287
+ **Safe — theme on shell, font applied there:**
288
+ ```css
289
+ :root { --font-body: system-ui, sans-serif; }
290
+ .shell[data-theme="dark"] { --bg-base: #0b0f15; font-family: var(--font-body); }
291
+ ```
292
+
293
+ ---
294
+
295
+ ## Interaction Guardrails
296
+
297
+ These rules exist to stop the most common quality failures: illegible hover states, washed-out light theme buttons, and decorative overload.
298
+
299
+ 1. Primary actions on accent backgrounds must use `var(--accent-contrast)`, not `var(--bg-base)`.
300
+ 2. Hover states may change brightness, but must preserve or improve text contrast.
301
+ 3. Focus styles must be visible on both themes. Minimum: `outline: var(--focus-ring-width) solid var(--accent)` with `outline-offset: var(--focus-ring-offset)`.
302
+ 4. If a control background becomes lighter on hover, its foreground must be re-evaluated. Do not assume the base text color still works.
303
+ 5. Favor one accent family and two neutral text tiers over adding extra decorative colors.
304
+
305
+ **Unsafe (font breaks silently):**
306
+ ```css
307
+ /* WRONG */
308
+ .shell[data-theme="dark"] { --font-body: 'Inter', sans-serif; } /* defined on child */
309
+ body { font-family: var(--font-body); } /* body can't inherit from .shell */
310
+ ```
311
+
312
+ ---
313
+
314
+ ## Typography Patterns
315
+
316
+ ### Mono Label — the system's most distinctive element
317
+
318
+ ```css
319
+ font-family: var(--font-mono);
320
+ font-size: var(--text-xs);
321
+ font-weight: var(--weight-semibold);
322
+ letter-spacing: var(--tracking-widest);
323
+ text-transform: uppercase;
324
+ color: var(--text-secondary);
325
+ ```
326
+
327
+ Use for: section headers, stat labels, nav labels, badge text, timestamps, IDs.
328
+ **Do not overuse** — if everything is uppercase mono, nothing has emphasis.
329
+
330
+ ### Display Heading
331
+
332
+ ```css
333
+ font-family: var(--font-display);
334
+ font-weight: var(--weight-bold);
335
+ letter-spacing: var(--tracking-tight);
336
+ line-height: var(--leading-tight);
337
+ color: var(--text-heading);
338
+ ```
339
+
340
+ Sizes: `--text-5xl` (hero) · `--text-3xl` (page title) · `--text-2xl` (section) · `--text-xl` (card title).
341
+
342
+ ### Stat Number
343
+
344
+ ```css
345
+ font-family: var(--font-display);
346
+ font-size: var(--text-4xl);
347
+ font-weight: var(--weight-bold);
348
+ line-height: var(--leading-none);
349
+ color: var(--text-heading);
350
+ font-variant-numeric: tabular-nums;
351
+ ```
352
+
353
+ Pair with suffix: `font-size: var(--text-lg); color: var(--text-muted)`.
354
+
355
+ ### Body Text
356
+
357
+ ```css
358
+ font-family: var(--font-body);
359
+ font-size: var(--text-base);
360
+ font-weight: var(--weight-normal);
361
+ line-height: var(--leading-relaxed);
362
+ color: var(--text-primary);
363
+ ```
364
+
365
+ ### Primary Action
366
+
367
+ ```css
368
+ background: var(--accent);
369
+ color: var(--accent-contrast);
370
+ border: none;
371
+ font-family: var(--font-body);
372
+ font-size: var(--text-sm);
373
+ font-weight: var(--weight-semibold);
374
+ letter-spacing: var(--tracking-wide);
375
+ ```
376
+
377
+ Use mono only for short command-like labels. Default buttons should stay in the body family for better readability.
378
+
379
+ ### Numbers in tables and lists
380
+
381
+ ```css
382
+ font-variant-numeric: tabular-nums;
383
+ font-feature-settings: "tnum" 1;
384
+ ```
385
+
386
+ ---
387
+
388
+ ## Alignment Rules
389
+
390
+ 1. Keep text on a shared rhythm — headings, helpers, and numbers should align to the same left edge inside a card.
391
+ 2. Avoid micro-copy smaller than `--text-xs` unless it is true metadata.
392
+ 3. In dashboards: one card = one dominant metric or one dominant action. Do not stack equal-priority text blocks.
393
+ 4. Above the fold: prefer 1 primary content block + 1 support block + 1 contextual rail — not a wall of equal cards.
394
+ 5. Mono labels are separators, not decoration. If everything is uppercase mono, nothing is important.
395
+ 6. In brownfield: fix cascade and token-scope errors before changing colors, layout, or density.
396
+ 7. Interactive controls must align on shared heights (`--control-sm`, `--control-md`, `--control-lg`) and shared text baselines.
397
+
398
+ ---
399
+
400
+ ## Mode Guidance
401
+
402
+ ### Dashboard / Admin
403
+ - Dark theme is often the best default.
404
+ - Dense, compact spacing — tighter headings, shorter line-height, less breathing room than marketing.
405
+ - Use mono labels selectively for status, timestamps, identifiers, section rails.
406
+ - Favor grouped blocks over large card matrices above the fold.
407
+
408
+ ### Landing Page / Website
409
+ - Much more vertical breathing room (use `--space-16` to `--space-24` between sections).
410
+ - Prefer display + body pairings over mono-heavy layouts.
411
+ - Accent glow sparingly — trust typography and section rhythm.
412
+ - One message per section. No dashboard chrome (sidebars, status feeds, dense badges).
413
+
414
+ ---
415
+
416
+ ## Admin / Operational Compact Density
417
+
418
+ Use these values whenever building settings pages, admin panels, config screens, entity lists, or any dense operational UI. These replace the more generous defaults in those contexts.
419
+
420
+ ### Card container scale
421
+
422
+ | Level | Use | Padding | Border Radius |
423
+ |---|---|---|---|
424
+ | L1 — page card | top-level section card | `var(--space-4)` (16px) | `22px` |
425
+ | L2 — nested card | card inside a card | `var(--space-3)` (12px) | `18px` |
426
+ | L3 — inset block | info block, disclosure body | `10px` | `14px` |
427
+
428
+ Between L1 cards: `gap: var(--space-3)` — not `--space-4` or `--space-6`.
429
+
430
+ ### Card heading inside a panel
431
+
432
+ ```
433
+ Eyebrow : text-[0.68rem] uppercase tracking-[0.28em] color: var(--text-muted)
434
+ Title : text-base (15px) font-semibold ← never text-xl or text-2xl inside a card
435
+ Meta : font-mono text-[0.62rem] color: var(--text-muted) truncate ← path, ID, single-line
436
+ ```
437
+
438
+ **Do not write verbose description paragraphs inside admin cards.** Replace with: mono path text, status badges, or a single collapsed `<details>` block.
439
+
440
+ ### Form controls — admin context
441
+
442
+ ```
443
+ Input : px-3 py-2 text-xs border-radius: var(--radius-md) (height ~32px)
444
+ Select : px-3 py-2 text-xs border-radius: var(--radius-md)
445
+ Label : text-[0.65rem] mb: 2px (mb-0.5)
446
+ Button : px-3 py-2 text-xs border-radius: var(--radius-md)
447
+ ```
448
+
449
+ These override the default `px-4 py-3 text-sm rounded-2xl` — that scale is for consumer/marketing UI, not admin density.
450
+
451
+ ### List / row items
452
+
453
+ ```
454
+ Row padding : py-2 (8px top/bottom) — not py-3 or py-4
455
+ Row gap : gap-2.5 (10px)
456
+ Provider dot : h-2 w-2 — not h-2.5 w-2.5
457
+ Name column : w-24 text-xs font-medium — not w-28 text-sm
458
+ ```
459
+
460
+ ### Badges / chips — compact
461
+
462
+ ```
463
+ Status badge : px-2 py-0.5 text-[0.6rem] rounded-full
464
+ Tag badge : px-2 py-0.5 text-[0.58rem] rounded-full
465
+ ```
466
+
467
+ Never use `px-3 py-1 text-xs` for inline status chips — that scale is for navigation and page-level badges.
468
+
469
+ ### Entity grid (projects, providers, squads)
470
+
471
+ Never full-width stack same-type entities. Use:
472
+
473
+ ```css
474
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
475
+ /* or explicit: sm:grid-cols-2 lg:grid-cols-3 */
476
+ gap: var(--space-3);
477
+ ```
478
+
479
+ ### Modal pattern for add / edit forms
480
+
481
+ Entity add/edit forms belong in a modal, not inline expansion (accordion/RevealPanel):
482
+
483
+ ```
484
+ Modal max-width : 448px (28rem)
485
+ Modal padding : var(--space-5)
486
+ Overlay : bg-black/50 backdrop-blur-sm
487
+ Border radius : var(--radius-xl) — 22px
488
+ Max height : 90vh overflow-y: auto
489
+ ```
490
+
491
+ ### Disclosure / collapse pattern
492
+
493
+ Secondary tools (sync assistant, cloud connect, advanced config) go behind `<details>`:
494
+
495
+ ```
496
+ Summary row : flex items-center justify-between px-3 py-2.5
497
+ label (text-xs) + status badge (left) + action button (right)
498
+ Body : border-t px-3 pb-3 pt-2
499
+ ```
500
+
501
+ Never keep secondary tools always visible — they crowd the primary content.
502
+
503
+ ### Anti-patterns in admin/operational UI
504
+
505
+ - `p-6 rounded-[28px]` on inner section cards — too large, use L1/L2/L3 scale above
506
+ - `text-xl` or `text-2xl` headings inside settings/admin cards
507
+ - Verbose description paragraphs (`text-sm leading-7`) in every card — remove them
508
+ - Full-width stacked cards for entity lists (projects, providers) — use the grid
509
+ - Inline accordion/RevealPanel for add/edit forms — use a modal
510
+ - `px-4 py-3 text-sm` for inputs and buttons in dense admin context
511
+
512
+ ---
513
+
514
+ ## Non-Negotiable Rules
515
+
516
+ 1. Use the token system — never freestyle random hex values.
517
+ 2. Keep at most **three surface levels** visible in the same viewport.
518
+ 3. Teal/cyan is the **only accent** — never change it.
519
+ 4. Do not default to Google Fonts when system stacks deliver the right tone.
520
+ 5. Do not use mono labels as the main reading experience.
521
+ 6. Keep **one obvious focal block** per viewport.
522
+ 7. Fix token scope and cascade bugs before redesigning colors or layout.
523
+ 8. In admin/operational UI, apply the **Compact Density** scale — never carry consumer/marketing spacing into dense panels.
524
+ 9. Validate contrast and hover/focus parity before considering a screen finished.