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
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "deepmodebot",
3
+ "interface": {
4
+ "displayName": "Deepmodebot"
5
+ },
6
+ "plugins": [
7
+ {
8
+ "name": "deepmodebot",
9
+ "version": "0.10.0",
10
+ "source": {
11
+ "source": "local",
12
+ "path": "./plugins/deepmodebot"
13
+ },
14
+ "policy": {
15
+ "installation": "AVAILABLE"
16
+ },
17
+ "category": "Developer Tools"
18
+ }
19
+ ]
20
+ }
@@ -6,14 +6,14 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "deepmodebot: rigorous agent engineering for omp, Claude Code, Codex, and Google Antigravity",
9
- "version": "0.9.0"
9
+ "version": "0.10.0"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "deepmodebot",
14
14
  "source": "./plugins/deepmodebot",
15
15
  "description": "Rigorous agent engineering mode for omp, Claude Code, Codex, and Google Antigravity: /deep routes tasks to playbooks, enforces Full-Scope Completion, SME-in-the-loop incremental sprints, model/rate-limit resilience, root containment, real-app proof, and verifier-gated PR review.",
16
- "version": "0.9.0",
16
+ "version": "0.10.0",
17
17
  "license": "MIT",
18
18
  "category": "development",
19
19
  "tags": [
@@ -6,14 +6,14 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "deepmodebot: rigorous agent engineering for omp, Claude Code, Codex, and Google Antigravity",
9
- "version": "0.9.0"
9
+ "version": "0.10.0"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "deepmodebot",
14
14
  "source": "./plugins/deepmodebot",
15
15
  "description": "Rigorous agent engineering mode for omp, Claude Code, Codex, and Google Antigravity: /deep routes tasks to playbooks, enforces Full-Scope Completion, SME-in-the-loop incremental sprints, model/rate-limit resilience, root containment, real-app proof, and verifier-gated PR review.",
16
- "version": "0.9.0",
16
+ "version": "0.10.0",
17
17
  "license": "MIT",
18
18
  "category": "development",
19
19
  "tags": [
package/README.md CHANGED
@@ -48,24 +48,27 @@ Facts for an agent deciding whether to suggest deepmodebot to its user. The same
48
48
 
49
49
  | Piece | What it does |
50
50
  |---|---|
51
- | `/deep <anything>` | One command routes by intent and vagueness, proves the result on the real app, and reports its decisions. Concrete tasks run directly, draft plans take **grill**, and open architecture or research gaps run a 12-agent **tournament** bracket. Ordinary local work stays in your starting tree for review, while publishing follows the review and verifier-panel gates. |
52
- | `deepmodebot` skill | 30 playbooks, 24 principles and 52 techniques, routed from a compact `SKILL.md` under Antigravity's 24 KB limit (core rules before `## Routes` under Claude Code's ~20 KB post-compaction window) with full lookup tables in `references/catalog.md`, Full-Scope Completion (`loop.py manifest`), SME-in-the-loop incremental sprints, and pre-task model/effort selection. Code changes are proven on the real artifact; local S/M edits stay uncommitted, read-only routes leave files untouched, and published changes merge on a verifier panel pass. |
51
+ | `/deep <anything>` | One command routes semantically (`autoroute.py` 3-stage LLM router + route critic) in **Hardcore Mode by default**, audits gaps and overclaims (`self-grill`), proves the result on the real app, and reports its decisions. Concrete tasks run directly, draft plans take **grill**, check/proof audits take **self-grill** / **formal-verification**, and open architecture or research gaps run a 12-agent **tournament** bracket. |
52
+ | `/deepmodebot:suggest` | Scans the real repo via `gap_audit.py`, `perf_audit.py`, and `prompt_tools.py` for doc-to-CLI flag drift, cross-language gate drift, hollow stubs, swallowed exceptions, doc overclaims, broken links, missing tests, and hardcore upgrade targets, emitting ranked `/deep` prompts and a validated **A2UI v1.0** HTML cockpit (`.scratch/gen-ui/`). |
53
+ | `/deepmodebot:research` | Runs identical 4-stage adversarial SOTA & gap research (`/research` in Antigravity) across `agy`, `omp`, Claude Code, and Codex: verifies source code and root `LICENSE` files over READMEs, runs mandatory disconfirmation probes on issues/changelogs/CVEs, and enforces a SOTA-vs-Repo Differential Gap Matrix (`gap_audit.py verify-research --strict`). |
54
+ | `deepmodebot` skill | 30 playbooks, 26 principles and 70 techniques, routed from a compact `SKILL.md` under Antigravity's 24 KB limit (core rules before `## Routes` under Claude Code's ~20 KB post-compaction window) with full lookup tables in `references/catalog.md`, `worker.md`, `reward_guard.py`, `quota_guard.py`, `verify_proof.py`, `static_sec_audit.py`, `model_setup.py`, `self_cleanup.py`, Full-Scope Completion (`loop.py manifest`), and SME-in-the-loop incremental sprints. |
53
55
  | PR and issue bots | Install your own private GitHub App on your repos and a poller on your machine runs the bots: it reviews and lands your own PRs, resolves their merge conflicts, and plans and builds the issues you open. See [GitHub App bots](#github-app-bots). |
54
56
  | PR review | `/deepmodebot:review-pr <PR number>` reviews correctness, security, spec and standards, keeps findings backed by code or execution, and posts a comment-only review. No hosted review service is required. Prompts and source context still reach your configured model provider. |
55
57
  | Land a PR | `/deepmodebot:land-pr <PR number>` finishes and merges your own PR with no human: a reviewer bot posts findings in the PR thread, the author bot answers each with a fix or a reason, three verifier bots vote on the final head, and on a pass it merges. It never merges over a failing check. You see each turn in the session as it lands, drawn as an 8-bit frame right in the chat (each bot a sprite, each turn a dialog box), or watch the whole conversation play live as an 8-bit battle screen in your terminal; `/deepmodebot:pr-thread <PR or issue URL>` shows any bot conversation later. |
56
58
  | `deep-stack` skill | Stack picks and a ship loop: a default software stack and the decision rules behind it for any app (web, CLI, desktop, mobile, AI agent, data/ML, security tooling), an agent-driven UI design workflow, and a per-task loop of worktree, build, recorded evidence and reviewed PR. |
57
- | Verification skills | `create-verification-skill` builds a per-repo `verify-<app>` skill (a control CLI plus a feature map) so agents can drive your app and capture proof. `maintain-verification-skill` keeps it accurate as the app changes. |
59
+ | Verification & statechart skills | `create-verification-skill` and `maintain-verification-skill` build and maintain per-repo `verify-<app>` runtime harnesses; `create-formal-verification-skill`, `maintain-formal-verification-skill`, and `statechart` generate, maintain, and model-check TLA+/prover invariants with shortest-counterexample Mermaid statecharts on POSIX and native Windows. |
58
60
  | `project-brief` and `contribute` | A maintainer publishes a newcomer brief, claimable tasks as issues, a roadmap and templates. A contributor's agent finds an unclaimed task that doesn't overlap open PRs, claims it, builds it through deepmodebot, and opens a PR. |
59
61
  | Repository catalog | `plugins/deepmodebot/skills/deepmodebot/scripts/trending.py` searches new/trending repositories and dated reference choices, including analyst topics and material reuse cautions. |
60
62
  | Harness references | Cited, dated guides (checked 2026-11-13) for using omp, Claude Code, Codex, and Google Antigravity, the MCP, ACP, A2A, and WebMCP protocols, and portable AI-native conventions (`AGENTS.md`, Agent Skills, plugin marketplaces). A cross-harness map translates every omp tool and path deepmodebot names across harnesses. In `plugins/deepmodebot/skills/agent-harnesses/`. |
61
63
  | Agent SDK workspace | [Install and use Antigravity, Claude Agent, Codex, and omp SDKs](plugins/deepmodebot/skills/agent-harnesses/references/sdks.md), with pinned optional dependencies and no-model smoke commands. CLI subscription logins and SDK authentication are separate contracts. |
62
64
  | Contained work | The agent works only inside the project's repo. Scratch and temp files go in `.scratch/`, worktrees in `.worktrees/` (both git-ignored), never system temp or folders outside the repo. With no repo it creates a named one first. Guards enforce this in Claude Code, omp, and Antigravity; Codex's sandbox does it natively. Windows process cleanup uses the loaded interpreter as owner without launcher breakaway; process ownership is not credential isolation. |
65
+ | Approved rules | You see and sign off every rule AI agents load: `AGENTS.md`, `CLAUDE.md`, `.cursor/rules/`, skills, agent settings, and memory conventions. `deepmodebot rules init` signs today's rules with a passphrase only you know. From then on agents can only propose rule changes; hooks in Claude Code, omp and Antigravity block direct rule edits, the commit gate blocks unapproved or forged rules, and `deepmodebot rules review` / `approve` / `reject` / `log` track every decision. [How it works](plugins/deepmodebot/skills/deepmodebot/references/rule-approval.md). |
63
66
  | Credentials and auth | Cited, free-first guidance (checked 2026-11-11) for sharing API keys and `.env` safely, passwords and usernames, logins and MFA for agents, credential brokers, protecting MCP servers and agent APIs, CI OIDC, secret scanning, and leak response. In `plugins/deepmodebot/skills/secrets-and-auth/`. |
64
67
  | Architecture | Cited, decision-ready guidance (checked 2026-11-11) for organizing monorepos, naming the domain (glossary, typed models, LinkML, RDF and SHACL, graph databases, Palantir-style ontology for agent actions), choosing and migrating databases with agents working safely against them, and backend infrastructure and system design (reliability, queues and durable workflows, APIs, OpenTelemetry, deployment, IaC). Each file ends with the default stack for a solo dev or small team. In `plugins/deepmodebot/skills/software-architecture/`. |
65
68
  | Self-authoring | deepmodebot writes and revises bounded loop prompts from observed failures. `assets/loop/loop.py` pairs inner-loop hardening (`audit`, `manifest`, `fast_check`, `forbid_slop`, `protect_configs`) with sprint-scoped Full-Scope Completion (`status`, `--sprint`, `"inventory"`, `"sme_gate"`), cheap-first escalation, quota/429 fallback (`fallback_harness_args`), cadence/SME checkpoints (`checkpoint_every` or `sme_gate`, exit 6; active-sprint pass with deferred slices exits 0 with `scope_complete: false`), and `latest-summary.json`. `loop.py run` uses omp, Claude Code, or Codex. |
66
69
  | Language ports | A behavior inventory, protected consumer tests and a representative pilot precede bulk translation. Preserve architecture unless the target runtime boundary requires a change; a port need not delete valid branches or reduce reader load. Parity and completeness are checked separately, including release builds, callbacks and lifecycle semantics. Copilot and Bun's Rust migration accounts inform the workflow without prescribing Rust or one cutover strategy. Parallel work has explicit integration and build owners. |
67
70
  | Efficient delegation | Pre-task model/effort selection, rate-limit and token discipline, when a subagent pays for itself, and how subscription limits are metered across omp, Claude Code, Codex, and Antigravity. In `plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md` (checked 2026-11-13 for Antigravity, 2026-11-11 for omp/Claude/Codex). |
68
- | Cloud, domain & UI | Cited reference skills for cloud infrastructure and DevSecOps (`cloud-devsecops`), software/AI domain rules (`domain-rules`), and frontend/agent UI design and review (`frontend-ui`). In `plugins/deepmodebot/skills/`. |
71
+ | Cloud, domain, UI, SEO & Office docs | Cited reference skills and deterministic verifiers for cloud infrastructure and DevSecOps (`cloud-devsecops`), software/AI domain rules (`domain-rules`), frontend/agent UI design and review (`frontend-ui`), Technical SEO/GEO/Schema.org/Agentic Browsing (`seo-and-geo`, `seo_audit.py`), and `.xlsx`/`.pptx`/`.docx`/`.pdf` document engineering (`office-documents`, `doc_audit.py`). In `plugins/deepmodebot/skills/`. |
69
72
  | Supporting capabilities | [Agent collaboration](plugins/deepmodebot/skills/deepmodebot/references/techniques/agent-collaboration.md), [visual E2E recording and review](plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md), and [editable design evidence](plugins/deepmodebot/skills/deepmodebot/references/techniques/open-design-evidence.md) support the task's primary playbook; they do not replace ordinary research, debugging or implementation intent. |
70
73
 
71
74
  The agent makes reversible product and design decisions and handles commits, PRs and merges when publication is in scope. Ordinary small or medium local work stays uncommitted in the starting tree, with runtime proof and diff review. Publication requires exactly three independent valid verifier responses and at least two evidence-backed passes, at the same final head.
@@ -119,6 +122,9 @@ Around the main line:
119
122
  - **Opportunity probe:** Investigates one business-data workflow with source-specific rights checks, a reproducible sample or concrete blocker, and separate evidence for buyer need, willingness to pay, value and costs. It inspects failed work and proposes a discriminating next check; it does not itself enforce progress or prove commercial value. See the [research procedure](plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md).
120
123
  - **architecture-review:** Finds structural friction across the codebase and settles which refactors to make.
121
124
  - **tournament:** Runs a 12-agent bracket across architecture and research lenses with verified receipts and single-insight grafting. It proposes Champion and Runner-Up before code is written.
125
+ - **autoroute, prompt-upgrade & suggest:** 3-stage LLM semantic auto-routing (`assets/autoroute/autoroute.py`), messy prompt compilation (`assets/prompt-tools/prompt_tools.py upgrade`), and repo gap/overclaim scans with A2UI v1.0 HTML cockpits (`suggest --ui`, `assets/gen-ui/gen_ui.py`).
126
+ - **self-grill & formal-verification:** Adversarial Hotspot Prosecutor diff/check audits (`assets/self-grill/self_grill.py`) and machine-checked Lean 4 + Comparator / Rocq / TLA+ / SMT-LIB2 / Claim-DAG proof verification (`assets/formal-verification/verify_proof.py`).
127
+ - **quota-guard & self-cleanup:** Deterministic anti-stacking, subagent/panel quota caps, `<2 KB` 429 checkpoints (`assets/quota-guard/quota_guard.py`), and bounded `.scratch/` + bytecode hygiene (`assets/cleanup/self_cleanup.py`).
122
128
  - **security-audit:** Audits a PR's security before it merges, run by your own agent.
123
129
  - **retro:** Improves the repo's files, checks and docs after a session, so the next agent works faster.
124
130
  - **Handoff and Pause safely:** A portable doc for another session, harness or person, or a resume note for later in this repo.
@@ -238,7 +244,7 @@ cp plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain-link.ts ~/.
238
244
 
239
245
  With a manual install, copy `omp-contain.ts` itself to the same folder instead.
240
246
 
241
- For one run only, pass `--hook <path to omp-contain.ts>` instead. To let the agent write to a folder outside the project you named, list it in the project's `.deepmodebot.json` as `{"extraWriteRoots": ["~/some/folder"]}`. The guards don't parse shell commands, so the skill's rule still binds `bash`.
247
+ For one run only, pass `--hook <path to omp-contain.ts>` instead. To let the agent write to a folder outside the project you named, list it in the project's `.deepmodebot.json` as `{"extraWriteRoots": ["~/some/folder"]}`. The containment guards don't parse shell commands, so the skill's rule still binds `bash`. The same hook also enforces [rule approval](#approve-the-rules-agents-write), which does check shell writes to rule files.
242
248
 
243
249
  ## Use it
244
250
 
@@ -261,6 +267,24 @@ The examples use the bare `/deep`. With a plugin install, type `/deepmodebot:dee
261
267
  - It reuses the repo's verification tools or runs the real user path directly. A reusable `verify-<app>` skill is useful for repeated work, not a prerequisite for every local change.
262
268
  - Direct commands in omp and Claude Code: `/deepmodebot:tournament`, `/deepmodebot:review-pr`, `/deepmodebot:land-pr`, `/deepmodebot:pr-thread`, `/deepmodebot:contribute`, `/deepmodebot:project-brief`. In Antigravity drop the prefix (`/tournament`, `/review-pr`, etc.). Codex loads skills only (`$deepmodebot:deepmodebot`, `$deepmodebot:contribute`, `$deepmodebot:project-brief`); route PR/tournament tasks via `$deepmodebot:deepmodebot`.
263
269
 
270
+ ### Approve the rules agents write
271
+
272
+ Agents add rules to `AGENTS.md`, `CLAUDE.md`, `.cursor/rules/`, skills and project memory as they work. Turn on owner approval once per repo, from your own terminal:
273
+
274
+ ```bash
275
+ deepmodebot rules init # lists today's rules, approves them as the baseline, sets your passphrase
276
+ git add .deepmodebot/rules && git commit -m "rules: owner approval on"
277
+ ```
278
+
279
+ After that:
280
+
281
+ - Agents cannot edit rule files. The hooks block the write and tell the agent to run `rule_ledger.py propose`, which parks the change for you. New memory conventions stay hidden from the agent until approved.
282
+ - `deepmodebot rules status` lists every rule and what waits. `deepmodebot rules review` shows each pending change with an id and diff. `deepmodebot rules log` shows every past decision.
283
+ - `deepmodebot rules approve <id>` or `reject <id>` (or `--all`) asks for your passphrase. Reject puts the approved text back. Commit `.deepmodebot/rules/` afterwards.
284
+ - The pre-commit hook (`deepmodebot init --install-hooks`), the slop gate and `deepmodebot gate rules` fail on any unapproved rule, an edited ledger, or a swapped owner key. They compare against HEAD and your default branch, so a commit that skipped the hooks still fails there; in CI run `deepmodebot gate rules --base origin/main`.
285
+
286
+ Never give the passphrase to an agent. Agents are blocked from `rules init`, `approve`, `reject` and `rotate`, and from skipping git hooks. Codex has no deepmodebot hook, so its rule edits are caught at commit time. [Limits](plugins/deepmodebot/skills/deepmodebot/references/rule-approval.md#limits).
287
+
264
288
  ## GitHub App bots
265
289
 
266
290
  A private GitHub App gives the bots their own name in threads (`<app>[bot]`). Owner-controlled work uses ACP agents through [acpx](https://github.com/openclaw/acpx), with omp as the default. Each harness needs its own subscription login. Outside-contributor reviews currently require omp's sealed, tool-free path. The poller runs on your machine; no public webhook server is required.
@@ -1,11 +1,13 @@
1
1
  #!/usr/bin/env node
2
+ import { spawnSync } from "node:child_process";
2
3
  import { existsSync, readFileSync, realpathSync } from "node:fs";
3
4
  import { dirname, join, resolve } from "node:path";
4
5
  import { createInterface } from "node:readline/promises";
5
6
  import { fileURLToPath } from "node:url";
6
7
  import { disableAutoUpdate, enableAutoUpdate } from "../lib/autoupdate.mjs";
7
8
  import { CLIENTS, clientById } from "../lib/clients.mjs";
8
- import { run, which } from "../lib/run.mjs";
9
+ import { parseJson, run, which } from "../lib/run.mjs";
10
+ import { upgradeDecision } from "../lib/version.mjs";
9
11
  import { clearState, log, readState, withLock, writeState } from "../lib/state.mjs";
10
12
 
11
13
  const PKG = "deepmodebot";
@@ -29,13 +31,26 @@ const HELP = `deepmodebot ${version}: install and auto-update the deepmodebot pl
29
31
 
30
32
  Usage: deepmodebot <command>
31
33
 
32
- setup Install the plugin into every detected tool and turn on hourly auto-update
34
+ setup Install the plugin into every detected tool, turn on auto-update, and bootstrap current git repo
33
35
  --clients claude,omp,codex,agy only these tools
34
36
  --dry-run show the plan, change nothing
35
37
  --no-auto-update skip the hourly task
38
+ --no-init skip bootstrapping current git repo (AGENTS.md/CLAUDE.md/CI/memory)
36
39
  --yes do not ask before changing anything
37
- update Upgrade this npm package, then re-sync the tools setup configured (--quiet for the hourly task)
38
- doctor Show each tool's installed version next to this package's version
40
+ init Bootstrap a project with .deepmodebot/ci.yml, policy.xml, memory DB, and AGENTS.md/CLAUDE.md
41
+ [dir] target repo directory (default: current directory)
42
+ --check exit 1 if project setup is incomplete
43
+ --install-hooks install <1s .git/hooks/pre-commit running zero-token slop gate
44
+ --dependabot also generate .github/dependabot.yml with 7-day cooldown
45
+ gate [sub] Run parallel check gate (slop|reward|ci|perf|ui|seo|docs|sec|cleanup|agents|skill-check|map|guard|gap|rules)
46
+ rules [sub] Track and approve the rules AI agents load in this repo (AGENTS.md, CLAUDE.md, .cursor/rules, skills, ...)
47
+ status | review | log what is approved, what waits, and every past decision
48
+ init | approve <id>|--all | reject <id>|--all | rotate
49
+ owner only: asks for the owner passphrase on this terminal
50
+ net [sub] Run native concurrent Go engine (trending|pr-overlap|fetch-papers|webhook)
51
+ build-native Compile zero-dep Rust (dmb-gate) and Go (dmb-net) release binaries
52
+ update Upgrade this npm package, then re-sync the tools setup configured (--quiet for the hourly task)
53
+ doctor Show each tool's installed version next to this package's version
39
54
  uninstall Remove the plugin from the configured tools and stop auto-update
40
55
  version Print the package version
41
56
 
@@ -115,11 +130,14 @@ async function setup() {
115
130
  console.log("No supported tool found on PATH (claude, omp, codex, agy).");
116
131
  return 1;
117
132
  }
133
+ const gitRoot = findGitRoot(process.cwd());
134
+ const doInit = Boolean(gitRoot) && !flag("no-init");
118
135
  say(`deepmodebot ${version} from ${pkgRoot}`);
119
136
  say("Plan:");
120
137
  for (const c of clients) say(` - ${c.label}: install or update the deepmodebot plugin from this package`);
121
138
  const auto = !flag("no-auto-update");
122
139
  if (auto) say(" - turn on hourly auto-update (deepmodebot update --quiet)");
140
+ if (doInit) say(` - bootstrap ${gitRoot} (.deepmodebot/ci.yml, policy.xml, memory DB, AGENTS.md, CLAUDE.md)`);
123
141
  if (flag("dry-run")) return 0;
124
142
  if (!(await confirm("Apply?"))) return 1;
125
143
 
@@ -132,22 +150,180 @@ async function setup() {
132
150
  state.autoUpdate = r.ok;
133
151
  }
134
152
  writeState(state);
153
+ if (doInit) {
154
+ const ir = runProjectInit(gitRoot, false);
155
+ say(` ${ir.code === 0 ? "ok " : "FAIL"} project-init: ${ir.out.trim() || "done"}`);
156
+ }
135
157
  say(ok ? "Done. Restart open tools to load the new version." : "Some tools failed; the hourly update retries them.");
136
158
  return ok ? 0 : 1;
137
159
  }
