deepmodebot 0.9.1 → 0.10.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 (690) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.claude-plugin/marketplace.json +2 -2
  3. package/.omp-plugin/marketplace.json +2 -2
  4. package/README.md +29 -5
  5. package/bin/deepmodebot.mjs +163 -4
  6. package/lib/clients.mjs +50 -3
  7. package/lib/tree.mjs +64 -10
  8. package/native/dmb-gate/Cargo.toml +13 -0
  9. package/native/dmb-gate/src/agents.rs +77 -0
  10. package/native/dmb-gate/src/ci.rs +516 -0
  11. package/native/dmb-gate/src/cleanup.rs +198 -0
  12. package/native/dmb-gate/src/gap.rs +1376 -0
  13. package/native/dmb-gate/src/guard.rs +135 -0
  14. package/native/dmb-gate/src/main.rs +327 -0
  15. package/native/dmb-gate/src/map.rs +173 -0
  16. package/native/dmb-gate/src/perf.rs +347 -0
  17. package/native/dmb-gate/src/reward.rs +1214 -0
  18. package/native/dmb-gate/src/skill_check.rs +171 -0
  19. package/native/dmb-gate/src/slop.rs +1238 -0
  20. package/native/dmb-gate/src/ui.rs +842 -0
  21. package/native/dmb-gate/src/util.rs +260 -0
  22. package/native/dmb-net/go.mod +3 -0
  23. package/native/dmb-net/main.go +624 -0
  24. package/native/dmb-net/main_test.go +122 -0
  25. package/package.json +12 -2
  26. package/plugins/deepmodebot/.antigravity-plugin/plugin.json +1 -1
  27. package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +5 -5
  28. package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +1 -1
  29. package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +2 -2
  30. package/plugins/deepmodebot/.antigravity-plugin/skills/suggest/SKILL.md +13 -0
  31. package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +2 -2
  32. package/plugins/deepmodebot/.claude-plugin/plugin.json +1 -1
  33. package/plugins/deepmodebot/.codex-plugin/plugin.json +46 -0
  34. package/plugins/deepmodebot/agents/comment-sicko/agent.md +35 -0
  35. package/plugins/deepmodebot/agents/researcher/agent.md +33 -0
  36. package/plugins/deepmodebot/agents/reviewer/agent.md +4 -2
  37. package/plugins/deepmodebot/agents/scout/agent.md +11 -12
  38. package/plugins/deepmodebot/agents/security-reviewer/agent.md +2 -1
  39. package/plugins/deepmodebot/commands/deep.md +6 -6
  40. package/plugins/deepmodebot/commands/research.md +8 -0
  41. package/plugins/deepmodebot/commands/suggest.md +10 -0
  42. package/plugins/deepmodebot/commands/tournament.md +2 -2
  43. package/plugins/deepmodebot/hooks/hooks.json +2 -2
  44. package/plugins/deepmodebot/hooks.json +1 -1
  45. package/plugins/deepmodebot/scripts/antigravity-guard.mjs +140 -7
  46. package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +179 -47
  47. package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +4 -6
  48. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +3 -0
  49. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +4 -0
  50. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +3 -1
  51. package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +2 -2
  52. package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +12 -2
  53. package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +11 -3
  54. package/plugins/deepmodebot/skills/app-automation-relay/SKILL.md +17 -0
  55. package/plugins/deepmodebot/skills/app-automation-relay/assets/relay_server.ts +364 -0
  56. package/plugins/deepmodebot/skills/app-automation-relay/references/adapter-cookbook.md +15 -0
  57. package/plugins/deepmodebot/skills/app-automation-relay/references/wire-protocol.md +23 -0
  58. package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +4 -3
  59. package/plugins/deepmodebot/skills/cloud-devsecops/references/cloudflare-edge.md +43 -0
  60. package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +15 -2
  61. package/plugins/deepmodebot/skills/contribute/SKILL.md +3 -35
  62. package/plugins/deepmodebot/skills/create-formal-verification-skill/LICENSE +21 -0
  63. package/plugins/deepmodebot/skills/create-formal-verification-skill/NOTICE.md +16 -0
  64. package/plugins/deepmodebot/skills/create-formal-verification-skill/SKILL.md +71 -0
  65. package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +2 -2
  66. package/plugins/deepmodebot/skills/deep-learning/LICENSE +21 -0
  67. package/plugins/deepmodebot/skills/deep-learning/SKILL.md +33 -0
  68. package/plugins/deepmodebot/skills/deep-learning/references/neural-architectures.md +43 -0
  69. package/plugins/deepmodebot/skills/deep-learning/references/papers-and-repos.md +128 -0
  70. package/plugins/deepmodebot/skills/deep-learning/references/reinforcement-learning.md +57 -0
  71. package/plugins/deepmodebot/skills/deep-learning/references/training-optimization.md +40 -0
  72. package/plugins/deepmodebot/skills/deep-learning/references/weight-space-programming.md +76 -0
  73. package/plugins/deepmodebot/skills/deep-learning/scripts/hf_passes.py +166 -0
  74. package/plugins/deepmodebot/skills/deep-learning/scripts/wsp.py +493 -0
  75. package/plugins/deepmodebot/skills/deep-stack/SKILL.md +1 -1
  76. package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +46 -92
  77. package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +1 -0
  78. package/plugins/deepmodebot/skills/deep-stack/references/prove.md +6 -0
  79. package/plugins/deepmodebot/skills/deep-stack/references/stack.md +11 -1
  80. package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +74 -145
  81. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +18 -6
  82. package/plugins/deepmodebot/skills/deepmodebot/assets/autoroute/autoroute.py +1021 -0
  83. package/plugins/deepmodebot/skills/deepmodebot/assets/cleanup/self_cleanup.py +305 -0
  84. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +98 -5
  85. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +106 -5
  86. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +3 -0
  87. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +2 -0
  88. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/rehearsal_gate.py +536 -0
  89. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +2 -0
  90. package/plugins/deepmodebot/skills/deepmodebot/assets/formal-verification/verify_proof.py +638 -0
  91. package/plugins/deepmodebot/skills/deepmodebot/assets/gap-audit/gap_audit.py +1053 -0
  92. package/plugins/deepmodebot/skills/deepmodebot/assets/gen-ui/gen_ui.py +1782 -0
  93. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +7 -0
  94. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +3 -2
  95. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +9 -5
  96. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +2 -0
  97. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +2 -0
  98. package/plugins/deepmodebot/skills/deepmodebot/assets/local-ci/local_ci.py +540 -0
  99. package/plugins/deepmodebot/skills/deepmodebot/assets/local-ci/slop_gate.py +642 -0
  100. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +2 -1
  101. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +2 -1
  102. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +2 -0
  103. package/plugins/deepmodebot/skills/deepmodebot/assets/memory/project_memory.py +529 -0
  104. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +48 -21
  105. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +339 -5
  106. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +96 -6
  107. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +2 -0
  108. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +2 -0
  109. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +2 -0
  110. package/plugins/deepmodebot/skills/deepmodebot/assets/prompt-tools/prompt_tools.py +1239 -0
  111. package/plugins/deepmodebot/skills/deepmodebot/assets/quota-guard/quota_guard.py +424 -0
  112. package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +477 -1
  113. package/plugins/deepmodebot/skills/deepmodebot/assets/reward-guard/reward_guard.py +1597 -0
  114. package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rule-paths.json +57 -0
  115. package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rule_ledger.py +1645 -0
  116. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +2 -0
  117. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +2 -0
  118. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +13 -10
  119. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/static_sec_audit.py +275 -0
  120. package/plugins/deepmodebot/skills/deepmodebot/assets/self-grill/self_grill.py +1473 -0
  121. package/plugins/deepmodebot/skills/deepmodebot/assets/setup/model_setup.py +329 -0
  122. package/plugins/deepmodebot/skills/deepmodebot/assets/setup/project_setup.py +312 -0
  123. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +304 -18
  124. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +121 -78
  125. package/plugins/deepmodebot/skills/deepmodebot/references/README.md +14 -0
  126. package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +16 -11
  127. package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +2 -1
  128. package/plugins/deepmodebot/skills/deepmodebot/references/delegation.md +14 -0
  129. package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +2 -0
  130. package/plugins/deepmodebot/skills/deepmodebot/references/full-scope.md +9 -0
  131. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +2 -0
  132. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +12 -9
  133. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +7 -3
  134. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +2 -0
  135. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +4 -4
  136. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +1 -1
  137. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +13 -10
  138. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +6 -6
  139. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +1 -0
  140. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +3 -1
  141. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +1 -2
  142. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +1 -0
  143. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +4 -2
  144. package/plugins/deepmodebot/skills/deepmodebot/references/principles/hardcore-mode.md +7 -0
  145. package/plugins/deepmodebot/skills/deepmodebot/references/principles/no-reward-hacking.md +8 -0
  146. package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +2 -1
  147. package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +2 -2
  148. package/plugins/deepmodebot/skills/deepmodebot/references/rule-approval.md +51 -0
  149. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +10 -24
  150. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +5 -4
  151. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +3 -3
  152. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/autoroute.md +49 -0
  153. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +1 -1
  154. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/catchup-video.md +13 -0
  155. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +8 -7
  156. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +2 -1
  157. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/devex-review.md +13 -0
  158. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/expand-contract.md +13 -0
  159. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/formal-verification.md +33 -0
  160. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/gen-ui.md +60 -0
  161. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +2 -1
  162. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +7 -18
  163. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +7 -7
  164. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/model-setup.md +14 -0
  165. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/modernize-pr.md +15 -0
  166. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/mutation-testing.md +13 -0
  167. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +5 -5
  168. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +7 -3
  169. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +1 -1
  170. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +8 -5
  171. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +1 -2
  172. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +33 -38
  173. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/product-lens.md +12 -0
  174. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prompt-upgrade.md +30 -0
  175. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +1 -1
  176. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reframe.md +18 -0
  177. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/release-and-canary.md +10 -0
  178. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +62 -89
  179. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +5 -1
  180. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/self-grill.md +54 -0
  181. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +3 -3
  182. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +7 -0
  183. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +3 -2
  184. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/suggest.md +24 -0
  185. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +7 -0
  186. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +2 -2
  187. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +12 -11
  188. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/variant-analysis.md +11 -0
  189. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/video-forensics.md +46 -0
  190. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +10 -1
  191. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/webhook-ui.md +11 -0
  192. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +6 -0
  193. package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +7 -0
  194. package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +141 -18
  195. package/plugins/deepmodebot/skills/deepmodebot/worker.md +16 -0
  196. package/plugins/deepmodebot/skills/domain-rules/SKILL.md +13 -119
  197. package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +19 -1
  198. package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +7 -0
  199. package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +11 -0
  200. package/plugins/deepmodebot/skills/domain-rules/references/sources.md +108 -0
  201. package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +30 -131
  202. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/canvas.css +42 -0
  203. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/editorial.css +39 -0
  204. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/layouts.css +95 -0
  205. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/swiss.css +40 -0
  206. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/tactile.css +41 -0
  207. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/workbench.css +50 -0
  208. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-animations.md +49 -0
  209. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +46 -24
  210. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +27 -258
  211. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +26 -51
  212. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +22 -195
  213. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/00-art-direction.md +39 -0
  214. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +27 -24
  215. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +23 -17
  216. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +22 -45
  217. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +11 -0
  218. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +32 -152
  219. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +36 -91
  220. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +14 -120
  221. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +11 -10
  222. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +9 -9
  223. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06b-media-icons-charts.md +19 -0
  224. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06c-product-shots-craft.md +42 -0
  225. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +5 -6
  226. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +28 -56
  227. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +9 -7
  228. package/plugins/deepmodebot/skills/frontend-ui/scripts/motion_diff.py +259 -0
  229. package/plugins/deepmodebot/skills/frontend-ui/scripts/ui_audit.py +496 -0
  230. package/plugins/deepmodebot/skills/maintain-formal-verification-skill/LICENSE +21 -0
  231. package/plugins/deepmodebot/skills/maintain-formal-verification-skill/NOTICE.md +16 -0
  232. package/plugins/deepmodebot/skills/maintain-formal-verification-skill/SKILL.md +68 -0
  233. package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +1 -1
  234. package/plugins/deepmodebot/skills/office-documents/SKILL.md +24 -0
  235. package/plugins/deepmodebot/skills/office-documents/references/documents-docx-pdf.md +15 -0
  236. package/plugins/deepmodebot/skills/office-documents/references/presentations-pptx.md +15 -0
  237. package/plugins/deepmodebot/skills/office-documents/references/spreadsheets-xlsx.md +15 -0
  238. package/plugins/deepmodebot/skills/office-documents/scripts/doc_audit.py +230 -0
  239. package/plugins/deepmodebot/skills/project-brief/SKILL.md +2 -19
  240. package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +4 -0
  241. package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +4 -0
  242. package/plugins/deepmodebot/skills/project-brief/references/claim-contract.md +55 -0
  243. package/plugins/deepmodebot/skills/research/SKILL.md +18 -0
  244. package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +1 -1
  245. package/plugins/deepmodebot/skills/seo-and-geo/SKILL.md +29 -0
  246. package/plugins/deepmodebot/skills/seo-and-geo/references/geo-and-agentic-web.md +30 -0
  247. package/plugins/deepmodebot/skills/seo-and-geo/references/technical-and-schema.md +25 -0
  248. package/plugins/deepmodebot/skills/seo-and-geo/scripts/seo_audit.py +282 -0
  249. package/plugins/deepmodebot/skills/software-architecture/SKILL.md +2 -2
  250. package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +5 -0
  251. package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +1 -0
  252. package/plugins/deepmodebot/skills/statechart/LICENSE +21 -0
  253. package/plugins/deepmodebot/skills/statechart/NOTICE.md +21 -0
  254. package/plugins/deepmodebot/skills/statechart/SKILL.md +106 -0
  255. package/plugins/deepmodebot/skills/statechart/references/render.md +93 -0
  256. package/plugins/deepmodebot/skills/statechart/references/tooling.md +78 -0
  257. package/plugins/deepmodebot/skills/statechart/scripts/backends/cfg.ts +33 -0
  258. package/plugins/deepmodebot/skills/statechart/scripts/backends/mermaid.ts +249 -0
  259. package/plugins/deepmodebot/skills/statechart/scripts/backends/plain-text.ts +72 -0
  260. package/plugins/deepmodebot/skills/statechart/scripts/backends/report.ts +177 -0
  261. package/plugins/deepmodebot/skills/statechart/scripts/frontends/config.ts +276 -0
  262. package/plugins/deepmodebot/skills/statechart/scripts/frontends/dot.ts +77 -0
  263. package/plugins/deepmodebot/skills/statechart/scripts/frontends/marks.ts +93 -0
  264. package/plugins/deepmodebot/skills/statechart/scripts/frontends/messages.ts +52 -0
  265. package/plugins/deepmodebot/skills/statechart/scripts/frontends/spec.ts +114 -0
  266. package/plugins/deepmodebot/skills/statechart/scripts/frontends/trace.ts +24 -0
  267. package/plugins/deepmodebot/skills/statechart/scripts/frontends/value.ts +166 -0
  268. package/plugins/deepmodebot/skills/statechart/scripts/frontends/verdict.ts +40 -0
  269. package/plugins/deepmodebot/skills/statechart/scripts/frontends/view.ts +119 -0
  270. package/plugins/deepmodebot/skills/statechart/scripts/ir.ts +547 -0
  271. package/plugins/deepmodebot/skills/statechart/scripts/janitor.ts +13 -0
  272. package/plugins/deepmodebot/skills/statechart/scripts/kill.ts +15 -0
  273. package/plugins/deepmodebot/skills/statechart/scripts/package.json +11 -0
  274. package/plugins/deepmodebot/skills/statechart/scripts/passes/annotate.ts +128 -0
  275. package/plugins/deepmodebot/skills/statechart/scripts/passes/label.ts +269 -0
  276. package/plugins/deepmodebot/skills/statechart/scripts/passes/lift.ts +85 -0
  277. package/plugins/deepmodebot/skills/statechart/scripts/passes/loop-check.ts +68 -0
  278. package/plugins/deepmodebot/skills/statechart/scripts/passes/paths.ts +60 -0
  279. package/plugins/deepmodebot/skills/statechart/scripts/passes/reach.ts +135 -0
  280. package/plugins/deepmodebot/skills/statechart/scripts/passes/region-check.ts +97 -0
  281. package/plugins/deepmodebot/skills/statechart/scripts/passes/regions.ts +295 -0
  282. package/plugins/deepmodebot/skills/statechart/scripts/pipeline.ts +76 -0
  283. package/plugins/deepmodebot/skills/statechart/scripts/run.ts +500 -0
  284. package/plugins/deepmodebot/skills/statechart/scripts/statechart +29 -0
  285. package/plugins/deepmodebot/skills/statechart/scripts/statechart.ts +165 -0
  286. package/plugins/deepmodebot/skills/statechart/scripts/test/ConfigOracle.java +63 -0
  287. package/plugins/deepmodebot/skills/statechart/scripts/test/chart.test.ts +1253 -0
  288. package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
  289. package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
  290. package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
  291. package/plugins/deepmodebot/skills/statechart/scripts/test/cli.test.ts +1344 -0
  292. package/plugins/deepmodebot/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
  293. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
  294. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
  295. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
  296. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
  297. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
  298. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
  299. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
  300. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
  301. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
  302. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
  303. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
  304. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
  305. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
  306. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
  307. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
  308. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
  309. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
  310. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
  311. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
  312. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
  313. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
  314. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
  315. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
  316. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
  317. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
  318. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
  319. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
  320. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
  321. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
  322. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
  323. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
  324. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
  325. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
  326. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
  327. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
  328. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
  329. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
  330. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
  331. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
  332. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
  333. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
  334. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
  335. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
  336. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
  337. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
  338. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
  339. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
  340. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
  341. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
  342. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
  343. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
  344. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
  345. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
  346. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
  347. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
  348. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
  349. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
  350. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
  351. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
  352. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
  353. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
  354. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
  355. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
  356. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
  357. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
  358. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
  359. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
  360. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
  361. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
  362. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
  363. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
  364. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
  365. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
  366. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
  367. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
  368. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
  369. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
  370. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
  371. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
  372. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
  373. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
  374. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
  375. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
  376. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
  377. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
  378. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
  379. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
  380. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
  381. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
  382. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
  383. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
  384. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
  385. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
  386. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
  387. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
  388. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
  389. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
  390. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
  391. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
  392. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
  393. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
  394. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
  395. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
  396. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
  397. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
  398. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
  399. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
  400. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
  401. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
  402. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
  403. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
  404. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
  405. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
  406. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
  407. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
  408. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
  409. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
  410. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
  411. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
  412. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
  413. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
  414. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
  415. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
  416. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
  417. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
  418. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
  419. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
  420. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
  421. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
  422. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
  423. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
  424. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
  425. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
  426. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
  427. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
  428. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
  429. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
  430. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
  431. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
  432. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
  433. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
  434. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
  435. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
  436. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
  437. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
  438. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
  439. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
  440. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
  441. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
  442. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
  443. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
  444. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
  445. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
  446. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
  447. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
  448. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
  449. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
  450. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
  451. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
  452. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
  453. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
  454. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
  455. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
  456. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
  457. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
  458. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
  459. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
  460. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
  461. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
  462. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
  463. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
  464. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
  465. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
  466. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
  467. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
  468. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
  469. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
  470. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
  471. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
  472. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
  473. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
  474. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
  475. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
  476. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
  477. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
  478. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
  479. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
  480. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
  481. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
  482. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
  483. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
  484. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
  485. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
  486. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
  487. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
  488. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
  489. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
  490. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
  491. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
  492. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
  493. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
  494. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
  495. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
  496. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
  497. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
  498. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
  499. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
  500. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
  501. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
  502. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
  503. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
  504. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
  505. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
  506. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
  507. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
  508. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
  509. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
  510. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
  511. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
  512. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
  513. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/chart.mmd +28 -0
  514. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
  515. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
  516. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
  517. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
  518. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
  519. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
  520. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
  521. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
  522. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
  523. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
  524. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
  525. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
  526. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
  527. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
  528. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
  529. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
  530. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
  531. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
  532. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
  533. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
  534. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
  535. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
  536. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
  537. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
  538. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
  539. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
  540. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
  541. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
  542. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
  543. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
  544. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
  545. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
  546. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
  547. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
  548. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
  549. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
  550. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
  551. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
  552. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
  553. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
  554. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
  555. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
  556. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
  557. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
  558. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
  559. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
  560. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
  561. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
  562. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
  563. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
  564. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
  565. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
  566. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
  567. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
  568. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
  569. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
  570. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
  571. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
  572. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
  573. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
  574. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
  575. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
  576. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
  577. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
  578. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
  579. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
  580. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
  581. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
  582. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
  583. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
  584. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
  585. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
  586. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
  587. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
  588. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
  589. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
  590. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
  591. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
  592. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
  593. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
  594. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
  595. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
  596. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
  597. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
  598. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
  599. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
  600. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
  601. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
  602. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
  603. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
  604. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
  605. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
  606. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
  607. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
  608. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
  609. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
  610. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
  611. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
  612. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
  613. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
  614. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
  615. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
  616. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
  617. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
  618. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
  619. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
  620. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
  621. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
  622. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
  623. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
  624. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
  625. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
  626. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
  627. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
  628. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
  629. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
  630. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
  631. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
  632. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
  633. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
  634. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
  635. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
  636. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
  637. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
  638. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
  639. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
  640. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
  641. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
  642. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
  643. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
  644. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
  645. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
  646. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
  647. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
  648. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
  649. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus.test.ts +441 -0
  650. package/plugins/deepmodebot/skills/statechart/scripts/test/differential.test.ts +565 -0
  651. package/plugins/deepmodebot/skills/statechart/scripts/test/drawn.ts +20 -0
  652. package/plugins/deepmodebot/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
  653. package/plugins/deepmodebot/skills/statechart/scripts/test/grid/Grid.tla +9 -0
  654. package/plugins/deepmodebot/skills/statechart/scripts/test/grid/sany.out +2 -0
  655. package/plugins/deepmodebot/skills/statechart/scripts/test/java.ts +63 -0
  656. package/plugins/deepmodebot/skills/statechart/scripts/test/labels.ts +648 -0
  657. package/plugins/deepmodebot/skills/statechart/scripts/test/messages.test.ts +226 -0
  658. package/plugins/deepmodebot/skills/statechart/scripts/test/pipeline.test.ts +270 -0
  659. package/plugins/deepmodebot/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
  660. package/plugins/deepmodebot/skills/statechart/scripts/test/render.test.ts +145 -0
  661. package/plugins/deepmodebot/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
  662. package/plugins/deepmodebot/skills/statechart/scripts/test/tlc.ts +158 -0
  663. package/plugins/deepmodebot/skills/statechart/scripts/tsconfig.json +11 -0
  664. package/plugins/deepmodebot/skills/statechart/scripts/worker.ts +35 -0
  665. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +0 -391
  666. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +0 -146
  667. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +0 -483
  668. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +0 -139
  669. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +0 -301
  670. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +0 -602
  671. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +0 -69
  672. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +0 -160
  673. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +0 -180
  674. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +0 -265
  675. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +0 -192
  676. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +0 -2182
  677. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +0 -19
  678. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +0 -691
  679. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +0 -127
  680. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +0 -496
  681. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +0 -1426
  682. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +0 -320
  683. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +0 -326
  684. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +0 -55
  685. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +0 -53
  686. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +0 -94
  687. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +0 -610
  688. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +0 -250
  689. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +0 -654
  690. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/test_workspace_map.py +0 -879
