@trac3er/oh-my-god 2.0.7 → 2.0.9
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/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +1 -1
- package/.claude-plugin/scripts/uninstall.sh +1 -1
- package/.gemini/settings.json +11 -0
- package/.kimi/mcp.json +11 -0
- package/CHANGELOG.md +17 -0
- package/OMG-setup.sh +1 -1
- package/OMG_COMPAT_CONTRACT.md +14 -1
- package/README.md +2 -1
- package/artifacts/release/.agents/skills/omg/AGENTS.fragment.md +7 -1
- package/artifacts/release/.agents/skills/omg/claim-judge/SKILL.md +11 -0
- package/artifacts/release/.agents/skills/omg/claim-judge/openai.yaml +13 -0
- package/artifacts/release/.agents/skills/omg/codex-rules.md +4 -0
- package/artifacts/release/.agents/skills/omg/plan-council/SKILL.md +11 -0
- package/artifacts/release/.agents/skills/omg/plan-council/openai.yaml +12 -0
- package/artifacts/release/.agents/skills/omg/proof-gate/SKILL.md +11 -0
- package/artifacts/release/.agents/skills/omg/proof-gate/openai.yaml +13 -0
- package/artifacts/release/.agents/skills/omg/test-intent-lock/SKILL.md +11 -0
- package/artifacts/release/.agents/skills/omg/test-intent-lock/openai.yaml +13 -0
- package/artifacts/release/.claude-plugin/marketplace.json +3 -3
- package/artifacts/release/.claude-plugin/plugin.json +1 -1
- package/artifacts/release/.mcp.json +0 -22
- package/artifacts/release/OMG_COMPAT_CONTRACT.md +8 -1
- package/artifacts/release/dist/enterprise/bundle/.agents/skills/omg/AGENTS.fragment.md +7 -1
- package/artifacts/release/dist/enterprise/bundle/.agents/skills/omg/claim-judge/SKILL.md +11 -0
- package/artifacts/release/dist/enterprise/bundle/.agents/skills/omg/claim-judge/openai.yaml +13 -0
- package/artifacts/release/dist/enterprise/bundle/.agents/skills/omg/codex-rules.md +4 -0
- package/artifacts/release/dist/enterprise/bundle/.agents/skills/omg/plan-council/SKILL.md +11 -0
- package/artifacts/release/dist/enterprise/bundle/.agents/skills/omg/plan-council/openai.yaml +12 -0
- package/artifacts/release/dist/enterprise/bundle/.agents/skills/omg/proof-gate/SKILL.md +11 -0
- package/artifacts/release/dist/enterprise/bundle/.agents/skills/omg/proof-gate/openai.yaml +13 -0
- package/artifacts/release/dist/enterprise/bundle/.agents/skills/omg/test-intent-lock/SKILL.md +11 -0
- package/artifacts/release/dist/enterprise/bundle/.agents/skills/omg/test-intent-lock/openai.yaml +13 -0
- package/artifacts/release/dist/enterprise/bundle/.claude-plugin/marketplace.json +36 -0
- package/artifacts/release/dist/enterprise/bundle/.claude-plugin/plugin.json +23 -0
- package/artifacts/release/dist/enterprise/bundle/.mcp.json +18 -0
- package/artifacts/release/dist/enterprise/bundle/OMG_COMPAT_CONTRACT.md +8 -1
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/commands/OMG:code-review.md +114 -0
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/commands/OMG:deep-plan.md +266 -0
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/commands/OMG:handoff.md +115 -0
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/commands/OMG:learn.md +110 -0
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/commands/OMG:maintainer.md +31 -0
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/commands/OMG:ralph-start.md +43 -0
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/commands/OMG:ralph-stop.md +23 -0
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/commands/OMG:security-review.md +16 -0
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/commands/OMG:sequential-thinking.md +20 -0
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/commands/OMG:ship.md +46 -0
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/plugin.json +87 -0
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/algorithms.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/api-twin.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/claim-judge.yaml +49 -0
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/control-plane.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/data-lineage.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/delta-classifier.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/eval-gate.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/health.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/hook-governor.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/incident-replay.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/lsp-pack.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/mcp-fabric.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/plan-council.yaml +51 -0
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/preflight.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/proof-gate.yaml +49 -0
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/remote-supervisor.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/robotics.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/security-check.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/test-intent-lock.yaml +49 -0
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/tracebank.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/vision.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/omg-capability.schema.json +1 -1
- package/artifacts/release/dist/enterprise/bundle/settings.json +598 -0
- package/artifacts/release/dist/enterprise/manifest.json +131 -23
- package/artifacts/release/dist/public/bundle/.agents/skills/omg/AGENTS.fragment.md +55 -4
- package/artifacts/release/dist/public/bundle/.agents/skills/omg/claim-judge/SKILL.md +11 -0
- package/artifacts/release/dist/public/bundle/.agents/skills/omg/claim-judge/openai.yaml +13 -0
- package/artifacts/release/dist/public/bundle/.agents/skills/omg/codex-rules.md +33 -0
- package/artifacts/release/dist/public/bundle/.agents/skills/omg/plan-council/SKILL.md +11 -0
- package/artifacts/release/dist/public/bundle/.agents/skills/omg/plan-council/openai.yaml +12 -0
- package/artifacts/release/dist/public/bundle/.agents/skills/omg/proof-gate/SKILL.md +11 -0
- package/artifacts/release/dist/public/bundle/.agents/skills/omg/proof-gate/openai.yaml +13 -0
- package/artifacts/release/dist/public/bundle/.agents/skills/omg/test-intent-lock/SKILL.md +11 -0
- package/artifacts/release/dist/public/bundle/.agents/skills/omg/test-intent-lock/openai.yaml +13 -0
- package/artifacts/release/dist/public/bundle/.claude-plugin/marketplace.json +3 -3
- package/artifacts/release/dist/public/bundle/.claude-plugin/plugin.json +1 -1
- package/artifacts/release/dist/public/bundle/.mcp.json +0 -22
- package/artifacts/release/dist/public/bundle/OMG_COMPAT_CONTRACT.md +8 -1
- package/artifacts/release/dist/public/bundle/plugins/advanced/commands/OMG:code-review.md +114 -0
- package/artifacts/release/dist/public/bundle/plugins/advanced/commands/OMG:deep-plan.md +266 -0
- package/artifacts/release/dist/public/bundle/plugins/advanced/commands/OMG:handoff.md +115 -0
- package/artifacts/release/dist/public/bundle/plugins/advanced/commands/OMG:learn.md +110 -0
- package/artifacts/release/dist/public/bundle/plugins/advanced/commands/OMG:maintainer.md +31 -0
- package/artifacts/release/dist/public/bundle/plugins/advanced/commands/OMG:ralph-start.md +43 -0
- package/artifacts/release/dist/public/bundle/plugins/advanced/commands/OMG:ralph-stop.md +23 -0
- package/artifacts/release/dist/public/bundle/plugins/advanced/commands/OMG:security-review.md +16 -0
- package/artifacts/release/dist/public/bundle/plugins/advanced/commands/OMG:sequential-thinking.md +20 -0
- package/artifacts/release/dist/public/bundle/plugins/advanced/commands/OMG:ship.md +46 -0
- package/artifacts/release/dist/public/bundle/plugins/advanced/plugin.json +87 -0
- package/artifacts/release/dist/public/bundle/registry/bundles/algorithms.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/api-twin.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/claim-judge.yaml +49 -0
- package/artifacts/release/dist/public/bundle/registry/bundles/control-plane.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/data-lineage.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/delta-classifier.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/eval-gate.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/health.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/hook-governor.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/incident-replay.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/lsp-pack.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/mcp-fabric.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/plan-council.yaml +51 -0
- package/artifacts/release/dist/public/bundle/registry/bundles/preflight.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/proof-gate.yaml +49 -0
- package/artifacts/release/dist/public/bundle/registry/bundles/remote-supervisor.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/robotics.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/security-check.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/test-intent-lock.yaml +49 -0
- package/artifacts/release/dist/public/bundle/registry/bundles/tracebank.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/vision.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/omg-capability.schema.json +1 -1
- package/artifacts/release/dist/public/bundle/settings.json +76 -4
- package/artifacts/release/dist/public/manifest.json +122 -26
- package/artifacts/release/plugins/advanced/commands/OMG:code-review.md +114 -0
- package/artifacts/release/plugins/advanced/commands/OMG:deep-plan.md +266 -0
- package/artifacts/release/plugins/advanced/commands/OMG:handoff.md +115 -0
- package/artifacts/release/plugins/advanced/commands/OMG:learn.md +110 -0
- package/artifacts/release/plugins/advanced/commands/OMG:maintainer.md +31 -0
- package/artifacts/release/plugins/advanced/commands/OMG:ralph-start.md +43 -0
- package/artifacts/release/plugins/advanced/commands/OMG:ralph-stop.md +23 -0
- package/artifacts/release/plugins/advanced/commands/OMG:security-review.md +16 -0
- package/artifacts/release/plugins/advanced/commands/OMG:sequential-thinking.md +20 -0
- package/artifacts/release/plugins/advanced/commands/OMG:ship.md +46 -0
- package/artifacts/release/plugins/advanced/plugin.json +87 -0
- package/artifacts/release/registry/bundles/algorithms.yaml +1 -1
- package/artifacts/release/registry/bundles/api-twin.yaml +1 -1
- package/artifacts/release/registry/bundles/claim-judge.yaml +49 -0
- package/artifacts/release/registry/bundles/control-plane.yaml +1 -1
- package/artifacts/release/registry/bundles/data-lineage.yaml +1 -1
- package/artifacts/release/registry/bundles/delta-classifier.yaml +1 -1
- package/artifacts/release/registry/bundles/eval-gate.yaml +1 -1
- package/artifacts/release/registry/bundles/health.yaml +1 -1
- package/artifacts/release/registry/bundles/hook-governor.yaml +1 -1
- package/artifacts/release/registry/bundles/incident-replay.yaml +1 -1
- package/artifacts/release/registry/bundles/lsp-pack.yaml +1 -1
- package/artifacts/release/registry/bundles/mcp-fabric.yaml +1 -1
- package/artifacts/release/registry/bundles/plan-council.yaml +51 -0
- package/artifacts/release/registry/bundles/preflight.yaml +1 -1
- package/artifacts/release/registry/bundles/proof-gate.yaml +49 -0
- package/artifacts/release/registry/bundles/remote-supervisor.yaml +1 -1
- package/artifacts/release/registry/bundles/robotics.yaml +1 -1
- package/artifacts/release/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/artifacts/release/registry/bundles/security-check.yaml +1 -1
- package/artifacts/release/registry/bundles/test-intent-lock.yaml +49 -0
- package/artifacts/release/registry/bundles/tracebank.yaml +1 -1
- package/artifacts/release/registry/bundles/vision.yaml +1 -1
- package/artifacts/release/registry/omg-capability.schema.json +1 -1
- package/artifacts/release/settings.json +7 -3
- package/build/lib/commands/OMG:forge.md +92 -0
- package/build/lib/commands/OMG:mode.md +13 -13
- package/build/lib/commands/OMG:session-branch.md +17 -1
- package/build/lib/commands/OMG:session-fork.md +5 -1
- package/build/lib/commands/OMG:session-merge.md +5 -1
- package/build/lib/control_plane/openapi.yaml +1 -1
- package/build/lib/control_plane/server.py +4 -0
- package/build/lib/control_plane/service.py +55 -0
- package/build/lib/hooks/setup_wizard.py +21 -1
- package/build/lib/hooks/shadow_manager.py +25 -2
- package/build/lib/hooks/state_migration.py +3 -0
- package/build/lib/plugins/README.md +1 -1
- package/build/lib/plugins/advanced/commands/OMG:deep-plan.md +2 -1
- package/build/lib/plugins/advanced/plugin.json +1 -1
- package/build/lib/plugins/core/plugin.json +1 -1
- package/build/lib/plugins/dephealth/cve_scanner.py +91 -0
- package/build/lib/plugins/dephealth/vuln_analyzer.py +7 -0
- package/build/lib/registry/bundles/algorithms.yaml +1 -1
- package/build/lib/registry/bundles/api-twin.yaml +1 -1
- package/build/lib/registry/bundles/claim-judge.yaml +1 -1
- package/build/lib/registry/bundles/control-plane.yaml +1 -1
- package/build/lib/registry/bundles/data-lineage.yaml +1 -1
- package/build/lib/registry/bundles/delta-classifier.yaml +1 -1
- package/build/lib/registry/bundles/eval-gate.yaml +1 -1
- package/build/lib/registry/bundles/health.yaml +1 -1
- package/build/lib/registry/bundles/hook-governor.yaml +1 -1
- package/build/lib/registry/bundles/incident-replay.yaml +1 -1
- package/build/lib/registry/bundles/lsp-pack.yaml +1 -1
- package/build/lib/registry/bundles/mcp-fabric.yaml +1 -1
- package/build/lib/registry/bundles/plan-council.yaml +2 -2
- package/build/lib/registry/bundles/preflight.yaml +1 -1
- package/build/lib/registry/bundles/proof-gate.yaml +1 -1
- package/build/lib/registry/bundles/remote-supervisor.yaml +1 -1
- package/build/lib/registry/bundles/robotics.yaml +1 -1
- package/build/lib/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/build/lib/registry/bundles/security-check.yaml +1 -1
- package/build/lib/registry/bundles/test-intent-lock.yaml +1 -1
- package/build/lib/registry/bundles/tracebank.yaml +1 -1
- package/build/lib/registry/bundles/vision.yaml +1 -1
- package/build/lib/registry/omg-capability.schema.json +84 -2
- package/build/lib/runtime/adoption.py +13 -5
- package/build/lib/runtime/api_twin.py +4 -4
- package/build/lib/runtime/artifact_parsers.py +161 -0
- package/build/lib/runtime/background_verification.py +48 -0
- package/build/lib/runtime/claim_judge.py +184 -7
- package/build/lib/runtime/contract_compiler.py +189 -9
- package/build/lib/runtime/ecosystem.py +1 -1
- package/build/lib/runtime/evidence_query.py +203 -0
- package/build/lib/runtime/mcp_memory_server.py +1 -1
- package/build/lib/runtime/omg_compat_contract_snapshot.json +2 -2
- package/build/lib/runtime/omg_contract_snapshot.json +2 -2
- package/build/lib/runtime/omg_mcp_server.py +19 -0
- package/build/lib/runtime/playwright_adapter.py +39 -0
- package/build/lib/runtime/proof_chain.py +136 -8
- package/build/lib/runtime/proof_gate.py +102 -0
- package/build/lib/runtime/providers/gemini_provider.py +7 -0
- package/build/lib/runtime/providers/kimi_provider.py +7 -0
- package/build/lib/runtime/repro_pack.py +292 -0
- package/build/lib/runtime/runtime_profile.py +87 -15
- package/build/lib/runtime/security_check.py +86 -3
- package/build/lib/runtime/test_intent_lock.py +47 -0
- package/build/lib/runtime/tracebank.py +33 -3
- package/build/lib/runtime/verification_loop.py +73 -0
- package/commands/OMG:forge.md +92 -0
- package/commands/OMG:mode.md +13 -13
- package/commands/OMG:session-branch.md +17 -1
- package/commands/OMG:session-fork.md +5 -1
- package/commands/OMG:session-merge.md +5 -1
- package/control_plane/openapi.yaml +1 -1
- package/control_plane/server.py +4 -0
- package/control_plane/service.py +55 -0
- package/dist/enterprise/bundle/.agents/skills/omg/AGENTS.fragment.md +7 -1
- package/dist/enterprise/bundle/.agents/skills/omg/claim-judge/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/claim-judge/openai.yaml +13 -0
- package/dist/enterprise/bundle/.agents/skills/omg/codex-rules.md +4 -0
- package/dist/enterprise/bundle/.agents/skills/omg/plan-council/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/plan-council/openai.yaml +12 -0
- package/dist/enterprise/bundle/.agents/skills/omg/proof-gate/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/proof-gate/openai.yaml +13 -0
- package/dist/enterprise/bundle/.agents/skills/omg/test-intent-lock/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/test-intent-lock/openai.yaml +13 -0
- package/dist/enterprise/bundle/.claude-plugin/marketplace.json +3 -3
- package/dist/enterprise/bundle/.claude-plugin/plugin.json +1 -1
- package/dist/enterprise/bundle/.gemini/settings.json +11 -0
- package/dist/enterprise/bundle/.kimi/mcp.json +11 -0
- package/dist/enterprise/bundle/.mcp.json +0 -22
- package/dist/enterprise/bundle/OMG_COMPAT_CONTRACT.md +14 -1
- package/dist/enterprise/bundle/plugins/advanced/commands/OMG:deep-plan.md +51 -6
- package/dist/enterprise/bundle/plugins/advanced/commands/OMG:ship.md +1 -1
- package/dist/enterprise/bundle/plugins/advanced/plugin.json +1 -1
- package/dist/enterprise/bundle/registry/bundles/algorithms.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/api-twin.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/claim-judge.yaml +49 -0
- package/dist/enterprise/bundle/registry/bundles/control-plane.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/data-lineage.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/delta-classifier.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/eval-gate.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/health.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/hook-governor.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/incident-replay.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/lsp-pack.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/mcp-fabric.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/plan-council.yaml +51 -0
- package/dist/enterprise/bundle/registry/bundles/preflight.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/proof-gate.yaml +49 -0
- package/dist/enterprise/bundle/registry/bundles/remote-supervisor.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/robotics.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/security-check.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/test-intent-lock.yaml +49 -0
- package/dist/enterprise/bundle/registry/bundles/tracebank.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/vision.yaml +1 -1
- package/dist/enterprise/bundle/registry/omg-capability.schema.json +84 -2
- package/dist/enterprise/bundle/settings.json +8 -3
- package/dist/enterprise/manifest.json +92 -30
- package/dist/public/bundle/.agents/skills/omg/AGENTS.fragment.md +7 -1
- package/dist/public/bundle/.agents/skills/omg/claim-judge/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/claim-judge/openai.yaml +13 -0
- package/dist/public/bundle/.agents/skills/omg/codex-rules.md +4 -0
- package/dist/public/bundle/.agents/skills/omg/incident-replay/SKILL.md +1 -1
- package/dist/public/bundle/.agents/skills/omg/incident-replay/openai.yaml +1 -1
- package/dist/public/bundle/.agents/skills/omg/lsp-pack/SKILL.md +1 -1
- package/dist/public/bundle/.agents/skills/omg/lsp-pack/openai.yaml +1 -1
- package/dist/public/bundle/.agents/skills/omg/mcp-fabric/SKILL.md +1 -1
- package/dist/public/bundle/.agents/skills/omg/mcp-fabric/openai.yaml +1 -1
- package/dist/public/bundle/.agents/skills/omg/plan-council/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/plan-council/openai.yaml +12 -0
- package/dist/public/bundle/.agents/skills/omg/preflight/SKILL.md +1 -1
- package/dist/public/bundle/.agents/skills/omg/preflight/openai.yaml +1 -1
- package/dist/public/bundle/.agents/skills/omg/proof-gate/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/proof-gate/openai.yaml +13 -0
- package/dist/public/bundle/.agents/skills/omg/remote-supervisor/SKILL.md +1 -1
- package/dist/public/bundle/.agents/skills/omg/remote-supervisor/openai.yaml +1 -1
- package/dist/public/bundle/.agents/skills/omg/robotics/SKILL.md +1 -1
- package/dist/public/bundle/.agents/skills/omg/robotics/openai.yaml +1 -1
- package/dist/public/bundle/.agents/skills/omg/secure-worktree-pipeline/SKILL.md +1 -1
- package/dist/public/bundle/.agents/skills/omg/secure-worktree-pipeline/openai.yaml +1 -1
- package/dist/public/bundle/.agents/skills/omg/security-check/SKILL.md +1 -1
- package/dist/public/bundle/.agents/skills/omg/security-check/openai.yaml +1 -1
- package/dist/public/bundle/.agents/skills/omg/test-intent-lock/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/test-intent-lock/openai.yaml +13 -0
- package/dist/public/bundle/.agents/skills/omg/tracebank/SKILL.md +1 -1
- package/dist/public/bundle/.agents/skills/omg/tracebank/openai.yaml +1 -1
- package/dist/public/bundle/.agents/skills/omg/vision/SKILL.md +1 -1
- package/dist/public/bundle/.agents/skills/omg/vision/openai.yaml +1 -1
- package/dist/public/bundle/.claude-plugin/marketplace.json +3 -3
- package/dist/public/bundle/.claude-plugin/plugin.json +1 -1
- package/dist/public/bundle/.gemini/settings.json +11 -0
- package/dist/public/bundle/.kimi/mcp.json +11 -0
- package/dist/public/bundle/.mcp.json +0 -22
- package/dist/public/bundle/OMG_COMPAT_CONTRACT.md +14 -1
- package/dist/public/bundle/plugins/advanced/commands/OMG:deep-plan.md +51 -6
- package/dist/public/bundle/plugins/advanced/commands/OMG:ship.md +1 -1
- package/dist/public/bundle/plugins/advanced/plugin.json +1 -1
- package/dist/public/bundle/registry/bundles/algorithms.yaml +1 -1
- package/dist/public/bundle/registry/bundles/api-twin.yaml +1 -1
- package/dist/public/bundle/registry/bundles/claim-judge.yaml +49 -0
- package/dist/public/bundle/registry/bundles/control-plane.yaml +1 -1
- package/dist/public/bundle/registry/bundles/data-lineage.yaml +1 -1
- package/dist/public/bundle/registry/bundles/delta-classifier.yaml +1 -1
- package/dist/public/bundle/registry/bundles/eval-gate.yaml +1 -1
- package/dist/public/bundle/registry/bundles/health.yaml +1 -1
- package/dist/public/bundle/registry/bundles/hook-governor.yaml +1 -1
- package/dist/public/bundle/registry/bundles/incident-replay.yaml +1 -1
- package/dist/public/bundle/registry/bundles/lsp-pack.yaml +1 -1
- package/dist/public/bundle/registry/bundles/mcp-fabric.yaml +1 -1
- package/dist/public/bundle/registry/bundles/plan-council.yaml +51 -0
- package/dist/public/bundle/registry/bundles/preflight.yaml +1 -1
- package/dist/public/bundle/registry/bundles/proof-gate.yaml +49 -0
- package/dist/public/bundle/registry/bundles/remote-supervisor.yaml +1 -1
- package/dist/public/bundle/registry/bundles/robotics.yaml +1 -1
- package/dist/public/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/dist/public/bundle/registry/bundles/security-check.yaml +1 -1
- package/dist/public/bundle/registry/bundles/test-intent-lock.yaml +49 -0
- package/dist/public/bundle/registry/bundles/tracebank.yaml +1 -1
- package/dist/public/bundle/registry/bundles/vision.yaml +1 -1
- package/dist/public/bundle/registry/omg-capability.schema.json +84 -2
- package/dist/public/bundle/settings.json +9 -4
- package/dist/public/manifest.json +112 -50
- package/docs/proof.md +7 -6
- package/hooks/setup_wizard.py +21 -1
- package/hooks/shadow_manager.py +25 -2
- package/hooks/state_migration.py +3 -0
- package/hud/omg-hud.mjs +66 -3
- package/package.json +1 -1
- package/plugins/README.md +1 -1
- package/plugins/advanced/commands/OMG:deep-plan.md +2 -1
- package/plugins/advanced/plugin.json +1 -1
- package/plugins/core/plugin.json +1 -1
- package/plugins/dephealth/cve_scanner.py +91 -0
- package/plugins/dephealth/vuln_analyzer.py +7 -0
- package/pyproject.toml +5 -1
- package/registry/bundles/algorithms.yaml +1 -1
- package/registry/bundles/api-twin.yaml +1 -1
- package/registry/bundles/claim-judge.yaml +1 -1
- package/registry/bundles/control-plane.yaml +1 -1
- package/registry/bundles/data-lineage.yaml +1 -1
- package/registry/bundles/delta-classifier.yaml +1 -1
- package/registry/bundles/eval-gate.yaml +1 -1
- package/registry/bundles/health.yaml +1 -1
- package/registry/bundles/hook-governor.yaml +1 -1
- package/registry/bundles/incident-replay.yaml +1 -1
- package/registry/bundles/lsp-pack.yaml +1 -1
- package/registry/bundles/mcp-fabric.yaml +1 -1
- package/registry/bundles/plan-council.yaml +2 -2
- package/registry/bundles/preflight.yaml +1 -1
- package/registry/bundles/proof-gate.yaml +1 -1
- package/registry/bundles/remote-supervisor.yaml +1 -1
- package/registry/bundles/robotics.yaml +1 -1
- package/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/registry/bundles/security-check.yaml +1 -1
- package/registry/bundles/test-intent-lock.yaml +1 -1
- package/registry/bundles/tracebank.yaml +1 -1
- package/registry/bundles/vision.yaml +1 -1
- package/registry/omg-capability.schema.json +84 -2
- package/runtime/adoption.py +13 -5
- package/runtime/api_twin.py +4 -4
- package/runtime/artifact_parsers.py +161 -0
- package/runtime/background_verification.py +48 -0
- package/runtime/claim_judge.py +184 -7
- package/runtime/contract_compiler.py +189 -9
- package/runtime/ecosystem.py +1 -1
- package/runtime/evidence_query.py +203 -0
- package/runtime/mcp_memory_server.py +1 -1
- package/runtime/omg_compat_contract_snapshot.json +2 -2
- package/runtime/omg_contract_snapshot.json +2 -2
- package/runtime/omg_mcp_server.py +19 -0
- package/runtime/playwright_adapter.py +39 -0
- package/runtime/proof_chain.py +136 -8
- package/runtime/proof_gate.py +102 -0
- package/runtime/providers/gemini_provider.py +7 -0
- package/runtime/providers/kimi_provider.py +7 -0
- package/runtime/repro_pack.py +292 -0
- package/runtime/runtime_profile.py +87 -15
- package/runtime/security_check.py +86 -3
- package/runtime/test_intent_lock.py +47 -0
- package/runtime/tracebank.py +33 -3
- package/runtime/verification_loop.py +73 -0
- package/scripts/omg.py +31 -4
- package/settings.json +8 -3
- package/tools/python_sandbox.py +9 -6
- package/tools/session_snapshot.py +146 -40
|
@@ -6,6 +6,7 @@ Maintains overlay-style shadow writes and evidence artifacts.
|
|
|
6
6
|
from __future__ import annotations
|
|
7
7
|
|
|
8
8
|
import hashlib
|
|
9
|
+
import importlib
|
|
9
10
|
import json
|
|
10
11
|
import os
|
|
11
12
|
import platform
|
|
@@ -18,8 +19,15 @@ from typing import Any
|
|
|
18
19
|
HOOKS_DIR = os.path.dirname(__file__)
|
|
19
20
|
if HOOKS_DIR not in sys.path:
|
|
20
21
|
sys.path.insert(0, HOOKS_DIR)
|
|
21
|
-
|
|
22
|
-
from
|
|
22
|
+
try:
|
|
23
|
+
from hooks._common import _resolve_project_dir
|
|
24
|
+
from hooks.security_validators import ensure_path_within_dir, validate_opaque_identifier
|
|
25
|
+
except ImportError:
|
|
26
|
+
_common = importlib.import_module("_common")
|
|
27
|
+
security_validators = importlib.import_module("security_validators")
|
|
28
|
+
_resolve_project_dir = _common._resolve_project_dir
|
|
29
|
+
ensure_path_within_dir = security_validators.ensure_path_within_dir
|
|
30
|
+
validate_opaque_identifier = security_validators.validate_opaque_identifier
|
|
23
31
|
|
|
24
32
|
|
|
25
33
|
def _project_dir() -> str:
|
|
@@ -189,6 +197,11 @@ def create_evidence_pack(
|
|
|
189
197
|
lineage: dict[str, Any] | None = None,
|
|
190
198
|
executor: dict[str, Any] | None = None,
|
|
191
199
|
environment: dict[str, Any] | None = None,
|
|
200
|
+
artifacts: list[dict[str, Any]] | None = None,
|
|
201
|
+
claims: list[dict[str, Any]] | None = None,
|
|
202
|
+
test_delta: dict[str, Any] | None = None,
|
|
203
|
+
browser_evidence_path: str | None = None,
|
|
204
|
+
repro_pack_path: str | None = None,
|
|
192
205
|
) -> str:
|
|
193
206
|
ensure_shadow_dirs(project_dir)
|
|
194
207
|
run_id = _validated_run_id(run_id)
|
|
@@ -209,6 +222,7 @@ def create_evidence_pack(
|
|
|
209
222
|
|
|
210
223
|
evidence = {
|
|
211
224
|
"schema": "EvidencePack",
|
|
225
|
+
"schema_version": 2,
|
|
212
226
|
"run_id": run_id,
|
|
213
227
|
"created_at": _utc_now(),
|
|
214
228
|
"tests": tests or [],
|
|
@@ -224,7 +238,16 @@ def create_evidence_pack(
|
|
|
224
238
|
"lineage": lineage or {},
|
|
225
239
|
"executor": executor,
|
|
226
240
|
"environment": environment,
|
|
241
|
+
"artifacts": artifacts or [],
|
|
227
242
|
}
|
|
243
|
+
if claims is not None:
|
|
244
|
+
evidence["claims"] = claims
|
|
245
|
+
if test_delta is not None:
|
|
246
|
+
evidence["test_delta"] = test_delta
|
|
247
|
+
if browser_evidence_path is not None:
|
|
248
|
+
evidence["browser_evidence_path"] = browser_evidence_path
|
|
249
|
+
if repro_pack_path is not None:
|
|
250
|
+
evidence["repro_pack_path"] = repro_pack_path
|
|
228
251
|
evidence_path = ensure_path_within_dir(
|
|
229
252
|
_evidence_root(project_dir),
|
|
230
253
|
os.path.join(_evidence_root(project_dir), f"{run_id}.json"),
|
|
@@ -115,6 +115,9 @@ MIGRATION_MAP: list[tuple[str, str, str]] = [
|
|
|
115
115
|
("dir", "repl_sessions", "state/repl_sessions"),
|
|
116
116
|
("dir", "sessions", "state/sessions"),
|
|
117
117
|
("dir", "snapshots", "state/snapshots"),
|
|
118
|
+
("file", "current_branch.json", "state/current_branch.json"),
|
|
119
|
+
("file", "background-verification.json", "state/background-verification.json"),
|
|
120
|
+
("dir", "branches", "state/branches"),
|
|
118
121
|
("dir", "knowledge", "knowledge"),
|
|
119
122
|
]
|
|
120
123
|
|
|
@@ -28,7 +28,7 @@ OMG exposes a small native front door and keeps the rest of the surface availabl
|
|
|
28
28
|
|
|
29
29
|
| Command | Category | Description |
|
|
30
30
|
|---------|----------|-------------|
|
|
31
|
-
| `/OMG:deep-plan` | Planning | Strategic planning with domain awareness (
|
|
31
|
+
| `/OMG:deep-plan` | Planning | Strategic planning with domain awareness (compatibility path to `plan-council`) |
|
|
32
32
|
| `/OMG:learn` | Knowledge | Convert patterns into OMG-native instincts and skills |
|
|
33
33
|
| `/OMG:code-review` | Quality | Deep review flow |
|
|
34
34
|
| `/OMG:ship` | Delivery | Idea to evidence to release |
|
|
@@ -10,7 +10,8 @@ argument-hint: "[feature or goal to plan]"
|
|
|
10
10
|
Regular planning = "what steps to take."
|
|
11
11
|
Deep planning = "understand WHY the user wants this, WHAT direction they're heading, and HOW it fits the bigger picture."
|
|
12
12
|
|
|
13
|
-
This command is the compatibility
|
|
13
|
+
This command is the public compatibility path to the canonical `plan-council` bundle.
|
|
14
|
+
Users invoke `/OMG:deep-plan`; the runtime routes to `plan-council` for execution.
|
|
14
15
|
|
|
15
16
|
## Step 1: Direction Discovery (MANDATORY)
|
|
16
17
|
|
|
@@ -10,7 +10,11 @@ import urllib.request
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
OSV_BATCH_URL = "https://api.osv.dev/v1/querybatch"
|
|
13
|
+
KEV_URL = "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json"
|
|
14
|
+
EPSS_URL_TEMPLATE = "https://api.first.org/data/v1/epss?cve={cve_id}"
|
|
13
15
|
CACHE_REL_PATH = Path(".omg") / "state" / "cve-cache.json"
|
|
16
|
+
KEV_CACHE_REL_PATH = Path(".omg") / "state" / "kev-cache.json"
|
|
17
|
+
EPSS_CACHE_REL_PATH = Path(".omg") / "state" / "epss-cache.json"
|
|
14
18
|
CACHE_TTL_HOURS = 24
|
|
15
19
|
|
|
16
20
|
|
|
@@ -72,6 +76,93 @@ def scan_for_cves(dependency_list: list[dict[str, str]], project_dir: str = ".")
|
|
|
72
76
|
return scan_result
|
|
73
77
|
|
|
74
78
|
|
|
79
|
+
def enrich_with_kev(finding: dict[str, Any], cache_dir: str) -> dict[str, Any]:
|
|
80
|
+
result = dict(finding)
|
|
81
|
+
if not _dep_health_enabled():
|
|
82
|
+
result["kev_listed"] = False
|
|
83
|
+
return result
|
|
84
|
+
|
|
85
|
+
cve_id = str(finding.get("id", "")).strip()
|
|
86
|
+
if not cve_id:
|
|
87
|
+
result["kev_listed"] = False
|
|
88
|
+
return result
|
|
89
|
+
|
|
90
|
+
cache_path = Path(cache_dir) / KEV_CACHE_REL_PATH
|
|
91
|
+
cached = _load_cache(cache_path)
|
|
92
|
+
|
|
93
|
+
if cached and _is_cache_fresh(cached.get("fetched_at")):
|
|
94
|
+
result["kev_listed"] = cve_id in cached.get("cve_ids", [])
|
|
95
|
+
return result
|
|
96
|
+
|
|
97
|
+
try:
|
|
98
|
+
kev_data = _fetch_kev_catalog()
|
|
99
|
+
kev_ids = [v.get("cveID", "") for v in kev_data.get("vulnerabilities", [])]
|
|
100
|
+
_save_cache(cache_path, {
|
|
101
|
+
"fetched_at": datetime.now(timezone.utc).isoformat(),
|
|
102
|
+
"cve_ids": kev_ids,
|
|
103
|
+
})
|
|
104
|
+
result["kev_listed"] = cve_id in kev_ids
|
|
105
|
+
except (urllib.error.URLError, OSError, json.JSONDecodeError):
|
|
106
|
+
if cached:
|
|
107
|
+
result["kev_listed"] = cve_id in cached.get("cve_ids", [])
|
|
108
|
+
else:
|
|
109
|
+
result["kev_listed"] = False
|
|
110
|
+
return result
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def enrich_with_epss(finding: dict[str, Any], cache_dir: str) -> dict[str, Any]:
|
|
114
|
+
result = dict(finding)
|
|
115
|
+
if not _dep_health_enabled():
|
|
116
|
+
result["epss_score"] = None
|
|
117
|
+
return result
|
|
118
|
+
|
|
119
|
+
cve_id = str(finding.get("id", "")).strip()
|
|
120
|
+
if not cve_id:
|
|
121
|
+
result["epss_score"] = None
|
|
122
|
+
return result
|
|
123
|
+
|
|
124
|
+
cache_path = Path(cache_dir) / EPSS_CACHE_REL_PATH
|
|
125
|
+
cached = _load_cache(cache_path) or {}
|
|
126
|
+
entries = cached.get("entries", {})
|
|
127
|
+
|
|
128
|
+
entry = entries.get(cve_id)
|
|
129
|
+
if entry and _is_cache_fresh(entry.get("fetched_at")):
|
|
130
|
+
result["epss_score"] = entry.get("epss")
|
|
131
|
+
return result
|
|
132
|
+
|
|
133
|
+
try:
|
|
134
|
+
epss_data = _fetch_epss_score(cve_id)
|
|
135
|
+
data_list = epss_data.get("data", [])
|
|
136
|
+
score = float(data_list[0].get("epss", 0)) if data_list else None
|
|
137
|
+
entries[cve_id] = {
|
|
138
|
+
"epss": score,
|
|
139
|
+
"fetched_at": datetime.now(timezone.utc).isoformat(),
|
|
140
|
+
}
|
|
141
|
+
_save_cache(cache_path, {"entries": entries})
|
|
142
|
+
result["epss_score"] = score
|
|
143
|
+
except (urllib.error.URLError, OSError, json.JSONDecodeError, ValueError, TypeError):
|
|
144
|
+
if entry:
|
|
145
|
+
result["epss_score"] = entry.get("epss")
|
|
146
|
+
else:
|
|
147
|
+
result["epss_score"] = None
|
|
148
|
+
return result
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
def _fetch_kev_catalog() -> dict[str, Any]:
|
|
152
|
+
request = urllib.request.Request(KEV_URL, headers={"Accept": "application/json"})
|
|
153
|
+
with urllib.request.urlopen(request, timeout=15) as response:
|
|
154
|
+
body = response.read().decode("utf-8")
|
|
155
|
+
return json.loads(body)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def _fetch_epss_score(cve_id: str) -> dict[str, Any]:
|
|
159
|
+
url = EPSS_URL_TEMPLATE.format(cve_id=cve_id)
|
|
160
|
+
request = urllib.request.Request(url, headers={"Accept": "application/json"})
|
|
161
|
+
with urllib.request.urlopen(request, timeout=15) as response:
|
|
162
|
+
body = response.read().decode("utf-8")
|
|
163
|
+
return json.loads(body)
|
|
164
|
+
|
|
165
|
+
|
|
75
166
|
def _query_osv_batch(dependency_list: list[dict[str, str]]) -> dict[str, Any]:
|
|
76
167
|
payload = {
|
|
77
168
|
"queries": [
|
|
@@ -3,6 +3,8 @@ import re
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
+
from plugins.dephealth.cve_scanner import enrich_with_kev, enrich_with_epss
|
|
7
|
+
|
|
6
8
|
|
|
7
9
|
_CRITICAL_PATTERN = re.compile(r"\bcritical\b", re.IGNORECASE)
|
|
8
10
|
_HIGH_PATTERN = re.compile(r"\bhigh\b", re.IGNORECASE)
|
|
@@ -33,6 +35,9 @@ def analyze_reachability(cve_result: dict[str, Any], project_dir: str) -> dict[s
|
|
|
33
35
|
risk_level = _classify_risk(reachability, summary)
|
|
34
36
|
recommendation = _build_recommendation(package, fixed_version, reachability)
|
|
35
37
|
|
|
38
|
+
kev_enriched = enrich_with_kev({"id": cve_id}, project_dir)
|
|
39
|
+
epss_enriched = enrich_with_epss({"id": cve_id}, project_dir)
|
|
40
|
+
|
|
36
41
|
return {
|
|
37
42
|
"package": package,
|
|
38
43
|
"cve_id": cve_id,
|
|
@@ -40,6 +45,8 @@ def analyze_reachability(cve_result: dict[str, Any], project_dir: str) -> dict[s
|
|
|
40
45
|
"import_locations": sorted(imported_files),
|
|
41
46
|
"risk_level": risk_level,
|
|
42
47
|
"recommendation": recommendation,
|
|
48
|
+
"kev_listed": kev_enriched.get("kev_listed", False),
|
|
49
|
+
"epss_score": epss_enriched.get("epss_score"),
|
|
43
50
|
}
|
|
44
51
|
|
|
45
52
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
id: plan-council
|
|
2
2
|
kind: planning
|
|
3
|
-
version: 2.0.
|
|
3
|
+
version: 2.0.8
|
|
4
4
|
title: OMG Plan Council
|
|
5
5
|
description: Canonical council-style planning bundle for explicit, evidence-backed deep plans.
|
|
6
6
|
hosts:
|
|
@@ -8,7 +8,7 @@ hosts:
|
|
|
8
8
|
- codex
|
|
9
9
|
assets:
|
|
10
10
|
references:
|
|
11
|
-
- commands/OMG:deep-plan.md
|
|
11
|
+
- plugins/advanced/commands/OMG:deep-plan.md
|
|
12
12
|
invocation_policy:
|
|
13
13
|
user_invocable: true
|
|
14
14
|
model_invocable: false
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://github.com/trac3er00/OMG/registry/omg-capability.schema.json",
|
|
4
4
|
"title": "OMG Capability Bundle",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.8",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": [
|
|
8
8
|
"id",
|
|
@@ -43,7 +43,9 @@
|
|
|
43
43
|
"type": "string",
|
|
44
44
|
"enum": [
|
|
45
45
|
"claude",
|
|
46
|
-
"codex"
|
|
46
|
+
"codex",
|
|
47
|
+
"gemini",
|
|
48
|
+
"kimi"
|
|
47
49
|
]
|
|
48
50
|
},
|
|
49
51
|
"minItems": 1
|
|
@@ -281,6 +283,86 @@
|
|
|
281
283
|
}
|
|
282
284
|
},
|
|
283
285
|
"additionalProperties": true
|
|
286
|
+
},
|
|
287
|
+
"gemini": {
|
|
288
|
+
"type": "object",
|
|
289
|
+
"required": [
|
|
290
|
+
"compilation_targets",
|
|
291
|
+
"mcp",
|
|
292
|
+
"skills",
|
|
293
|
+
"automations"
|
|
294
|
+
],
|
|
295
|
+
"properties": {
|
|
296
|
+
"compilation_targets": {
|
|
297
|
+
"type": "array",
|
|
298
|
+
"minItems": 1,
|
|
299
|
+
"items": {
|
|
300
|
+
"type": "string"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"mcp": {
|
|
304
|
+
"type": "array",
|
|
305
|
+
"minItems": 1,
|
|
306
|
+
"items": {
|
|
307
|
+
"type": "string"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"skills": {
|
|
311
|
+
"type": "array",
|
|
312
|
+
"minItems": 1,
|
|
313
|
+
"items": {
|
|
314
|
+
"type": "string"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"automations": {
|
|
318
|
+
"type": "array",
|
|
319
|
+
"minItems": 1,
|
|
320
|
+
"items": {
|
|
321
|
+
"type": "string"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"additionalProperties": true
|
|
326
|
+
},
|
|
327
|
+
"kimi": {
|
|
328
|
+
"type": "object",
|
|
329
|
+
"required": [
|
|
330
|
+
"compilation_targets",
|
|
331
|
+
"mcp",
|
|
332
|
+
"skills",
|
|
333
|
+
"automations"
|
|
334
|
+
],
|
|
335
|
+
"properties": {
|
|
336
|
+
"compilation_targets": {
|
|
337
|
+
"type": "array",
|
|
338
|
+
"minItems": 1,
|
|
339
|
+
"items": {
|
|
340
|
+
"type": "string"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"mcp": {
|
|
344
|
+
"type": "array",
|
|
345
|
+
"minItems": 1,
|
|
346
|
+
"items": {
|
|
347
|
+
"type": "string"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"skills": {
|
|
351
|
+
"type": "array",
|
|
352
|
+
"minItems": 1,
|
|
353
|
+
"items": {
|
|
354
|
+
"type": "string"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"automations": {
|
|
358
|
+
"type": "array",
|
|
359
|
+
"minItems": 1,
|
|
360
|
+
"items": {
|
|
361
|
+
"type": "string"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"additionalProperties": true
|
|
284
366
|
}
|
|
285
367
|
},
|
|
286
368
|
"additionalProperties": true
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
from __future__ import annotations
|
|
3
3
|
|
|
4
4
|
import json
|
|
5
|
+
import importlib
|
|
5
6
|
from pathlib import Path
|
|
6
|
-
from typing import Any
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
CANONICAL_BRAND = "OMG"
|
|
@@ -11,10 +11,12 @@ CANONICAL_REPO_URL = "https://github.com/trac3er00/OMG"
|
|
|
11
11
|
CANONICAL_PACKAGE_NAME = "@trac3er/oh-my-god"
|
|
12
12
|
CANONICAL_PLUGIN_ID = "omg"
|
|
13
13
|
CANONICAL_MARKETPLACE_ID = "omg"
|
|
14
|
-
CANONICAL_VERSION = "2.0.
|
|
14
|
+
CANONICAL_VERSION = "2.0.8"
|
|
15
15
|
|
|
16
16
|
VALID_ADOPTION_MODES = ("omg-only", "coexist")
|
|
17
17
|
VALID_PRESETS = ("safe", "balanced", "interop", "labs")
|
|
18
|
+
CANONICAL_MODE_NAMES = ("chill", "focused", "exploratory")
|
|
19
|
+
"""Cross-surface user-facing mode names reserved for the shared mode system."""
|
|
18
20
|
|
|
19
21
|
MANAGED_PRESET_FLAGS = (
|
|
20
22
|
"SETUP",
|
|
@@ -91,6 +93,12 @@ def get_preset_features(preset: str | None) -> dict[str, bool]:
|
|
|
91
93
|
return dict(PRESET_FEATURES[resolved])
|
|
92
94
|
|
|
93
95
|
|
|
96
|
+
def get_mode_profile(mode: str) -> dict[str, object]:
|
|
97
|
+
runtime_profile = importlib.import_module("runtime.runtime_profile")
|
|
98
|
+
loader = getattr(runtime_profile, "load_canonical_mode_profile")
|
|
99
|
+
return loader(mode)
|
|
100
|
+
|
|
101
|
+
|
|
94
102
|
def _resolve_claude_dir(base_dir: Path) -> Path:
|
|
95
103
|
nested = base_dir / ".claude"
|
|
96
104
|
if nested.exists():
|
|
@@ -180,7 +188,7 @@ def build_adoption_report(
|
|
|
180
188
|
requested_mode: str | None = None,
|
|
181
189
|
preset: str | None = None,
|
|
182
190
|
adopt: str = "auto",
|
|
183
|
-
) -> dict[str,
|
|
191
|
+
) -> dict[str, object]:
|
|
184
192
|
detected_ecosystems = detect_ecosystems(project_dir) if adopt == "auto" else []
|
|
185
193
|
recommended_mode = recommend_mode(detected_ecosystems)
|
|
186
194
|
selected_mode = requested_mode if requested_mode in VALID_ADOPTION_MODES else recommended_mode
|
|
@@ -204,9 +212,9 @@ def build_adoption_report(
|
|
|
204
212
|
}
|
|
205
213
|
|
|
206
214
|
|
|
207
|
-
def write_adoption_report(project_dir: str | Path, report: dict[str,
|
|
215
|
+
def write_adoption_report(project_dir: str | Path, report: dict[str, object]) -> str:
|
|
208
216
|
state_dir = Path(project_dir) / ".omg" / "state"
|
|
209
217
|
state_dir.mkdir(parents=True, exist_ok=True)
|
|
210
218
|
report_path = state_dir / "adoption-report.json"
|
|
211
|
-
report_path.write_text(json.dumps(report, indent=2, ensure_ascii=True) + "\n", encoding="utf-8")
|
|
219
|
+
_ = report_path.write_text(json.dumps(report, indent=2, ensure_ascii=True) + "\n", encoding="utf-8")
|
|
212
220
|
return str(report_path)
|
|
@@ -353,15 +353,15 @@ def _state_path(project_dir: str) -> Path:
|
|
|
353
353
|
def _load_state(project_dir: str) -> dict[str, Any]:
|
|
354
354
|
path = _state_path(project_dir)
|
|
355
355
|
if not path.exists():
|
|
356
|
-
return {"schema": "ApiTwinState", "version": "2.0.
|
|
356
|
+
return {"schema": "ApiTwinState", "version": "2.0.8", "contracts": {}, "fixtures": {}}
|
|
357
357
|
try:
|
|
358
358
|
payload = json.loads(path.read_text(encoding="utf-8"))
|
|
359
359
|
except (OSError, json.JSONDecodeError):
|
|
360
|
-
return {"schema": "ApiTwinState", "version": "2.0.
|
|
360
|
+
return {"schema": "ApiTwinState", "version": "2.0.8", "contracts": {}, "fixtures": {}}
|
|
361
361
|
if not isinstance(payload, dict):
|
|
362
|
-
return {"schema": "ApiTwinState", "version": "2.0.
|
|
362
|
+
return {"schema": "ApiTwinState", "version": "2.0.8", "contracts": {}, "fixtures": {}}
|
|
363
363
|
payload.setdefault("schema", "ApiTwinState")
|
|
364
|
-
payload.setdefault("version", "2.0.
|
|
364
|
+
payload.setdefault("version", "2.0.8")
|
|
365
365
|
payload.setdefault("contracts", {})
|
|
366
366
|
payload.setdefault("fixtures", {})
|
|
367
367
|
return payload
|