@trac3er/oh-my-god 2.0.3 → 2.0.5
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/algorithms/SKILL.md +11 -0
- package/.agents/skills/omg/algorithms/openai.yaml +11 -0
- package/.agents/skills/omg/api-twin/SKILL.md +11 -0
- package/.agents/skills/omg/api-twin/openai.yaml +12 -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/data-lineage/SKILL.md +11 -0
- package/.agents/skills/omg/data-lineage/openai.yaml +12 -0
- package/.agents/skills/omg/delta-classifier/SKILL.md +11 -0
- package/.agents/skills/omg/delta-classifier/openai.yaml +12 -0
- package/.agents/skills/omg/eval-gate/SKILL.md +11 -0
- package/.agents/skills/omg/eval-gate/openai.yaml +12 -0
- package/.agents/skills/omg/health/SKILL.md +11 -0
- package/.agents/skills/omg/health/openai.yaml +11 -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/incident-replay/SKILL.md +11 -0
- package/.agents/skills/omg/incident-replay/openai.yaml +12 -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/preflight/SKILL.md +11 -0
- package/.agents/skills/omg/preflight/openai.yaml +12 -0
- package/.agents/skills/omg/remote-supervisor/SKILL.md +11 -0
- package/.agents/skills/omg/remote-supervisor/openai.yaml +12 -0
- package/.agents/skills/omg/robotics/SKILL.md +11 -0
- package/.agents/skills/omg/robotics/openai.yaml +11 -0
- package/.agents/skills/omg/secure-worktree-pipeline/SKILL.md +11 -0
- package/.agents/skills/omg/secure-worktree-pipeline/openai.yaml +12 -0
- package/.agents/skills/omg/security-check/SKILL.md +11 -0
- package/.agents/skills/omg/security-check/openai.yaml +13 -0
- package/.agents/skills/omg/tracebank/SKILL.md +11 -0
- package/.agents/skills/omg/tracebank/openai.yaml +12 -0
- package/.agents/skills/omg/vision/SKILL.md +11 -0
- package/.agents/skills/omg/vision/openai.yaml +11 -0
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +1 -1
- package/.claude-plugin/scripts/uninstall.sh +2 -2
- package/.mcp.json +20 -4
- package/CHANGELOG.md +10 -0
- package/OMG-setup.sh +9 -3
- package/OMG_COMPAT_CONTRACT.md +92 -0
- package/README.md +24 -4
- 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/__init__.py +1 -0
- package/control_plane/__init__.py +2 -0
- package/control_plane/openapi.yaml +228 -0
- package/control_plane/server.py +123 -0
- package/control_plane/service.py +185 -0
- package/dist/enterprise/bundle/.agents/skills/omg/AGENTS.fragment.md +5 -0
- package/dist/enterprise/bundle/.agents/skills/omg/algorithms/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/algorithms/openai.yaml +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/api-twin/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/api-twin/openai.yaml +12 -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/data-lineage/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/data-lineage/openai.yaml +12 -0
- package/dist/enterprise/bundle/.agents/skills/omg/delta-classifier/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/delta-classifier/openai.yaml +12 -0
- package/dist/enterprise/bundle/.agents/skills/omg/eval-gate/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/eval-gate/openai.yaml +12 -0
- package/dist/enterprise/bundle/.agents/skills/omg/health/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/health/openai.yaml +11 -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/incident-replay/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/incident-replay/openai.yaml +12 -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/preflight/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/preflight/openai.yaml +12 -0
- package/dist/enterprise/bundle/.agents/skills/omg/remote-supervisor/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/remote-supervisor/openai.yaml +12 -0
- package/dist/enterprise/bundle/.agents/skills/omg/robotics/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/robotics/openai.yaml +11 -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/.agents/skills/omg/security-check/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/security-check/openai.yaml +13 -0
- package/dist/enterprise/bundle/.agents/skills/omg/tracebank/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/tracebank/openai.yaml +12 -0
- package/dist/enterprise/bundle/.agents/skills/omg/vision/SKILL.md +11 -0
- package/dist/enterprise/bundle/.agents/skills/omg/vision/openai.yaml +11 -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/registry/bundles/algorithms.yaml +45 -0
- package/dist/enterprise/bundle/registry/bundles/api-twin.yaml +48 -0
- package/dist/enterprise/bundle/registry/bundles/control-plane.yaml +61 -0
- package/dist/enterprise/bundle/registry/bundles/data-lineage.yaml +47 -0
- package/dist/enterprise/bundle/registry/bundles/delta-classifier.yaml +47 -0
- package/dist/enterprise/bundle/registry/bundles/eval-gate.yaml +47 -0
- package/dist/enterprise/bundle/registry/bundles/health.yaml +45 -0
- package/dist/enterprise/bundle/registry/bundles/hook-governor.yaml +97 -0
- package/dist/enterprise/bundle/registry/bundles/incident-replay.yaml +47 -0
- package/dist/enterprise/bundle/registry/bundles/lsp-pack.yaml +48 -0
- package/dist/enterprise/bundle/registry/bundles/mcp-fabric.yaml +53 -0
- package/dist/enterprise/bundle/registry/bundles/preflight.yaml +48 -0
- package/dist/enterprise/bundle/registry/bundles/remote-supervisor.yaml +49 -0
- package/dist/enterprise/bundle/registry/bundles/robotics.yaml +45 -0
- package/dist/enterprise/bundle/registry/bundles/secure-worktree-pipeline.yaml +54 -0
- package/dist/enterprise/bundle/registry/bundles/security-check.yaml +50 -0
- package/dist/enterprise/bundle/registry/bundles/tracebank.yaml +47 -0
- package/dist/enterprise/bundle/registry/bundles/vision.yaml +45 -0
- package/dist/enterprise/bundle/registry/omg-capability.schema.json +80 -0
- package/dist/enterprise/bundle/settings.json +381 -0
- package/dist/enterprise/manifest.json +255 -0
- package/dist/public/bundle/.agents/skills/omg/AGENTS.fragment.md +5 -0
- package/dist/public/bundle/.agents/skills/omg/algorithms/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/algorithms/openai.yaml +11 -0
- package/dist/public/bundle/.agents/skills/omg/api-twin/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/api-twin/openai.yaml +12 -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/data-lineage/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/data-lineage/openai.yaml +12 -0
- package/dist/public/bundle/.agents/skills/omg/delta-classifier/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/delta-classifier/openai.yaml +12 -0
- package/dist/public/bundle/.agents/skills/omg/eval-gate/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/eval-gate/openai.yaml +12 -0
- package/dist/public/bundle/.agents/skills/omg/health/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/health/openai.yaml +11 -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/incident-replay/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/incident-replay/openai.yaml +12 -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/preflight/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/preflight/openai.yaml +12 -0
- package/dist/public/bundle/.agents/skills/omg/remote-supervisor/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/remote-supervisor/openai.yaml +12 -0
- package/dist/public/bundle/.agents/skills/omg/robotics/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/robotics/openai.yaml +11 -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/.agents/skills/omg/security-check/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/security-check/openai.yaml +13 -0
- package/dist/public/bundle/.agents/skills/omg/tracebank/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/tracebank/openai.yaml +12 -0
- package/dist/public/bundle/.agents/skills/omg/vision/SKILL.md +11 -0
- package/dist/public/bundle/.agents/skills/omg/vision/openai.yaml +11 -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/registry/bundles/algorithms.yaml +45 -0
- package/dist/public/bundle/registry/bundles/api-twin.yaml +48 -0
- package/dist/public/bundle/registry/bundles/control-plane.yaml +61 -0
- package/dist/public/bundle/registry/bundles/data-lineage.yaml +47 -0
- package/dist/public/bundle/registry/bundles/delta-classifier.yaml +47 -0
- package/dist/public/bundle/registry/bundles/eval-gate.yaml +47 -0
- package/dist/public/bundle/registry/bundles/health.yaml +45 -0
- package/dist/public/bundle/registry/bundles/hook-governor.yaml +97 -0
- package/dist/public/bundle/registry/bundles/incident-replay.yaml +47 -0
- package/dist/public/bundle/registry/bundles/lsp-pack.yaml +48 -0
- package/dist/public/bundle/registry/bundles/mcp-fabric.yaml +53 -0
- package/dist/public/bundle/registry/bundles/preflight.yaml +48 -0
- package/dist/public/bundle/registry/bundles/remote-supervisor.yaml +49 -0
- package/dist/public/bundle/registry/bundles/robotics.yaml +45 -0
- package/dist/public/bundle/registry/bundles/secure-worktree-pipeline.yaml +54 -0
- package/dist/public/bundle/registry/bundles/security-check.yaml +50 -0
- package/dist/public/bundle/registry/bundles/tracebank.yaml +47 -0
- package/dist/public/bundle/registry/bundles/vision.yaml +45 -0
- package/dist/public/bundle/registry/omg-capability.schema.json +80 -0
- package/dist/public/bundle/settings.json +379 -0
- package/dist/public/manifest.json +255 -0
- package/docs/assets/omg-hud.svg +32 -0
- package/docs/install/claude-code.md +31 -0
- package/docs/install/codex.md +29 -0
- package/docs/migration/native-adoption.md +57 -0
- package/docs/proof.md +55 -0
- package/docs/release-checklist.md +38 -0
- package/docs/transcripts/crazy.md +17 -0
- package/docs/transcripts/setup.md +25 -0
- package/hooks/policy_engine.py +38 -7
- package/hooks/post-write.py +1 -1
- package/hooks/prompt-enhancer.py +1 -1
- package/hooks/security_validators.py +75 -0
- package/hooks/setup_wizard.py +43 -8
- package/hooks/shadow_manager.py +28 -2
- package/package.json +1 -1
- package/plugins/README.md +3 -1
- package/plugins/__init__.py +1 -0
- 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 +38 -2
- package/registry/__init__.py +1 -0
- package/registry/bundles/algorithms.yaml +45 -0
- package/registry/bundles/api-twin.yaml +48 -0
- package/registry/bundles/control-plane.yaml +61 -0
- package/registry/bundles/data-lineage.yaml +47 -0
- package/registry/bundles/delta-classifier.yaml +47 -0
- package/registry/bundles/eval-gate.yaml +47 -0
- package/registry/bundles/health.yaml +45 -0
- package/registry/bundles/hook-governor.yaml +97 -0
- package/registry/bundles/incident-replay.yaml +47 -0
- package/registry/bundles/lsp-pack.yaml +48 -0
- package/registry/bundles/mcp-fabric.yaml +53 -0
- package/registry/bundles/preflight.yaml +48 -0
- package/registry/bundles/remote-supervisor.yaml +49 -0
- package/registry/bundles/robotics.yaml +45 -0
- package/registry/bundles/secure-worktree-pipeline.yaml +54 -0
- package/registry/bundles/security-check.yaml +50 -0
- package/registry/bundles/tracebank.yaml +47 -0
- package/registry/bundles/vision.yaml +45 -0
- package/registry/omg-capability.schema.json +80 -0
- package/registry/verify_artifact.py +90 -0
- package/runtime/adapters/claude.py +3 -0
- package/runtime/adapters/gpt.py +3 -0
- package/runtime/adapters/local.py +3 -0
- package/runtime/adoption.py +1 -1
- package/runtime/api_twin.py +179 -0
- package/runtime/asset_loader.py +62 -0
- package/runtime/compat.py +24 -3
- package/runtime/contract_compiler.py +847 -0
- package/runtime/data_lineage.py +73 -0
- package/runtime/delta_classifier.py +81 -0
- package/runtime/domain_packs.py +46 -0
- package/runtime/ecosystem.py +1 -1
- package/runtime/eval_gate.py +50 -0
- package/runtime/guide_assert.py +45 -0
- package/runtime/incident_replay.py +47 -0
- package/runtime/mcp_config_writers.py +147 -30
- package/runtime/mcp_memory_server.py +1 -1
- package/runtime/omg_compat_contract_snapshot.json +9 -8
- package/runtime/omg_contract_snapshot.json +9 -8
- package/runtime/omg_mcp_server.py +207 -0
- package/runtime/preflight.py +73 -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/remote_supervisor.py +64 -0
- package/runtime/runtime_profile.py +61 -0
- package/runtime/security_check.py +464 -0
- package/runtime/subagent_dispatcher.py +117 -10
- package/runtime/team_router.py +3 -1
- package/runtime/tracebank.py +53 -0
- package/runtime/untrusted_content.py +102 -0
- package/scripts/omg.py +360 -2
- package/settings.json +81 -18
- package/tools/python_repl.py +33 -3
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"""Shared validation helpers for security-sensitive filesystem and config writes."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import re
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
from urllib.parse import urlparse
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
_OPAQUE_IDENTIFIER_RE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._-]*$")
|
|
10
|
+
_SERVER_NAME_RE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9_-]*$")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def validate_opaque_identifier(value: str, field_name: str, max_length: int = 64) -> str:
|
|
14
|
+
"""Validate an opaque identifier used in filenames or paths."""
|
|
15
|
+
if not isinstance(value, str):
|
|
16
|
+
raise ValueError(f"Invalid {field_name}: must be a string")
|
|
17
|
+
|
|
18
|
+
normalized = value.strip()
|
|
19
|
+
if not normalized:
|
|
20
|
+
raise ValueError(f"Invalid {field_name}: value is required")
|
|
21
|
+
if len(normalized) > max_length:
|
|
22
|
+
raise ValueError(f"Invalid {field_name}: exceeds {max_length} characters")
|
|
23
|
+
if ".." in normalized or not _OPAQUE_IDENTIFIER_RE.fullmatch(normalized):
|
|
24
|
+
raise ValueError(
|
|
25
|
+
f"Invalid {field_name}: use only ASCII letters, numbers, dot, underscore, and dash"
|
|
26
|
+
)
|
|
27
|
+
return normalized
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def ensure_path_within_dir(base_dir: str | Path, candidate_path: str | Path) -> str:
|
|
31
|
+
"""Return a resolved path and reject traversal outside the intended base directory."""
|
|
32
|
+
base = Path(base_dir).resolve(strict=False)
|
|
33
|
+
candidate = Path(candidate_path).resolve(strict=False)
|
|
34
|
+
try:
|
|
35
|
+
candidate.relative_to(base)
|
|
36
|
+
except ValueError as exc:
|
|
37
|
+
raise ValueError(f"Resolved path escapes base directory: {candidate}") from exc
|
|
38
|
+
return str(candidate)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def validate_server_name(server_name: str, max_length: int = 64) -> str:
|
|
42
|
+
"""Validate an MCP server identifier suitable for JSON keys and TOML table names."""
|
|
43
|
+
if not isinstance(server_name, str):
|
|
44
|
+
raise ValueError("Invalid server_name: must be a string")
|
|
45
|
+
|
|
46
|
+
normalized = server_name.strip()
|
|
47
|
+
if not normalized:
|
|
48
|
+
raise ValueError("Invalid server_name: value is required")
|
|
49
|
+
if len(normalized) > max_length:
|
|
50
|
+
raise ValueError(f"Invalid server_name: exceeds {max_length} characters")
|
|
51
|
+
if not _SERVER_NAME_RE.fullmatch(normalized):
|
|
52
|
+
raise ValueError("Invalid server_name: use only ASCII letters, numbers, underscore, and dash")
|
|
53
|
+
return normalized
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def validate_server_url(server_url: str) -> str:
|
|
57
|
+
"""Validate an MCP server URL and reject newline/control injection."""
|
|
58
|
+
if not isinstance(server_url, str):
|
|
59
|
+
raise ValueError("Invalid server_url: must be a string")
|
|
60
|
+
|
|
61
|
+
normalized = server_url.strip()
|
|
62
|
+
if not normalized:
|
|
63
|
+
raise ValueError("Invalid server_url: value is required")
|
|
64
|
+
if "\n" in normalized or "\r" in normalized:
|
|
65
|
+
raise ValueError("Invalid server_url: newline characters are not allowed")
|
|
66
|
+
|
|
67
|
+
parsed = urlparse(normalized)
|
|
68
|
+
if parsed.scheme not in {"http", "https"} or not parsed.netloc:
|
|
69
|
+
raise ValueError("Invalid server_url: must be an http or https URL")
|
|
70
|
+
return normalized
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def toml_quote_string(value: str) -> str:
|
|
74
|
+
"""Escape TOML basic string content."""
|
|
75
|
+
return value.replace("\\", "\\\\").replace('"', '\\"')
|
package/hooks/setup_wizard.py
CHANGED
|
@@ -22,9 +22,13 @@ if _PROJECT_ROOT not in sys.path:
|
|
|
22
22
|
from runtime.cli_provider import get_provider, list_available_providers # noqa: E402
|
|
23
23
|
from runtime.mcp_config_writers import ( # noqa: E402
|
|
24
24
|
write_claude_mcp_config,
|
|
25
|
+
write_claude_mcp_stdio_config,
|
|
25
26
|
write_codex_mcp_config,
|
|
27
|
+
write_codex_mcp_stdio_config,
|
|
26
28
|
write_gemini_mcp_config,
|
|
29
|
+
write_gemini_mcp_stdio_config,
|
|
27
30
|
write_kimi_mcp_config,
|
|
31
|
+
write_kimi_mcp_stdio_config,
|
|
28
32
|
)
|
|
29
33
|
|
|
30
34
|
# Trigger provider auto-registration on import
|
|
@@ -41,6 +45,10 @@ from runtime.adoption import ( # noqa: E402
|
|
|
41
45
|
|
|
42
46
|
_logger = logging.getLogger(__name__)
|
|
43
47
|
|
|
48
|
+
OMG_CONTROL_COMMAND = "python3"
|
|
49
|
+
OMG_CONTROL_ARGS = ["-m", "runtime.omg_mcp_server"]
|
|
50
|
+
OMG_CONTROL_SERVER_NAME = "omg-control"
|
|
51
|
+
|
|
44
52
|
_INSTALL_HINTS: dict[str, str] = {
|
|
45
53
|
"codex": "npm install -g @openai/codex",
|
|
46
54
|
"gemini": "npm install -g @google/gemini-cli",
|
|
@@ -109,6 +117,15 @@ MCP_CATALOG: list[dict[str, Any]] = [
|
|
|
109
117
|
"default": True,
|
|
110
118
|
"category": "memory",
|
|
111
119
|
},
|
|
120
|
+
{
|
|
121
|
+
"id": OMG_CONTROL_SERVER_NAME,
|
|
122
|
+
"name": "OMG Control",
|
|
123
|
+
"description": "OMG control plane MCP server via stdio",
|
|
124
|
+
"command": OMG_CONTROL_COMMAND,
|
|
125
|
+
"args": OMG_CONTROL_ARGS,
|
|
126
|
+
"default": True,
|
|
127
|
+
"category": "control",
|
|
128
|
+
},
|
|
112
129
|
{
|
|
113
130
|
"id": "github",
|
|
114
131
|
"name": "GitHub",
|
|
@@ -371,8 +388,11 @@ def configure_mcp(
|
|
|
371
388
|
detected_clis: dict[str, Any],
|
|
372
389
|
server_url: str = "http://127.0.0.1:8765/mcp",
|
|
373
390
|
server_name: str = "omg-memory",
|
|
391
|
+
control_command: str = OMG_CONTROL_COMMAND,
|
|
392
|
+
control_args: list[str] | None = None,
|
|
393
|
+
control_server_name: str = OMG_CONTROL_SERVER_NAME,
|
|
374
394
|
) -> dict[str, Any]:
|
|
375
|
-
"""Configure MCP
|
|
395
|
+
"""Configure OMG MCP servers for authenticated CLIs.
|
|
376
396
|
|
|
377
397
|
For each CLI in detected_clis where detected_clis[cli]["detected"] == True,
|
|
378
398
|
calls the appropriate writer from runtime.mcp_config_writers.
|
|
@@ -382,6 +402,9 @@ def configure_mcp(
|
|
|
382
402
|
detected_clis: Dict of CLI detection results from detect_clis().
|
|
383
403
|
server_url: MCP server URL (default: http://127.0.0.1:8765/mcp).
|
|
384
404
|
server_name: MCP server name (default: omg-memory).
|
|
405
|
+
control_command: stdio command for the OMG control MCP server.
|
|
406
|
+
control_args: stdio args for the OMG control MCP server.
|
|
407
|
+
control_server_name: MCP server name for the OMG control surface.
|
|
385
408
|
|
|
386
409
|
Returns:
|
|
387
410
|
Dict with keys:
|
|
@@ -391,28 +414,40 @@ def configure_mcp(
|
|
|
391
414
|
"""
|
|
392
415
|
configured: list[str] = []
|
|
393
416
|
errors: dict[str, str] = {}
|
|
417
|
+
resolved_control_args = list(control_args or OMG_CONTROL_ARGS)
|
|
394
418
|
|
|
395
|
-
# Always write Claude config
|
|
419
|
+
# Always write Claude project config for both memory and control surfaces.
|
|
396
420
|
try:
|
|
397
421
|
write_claude_mcp_config(project_dir, server_url, server_name)
|
|
422
|
+
write_claude_mcp_stdio_config(
|
|
423
|
+
project_dir,
|
|
424
|
+
command=control_command,
|
|
425
|
+
args=resolved_control_args,
|
|
426
|
+
server_name=control_server_name,
|
|
427
|
+
)
|
|
398
428
|
except Exception as exc:
|
|
399
429
|
_logger.warning("Failed to write Claude MCP config: %s", exc)
|
|
400
430
|
errors["claude"] = str(exc)
|
|
401
431
|
|
|
402
|
-
# Write
|
|
432
|
+
# Write both memory and control surfaces for detected external CLIs.
|
|
403
433
|
cli_writers = {
|
|
404
|
-
"codex": write_codex_mcp_config,
|
|
405
|
-
"gemini": write_gemini_mcp_config,
|
|
406
|
-
"kimi": write_kimi_mcp_config,
|
|
434
|
+
"codex": (write_codex_mcp_config, write_codex_mcp_stdio_config),
|
|
435
|
+
"gemini": (write_gemini_mcp_config, write_gemini_mcp_stdio_config),
|
|
436
|
+
"kimi": (write_kimi_mcp_config, write_kimi_mcp_stdio_config),
|
|
407
437
|
}
|
|
408
438
|
|
|
409
|
-
for cli_name,
|
|
439
|
+
for cli_name, (http_writer, stdio_writer) in cli_writers.items():
|
|
410
440
|
cli_info = detected_clis.get(cli_name, {})
|
|
411
441
|
if not cli_info.get("detected", False):
|
|
412
442
|
continue
|
|
413
443
|
|
|
414
444
|
try:
|
|
415
|
-
|
|
445
|
+
http_writer(server_url, server_name)
|
|
446
|
+
stdio_writer(
|
|
447
|
+
command=control_command,
|
|
448
|
+
args=resolved_control_args,
|
|
449
|
+
server_name=control_server_name,
|
|
450
|
+
)
|
|
416
451
|
configured.append(cli_name)
|
|
417
452
|
except Exception as exc:
|
|
418
453
|
_logger.warning("Failed to write %s MCP config: %s", cli_name, exc)
|
package/hooks/shadow_manager.py
CHANGED
|
@@ -17,6 +17,7 @@ HOOKS_DIR = os.path.dirname(__file__)
|
|
|
17
17
|
if HOOKS_DIR not in sys.path:
|
|
18
18
|
sys.path.insert(0, HOOKS_DIR)
|
|
19
19
|
from _common import _resolve_project_dir
|
|
20
|
+
from security_validators import ensure_path_within_dir, validate_opaque_identifier
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
def _project_dir() -> str:
|
|
@@ -43,6 +44,10 @@ def _new_run_id() -> str:
|
|
|
43
44
|
return datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%S%fZ")
|
|
44
45
|
|
|
45
46
|
|
|
47
|
+
def _validated_run_id(run_id: str) -> str:
|
|
48
|
+
return validate_opaque_identifier(run_id, "run_id")
|
|
49
|
+
|
|
50
|
+
|
|
46
51
|
def _hash_file(path: str) -> str:
|
|
47
52
|
h = hashlib.sha256()
|
|
48
53
|
with open(path, "rb") as f:
|
|
@@ -61,6 +66,7 @@ def ensure_shadow_dirs(project_dir: str) -> None:
|
|
|
61
66
|
|
|
62
67
|
def set_active_run_id(project_dir: str, run_id: str) -> None:
|
|
63
68
|
ensure_shadow_dirs(project_dir)
|
|
69
|
+
run_id = _validated_run_id(run_id)
|
|
64
70
|
with open(_active_run_path(project_dir), "w", encoding="utf-8") as f:
|
|
65
71
|
f.write(run_id)
|
|
66
72
|
|
|
@@ -81,7 +87,7 @@ def get_active_run_id(project_dir: str) -> str | None:
|
|
|
81
87
|
|
|
82
88
|
|
|
83
89
|
def begin_shadow_run(project_dir: str, metadata: dict[str, Any] | None = None) -> str:
|
|
84
|
-
run_id = get_active_run_id(project_dir) or _new_run_id()
|
|
90
|
+
run_id = _validated_run_id(get_active_run_id(project_dir) or _new_run_id())
|
|
85
91
|
run_dir = os.path.join(_shadow_root(project_dir), run_id)
|
|
86
92
|
os.makedirs(run_dir, exist_ok=True)
|
|
87
93
|
|
|
@@ -124,12 +130,14 @@ def _save_manifest(run_dir: str, manifest: dict[str, Any]) -> None:
|
|
|
124
130
|
|
|
125
131
|
|
|
126
132
|
def map_shadow_path(project_dir: str, run_id: str, file_path: str) -> str:
|
|
133
|
+
run_id = _validated_run_id(run_id)
|
|
127
134
|
rel = os.path.relpath(os.path.abspath(file_path), os.path.abspath(project_dir))
|
|
128
135
|
rel = rel.replace("..", "_up_")
|
|
129
136
|
return os.path.join(_shadow_root(project_dir), run_id, "overlay", rel)
|
|
130
137
|
|
|
131
138
|
|
|
132
139
|
def record_shadow_write(project_dir: str, run_id: str, file_path: str, source: str = "tool") -> dict[str, Any]:
|
|
140
|
+
run_id = _validated_run_id(run_id)
|
|
133
141
|
run_dir = os.path.join(_shadow_root(project_dir), run_id)
|
|
134
142
|
os.makedirs(run_dir, exist_ok=True)
|
|
135
143
|
|
|
@@ -171,8 +179,15 @@ def create_evidence_pack(
|
|
|
171
179
|
diff_summary: dict[str, Any] | None = None,
|
|
172
180
|
reproducibility: dict[str, Any] | None = None,
|
|
173
181
|
unresolved_risks: list[str] | None = None,
|
|
182
|
+
provenance: list[dict[str, Any]] | None = None,
|
|
183
|
+
trust_scores: dict[str, Any] | None = None,
|
|
184
|
+
api_twin: dict[str, Any] | None = None,
|
|
185
|
+
route_metadata: dict[str, Any] | None = None,
|
|
186
|
+
trace_ids: list[str] | None = None,
|
|
187
|
+
lineage: dict[str, Any] | None = None,
|
|
174
188
|
) -> str:
|
|
175
189
|
ensure_shadow_dirs(project_dir)
|
|
190
|
+
run_id = _validated_run_id(run_id)
|
|
176
191
|
evidence = {
|
|
177
192
|
"schema": "EvidencePack",
|
|
178
193
|
"run_id": run_id,
|
|
@@ -182,8 +197,17 @@ def create_evidence_pack(
|
|
|
182
197
|
"diff_summary": diff_summary or {},
|
|
183
198
|
"reproducibility": reproducibility or {},
|
|
184
199
|
"unresolved_risks": unresolved_risks or [],
|
|
200
|
+
"provenance": provenance or [],
|
|
201
|
+
"trust_scores": trust_scores or {},
|
|
202
|
+
"api_twin": api_twin or {},
|
|
203
|
+
"route_metadata": route_metadata or {},
|
|
204
|
+
"trace_ids": trace_ids or [],
|
|
205
|
+
"lineage": lineage or {},
|
|
185
206
|
}
|
|
186
|
-
evidence_path =
|
|
207
|
+
evidence_path = ensure_path_within_dir(
|
|
208
|
+
_evidence_root(project_dir),
|
|
209
|
+
os.path.join(_evidence_root(project_dir), f"{run_id}.json"),
|
|
210
|
+
)
|
|
187
211
|
with open(evidence_path, "w", encoding="utf-8") as f:
|
|
188
212
|
json.dump(evidence, f, indent=2)
|
|
189
213
|
return evidence_path
|
|
@@ -211,6 +235,7 @@ def has_recent_evidence(project_dir: str, hours: int = 24) -> bool:
|
|
|
211
235
|
|
|
212
236
|
|
|
213
237
|
def apply_shadow(project_dir: str, run_id: str) -> dict[str, Any]:
|
|
238
|
+
run_id = _validated_run_id(run_id)
|
|
214
239
|
run_dir = os.path.join(_shadow_root(project_dir), run_id)
|
|
215
240
|
manifest = _load_manifest(run_dir)
|
|
216
241
|
applied = []
|
|
@@ -236,6 +261,7 @@ def apply_shadow(project_dir: str, run_id: str) -> dict[str, Any]:
|
|
|
236
261
|
|
|
237
262
|
|
|
238
263
|
def drop_shadow(project_dir: str, run_id: str) -> dict[str, Any]:
|
|
264
|
+
run_id = _validated_run_id(run_id)
|
|
239
265
|
run_dir = os.path.join(_shadow_root(project_dir), run_id)
|
|
240
266
|
if os.path.isdir(run_dir):
|
|
241
267
|
print(f"[OMG] Deleting: {run_dir}", file=sys.stderr)
|
package/package.json
CHANGED
package/plugins/README.md
CHANGED
|
@@ -17,6 +17,9 @@ OMG exposes a small native front door and keeps the rest of the surface availabl
|
|
|
17
17
|
| `/OMG:escalate` | Route to Codex, Gemini, or CCG |
|
|
18
18
|
| `/OMG:teams` | Team routing for internal OMG execution |
|
|
19
19
|
| `/OMG:ccg` | Tri-track synthesis |
|
|
20
|
+
| `/OMG:security-check` | Canonical security pipeline |
|
|
21
|
+
| `/OMG:api-twin` | Contract replay and fixture-based API simulation |
|
|
22
|
+
| `/OMG:preflight` | Structured route selection and evidence planning |
|
|
20
23
|
| `/OMG:compat` | Legacy compatibility routing |
|
|
21
24
|
| `/OMG:health-check` | Verify setup and tool integration |
|
|
22
25
|
| `/OMG:mode` | Set cognitive mode for the session |
|
|
@@ -28,7 +31,6 @@ OMG exposes a small native front door and keeps the rest of the surface availabl
|
|
|
28
31
|
| `/OMG:deep-plan` | Planning | Strategic planning with domain awareness |
|
|
29
32
|
| `/OMG:learn` | Knowledge | Convert patterns into OMG-native instincts and skills |
|
|
30
33
|
| `/OMG:code-review` | Quality | Deep review flow |
|
|
31
|
-
| `/OMG:security-review` | Security | Security-focused review |
|
|
32
34
|
| `/OMG:ship` | Delivery | Idea to evidence to release |
|
|
33
35
|
| `/OMG:handoff` | Collaboration | Session transfer and continuity |
|
|
34
36
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""OMG plugin packages."""
|
|
@@ -87,7 +87,7 @@ Key interfaces: [list the interfaces/types this touches]
|
|
|
87
87
|
|
|
88
88
|
### Phase 3: Integration + Security [N files, ~M lines]
|
|
89
89
|
5. [ ] [specific action]
|
|
90
|
-
6. [ ] Security review: /OMG:security-
|
|
90
|
+
6. [ ] Security review: /OMG:security-check [affected files]
|
|
91
91
|
|
|
92
92
|
### Phase 4: Verification
|
|
93
93
|
7. [ ] Tests: [what to test, how]
|
|
@@ -1,119 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
allowed-tools: Read,
|
|
4
|
-
argument-hint: "[
|
|
2
|
+
description: Deprecated alias to OMG's canonical security-check pipeline.
|
|
3
|
+
allowed-tools: Read, Grep, Glob, Bash(python3:*), Bash(rg:*)
|
|
4
|
+
argument-hint: "[path or '.' for the current project]"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# /OMG:security-review —
|
|
7
|
+
# /OMG:security-review — Deprecated Alias
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
`/OMG:security-review` remains available only for compatibility.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
- If argument is a file: scan that file deeply
|
|
13
|
-
- If argument is a directory: scan all source files in it
|
|
14
|
-
- If "all" or no argument: scan git-tracked source files
|
|
11
|
+
Use `/OMG:security-check` instead. The canonical pipeline now owns:
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# Payment
|
|
22
|
-
find . -type f -name "*.{ts,js,py,go}" | xargs grep -li "payment\|billing\|stripe\|checkout\|card\|price" 2>/dev/null
|
|
23
|
-
|
|
24
|
-
# Database
|
|
25
|
-
find . -type f -name "*.{ts,js,py,go}" | xargs grep -li "query\|SELECT\|INSERT\|UPDATE\|DELETE\|migration\|schema" 2>/dev/null
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Step 2: Automated Vulnerability Scan
|
|
29
|
-
|
|
30
|
-
For each security-critical file, check LINE-BY-LINE:
|
|
31
|
-
|
|
32
|
-
**2a. Hardcoded Secrets**
|
|
33
|
-
```bash
|
|
34
|
-
grep -rn "AKIA\|sk_live\|sk_test\|ghp_\|github_pat\|xoxb-\|xoxp-\|eyJ.*\.eyJ" [files]
|
|
35
|
-
grep -rn "api[_-]key.*=.*['\"][A-Za-z0-9]" [files]
|
|
36
|
-
grep -rn "password.*=.*['\"]" [files] | grep -v "test\|mock\|example\|placeholder"
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
**2b. SQL Injection**
|
|
40
|
-
```bash
|
|
41
|
-
grep -rn "f\".*SELECT\|f\".*INSERT\|f\".*UPDATE\|f\".*DELETE" [files]
|
|
42
|
-
grep -rn "\\.format.*SELECT\|%s.*SELECT\|\\+.*SELECT" [files]
|
|
43
|
-
grep -rn "query.*\\$\\{" [files] # template literal SQL
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
**2c. XSS / Injection**
|
|
47
|
-
```bash
|
|
48
|
-
grep -rn "innerHTML\|dangerouslySetInnerHTML\|v-html\|\\|safe\b" [files]
|
|
49
|
-
grep -rn "eval(\|exec(\|subprocess.*shell=True" [files]
|
|
50
|
-
grep -rn "document\\.write\|document\\.location" [files]
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
**2d. Auth/Session Issues**
|
|
54
|
-
```bash
|
|
55
|
-
grep -rn "jwt\\.decode.*verify.*false\|verify.*False" [files]
|
|
56
|
-
grep -rn "cors.*\\*\|origin.*\\*" [files]
|
|
57
|
-
grep -rn "httpOnly.*false\|secure.*false\|sameSite.*none" [files]
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**2e. Path Traversal**
|
|
61
|
-
```bash
|
|
62
|
-
grep -rn "req\\.params\|req\\.query\|req\\.body" [files] | grep -i "path\|file\|dir"
|
|
63
|
-
grep -rn "\\.\\./\|\\.\\.\\\\" [files]
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**2f. Sensitive Data Exposure**
|
|
67
|
-
```bash
|
|
68
|
-
grep -rn "console\\.log.*password\|console\\.log.*token\|console\\.log.*secret" [files]
|
|
69
|
-
grep -rn "log\\.info.*password\|logger.*token\|print.*secret" [files]
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Step 3: Codex Deep Review (for high-risk files)
|
|
73
|
-
|
|
74
|
-
For files with auth, payment, or database logic:
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
/OMG:escalate codex "Security deep review of [file]:
|
|
78
|
-
1. Read every line. Flag any: hardcoded secrets, SQL injection, XSS, CSRF, auth bypass, privilege escalation, insecure deserialization, SSRF.
|
|
79
|
-
2. Check auth flow completeness: does every protected route validate the token? Are permissions checked?
|
|
80
|
-
3. Check payment flow: is card data handled safely? Are amounts validated server-side?
|
|
81
|
-
4. Check database queries: all parameterized? Any raw string concatenation?
|
|
82
|
-
5. Rate this file: SAFE / NEEDS_FIX / CRITICAL with specific line numbers."
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## Step 4: Report
|
|
86
|
-
|
|
87
|
-
```
|
|
88
|
-
Security Review — [scope]
|
|
89
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
90
|
-
|
|
91
|
-
Files scanned: [N]
|
|
92
|
-
Security-critical files: [N]
|
|
93
|
-
|
|
94
|
-
CRITICAL [N]:
|
|
95
|
-
[file:line] Hardcoded API key: [type]
|
|
96
|
-
[file:line] SQL injection: unparameterized query
|
|
97
|
-
|
|
98
|
-
HIGH [N]:
|
|
99
|
-
[file:line] Missing auth check on protected route
|
|
100
|
-
[file:line] CORS wildcard in production config
|
|
101
|
-
|
|
102
|
-
MEDIUM [N]:
|
|
103
|
-
[file:line] Sensitive data in console.log
|
|
104
|
-
[file:line] httpOnly not set on session cookie
|
|
105
|
-
|
|
106
|
-
LOW [N]:
|
|
107
|
-
[file:line] Missing rate limiting on login endpoint
|
|
108
|
-
|
|
109
|
-
Codex Deep Review:
|
|
110
|
-
[file]: [SAFE|NEEDS_FIX|CRITICAL] — [summary]
|
|
111
|
-
|
|
112
|
-
Fix priority: [ordered list of what to fix first]
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
## Anti-patterns
|
|
116
|
-
- Don't just grep and dump raw output — analyze each finding
|
|
117
|
-
- Don't skip test files entirely (they can leak real credentials)
|
|
118
|
-
- Don't claim "looks secure" without running ALL checks above
|
|
119
|
-
- Don't treat this as optional for auth/payment/database changes
|
|
13
|
+
- normalized security findings
|
|
14
|
+
- dependency and AST enrichment
|
|
15
|
+
- evidence-ready provenance and trust scores
|
|
16
|
+
- reuse across CLI, compat routing, control plane, MCP, and ship flows
|
|
@@ -24,7 +24,7 @@ argument-hint: "[goal or optional path to .omg/idea.yml]"
|
|
|
24
24
|
- `tests[]`, `security_scans[]`, `diff_summary`, `reproducibility`, `unresolved_risks[]`.
|
|
25
25
|
|
|
26
26
|
## Step 4: Security and trust checks
|
|
27
|
-
- Run `/OMG:security-
|
|
27
|
+
- Run `/OMG:security-check` for auth/payment/database/sensitive changes.
|
|
28
28
|
- If config/hook/MCP changes are involved, ensure trust manifest is updated at `.omg/trust/manifest.lock.json`.
|
|
29
29
|
|
|
30
30
|
## Step 5: PR-ready output
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omg-advanced",
|
|
3
3
|
"version": "1.0.5",
|
|
4
|
-
"description": "Advanced OMG commands - deep planning, learning, code review,
|
|
4
|
+
"description": "Advanced OMG commands - deep planning, learning, code review, and specialized workflows",
|
|
5
5
|
"type": "omg-plugin",
|
|
6
6
|
"commands": {
|
|
7
7
|
"deep-plan": {
|
|
@@ -19,11 +19,6 @@
|
|
|
19
19
|
"description": "Deep code review with line-by-line analysis",
|
|
20
20
|
"category": "quality"
|
|
21
21
|
},
|
|
22
|
-
"security-review": {
|
|
23
|
-
"path": "commands/OMG:security-review.md",
|
|
24
|
-
"description": "Security vulnerability scanning",
|
|
25
|
-
"category": "security"
|
|
26
|
-
},
|
|
27
22
|
"ship": {
|
|
28
23
|
"path": "commands/OMG:ship.md",
|
|
29
24
|
"description": "Ship pipeline - idea to PR-ready summary",
|
|
@@ -69,10 +64,6 @@
|
|
|
69
64
|
"description": "Code quality and review",
|
|
70
65
|
"commands": ["code-review"]
|
|
71
66
|
},
|
|
72
|
-
"security": {
|
|
73
|
-
"description": "Security analysis and review",
|
|
74
|
-
"commands": ["security-review"]
|
|
75
|
-
},
|
|
76
67
|
"knowledge": {
|
|
77
68
|
"description": "Learning and skill creation",
|
|
78
69
|
"commands": ["learn"]
|
package/plugins/core/plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omg-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Core OMG commands - native setup, routing, orchestration, and verification surfaces",
|
|
5
5
|
"type": "omg-plugin",
|
|
6
6
|
"commands": {
|
|
@@ -39,6 +39,21 @@
|
|
|
39
39
|
"description": "Legacy skill compatibility dispatcher",
|
|
40
40
|
"category": "compatibility"
|
|
41
41
|
},
|
|
42
|
+
"security-check": {
|
|
43
|
+
"path": "commands/OMG:security-check.md",
|
|
44
|
+
"description": "Canonical security pipeline with normalized findings and evidence",
|
|
45
|
+
"category": "security"
|
|
46
|
+
},
|
|
47
|
+
"api-twin": {
|
|
48
|
+
"path": "commands/OMG:api-twin.md",
|
|
49
|
+
"description": "Contract replay and fixture-based API simulation",
|
|
50
|
+
"category": "contracts"
|
|
51
|
+
},
|
|
52
|
+
"preflight": {
|
|
53
|
+
"path": "commands/OMG:preflight.md",
|
|
54
|
+
"description": "Structured routing and evidence planning before execution",
|
|
55
|
+
"category": "routing"
|
|
56
|
+
},
|
|
42
57
|
"health-check": {
|
|
43
58
|
"path": "commands/OMG:health-check.md",
|
|
44
59
|
"description": "Verify project setup and tool integration",
|
|
@@ -90,7 +105,7 @@
|
|
|
90
105
|
},
|
|
91
106
|
"routing": {
|
|
92
107
|
"description": "Model routing and escalation",
|
|
93
|
-
"commands": ["escalate", "teams", "ccg"]
|
|
108
|
+
"commands": ["escalate", "teams", "ccg", "preflight"]
|
|
94
109
|
},
|
|
95
110
|
"orchestration": {
|
|
96
111
|
"description": "Multi-agent orchestration modes",
|
|
@@ -108,6 +123,14 @@
|
|
|
108
123
|
"description": "Cost tracking and session observability",
|
|
109
124
|
"commands": ["cost", "stats", "deps"]
|
|
110
125
|
},
|
|
126
|
+
"security": {
|
|
127
|
+
"description": "Canonical security and trust checks",
|
|
128
|
+
"commands": ["security-check"]
|
|
129
|
+
},
|
|
130
|
+
"contracts": {
|
|
131
|
+
"description": "Contract replay and API simulation",
|
|
132
|
+
"commands": ["api-twin"]
|
|
133
|
+
},
|
|
111
134
|
"visualization": {
|
|
112
135
|
"description": "Codebase visualization and architecture diagrams",
|
|
113
136
|
"commands": ["arch"]
|
package/pyproject.toml
CHANGED
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "oh-my-god"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.5"
|
|
8
8
|
description = "OMG (Oh My God) — Multi-agent orchestration, intelligent model routing, and durable session state for Claude Code"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -42,7 +42,43 @@ Repository = "https://github.com/trac3er00/OMG.git"
|
|
|
42
42
|
Issues = "https://github.com/trac3er00/OMG/issues"
|
|
43
43
|
|
|
44
44
|
[tool.setuptools]
|
|
45
|
-
|
|
45
|
+
include-package-data = true
|
|
46
|
+
|
|
47
|
+
[tool.setuptools.packages.find]
|
|
48
|
+
where = ["."]
|
|
49
|
+
include = ["agents*", "commands*", "control_plane*", "hooks*", "plugins*", "registry*", "runtime*"]
|
|
50
|
+
|
|
51
|
+
[tool.setuptools.package-data]
|
|
52
|
+
agents = ["*.md"]
|
|
53
|
+
commands = ["*.md"]
|
|
54
|
+
control_plane = ["*.yaml"]
|
|
55
|
+
plugins = ["**/*.json", "**/*.md"]
|
|
56
|
+
registry = ["*.json", "bundles/*.yaml"]
|
|
57
|
+
runtime = ["*.json"]
|
|
58
|
+
|
|
59
|
+
[tool.setuptools.data-files]
|
|
60
|
+
"." = ["OMG_COMPAT_CONTRACT.md", "settings.json", ".mcp.json"]
|
|
61
|
+
".claude-plugin" = [".claude-plugin/plugin.json", ".claude-plugin/marketplace.json"]
|
|
62
|
+
"docs" = ["docs/release-checklist.md"]
|
|
63
|
+
".agents/skills/omg" = [".agents/skills/omg/AGENTS.fragment.md", ".agents/skills/omg/codex-mcp.toml"]
|
|
64
|
+
".agents/skills/omg/control-plane" = [".agents/skills/omg/control-plane/SKILL.md", ".agents/skills/omg/control-plane/openai.yaml"]
|
|
65
|
+
".agents/skills/omg/hook-governor" = [".agents/skills/omg/hook-governor/SKILL.md", ".agents/skills/omg/hook-governor/openai.yaml"]
|
|
66
|
+
".agents/skills/omg/lsp-pack" = [".agents/skills/omg/lsp-pack/SKILL.md", ".agents/skills/omg/lsp-pack/openai.yaml"]
|
|
67
|
+
".agents/skills/omg/mcp-fabric" = [".agents/skills/omg/mcp-fabric/SKILL.md", ".agents/skills/omg/mcp-fabric/openai.yaml"]
|
|
68
|
+
".agents/skills/omg/secure-worktree-pipeline" = [".agents/skills/omg/secure-worktree-pipeline/SKILL.md", ".agents/skills/omg/secure-worktree-pipeline/openai.yaml"]
|
|
69
|
+
".agents/skills/omg/security-check" = [".agents/skills/omg/security-check/SKILL.md", ".agents/skills/omg/security-check/openai.yaml"]
|
|
70
|
+
".agents/skills/omg/api-twin" = [".agents/skills/omg/api-twin/SKILL.md", ".agents/skills/omg/api-twin/openai.yaml"]
|
|
71
|
+
".agents/skills/omg/preflight" = [".agents/skills/omg/preflight/SKILL.md", ".agents/skills/omg/preflight/openai.yaml"]
|
|
72
|
+
".agents/skills/omg/robotics" = [".agents/skills/omg/robotics/SKILL.md", ".agents/skills/omg/robotics/openai.yaml"]
|
|
73
|
+
".agents/skills/omg/vision" = [".agents/skills/omg/vision/SKILL.md", ".agents/skills/omg/vision/openai.yaml"]
|
|
74
|
+
".agents/skills/omg/algorithms" = [".agents/skills/omg/algorithms/SKILL.md", ".agents/skills/omg/algorithms/openai.yaml"]
|
|
75
|
+
".agents/skills/omg/health" = [".agents/skills/omg/health/SKILL.md", ".agents/skills/omg/health/openai.yaml"]
|
|
76
|
+
".agents/skills/omg/tracebank" = [".agents/skills/omg/tracebank/SKILL.md", ".agents/skills/omg/tracebank/openai.yaml"]
|
|
77
|
+
".agents/skills/omg/eval-gate" = [".agents/skills/omg/eval-gate/SKILL.md", ".agents/skills/omg/eval-gate/openai.yaml"]
|
|
78
|
+
".agents/skills/omg/delta-classifier" = [".agents/skills/omg/delta-classifier/SKILL.md", ".agents/skills/omg/delta-classifier/openai.yaml"]
|
|
79
|
+
".agents/skills/omg/incident-replay" = [".agents/skills/omg/incident-replay/SKILL.md", ".agents/skills/omg/incident-replay/openai.yaml"]
|
|
80
|
+
".agents/skills/omg/data-lineage" = [".agents/skills/omg/data-lineage/SKILL.md", ".agents/skills/omg/data-lineage/openai.yaml"]
|
|
81
|
+
".agents/skills/omg/remote-supervisor" = [".agents/skills/omg/remote-supervisor/SKILL.md", ".agents/skills/omg/remote-supervisor/openai.yaml"]
|
|
46
82
|
|
|
47
83
|
[tool.pytest.ini_options]
|
|
48
84
|
testpaths = ["tests"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Registry package for OMG."""
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
id: algorithms
|
|
2
|
+
kind: domain-pack
|
|
3
|
+
version: 2.0.5
|
|
4
|
+
title: OMG Algorithms Pack
|
|
5
|
+
description: Determinism and benchmark attachments for algorithm-heavy work.
|
|
6
|
+
hosts:
|
|
7
|
+
- claude
|
|
8
|
+
- codex
|
|
9
|
+
assets:
|
|
10
|
+
references:
|
|
11
|
+
- runtime/domain_packs.py
|
|
12
|
+
invocation_policy:
|
|
13
|
+
user_invocable: true
|
|
14
|
+
model_invocable: true
|
|
15
|
+
allow_implicit_invocation: false
|
|
16
|
+
tool_policy:
|
|
17
|
+
side_effect_level: medium
|
|
18
|
+
allowed_tools:
|
|
19
|
+
claude:
|
|
20
|
+
- Read
|
|
21
|
+
codex:
|
|
22
|
+
- Read
|
|
23
|
+
lifecycle_hooks:
|
|
24
|
+
native:
|
|
25
|
+
- PostToolUse
|
|
26
|
+
emulated:
|
|
27
|
+
- TaskCompleted
|
|
28
|
+
mcp_contract:
|
|
29
|
+
servers:
|
|
30
|
+
- omg-control
|
|
31
|
+
lsp_contract:
|
|
32
|
+
languages:
|
|
33
|
+
- python
|
|
34
|
+
evidence_outputs:
|
|
35
|
+
artifacts:
|
|
36
|
+
- .omg/evals/latest.json
|
|
37
|
+
execution_contract:
|
|
38
|
+
modes:
|
|
39
|
+
- embedded
|
|
40
|
+
- local_supervisor
|
|
41
|
+
channel_overrides:
|
|
42
|
+
public:
|
|
43
|
+
benchmarks: advisory
|
|
44
|
+
enterprise:
|
|
45
|
+
benchmarks: required
|