deepmodebot 0.9.0 → 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 (691) 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 +187 -10
  6. package/lib/clients.mjs +50 -3
  7. package/lib/tree.mjs +64 -10
  8. package/lib/version.mjs +26 -0
  9. package/native/dmb-gate/Cargo.toml +13 -0
  10. package/native/dmb-gate/src/agents.rs +77 -0
  11. package/native/dmb-gate/src/ci.rs +516 -0
  12. package/native/dmb-gate/src/cleanup.rs +198 -0
  13. package/native/dmb-gate/src/gap.rs +1376 -0
  14. package/native/dmb-gate/src/guard.rs +135 -0
  15. package/native/dmb-gate/src/main.rs +327 -0
  16. package/native/dmb-gate/src/map.rs +173 -0
  17. package/native/dmb-gate/src/perf.rs +347 -0
  18. package/native/dmb-gate/src/reward.rs +1214 -0
  19. package/native/dmb-gate/src/skill_check.rs +171 -0
  20. package/native/dmb-gate/src/slop.rs +1238 -0
  21. package/native/dmb-gate/src/ui.rs +842 -0
  22. package/native/dmb-gate/src/util.rs +260 -0
  23. package/native/dmb-net/go.mod +3 -0
  24. package/native/dmb-net/main.go +624 -0
  25. package/native/dmb-net/main_test.go +122 -0
  26. package/package.json +12 -2
  27. package/plugins/deepmodebot/.antigravity-plugin/plugin.json +1 -1
  28. package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +5 -5
  29. package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +1 -1
  30. package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +2 -2
  31. package/plugins/deepmodebot/.antigravity-plugin/skills/suggest/SKILL.md +13 -0
  32. package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +2 -2
  33. package/plugins/deepmodebot/.claude-plugin/plugin.json +1 -1
  34. package/plugins/deepmodebot/.codex-plugin/plugin.json +46 -0
  35. package/plugins/deepmodebot/agents/comment-sicko/agent.md +35 -0
  36. package/plugins/deepmodebot/agents/researcher/agent.md +33 -0
  37. package/plugins/deepmodebot/agents/reviewer/agent.md +4 -2
  38. package/plugins/deepmodebot/agents/scout/agent.md +11 -12
  39. package/plugins/deepmodebot/agents/security-reviewer/agent.md +2 -1
  40. package/plugins/deepmodebot/commands/deep.md +6 -6
  41. package/plugins/deepmodebot/commands/research.md +8 -0
  42. package/plugins/deepmodebot/commands/suggest.md +10 -0
  43. package/plugins/deepmodebot/commands/tournament.md +2 -2
  44. package/plugins/deepmodebot/hooks/hooks.json +2 -2
  45. package/plugins/deepmodebot/hooks.json +1 -1
  46. package/plugins/deepmodebot/scripts/antigravity-guard.mjs +140 -7
  47. package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +179 -47
  48. package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +4 -6
  49. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +3 -0
  50. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +4 -0
  51. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +3 -1
  52. package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +2 -2
  53. package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +12 -2
  54. package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +11 -3
  55. package/plugins/deepmodebot/skills/app-automation-relay/SKILL.md +17 -0
  56. package/plugins/deepmodebot/skills/app-automation-relay/assets/relay_server.ts +364 -0
  57. package/plugins/deepmodebot/skills/app-automation-relay/references/adapter-cookbook.md +15 -0
  58. package/plugins/deepmodebot/skills/app-automation-relay/references/wire-protocol.md +23 -0
  59. package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +4 -3
  60. package/plugins/deepmodebot/skills/cloud-devsecops/references/cloudflare-edge.md +43 -0
  61. package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +15 -2
  62. package/plugins/deepmodebot/skills/contribute/SKILL.md +3 -35
  63. package/plugins/deepmodebot/skills/create-formal-verification-skill/LICENSE +21 -0
  64. package/plugins/deepmodebot/skills/create-formal-verification-skill/NOTICE.md +16 -0
  65. package/plugins/deepmodebot/skills/create-formal-verification-skill/SKILL.md +71 -0
  66. package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +2 -2
  67. package/plugins/deepmodebot/skills/deep-learning/LICENSE +21 -0
  68. package/plugins/deepmodebot/skills/deep-learning/SKILL.md +33 -0
  69. package/plugins/deepmodebot/skills/deep-learning/references/neural-architectures.md +43 -0
  70. package/plugins/deepmodebot/skills/deep-learning/references/papers-and-repos.md +128 -0
  71. package/plugins/deepmodebot/skills/deep-learning/references/reinforcement-learning.md +57 -0
  72. package/plugins/deepmodebot/skills/deep-learning/references/training-optimization.md +40 -0
  73. package/plugins/deepmodebot/skills/deep-learning/references/weight-space-programming.md +76 -0
  74. package/plugins/deepmodebot/skills/deep-learning/scripts/hf_passes.py +166 -0
  75. package/plugins/deepmodebot/skills/deep-learning/scripts/wsp.py +493 -0
  76. package/plugins/deepmodebot/skills/deep-stack/SKILL.md +1 -1
  77. package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +46 -92
  78. package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +1 -0
  79. package/plugins/deepmodebot/skills/deep-stack/references/prove.md +6 -0
  80. package/plugins/deepmodebot/skills/deep-stack/references/stack.md +11 -1
  81. package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +74 -145
  82. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +18 -6
  83. package/plugins/deepmodebot/skills/deepmodebot/assets/autoroute/autoroute.py +1021 -0
  84. package/plugins/deepmodebot/skills/deepmodebot/assets/cleanup/self_cleanup.py +305 -0
  85. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +98 -5
  86. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +106 -5
  87. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +3 -0
  88. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +2 -0
  89. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/rehearsal_gate.py +536 -0
  90. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +2 -0
  91. package/plugins/deepmodebot/skills/deepmodebot/assets/formal-verification/verify_proof.py +638 -0
  92. package/plugins/deepmodebot/skills/deepmodebot/assets/gap-audit/gap_audit.py +1053 -0
  93. package/plugins/deepmodebot/skills/deepmodebot/assets/gen-ui/gen_ui.py +1782 -0
  94. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +7 -0
  95. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +3 -2
  96. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +9 -5
  97. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +2 -0
  98. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +2 -0
  99. package/plugins/deepmodebot/skills/deepmodebot/assets/local-ci/local_ci.py +540 -0
  100. package/plugins/deepmodebot/skills/deepmodebot/assets/local-ci/slop_gate.py +642 -0
  101. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +2 -1
  102. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +2 -1
  103. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +2 -0
  104. package/plugins/deepmodebot/skills/deepmodebot/assets/memory/project_memory.py +529 -0
  105. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +48 -21
  106. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +339 -5
  107. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +96 -6
  108. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +2 -0
  109. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +2 -0
  110. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +2 -0
  111. package/plugins/deepmodebot/skills/deepmodebot/assets/prompt-tools/prompt_tools.py +1239 -0
  112. package/plugins/deepmodebot/skills/deepmodebot/assets/quota-guard/quota_guard.py +424 -0
  113. package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +477 -1
  114. package/plugins/deepmodebot/skills/deepmodebot/assets/reward-guard/reward_guard.py +1597 -0
  115. package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rule-paths.json +57 -0
  116. package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rule_ledger.py +1645 -0
  117. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +2 -0
  118. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +2 -0
  119. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +13 -10
  120. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/static_sec_audit.py +275 -0
  121. package/plugins/deepmodebot/skills/deepmodebot/assets/self-grill/self_grill.py +1473 -0
  122. package/plugins/deepmodebot/skills/deepmodebot/assets/setup/model_setup.py +329 -0
  123. package/plugins/deepmodebot/skills/deepmodebot/assets/setup/project_setup.py +312 -0
  124. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +304 -18
  125. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +121 -78
  126. package/plugins/deepmodebot/skills/deepmodebot/references/README.md +14 -0
  127. package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +16 -11
  128. package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +2 -1
  129. package/plugins/deepmodebot/skills/deepmodebot/references/delegation.md +14 -0
  130. package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +2 -0
  131. package/plugins/deepmodebot/skills/deepmodebot/references/full-scope.md +9 -0
  132. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +2 -0
  133. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +12 -9
  134. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +7 -3
  135. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +2 -0
  136. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +4 -4
  137. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +1 -1
  138. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +13 -10
  139. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +6 -6
  140. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +1 -0
  141. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +3 -1
  142. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +1 -2
  143. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +1 -0
  144. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +4 -2
  145. package/plugins/deepmodebot/skills/deepmodebot/references/principles/hardcore-mode.md +7 -0
  146. package/plugins/deepmodebot/skills/deepmodebot/references/principles/no-reward-hacking.md +8 -0
  147. package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +2 -1
  148. package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +2 -2
  149. package/plugins/deepmodebot/skills/deepmodebot/references/rule-approval.md +51 -0
  150. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +10 -24
  151. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +5 -4
  152. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +3 -3
  153. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/autoroute.md +49 -0
  154. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +1 -1
  155. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/catchup-video.md +13 -0
  156. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +8 -7
  157. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +2 -1
  158. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/devex-review.md +13 -0
  159. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/expand-contract.md +13 -0
  160. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/formal-verification.md +33 -0
  161. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/gen-ui.md +60 -0
  162. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +2 -1
  163. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +7 -18
  164. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +7 -7
  165. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/model-setup.md +14 -0
  166. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/modernize-pr.md +15 -0
  167. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/mutation-testing.md +13 -0
  168. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +5 -5
  169. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +7 -3
  170. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +1 -1
  171. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +8 -5
  172. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +1 -2
  173. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +33 -38
  174. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/product-lens.md +12 -0
  175. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prompt-upgrade.md +30 -0
  176. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +1 -1
  177. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reframe.md +18 -0
  178. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/release-and-canary.md +10 -0
  179. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +62 -89
  180. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +5 -1
  181. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/self-grill.md +54 -0
  182. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +3 -3
  183. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +7 -0
  184. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +3 -2
  185. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/suggest.md +24 -0
  186. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +7 -0
  187. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +2 -2
  188. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +12 -11
  189. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/variant-analysis.md +11 -0
  190. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/video-forensics.md +46 -0
  191. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +10 -1
  192. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/webhook-ui.md +11 -0
  193. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +6 -0
  194. package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +7 -0
  195. package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +141 -18
  196. package/plugins/deepmodebot/skills/deepmodebot/worker.md +16 -0
  197. package/plugins/deepmodebot/skills/domain-rules/SKILL.md +13 -119
  198. package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +19 -1
  199. package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +7 -0
  200. package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +11 -0
  201. package/plugins/deepmodebot/skills/domain-rules/references/sources.md +108 -0
  202. package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +30 -131
  203. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/canvas.css +42 -0
  204. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/editorial.css +39 -0
  205. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/layouts.css +95 -0
  206. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/swiss.css +40 -0
  207. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/tactile.css +41 -0
  208. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/workbench.css +50 -0
  209. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-animations.md +49 -0
  210. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +46 -24
  211. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +27 -258
  212. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +26 -51
  213. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +22 -195
  214. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/00-art-direction.md +39 -0
  215. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +27 -24
  216. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +23 -17
  217. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +22 -45
  218. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +11 -0
  219. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +32 -152
  220. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +36 -91
  221. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +14 -120
  222. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +11 -10
  223. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +9 -9
  224. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06b-media-icons-charts.md +19 -0
  225. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06c-product-shots-craft.md +42 -0
  226. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +5 -6
  227. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +28 -56
  228. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +9 -7
  229. package/plugins/deepmodebot/skills/frontend-ui/scripts/motion_diff.py +259 -0
  230. package/plugins/deepmodebot/skills/frontend-ui/scripts/ui_audit.py +496 -0
  231. package/plugins/deepmodebot/skills/maintain-formal-verification-skill/LICENSE +21 -0
  232. package/plugins/deepmodebot/skills/maintain-formal-verification-skill/NOTICE.md +16 -0
  233. package/plugins/deepmodebot/skills/maintain-formal-verification-skill/SKILL.md +68 -0
  234. package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +1 -1
  235. package/plugins/deepmodebot/skills/office-documents/SKILL.md +24 -0
  236. package/plugins/deepmodebot/skills/office-documents/references/documents-docx-pdf.md +15 -0
  237. package/plugins/deepmodebot/skills/office-documents/references/presentations-pptx.md +15 -0
  238. package/plugins/deepmodebot/skills/office-documents/references/spreadsheets-xlsx.md +15 -0
  239. package/plugins/deepmodebot/skills/office-documents/scripts/doc_audit.py +230 -0
  240. package/plugins/deepmodebot/skills/project-brief/SKILL.md +2 -19
  241. package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +4 -0
  242. package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +4 -0
  243. package/plugins/deepmodebot/skills/project-brief/references/claim-contract.md +55 -0
  244. package/plugins/deepmodebot/skills/research/SKILL.md +18 -0
  245. package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +1 -1
  246. package/plugins/deepmodebot/skills/seo-and-geo/SKILL.md +29 -0
  247. package/plugins/deepmodebot/skills/seo-and-geo/references/geo-and-agentic-web.md +30 -0
  248. package/plugins/deepmodebot/skills/seo-and-geo/references/technical-and-schema.md +25 -0
  249. package/plugins/deepmodebot/skills/seo-and-geo/scripts/seo_audit.py +282 -0
  250. package/plugins/deepmodebot/skills/software-architecture/SKILL.md +2 -2
  251. package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +5 -0
  252. package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +1 -0
  253. package/plugins/deepmodebot/skills/statechart/LICENSE +21 -0
  254. package/plugins/deepmodebot/skills/statechart/NOTICE.md +21 -0
  255. package/plugins/deepmodebot/skills/statechart/SKILL.md +106 -0
  256. package/plugins/deepmodebot/skills/statechart/references/render.md +93 -0
  257. package/plugins/deepmodebot/skills/statechart/references/tooling.md +78 -0
  258. package/plugins/deepmodebot/skills/statechart/scripts/backends/cfg.ts +33 -0
  259. package/plugins/deepmodebot/skills/statechart/scripts/backends/mermaid.ts +249 -0
  260. package/plugins/deepmodebot/skills/statechart/scripts/backends/plain-text.ts +72 -0
  261. package/plugins/deepmodebot/skills/statechart/scripts/backends/report.ts +177 -0
  262. package/plugins/deepmodebot/skills/statechart/scripts/frontends/config.ts +276 -0
  263. package/plugins/deepmodebot/skills/statechart/scripts/frontends/dot.ts +77 -0
  264. package/plugins/deepmodebot/skills/statechart/scripts/frontends/marks.ts +93 -0
  265. package/plugins/deepmodebot/skills/statechart/scripts/frontends/messages.ts +52 -0
  266. package/plugins/deepmodebot/skills/statechart/scripts/frontends/spec.ts +114 -0
  267. package/plugins/deepmodebot/skills/statechart/scripts/frontends/trace.ts +24 -0
  268. package/plugins/deepmodebot/skills/statechart/scripts/frontends/value.ts +166 -0
  269. package/plugins/deepmodebot/skills/statechart/scripts/frontends/verdict.ts +40 -0
  270. package/plugins/deepmodebot/skills/statechart/scripts/frontends/view.ts +119 -0
  271. package/plugins/deepmodebot/skills/statechart/scripts/ir.ts +547 -0
  272. package/plugins/deepmodebot/skills/statechart/scripts/janitor.ts +13 -0
  273. package/plugins/deepmodebot/skills/statechart/scripts/kill.ts +15 -0
  274. package/plugins/deepmodebot/skills/statechart/scripts/package.json +11 -0
  275. package/plugins/deepmodebot/skills/statechart/scripts/passes/annotate.ts +128 -0
  276. package/plugins/deepmodebot/skills/statechart/scripts/passes/label.ts +269 -0
  277. package/plugins/deepmodebot/skills/statechart/scripts/passes/lift.ts +85 -0
  278. package/plugins/deepmodebot/skills/statechart/scripts/passes/loop-check.ts +68 -0
  279. package/plugins/deepmodebot/skills/statechart/scripts/passes/paths.ts +60 -0
  280. package/plugins/deepmodebot/skills/statechart/scripts/passes/reach.ts +135 -0
  281. package/plugins/deepmodebot/skills/statechart/scripts/passes/region-check.ts +97 -0
  282. package/plugins/deepmodebot/skills/statechart/scripts/passes/regions.ts +295 -0
  283. package/plugins/deepmodebot/skills/statechart/scripts/pipeline.ts +76 -0
  284. package/plugins/deepmodebot/skills/statechart/scripts/run.ts +500 -0
  285. package/plugins/deepmodebot/skills/statechart/scripts/statechart +29 -0
  286. package/plugins/deepmodebot/skills/statechart/scripts/statechart.ts +165 -0
  287. package/plugins/deepmodebot/skills/statechart/scripts/test/ConfigOracle.java +63 -0
  288. package/plugins/deepmodebot/skills/statechart/scripts/test/chart.test.ts +1253 -0
  289. package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
  290. package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
  291. package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
  292. package/plugins/deepmodebot/skills/statechart/scripts/test/cli.test.ts +1344 -0
  293. package/plugins/deepmodebot/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
  294. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
  295. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
  296. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
  297. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
  298. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
  299. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
  300. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
  301. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
  302. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
  303. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
  304. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
  305. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
  306. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
  307. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
  308. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
  309. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
  310. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
  311. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
  312. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
  313. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
  314. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
  315. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
  316. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
  317. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
  318. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
  319. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
  320. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
  321. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
  322. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
  323. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
  324. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
  325. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
  326. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
  327. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
  328. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
  329. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
  330. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
  331. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
  332. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
  333. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
  334. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
  335. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
  336. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
  337. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
  338. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
  339. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
  340. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
  341. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
  342. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
  343. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
  344. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
  345. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
  346. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
  347. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
  348. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
  349. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
  350. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
  351. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
  352. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
  353. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
  354. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
  355. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
  356. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
  357. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
  358. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
  359. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
  360. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
  361. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
  362. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
  363. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
  364. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
  365. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
  366. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
  367. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
  368. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
  369. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
  370. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
  371. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
  372. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
  373. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
  374. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
  375. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
  376. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
  377. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
  378. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
  379. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
  380. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
  381. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
  382. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
  383. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
  384. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
  385. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
  386. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
  387. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
  388. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
  389. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
  390. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
  391. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
  392. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
  393. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
  394. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
  395. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
  396. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
  397. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
  398. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
  399. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
  400. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
  401. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
  402. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
  403. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
  404. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
  405. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
  406. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
  407. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
  408. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
  409. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
  410. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
  411. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
  412. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
  413. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
  414. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
  415. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
  416. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
  417. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
  418. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
  419. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
  420. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
  421. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
  422. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
  423. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
  424. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
  425. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
  426. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
  427. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
  428. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
  429. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
  430. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
  431. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
  432. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
  433. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
  434. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
  435. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
  436. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
  437. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
  438. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
  439. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
  440. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
  441. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
  442. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
  443. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
  444. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
  445. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
  446. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
  447. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
  448. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
  449. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
  450. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
  451. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
  452. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
  453. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
  454. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
  455. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
  456. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
  457. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
  458. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
  459. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
  460. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
  461. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
  462. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
  463. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
  464. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
  465. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
  466. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
  467. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
  468. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
  469. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
  470. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
  471. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
  472. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
  473. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
  474. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
  475. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
  476. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
  477. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
  478. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
  479. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
  480. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
  481. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
  482. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
  483. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
  484. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
  485. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
  486. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
  487. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
  488. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
  489. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
  490. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
  491. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
  492. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
  493. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
  494. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
  495. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
  496. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
  497. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
  498. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
  499. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
  500. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
  501. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
  502. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
  503. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
  504. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
  505. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
  506. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
  507. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
  508. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
  509. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
  510. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
  511. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
  512. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
  513. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
  514. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/chart.mmd +28 -0
  515. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
  516. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
  517. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
  518. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
  519. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
  520. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
  521. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
  522. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
  523. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
  524. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
  525. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
  526. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
  527. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
  528. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
  529. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
  530. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
  531. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
  532. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
  533. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
  534. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
  535. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
  536. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
  537. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
  538. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
  539. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
  540. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
  541. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
  542. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
  543. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
  544. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
  545. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
  546. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
  547. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
  548. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
  549. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
  550. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
  551. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
  552. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
  553. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
  554. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
  555. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
  556. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
  557. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
  558. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
  559. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
  560. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
  561. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
  562. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
  563. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
  564. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
  565. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
  566. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
  567. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
  568. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
  569. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
  570. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
  571. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
  572. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
  573. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
  574. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
  575. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
  576. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
  577. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
  578. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
  579. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
  580. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
  581. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
  582. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
  583. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
  584. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
  585. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
  586. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
  587. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
  588. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
  589. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
  590. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
  591. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
  592. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
  593. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
  594. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
  595. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
  596. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
  597. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
  598. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
  599. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
  600. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
  601. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
  602. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
  603. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
  604. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
  605. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
  606. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
  607. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
  608. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
  609. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
  610. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
  611. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
  612. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
  613. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
  614. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
  615. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
  616. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
  617. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
  618. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
  619. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
  620. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
  621. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
  622. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
  623. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
  624. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
  625. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
  626. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
  627. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
  628. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
  629. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
  630. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
  631. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
  632. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
  633. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
  634. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
  635. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
  636. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
  637. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
  638. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
  639. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
  640. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
  641. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
  642. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
  643. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
  644. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
  645. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
  646. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
  647. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
  648. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
  649. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
  650. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus.test.ts +441 -0
  651. package/plugins/deepmodebot/skills/statechart/scripts/test/differential.test.ts +565 -0
  652. package/plugins/deepmodebot/skills/statechart/scripts/test/drawn.ts +20 -0
  653. package/plugins/deepmodebot/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
  654. package/plugins/deepmodebot/skills/statechart/scripts/test/grid/Grid.tla +9 -0
  655. package/plugins/deepmodebot/skills/statechart/scripts/test/grid/sany.out +2 -0
  656. package/plugins/deepmodebot/skills/statechart/scripts/test/java.ts +63 -0
  657. package/plugins/deepmodebot/skills/statechart/scripts/test/labels.ts +648 -0
  658. package/plugins/deepmodebot/skills/statechart/scripts/test/messages.test.ts +226 -0
  659. package/plugins/deepmodebot/skills/statechart/scripts/test/pipeline.test.ts +270 -0
  660. package/plugins/deepmodebot/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
  661. package/plugins/deepmodebot/skills/statechart/scripts/test/render.test.ts +145 -0
  662. package/plugins/deepmodebot/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
  663. package/plugins/deepmodebot/skills/statechart/scripts/test/tlc.ts +158 -0
  664. package/plugins/deepmodebot/skills/statechart/scripts/tsconfig.json +11 -0
  665. package/plugins/deepmodebot/skills/statechart/scripts/worker.ts +35 -0
  666. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +0 -391
  667. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +0 -146
  668. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +0 -483
  669. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +0 -139
  670. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +0 -301
  671. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +0 -602
  672. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +0 -69
  673. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +0 -160
  674. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +0 -180
  675. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +0 -265
  676. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +0 -192
  677. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +0 -2182
  678. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +0 -19
  679. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +0 -691
  680. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +0 -127
  681. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +0 -496
  682. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +0 -1426
  683. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +0 -320
  684. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +0 -326
  685. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +0 -55
  686. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +0 -53
  687. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +0 -94
  688. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +0 -610
  689. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +0 -250
  690. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +0 -654
  691. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/test_workspace_map.py +0 -879
