deepmodebot 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +20 -0
- package/.claude-plugin/marketplace.json +2 -2
- package/.omp-plugin/marketplace.json +2 -2
- package/README.md +29 -5
- package/bin/deepmodebot.mjs +163 -4
- package/lib/clients.mjs +50 -3
- package/lib/tree.mjs +64 -10
- package/native/dmb-gate/Cargo.toml +13 -0
- package/native/dmb-gate/src/agents.rs +77 -0
- package/native/dmb-gate/src/ci.rs +516 -0
- package/native/dmb-gate/src/cleanup.rs +198 -0
- package/native/dmb-gate/src/gap.rs +1376 -0
- package/native/dmb-gate/src/guard.rs +135 -0
- package/native/dmb-gate/src/main.rs +327 -0
- package/native/dmb-gate/src/map.rs +173 -0
- package/native/dmb-gate/src/perf.rs +347 -0
- package/native/dmb-gate/src/reward.rs +1214 -0
- package/native/dmb-gate/src/skill_check.rs +171 -0
- package/native/dmb-gate/src/slop.rs +1238 -0
- package/native/dmb-gate/src/ui.rs +842 -0
- package/native/dmb-gate/src/util.rs +260 -0
- package/native/dmb-net/go.mod +3 -0
- package/native/dmb-net/main.go +624 -0
- package/native/dmb-net/main_test.go +122 -0
- package/package.json +12 -2
- package/plugins/deepmodebot/.antigravity-plugin/plugin.json +1 -1
- package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +5 -5
- package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +1 -1
- package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +2 -2
- package/plugins/deepmodebot/.antigravity-plugin/skills/suggest/SKILL.md +13 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +2 -2
- package/plugins/deepmodebot/.claude-plugin/plugin.json +1 -1
- package/plugins/deepmodebot/.codex-plugin/plugin.json +46 -0
- package/plugins/deepmodebot/agents/comment-sicko/agent.md +35 -0
- package/plugins/deepmodebot/agents/researcher/agent.md +33 -0
- package/plugins/deepmodebot/agents/reviewer/agent.md +4 -2
- package/plugins/deepmodebot/agents/scout/agent.md +11 -12
- package/plugins/deepmodebot/agents/security-reviewer/agent.md +2 -1
- package/plugins/deepmodebot/commands/deep.md +6 -6
- package/plugins/deepmodebot/commands/research.md +8 -0
- package/plugins/deepmodebot/commands/suggest.md +10 -0
- package/plugins/deepmodebot/commands/tournament.md +2 -2
- package/plugins/deepmodebot/hooks/hooks.json +2 -2
- package/plugins/deepmodebot/hooks.json +1 -1
- package/plugins/deepmodebot/scripts/antigravity-guard.mjs +140 -7
- package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +179 -47
- package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +4 -6
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +3 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +4 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +3 -1
- package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +2 -2
- package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +12 -2
- package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +11 -3
- package/plugins/deepmodebot/skills/app-automation-relay/SKILL.md +17 -0
- package/plugins/deepmodebot/skills/app-automation-relay/assets/relay_server.ts +364 -0
- package/plugins/deepmodebot/skills/app-automation-relay/references/adapter-cookbook.md +15 -0
- package/plugins/deepmodebot/skills/app-automation-relay/references/wire-protocol.md +23 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +4 -3
- package/plugins/deepmodebot/skills/cloud-devsecops/references/cloudflare-edge.md +43 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +15 -2
- package/plugins/deepmodebot/skills/contribute/SKILL.md +3 -35
- package/plugins/deepmodebot/skills/create-formal-verification-skill/LICENSE +21 -0
- package/plugins/deepmodebot/skills/create-formal-verification-skill/NOTICE.md +16 -0
- package/plugins/deepmodebot/skills/create-formal-verification-skill/SKILL.md +71 -0
- package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +2 -2
- package/plugins/deepmodebot/skills/deep-learning/LICENSE +21 -0
- package/plugins/deepmodebot/skills/deep-learning/SKILL.md +33 -0
- package/plugins/deepmodebot/skills/deep-learning/references/neural-architectures.md +43 -0
- package/plugins/deepmodebot/skills/deep-learning/references/papers-and-repos.md +128 -0
- package/plugins/deepmodebot/skills/deep-learning/references/reinforcement-learning.md +57 -0
- package/plugins/deepmodebot/skills/deep-learning/references/training-optimization.md +40 -0
- package/plugins/deepmodebot/skills/deep-learning/references/weight-space-programming.md +76 -0
- package/plugins/deepmodebot/skills/deep-learning/scripts/hf_passes.py +166 -0
- package/plugins/deepmodebot/skills/deep-learning/scripts/wsp.py +493 -0
- package/plugins/deepmodebot/skills/deep-stack/SKILL.md +1 -1
- package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +46 -92
- package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +1 -0
- package/plugins/deepmodebot/skills/deep-stack/references/prove.md +6 -0
- package/plugins/deepmodebot/skills/deep-stack/references/stack.md +11 -1
- package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +74 -145
- package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +18 -6
- package/plugins/deepmodebot/skills/deepmodebot/assets/autoroute/autoroute.py +1021 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/cleanup/self_cleanup.py +305 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +98 -5
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +106 -5
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +3 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/rehearsal_gate.py +536 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/formal-verification/verify_proof.py +638 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/gap-audit/gap_audit.py +1053 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/gen-ui/gen_ui.py +1782 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +3 -2
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +9 -5
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/local-ci/local_ci.py +540 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/local-ci/slop_gate.py +642 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/memory/project_memory.py +529 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +48 -21
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +339 -5
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +96 -6
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/prompt-tools/prompt_tools.py +1239 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/quota-guard/quota_guard.py +424 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +477 -1
- package/plugins/deepmodebot/skills/deepmodebot/assets/reward-guard/reward_guard.py +1597 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rule-paths.json +57 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rule_ledger.py +1645 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +13 -10
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/static_sec_audit.py +275 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/self-grill/self_grill.py +1473 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/setup/model_setup.py +329 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/setup/project_setup.py +312 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +304 -18
- package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +121 -78
- package/plugins/deepmodebot/skills/deepmodebot/references/README.md +14 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +16 -11
- package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/delegation.md +14 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/full-scope.md +9 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +12 -9
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +7 -3
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +4 -4
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +1 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +13 -10
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +6 -6
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +1 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +3 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +1 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +1 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +4 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/hardcore-mode.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/no-reward-hacking.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +2 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/rule-approval.md +51 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +10 -24
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +5 -4
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +3 -3
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/autoroute.md +49 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +1 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/catchup-video.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +8 -7
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/devex-review.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/expand-contract.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/formal-verification.md +33 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/gen-ui.md +60 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +7 -18
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +7 -7
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/model-setup.md +14 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/modernize-pr.md +15 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/mutation-testing.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +5 -5
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +7 -3
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +1 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +8 -5
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +1 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +33 -38
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/product-lens.md +12 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prompt-upgrade.md +30 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +1 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reframe.md +18 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/release-and-canary.md +10 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +62 -89
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +5 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/self-grill.md +54 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +3 -3
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +3 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/suggest.md +24 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +2 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +12 -11
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/variant-analysis.md +11 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/video-forensics.md +46 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +10 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/webhook-ui.md +11 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +141 -18
- package/plugins/deepmodebot/skills/deepmodebot/worker.md +16 -0
- package/plugins/deepmodebot/skills/domain-rules/SKILL.md +13 -119
- package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +19 -1
- package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +7 -0
- package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +11 -0
- package/plugins/deepmodebot/skills/domain-rules/references/sources.md +108 -0
- package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +30 -131
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/canvas.css +42 -0
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/editorial.css +39 -0
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/layouts.css +95 -0
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/swiss.css +40 -0
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/tactile.css +41 -0
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/workbench.css +50 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-animations.md +49 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +46 -24
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +27 -258
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +26 -51
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +22 -195
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/00-art-direction.md +39 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +27 -24
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +23 -17
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +22 -45
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +11 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +32 -152
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +36 -91
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +14 -120
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +11 -10
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +9 -9
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06b-media-icons-charts.md +19 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06c-product-shots-craft.md +42 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +5 -6
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +28 -56
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +9 -7
- package/plugins/deepmodebot/skills/frontend-ui/scripts/motion_diff.py +259 -0
- package/plugins/deepmodebot/skills/frontend-ui/scripts/ui_audit.py +496 -0
- package/plugins/deepmodebot/skills/maintain-formal-verification-skill/LICENSE +21 -0
- package/plugins/deepmodebot/skills/maintain-formal-verification-skill/NOTICE.md +16 -0
- package/plugins/deepmodebot/skills/maintain-formal-verification-skill/SKILL.md +68 -0
- package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +1 -1
- package/plugins/deepmodebot/skills/office-documents/SKILL.md +24 -0
- package/plugins/deepmodebot/skills/office-documents/references/documents-docx-pdf.md +15 -0
- package/plugins/deepmodebot/skills/office-documents/references/presentations-pptx.md +15 -0
- package/plugins/deepmodebot/skills/office-documents/references/spreadsheets-xlsx.md +15 -0
- package/plugins/deepmodebot/skills/office-documents/scripts/doc_audit.py +230 -0
- package/plugins/deepmodebot/skills/project-brief/SKILL.md +2 -19
- package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +4 -0
- package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +4 -0
- package/plugins/deepmodebot/skills/project-brief/references/claim-contract.md +55 -0
- package/plugins/deepmodebot/skills/research/SKILL.md +18 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +1 -1
- package/plugins/deepmodebot/skills/seo-and-geo/SKILL.md +29 -0
- package/plugins/deepmodebot/skills/seo-and-geo/references/geo-and-agentic-web.md +30 -0
- package/plugins/deepmodebot/skills/seo-and-geo/references/technical-and-schema.md +25 -0
- package/plugins/deepmodebot/skills/seo-and-geo/scripts/seo_audit.py +282 -0
- package/plugins/deepmodebot/skills/software-architecture/SKILL.md +2 -2
- package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +5 -0
- package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +1 -0
- package/plugins/deepmodebot/skills/statechart/LICENSE +21 -0
- package/plugins/deepmodebot/skills/statechart/NOTICE.md +21 -0
- package/plugins/deepmodebot/skills/statechart/SKILL.md +106 -0
- package/plugins/deepmodebot/skills/statechart/references/render.md +93 -0
- package/plugins/deepmodebot/skills/statechart/references/tooling.md +78 -0
- package/plugins/deepmodebot/skills/statechart/scripts/backends/cfg.ts +33 -0
- package/plugins/deepmodebot/skills/statechart/scripts/backends/mermaid.ts +249 -0
- package/plugins/deepmodebot/skills/statechart/scripts/backends/plain-text.ts +72 -0
- package/plugins/deepmodebot/skills/statechart/scripts/backends/report.ts +177 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/config.ts +276 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/dot.ts +77 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/marks.ts +93 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/messages.ts +52 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/spec.ts +114 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/trace.ts +24 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/value.ts +166 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/verdict.ts +40 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/view.ts +119 -0
- package/plugins/deepmodebot/skills/statechart/scripts/ir.ts +547 -0
- package/plugins/deepmodebot/skills/statechart/scripts/janitor.ts +13 -0
- package/plugins/deepmodebot/skills/statechart/scripts/kill.ts +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/package.json +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/annotate.ts +128 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/label.ts +269 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/lift.ts +85 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/loop-check.ts +68 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/paths.ts +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/reach.ts +135 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/region-check.ts +97 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/regions.ts +295 -0
- package/plugins/deepmodebot/skills/statechart/scripts/pipeline.ts +76 -0
- package/plugins/deepmodebot/skills/statechart/scripts/run.ts +500 -0
- package/plugins/deepmodebot/skills/statechart/scripts/statechart +29 -0
- package/plugins/deepmodebot/skills/statechart/scripts/statechart.ts +165 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/ConfigOracle.java +63 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/chart.test.ts +1253 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/cli.test.ts +1344 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/chart.mmd +28 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus.test.ts +441 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/differential.test.ts +565 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/drawn.ts +20 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/grid/Grid.tla +9 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/grid/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/java.ts +63 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/labels.ts +648 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/messages.test.ts +226 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/pipeline.test.ts +270 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/render.test.ts +145 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/tlc.ts +158 -0
- package/plugins/deepmodebot/skills/statechart/scripts/tsconfig.json +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/worker.ts +35 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +0 -391
- package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +0 -146
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +0 -483
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +0 -139
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +0 -301
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +0 -602
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +0 -69
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +0 -160
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +0 -180
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +0 -265
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +0 -192
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +0 -2182
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +0 -19
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +0 -691
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +0 -127
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +0 -496
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +0 -1426
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +0 -320
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +0 -326
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +0 -55
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +0 -53
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +0 -94
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +0 -610
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +0 -250
- package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +0 -654
- 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
|
+
"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.
|
|
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
|
+
"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.
|
|
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
|
|
52
|
-
|
|
|
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`
|
|
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 &
|
|
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.
|
package/bin/deepmodebot.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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";
|
|
@@ -30,13 +31,26 @@ const HELP = `deepmodebot ${version}: install and auto-update the deepmodebot pl
|
|
|
30
31
|
|
|
31
32
|
Usage: deepmodebot <command>
|
|
32
33
|
|
|
33
|
-
setup Install the plugin into every detected tool
|
|
34
|
+
setup Install the plugin into every detected tool, turn on auto-update, and bootstrap current git repo
|
|
34
35
|
--clients claude,omp,codex,agy only these tools
|
|
35
36
|
--dry-run show the plan, change nothing
|
|
36
37
|
--no-auto-update skip the hourly task
|
|
38
|
+
--no-init skip bootstrapping current git repo (AGENTS.md/CLAUDE.md/CI/memory)
|
|
37
39
|
--yes do not ask before changing anything
|
|
38
|
-
|
|
39
|
-
|
|
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
|
|
40
54
|
uninstall Remove the plugin from the configured tools and stop auto-update
|
|
41
55
|
version Print the package version
|
|
42
56
|
|
|
@@ -116,11 +130,14 @@ async function setup() {
|
|
|
116
130
|
console.log("No supported tool found on PATH (claude, omp, codex, agy).");
|
|
117
131
|
return 1;
|
|
118
132
|
}
|
|
133
|
+
const gitRoot = findGitRoot(process.cwd());
|
|
134
|
+
const doInit = Boolean(gitRoot) && !flag("no-init");
|
|
119
135
|
say(`deepmodebot ${version} from ${pkgRoot}`);
|
|
120
136
|
say("Plan:");
|
|
121
137
|
for (const c of clients) say(` - ${c.label}: install or update the deepmodebot plugin from this package`);
|
|
122
138
|
const auto = !flag("no-auto-update");
|
|
123
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)`);
|
|
124
141
|
if (flag("dry-run")) return 0;
|
|
125
142
|
if (!(await confirm("Apply?"))) return 1;
|
|
126
143
|
|
|
@@ -133,10 +150,152 @@ async function setup() {
|
|
|
133
150
|
state.autoUpdate = r.ok;
|
|
134
151
|
}
|
|
135
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
|
+
}
|
|
136
157
|
say(ok ? "Done. Restart open tools to load the new version." : "Some tools failed; the hourly update retries them.");
|
|
137
158
|
return ok ? 0 : 1;
|
|
138
159
|
}
|
|
139
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
|
+
|
|
140
299
|
function update() {
|
|
141
300
|
const state = readState();
|
|
142
301
|
if (!state.clients?.length) {
|
|
@@ -231,7 +390,7 @@ function uninstall() {
|
|
|
231
390
|
return 0;
|
|
232
391
|
}
|
|
233
392
|
|
|
234
|
-
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) };
|
|
235
394
|
const handler = flag("version") ? commands.version : flag("help") || flag("h") ? commands.help : commands[cmd];
|
|
236
395
|
if (!handler) {
|
|
237
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
|
-
|
|
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) =>
|
|
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,
|
|
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
|
|
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 (
|
|
16
|
+
if (NEVER_PRUNE_DIRS.has(name)) continue;
|
|
17
|
+
if (!includeIgnored && isIgnoredFile(name)) continue;
|
|
11
18
|
const p = join(dir, name);
|
|
12
|
-
const st =
|
|
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
|
|
73
|
+
if (!pa || !pb) {
|
|
31
74
|
diffs.push(rel);
|
|
32
|
-
|
|
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) =>
|
|
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,13 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "dmb-gate"
|
|
3
|
+
version = "0.3.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
license = "MIT"
|
|
6
|
+
description = "Zero-dependency parallel multi-threaded Rust gate, local CI, perf, UI, cleanup & agents engine for deepmodebot."
|
|
7
|
+
|
|
8
|
+
[profile.release]
|
|
9
|
+
opt-level = "z"
|
|
10
|
+
lto = true
|
|
11
|
+
codegen-units = 1
|
|
12
|
+
panic = "abort"
|
|
13
|
+
strip = true
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
use crate::util::json_escape;
|
|
2
|
+
use std::fs;
|
|
3
|
+
use std::path::PathBuf;
|
|
4
|
+
use std::process::ExitCode;
|
|
5
|
+
|
|
6
|
+
pub fn run(args: &[String]) -> ExitCode {
|
|
7
|
+
let mut root = PathBuf::from(".");
|
|
8
|
+
let mut as_json = false;
|
|
9
|
+
let mut i = 0;
|
|
10
|
+
while i < args.len() {
|
|
11
|
+
match args[i].as_str() {
|
|
12
|
+
"check" => i += 1,
|
|
13
|
+
"--root" if i + 1 < args.len() => {
|
|
14
|
+
root = PathBuf::from(&args[i + 1]);
|
|
15
|
+
i += 2;
|
|
16
|
+
}
|
|
17
|
+
"--json" => {
|
|
18
|
+
as_json = true;
|
|
19
|
+
i += 1;
|
|
20
|
+
}
|
|
21
|
+
s if !s.starts_with("--") => {
|
|
22
|
+
root = PathBuf::from(s);
|
|
23
|
+
i += 1;
|
|
24
|
+
}
|
|
25
|
+
_ => i += 1,
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
let root = fs::canonicalize(&root).unwrap_or(root);
|
|
30
|
+
let agents_path = root.join("AGENTS.md");
|
|
31
|
+
let claude_path = root.join("CLAUDE.md");
|
|
32
|
+
let mut issues: Vec<String> = Vec::new();
|
|
33
|
+
|
|
34
|
+
match fs::read_to_string(&agents_path) {
|
|
35
|
+
Ok(txt) => {
|
|
36
|
+
let lines = txt.lines().count();
|
|
37
|
+
if lines > 200 {
|
|
38
|
+
issues.push(format!("AGENTS.md has {} lines (> 200 budget)", lines));
|
|
39
|
+
}
|
|
40
|
+
if !txt.contains("<!-- deepmodebot:begin") || !txt.contains("<!-- deepmodebot:end -->") {
|
|
41
|
+
issues.push("AGENTS.md missing managed deepmodebot block markers".to_string());
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
Err(_) => issues.push("AGENTS.md is missing".to_string()),
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
match fs::read_to_string(&claude_path) {
|
|
48
|
+
Ok(txt) => {
|
|
49
|
+
if !txt.lines().any(|l| l.trim() == "@AGENTS.md") {
|
|
50
|
+
issues.push("CLAUDE.md does not import @AGENTS.md".to_string());
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
Err(_) => issues.push("CLAUDE.md is missing".to_string()),
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
let ok = issues.is_empty();
|
|
57
|
+
if as_json {
|
|
58
|
+
let items: Vec<String> = issues.iter().map(|s| json_escape(s)).collect();
|
|
59
|
+
println!(
|
|
60
|
+
"{{\"engine\":\"rust\",\"ok\":{},\"issues\":[{}]}}",
|
|
61
|
+
ok,
|
|
62
|
+
items.join(",")
|
|
63
|
+
);
|
|
64
|
+
} else if ok {
|
|
65
|
+
println!("dmb-gate agents [OK]: AGENTS.md and CLAUDE.md in sync");
|
|
66
|
+
} else {
|
|
67
|
+
println!("dmb-gate agents [FAIL]:");
|
|
68
|
+
for iss in &issues {
|
|
69
|
+
println!(" - {}", iss);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if ok {
|
|
73
|
+
ExitCode::SUCCESS
|
|
74
|
+
} else {
|
|
75
|
+
ExitCode::from(1)
|
|
76
|
+
}
|
|
77
|
+
}
|