@trac3er/oh-my-god 2.0.2 → 2.0.4
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/skills/omg/AGENTS.fragment.md +5 -0
- package/.agents/skills/omg/codex-mcp.toml +4 -0
- package/.agents/skills/omg/control-plane/SKILL.md +11 -0
- package/.agents/skills/omg/control-plane/openai.yaml +14 -0
- package/.agents/skills/omg/hook-governor/SKILL.md +11 -0
- package/.agents/skills/omg/hook-governor/openai.yaml +11 -0
- package/.agents/skills/omg/lsp-pack/SKILL.md +11 -0
- package/.agents/skills/omg/lsp-pack/openai.yaml +11 -0
- package/.agents/skills/omg/mcp-fabric/SKILL.md +11 -0
- package/.agents/skills/omg/mcp-fabric/openai.yaml +13 -0
- package/.agents/skills/omg/secure-worktree-pipeline/SKILL.md +11 -0
- package/.agents/skills/omg/secure-worktree-pipeline/openai.yaml +12 -0
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +20 -4
- package/CHANGELOG.md +16 -0
- package/OMG-setup.sh +9 -3
- package/OMG_COMPAT_CONTRACT.md +92 -0
- package/README.md +26 -8
- package/SECURITY.md +6 -0
- package/commands/OMG:api-twin.md +22 -0
- package/commands/OMG:preflight.md +26 -0
- package/commands/OMG:security-check.md +28 -0
- package/commands/OMG:setup.md +1 -2
- package/dist/enterprise/bundle/.agents/skills/omg/AGENTS.fragment.md +5 -0
- package/dist/enterprise/bundle/.agents/skills/omg/codex-mcp.toml +4 -0
- package/dist/enterprise/bundle/.agents/skills/omg/control-plane/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/control-plane/openai.yaml +14 -0
- package/dist/enterprise/bundle/.agents/skills/omg/hook-governor/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/hook-governor/openai.yaml +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/lsp-pack/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/lsp-pack/openai.yaml +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/mcp-fabric/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/mcp-fabric/openai.yaml +13 -0
- package/dist/enterprise/bundle/.agents/skills/omg/secure-worktree-pipeline/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/secure-worktree-pipeline/openai.yaml +12 -0
- package/dist/enterprise/bundle/.claude-plugin/marketplace.json +36 -0
- package/dist/enterprise/bundle/.claude-plugin/plugin.json +23 -0
- package/dist/enterprise/bundle/.mcp.json +40 -0
- package/dist/enterprise/bundle/OMG_COMPAT_CONTRACT.md +92 -0
- package/dist/enterprise/bundle/settings.json +366 -0
- package/dist/enterprise/manifest.json +99 -0
- package/dist/public/bundle/.agents/skills/omg/AGENTS.fragment.md +5 -0
- package/dist/public/bundle/.agents/skills/omg/codex-mcp.toml +4 -0
- package/dist/public/bundle/.agents/skills/omg/control-plane/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/control-plane/openai.yaml +14 -0
- package/dist/public/bundle/.agents/skills/omg/hook-governor/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/hook-governor/openai.yaml +11 -0
- package/dist/public/bundle/.agents/skills/omg/lsp-pack/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/lsp-pack/openai.yaml +11 -0
- package/dist/public/bundle/.agents/skills/omg/mcp-fabric/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/mcp-fabric/openai.yaml +13 -0
- package/dist/public/bundle/.agents/skills/omg/secure-worktree-pipeline/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/secure-worktree-pipeline/openai.yaml +12 -0
- package/dist/public/bundle/.claude-plugin/marketplace.json +36 -0
- package/dist/public/bundle/.claude-plugin/plugin.json +23 -0
- package/dist/public/bundle/.mcp.json +40 -0
- package/dist/public/bundle/OMG_COMPAT_CONTRACT.md +92 -0
- package/dist/public/bundle/settings.json +366 -0
- package/dist/public/manifest.json +99 -0
- package/hooks/policy_engine.py +38 -7
- package/hooks/post-write.py +1 -1
- package/hooks/prompt-enhancer.py +2 -2
- package/hooks/security_validators.py +75 -0
- package/hooks/setup_wizard.py +44 -20
- package/hooks/shadow_manager.py +22 -2
- package/package.json +1 -1
- package/plugins/README.md +4 -2
- package/plugins/advanced/commands/OMG:deep-plan.md +1 -1
- package/plugins/advanced/commands/OMG:security-review.md +10 -113
- package/plugins/advanced/commands/OMG:ship.md +1 -1
- package/plugins/advanced/plugin.json +1 -10
- package/plugins/core/plugin.json +25 -2
- package/pyproject.toml +1 -1
- package/runtime/adoption.py +1 -1
- package/runtime/api_twin.py +130 -0
- package/runtime/compat.py +21 -1
- package/runtime/contract_compiler.py +698 -0
- package/runtime/domain_packs.py +34 -0
- package/runtime/guide_assert.py +45 -0
- package/runtime/mcp_config_writers.py +145 -39
- package/runtime/omg_compat_contract_snapshot.json +8 -7
- package/runtime/omg_contract_snapshot.json +8 -7
- package/runtime/omg_mcp_server.py +205 -0
- package/runtime/preflight.py +52 -0
- package/runtime/providers/codex_provider.py +2 -12
- package/runtime/providers/gemini_provider.py +2 -21
- package/runtime/providers/kimi_provider.py +2 -21
- package/runtime/runtime_profile.py +61 -0
- package/runtime/security_check.py +347 -0
- package/runtime/subagent_dispatcher.py +117 -10
- package/runtime/team_router.py +3 -3
- package/runtime/untrusted_content.py +102 -0
- package/scripts/omg.py +174 -1
- package/settings.json +66 -18
- package/tools/python_repl.py +33 -3
- package/runtime/providers/opencode_provider.py +0 -144
package/runtime/compat.py
CHANGED
|
@@ -16,6 +16,7 @@ from typing import Any
|
|
|
16
16
|
from hooks.policy_engine import evaluate_bash_command
|
|
17
17
|
from lab.pipeline import run_pipeline
|
|
18
18
|
from runtime.dispatcher import dispatch_runtime
|
|
19
|
+
from runtime.security_check import run_security_check
|
|
19
20
|
from runtime.team_router import TeamDispatchRequest, dispatch_team
|
|
20
21
|
|
|
21
22
|
CONTRACT_SNAPSHOT_SCHEMA = "OmgCompatContractSnapshot"
|
|
@@ -103,7 +104,7 @@ LEGACY_SKILL_ROUTES: dict[str, str] = {
|
|
|
103
104
|
"release": "runtime_ship",
|
|
104
105
|
"review": "review",
|
|
105
106
|
"sci-omg": "maintainer",
|
|
106
|
-
"security-review": "
|
|
107
|
+
"security-review": "security_check",
|
|
107
108
|
"skill": "learn",
|
|
108
109
|
"omg-superpowers": "plan",
|
|
109
110
|
"tdd": "plan",
|
|
@@ -129,6 +130,7 @@ ROUTE_MATURITY: dict[str, str] = {
|
|
|
129
130
|
"review": "native",
|
|
130
131
|
"plan": "native",
|
|
131
132
|
"secure": "native",
|
|
133
|
+
"security_check": "native",
|
|
132
134
|
"learn": "native",
|
|
133
135
|
"maintainer": "native",
|
|
134
136
|
"cancel": "native",
|
|
@@ -183,6 +185,7 @@ ROUTE_INPUTS: dict[str, dict[str, Any]] = {
|
|
|
183
185
|
"review": {"required": ["problem"], "optional": ["context", "files"]},
|
|
184
186
|
"plan": {"required": ["problem"], "optional": ["expected_outcome"]},
|
|
185
187
|
"secure": {"required": ["problem"], "optional": []},
|
|
188
|
+
"security_check": {"required": [], "optional": ["problem"]},
|
|
186
189
|
"learn": {"required": ["problem"], "optional": ["context"]},
|
|
187
190
|
"maintainer": {"required": ["problem"], "optional": ["context"]},
|
|
188
191
|
"cancel": {"required": [], "optional": []},
|
|
@@ -200,6 +203,7 @@ ROUTE_OUTPUTS: dict[str, dict[str, Any]] = {
|
|
|
200
203
|
"review": {"schema": "TeamDispatchResult"},
|
|
201
204
|
"plan": {"schema": "PlanningArtifacts"},
|
|
202
205
|
"secure": {"schema": "PolicyDecision"},
|
|
206
|
+
"security_check": {"schema": "SecurityCheckResult"},
|
|
203
207
|
"learn": {"schema": "LearningArtifact"},
|
|
204
208
|
"maintainer": {"schema": "MaintainerCompatArtifact"},
|
|
205
209
|
"cancel": {"schema": "CancelResult"},
|
|
@@ -217,6 +221,7 @@ ROUTE_SIDE_EFFECTS: dict[str, list[str]] = {
|
|
|
217
221
|
"review": [],
|
|
218
222
|
"plan": [".omg/state/_plan.md", ".omg/state/_checklist.md", ".omg/idea.yml"],
|
|
219
223
|
"secure": [],
|
|
224
|
+
"security_check": [],
|
|
220
225
|
"learn": [".omg/state/working-memory.md"],
|
|
221
226
|
"maintainer": [".omg/evidence/compat-*.json"],
|
|
222
227
|
"cancel": [".omg/shadow/active-run (removed when exists)"],
|
|
@@ -268,6 +273,7 @@ SKILL_ROUTE_NOTES: dict[str, str] = {
|
|
|
268
273
|
"pipeline": "Routes to OMG lab policy+pipeline executor.",
|
|
269
274
|
"release": "Routes to runtime ship and emits release draft artifact.",
|
|
270
275
|
"tdd": "Generates plan/checklist scaffolding for red-green-refactor workflow.",
|
|
276
|
+
"security-review": "Deprecated alias to the canonical OMG security-check engine.",
|
|
271
277
|
"build-fix": "Creates targeted fix checklist and routes execution to runtime.",
|
|
272
278
|
"analyze": "Writes structured analysis evidence artifact.",
|
|
273
279
|
"trace": "Writes trace evidence artifact for debugging chain.",
|
|
@@ -1177,6 +1183,20 @@ def dispatch_compat_skill(
|
|
|
1177
1183
|
result=decision.to_dict(),
|
|
1178
1184
|
)
|
|
1179
1185
|
|
|
1186
|
+
if route == "security_check":
|
|
1187
|
+
check = run_security_check(
|
|
1188
|
+
project_dir=root,
|
|
1189
|
+
scope=msg or ".",
|
|
1190
|
+
include_live_enrichment=False,
|
|
1191
|
+
)
|
|
1192
|
+
return _res(
|
|
1193
|
+
skill=normalized,
|
|
1194
|
+
route=route,
|
|
1195
|
+
findings=["Canonical OMG security check completed."],
|
|
1196
|
+
actions=["Review high-severity findings before ship/release."],
|
|
1197
|
+
result=check,
|
|
1198
|
+
)
|
|
1199
|
+
|
|
1180
1200
|
if route == "learn":
|
|
1181
1201
|
if normalized in {"learn-about-omg", "learner", "skill"}:
|
|
1182
1202
|
learn_path = _write_learning_artifact(root, normalized, msg, context)
|