@@ -1,21 +1,27 @@
1
- ## 2. Review rubric
2
- Weighted design-first to counter generic AI layouts, while still enforcing the craft and functionality checks in `references/playbook/08-quality-floor.md` (never assume functionality or accessibility passes without real-browser verification). [anthropic harness]
1
+ ## 2. Review rubric & mechanical visual gates
3
2
 
4
- | Criterion | Weight | Fails when |
5
- | --- | --- | --- |
6
- | Design quality | High | Parts don't add up to one mood or identity |
7
- | Originality | High | Template layouts, unmodified library defaults, AI tells (§3) |
8
- | Craft | Normal | Broken type hierarchy, inconsistent spacing, contrast below WCAG AA |
9
- | Functionality | Normal | The primary action isn't obvious; the task needs guessing |
10
- | Delegation (agent surfaces) | High | The user can't leave and come back, see each task's status, intervene, or take over [youtube/RGiXcVxSD3s] |
3
+ Every UI review checks **mechanical gates** first (run `scripts/ui_audit.py` + live browser inspection) and **design-director criteria** second on real `1440×900` and `390×844` screenshots.
11
4
 
12
- Originality check: if someone would believe AI made the change, it fails. [youtube/v42opQpCy60]
5
+ ### Mechanical gates (automatic fail if violated)
13
6
 