@@ -1,6 +1,6 @@
1
1
  # Choose an AI SDK by the missing capability
2
2
 
3
- **Checked 2026-11-13 against the primary documentation below.** These are use-case recommendations, not measured speed, quality or cost rankings. No SDK inference, deployment or compatibility matrix was exercised. Recheck the language-specific docs and lockfile before implementation.
3
+ **Checked 2026-11-26 against the primary documentation below.** These are use-case recommendations, not measured speed, quality or cost rankings. No SDK inference, deployment or compatibility matrix was exercised. Recheck the language-specific docs and lockfile before implementation.
4
4
 
5
5
  ## Choose the layer first
6
6
 
@@ -22,6 +22,8 @@ For deepmodebot's own subscription-backed goal drafting and review, **keep the e
22
22
  | Python/TypeScript application embedding Claude Code's execution harness | **Claude Agent SDK** | Runs the Claude Code binary with built-in tools, permissions, hooks and sessions. [Overview](https://code.claude.com/docs/en/agent-sdk/overview.md) | This is not just the Claude API client. Third-party products cannot assume claude.ai subscription authentication is permitted. |
23
23
  | Gemini-centered agent app needing explicit workflows, developer UI and evaluation | **Google ADK** | LLM agents plus sequential/parallel/loop workflow agents, sessions/state, artifacts and evaluation tools. [Technical overview](https://adk.dev/get-started/about/) | Verify the selected language's feature support and model adapter. A `LoopAgent` is another controller to bound, not a reason to bypass the host's limits. |
24
24
  | Existing Microsoft/.NET estate or migration from Semantic Kernel/AutoGen | **Microsoft Agent Framework** | Agents, harness, explicit workflows, providers and middleware; documented successor to Semantic Kernel and AutoGen. [Overview](https://learn.microsoft.com/en-us/agent-framework/overview/) | Language maturity differs: the inspected page marks Go public preview and lists missing features. Check the chosen package, not a framework-wide GA claim. |
25
+ | Stateful edge agents per user/session/room with WebSockets, idle hibernation, SQLite state, and MCP/WebMCP | **Cloudflare Agents SDK (`cloudflare/agents`, MIT)** | Durable Object actor per agent (`$0` compute while hibernated), `@callable()` typed RPC, `useAgent` client sync, scheduled tasks, and Workflows. [Repo](https://github.com/cloudflare/agents) | Couples runtime to Cloudflare Durable Objects / `workerd`; declare `new_sqlite_classes` migrations and keep Worker memory under 128 MB. |
26
+ | Filesystem-authored durable TypeScript agents, step workflows, and multi-platform chat bots | **Vercel `eve` + `workflow` (Apache-2.0) + `chat` (MIT)** | Conventional `agent/` tree (`instructions.md`, `tools/`, `skills/`, `channels/`, `schedules/`), suspendable durable steps (`withWorkflow`, Postgres or Vercel World), and write-once Slack/Teams/Discord/GitHub/Linear bot adapters; ships local docs in `node_modules/<pkg>/docs`. [eve](https://github.com/vercel/eve), [workflow](https://github.com/vercel/workflow), [chat](https://github.com/vercel/chat) | `registerLifecycleHooks` must run at host startup, never inside a step; check adapter feature parity (`@chat-adapter/catalog`) per chat surface. |
25
27
 
26
28
  These candidates overlap. Existing dependencies and demonstrated failure modes win over novelty. Keep an older framework when it meets the contract and migration cost exceeds a proven benefit; a vendor's successor announcement is not a migration mandate.
27
29
 
@@ -100,8 +100,8 @@ Source: [customization-discovery](https://antigravity.google/docs/customization-
100
100
  - `skill://deepmodebot/...` URIs do not resolve natively: read files from `~/.gemini/config/plugins/deepmodebot/skills/<name>/` (or `.agents/plugins/deepmodebot/skills/<name>/`), or resolve them via `omp_resolve` on deepmodebot's bundled `omp` MCP server when omp is installed.
101
101
  - Bundled containment & auto-map guard (`hooks.json` -> `node ./scripts/antigravity-guard.mjs`): `PreInvocation` marks sessions whose `lastUserInput` starts with `/deep`, `/deepmodebot`, `/tournament`, `/review-pr`, `/land-pr`, `/pr-thread`, `/contribute`, or `/project-brief` (persisting marks in `PLUGIN_DATA` or `~/.gemini/antigravity/deepmodebot-guard`), and inside git repos auto-injects a fast offline git-only `workspace-map` overview (`--fast --offline --no-orca`, `<= 1200 B`, writing `<main-checkout>/.scratch/workspace-map.db`; skipped on `/review-pr` when no DB exists) via `injectSteps`.
102
102
  - `PreToolUse` denies file-tool writes outside the project root, main `.worktrees/`, `.deepmodebot.json` `extraWriteRoots`, and `artifactDirectoryPath`, always exiting `0` so it never fails open. Shell commands still require discipline.
103
- - Bundled subagents (`agents/scout/agent.md`, `agents/reviewer/agent.md`, `agents/security-reviewer/agent.md`): omp `task` maps to `invoke_subagent` (`SubagentName: "scout" | "reviewer" | "security-reviewer"` or built-in `research` / `self`; keep `Workspace: "inherit"` with exclusive file ownership unless an isolated worktree is intended). Keep `tools:` lists restricted to verified Antigravity tool names so subagents never hang.
104
- - Bundled `omp` MCP bridge (`mcp_config.json` -> `node ./scripts/omp-mcp-server.mjs`, namespaced `deepmodebot_omp`, `timeoutSeconds: 600`): exposes `omp_run` (`omp -p --mode json` with stdin prompt delivery and per-call `timeoutSeconds` + process-tree kill), `omp_task` (concurrent dispatch; `scout` defaults to `@smol`/`medium`, `reviewer` to `@slow`, optional `thinking`), and `omp_resolve` while stripping `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, `OPENAI_API_KEY`, and `CODEX_API_KEY` by default so omp stays on its subscription login.
103
+ - Bundled subagents (`agents/scout/agent.md`, `agents/reviewer/agent.md`, `agents/security-reviewer/agent.md`): all three default to `model: flash` so scouts and read-only review waves never inherit flagship Carbon/Pro quota; omp `task` maps to `invoke_subagent` (`TypeName: "scout" | "reviewer" | "security-reviewer"` or `self` with `Model: "flash"` / `"flash_lite"` for panel verifiers; keep `Workspace: "inherit"` unless an isolated worktree is intended). Keep `tools:` lists restricted to verified Antigravity tool names so subagents never hang.
104
+ - Bundled `omp` MCP bridge (`mcp_config.json` -> `node ./scripts/omp-mcp-server.mjs`, namespaced `deepmodebot_omp`, `timeoutSeconds: 600`): exposes `omp_run` (`omp -p --mode json` with stdin prompt delivery and per-call `timeoutSeconds` + process-tree kill), `omp_task` (concurrent dispatch; `scout`, `reviewer`, and `security-reviewer` default to `@smol`/`medium`, optional `model`/`thinking` override), and `omp_resolve` while stripping `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, `OPENAI_API_KEY`, and `CODEX_API_KEY` by default so omp stays on its subscription login.
105
105
  - Unconfigured MCP tools default to `Ask` in Antigravity; add `mcp(deepmodebot_omp/*)` to `permissions.allow` before unattended `agy -p` runs so calls are not soft-denied.
106
106
  - CLI-only `~/.gemini/skills/` trap: stale copies in `~/.gemini/skills/` or `~/.gemini/antigravity-cli/skills/` outrank workspace `.agents/skills/` and plugins in `agy` while staying invisible in Antigravity App. Install via `agy plugin install` (`~/.gemini/config/plugins/`) or `.agents/skills/` instead.
107
107
  - Project verify skills belong in `.agents/skills/verify-<app>/SKILL.md` (mirroring `.omp/skills/verify-<app>/`) so Antigravity App, CLI, and IDE all discover them.
@@ -19,7 +19,8 @@ Bundled omp agent frontmatter was read from the embedded definitions inside omp.
19
19
  - Fast mode: Opus 5.5 $8/$40, Fable 5.2 $16/$80, so 2x price for up to 2.5x output speed ([anth-pricing](https://platform.claude.com/docs/en/about-claude/pricing)).
20
20
  - Effort levels on Fable, Opus 5.5, Sonnet 5.5, Haiku 5.5: `low`, `medium`, `high`, `xhigh`, `max` ([cc-model](https://code.claude.com/docs/en/model-config)).
21
21
  - In Claude Code, Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 all default to `medium` (differs from API defaults above); "Opus 5.5 at medium matches or exceeds Opus 5 at high" on coding evals ([cc-model](https://code.claude.com/docs/en/model-config)).
22
- - Effort guidance: `low` for straightforward work you review step by step; `medium` for clear-scope day-to-day features; `high` where verification or edge cases matter (bug fixes); `xhigh` deeper at higher spend; `max` for hard unattended problems, "prone to overthinking, so test before adopting" ([cc-model](https://code.claude.com/docs/en/model-config)).
22
+ - Effort guidance: `low` for straightforward work you review step by step; `medium` for clear-scope day-to-day features; `high` where verification or edge cases matter (bug fixes); `xhigh` deeper at higher spend (cap routine roles at `xhigh`); `max` for hard unattended problems, "prone to overthinking, so test before adopting" ([cc-model](https://code.claude.com/docs/en/model-config)). Fable 5.2 is exception-only outside panels: use only when named or after two Opus 5.5 `xhigh` runs of the same brief fail its check.
23
+ - Google Gemini 4 Neon (`gemini-4-neon-xhigh`): default third-family seat for cross-vendor review, arena, and verifier panels alongside Claude (`claude-fable-5-2-high`, `claude-opus-5-5-high-fast`) and GPT (`gpt-6.1-sol`); Fable counts as Claude for cross-vendor judge checks.
23
24
  - Thinking tokens bill as output; you cannot turn thinking off on Opus 5.5, Sonnet 5.5, Haiku 5.5 or Fable, so effort is the cost lever ([cc-costs](https://code.claude.com/docs/en/costs)).
24
25
 
25
26
  ### OpenAI / Codex
@@ -193,7 +194,7 @@ Tiers: S = small (Haiku 5.5, gpt-6-luna, omp `@smol`, Antigravity `flash_lite`);
193
194
  | Mechanical edit | S, medium | `sonic` | subagent `haiku`, `effort: low` | custom `gpt-6-luna` | `invoke_subagent` `flash_lite` / `flash` | Only when many files or parallel; else inline | Haiku "for quick mechanical work" ([help-limits](https://support.claude.com/en/articles/14552983)) |
194
195
  | Routine feature | M, medium | main or `task` (auto) | Sonnet 5.5 or Opus 5.5 medium | `gpt-6.1-sol` medium | main or worker on `flash`, `--effort medium` | Usually no; yes for independent slices | Shared context, few parallel parts ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)) |
195
196
  | Hard design, debug | L, high-xhigh | main `@slow` or `^model:high` | Opus 5.5 high/xhigh or Fable 5.2 | `gpt-6-astra` high/xhigh | main on `pro` high/xhigh (or `/boost`) | No for reasoning itself | omp warns against offloading reasoning to scout/sonic (omp://task-agent-discovery.md) |
196
- | Review / judge | M-L, high | `reviewer` (`@slow`) | subagent `opus`, `effort: high` | reviewer `gpt-6.1-sol` med-high | `reviewer` (`pro`, high) | Yes; fresh context avoids bias [inference] | `high` for reviewer agents ([cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)) |
197
+ | Review / panel verify | S-M, medium (`2-4` turns) | `reviewer` (`@smol`, medium) | subagent `haiku` / `sonnet`, `effort: medium` | reviewer `gpt-6-luna` | `reviewer` / `self` (`flash`) | Yes; fresh context avoids bias without burning `L` quota | Multi-round reviews + 3-seat panels on `L` (`pro`/`carbon`/`opus`) take 6+ min and exhaust weekly caps; escalate to `L` only when requested |
197
198
  | Long autonomous run | L plan, M/S exec | `--prewalk` / `--plan-yolo`; `--max-cost` | `fable` or `opusplan`; `--max-budget-usd` | `gpt-6.1-sol` (or Astra for hardest) | `/goal` or `/swarm` (`pro` plan, `flash` workers); `--print-timeout` | Plan once, execute cheaper | Fable sustains long sessions ([cc-model](https://code.claude.com/docs/en/model-config)); Sol for long-running work ([cx-models](https://learn.chatgpt.com/docs/models)) |
198
199
  | Summarize logs | S, medium-high | `sonic` or `seance` | subagent `haiku` (<100K) | `gpt-6-luna` | subagent `flash_lite` / `flash` | Yes | Luna for summaries ([cx-models](https://learn.chatgpt.com/docs/models)); Haiku >100K jump ([anth-pricing](https://platform.claude.com/docs/en/about-claude/pricing)) |
199
200
 
@@ -228,3 +229,12 @@ Five model-switching patterns to save usage and survive rate limits:
228
229
  3. **Switch at clean boundaries (cache protection):** Switching models mid-conversation invalidates the exact-prefix prompt cache. Switch at new subagent spawns, after `/clear`, or via dedicated execution roles (`--prewalk`, `opusplan`, subagent `model`), not back-and-forth mid-thread.
229
230
  4. **Rotate on model or quota limits:** When hitting a model-specific cap ("Opus limit", "Astra limit") or repeated 429s, switch to a sibling tier or another logged-in model family (Claude `/model` or `--fallback-model`, `omp` `@role` / `task.agentModelOverrides`, Antigravity `swarm` `model` action) instead of stalling or paying overage rates.
230
231
  5. **Cross-family judging for quota balance:** Spread `reviewer` and `panel` verifiers across distinct provider families when available to both reduce blind spots and avoid exhausting one subscription's 5-hour/RPM pool.
232
+
233
+ ## 9. Weekly-quota survival rules (preventing the 25x subagent multiplier, checked 2026-11-22)
234
+
235
+ Post-mortem telemetry on stacked runs (`222` subagents, `33,850` steps, `82 MB` transcripts: `8.5%` coding workers vs `91.5%` management/scout/verifier overhead) exposed four compounding quota traps that `skill://deepmodebot` `assets/quota-guard/quota_guard.py` blocks deterministically:
236
+
237
+ 1. **Never stack `/teamwork` or `/swarm` with nested multi-seat review/panel waves:** Outer orchestrators already spawn Explorers + 3-agent Verifier Waves (`Reviewer`, `Challenger`, `Auditor`). Running 4-lens `pr-review` + 3-seat `panel` inside each worker multiplies reads to `20-30` full-diff passes per PR. When nested (`quota_guard.py plan`), `max_subagents=0`: run deterministic scripts (`self_grill.py`, `perf_audit.py`, `verify_proof.py`) and 4-lens review inline in 1 pass.
238
+ 2. **Pin low-tier models on ALL scouts, helpers, reviewers & panel verifiers (never `Model: "inherit"`):** In Antigravity (`invoke_subagent` defaults to `inherit`), ALWAYS pass `Model: "flash_lite"` (`@smol`/`haiku`/`gpt-6-luna`) for `scout`/search and `Model: "flash"` (`@smol`/`haiku`-`sonnet`/`gpt-6-luna`, `2-4` batched turns) for `comment-sicko`, mechanical helpers, `reviewer`, `security-reviewer`, and 3-seat `panel` verifiers. Reserve `inherit` / `pro` / Opus strictly for the main agent and hard `L` coding slice authors (unless the user explicitly asks for `L` review).
239
+ 3. **1 prosecutor bundle instead of 4 cold-cache lens subagents:** For `<=150` lines, review inline (`0` subagents). For `151-600` lines (`M`), pack 1 `prosecutor-bundle.md` and run **1** `reviewer` across all 4 lenses (`5 -> 1` review spawns); reserve the 3-seat `panel` strictly for the final green merge SHA.
240
+ 4. **Delta-only re-review & `<2 KB` `429` checkpoints:** Round 2+ inspects **only** `git diff <last_sha>..HEAD` + open findings using 1 warm/delta verifier (cap `2` rounds). Cap concurrent worktrees at `<=2` (drop to `1` on `429`) and write `.scratch/quota-guard/<slug>-checkpoint.json` before pausing so resumed sessions load `<2 KB` instead of cold-spawning `_r2`/`_r3` Explorer waves. Audit past runs with `quota_guard.py audit-transcripts --brain-dir <path>`.
@@ -46,9 +46,17 @@ Checked 2026-11-11 against: MCP spec `2026-07-28` (latest), ACP v1 stable + v2 D
46
46
  - Token in `Authorization: Bearer`, never in query string. Server MUST validate audience and MUST NOT accept or transit any other tokens: token passthrough is banned ([authorization](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/index.md)).
47
47
  - Client registration: Client ID Metadata Documents preferred; Dynamic Client Registration Deprecated. Credentials bound to issuer ([changelog](https://modelcontextprotocol.io/specification/2026-07-28/changelog)).
48
48
 
49
- ### Official SDKs
50
- Tier 1 on `2026-07-28`: [TypeScript](https://github.com/modelcontextprotocol/typescript-sdk), [Python](https://github.com/modelcontextprotocol/python-sdk), [Go](https://github.com/modelcontextprotocol/go-sdk), [C#](https://github.com/modelcontextprotocol/csharp-sdk). [Rust](https://github.com/modelcontextprotocol/rust-sdk) in beta ([blog](https://blog.modelcontextprotocol.io/posts/2026-07-28)). Full list: [SDKs](https://modelcontextprotocol.io/docs/2026-07-28/sdk.md).
51
-
49
+ ### Official SDKs & TypeScript SDK v2 (`2026-07-28`)
50
+ Tier 1 on `2026-07-28`: [TypeScript v2](https://ts.sdk.modelcontextprotocol.io/v2/), [Python](https://github.com/modelcontextprotocol/python-sdk), [Go](https://github.com/modelcontextprotocol/go-sdk), [C#](https://github.com/modelcontextprotocol/csharp-sdk). [Rust](https://github.com/modelcontextprotocol/rust-sdk) in beta ([blog](https://blog.modelcontextprotocol.io/posts/2026-07-28)). Full list: [SDKs](https://modelcontextprotocol.io/docs/2026-07-28/sdk.md).
51
+
52
+ **TypeScript SDK v2 packages & runtime** ([docs](https://ts.sdk.modelcontextprotocol.io/v2/), [upgrade guide](https://ts.sdk.modelcontextprotocol.io/v2/migration/upgrade-to-v2.md), checked 2026-11-24):
53
+ - Monolithic `@modelcontextprotocol/sdk` v1 is split into `@modelcontextprotocol/server`, `@modelcontextprotocol/client`, `@modelcontextprotocol/core` (public Zod `*Schema` constants), and framework adapters `@modelcontextprotocol/node` / `express` / `hono` / `fastify` (frameworks are peer deps; never import private `@modelcontextprotocol/core-internal`). Requires **Node 20+**, ESM-first with dual CJS build, and `zod ^4.2.0` (`import * as z from 'zod/v4'`).
54
+ - **Stdio servers (v2):** `serveStdio(() => createServer())` from `@modelcontextprotocol/server/stdio` pins era per connection (`{ legacy: 'reject' }` to disable 2025 clients); hand-connecting `StdioServerTransport` stays 2025-only. Register tools with `server.registerTool(name, { description, inputSchema: z.object(...) }, handler)`.
55
+ - **HTTP servers (v2):** `createMcpHandler(() => createServer())` from `@modelcontextprotocol/server` serves both `2026-07-28` and stateless 2025 requests (`{ fetch, close, notify, bus }`); wrap for Node frameworks with `toNodeHandler(handler)` from `@modelcontextprotocol/node`, or route sessionful 2025 traffic ahead of `{ legacy: 'reject' }` with `isLegacyRequest(req)`. Mount Host/Origin validation in front of `createMcpHandler` when DNS-rebinding protection is required.
56
+ - **Client era negotiation:** `new Client(info, { versionNegotiation: { mode: 'auto' | 'legacy' | { pin: '2026-07-28' } } })` — default stays `'legacy'` until opt-in; `'auto'` probes via `server/discover` (on stdio via a disposable sibling process so strict servers don't exit the main child). CLI/debuggers keep `'legacy'` default and expose `'auto'`/`pin` as a flag ([2026-07-28 guide](https://ts.sdk.modelcontextprotocol.io/v2/migration/support-2026-07-28.md)).
57
+ - **Stateless state & logging:** replace `sessionId` with signed `requestState` via `createRequestStateCodec({ key, ttlSeconds?, bind? })` (`mint` + `ServerOptions.requestState.verify`, read via `ctx.mcpReq.requestState<T>()`). On `2026-07-28`, `ctx.mcpReq.log()` suppresses logs unless client sends `io.modelcontextprotocol/logLevel` in `_meta`.
58
+ - **In-process 2026 testing:** `InMemoryTransport` is 2025-only; test 2026-07-28 without sockets by passing `{ fetch: (url, init) => handler.fetch(new Request(url, init)) }` to `StreamableHTTPClientTransport`.
59
+ - **v1 → v2 migration:** run `npx @modelcontextprotocol/codemod@latest v1-to-v2 .` at the **package root**, grep `@mcp-codemod-error`, convert `IsomorphicHeaders` bracket reads to Web Standard `Headers.get()`, and review `McpError`→`ProtocolError`/`SdkError`/`SdkHttpError`, `extra.*`→`ctx.mcpReq.*`, and `setRequestHandler('method/string', ...)`.
52
60
  ### Test with MCP Inspector
53
61
  Inspector has web, CLI, TUI, and `mcpdo` clients ([docs](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector.md)). CLI recipes ([CLI](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/cli.md)):
54
62
  ```bash
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: app-automation-relay
3
+ description: "Build an agent control adapter for a desktop, terminal, mobile, or headless app using structured observations, revision-checked actions, and MCP."
4
+ metadata:
5
+ as-of: "2026-11-25"
6
+ ---
7
+
8
+ # App automation relay
9
+
10
+ Use the omp browser relay's **observe → act by ID → wait for state** pattern when an agent needs to drive an app. The control interface is portable; the target integration and measured speed are not.
11
+
12
+ 1. Identify the exact app, allowed actions, and whether the session is owned or borrowed. Prefer a supported plugin/IPC or structured CLI; otherwise try an opted-in WebView, OS accessibility, or a PTY. Use visual input only when no structured interface exists. Pick the matching recipe in `references/adapter-cookbook.md`.
13
+ 2. Implement `AppAdapter` from `assets/relay_server.ts`. Return visible controls with short labels. Bind IDs to a target and revision; invalidate them on external changes as well as agent actions. Check the revision again at dispatch. Implement a bounded wait on a target event or documented polling interface.
14
+ 3. Start with stdio for one owner. If clients must share one app attachment, use the authenticated loopback transport. `references/wire-protocol.md` covers both and when a native integration needs leases. Do not attach to an arbitrary running session.
15
+ 4. Run `bun assets/relay_server.ts --self-test` from this skill directory. It uses a demo form and a real stdio subprocess, not a desktop app. Then prove the adapter on the authorized target: observe, act on the observed ID, wait, independently inspect the changed state, and detach. Measure observation and action latency on that target before claiming a speedup.
16
+
17
+ Treat labels, app content and model arguments as untrusted data. Expose named operations, not a shell or evaluator. Honor disabled controls and OS consent. Never navigate or close a borrowed target without specific permission; if the app refuses automation, report the boundary.
@@ -0,0 +1,364 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * Zero-dependency universal app-automation relay + MCP 2.0 (2026-07-28) stdio bridge starter.
4
+ * Port of omp's browser-relay architecture (observe -> act(id) -> waitFor -> loopback multiplexing daemon).
5
+ *
6
+ * Usage:
7
+ * bun relay_server.ts --self-test # Run built-in end-to-end loopback + MCP 2.0 proof
8
+ * bun relay_server.ts --serve-relay # Start loopback multiplexing daemon + endpoint file
9
+ * bun relay_server.ts --mcp # Run MCP 2.0 (2026-07-28 + legacy) stdio server
10
+ *
11
+ * To port to a real app: replace `DemoAppAdapter` with an adapter implementing `AppAdapter`
12
+ * (see references/adapter-cookbook.md for Electron/CDP, Windows UIA, macOS AX, Linux AT-SPI2, PTY, IPC).
13
+ */
14
+ import assert from "node:assert/strict";
15
+ import * as fs from "node:fs";
16
+ import * as os from "node:os";
17
+ import * as path from "node:path";
18
+ import * as readline from "node:readline";
19
+
20
+ export interface ObservationEntry {
21
+ id: number;
22
+ role: string;
23
+ name?: string;
24
+ value?: string | number;
25
+ description?: string;
26
+ keyshortcuts?: string;
27
+ states: string[];
28
+ bounds?: [number, number, number, number];
29
+ }
30
+
31
+ export interface Observation {
32
+ targetId: string;
33
+ location: string;
34
+ title?: string;
35
+ revision: number;
36
+ viewport: { width: number; height: number; scale?: number };
37
+ elements: ObservationEntry[];
38
+ text?: string;
39
+ }
40
+
41
+ export interface TargetInfo {
42
+ targetId: string;
43
+ title: string;
44
+ location: string;
45
+ owned: boolean;
46
+ }
47
+
48
+ const ACTIONS = ["click", "fill", "press", "select", "check", "uncheck", "scroll", "invoke"] as const;
49
+
50
+ export interface ActRequest {
51
+ targetId: string;
52
+ revision: number;
53
+ id: number;
54
+ op: (typeof ACTIONS)[number];
55
+ value?: string;
56
+ key?: string;
57
+ }
58
+
59
+ export interface AppAdapter {
60
+ readonly appName: string;
61
+ listTargets(filter?: string): Promise<TargetInfo[]>;
62
+ observe(targetId: string, includeText?: boolean): Promise<Observation>;
63
+ act(req: ActRequest): Promise<{ ok: boolean; revision: number; detail?: string }>;
64
+ waitFor(targetId: string, textContains: string, timeoutMs?: number): Promise<{ matched: boolean; revision: number }>;
65
+ }
66
+
67
+ /** Reference in-memory adapter used by `--self-test` and as a clean contract template. */
68
+ export class DemoAppAdapter implements AppAdapter {
69
+ readonly appName = "demo-app";
70
+ private revision = 1;
71
+ private query = "";
72
+ private submitted = false;
73
+ private readonly changes = new EventTarget();
74
+
75
+ private get status() {
76
+ return this.submitted ? `Submitted: ${this.query}` : "Ready";
77
+ }
78
+
79
+ async listTargets(filter?: string): Promise<TargetInfo[]> {
80
+ const all: TargetInfo[] = [{ targetId: "win-1", title: "Demo App", location: "app://main", owned: true }];
81
+ return filter ? all.filter((t) => t.title.toLowerCase().includes(filter.toLowerCase())) : all;
82
+ }
83
+
84
+ async observe(targetId: string, includeText = true): Promise<Observation> {
85
+ if (targetId !== "win-1") throw new Error(`Unknown targetId: ${targetId}`);
86
+ const elements: ObservationEntry[] = [
87
+ { id: 1, role: "textbox", name: "Query", value: this.query, states: ["enabled"] },
88
+ { id: 2, role: "button", name: "Submit", states: this.query ? ["enabled"] : ["disabled"] },
89
+ ];
90
+ if (this.submitted) {
91
+ elements.push({ id: 3, role: "status", name: this.status, states: [] });
92
+ }
93
+ return {
94
+ targetId,
95
+ location: "app://main",
96
+ title: "Demo App",
97
+ revision: this.revision,
98
+ viewport: { width: 1280, height: 800, scale: 1 },
99
+ elements,
100
+ text: includeText ? this.status : undefined,
101
+ };
102
+ }
103
+
104
+ async act(req: ActRequest): Promise<{ ok: boolean; revision: number; detail?: string }> {
105
+ if (req.targetId !== "win-1") throw new Error(`Unknown targetId: ${req.targetId}`);
106
+ if (req.revision !== this.revision) {
107
+ throw new Error(`STALE_REVISION: expected ${this.revision}, got ${req.revision} — re-observe first`);
108
+ }
109
+ if (req.id === 1 && req.op === "fill") {
110
+ this.query = req.value ?? "";
111
+ this.submitted = false;
112
+ } else if (req.id === 2 && (req.op === "click" || req.op === "invoke")) {
113
+ if (!this.query) throw new Error("Submit is disabled");
114
+ this.submitted = true;
115
+ } else {
116
+ throw new Error(`Unsupported action ${req.op} on element id=${req.id}`);
117
+ }
118
+ this.revision++;
119
+ this.changes.dispatchEvent(new Event("change"));
120
+ return { ok: true, revision: this.revision };
121
+ }
122
+
123
+ async waitFor(targetId: string, textContains: string, timeoutMs = 5000): Promise<{ matched: boolean; revision: number }> {
124
+ if (targetId !== "win-1") throw new Error(`Unknown targetId: ${targetId}`);
125
+ if (this.status.includes(textContains)) return { matched: true, revision: this.revision };
126
+ const { promise, resolve } = Promise.withResolvers<{ matched: boolean; revision: number }>();
127
+ const finish = (matched: boolean) => {
128
+ clearTimeout(timer);
129
+ this.changes.removeEventListener("change", changed);
130
+ resolve({ matched, revision: this.revision });
131
+ };
132
+ const changed = () => { if (this.status.includes(textContains)) finish(true); };
133
+ const timer = setTimeout(() => finish(false), Math.min(Math.max(0, timeoutMs), 60_000));
134
+ this.changes.addEventListener("change", changed);
135
+ return promise;
136
+ }
137
+ }
138
+
139
+ function dispatch(adapter: AppAdapter, op: string, a: Record<string, unknown>) {
140
+ if (op === "targets" && (a.filter === undefined || typeof a.filter === "string")) return adapter.listTargets(a.filter);
141
+ if (typeof a.targetId !== "string" || !a.targetId) throw new Error("targetId is required");
142
+ if (op === "observe" && (a.includeText === undefined || typeof a.includeText === "boolean")) {
143
+ return adapter.observe(a.targetId, a.includeText);
144
+ }
145
+ if (op === "waitFor" && typeof a.textContains === "string" && a.textContains.length &&
146
+ (a.timeoutMs === undefined || (typeof a.timeoutMs === "number" && Number.isInteger(a.timeoutMs) && a.timeoutMs >= 0 && a.timeoutMs <= 60_000))) {
147
+ return adapter.waitFor(a.targetId, a.textContains, a.timeoutMs);
148
+ }
149
+ if (op === "act") {
150
+ const action = ACTIONS.find((name) => name === a.op);
151
+ if (action && typeof a.id === "number" && Number.isSafeInteger(a.id) && a.id > 0 &&
152
+ typeof a.revision === "number" && Number.isSafeInteger(a.revision) && a.revision >= 0 &&
153
+ (a.value === undefined || typeof a.value === "string") && (a.key === undefined || typeof a.key === "string")) {
154
+ return adapter.act({ targetId: a.targetId, revision: a.revision, id: a.id, op: action, value: a.value, key: a.key });
155
+ }
156
+ }
157
+ throw new Error(`Invalid relay operation or arguments: ${op}`);
158
+ }
159
+
160
+ export function startLoopbackRelay(adapter: AppAdapter, token = process.env.DMB_RELAY_TOKEN, announce = true) {
161
+ if (!token) throw new Error("Set DMB_RELAY_TOKEN before starting a network relay");
162
+ const srv = Bun.serve({
163
+ hostname: "127.0.0.1",
164
+ port: 0,
165
+ idleTimeout: 65,
166
+ maxRequestBodySize: 1024 * 1024,
167
+ async fetch(req) {
168
+ if (req.headers.get("authorization") !== `Bearer ${token}`) {
169
+ return new Response("unauthorized", { status: 401 });
170
+ }
171
+ const url = new URL(req.url);
172
+ if (req.method === "GET" && url.pathname === "/healthz") {
173
+ return Response.json({ ok: true, app: adapter.appName, pid: process.pid });
174
+ }
175
+ if (req.method === "POST" && url.pathname === "/rpc") {
176
+ try {
177
+ const body = (await req.json()) as { op: string; args?: Record<string, unknown> };
178
+ const a = body.args ?? {};
179
+ return Response.json({ ok: true, result: await dispatch(adapter, body.op, a) });
180
+ } catch (err) {
181
+ return Response.json({ ok: false, error: err instanceof Error ? err.message : String(err) }, { status: 400 });
182
+ }
183
+ }
184
+ return new Response("not found", { status: 404 });
185
+ },
186
+ });
187
+ let endpointFile: string | undefined;
188
+ if (announce) {
189
+ try {
190
+ const dir = path.join(os.homedir(), ".dmb-relays", adapter.appName);
191
+ fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
192
+ endpointFile = path.join(dir, `${process.pid}-${srv.port}`);
193
+ const record = { pid: process.pid, port: srv.port, app: adapter.appName, tokenRequired: true };
194
+ fs.writeFileSync(endpointFile, JSON.stringify(record), { mode: 0o600, flag: "wx" });
195
+ } catch (err) {
196
+ srv.stop(true);
197
+ throw err;
198
+ }
199
+ }
200
+ const stop = () => {
201
+ srv.stop(true);
202
+ if (endpointFile) fs.rmSync(endpointFile, { force: true });
203
+ };
204
+ return { server: srv, url: `http://127.0.0.1:${srv.port}`, endpointFile, stop };
205
+ }
206
+
207
+ /** Dual-era MCP 2.0 (2026-07-28 + legacy 2025/2024) stdio server wrapping any AppAdapter. */
208
+ export async function handleMcpRequest(adapter: AppAdapter, msg: { id?: unknown; method?: string; params?: Record<string, unknown> }) {
209
+ const SERVER_INFO = { name: `${adapter.appName}-relay`, version: "2.0.0" };
210
+ const SUPPORTED = ["2026-07-28", "2025-11-25", "2025-03-26", "2024-11-05"];
211
+ const params = msg.params ?? {};
212
+ const meta = (params._meta && typeof params._meta === "object" ? params._meta : null) as Record<string, unknown> | null;
213
+ const claimed = typeof meta?.["io.modelcontextprotocol/protocolVersion"] === "string" ? meta["io.modelcontextprotocol/protocolVersion"] : null;
214
+ if (claimed && claimed !== "2026-07-28") {
215
+ return { error: { code: -32022, message: `Unsupported protocol version: ${claimed}`, data: { supportedProtocolVersions: SUPPORTED } } };
216
+ }
217
+ const modern = claimed === "2026-07-28" || msg.method === "server/discover";
218
+ const wrap = (res: Record<string, unknown>) =>
219
+ modern ? { result: { resultType: "result", ...res, _meta: { "io.modelcontextprotocol/serverInfo": SERVER_INFO } } } : { result: res };
220
+ const p = adapter.appName.replace(/[^a-z0-9_]/gi, "_");
221
+ const tools = [
222
+ { name: `${p}_targets`, description: `List attachable ${adapter.appName} targets.`, inputSchema: { type: "object", properties: { filter: { type: "string" } } } },
223
+ { name: `${p}_observe`, description: `Observe structured interactive elements with ephemeral IDs.`, inputSchema: { type: "object", properties: { targetId: { type: "string" } }, required: ["targetId"] } },
224
+ { name: `${p}_act`, description: "Act on an element in the observed revision.", inputSchema: { type: "object", properties: { targetId: { type: "string" }, revision: { type: "integer" }, id: { type: "integer" }, op: { type: "string", enum: ACTIONS }, value: { type: "string" }, key: { type: "string" } }, required: ["targetId", "revision", "id", "op"] } },
225
+ { name: `${p}_wait`, description: `Wait for target text/state predicate.`, inputSchema: { type: "object", properties: { targetId: { type: "string" }, textContains: { type: "string" }, timeoutMs: { type: "integer" } }, required: ["targetId", "textContains"] } },
226
+ ];
227
+ if (msg.method === "server/discover") {
228
+ return wrap({ protocolVersion: "2026-07-28", supportedProtocolVersions: SUPPORTED, capabilities: { tools: {} }, serverInfo: SERVER_INFO });
229
+ }
230
+ if (msg.method === "initialize") {
231
+ const reqVer = typeof params.protocolVersion === "string" && SUPPORTED.includes(params.protocolVersion) ? params.protocolVersion : "2025-11-25";
232
+ return { result: { protocolVersion: reqVer, capabilities: { tools: {} }, serverInfo: SERVER_INFO } };
233
+ }
234
+ if (!modern && msg.method === "ping") return { result: {} };
235
+ if (msg.method === "tools/list") {
236
+ return wrap(modern ? { tools, ttlMs: 300_000, cacheScope: "global" } : { tools });
237
+ }
238
+ if (msg.method === "tools/call") {
239
+ const name = String(params.name ?? "");
240
+ const a = (params.arguments && typeof params.arguments === "object" ? params.arguments : {}) as Record<string, unknown>;
241
+ try {
242
+ const op = name.startsWith(`${p}_`) ? name.slice(p.length + 1) : "";
243
+ if (!["targets", "observe", "act", "wait"].includes(op)) return { error: { code: -32602, message: `Unknown tool: ${name}` } };
244
+ const val = await dispatch(adapter, op === "wait" ? "waitFor" : op, a);
245
+ return wrap({ content: [{ type: "text", text: JSON.stringify(val) }], isError: false });
246
+ } catch (err) {
247
+ return wrap({ content: [{ type: "text", text: err instanceof Error ? err.message : String(err) }], isError: true });
248
+ }
249
+ }
250
+ return { error: { code: -32601, message: `Method not found: ${msg.method}` } };
251
+ }
252
+
253
+ function loopbackClient(appName: string, port: number, token: string | undefined): AppAdapter {
254
+ if (!Number.isInteger(port) || port < 1 || port > 65535 || !token) throw new Error("Expected a loopback port and DMB_RELAY_TOKEN");
255
+ const rpc = async <T>(op: string, args: object): Promise<T> => {
256
+ const res = await fetch(`http://127.0.0.1:${port}/rpc`, {
257
+ method: "POST", redirect: "error", headers: { authorization: `Bearer ${token}`, "content-type": "application/json" },
258
+ body: JSON.stringify({ op, args }), signal: AbortSignal.timeout(65_000),
259
+ });
260
+ if (res.status === 401) throw new Error("Relay authorization failed");
261
+ const data = await res.json() as { ok: true; result: T } | { ok: false; error: string };
262
+ if (!data.ok) throw new Error(data.error);
263
+ if (!res.ok) throw new Error(`Relay HTTP ${res.status}`);
264
+ return data.result;
265
+ };
266
+ return {
267
+ appName, listTargets: (filter) => rpc("targets", { filter }),
268
+ observe: (targetId, includeText) => rpc("observe", { targetId, includeText }),
269
+ act: (req) => rpc("act", req),
270
+ waitFor: (targetId, textContains, timeoutMs) => rpc("waitFor", { targetId, textContains, timeoutMs }),
271
+ };
272
+ }
273
+
274
+ function serveStdio(adapter: AppAdapter) {
275
+ const reply = (id: unknown, body: object) => process.stdout.write(JSON.stringify({ jsonrpc: "2.0", id, ...body }) + "\n");
276
+ readline.createInterface({ input: process.stdin, crlfDelay: Infinity }).on("line", async (line) => {
277
+ let msg;
278
+ try { msg = JSON.parse(line); } catch {
279
+ reply(null, { error: { code: -32700, message: "Parse error" } });
280
+ return;
281
+ }
282
+ if (msg?.jsonrpc !== "2.0" || typeof msg.method !== "string" ||
283
+ (msg.id !== undefined && typeof msg.id !== "number" && typeof msg.id !== "string")) {
284
+ reply(null, { error: { code: -32600, message: "Invalid request" } });
285
+ return;
286
+ }
287
+ if (msg.id === undefined) return;
288
+ try { reply(msg.id, await handleMcpRequest(adapter, msg)); } catch {
289
+ reply(msg.id, { error: { code: -32603, message: "Internal error" } });
290
+ }
291
+ });
292
+ }
293
+
294
+ async function selfTest(adapter: DemoAppAdapter) {
295
+ const token = crypto.randomUUID();
296
+ const h = startLoopbackRelay(adapter, token, false);
297
+ try {
298
+ assert.equal((await fetch(`${h.url}/healthz`)).status, 401);
299
+ const client = loopbackClient(adapter.appName, h.server.port!, token);
300
+ const [{ targetId }] = await client.listTargets();
301
+ const before = await client.observe(targetId);
302
+ const idFor = (obs: Observation, role: string) => {
303
+ const el = obs.elements.find((entry) => entry.role === role);
304
+ assert.ok(el, `Missing ${role}`);
305
+ return el.id;
306
+ };
307
+ const click = { targetId, revision: before.revision, id: idFor(before, "button"), op: "click" } as const;
308
+ await client.act({ ...click, id: idFor(before, "textbox"), op: "fill", value: "hello" });
309
+ await assert.rejects(client.act(click), /STALE_REVISION/);
310
+ const next = await client.observe(targetId);
311
+ const status = "Submitted: hello";
312
+ assert.equal((await client.waitFor(targetId, status, 0)).matched, false);
313
+ const [waited, acted] = await Promise.all([
314
+ client.waitFor(targetId, status, 2000),
315
+ client.act({ ...click, revision: next.revision, id: idFor(next, "button") }),
316
+ ]);
317
+ assert.equal(acted.ok, true);
318
+ assert.deepEqual(waited, { matched: true, revision: acted.revision });
319
+
320
+ const version = "2026-07-28";
321
+ const _meta = { "io.modelcontextprotocol/protocolVersion": version, "io.modelcontextprotocol/clientCapabilities": {} };
322
+ const frames = [
323
+ { id: 1, method: "server/discover", params: { _meta } },
324
+ { id: 2, method: "tools/call", params: { _meta, name: "demo_app_observe", arguments: { targetId } } },
325
+ ].map((frame) => JSON.stringify({ jsonrpc: "2.0", ...frame }) + "\n");
326
+ const child = Bun.spawn([process.execPath, import.meta.path, "--mcp"], {
327
+ env: { ...process.env, DMB_RELAY_PORT: String(h.server.port), DMB_RELAY_TOKEN: token },
328
+ stdin: new Blob(frames), stdout: "pipe", stderr: "inherit", timeout: 5000,
329
+ });
330
+ const [stdout, exit] = await Promise.all([new Response(child.stdout).text(), child.exited]);
331
+ assert.equal(exit, 0, "MCP child did not exit cleanly");
332
+ const replies = stdout.trim().split("\n").map((line) => JSON.parse(line));
333
+ assert.equal(replies.length, frames.length);
334
+ assert.ok(replies.every((frame) => frame.jsonrpc === "2.0" && frame.result?.resultType === "result"));
335
+ assert.equal(replies.find((r) => r.id === 1)?.result.protocolVersion, version);
336
+ const result = replies.find((r) => r.id === 2)?.result;
337
+ assert.equal(result?.isError, false);
338
+ const observed: Observation = JSON.parse(result.content[0].text);
339
+ assert.equal(observed.text, status);
340
+ assert.equal(observed.revision, acted.revision);
341
+ console.log(`OK: loopback + stale revision + waitFor; stdio server/discover ${version}; ${status} (revision ${observed.revision})`);
342
+ } finally {
343
+ h.stop();
344
+ }
345
+ }
346
+
347
+ if (import.meta.main) {
348
+ const adapter = new DemoAppAdapter();
349
+ const mode = process.argv[2];
350
+ if (mode === "--self-test") {
351
+ await selfTest(adapter);
352
+ } else if (mode === "--mcp") {
353
+ const port = process.env.DMB_RELAY_PORT;
354
+ serveStdio(port === undefined ? adapter : loopbackClient(adapter.appName, Number(port), process.env.DMB_RELAY_TOKEN));
355
+ } else if (mode === "--serve-relay") {
356
+ const h = startLoopbackRelay(adapter);
357
+ process.once("SIGINT", h.stop);
358
+ process.once("SIGTERM", h.stop);
359
+ console.log(JSON.stringify({ url: h.url, endpointFile: h.endpointFile }));
360
+ } else {
361
+ console.error("Usage: bun relay_server.ts --self-test | --serve-relay | --mcp");
362
+ process.exitCode = mode === "--help" ? 0 : 2;
363
+ }
364
+ }
@@ -0,0 +1,15 @@
1
+ # Choosing a target adapter
2
+
3
+ Use the highest-level interface the app supports **and the user has authorized**. Keep one connection; rebuild only the addressed window or view when it changes. These are porting recipes, not bundled native drivers or latency measurements.
4
+
5
+ | Target | Observe | Act and wait |
6
+ |---|---|---|
7
+ | Plugin-enabled creative app or engine | Use the supported plugin API to read the active scene, selection and available operators. Map domain objects to revision-scoped IDs. | Queue named operations on the app thread, use its undo facility, and wait for the documented completion signal. Use the app's batch mode only for operators it supports. |
8
+ | Electron / WebView | Use a documented test hook or a debugging interface explicitly enabled in a **separate, owned test profile**. Read the accessibility tree for the selected view. | Resolve the live control immediately before input. Wait for navigation or a UI event. If attaching is disabled, use a supported accessibility interface or report the limitation. |
9
+ | Windows desktop | Scope UI Automation to the selected window. Batch `Name`, control type, enabled state, value and bounds with `IUIAutomationCacheRequest` and `FindAllBuildCache`. | Use supported Invoke, Value, Toggle and SelectionItem patterns. Use structure/property events. Background access depends on the provider and desktop session; do not assume a locked desktop works. |
10
+ | macOS desktop | With Accessibility consent, walk the selected app's `AXUIElement` children for role, title, value and enabled state. | Use supported AX actions or settable attributes. Subscribe with `AXObserver`; discard destroyed elements. |
11
+ | Linux desktop | Read roles and states through AT-SPI2 on the selected session bus. | Use the provider's Action/EditableText interfaces and object-change events. Check the toolkit exposes the same tree on a virtual display before assuming headless parity. |
12
+ | Terminal UI | Prefer an existing machine-readable command; otherwise use an owned PTY and terminal cell grid. Anchor IDs to visible controls, not offsets into raw escape sequences. | Send the documented keys to that PTY and wait for parsed output to reach the predicate. Test resize and redraw before relying on cell positions. |
13
+ | Android | Use the selected, authorized test device or emulator and a supported UI Automator or accessibility API. Read labels, resource IDs, bounds and enabled state. | Scope accessibility actions to the selected app/window. Wait for a content-change event and re-observe; do not tap old coordinates after rotation or navigation. |
14
+
15
+ For an opaque canvas, use a target-owned screenshot and visible hit regions only as a last resort. Confirm focus, geometry, target identity and outcome. If those checks are unavailable, stop rather than sending input to another window.
@@ -0,0 +1,23 @@
1
+ # Relay wire protocol
2
+
3
+ `assets/relay_server.ts` defines `AppAdapter`, `Observation`, `ActRequest`, and both transports. The observation shape is adapted from omp's browser `tab-protocol.ts`; it is not a compatible CDP endpoint.
4
+
5
+ | Local RPC `op` | `args` | Result |
6
+ |---|---|---|
7
+ | `targets` | `{filter?}` | `{targetId, title, location, owned}[]` |
8
+ | `observe` | `{targetId, includeText?}` | Target revision, viewport, visible entries `{id, role, name?, value?, states}`, optional text |
9
+ | `act` | `{targetId, revision, id, op, value?, key?}` | `{ok, revision}`; a stale revision fails without dispatch |
10
+ | `waitFor` | `{targetId, textContains, timeoutMs?}` | `{matched, revision}`; a timeout is not success |
11
+
12
+ ## Running the starter
13
+
14
+ - `bun assets/relay_server.ts --mcp`: newline-delimited JSON-RPC on stdio. With no `DMB_RELAY_PORT`, the process owns its adapter. In the starter this is a demo form. Exposed tools end in `_targets`, `_observe`, `_act`, and `_wait`. `server/discover` supports the `2026-07-28` protocol; legacy clients can use `initialize`.
15
+ - `bun assets/relay_server.ts --serve-relay`: provision a fresh shared secret in `DMB_RELAY_TOKEN` first. The daemon binds `127.0.0.1:0` and prints the URL and announcement path. The announcement contains the port, PID and app name, **not** the token. Never put the token in argv, tool arguments, or logs.
16
+ - For shared access, start `--mcp` with the selected `DMB_RELAY_PORT` and the same secret. Alternatively, POST `{"op":"targets","args":{}}` to `/rpc` with JSON content type and bearer authorization. Success returns `{ok:true,result}`; rejected operations return `{ok:false,error}`. `/healthz` also requires authentication. Stop the daemon you started after clients disconnect.
17
+ - `--self-test` uses a private ephemeral port and secret, writes no discovery file, and checks the state from a separate MCP process. It needs only Bun; it does not install or register a plugin in a host app.
18
+
19
+ ## Porting to a shared native app
20
+
21
+ Pin the adapter to the explicitly selected target. Keep one app attachment and serialize revision checks with mutations. Never persist a native element pointer or an ID across revisions. Use target notifications for invalidation and waits; if the API only supports polling, bound the interval, timeout and snapshot size.
22
+
23
+ When clients must automatically share and release a native handle, add per-client leases tied to a live connection. On final disconnect, release only resources the relay owns. Do not rely on a PID or announcement alone to establish identity or ownership. The starter uses explicit port selection and process lifetime, not lease discovery or automatic shutdown.
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: cloud-devsecops
3
- description: "Docker, Compose, container images and runtimes, Kubernetes operations and ecosystem tooling; security and DevSecOps rules for AWS, Azure and Google Cloud, IAM, policy, pipelines, supply chain and IaC. Use when building or debugging containers, operating workloads, choosing container tools, or changing cloud access and deployment infrastructure."
3
+ description: "Containers, Kubernetes, Cloudflare Workers/Durable Objects/Agents, local cloud & SaaS API emulators, and AWS/Azure/GCP/IaC DevSecOps rules."
4
4
  metadata:
5
- as-of: "2026-11-13"
5
+ as-of: "2026-11-26"
6
6
  ---
7
7
 
8
8
  # Cloud security and DevSecOps reference
@@ -18,7 +18,8 @@ Docker/container and Kubernetes references were checked against public primary d
18
18
  | `references/devsecops-pipeline.md` | Pipeline security stages and gates, supply chain (SBOM, signing, provenance), scanners, policy as code, container and Kubernetes hardening, GitHub Actions hardening, standards map |
19
19
  | `references/containers.md` | Docker Engine/Desktop, Compose, BuildKit/buildx, OCI runtimes, Podman, Testcontainers, devcontainers and bounded local container workflows |
20
20
  | `references/kubernetes.md` | Kubernetes workloads, kubectl context/namespace, probes, Services, storage, Helm/Kustomize, local clusters, GitOps and bounded operational workflows |
21
- | `references/local-emulators.md` | Testing cloud or IaC code without a real account: Floci (AWS, Azure, GCP), LocalStack, moto, Azurite, Google emulators; leak-to-real-cloud checks |
21
+ | `references/local-emulators.md` | Testing cloud, IaC, or SaaS/webhook/AI APIs offline: Floci (AWS/Azure/GCP), LocalStack, moto, Azurite, Google emulators, `vercel-labs/emulate` (GitHub/Stripe/Slack/Resend/Clerk/AI), and `workerd` |
22
+ | `references/cloudflare-edge.md` | Cloudflare Workers, Static Assets, `vinext`, Durable Objects, `cloudflare/agents`, `cloudflare/computer`, `cf` vs `wrangler.jsonc`, 128 MB streaming, bindings, and `@cloudflare/vitest-plugin` |
22
23
  | `references/devops-tools.md` | Choosing terminal, container, Kubernetes, Terraform, observability, secrets, or code-review tooling (one creator's verdicts, DevOps Toolbox) |
23
24
 
24
25
  Networking fundamentals for AWS (VPC, routing, gateways, flow-log debugging) stay in `skill://domain-rules/references/aws-networking.md`. Deepmodebot's principles, gates, and playbooks win any conflict.
@@ -0,0 +1,43 @@
1
+ # Cloudflare Workers, Durable Objects, Agents, and Edge Security (2026)
2
+
3
+ Distilled from Cloudflare's official permissive engineering repositories (`cloudflare/skills` Apache-2.0, `cloudflare/agents` MIT, `cloudflare/computer` MIT, `cloudflare/cloudflare-os` Apache-2.0, `cloudflare/vinext` MIT, `cloudflare/capnweb` MIT, `cloudflare/workers-oauth-provider` MIT, `cloudflare/cf` Apache-2.0, `cloudflare/workerd` Apache-2.0, `cloudflare/cloudflared` Apache-2.0), checked 2026-11-26. Recheck current limits and compatibility flags against installed package schemas (`node_modules/wrangler/config-schema.json`) and `https://developers.cloudflare.com` before deploying.
4
+
5
+ ## 1. CLI, Configuration, and Binding Types
6
+
7
+ - **`cf` vs Wrangler:** For greenfield projects, repos with `cloudflare.config.ts`, or repos with no Cloudflare config yet, use the agentic **`cf` CLI** (`cloudflare/cf`, Apache-2.0: `cf cli search`, `cf schema`, condensed JSON output when piped to agents). When a repo already has `wrangler.jsonc`, `wrangler.json`, or `wrangler.toml` (and no `cloudflare.config.ts`), run the repo's local Wrangler version via its package manager scripts rather than adding `cf` or upgrading Wrangler unprompted.
8
+ - **Prefer `wrangler.jsonc` over `wrangler.toml`** on new Wrangler projects: newer Cloudflare config fields are JSON-only while JSONC preserves inline rationale comments.
9
+ - **Compatibility baseline:** Set `compatibility_date` to today's `YYYY-MM-DD` on new Workers and include `"compatibility_flags": ["nodejs_compat"]` whenever dependencies use `node:crypto`, `node:buffer`, or `node:stream`.
10
+ - **Never hand-write `interface Env`:** Run `wrangler types` after every binding change and type default handlers with `satisfies ExportedHandler<Env>`. Hand-maintained `Env` interfaces drift silently from deployed bindings.
11
+ - **Secrets never live in `vars`:** Put non-secret config in `vars`; store credentials exclusively via `wrangler secret put <NAME>` (and gitignored `.dev.vars` / `.env` locally). `static_sec_audit.py` (`wrangler-vars-secret`) blocks plaintext secret keys in `wrangler.*`.
12
+
13
+ ## 2. Web Frameworks and Static Assets on Workers
14
+
15
+ - **Workers + Static Assets, never new Pages projects:** Deploy full-stack apps and SPAs to **Cloudflare Workers** with [Workers Static Assets](https://developers.cloudflare.com/workers/static-assets/). Do not scaffold legacy Cloudflare Pages templates, Pages deploy commands, or Pages presets for new applications.
16
+ - **Next.js on Workers -> `vinext` (`cloudflare/vinext`, MIT):** Default to `vinext` (Vite-based Next.js API reimplementation) over OpenNext for new Next.js apps targeting Workers (`pnpm create vinext-app@latest` or `npx vinext check && npx vinext init`).
17
+ - Known `vinext` constraints to verify per app: `"use cache"` / Partial Prerendering is partial; native addons (`sharp`, `resvg`, `satori`, `@napi-rs/canvas`) can fail in Vite RSC dev mode even when prod builds work; standalone Node output reads `HOST` (not Next.js's `HOSTNAME`, avoiding Linux `$HOSTNAME` collisions); `bun build --compile` binaries must resolve `outDir` via `path.dirname(process.execPath)`.
18
+
19
+ ## 3. Workers Runtime, Memory, and Concurrency Rules
20
+
21
+ - **128 MB isolate memory limit — stream, don't buffer:** Never call `await response.text()` or `await request.arrayBuffer()` on large or unbounded payloads. Pass `response.body` directly (`new Response(response.body, response)`) or pipe through a `TransformStream` driven inside `ctx.waitUntil(...)`.
22
+ - **Zod >= 4.5.0 on Workers:** Older Zod releases retain substantially more heap per schema and trigger Worker OOMs; pin `zod >= 4.5.0`.
23
+ - **Zero module-scope request state:** A single Worker isolate handles concurrent requests. Storing user IDs, auth headers, or per-request buffers in module globals leaks state across tenants. Pass state explicitly or scope via `AsyncLocalStorage`.
24
+ - **Never destructure `ctx`:** `const { waitUntil } = ctx; waitUntil(p)` loses the `ExecutionContext` `this` binding and throws `Illegal invocation` at runtime (`slop_gate` / `dmb-gate` `workers-ctx-destructure`). Always call `ctx.waitUntil(p)`.
25
+ - **No floating promises:** Every async side effect must be `await`ed before returning or registered with `ctx.waitUntil(...)` (30 s post-response budget); unattached promises are dropped or swallow errors.
26
+ - **Use in-process bindings, never the Cloudflare REST API from a Worker:** Access KV, R2, D1, Queues, Durable Objects, and Workflows via `env.<BINDING>` (zero network hop, zero bearer token). Never call `fetch("https://api.cloudflare.com/client/v4/...")` for bound resources.
27
+ - **Regional DB placement:** Hyperdrive pools connections to Postgres (e.g. PlanetScale/Neon) but does **not** move Worker execution near the database. Configure Smart Placement or an explicit region hint when handlers issue sequential queries to a regional DB.
28
+ - **Fail closed on errors:** Avoid `ctx.passThroughOnException()` (fail-open origin bypass that masks crashes); catch explicitly, log structured JSON (`console.error(JSON.stringify(...))`), and return a controlled error response.
29
+
30
+ ## 4. Durable Objects, Stateful Agents, and Sandboxes
31
+
32
+ - **Class inheritance & binding access:** Platform classes (`DurableObject`, `WorkerEntrypoint`, `WorkflowEntrypoint`, `Agent`) **must** use `extends` (e.g. `extends DurableObject<Env>` from `"cloudflare:workers"`), never legacy `implements DurableObject` (`workers-legacy-implements-do`). Inside classes, read bindings via `this.env.X` and state via `this.ctx` (not legacy `this.state`); inside module handlers (`fetch`, `queue`, `scheduled`), read `env.X`.
33
+ - **SQLite-backed Durable Objects & `cloudflare/agents` (MIT):** Declare new DO classes under `migrations[].new_sqlite_classes` in `wrangler.jsonc`. `Agent<Env, State>` (`npm i agents`) gives hibernating per-user/session/room actors (`$0` idle compute), `@callable()` typed RPC, `useAgent` client state sync, scheduled tasks, Workflows, and built-in MCP server/client + WebMCP support.
34
+ - **Sandboxed agent compute (`cloudflare/computer` MIT & `@cloudflare/sandbox`):**
35
+ - `@cloudflare/computer` stores an authoritative virtual filesystem in DO SQLite (`@cloudflare/dofs`) and projects it into three `workspace.runtime` backends: a Linux Container FUSE mount (`computerd` synced over `capnweb`), a Dynamic Worker isolate shell, or a Dynamic Worker ESM `Codemode` runner.
36
+ - Keep Worker `@cloudflare/sandbox` npm versions strictly matched to container image tags (never mix stable `@cloudflare/sandbox` with `cloudflare/sandbox:next`).
37
+ - **Capability Gatekeepers (`cloudflare/cloudflare-os`, Apache-2.0):** Default agent and user-generated app ("Gadget") sandboxes to zero ambient credentials. Introduce specific external resources per task through narrow Gatekeeper bindings, and isolate untrusted UI in CSP-locked sandboxed iframes communicating only over `postMessage` Cap'n Web RPC (`cloudflare/capnweb`).
38
+
39
+ ## 5. Edge Security, OAuth, and Local Runtime Verification
40
+
41
+ - **Constant-time secret checks:** Generate tokens with `crypto.randomUUID()` / `crypto.getRandomValues()`. Before `crypto.subtle.timingSafeEqual(a, b)`, `SHA-256`-digest both inputs to fixed 32-byte buffers so length differences never leak via early return.
42
+ - **MCP OAuth on Workers:** Use `cloudflare/workers-oauth-provider` (MIT) with PKCE, strict `aud`/`iss` validation, and Cloudflare Zero Trust / `cloudflared` tunnels for private origin reachability without public ports.
43
+ - **Local runtime tests & Local Explorer:** Test Workers inside `workerd` with `@cloudflare/vitest-plugin` (replaces `@cloudflare/vitest-pool-workers`). Because the Vitest plugin auto-injects `nodejs_compat`, still verify `wrangler.jsonc` declares `"nodejs_compat"` explicitly. During `wrangler dev` / `cf dev`, inspect and seed local KV, R2, D1, SQLite DOs, Workflows, and request traces at `/cdn-cgi/local/explorer` before sprinkling debug logs.