138
160
 
161
+ function findGitRoot(startDir) {
162
+ let cur = resolve(startDir);
163
+ while (true) {
164
+ if (existsSync(join(cur, ".git"))) return cur;
165
+ const parent = dirname(cur);
166
+ if (parent === cur) return null;
167
+ cur = parent;
168
+ }
169
+ }
170
+
171
+ function findPython() {
172
+ if (process.platform === "win32" && which("py")) return ["py", ["-3", "-B"]];
173
+ if (which("python3")) return ["python3", ["-B"]];
174
+ if (which("python")) return ["python", ["-B"]];
175
+ return null;
176
+ }
177
+
178
+ function runProjectInit(targetDir, checkOnly, extraFlags = []) {
179
+ const py = findPython();
180
+ if (!py) return { code: 1, out: "python 3 not found on PATH" };
181
+ const script = join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "setup", "project_setup.py");
182
+ if (!existsSync(script)) return { code: 1, out: `project_setup.py missing at ${script}` };
183
+ const [exe, prefix] = py;
184
+ const cliArgs = [...prefix, script, "--root", resolve(targetDir), ...(checkOnly ? ["--check"] : []), ...extraFlags];
185
+ return run(exe, cliArgs);
186
+ }
187
+
188
+ function init() {
189
+ const pos = args.filter((a) => !a.startsWith("-"));
190
+ const targetDir = pos[1] || process.cwd();
191
+ const extra = [];
192
+ if (flag("install-hooks")) extra.push("--install-hooks");
193
+ if (flag("dependabot")) extra.push("--dependabot");
194
+ const res = runProjectInit(targetDir, flag("check"), extra);
195
+ if (res.out.trim()) console.log(res.out.trim());
196
+ return res.code;
197
+ }
198
+
199
+ function findNativeGate() {
200
+ const ext = process.platform === "win32" ? ".exe" : "";
201
+ const localBin = join(pkgRoot, "native", "dmb-gate", "target", "release", `dmb-gate${ext}`);
202
+ if (existsSync(localBin)) return localBin;
203
+ if (which(`dmb-gate${ext}`)) return `dmb-gate${ext}`;
204
+ return null;
205
+ }
206
+
207
+ function gate() {
208
+ const passArgs = args.slice(1);
209
+ const sub = passArgs[0] && !passArgs[0].startsWith("-") ? passArgs[0] : "slop";
210
+ const pyOnly = new Set(["seo", "docs", "sec", "rules"]);
211
+ const rewardLedger = sub === "reward" && passArgs.some((a) => ["lock-contract", "record-provenance", "run-judge", "verdict"].includes(a));
212
+ const nativeBin = pyOnly.has(sub) || rewardLedger ? null : findNativeGate();
213
+ if (nativeBin) {
214
+ const res = run(nativeBin, passArgs);
215
+ if (res.out.trim()) console.log(res.out.trim());
216
+ return res.code;
217
+ }
218
+ const py = findPython();
219
+ if (!py) {
220
+ console.error("Neither native dmb-gate nor python 3 found.");
221
+ return 1;
222
+ }
223
+ const rest = passArgs[0] === sub ? passArgs.slice(1) : passArgs;
224
+ if (sub === "rules" && rest[0] !== "check") rest.unshift("check");
225
+ const map = {
226
+ slop: join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "local-ci", "slop_gate.py"),
227
+ reward: join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "reward-guard", "reward_guard.py"),
228
+ ci: join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "local-ci", "local_ci.py"),
229
+ perf: join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "perf-audit", "perf_audit.py"),
230
+ ui: join(pkgRoot, "plugins", "deepmodebot", "skills", "frontend-ui", "scripts", "ui_audit.py"),
231
+ seo: join(pkgRoot, "plugins", "deepmodebot", "skills", "seo-and-geo", "scripts", "seo_audit.py"),
232
+ docs: join(pkgRoot, "plugins", "deepmodebot", "skills", "office-documents", "scripts", "doc_audit.py"),
233
+ sec: join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "security-audit", "static_sec_audit.py"),
234
+ cleanup: join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "cleanup", "self_cleanup.py"),
235
+ agents: join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "agents-md", "agents_md.py"),
236
+ gap: join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "gap-audit", "gap_audit.py"),
237
+ rules: join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "rules", "rule_ledger.py"),
238
+ };
239
+ const script = map[sub] || map.slop;
240
+ const [exe, prefix] = py;
241
+ const res = run(exe, [...prefix, script, ...rest]);
242
+ if (res.out.trim()) console.log(res.out.trim());
243
+ return res.code;
244
+ }
245
+
246
+ // Interactive: the owner types the passphrase into this terminal, so the child shares our stdio.
247
+ function rules() {
248
+ const py = findPython();
249
+ if (!py) {
250
+ console.error("python 3 not found on PATH");
251
+ return 1;
252
+ }
253
+ const script = join(pkgRoot, "plugins", "deepmodebot", "skills", "deepmodebot", "assets", "rules", "rule_ledger.py");
254
+ const passArgs = args.slice(1);
255
+ const [exe, prefix] = py;
256
+ const res = spawnSync(exe, [...prefix, script, ...(passArgs.length ? passArgs : ["status"])], { stdio: "inherit", windowsHide: true });
257
+ return res.status ?? 1;
258
+ }
259
+
260
+ function findNativeNet() {
261
+ const ext = process.platform === "win32" ? ".exe" : "";
262
+ const localBin = join(pkgRoot, "native", "dmb-net", "bin", `dmb-net${ext}`);
263
+ if (existsSync(localBin)) return localBin;
264
+ if (which(`dmb-net${ext}`)) return `dmb-net${ext}`;
265
+ return null;
266
+ }
267
+
268
+ function net() {
269
+ const passArgs = args.slice(1);
270
+ const bin = findNativeNet();
271
+ if (!bin) {
272
+ console.error("dmb-net binary not built yet. Run: deepmodebot build-native");
273
+ return 1;
274
+ }
275
+ const res = run(bin, passArgs);
276
+ if (res.out.trim()) console.log(res.out.trim());
277
+ return res.code;
278
+ }
279
+
280
+ function buildNative() {
281
+ const ext = process.platform === "win32" ? ".exe" : "";
282
+ let code = 0;
283
+ const cargoManifest = join(pkgRoot, "native", "dmb-gate", "Cargo.toml");
284
+ if (existsSync(cargoManifest) && which("cargo")) {
285
+ const r = run("cargo", ["build", "--release", "--manifest-path", cargoManifest]);
286
+ if (r.out.trim()) console.log(r.out.trim());
287
+ if (r.code !== 0) code = r.code;
288
+ }
289
+ const goDir = join(pkgRoot, "native", "dmb-net");
290
+ if (existsSync(join(goDir, "go.mod")) && which("go")) {
291
+ const outBin = join(goDir, "bin", `dmb-net${ext}`);
292
+ const r = run("go", ["build", "-C", goDir, "-ldflags=-s -w", "-o", outBin, "."]);
293
+ if (r.out.trim()) console.log(r.out.trim());
294
+ if (r.code !== 0) code = r.code;
295
+ }
296
+ return code;
297
+ }
298
+
139
299
  function update() {
140
300
  const state = readState();
141
301
  if (!state.clients?.length) {
142
302
  console.log("Nothing configured yet. Run: npx deepmodebot@latest setup");
143
303
  return 1;
144
304
  }
145
- const outcome = withLock(() => {
305
+ // The hand-off child runs while its parent holds the lock; it must not wait on that lock.
306
+ const lockHeld = flag("no-self-update") && process.env.DEEPMODEBOT_LOCK_HELD === "1";
307
+ const outcome = (lockHeld ? (fn) => fn() : withLock)(() => {
146
308
  if (!flag("no-self-update")) {
147
- const r = npm(["install", "-g", `${PKG}@latest`]);
148
- if (r.code !== 0) {
149
- log(`npm install -g ${PKG}@latest failed: ${r.out.slice(-300)}`);
150
- say(`npm upgrade failed; re-syncing ${version} anyway`);
309
+ // Read the registry's latest manifest first and install only a stable, newer release that ships
310
+ // the command: npm's first-publish placeholder (0.0.0-stage, no bin) once replaced a working install.
311
+ const view = npm(["view", `${PKG}@latest`, "name", "version", "bin", "--json"]);
312
+ const latest = view.code === 0 ? parseJson(view.stdout) : undefined;
313
+ const decision = latest ? upgradeDecision(version, latest) : { install: false, reason: "registry unreachable" };
314
+ if (decision.install) {
315
+ const r = npm(["install", "-g", `${PKG}@${latest.version}`]);
316
+ const root = globalRoot();
317
+ const installedBin = root && join(root, PKG, "bin", "deepmodebot.mjs");
318
+ if (r.code !== 0 || !installedBin || !existsSync(installedBin) || readInstalledVersion(root) !== latest.version) {
319
+ log(`upgrade to ${latest.version} failed or left no command; restoring ${version}: ${r.out.slice(-200)}`);
320
+ npm(["install", "-g", `${PKG}@${version}`]);
321
+ say(`npm upgrade failed; kept ${version}`);
322
+ } else {
323
+ log(`upgraded ${decision.reason}`);
324
+ }
325
+ } else {
326
+ say(`no upgrade: ${decision.reason}`);
151
327
  }
152
328
  // Hand off to the freshly installed copy so new client logic runs this sync.
153
329
  const root = globalRoot();
@@ -156,6 +332,7 @@ function update() {
156
332
  const isOtherCopy = fresh && resolve(fresh).toLowerCase() !== resolve(here, "deepmodebot.mjs").toLowerCase();
157
333
  const wasUpgraded = fresh && readInstalledVersion(root) !== version;
158
334
  if (isOtherCopy || wasUpgraded) {
335
+ process.env.DEEPMODEBOT_LOCK_HELD = "1";
159
336
  const r2 = run(process.execPath, [fresh, "update", "--no-self-update", ...(quiet ? ["--quiet"] : [])]);
160
337
  if (!quiet) console.log(r2.out);
161
338
  return { code: r2.code };
@@ -213,7 +390,7 @@ function uninstall() {
213
390
  return 0;
214
391
  }
215
392
 
216
- const commands = { setup, update, doctor, uninstall, version: () => (console.log(version), 0), help: () => (console.log(HELP), 0) };
393
+ const commands = { setup, init, gate, rules, net, "build-native": buildNative, update, doctor, uninstall, version: () => (console.log(version), 0), help: () => (console.log(HELP), 0) };
217
394
  const handler = flag("version") ? commands.version : flag("help") || flag("h") ? commands.help : commands[cmd];
218
395
  if (!handler) {
219
396
  console.error(`Unknown command: ${cmd}\n\n${HELP}`);
package/lib/clients.mjs CHANGED
@@ -1,9 +1,20 @@
1
- import { existsSync } from "node:fs";
1
+ import { existsSync, rmSync } from "node:fs";
2
2
  import { homedir } from "node:os";
3
3
  import { join, resolve } from "node:path";
4
4
  import { parseJson } from "./run.mjs";
5
5
  import { mirror, treeDiffs } from "./tree.mjs";
6
6
 
7
+ export function pruneStaleOmpShadows(skillsDir = join(homedir(), ".omp", "agent", "skills")) {
8
+ const removed = [];
9
+ for (const name of [PLUGIN, "deep-mode"]) {
10
+ const p = join(skillsDir, name);
11
+ if (existsSync(p)) {
12
+ rmSync(p, { recursive: true, force: true });
13
+ removed.push(name);
14
+ }
15
+ }
16
+ return removed;
17
+ }
7
18
  export const MARKETPLACE = "deepmodebot";
8
19
  export const PLUGIN = "deepmodebot";
9
20
  export const PLUGIN_ID = `${PLUGIN}@${MARKETPLACE}`;
@@ -12,6 +23,33 @@ const norm = (p) => resolve(String(p)).replace(/\\/g, "/").replace(/\/+$/, "").t
12
23
  const mentions = (value, path) => value !== undefined && JSON.stringify(value).replace(/\\\\/g, "/").toLowerCase().includes(norm(path));
13
24
  const fail = (step, r) => ({ ok: false, detail: `${step} failed (${r.code}): ${r.out.split("\n").slice(-3).join(" ").slice(0, 300)}` });
14
25
 
26
+ function cacheDirsForClient(id, version, home = homedir()) {
27
+ if (id === "claude") return [join(home, ".claude", "plugins", "cache", MARKETPLACE, PLUGIN, version)];
28
+ if (id === "codex") return [join(home, ".codex", "plugins", "cache", MARKETPLACE, PLUGIN, version)];
29
+ if (id === "omp") {
30
+ return [
31
+ join(home, ".omp", "plugins", "cache", "plugins", `${MARKETPLACE}___${PLUGIN}___${version}`),
32
+ join(home, ".omp", "agent", "plugins", "cache", "plugins", `${MARKETPLACE}___${PLUGIN}___${version}`),
33
+ ];
34
+ }
35
+ return [];
36
+ }
37
+
38
+ export function syncClientCache(id, pkgRoot, version, home = homedir()) {
39
+ const src = join(pkgRoot, "plugins", PLUGIN);
40
+ if (!existsSync(src)) return 0;
41
+ let updated = 0;
42
+ for (const dir of cacheDirsForClient(id, version, home)) {
43
+ if (!existsSync(dir)) continue;
44
+ const dst = existsSync(join(dir, "plugins", PLUGIN)) ? join(dir, "plugins", PLUGIN) : dir;
45
+ if (treeDiffs(src, dst).length > 0) {
46
+ mirror(src, dst);
47
+ updated += 1;
48
+ }
49
+ }
50
+ return updated;
51
+ }
52
+
15
53
  /**
16
54
  * Point a marketplace-based CLI at the npm package folder, then install or update the plugin.
17
55
  * `api` describes one CLI: how to read its marketplace source and installed version, and its subcommands.
@@ -39,7 +77,9 @@ function ensureViaMarketplace(api, ctx) {
39
77
  }
40
78
  const after = api.installedVersion(run);
41
79
  if (after !== ctx.version) return { ok: false, detail: `installed version is ${after ?? "none"}, expected ${ctx.version}` };
42
- return { ok: true, detail: before === ctx.version ? `already ${after}` : `${before ?? "none"} -> ${after}` };
80
+ const synced = syncClientCache(api.id, pkgRoot, ctx.version, ctx.cacheHome);
81
+ const baseDetail = before === ctx.version ? `already ${after}` : `${before ?? "none"} -> ${after}`;
82
+ return { ok: true, detail: synced > 0 && before === ctx.version ? `${baseDetail} (cache synced)` : baseDetail };
43
83
  }
44
84
 
45
85
  function uninstallViaMarketplace(api, { run }) {
@@ -131,7 +171,14 @@ const agy = {
131
171
  };
132
172
 
133
173
  for (const api of [claude, omp, codex]) {
134
- api.ensure = (ctx) => ensureViaMarketplace(api, ctx);
174
+ api.ensure = (ctx) => {
175
+ const res = ensureViaMarketplace(api, ctx);
176
+ if (res.ok && api.id === "omp") {
177
+ const pruned = pruneStaleOmpShadows(ctx.ompSkillsDir);
178
+ if (pruned.length) return { ...res, detail: `${res.detail} (removed stale shadow: ${pruned.join(", ")})` };
179
+ }
180
+ return res;
181
+ };
135
182
  api.uninstall = (ctx) => uninstallViaMarketplace(api, ctx);
136
183
  }
137
184
 
package/lib/tree.mjs CHANGED
@@ -1,23 +1,66 @@
1
- import { cpSync, existsSync, readdirSync, readFileSync, rmSync, statSync } from "node:fs";
1
+ import { closeSync, cpSync, existsSync, lstatSync, openSync, readdirSync, readSync, rmSync, statSync } from "node:fs";
2
2
  import { join, relative, sep } from "node:path";
3
3
 
4
- const IGNORED = new Set(["__pycache__", ".pytest_cache", "node_modules"]);
4
+ const NEVER_PRUNE_DIRS = new Set(["node_modules"]);
5
+ const IGNORED = new Set(["__pycache__", ".pytest_cache", "node_modules", "bun.lock"]);
6
+ const isIgnoredFile = (name) =>
7
+ IGNORED.has(name) ||
8
+ name.endsWith(".pyc") ||
9
+ name.includes(".bak") ||
10
+ (name.endsWith(".py") && (name.startsWith("test_") || name.endsWith("_test.py")));
5
11
 
6
- function listFiles(root) {
12
+ function listFiles(root, { includeIgnored = false } = {}) {
7
13
  const out = new Map();
8
14
  const walk = (dir) => {
9
15
  for (const name of readdirSync(dir)) {
10
- if (IGNORED.has(name) || name.endsWith(".pyc")) continue;
16
+ if (NEVER_PRUNE_DIRS.has(name)) continue;
17
+ if (!includeIgnored && isIgnoredFile(name)) continue;
11
18
  const p = join(dir, name);
12
- const st = statSync(p);
19
+ const st = lstatSync(p);
20
+ if (st.isSymbolicLink()) continue;
13
21
  if (st.isDirectory()) walk(p);
14
- else out.set(relative(root, p).split(sep).join("/"), p);
22
+ else if (st.isFile()) out.set(relative(root, p).split(sep).join("/"), p);
15
23
  }
16
24
  };
17
25
  if (existsSync(root)) walk(root);
18
26
  return out;
19
27
  }
20
28
 
29
+ const CHUNK_BYTES = 64 * 1024;
30
+
31
+ function filesEqual(pa, pb, size) {
32
+ if (size === 0) return true;
33
+ const fa = openSync(pa, "r");
34
+ const fb = openSync(pb, "r");
35
+ const bufA = Buffer.allocUnsafe(Math.min(size, CHUNK_BYTES));
36
+ const bufB = Buffer.allocUnsafe(Math.min(size, CHUNK_BYTES));
37
+ try {
38
+ let offset = 0;
39
+ while (offset < size) {
40
+ const toRead = Math.min(CHUNK_BYTES, size - offset);
41
+ const na = readSync(fa, bufA, 0, toRead, offset);
42
+ const nb = readSync(fb, bufB, 0, toRead, offset);
43
+ if (na !== nb || !bufA.subarray(0, na).equals(bufB.subarray(0, nb))) return false;
44
+ if (na === 0) break;
45
+ offset += na;
46
+ }
47
+ return true;
48
+ } finally {
49
+ closeSync(fa);
50
+ closeSync(fb);
51
+ }
52
+ }
53
+
54
+ function pruneEmptyDirs(dir, root) {
55
+ if (!existsSync(dir)) return;
56
+ for (const name of readdirSync(dir)) {
57
+ const p = join(dir, name);
58
+ const st = lstatSync(p);
59
+ if (!st.isSymbolicLink() && st.isDirectory()) pruneEmptyDirs(p, root);
60
+ }
61
+ if (dir !== root && readdirSync(dir).length === 0) rmSync(dir, { recursive: true, force: true });
62
+ }
63
+
21
64
  /** Relative paths that are missing, extra, or different between src and dst (up to `limit`). */
22
65
  export function treeDiffs(src, dst, limit = 5) {
23
66
  if (!existsSync(dst)) return ["<not installed>"];
@@ -27,10 +70,14 @@ export function treeDiffs(src, dst, limit = 5) {
27
70
  for (const rel of [...new Set([...a.keys(), ...b.keys()])].sort()) {
28
71
  const pa = a.get(rel);
29
72
  const pb = b.get(rel);
30
- if (!pa || !pb || statSync(pa).size !== statSync(pb).size || !readFileSync(pa).equals(readFileSync(pb))) {
73
+ if (!pa || !pb) {
31
74
  diffs.push(rel);
32
- if (diffs.length >= limit) break;
75
+ } else {
76
+ const sa = statSync(pa).size;
77
+ const sb = statSync(pb).size;
78
+ if (sa !== sb || !filesEqual(pa, pb, sa)) diffs.push(rel);
33
79
  }
80
+ if (diffs.length >= limit) break;
34
81
  }
35
82
  return diffs;
36
83
  }
@@ -41,8 +88,15 @@ export function treeDiffs(src, dst, limit = 5) {
41
88
  */
42
89
  export function mirror(src, dst) {
43
90
  // Filter on the path inside src only: the package itself lives under node_modules.
44
- const skip = (p) => relative(src, p).split(/[\\/]/).some((part) => IGNORED.has(part));
91
+ const skip = (p) => {
92
+ const rel = relative(src, p);
93
+ if (!rel) return false;
94
+ const parts = rel.split(/[\\/]/);
95
+ const base = parts[parts.length - 1];
96
+ return isIgnoredFile(base) || parts.some((part) => IGNORED.has(part));
97
+ };
45
98
  cpSync(src, dst, { recursive: true, force: true, filter: (p) => !skip(p) });
46
99
  const keep = listFiles(src);
47
- for (const [rel, p] of listFiles(dst)) if (!keep.has(rel)) rmSync(p, { force: true });
100
+ for (const [rel, p] of listFiles(dst, { includeIgnored: true })) if (!keep.has(rel)) rmSync(p, { force: true });
101
+ pruneEmptyDirs(dst, dst);
48
102
  }
@@ -0,0 +1,26 @@
1
+ /** Parse a plain release version "1.2.3"; a prerelease ("0.0.0-stage") or anything else is undefined. */
2
+ export function parseRelease(v) {
3
+ const m = /^(\d+)\.(\d+)\.(\d+)$/.exec(String(v ?? "").trim());
4
+ return m ? m.slice(1, 4).map(Number) : undefined;
5
+ }
6
+
7
+ function compare(a, b) {
8
+ for (let i = 0; i < 3; i += 1) if (a[i] !== b[i]) return a[i] - b[i];
9
+ return 0;
10
+ }
11
+
12
+ /**
13
+ * Decide whether `update` may install the registry's latest manifest over the running version.
14
+ * Only a stable release, newer than the current one, that ships the deepmodebot command. A placeholder
15
+ * (npm's first-publish "0.0.0-stage" had no bin) or a downgrade is refused, so the hourly task can never
16
+ * replace a working install with something that has no command.
17
+ */
18
+ export function upgradeDecision(current, latest, bin = "deepmodebot") {
19
+ const want = parseRelease(latest?.version);
20
+ if (!want) return { install: false, reason: `latest is ${latest?.version ?? "unknown"}, not a release` };
21
+ const have = parseRelease(current);
22
+ if (have && compare(want, have) <= 0) return { install: false, reason: `already ${current}` };
23
+ const bins = typeof latest.bin === "string" ? { [latest.name ?? bin]: latest.bin } : latest.bin ?? {};
24
+ if (!bins[bin]) return { install: false, reason: `${latest.version} has no ${bin} command` };
25
+ return { install: true, reason: `${current} -> ${latest.version}` };
26
+ }