14
- Report findings by severity. Lead with the problem and its user impact, then give the location, how it was verified, and the rule; the smallest fix is optional. [vercel; youtube/xOO8Wt_i72s]
15
-
16
- | Level | Meaning |
7
+ | Check | Pass bar |
17
8
  | --- | --- |
18
- | P0 | Blocks the task or causes severe accessibility failure |
19
- | P1 | Likely task failure or missing state |
20
- | P2 | Friction |
21
- | P3 | Polish |
9
+ | Horizontal overflow | `scrollWidth <= innerWidth` at both `1440 px` and `390 px` |
10
+ | Contrast & focus | `lowContrastSamples: []` (WCAG AA `>= 4.5:1` body, `>= 3:1` large) + visible `:focus-visible` ring on every control |
11
+ | Type & webfonts | Clear scale ratio (`h1 / body >= 1.4x` Operate, `>= 2.2x` Persuade), intended webfonts present in `loadedWebfonts`, `tabular-nums` on metrics |
12
+ | Border budget | `<= 1` nested bordered container depth per region (no bordered cards inside bordered sections inside bordered panels) |
13
+ | Token & motion hygiene | `transitionAllCount: 0`, `@media (prefers-reduced-motion: reduce)` present, role tokens over raw hex/Tailwind grays, frequent button hovers `<= 160 ms` |
14
+ | Collective video & rehearsal gate | Multi-step/animated flows recorded end-to-end, watched as one continuous video (not single frames), and passing `rehearsal_gate.py verdict --strict` |
15
+ | Console & states | Zero console/page errors; loading, empty, error, and primary interactive states exercised live |
16
+
17
+ ### Design-director rubric (inspect actual screenshots & full video)
18
+
19
+ | Criterion | Weight | Fails when |
20
+ | --- | --- | --- |
21
+ | Visual identity & craft | High | Sterile grey boxes, flat elevation, near-tangents (`1–3 px`), floating boxed hero shots, unexamined system fonts, or invented logo marks (`06c-product-shots-craft.md`) |
22
+ | Focal hierarchy | High | Squinting at the screenshot reveals no clear #1 focal point or primary action within 1 second |
23
+ | Originality & restraint | High | Unmodified library defaults, AI tells (§3), or chip/badge/card clutter competing with real content |
24
+ | Functionality & a11y | Normal | Unclear primary action, broken keyboard flow, missing accessible names, or broken compact layout |
25
+ | Delegation (agent UI) | High | User cannot leave and return, inspect per-task status, steer/stop mid-run, or approve/deny cleanly |
26
+
27
+ Report findings by severity (`P0` blocks task or severe a11y fail, `P1` likely task failure / broken visual hierarchy / missing state, `P2` friction, `P3` polish). Lead with user impact, location, observed screenshot/DOM evidence, and exact fix.
@@ -1,46 +1,23 @@
1
- ## 3. AI tells to design away from
2
- Each is legitimate only when the brief asks for it. [anthropic frontend-design skill; youtube/zsCGS-Yzjnw; anthropic harness]
3
- - Default shadcn: the same radius, grays and fonts as every generated app. Retheme radius, color and type first, since those three carry most of the personality.
4
- - Purple or indigo gradients over white cards; gradient washes used as decoration. AI glow, gradient borders and generative animation may mark only content that is *actively generating*: never idle controls, and never two indicators at once. [articles/ai-ux/carbon-for-ai; articles/ai-ux/atlassian-rovo-ai-guidelines]
5
- - Unlabeled sparkle icons; a one-time "AI can make mistakes" in a greeting or footer; anthropomorphic progress copy ("I thought about…", "I understand"). [articles/ai-ux/nngroup-ai-ux-research]
6
- - A bordered card plus a colored status pill for every tool call (the old AI Elements look; the upstream rebuild removed it). Tool calls are plain trace lines. [github/ai-ui/vercel-ai-elements]
7
- - **Video tells** (§5a) [github/motion-graphics/_batch-motion-graphics-repos; youtube/747ZnEtsRbg]:
8
- - A centered title on a gradient.
9
- - A dark navy void with small floating UI; device mockups; product UI tilted in 3D.
10
- - Typing into a prompt box as the opener; a logo docked in a corner.
11
- - Three cards in a row or a KPI grid; a title over a dimmed screenshot.
12
- - Every element fading and sliding up; the same whoosh on every cut.
13
- - Glow and particles as decoration; a crossfade between worlds; per-beat camera shake.
14
- - Landed titles that breathe, float or creep.
15
- - The SaaS card kit: identical rounded cards, one radius regardless of hierarchy, `rgba(0,0,0,.1)` shadow on everything.
16
- - Cream (#F4F1EA) with a serif display and a terracotta (#D97757) accent; near-black with one acid-green or vermilion accent; broadsheet hairlines with zero radius.
17
- - Template chrome:
18
- - ALL-CAPS tracked eyebrows over every heading
19
- - `A · B · C` meta strings
20
- - `WORD — fragment` labels
21
- - `→` appended to every CTA
22
- - monospace micro-labels
23
- - `#0B0B0B` / `#111` standing in for black
24
- - One accented word in a headline (italic, bold or colored).
25
- - `01 / 02 / 03` markers on content that isn't a sequence.
26
- - A big-number hero with a small label, stats and a gradient accent.
27
- - Fade-and-slide-up on every section; a hover transition on every card.
28
- - Many standout effects on one page. Allow **one standout moment per page.**
29
- - "Generic AI SaaS": radial glow lights, glass cards, icon tiles, bento grids. [github/MengTo-skills]
30
- - The 2026 tells: Inter as the only typeface, a serif headline with one italic word, a blinking cursor, a background grid, a cursor-following glow. [youtube/r2P1v64pM28] Also "Claude Beige / Algorithmic Uniqlo" (beige + serif + italic accents), decorative section numbers, and the hero formula "Build faster with intelligent workflows… Powered by AI" plus "Trusted by 10,000+". [youtube/v42opQpCy60]
31
- - Fake proof or placeholder-looking data: invented metrics, logos, testimonials, "Acme" or "Sarah Chan", `99.99%`. Use real product truth or honest placeholders. [github/MengTo-skills]
32
- - Color tells [youtube/7Z9rrryIOC4; youtube/EjEYTRD-W-M; youtube/kfVUlR9BnYQ]:
33
- - Grey or opacity-dimmed text on a colored fill.
34
- - White text on yellow or green.
35
- - Saturated solid status badges.
36
- - Status colors of unequal loudness: green glows, red sinks.
37
- - Untinted library greys.
38
- - A border around every row and card, plus a label on every value ("Status:", "Price:").
39
- - A rainbow of buttons (green Save, red Delete, blue Cancel side by side), or more than one solid primary per view.
40
- - Icons from mixed sets, or icons as heavy as their label.
1
+ ## 3. AI tells → concrete replacements
41
2
 
42
- **Removal test** for any suspect element [.claude/skills/no-ai-design-slop]:
43
- 1. Name it precisely.
44
- 2. State the job it does.
45
- 3. Delete it mentally. If meaning, state, action and hierarchy survive and clarity improves, delete it for real.
46
- 4. Never compensate with a new effect.
3
+ Bans without positive targets yield sterile grey wireframes. Pair every avoided cliché with its concrete replacement (explicit brief requirements always win). Pick your baseline archetype first in `references/playbook/00-art-direction.md`.
4
+
5
+ | AI tell (avoid by default) | Replace with |
6
+ | --- | --- |
7
+ | Default shadcn grays, radius, and lone `Inter`/system font | Retheme radius, OKLCH brand-tinted neutrals, and a curated typeface pairing from `00-art-direction.md` |
8
+ | Nested bordered cards inside bordered sections (border soup) | Spacing (`24–40 px`), alignment, ground shifts (`2–3%` L), or `1 px` row/column hairlines (`<= 1` bordered depth) |
9
+ | Purple/indigo glow washes, glass cards, cursor-following glows, idle AI orbs | Quiet tinted surfaces with subtle directional top-edge light; reserve glow/motion strictly for actively generating state |
10
+ | Unrequested chip, badge, eyebrow, and status-pill clutter | Remove non-essential chrome via the removal test below; show plain trace lines for tool calls |
11
+ | Template micro-chrome (`ALL-CAPS` eyebrows, `A · B · C` meta strings, `→` on every CTA, `01/02/03` non-sequences, accented italic word in every headline) | Plain sentence-case headings, weight/tone hierarchy, result-naming CTAs |
12
+ | Rainbow button clusters or multiple solid primaries per view | One solid primary action per view; outline/soft secondary; text-link tertiary; red primary only inside destructive confirm |
13
+ | Color mistakes (grey/opacity-dimmed text on colored fills, white on yellow/green, saturated solid badges, unequal-loudness status colors) | Same-hue text on colored fills, light-tint badges with dark same-hue text, equal-L/C status colors checked in greyscale |
14
+ | Fake proof ("Acme", "Sarah Chan", `99.99%`, "Trusted by 10,000+", "Powered by AI") | Real product truth, realistic domain records, or honest empty/placeholder copy |
15
+ | Anthropomorphic agent copy ("I thought about…", unlabeled sparkles, "AI can make mistakes" banners) | Plain state verbs (`Running` → `Ran` / `Failed to run`) and actionable work descriptions |
16
+ | Heavy `rgba(0,0,0,.15)` shadow on every card; fade-and-slide-up on every section | Layered OKLCH ambient shadows (`0.01–0.04` alpha) on raised layers only; max one standout moment per page |
17
+ | Video tells (centered title on gradient, floating tilted 3D UI in dark void, typing prompt opener, breathing landed titles, default crossfades) | Real 2× product UI doing one real task, dead-still landed text, object-carried transitions (`references/playbook/05a-motion-graphics.md`) |
18
+
19
+ ### Removal test (run on every suspect element)
20
+
21
+ 1. Name the element and the exact user job it performs.
22
+ 2. Mentally delete it from the screenshot. If meaning, state, action, and hierarchy survive (and clarity improves), delete it for real.
23
+ 3. Never compensate for a deleted gimmick by adding another decoration.
@@ -19,3 +19,14 @@ Order of preference [youtube/zsCGS-Yzjnw; .claude/skills/pick-ui-library]:
19
19
 
20
20
  4. **Design components** (Magic UI, Aceternity, RareUI, 21st.dev) only for the single standout moment. Install through the CLI or registry so the code lives in the repo and can be edited.
21
21
  5. **AI-product states** come from shadcn's chat components; see §4a. Beautiful UI is the visual reference.
22
+ 6. **Mobile vs. web component thresholds** (`references/patterns/mobbin-shipped-apps.md`, distilled from 59 Mobbin Glossary guides):
23
+ - **Bottom `Tab Bar` (`3–5` items max):** primary mobile destinations only; `>5` sections → `Drawer` / rail. Never put infrequent settings in a Tab Bar.
24
+ - **`Bottom Sheet` vs. `Action Sheet` vs. `Context Menu`:** `Bottom Sheet` (`Vaul`) for supplementary context/filters (`peek` detent = no scrim; `expanded` = scrim + `scale(0.94)` root recession + explicit `×` button); `Action Sheet` for `3–5` quick mobile choices + separated `Cancel`; long-press `Context Menu` only for secondary item actions (`scale(1.03)` lift + `blur(16px)`).
25
+ - **`Segmented Control` (`2–4` equal views, instant switch)** vs. `Select`/`Combobox` (`5+` choices); **`Stepper` (`1–10`)** vs. **horizontal tick-ruler scrubber** (bounded mobile numeric ranges without popping OS keyboard) vs. numeric `<input>`.
26
+ 7. **Menus, comboboxes, tooltips & canvas micro-physics** (`TimothyVang/frontend:reference/youtube/icRjQePEa_A/`, `5t8dh3DSdBk`, `b00sgRR_Vc0`, `6DSW1rN-ZV4`, `_RHiFAxISuM`):
27
+ - **Nested submenus:** implement a **diagonal pointer-to-submenu safe triangle** (or hover-intent hysteresis) — never close a submenu on bare `onMouseLeave` while the pointer travels diagonally toward submenu rows. Anchor `transform-origin` to actual opening direction (`top left` down-right, `top right` down-left), autoscroll arrow navigation with top/bottom viewport padding (non-looping bounds), and unwind nested menus one layer per `Escape`.
28
+ - **Multi-select comboboxes / label pickers:** auto-focus the filter input on open and group selected items at the top initially, **freezing row order while open** so accidental clicks undo in place; regroup selected items to the top only after close and reopen.
29
+ - **Universal icon tooltips & delay tiers:** every icon-only button gets an accessible label + tooltip (with shortcut hint). First hover waits (`~500–1000 ms`: shorter on unfamiliar action icons, longer on daily sidebar chrome); roving across neighbors opens in `0 ms` with `0` motion.
30
+ - **Dual-affordance pane splitters (`icRjQePEa_A`, 09:48–10:22):** resizable sidebar/inspector rails expose both drag-to-resize (`ew-resize` / `col-resize`) and click-to-collapse, with a two-line hover tooltip (`Drag to resize` / `Click to collapse [`) and a toggle icon whose geometry morphs to match collapsed vs expanded state.
31
+ - **Rich-text, chat & shortcut disambiguation:** `@`-mention popovers stay open while arrowing inside the query token and close on token exit; `Enter`-to-send composers invert `Enter` to newline inside code blocks and active IME compositions (`isComposing`); pages mixing single-letter shortcuts (`J`/`K`/`L`) with an unfocused primary input buffer non-urgent shortcuts `150 ms` and redirect multi-character bursts into the focused input.
32
+ - **Canvas & spatial editors (Figma patterns):** hit-test active selection bounds before topmost z-order layers on drag start; hide selection outlines during active arrow-key nudging; clamp/re-center out-of-bounds paste to the visible viewport; cap selection/undo history in a bounded ring buffer; never gate primary contextual triggers behind cursor-speed thresholds (use safe-polygon corridors + short overshoot timers).
@@ -1,153 +1,33 @@
1
1
  ## 4a. Agent UI (chat and agent-console surfaces)
2
- For React apps, run `npx shadcn@latest add message-scroller message bubble attachment marker trace code-block` or start from **`shadcn-ui/chatbot-template`** (AI SDK transport + these components). For SvelteKit (`skill://deep-stack`'s default) or other frameworks, port the same component contracts (`MessageScroller`, `Trace`, approval `Item`, streaming Markdown sanitizer) onto native primitives. **AI Elements (elements.ai-sdk.dev) is deprecated at the end of November 2026**; its patterns live in shadcn/ui. Optional private-repo notes: `TimothyVang/frontend:.claude/skills/shadcn/rules/chat.md`. [github/ai-ui/shadcn-ui-chatbot-template; github/ai-ui/vercel-ai-elements]
3
-
4
- - **Thread**
5
- - Build it with: `MessageScroller`. The user's turn is the `scrollAnchor`; `autoScroll` follows the reply but yields as soon as the user scrolls up; `MessageScrollerButton` jumps to latest. Once a streamed reply grows past the viewport, keep its *start* in view rather than following the bottom [articles/ai-ux/nngroup-ai-ux-research]
6
- - Never: A raw `overflow-y-auto` div with manual stick-to-bottom logic
7
- - **Turn**
8
- - Build it with: `Message` (`align="end"` = the user) + `Bubble` variants
9
- - Never: A styled div with `bg-primary`
10
- - **Agent activity (reasoning, tool calls, file reads, sources, steps)**
11
- - Build it with: One `TraceLine` per thing, inside one `Trace` per run. A tool row is a plain line until output exists, then a `TraceCollapsible` with output in `CodeBlock`
12
- - Never: A hand-rolled `Collapsible` with "Thinking..."
13
- - **Status words**
14
- - Build it with: Match the state: Running → Ran / Failed to run; Thinking → Thought. Map SDK states yourself. Progress lines name the actual work ("Searching 3 repos for auth middleware"), without anthropomorphic verbs. Rows have explicit states (queued · running · waiting for approval · error · retried · completed). When results land, the run collapses to one summary line ("Ran 14 tools · 2m 10s") [articles/ai-ux/shapeof-ai-pattern-library; articles/ai-ux/lukew-durable-ai-patterns; articles/ai-ux/microsoft-agents-copilot-mcp-apps]
15
- - Never: Dimming with `opacity-*`; passing raw SDK states through
16
- - **Tool states (AI SDK → Trace)**
17
- - Build it with: Render from `message.parts` with an exhaustive `switch (part.state)`. `input-streaming` / `input-available` → Running; `approval-requested` → the approval prompt; `approval-responded` → Running if approved, otherwise Denied; `output-available` → Ran; `output-error` → Failed to run; `output-denied` → a **neutral** "Denied …" line (the user's decision is not an error). Running after the chat stops → "Failed to …", except client tools, which are *waiting*. `preliminary: true` → still Running. One `Trace` per run of steps between text blocks.
18
- A subagent is one line ("Ran the research agent") with a nested Trace, the task on top, model and tools as badges, and elapsed time. Sources and message actions appear only after streaming; Retry only on the last assistant message while idle [github/ai-ui/shadcn-ui-chatbot-template; github/ai-ui/vercel-ai]
19
- - Never: A red error state for a denial
20
- - **Tool approval**
21
- - Build it with: A prompt *outside* the Trace: an `Item` with Approve / Deny in `ItemActions`. Once answered, it collapses back into a line
22
- - Never: A log row with buttons
23
- - **Dividers, system notes, checkpoints**
24
- - Build it with: `Marker`
25
- - Never: `Separator` plus a span
26
- - **Attachments**
27
- - Build it with: `Attachment`, with `state` wired to the real `idle → uploading → processing → done / error`
28
- - Never: A separate spinner
29
- - **Prompt box**
30
- - Build it with: `InputGroup` (textarea, attachment chip, submit). **Pickers hold a value the collapsed trigger shows:** shadcn `Select`, or a `DropdownMenuRadioGroup` whose trigger displays the current model (the shadcn pattern uses two: model and effort) [articles/wai-aria-apg/menu-button; github/ai-ui/shadcn-ui-chatbot-template]. Prompt-control icons have text labels; context (Attach) and scope (Focus) are separate controls. Suggestion chips are `ul > li > button`, 3–6 of them, ranked and drawn from context.
31
- A token or cost range sits beside Send for expensive runs [articles/ai-ux/nngroup-ai-ux-research; articles/ai-ux/primer-copilot-accessibility-practices; articles/ai-ux/shapeof-ai-pattern-library]
32
- - Never: A plain action menu for a value; a trigger that hides the current choice
33
- - **Message actions**
34
- - Build it with: A row of 3+ controls is a toolbar: one tab stop, arrows inside. Hover-revealed actions are keyboard-reachable [articles/wai-aria-apg/toolbar]
35
- - Never: Hover-only actions
36
- - **Agent avatar**
37
- - Build it with: A non-circle shape (square or hexagon); people stay circles [articles/component-gallery/avatar]
38
- - **Citations / context usage**
39
- - Build it with: Citations by depth: a hover quote for one claim, an inline link to open, a side panel for research answers. Citations alone push verification onto the user, so pair consequential values with per-value traces. Context usage is a `HoverCard` with `Progress` [youtube/L3RuP_q8Bwc; youtube/RGiXcVxSD3s]
40
- - **Message body (streaming)**
41
- - Build it with: A streaming-aware Markdown renderer that closes unterminated syntax (Streamdown, or remend in front of your renderer). Streamdown config: `animated` (150 ms fade per word) and `caret="block"` only on the last assistant message while streaming; `allowedImagePrefixes` plus `allowDataImages: false`, because unrestricted image URLs can leak data after prompt injection; keep `defaultRehypePlugins.sanitize` and the link-safety check. Memoize Markdown per block, keyed by message id; throttle `useChat` updates; never fake-stream real model output [youtube/VQCNVpzrR5Q; github/ai-ui/vercel-streamdown; github/ai-ui/vercel-ai]
42
- - Never: A raw `*`, half link or open code fence flashing mid-stream
43
- - **Generative UI**
44
- - Build it with: A typed catalog of existing components; unknown types fall back to Markdown [youtube/maTp79FD9gI]: **render after exploring**, with data tools as plain trace lines and one render call showing the curated set, carrying the model's per-item reason. A **template per intent with named slots** (catalog entries declare accepted slots, validated by a Zod spec, labels from data), so the same request always gives the same layout. Rendered data is in model context; clicks write back as semantic state. Text after a widget points to it rather than repeating it. Tool descriptions state their UI side effects [youtube/lbaXnx0KLA8; youtube/QrMcNe2jjt8]
45
- - Never: Rendering model-authored markup; a different layout on every run
46
- - **Tool-result cards in the thread**
47
- - Build it with: At most 2 actions (1 primary) and 4–5 data points. No menus, popovers, modals, tabs or inner scrollers. Height fits content; Expand opens a side panel or fullscreen, and the in-thread card collapses to a compact link. **Carousels hold 3–8 items; 1–2 items render as single cards.** Every widget shows its own loading, disabled, success and error-with-recovery states; status never lives only in prose; a finished action posts a new status line rather than silently mutating the old card.
48
- Never duplicate the chat input inside a card [articles/ai-ux/openai-apps-sdk-ui-guidelines; articles/ai-ux/claude-mcp-apps-design-guidelines; articles/ai-ux/google-connected-apps-guidelines; articles/ai-ux/microsoft-agents-copilot-mcp-apps]
49
- - Never: Mini-apps inside the thread
50
- - **Answer format**
51
- - Build it with: A ladder: Markdown by default → a typed component spec for scannable or actionable answers → a sandboxed widget only for calculations or games. The catalog generates the model's prompt; specs are schema-validated. Generative cards: one job, 400–600 px wide, purpose visible in the first 300 px, 5–7 options at most, carousel metadata of 3 lines or fewer, stable ids, heavy components deferred until their arguments are complete [github/ai-ui/assistant-ui-assistant-ui; github/ai-ui/openai-apps-sdk-ui; github/ai-ui/vercel-labs-json-render]
52
- - **Third-party UI (MCP Apps, partner HTML)**
53
- - Build it with: Only in a sandboxed iframe with the restrictive default CSP, logged postMessage traffic, a visible "From {server}" boundary, and the host theme passed as CSS variables. Tool calls the view starts go through the approval ladder [github/ai-ui/modelcontextprotocol-ext-apps]
54
- - Never: Inline third-party markup
55
- - **Artifacts (long output)**
56
- - Build it with: A versioned side panel opened from its inline preview. Agent writes are versions; user edits are flagged as manual; versions can be diffed [github/ai-ui/vercel-chatbot]
57
- - Never: Long output inline in the thread
58
- - **Clarifying questions**
59
- - Build it with: A sticky `Questionnaire` card above the composer: progress, choices plus "Type another answer…", Previous / Next / Answer. "Preparing a question…" shimmers while the input streams; afterwards a trace line reads "Asked N questions" [github/ai-ui/shadcn-ui-chatbot-template]
60
- - Never: Numbered questions in prose
61
- - **Agent edits to structured data**
62
- - Build it with: Land as **pending**, with an AI marker plus an accept / undo pair. After a human edit the marker becomes "Revert to agent value". The AI marker is a toggletip with an explainability popover (overview → details → sources → actions), focusable even in read-only controls, and never triggers actions [articles/ai-ux/salesforce-slds-agentic-patterns; articles/ai-ux/carbon-for-ai]
63
- - Never: Silently overwritten values
64
- - **Answers**
65
- - Build it with: Truncated pyramid: the answer and its necessary caveats first, follow-up chips after. "Can't do that" comes first, and "More detail" expands in place. Offer scrutiny follow-ups ("What could make this wrong?") and select-to-ask on any span. Clarifying questions render as a generated form (chips, one question per step), never numbered prose questions [articles/ai-ux/nngroup-ai-ux-research; articles/ai-ux/salesforce-slds-agentic-patterns]
66
- - **Regenerate and branch**
67
- - Build it with: Regenerating never destroys output: versions cycle ("2 / 3"). "Branch from here" shows the inherited context, with items that can be unticked [articles/ai-ux/shapeof-ai-pattern-library]
68
- - Never: Overwriting the previous answer
69
- - **Feedback**
70
- - Build it with: Thumbs up and down together, tertiary placement, a "Thanks" confirmation. Detailed options are named by consequence. Act on feedback immediately [articles/ai-ux/salesforce-slds-agentic-patterns; articles/ai-ux/apple-hig-generative-ai]
71
- - **Composer while running**
72
- - Build it with: **Stop always visible beside a working Send**: messages sent mid-run queue as steering for the agent. Stop calls a **server stop endpoint** that saves the partial answer and cancels the work (with resumable streams, `stop()` only disconnects). A stopped turn keeps its partial text with a "Stopped by you" badge and Continue / Discard. An optional **Answer now** on the thinking line skips remaining reasoning without stopping the run [youtube/fmZWvE7yDZo; youtube/YNJvm7t3yq8; youtube/RGiXcVxSD3s; github/ai-ui/vercel-ai; github/ai-ui/assistant-ui-assistant-ui; github/ai-ui/ibelick-prompt-kit]
73
- - Never: A run you can't interrupt or steer
74
- - **Idle composer**
75
- - Build it with: Capability chips for tasks the agent does reliably, role templates, and a "/ for skills" hint. After an answer: action buttons that carry the output into the next task or integration. Keep deterministic controls for exact operations [youtube/fmZWvE7yDZo; youtube/L3RuP_q8Bwc]
76
- - **Agent driving a surface**
77
- - Build it with: A persistent border or banner around the controlled browser, canvas or document, with Stop, Ask before acting, and Notify me [youtube/L3RuP_q8Bwc]
78
- - **Memory**
79
- - Build it with: An inspector showing what's remembered, with delete. A "Saved to memory" chip appears in the turn, with Manage / Undo. Temporary mode shows a persistent "not saved" indicator [youtube/L3RuP_q8Bwc; articles/ai-ux/shapeof-ai-pattern-library]
80
- - Never: Silent memory
81
-
82
- **Approvals** [youtube/CDqzWpwkSls; youtube/fmZWvE7yDZo; youtube/WkBPX-oDMnA]:
83
- - **Tier by cost and risk.** Read-only and cheap tools run unprompted. Writes, sends, spending and irreversible actions need approval. Destructive ones get extra friction. Auto-approved calls render as a status line giving the policy reason.
84
- - **Answers:** Approve · Reject (with a reason that reaches the model) · Edit arguments (only if the schema allows) · Respond instead. Scoped options (allow once / always, reject once / always) show what they grant before commit. [github/ai-ui/langchain-ai-langgraphjs; github/ai-ui/ag-ui-protocol-ag-ui; github/ai-ui/assistant-ui-assistant-ui]
85
- - **Lifecycle:**
86
- - Cancelled and expired are distinct from Deny.
87
- - Decide whether a new message blocks or cancels a pending approval.
88
- - Wait for the server to accept before disabling the buttons.
89
- - Restore pending approvals from thread state after a reload.
90
- - Several pending approvals get one card each and one combined submit.
91
- - Approvals are verified on the server (signed or issued); free text never authorizes. [github/ai-ui/ag-ui-protocol-ag-ui; github/ai-ui/assistant-ui-assistant-ui; github/ai-ui/vercel-ai]
92
- - **Frame the request as a proposal and say what to check:** target, effect, reversibility, evidence. Clear proposal framing substantially improves rejection of bad AI flags (one talk cited Duolingo moving correct rejections from 50% to 71% by rewording alone [unverified: no primary study linked]). A bare Approve / Deny on a high-stakes action invites rubber-stamping.
93
- - **One decision per approval.** "Is the agent's reading right?" and "should it act?" are separate questions.
94
- - **Multi-step work:**
95
- - Approve a numbered plan card first, with the one open question that changes the approach.
96
- - Then gate step by step.
97
- - Never "Approve all" on a large diff, and never a confirm on every edit.
98
- - **Approved then edited is a hidden rejection.** Record what the user does after approving (edits, overrides, retries) as distinct events.
99
-
100
- **Trace and wait states** [youtube/fmZWvE7yDZo; youtube/maTp79FD9gI; youtube/WkBPX-oDMnA]:
101
- - Completed lines show elapsed time, plus tokens or cost where users pay for them. Retries say "attempt n". A verifier's verdict is a line before the result.
102
- - Use the shimmer only for waits that warrant it; short tool calls stay plain lines. Long runs announce "Working…" to screen readers about every 5 s via a polite live region, stopping at completion; errors are announced. [articles/ai-ux/primer-copilot-accessibility-practices]
103
- - **Wait ladder:** nothing under 1 s; spinners and skeletons appear only after a 300–1000 ms delay; indeterminate for 1–3 s; determinate for 3–10 s; beyond 10 s it becomes a background task that notifies on completion. One spinner per region. First feedback within 100 ms of submit or tool start. On-device models add a "model not ready" stage: determinate download → indeterminate "Loading model" → ready, saying whether the feature works meanwhile. [articles/component-gallery/spinner; articles/clig; github/ai-ui/GoogleChromeLabs-web-ai-demos]
104
- - **Trace logs collapse on success and expand automatically on failure.** [articles/clig]
105
- - **Show what the agent removed, in place:** tinted and struck through, or a collapsed "N deleted" row; never only the end state.
106
- - **Every automatic write announces itself with an Undo** for that action. When users keep overriding a behavior, stop and offer to turn it off. [articles/microsoft-hax G9, G13]
107
- - **Stop responds instantly** and cleans up within a timeout. A second press force-stops, and the UI says so. [articles/clig] **A dropped connection is not a stop:** show "Reconnecting…" and resume the same message. Stop is an explicit signal that works from every tab or device in the session. [youtube/YNJvm7t3yq8]
108
- - **End of run:** a state-changing run says what changed and suggests the next action. A failed or stopped run hands off what was done, what's left, and the manual path. [articles/clig; articles/google-pair; articles/microsoft-hax G10]
109
- - **Confidence** is shown as High / Med / Low or ranked alternatives, each with an action, never a raw percentage. Clarifying questions come in one round, as a ranked choice, only when confidence is in the middle band. [articles/google-pair; articles/microsoft-hax G10-A, G11]
110
- - **Agent output that varies lives in its own region;** controls people use by habit never move. [articles/google-pair]
111
- - **Audit log** of agent actions: actor (with agent badge), event, what changed, status, Undo with a stated window ("Undo for 15 min"), date filter, export. Autonomous actions carry "Why: you allowed X". [articles/checklist-design; articles/ai-ux/smashing-agentic-ux-patterns]
112
- - **Agent-caused errors:** acknowledge → what was corrected → next step → how to reach a human. [articles/ai-ux/smashing-agentic-ux-patterns]
113
- - **First run:** the agent acts on the user's own data (or a sample) rather than coach marks, and offers example actions for common tasks. [articles/ai-ux/lukew-durable-ai-patterns]
114
- - **Mark changes where they happen:** highlighted revisions, a jump-to-next-change control, per-change Keep / Undo plus Accept all, and one-click revert in place for proactive edits. [youtube/L3RuP_q8Bwc; youtube/2cEGQEllBGc]
115
- - **Agent limits end in a human next step** that names who or what can fix it. Agent initiative ("I also noticed…") is labelled apart from the requested work. When the agent is about to make an assumption, it pauses, asks in the same task, and resumes without restarting the run. [youtube/CiMVKnX-CNI; youtube/RGiXcVxSD3s]
116
- - Run summaries go in teaching order: background → the goal in plain words → details, with prose before each change.
117
- - **Panels persist.** Hide and show the sidebar, trace inspector, tool-output drawer and settings with `<Activity mode={open ? "visible" : "hidden"}>`, not `{open && …}`, so search text, scroll and expansion survive. Pre-render the likely next view hidden (the next conversation, an approval's detail) so it opens instantly. [youtube/G9xD6lHgrMM]
118
-
119
- **Delegated and background work** [youtube/RGiXcVxSD3s; youtube/YIVkERhy8xo]:
120
- - A **task list** with status per task (awaiting input / running / done / failed), an openable trace per task, and a notification when work is done or needs input. Agent-produced values link to their provenance (source + step).
121
- - An **attention queue**: filter chips All / Awaiting / Working / Idle with counts; rows show the task plus the live last action or "Idle 29m"; one shortcut jumps to the next item awaiting the user.
122
- - **Review packages** for finished work: changed files plus a visual before/after, side-by-side comparison of parallel attempts, and terminal states (Merged / Cancelled).
123
- - **Take-over is always possible:** the user can reclaim any task, and a failing agent backs off and returns control.
124
-
125
- **AI inside non-chat surfaces** [youtube/CiMVKnX-CNI; youtube/2cEGQEllBGc]:
126
- - Choose the surface per capability:
127
- - **Invisible:** pre-work.
128
- - **Ambient:** small markers on the affected field or row.
129
- - **Inline:** invoke on the selection; dataset-wide changes run as generated code over the data.
130
- - **Conversational:** only for building or exploring.
131
- - Proactive help is a *specific* question or proposed change at the object, and is revertible in one click. Never a generic "Ask AI".
132
-
133
- **Approval ladder** (refines the tiers above) [articles/clig; articles/microsoft-hax G16]:
134
- 1. Read-only → runs with no prompt.
135
- 2. Moderate → an inline confirm with a dry-run preview of the effect.
136
- 3. Severe or irreversible → a blocking dialog with type-to-confirm (the resource name). *Indirect* destruction, such as a config change that deletes nine things, counts as severe. Initial focus goes to the least destructive button.
137
-
138
- "Always allow" states its scope before the user commits: this session / this workspace / always; the exact command vs. every command of that kind; read vs. write or send. A grant history allows revoking. Autonomy is a user-adjustable ladder that starts low, with four named rungs set per tool category: **Suggest / Propose / Act with confirmation / Act and notify**. When approvals are switched off, a persistent "approvals off" indicator offers one-click re-enable. Approval timeouts warn at least 20 s before expiry and can be extended (WCAG 2.2.1). [youtube/L3RuP_q8Bwc; articles/ai-ux/smashing-agentic-ux-patterns]
139
-
140
- - **The approval unit is an action card with a lifecycle:** title, one-line effect, Reject / Accept → "Generating preview" → accepted. Collapsed, the line keeps "Accepted by ‹name›" and a rollback note; a failure turns red with Try again. The same component works in chat and inline. Pending or dismissed never mutates data. [youtube/CiMVKnX-CNI; youtube/RGiXcVxSD3s]
141
- - **Plan cards show estimated duration and cost** (money, tokens, credits) and their scope ("only these sites; I'll ask before anything else"). Steps that hand back say so ("I will stop before checkout"). They have three exits: **Proceed · Edit plan · I'll do it myself**. Use domain verbs, never function names. If execution diverges from the approved plan, flag it on the card. [youtube/L3RuP_q8Bwc; articles/ai-ux/smashing-agentic-ux-patterns]
142
- - **Thresholds come from outcome costs, not a confidence number:** price a wrong action against asking or refusing, in user recovery time. Costly or irreversible actions confirm even at high confidence. Make confirming cheap with pre-filled choices. [youtube/Zd5b40Jbp_k]
143
-
144
- **Identity and safety** [articles/agent-ui-written-guides]:
145
- - **Agent identity:**
146
- - Every agent-authored artifact carries an agent badge.
147
- - The responsible human is shown on delegated work.
148
- - The four states (thinking / waiting for input / executing / done) are readable at a glance.
149
- - An invocation is acknowledged immediately.
150
- - **Model output is untrusted user content:**
151
- - Sanitize the *accumulated* stream (DOMPurify), not individual chunks.
152
- - If the sanitizer removes anything, stop rendering.
153
- - Append nodes instead of rewriting `innerHTML` / `textContent` on every chunk.
2
+ For React apps, run `npx shadcn@latest add message-scroller message bubble attachment marker trace code-block` or start from **`shadcn-ui/chatbot-template`** (for SvelteKit — `skill://deep-stack`'s default — port the same contracts onto native primitives). **AI Elements (`elements.ai-sdk.dev`) is deprecated**; its patterns live in shadcn/ui.
3
+
4
+ ### Core chat & trace contracts
5
+ - **Thread:** `MessageScroller` (`scrollAnchor` = user turn; `autoScroll` yields immediately on user scroll-up; `MessageScrollerButton` jumps to latest; once a streamed reply exceeds viewport, keep its *start* in view). Never hand-roll a stick-to-bottom div.
6
+ - **Turn:** `Message` (`align="end"` = user) + `Bubble` variants. Agent avatar uses a non-circle shape (square/hexagon); people stay circles.
7
+ - **Agent activity:** one `TraceLine` per action inside one `Trace` per run of steps between text blocks; tool row starts plain until output exists, then `TraceCollapsible` with `CodeBlock`. Never hand-roll `"Thinking..."` collapsibles.
8
+ - **Status words:** map SDK states explicitly (`Running` → `Ran` / `Failed to run`; `Thinking` → `Thought`); name actual work without anthropomorphism; show explicit states (`queued · running · waiting for approval · error · retried · completed`); collapse finished runs to one summary line (`"Ran 14 tools · 2m 10s"`).
9
+ - **Tool states (`switch (part.state)`):** `input-streaming`/`input-available` → Running; `approval-requested` → approval prompt; `approval-responded` → Running/Denied; `output-available` → Ran; `output-error` → Failed to run; `output-denied` → **neutral** `"Denied …"` (user choice != red error); `preliminary: true` → still Running. Subagents render as one line with nested Trace, model/tool badges, and elapsed time. Sources & message actions appear after streaming; Retry only on last assistant message while idle.
10
+ - **Dividers, attachments & prompt box:** `Marker` for checkpoints/system notes; `Attachment` wired to `idle → uploading → processing → done / error`; `InputGroup` with pickers whose collapsed trigger displays the active value (`Select` or `DropdownMenuRadioGroup` for model & effort), labeled icons, separate Attach/Focus controls, 3–6 ranked suggestion chips (`ul > li > button`), and cost/token estimate beside Send for expensive runs.
11
+ - **Message actions & citations:** 3+ actions use ARIA toolbar (one tab stop, arrow keys); hover-revealed actions stay keyboard-reachable. Citations scale by depth (hover quote → inline link → side panel); context usage uses `HoverCard` + `Progress`.
12
+ - **Streaming Markdown:** use a syntax-healing renderer (`Streamdown` or `remend`), `animated` (150 ms fade) + `caret="block"` only on last streaming message, `allowedImagePrefixes` + `allowDataImages: false` (prevents prompt-injection exfil), sanitize enabled, memoized per block, throttled updates, never fake-stream real output.
13
+ - **Composer while running:** **Stop always visible beside a working Send** (mid-run messages steer). Stop calls a **server stop endpoint** saving partial text (`"Stopped by you"` + Continue / Discard); a dropped connection reconnects (`vercel/resumable-stream` MIT for serverless SSE resumption without sticky load balancers) and never acts as a stop. Optional `"Answer now"` skips remaining reasoning.
14
+ - **Idle composer, driving surfaces & memory:** capability chips + role templates + `"/ for skills"`; persistent banner/border with Stop / Ask before acting / Notify me when an agent drives a browser/canvas; transparent memory inspector with delete, `"Saved to memory"` chip + Undo, and explicit temporary mode.
15
+
16
+ ### Generative UI, cards & artifacts
17
+ - **Answer format ladder:** Markdown by default → schema-validated typed component spec (`vercel-labs/json-render` Apache-2.0 `defineCatalog` + Zod props/actions + `defineRegistry` for React/Svelte 5/Vue/Mobile/MCP Apps, or deepmodebot's A2UI `gen_ui.py`; same layout on repeated runs, fallback to Markdown for unknown types, render *after* exploring, never `eval`/raw code) → sandboxed widget only for calculations/games. Rendered data stays in model context; clicks write back semantic state; follow-up prose points to widgets instead of repeating them.
18
+ - **Tool-result cards in thread:** max 2 actions (1 primary), 4–5 data points, no menus/modals/tabs/inner scrollers, never duplicate chat input inside a card. Carousels hold 3–8 items (1–2 render as single cards). Expand opens a side panel/fullscreen. Every widget owns loading/disabled/success/error-with-recovery states.
19
+ - **Third-party UI (MCP Apps / partner HTML):** sandboxed iframe only, restrictive default CSP, logged `postMessage`, visible `"From {server}"` boundary, host theme via CSS variables, tool calls go through approval ladder.
20
+ - **Artifacts & structured edits:** long outputs live in a versioned side panel (agent versions vs manual edits, diffable). Agent edits to structured data land as **pending** with an AI toggletip marker + Accept / Undo (`"Revert to agent value"` after human edit). Clarifying questions render as a sticky `Questionnaire` card above composer, never numbered prose. Regenerate preserves versions (`"2 / 3"`) and `"Branch from here"`.
21
+
22
+ ### Approvals, wait ladder & delegation
23
+ - **Approval ladder (prompt *outside* Trace, `Item` + `ItemActions`, collapses once answered):**
24
+ 1. Read-only / cheap → runs unprompted (auto-approved line cites policy reason).
25
+ 2. Moderate write → inline proposal naming **target, effect, reversibility, evidence** + dry-run preview; options: Approve · Reject (with reason) · Edit args · Respond instead; scoped grants (`allow once / workspace / always`) state scope before commit.
26
+ 3. Severe / irreversible (including indirect bulk config deletes) → blocking dialog with type-to-confirm; initial focus on least destructive button.
27
+ - **Approval lifecycle:** one decision per prompt; Cancelled/Expired != Deny; wait for server ack before disabling; restore pending approvals after reload; server-verified (free text never authorizes); never `"Approve all"` on a large diff; track approved-then-edited as hidden rejection; warn `>= 20 s` before timeout expiry (WCAG 2.2.1).
28
+ - **Plan cards:** numbered plan + estimated duration/cost + scope + explicit hand-back points + exits (**Proceed · Edit plan · I'll do it myself**); flag divergence if execution drifts.
29
+ - **Wait ladder:** nothing `< 1 s`; spinners/skeletons after `300–1000 ms`; indeterminate `1–3 s`; determinate `3–10 s`; `> 10 s` background task with notification. First feedback `< 100 ms`. Collapse traces on success, expand on failure. Announce `"Working…"` to screen readers every ~5 s via polite live region. Show deletions in place; every automatic write offers Undo; show High/Med/Low confidence instead of raw percentages.
30
+ - **Delegated & background work:** persistent panels via `<Activity>` (preserves scroll/state); task list + attention queue (`All / Awaiting / Working / Idle`) with one shortcut to next awaiting item; review packages with visual before/after; user can always take over; audit log with actor badge, timestamp, Undo window, and `"Why: you allowed X"`.
31
+ - **Non-chat surfaces:** match capability to surface (Invisible pre-work, Ambient field markers, Inline selection/code transforms, Conversational only for exploring/building). Proactive help is specific and 1-click revertible. Replace blank open-ended domain AI prompt boxes with **example-driven suggested triggers** (`Auto Label` > blank `Autopilot`) so capability boundaries are visible up front.
32
+ - **Multi-session workspace entities & AI diff review (Linear patterns):** model concurrent agents as living workspace rows (`waiting for input · in progress · done`) alongside projects/inbox or in a multi-tab bar, surface inline document edits as compact change cards (`summary + Show changes + Undo`), filter automated bot comments separately from human threads, and render multi-file agent diffs as **thematic intent Guides (`1 of N`)** with a **Meaningful-LOC** header badge (`Meaningful code +X -Y · Total +A -B`) separating core code from tests, lockfiles, and generated files.
33
+ - **Identity & safety:** badge every agent-authored artifact, show responsible human on delegated work, sanitize *accumulated* stream with DOMPurify (stop rendering if anything is stripped), and append DOM nodes rather than rewriting `innerHTML` per chunk.
@@ -1,106 +1,51 @@
1
1
  ## 5. Motion
2
- [articles/emil-kowalski-*; .claude/skills/emil-design-eng, animate, review-animations]
3
2
 
4
3
  **Easing:**
5
4
 
6
5
  | Motion | Easing |
7
6
  | --- | --- |
8
- | Enter or exit | ease-out |
9
- | Moving or morphing on screen | ease-in-out |
10
- | Hover | ease |
11
- | Constant motion | linear |
12
- | Draggable, throwable or reversible mid-flight | spring |
7
+ | Enter or exit | `ease-out` (`cubic-bezier(0.23, 1, 0.32, 1)`) |
8
+ | Moving or morphing on screen | `ease-in-out` (`cubic-bezier(0.77, 0, 0.175, 1)`) |
9
+ | Drawers | `cubic-bezier(0.32, 0.72, 0, 1)` |
10
+ | Hover | `ease` (`<= 160 ms` on frequent buttons) |
11
+ | Constant motion | `linear` |
12
+ | Draggable, throwable or reversible mid-flight | spring (`visualDuration` + `bounce`) |
13
13
 
14
- - Never use `ease-in` for UI.
15
- - Use the strong curves, never improvised approximations [github/emilkowalski-skills]:
16
- - Enter and exit: `cubic-bezier(0.23, 1, 0.32, 1)`
17
- - On-screen moves: `cubic-bezier(0.77, 0, 0.175, 1)`
18
- - Drawers: `cubic-bezier(0.32, 0.72, 0, 1)`
19
- - **Springs** [youtube/HaZ2jw9rx9M; youtube/gttSJA-kDmQ]:
20
- - Specify a spring as duration + bounce: Motion `{ type: "spring", visualDuration, bounce }`, or CSS `linear()` baked from the same two numbers. Never raw stiffness / damping / mass.
21
- - Bounce defaults to 0; about 0.15 is brisk; up to 0.3 for momentum-carrying gestures; never above 0.4. Something opened by a tap gets 0; something dismissed by a swipe may get a little.
22
- - Fire follow-up work (focus, unmount) at the spring's perceptual duration, not when it settles.
14
+ - Never use `ease-in` for UI. Use strong curves, never improvised approximations.
15
+ - **Springs:** specify `{ type: "spring", visualDuration, bounce }` (or CSS `linear()` baked from them), never raw stiffness/damping/mass. `bounce: 0` default, `0.15` brisk, up to `0.3` for momentum gestures, never `> 0.4`. Fire follow-up work (focus, unmount) at perceptual duration, not settle.
23
16
 
24
- **Duration:**
25
-
26
- | Element | Duration |
27
- | --- | --- |
28
- | Micro-interactions | 100–150 ms |
29
- | Tooltips, dropdowns | 150–250 ms |
30
- | Modals, drawers | 200–300 ms |
31
-
32
- - Keep UI motion under 300 ms; Rauno caps interactions at about 200 ms.
33
- - Exits run about 20% faster than entrances.
34
- - Choreography: 30–80 ms steps, under about 300 ms in total, never uniform, one entrance per container, never blocking interaction. [.claude/skills/choreograph]
35
- - **Page transitions** may exceed 300 ms if legibility doesn't wait: cap *time to legible*, not total time. Use short distances, and sequence whole-view cross-fades (old out, then new in) rather than overlapping them. Delba's route slide is 400 ms ease-out over 60 px, with old out in 150 ms and new in over 210 ms after a 150 ms delay; readable at about 360 ms. [youtube/UuUAeWpz2NA]
17
+ **Duration:** Micro-interactions `100–150 ms`; tooltips/dropdowns `150–250 ms`; modals/drawers `200–300 ms`. Keep UI motion `< 300 ms` (frequent buttons `<= 160 ms`); exits ~20% faster than entrances. Choreography: `30–80 ms` steps, `< 300 ms` total, never blocking interaction. Page transitions cap *time to legible* (~360 ms), sequencing whole-view cross-fades over short distances.
36
18
 
37
19
  **Details:**
38
- - `scale(0.97)` on `:active`.
39
- - Enter from `scale(0.95)` plus opacity (range 0.9–0.97), never `scale(0)`. Modals stay centered; popovers scale from their trigger.
40
- - Origin-aware popovers: `transform-origin: var(--transform-origin)` in Base UI, the Radix variable in Radix.
41
- - Only the first tooltip in a group gets a delay; later ones open instantly.
42
- - Animate a child element to avoid hover flicker.
43
- - A little blur (under 20 px; 2 px for crossfades) to smooth state changes. Fast-moving content gets a few px of motion blur on entry, or travels a shorter distance. [youtube/gttSJA-kDmQ]
44
- - Don't force one curve on every property: position, scale and radius may finish at different times. [youtube/HaZ2jw9rx9M]
45
- - **Interruptible means velocity-preserving.** A reversed or retargeted animation continues from its current velocity. CSS transitions retarget only position; springs also carry velocity, so use springs for anything the user can reverse mid-flight. Never keyframes for interactive state. [youtube/HaZ2jw9rx9M; github/vercel-labs-web-interface-guidelines]
46
- - **Gestures** [youtube/gttSJA-kDmQ; .claude/skills/gestures]:
47
- - Track the finger 1:1. Keep the grab offset (never re-center). Keep a velocity history.
48
- - About 10 px before a drag starts, then lock the axis.
49
- - Highlight on `pointerdown`; commit on `pointerup`; generous hit slop. Press-to-activate controls cancel when dragged out, but sliders and scrubbers keep the drag alive outside the track. [articles/rauno-invisible-details-interaction-design]
50
- - Reversible gestures may commit mid-gesture; destructive ones commit only on release. Apply the change from the first pixel and animate only past the threshold.
51
- - Choose the release target by **momentum projection**: `project(v) = (v/1000)·0.998/(1−0.998)`. Snap to the point nearest `pos + project(v)` and hand `v` to the spring. Distance thresholds alone make flicks snap back.
52
- - Rubber-band at the edges.
53
- - Recognize competing gestures in parallel. No double-tap handlers where single taps matter, since they add about 0.5 s to every tap.
54
- - Hint toward the outcome during the press, and keep enter and exit paths symmetric.
55
- - Use Vaul rather than a hand-built sheet.
20
+ - `scale(0.97)` on `:active`; enter from `scale(0.95)` + opacity (never `scale(0)`). Anchor `transform-origin` and a `4–6 px` entry offset to the menu/popover's actual opening vector (`top left` down-right vs `top right` down-left when collision-flipped, never `50% 50%`), paired with diagonal **aiming-triangle** safe polygons on submenus (`icRjQePEa_A`, 09:00–09:44).
21
+ - **Familiarity-tiered roving tooltips (`icRjQePEa_A`, 00:00–00:05, 11:40–12:38):** only the first tooltip in a group gets a delay (`600–800 ms` on daily sidebar chrome, `100–200 ms` on unfamiliar status icons like `[*]`); roving to neighbours opens in `0 ms` with `0` slide motion. Animate a child element to avoid hover flicker.
22
+ - Subtle blur (`< 20 px`; `2 px` for crossfades) smooths state changes. Decouple curves when position, scale, and radius finish differently.
23
+ - **Interruptible = velocity-preserving:** springs carry velocity mid-flight; never use CSS keyframes for interactive state.
24
+ - **Gestures:** track pointer 1:1 keeping grab offset + velocity history; ~10 px drag slop then axis lock; highlight on `pointerdown`, commit on `pointerup` (destructive only on release). Choose release target by **momentum projection**: `project(v) = (v/1000)·0.998/(1−0.998)`. Rubber-band edges; recognize competing gestures in parallel; no double-tap handlers where single taps matter; use Vaul over hand-built sheets.
25
+ - **Mobile tactile patterns (`references/patterns/mobbin-animations.md`):** morph dismissed sheet CTAs into docked floating capsules; expand `48–56 px` mini-bars via `layoutId`; keep `0` scrim at `peek`/`half` sheet detents and scale root (`0.94`) continuously past 50%; couple card-swipe `dx` to tilt (`dx * 0.04deg`); `rotateY(180deg)` (`backface-visibility: hidden`) for card flips; `600–900 ms` press-and-hold radial commits; explicit `transition-property` lists (`color, background-color, border-color, transform, opacity`).
56
26
 
57
- **When to animate**, gated by frequency before choosing any curve [youtube/vjP8bNs8aok; youtube/z3Lo5QT7nME]:
27
+ **When to animate (frequency gate):**
58
28
 
59
29
  | Frequency | Motion |
60
30
  | --- | --- |
61
- | 100+ times a day; anything keyboard-initiated, including Escape-to-close and ⌘K | None |
62
- | Tens of times a day | Minimal |
31
+ | 100+ times/day; keyboard-initiated (Escape-to-close, ⌘K) | None (verify by hand — agents often animate Escape) |
32
+ | Tens of times/day | Minimal (`<= 160 ms`) |
63
33
  | Occasional (dialogs, toasts) | Standard |
64
- | Rare (onboarding, first success) | Delight is allowed |
65
-
66
- Skills still miss this: with every rule installed, an agent animated Escape. Check it by hand.
67
-
68
- - Animate in response to a user action (open, expand, confirm), to show what changed.
69
- - Ambient motion only to draw attention: one orchestrated moment, not scattered effects.
70
- - **Spatial consistency:** things enter from and return to where they live (popover ↔ trigger, sheet ↔ edge). [youtube/z3Lo5QT7nME]
71
- - **Match strength to importance:** work tools are fast and predictable; bounce reads playful; overshoot is only for must-notice changes. Rules are defaults with reasons (Sonner deliberately uses 400 ms `ease`). [youtube/z3Lo5QT7nME]
72
- - **State-to-state:** morph one container while content cross-fades with blur; roll digits rather than swapping them; make each step a legible state (button → form → loading → done). [youtube/ofoVCws7gFs]
73
- - **Perceived performance:** spend the animation budget where users wait anyway (uploads, agent runs), and make everything else instant. [youtube/z3Lo5QT7nME]
74
- - **Exits:** Material and NN/g use accelerating exits; for product UI we follow Emil (ease-out exits). Everyone agrees exits are shorter than entrances. [youtube/UcXWY057YuQ]
75
- - Data the user is reading doesn't re-animate on refresh.
76
- - Reduced motion means gentler, not zero: keep opacity and color, drop movement. Drive slide distance through `--slide-distance` and set it to `0` under `prefers-reduced-motion: reduce`. [youtube/UuUAeWpz2NA] **Exception:** spinners and progress indicators keep moving (subtly), because a frozen spinner reads as stalled. [articles/component-gallery/spinner] Decorative shimmer, generative borders and carousel slides are not progress indicators: they stop. Persistent ambient animation gets a pause control. [articles/ai-ux/google-connected-apps-guidelines; articles/ai-ux/atlassian-rovo-ai-guidelines]
77
- - A sent message rises out of the composer (opacity and translateY only). [articles/ai-ux/atlassian-rovo-ai-guidelines]
78
- - Motion origin encodes source: a tool-detail panel grows out of its trace row. Adaptive updates highlight the small part that changed; they never reshuffle the whole view. [articles/rauno; articles/microsoft-hax G14]
79
- - Gate hover effects with `@media (hover: hover) and (pointer: fine)`.
80
-
81
- **Performance** [.claude/skills/animation-performance]:
82
- - Animate `transform` and `opacity` only; never `transition: all`.
83
- - Per-frame values go to `ref.current.style`, not React state.
84
- - Don't animate inherited CSS variables.
85
- - Add `will-change` only after you've seen the glitch.
86
- - **Layout changes** (reorder, accordion siblings, an expanding trace row) animate with Motion `layout` / `layoutId` or a View Transition, never `width`/`height`. The problem is visual (text re-wraps, pixels snap), not only performance. Scope `layout` narrowly: projection runs on the main thread and stutters while streamed content renders. [youtube/5-JIu0u42Jc]
87
-
88
- **Platform first, the cheapest tool that works** [youtube/UcXWY057YuQ]:
89
- - `@starting-style` + `transition-behavior: allow-discrete` (with `display`, `overlay`) for dialogs and popovers.
90
- - `interpolate-size: allow-keywords` / `::details-content` for accordions. This is the only sanctioned height animation.
91
- - View Transitions for **discrete** changes only: a route change, a filter applied, an item added or removed [youtube/QA5f2loqtM4; youtube/G9xD6lHgrMM; youtube/UuUAeWpz2NA; youtube/GDkFiog1D1c]:
92
- - **They can't be interrupted.** A second transition skips the first to its end. Anything that can be triggered rapidly or reversed uses springs, Motion `layout` or additive animation instead.
93
- - **A document-level transition blocks input.** Add `::view-transition { pointer-events: none }`, or use element-scoped `el.startViewTransition()` (feature-detect) for panels inside a live, streaming app.
94
- - **In React**, trigger only through `startTransition` / `<ViewTransition>`, never `document.startViewTransition` + `flushSync`. Give persistent chrome (header, sidebar, composer) its own named `<ViewTransition>` so it doesn't slide. Express direction with `addTransitionType` (`nav-forward` / `nav-back`).
95
- - **Named elements keep their aspect ratio** (`width: fit-content`). Otherwise set `object-fit: none; object-position: top left` on `::view-transition-old/new`.
96
- - **Live content** (a streaming message, an avatar) hides the old snapshot and doesn't animate the new one. Target enter-only and exit-only parts with `:only-child`.
97
- - **Size-changing groups run on the main thread.** If one janks, rewrite it to translate + scale and confirm in a performance trace.
98
- - **Scrolling** [youtube/vPb7d28RFNE]:
99
- - Every nested scroller (thread, trace panel, code block) gets `overscroll-behavior: contain`.
100
- - `scroll-behavior: smooth` and programmatic smooth scrolling only under `prefers-reduced-motion: no-preference`; this covers MessageScroller's auto-follow and jump-to-latest.
101
- - Scrollbars use `scrollbar-color` with `light-dark()` and are never `thin` on primary scrollers. The thumb takes the accent on `:focus-within`.
102
- - Scroll shadows and edge fades use scroll-driven animations as progressive enhancement; prefer `scroll-state()` queries to JS scroll listeners.
103
- - **Feedback:** hover and focus *raise* contrast; disabled is 50% opacity with no shadow. Never fade an element the user is about to click.
104
- - **Slow-motion check** to end every motion pass: DevTools → Animations at 10–25%, scrub each transition, and inspect the `::view-transition` tree. A broken transition degrades to a plain fade that passes a full-speed glance.
105
- - Scroll-driven animations only as progressive enhancement.
106
- - A CSS transition before reaching for motion.
34
+ | Rare (onboarding, first success) | Delight allowed |
35
+
36
+ - Animate in response to user actions to show what changed; max one ambient moment. Maintain spatial consistency (popover ↔ trigger, sheet ↔ edge) and match strength to importance. Never build a **"Christmas tree" UI**: keep surrounding chrome still so the one state-confirming target (e.g., a Kanban drop bucket) reads unmistakably; make any workplace Easter egg self-limiting with no `Play again` loop.
37
+ - **State-to-state & perceived-speed physics:** morph one container while cross-fading with blur; roll digits (`NumberFlow`) rather than swapping; keep each step legible (`button → loading → done`). Spend animation budget where users wait; never re-animate data on refresh.
38
+ - **High-stakes submit floor vs routine optimism:** routine edits apply in `0 ms` optimistically (backed by retry queue + rollback); irreversible/payment submits enforce a `400–1000 ms` minimum spinner floor so instant completion never looks broken (`XqhduyTnEM8`).
39
+ - **Progress & ETA honesty:** compute transfer ETAs over a **rolling `10 s` sliding window** (never `totalBytes / totalElapsed`), pace progress with goal-gradient acceleration or retrograde-moving ribs (feels ~11% faster), and cap optimistic progress at `<= 95%` until server ACK.
40
+ - **Tap-toggle vs hold-push-to-talk & dictation budget:** tapping a record/capture toggle leaves media paused on stop; **holding** the key (`push-to-talk`) automatically restores the prior playback/view state on key release (`icRjQePEa_A`). For voice dictation, hide noisy partial ASR tokens that cause mid-sentence self-editing behind a minimal live pill + `<= 700 ms` release-to-text budget (`~200 ms` ASR + `200 ms` cleanup + `200 ms` RTT). Text carets blink at idle and stay **solid while typing** (`7DN3Ectm6UY`).
41
+ - **UI sound & volume curves (when audio is present):** map volume sliders logarithmically (`gain = x^3` or dB, never linear amplitude); use ascending harmonious notes for connect/success, low dissonant tones for disconnect/failure, and scale duration inversely to event frequency (`_rFJutK25VU`, `fBdxtU6JN6M`).
42
+ - **Reduced motion:** gentler, not zero — keep opacity/color, set `--slide-distance: 0` under `prefers-reduced-motion: reduce`. **Exception:** spinners/progress keep moving subtly (decorative shimmer/glows stop). Gate hover effects with `@media (hover: hover) and (pointer: fine)`.
43
+ - **Chat & adaptive motion:** sent message rises out of composer (`opacity` + `translateY`); tool-detail panel grows from its trace row; adaptive updates highlight only the changed region.
44
+
45
+ **Performance & platform first:**
46
+ - Animate `transform` and `opacity` only; never `transition: all`. Per-frame values go to `ref.current.style`, not React state. Don't animate inherited CSS variables; add `will-change` only after observing glitch.
47
+ - Layout changes (reorder, accordions, expanding trace rows) use Motion `layout`/`layoutId` or View Transitions, never `width`/`height` (scope `layout` narrowly during streaming).
48
+ - Prefer CSS first: `@starting-style` + `transition-behavior: allow-discrete` for dialogs/popovers; `interpolate-size: allow-keywords` / `::details-content` for accordions.
49
+ - **View Transitions (discrete changes only — non-interruptible):** add `::view-transition { pointer-events: none }` or element-scoped `el.startViewTransition()`; trigger in React only via `startTransition` / `<ViewTransition>` (name persistent chrome so it stays put; use `addTransitionType` for direction); keep `width: fit-content` on named elements; hide stale old snapshots for live/streaming content.
50
+ - **Scrolling:** `overscroll-behavior: contain` on nested scrollers; `scroll-behavior: smooth` only under `prefers-reduced-motion: no-preference`; `scrollbar-color` with `light-dark()` (never `thin` on primary scrollers); prefer `scroll-state()` / scroll-driven animations over JS scroll listeners.
51
+ - **Feedback, motion-diff & QA:** hover/focus raise contrast; disabled is 50% opacity with no shadow. End every motion pass with a DevTools Animations 10–25% slow-motion scrub and collective full-video playback check. When rebuilding or matching a reference animation, run `python -B <frontend-ui skill>/scripts/motion_diff.py <ref.mp4> <cand.mp4>` to verify trigger offset `<= 0.08 s`, duration error `<= 0.08 s`, matching easing family, activity-curve `RMSE <= 0.08`, and `<= 0.5%` at-rest jitter.