plugin-scanner 2.0.170__tar.gz → 2.0.171__tar.gz
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.
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/PKG-INFO +1 -1
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/pyproject.toml +1 -1
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/pyproject.toml.bak +1 -1
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/inventory_contract.py +185 -5
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/version.py +1 -1
- plugin_scanner-2.0.171/tests/test_guard_inventory_contract.py +408 -0
- plugin_scanner-2.0.170/tests/test_guard_inventory_contract.py +0 -159
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.clusterfuzzlite/Dockerfile +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.clusterfuzzlite/build.sh +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.clusterfuzzlite/project.yaml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.clusterfuzzlite/requirements-atheris.txt +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.dockerignore +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/CODEOWNERS +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/dependabot.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/workflows/ci.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/workflows/codeql.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/workflows/dependabot-uv-lock.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/workflows/fuzz.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/workflows/harness-smoke.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/workflows/publish.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.github/workflows/scorecard.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.gitignore +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/.pre-commit-hooks.yaml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/CONTRIBUTING.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/Dockerfile +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/LICENSE +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/README.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/SECURITY.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/index.html +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/package.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/pnpm-lock.yaml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/public/apple-touch-icon.png +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/public/brand/Logo_Icon_Dark.png +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/public/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/public/favicon-16x16.png +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/public/favicon-32x32.png +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/public/favicon.ico +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/app.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/approval-center-layout.test.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/approval-center-layout.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/approval-center-mobile.test.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/approval-center-primitives.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/approval-center-review-cards.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/approval-center-utils.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/data-flow-evidence-card.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/fleet-workspace.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/guard-api.test.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/guard-api.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/guard-demo.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/guard-types.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/home-dashboard.test.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/home-dashboard.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/main.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/queue-chip-filter.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/queue-state.test.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/queue-state.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/receipts-workspace.test.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/receipts-workspace.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/risk-signal-cards.test.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/risk-signal-cards.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/runtime-overview.test.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/runtime-overview.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/scanner-evidence-badge.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/settings-workspace.test.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/settings-workspace.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/styles.css +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/vite-env.d.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/src/watched-app-card.tsx +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/tsconfig.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/dashboard/vite.config.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docker-requirements.txt +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/guard/approval-audit.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/guard/architecture.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/guard/get-started.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/guard/harness-support.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/guard/local-vs-cloud.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/guard/release-checklist.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/guard/release-notes.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/guard/smoke-tests.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/guard/testing-matrix.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/trust/mcp-trust-draft.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/trust/plugin-trust-draft.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/docs/trust/skill-trust-local.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/fuzzers/manifest_fuzzer.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/requirements.txt +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/schemas/plugin-quality.v1.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/schemas/scan-result.v1.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/schemas/verify-result.v1.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/action_runner.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/argparse_utils.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/best_practices.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/claude.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/code_quality.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/ecosystem_common.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/gemini.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/manifest.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/manifest_support.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/marketplace.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/mcp_security.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/opencode.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/operational_security.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/security.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/checks/skill_security.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/cli.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/cli_ui.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/config.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/ecosystems/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/ecosystems/base.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/ecosystems/claude.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/ecosystems/codex.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/ecosystems/detect.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/ecosystems/gemini.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/ecosystems/opencode.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/ecosystems/registry.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/ecosystems/types.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/github_reporting.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/access_graph_events.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/antigravity.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/base.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/claude_code.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/cloud_identity.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/codex.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/contracts.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/copilot.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/cursor.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/gemini.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/hermes.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/mcp_servers.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/openclaw.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/openclaw_config.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/openclaw_support.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/opencode.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/adapters/opencode_artifacts.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/advisory_model.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/approvals.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/bridge/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/capabilities.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/cli/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/cli/approval_commands.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/cli/bootstrap.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/cli/commands.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/cli/connect_flow.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/cli/install_commands.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/cli/product.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/cli/prompt.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/cli/render.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/cli/update_commands.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/codex_config.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/config.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/consumer/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/consumer/service.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/client.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/manager.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/server.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/static/apple-touch-icon.png +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/static/assets/guard-dashboard.js +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/static/assets/index.css +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Icon_Dark.png +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/static/favicon-16x16.png +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/static/favicon-32x32.png +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/static/favicon.ico +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/daemon/static/index.html +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/edge_events.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/incident.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/insights.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/launcher.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/mcp_tool_calls.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/models.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/policy/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/policy/engine.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/protect.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/proxy/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/proxy/remote.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/proxy/runtime_mcp.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/proxy/stdio.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/receipts/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/receipts/manager.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/redaction.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/risk.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/action_identity.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/actions.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/advisory_escalation.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/advisory_matchers.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/cisco_evidence.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/cisco_preflight.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/composition_rules.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/data_flow.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/data_flow_rules.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/data_flow_variables.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/decisions.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/detectors.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/false_positive_rules.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/mcp_protection.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/persistence_rules.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/prompt_injection.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/runner.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/safe_decode.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/sandbox.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/scanner_cache.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/secret_file_requests.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/secret_sensitivity.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/secret_sources.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/shell_commands.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/signals.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/skill_protection.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/supply_chain.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/surface_server.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/temp_files.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/runtime/threat_intel.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/schemas/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/schemas/consumer_mode.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/schemas/guard_event_v1.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/schemas/surface_server.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/shims.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/store.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/store_approvals.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/store_connect.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/store_evidence.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/store_threat_intel.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/guard/types.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/integrations/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/integrations/cisco_mcp_scanner.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/integrations/cisco_skill_scanner.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/lint_fixes.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/marketplace_support.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/models.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/path_support.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/policy.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/quality_artifact.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/repo_detect.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/reporting.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/rules/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/rules/registry.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/rules/specs.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/scanner.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/submission.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/suppressions.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/trust_domain_scoring.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/trust_helpers.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/trust_mcp_scoring.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/trust_models.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/trust_plugin_scoring.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/trust_scoring.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/trust_skill_scoring.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/trust_specs.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/src/codex_plugin_scanner/verification.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/conftest.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/__init__.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/bad-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/bad-plugin/.mcp.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/bad-plugin/secrets.js +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/claude-plugin-good/.claude-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/claude-plugin-good/LICENSE +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/claude-plugin-good/README.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/claude-plugin-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/claude-plugin-good/hooks/hooks.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/claude-plugin-good/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/code-quality-bad/evil.js +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/code-quality-bad/inject.js +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/gemini-extension-good/GEMINI.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/gemini-extension-good/LICENSE +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/gemini-extension-good/README.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/gemini-extension-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/gemini-extension-good/commands/hello.toml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/gemini-extension-good/gemini-extension.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/good-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/good-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/good-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/good-plugin/README.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/good-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/good-plugin/assets/icon.svg +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/good-plugin/assets/logo.svg +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/good-plugin/assets/screenshot.svg +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/good-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-codex-malicious-mcp/.codex/config.toml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/README.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/benign-docs-fake-token.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/benign-health-endpoint.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/benign-nvmrc-fake-creds.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/benign-source-search.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/canary-exfil-encoded.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/canary-exfil.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/expected-decisions.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-dockerfile.txt +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-encoded-shell-exfil.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-github-action.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-mcp-delete.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-mcp-secret-read.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-mcp-skill-exfil.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-npm-postinstall.js +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-prompt-env-read.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-prompt-guard-bypass.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-prompt-npmrc-read.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/malicious-python-setup.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/guard-red-team/smoke-evidence-template.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/hermes-plugin-evil/config.yaml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/hermes-plugin-evil/mcp_servers.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/hermes-plugin-evil/skills/security/malicious/SKILL.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/SKILL.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/references/api-setup.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/scripts/deploy.sh +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/hermes-plugin-evil/skills/utils/benign/SKILL.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/malformed-json/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/malicious-skill-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/malicious-skill-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/malicious-skill-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/malicious-skill-plugin/README.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/malicious-skill-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/malicious-skill-plugin/skills/leaky-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/mcp-canary-server.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/minimal-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/missing-fields/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/mit-license/LICENSE +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-ecosystem-repo/codex-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-ecosystem-repo/codex-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-ecosystem-repo/codex-plugin/README.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-ecosystem-repo/codex-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-ecosystem-repo/gemini-ext/README.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-ecosystem-repo/gemini-ext/gemini-extension.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-plugin-repo/.agents/plugins/marketplace.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/README.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/no-version/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/opencode-good/.opencode/commands/hello.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/opencode-good/.opencode/plugins/example.ts +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/opencode-good/LICENSE +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/opencode-good/README.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/opencode-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/opencode-good/opencode.jsonc +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/skills-missing-dir/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/skills-no-frontmatter/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/skills-no-frontmatter/skills/bad-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/supply-chain/benign-npm-package.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/supply-chain/benign-pnpm-package.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/supply-chain/benign-pyproject.toml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/supply-chain/malicious-Dockerfile +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/supply-chain/malicious-action.yml +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/supply-chain/malicious-npm-package.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/supply-chain/malicious-setup.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/with-marketplace/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/with-marketplace/marketplace-broken.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/fixtures/with-marketplace/marketplace.json +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test-trust-scoring.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test-trust-specs.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_action_runner.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_best_practices.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_cisco_install_surfaces.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_cli.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_code_quality.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_config.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_coverage_remaining.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_ecosystems.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_edge_cases.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_final_coverage.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_access_graph.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_action_identity.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_advisory_escalation.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_approval_continuity.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_approval_copy_commands.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_approval_store_dedup.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_approval_store_scale.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_approvals.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_bootstrap.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_bypass_detector.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_canary_fixtures.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_capabilities.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_cisco_evidence.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_cisco_runtime_cli.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_claude_adapter.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_cli.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_cloud_local_sync.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_codex_e2e.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_codex_install.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_codex_proxy.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_config_paths.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_connect_flow.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_consumer_mode.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_copilot_adapter.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_copilot_proxy.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_daemon_cli.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_daemon_manager.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_daemon_perf.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_daemon_registry.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_daemon_repair_perf.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_daemon_wake.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_data_flow.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_decision_propagation.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_detector_fp.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_event_schema_v1.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_events.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_evidence_store.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_harness_contracts.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_harness_setup.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_harness_smoke.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_insights.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_launch_env.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_mcp_detectors.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_mcp_protection.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_opencode_proxy.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_policy_dedup.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_product_flow.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_prompt_injection.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_protect.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_queue_api_contract.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_queue_contract.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_red_team.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_red_team_e2e.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_redaction.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_render.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_resolution_copy.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_risk.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_runtime.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_runtime_action_harnesses.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_runtime_actions.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_runtime_decisions.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_runtime_detectors.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_runtime_signals.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_safe_decode.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_sandbox.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_settings_presets.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_skill_protection.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_store_migrations.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_supply_chain.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_surface_server.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_threat_intel.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_verdicts.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_guard_web_recovery.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_hermes_adapter.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_integration.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_lint_fixes.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_live_cisco_smoke.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_manifest.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_marketplace.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_mcp_security.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_openclaw_adapter.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_operational_security.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_policy.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_quality_artifact.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_rule_registry.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_scanner.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_schema_contracts.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_security.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_security_ops.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_skill_security.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_submission.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_trust_scoring.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_trust_specs.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_verification.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/tests/test_versioning.py +0 -0
- {plugin_scanner-2.0.170 → plugin_scanner-2.0.171}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plugin-scanner
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.171
|
|
4
4
|
Summary: Lint, verify, and gate plugin ecosystems for maintainers, CI, and publish workflows.
|
|
5
5
|
Project-URL: Homepage, https://github.com/hashgraph-online/ai-plugin-scanner
|
|
6
6
|
Project-URL: Repository, https://github.com/hashgraph-online/ai-plugin-scanner
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "plugin-scanner"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.171"
|
|
8
8
|
description = "Lint, verify, and gate plugin ecosystems for maintainers, CI, and publish workflows."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hol-guard"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.171"
|
|
8
8
|
description = "Protect local AI harnesses with HOL Guard and run scanner checks for Codex, Claude, Cursor, Gemini, and OpenCode."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -65,6 +65,35 @@ _SENSITIVE_KEY_RE = re.compile(
|
|
|
65
65
|
re.IGNORECASE,
|
|
66
66
|
)
|
|
67
67
|
_WHITESPACE_RE = re.compile(r"\s+")
|
|
68
|
+
_MCP_READ_RE = re.compile(
|
|
69
|
+
r"(?<![a-z0-9])(read|reads|reading|search|searches|list|lists)(?![a-z0-9])",
|
|
70
|
+
re.IGNORECASE,
|
|
71
|
+
)
|
|
72
|
+
_MCP_DELETE_RE = re.compile(
|
|
73
|
+
r"(?<![a-z0-9])(delete|deletes|remove|removes|destroy|destroys)(?![a-z0-9])",
|
|
74
|
+
re.IGNORECASE,
|
|
75
|
+
)
|
|
76
|
+
_MCP_WRITE_RE = re.compile(
|
|
77
|
+
r"(?<![a-z0-9])(write|writes|update|updates|create|creates|modify|modifies)(?![a-z0-9])",
|
|
78
|
+
re.IGNORECASE,
|
|
79
|
+
)
|
|
80
|
+
_MCP_SHELL_RE = re.compile(
|
|
81
|
+
r"(?<![a-z0-9])(shell|command|commands|execute|exec|subprocess)(?![a-z0-9])",
|
|
82
|
+
re.IGNORECASE,
|
|
83
|
+
)
|
|
84
|
+
_MCP_SECRET_RE = re.compile(
|
|
85
|
+
r"(?<![a-z0-9])(secret|secrets|token|tokens|password|passwords|credential|credentials|api[_\-\s]?key|apiKey)(?![a-z0-9])",
|
|
86
|
+
re.IGNORECASE,
|
|
87
|
+
)
|
|
88
|
+
_MCP_NETWORK_RE = re.compile(
|
|
89
|
+
r"(?<![a-z0-9])(http|url|urls|network|fetch|webhook|webhooks)(?![a-z0-9])",
|
|
90
|
+
re.IGNORECASE,
|
|
91
|
+
)
|
|
92
|
+
_MCP_MODEL_RE = re.compile(r"(?<![a-z0-9])(sampling|model|models|llm)(?![a-z0-9])", re.IGNORECASE)
|
|
93
|
+
_MCP_PERMISSION_RE = re.compile(
|
|
94
|
+
r"(?<![a-z0-9])(permission|permissions|chmod)(?![a-z0-9])",
|
|
95
|
+
re.IGNORECASE,
|
|
96
|
+
)
|
|
68
97
|
_IGNORED_TREE_DIR_NAMES = {".git", ".hg", ".svn", "__pycache__", ".mypy_cache", ".ruff_cache", ".venv", "node_modules"}
|
|
69
98
|
_MAX_FINGERPRINT_FILE_BYTES = 1024 * 1024
|
|
70
99
|
|
|
@@ -191,15 +220,16 @@ def inventory_snapshot_from_detection(
|
|
|
191
220
|
) -> GuardAgentInventorySnapshot:
|
|
192
221
|
harness = str(getattr(detection, "harness", "unknown"))
|
|
193
222
|
artifacts = tuple(getattr(detection, "artifacts", ()))
|
|
194
|
-
items =
|
|
195
|
-
|
|
223
|
+
items: list[GuardAgentInventoryItem] = []
|
|
224
|
+
for artifact in artifacts:
|
|
225
|
+
item = _item_from_artifact(
|
|
196
226
|
harness,
|
|
197
227
|
artifact,
|
|
198
228
|
home_dir=home_dir,
|
|
199
229
|
workspace_dir=workspace_dir,
|
|
200
230
|
)
|
|
201
|
-
|
|
202
|
-
|
|
231
|
+
items.append(item)
|
|
232
|
+
items.extend(_mcp_tool_items_from_artifact(harness, artifact, item))
|
|
203
233
|
config_paths = tuple(dict.fromkeys(str(path) for path in getattr(detection, "config_paths", ())))
|
|
204
234
|
sources = tuple(
|
|
205
235
|
GuardInventorySource(
|
|
@@ -224,7 +254,7 @@ def inventory_snapshot_from_detection(
|
|
|
224
254
|
agent_type=_agent_type(harness),
|
|
225
255
|
generated_at=generated_at,
|
|
226
256
|
runtime_version=runtime_version,
|
|
227
|
-
items=items,
|
|
257
|
+
items=tuple(items),
|
|
228
258
|
sources=sources,
|
|
229
259
|
redaction_report={
|
|
230
260
|
"rawSecretsIncluded": False,
|
|
@@ -362,6 +392,156 @@ def _item_from_artifact(
|
|
|
362
392
|
)
|
|
363
393
|
|
|
364
394
|
|
|
395
|
+
def _mcp_tool_items_from_artifact(
|
|
396
|
+
harness: str,
|
|
397
|
+
artifact: object,
|
|
398
|
+
server_item: GuardAgentInventoryItem,
|
|
399
|
+
) -> tuple[GuardAgentInventoryItem, ...]:
|
|
400
|
+
artifact_type = str(getattr(artifact, "artifact_type", "unknown"))
|
|
401
|
+
if artifact_type != "mcp_server":
|
|
402
|
+
return ()
|
|
403
|
+
raw_metadata = getattr(artifact, "metadata", {})
|
|
404
|
+
if not isinstance(raw_metadata, dict):
|
|
405
|
+
return ()
|
|
406
|
+
raw_tools = _mcp_tool_definitions(raw_metadata)
|
|
407
|
+
if not raw_tools:
|
|
408
|
+
return ()
|
|
409
|
+
|
|
410
|
+
items: list[GuardAgentInventoryItem] = []
|
|
411
|
+
for raw_tool in raw_tools:
|
|
412
|
+
if not isinstance(raw_tool, dict):
|
|
413
|
+
continue
|
|
414
|
+
name = raw_tool.get("name")
|
|
415
|
+
if not isinstance(name, str) or not name.strip():
|
|
416
|
+
continue
|
|
417
|
+
display_name = _string_value(raw_tool.get("title")) or name
|
|
418
|
+
description = _string_value(raw_tool.get("description")) or ""
|
|
419
|
+
input_schema = _first_present_value(raw_tool, "inputSchema", "input_schema")
|
|
420
|
+
output_schema = _first_present_value(raw_tool, "outputSchema", "output_schema")
|
|
421
|
+
annotations = raw_tool.get("annotations")
|
|
422
|
+
safe_annotations = annotations if isinstance(annotations, dict) else {}
|
|
423
|
+
metadata = {
|
|
424
|
+
"serverItemId": server_item.item_id,
|
|
425
|
+
"toolName": name,
|
|
426
|
+
"title": display_name,
|
|
427
|
+
"descriptionHash": fingerprint_text(description),
|
|
428
|
+
"inputSchemaHash": fingerprint_mapping(input_schema) if input_schema is not None else None,
|
|
429
|
+
"outputSchemaHash": fingerprint_mapping(output_schema) if output_schema is not None else None,
|
|
430
|
+
"annotations": safe_annotations,
|
|
431
|
+
"schemaPresent": input_schema is not None or output_schema is not None,
|
|
432
|
+
}
|
|
433
|
+
capabilities = _capabilities_for_mcp_tool(name, description, input_schema, safe_annotations)
|
|
434
|
+
semantic_hash = fingerprint_mapping(
|
|
435
|
+
{
|
|
436
|
+
"server": server_item.item_id,
|
|
437
|
+
"name": name,
|
|
438
|
+
"description": description,
|
|
439
|
+
"inputSchema": input_schema,
|
|
440
|
+
"outputSchema": output_schema,
|
|
441
|
+
"annotations": safe_annotations,
|
|
442
|
+
}
|
|
443
|
+
)
|
|
444
|
+
items.append(
|
|
445
|
+
GuardAgentInventoryItem(
|
|
446
|
+
item_id=f"{server_item.item_id}:tool:{name}",
|
|
447
|
+
item_kind="mcp_tool",
|
|
448
|
+
display_name=display_name,
|
|
449
|
+
source_fingerprint=fingerprint_mapping(
|
|
450
|
+
{"harness": harness, "server": server_item.item_id, "tool": name}
|
|
451
|
+
),
|
|
452
|
+
content_hash=semantic_hash,
|
|
453
|
+
capability_categories=capabilities,
|
|
454
|
+
risk_level=_risk_level_for_capabilities(capabilities),
|
|
455
|
+
scanner_sources=("hol-detector",),
|
|
456
|
+
metadata=metadata,
|
|
457
|
+
)
|
|
458
|
+
)
|
|
459
|
+
return tuple(items)
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
def _string_value(value: object) -> str | None:
|
|
463
|
+
return value if isinstance(value, str) else None
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def _first_present_value(mapping: dict[str, object], *keys: str) -> object | None:
|
|
467
|
+
for key in keys:
|
|
468
|
+
if key in mapping:
|
|
469
|
+
return mapping[key]
|
|
470
|
+
return None
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
def _mcp_tool_definitions(metadata: dict[str, object]) -> tuple[dict[str, object], ...]:
|
|
474
|
+
tools: list[dict[str, object]] = []
|
|
475
|
+
seen_names: set[str] = set()
|
|
476
|
+
for key in ("tools", "tool_schemas", "toolSchemas"):
|
|
477
|
+
raw_tools = metadata.get(key)
|
|
478
|
+
if not isinstance(raw_tools, list):
|
|
479
|
+
continue
|
|
480
|
+
for raw_tool in raw_tools:
|
|
481
|
+
if not isinstance(raw_tool, dict):
|
|
482
|
+
continue
|
|
483
|
+
name = raw_tool.get("name")
|
|
484
|
+
if not isinstance(name, str) or not name.strip() or name in seen_names:
|
|
485
|
+
continue
|
|
486
|
+
tools.append(raw_tool)
|
|
487
|
+
seen_names.add(name)
|
|
488
|
+
return tuple(tools)
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
def _mcp_schema_signal_text(value: object) -> str:
|
|
492
|
+
if isinstance(value, dict):
|
|
493
|
+
parts: list[str] = []
|
|
494
|
+
for key, item in value.items():
|
|
495
|
+
if key in {"$schema", "$id"}:
|
|
496
|
+
continue
|
|
497
|
+
parts.append(key)
|
|
498
|
+
parts.append(_mcp_schema_signal_text(item))
|
|
499
|
+
return " ".join(part for part in parts if part)
|
|
500
|
+
if isinstance(value, list):
|
|
501
|
+
return " ".join(_mcp_schema_signal_text(item) for item in value)
|
|
502
|
+
if isinstance(value, str):
|
|
503
|
+
return value
|
|
504
|
+
return ""
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
def _capabilities_for_mcp_tool(
|
|
508
|
+
name: str,
|
|
509
|
+
description: str,
|
|
510
|
+
input_schema: object,
|
|
511
|
+
annotations: dict[str, object],
|
|
512
|
+
) -> tuple[InventoryCapability, ...]:
|
|
513
|
+
text = f"{name} {description} {_mcp_schema_signal_text(input_schema)}".lower()
|
|
514
|
+
capabilities: set[InventoryCapability] = set()
|
|
515
|
+
if annotations.get("readOnlyHint") is True or _MCP_READ_RE.search(text):
|
|
516
|
+
capabilities.add("reads_files")
|
|
517
|
+
if annotations.get("destructiveHint") is True or _MCP_DELETE_RE.search(text):
|
|
518
|
+
capabilities.update({"writes_files", "deletes_files"})
|
|
519
|
+
if annotations.get("writeHint") is True or _MCP_WRITE_RE.search(text):
|
|
520
|
+
capabilities.add("writes_files")
|
|
521
|
+
if _MCP_SHELL_RE.search(text):
|
|
522
|
+
capabilities.add("runs_shell")
|
|
523
|
+
if _MCP_SECRET_RE.search(text):
|
|
524
|
+
capabilities.add("reads_secrets")
|
|
525
|
+
if _MCP_NETWORK_RE.search(text):
|
|
526
|
+
capabilities.add("network_egress")
|
|
527
|
+
if _MCP_MODEL_RE.search(text):
|
|
528
|
+
capabilities.add("uses_model_sampling")
|
|
529
|
+
if _MCP_PERMISSION_RE.search(text):
|
|
530
|
+
capabilities.add("changes_permissions")
|
|
531
|
+
return tuple(sorted(capabilities)) if capabilities else ("unknown",)
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
def _risk_level_for_capabilities(capabilities: tuple[InventoryCapability, ...]) -> InventorySeverity:
|
|
535
|
+
if any(capability in capabilities for capability in ("deletes_files", "reads_secrets", "runs_shell")):
|
|
536
|
+
return "high"
|
|
537
|
+
if any(
|
|
538
|
+
capability in capabilities
|
|
539
|
+
for capability in ("writes_files", "network_egress", "uses_model_sampling", "changes_permissions")
|
|
540
|
+
):
|
|
541
|
+
return "medium"
|
|
542
|
+
return "info"
|
|
543
|
+
|
|
544
|
+
|
|
365
545
|
def _agent_type(value: str) -> AgentInventoryType:
|
|
366
546
|
for agent_type in _AGENT_INVENTORY_TYPES:
|
|
367
547
|
if value == agent_type:
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
from codex_plugin_scanner.guard.inventory_contract import (
|
|
7
|
+
GuardAgentInventoryFinding,
|
|
8
|
+
GuardAgentInventoryItem,
|
|
9
|
+
GuardAgentInventorySnapshot,
|
|
10
|
+
classify_endpoint_host,
|
|
11
|
+
fingerprint_mapping,
|
|
12
|
+
fingerprint_path_tree,
|
|
13
|
+
fingerprint_text,
|
|
14
|
+
inventory_item_id,
|
|
15
|
+
inventory_snapshot_from_detection,
|
|
16
|
+
redact_headers,
|
|
17
|
+
redact_local_path,
|
|
18
|
+
redact_url,
|
|
19
|
+
serialize_inventory_snapshot,
|
|
20
|
+
)
|
|
21
|
+
from codex_plugin_scanner.guard.models import GuardArtifact, HarnessDetection
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class _Detection:
|
|
25
|
+
harness = "hermes"
|
|
26
|
+
artifacts = ()
|
|
27
|
+
|
|
28
|
+
def __init__(self, config_paths: tuple[str, ...]) -> None:
|
|
29
|
+
self.config_paths = config_paths
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def test_inventory_snapshot_serialization_redacts_raw_secrets(tmp_path: Path) -> None:
|
|
33
|
+
skill_dir = tmp_path / "home" / "skills" / "danger"
|
|
34
|
+
skill_dir.mkdir(parents=True)
|
|
35
|
+
(skill_dir / "SKILL.md").write_text("use token sk-testsecretvalue and Authorization: Bearer secret\n")
|
|
36
|
+
|
|
37
|
+
snapshot = GuardAgentInventorySnapshot(
|
|
38
|
+
snapshot_id="snap-hermes-1",
|
|
39
|
+
agent_id="agent-hermes",
|
|
40
|
+
agent_type="hermes",
|
|
41
|
+
generated_at="2026-05-10T00:00:00Z",
|
|
42
|
+
runtime_version="hermes-test",
|
|
43
|
+
items=(
|
|
44
|
+
GuardAgentInventoryItem(
|
|
45
|
+
item_id="skill-danger",
|
|
46
|
+
item_kind="skill",
|
|
47
|
+
display_name="Danger skill",
|
|
48
|
+
source_fingerprint=fingerprint_path_tree(skill_dir, home_dir=tmp_path / "home"),
|
|
49
|
+
content_hash=fingerprint_text((skill_dir / "SKILL.md").read_text()),
|
|
50
|
+
capability_categories=("reads_secrets", "network_egress"),
|
|
51
|
+
metadata={
|
|
52
|
+
"headers": redact_headers({"Authorization": "Bearer secret", "X-Trace": "safe"}),
|
|
53
|
+
"url": redact_url("https://user:pass@example.com/mcp?token=secret&mode=safe"),
|
|
54
|
+
"path": redact_local_path(skill_dir / "SKILL.md", home_dir=tmp_path / "home"),
|
|
55
|
+
},
|
|
56
|
+
),
|
|
57
|
+
),
|
|
58
|
+
findings=(
|
|
59
|
+
GuardAgentInventoryFinding(
|
|
60
|
+
finding_id="finding-1",
|
|
61
|
+
source="hol-detector",
|
|
62
|
+
severity="high",
|
|
63
|
+
confidence="high",
|
|
64
|
+
title="Secret access",
|
|
65
|
+
artifact_id="skill-danger",
|
|
66
|
+
check_id="secret-access",
|
|
67
|
+
),
|
|
68
|
+
),
|
|
69
|
+
redaction_report={"raw_secret_values": False, "redacted_fields": ("headers.authorization", "url.token")},
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
payload = serialize_inventory_snapshot(snapshot)
|
|
73
|
+
encoded = json.dumps(payload, sort_keys=True)
|
|
74
|
+
|
|
75
|
+
assert "sk-testsecretvalue" not in encoded
|
|
76
|
+
assert "Bearer secret" not in encoded
|
|
77
|
+
assert "user:pass" not in encoded
|
|
78
|
+
assert str(tmp_path / "home") not in encoded
|
|
79
|
+
assert payload["items"][0]["metadata"]["headers"]["authorization"] == "present_redacted"
|
|
80
|
+
assert payload["items"][0]["metadata"]["headers"]["x-trace"] == "present"
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def test_inventory_helpers_emit_safe_endpoint_and_stable_hashes(tmp_path: Path) -> None:
|
|
84
|
+
config_a = {"b": [2, 1], "a": {"nested": True}}
|
|
85
|
+
config_b = {"a": {"nested": True}, "b": [2, 1]}
|
|
86
|
+
path_a = tmp_path / "skill-a" / "SKILL.md"
|
|
87
|
+
path_b = tmp_path / "renamed" / "SKILL.md"
|
|
88
|
+
path_a.parent.mkdir()
|
|
89
|
+
path_b.parent.mkdir()
|
|
90
|
+
path_a.write_text("name: demo\n\nRun search query\n")
|
|
91
|
+
path_b.write_text("name: demo\n\nRun search query\n")
|
|
92
|
+
|
|
93
|
+
assert fingerprint_mapping(config_a) == fingerprint_mapping(config_b)
|
|
94
|
+
assert inventory_item_id("hermes", "skill", "demo", path_a.read_text()) == inventory_item_id(
|
|
95
|
+
"hermes",
|
|
96
|
+
"skill",
|
|
97
|
+
"demo",
|
|
98
|
+
path_b.read_text(),
|
|
99
|
+
)
|
|
100
|
+
assert classify_endpoint_host("https://user:pass@example.com/mcp?token=value") == "remote_public"
|
|
101
|
+
assert classify_endpoint_host("http://172.20.4.5:8080/mcp") == "local_private"
|
|
102
|
+
assert classify_endpoint_host("http://[not-an-ip]/mcp") == "remote_public"
|
|
103
|
+
assert redact_url("https://user:pass@example.com/mcp?token=value&mode=safe") == "https://example.com/mcp?token=redacted&mode=safe"
|
|
104
|
+
assert redact_url("https://example.com/mcp?auth=value&mode=safe") == "https://example.com/mcp?auth=redacted&mode=safe"
|
|
105
|
+
assert redact_url("https://example.com/mcp?mode=safe;token=value") == "https://example.com/mcp?mode=safe&token=redacted"
|
|
106
|
+
assert redact_url("http://localhost:${PORT}/mcp?auth=value") == "http://localhost/mcp?auth=redacted"
|
|
107
|
+
assert redact_url("http://[2001:db8::1]:8080/mcp?token=value") == "http://[2001:db8::1]:8080/mcp?token=redacted"
|
|
108
|
+
assert redact_url("http://[not-an-ip]/mcp?token=value") == "malformed_url_redacted"
|
|
109
|
+
assert redact_local_path(path_a, home_dir=tmp_path) == "{home}/skill-a/SKILL.md"
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def test_fingerprint_path_tree_skips_large_ignored_and_path_objects(tmp_path: Path) -> None:
|
|
113
|
+
root = tmp_path / "workspace"
|
|
114
|
+
(root / "node_modules" / "pkg").mkdir(parents=True)
|
|
115
|
+
(root / ".git" / "objects").mkdir(parents=True)
|
|
116
|
+
(root / "safe").mkdir(parents=True)
|
|
117
|
+
(root / "safe" / "config.json").write_text('{"ok": true}\n')
|
|
118
|
+
(root / "node_modules" / "pkg" / "ignored.json").write_text('{"ignored": true}\n')
|
|
119
|
+
(root / ".git" / "objects" / "ignored").write_text("ignored\n")
|
|
120
|
+
|
|
121
|
+
fingerprint = fingerprint_path_tree(root, home_dir=tmp_path)
|
|
122
|
+
(root / "node_modules" / "pkg" / "ignored.json").write_text('{"ignored": "changed"}\n')
|
|
123
|
+
(root / ".git" / "objects" / "ignored").write_text("changed\n")
|
|
124
|
+
fingerprint_after_ignored_changes = fingerprint_path_tree(root, home_dir=tmp_path)
|
|
125
|
+
snapshot = GuardAgentInventorySnapshot(
|
|
126
|
+
snapshot_id="snap-path-object",
|
|
127
|
+
agent_id="agent",
|
|
128
|
+
agent_type="openclaw",
|
|
129
|
+
generated_at="2026-05-10T00:00:00Z",
|
|
130
|
+
items=(
|
|
131
|
+
GuardAgentInventoryItem(
|
|
132
|
+
item_id="item",
|
|
133
|
+
item_kind="repository",
|
|
134
|
+
display_name="Repo",
|
|
135
|
+
source_fingerprint=fingerprint,
|
|
136
|
+
content_hash=fingerprint_text("repo"),
|
|
137
|
+
capability_categories=("reads_files",),
|
|
138
|
+
metadata={"pathObject": root / "safe" / "config.json"},
|
|
139
|
+
),
|
|
140
|
+
),
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
encoded = json.dumps(serialize_inventory_snapshot(snapshot), sort_keys=True)
|
|
144
|
+
|
|
145
|
+
assert fingerprint_after_ignored_changes == fingerprint
|
|
146
|
+
assert str(tmp_path) not in encoded
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def test_inventory_snapshot_deduplicates_config_sources(tmp_path: Path) -> None:
|
|
150
|
+
config_path = tmp_path / ".hermes" / "config.yaml"
|
|
151
|
+
config_path.parent.mkdir(parents=True)
|
|
152
|
+
config_path.write_text("mcp_servers: {}\n")
|
|
153
|
+
|
|
154
|
+
snapshot = inventory_snapshot_from_detection(
|
|
155
|
+
_Detection((str(config_path), str(config_path))),
|
|
156
|
+
generated_at="2026-05-10T00:00:00Z",
|
|
157
|
+
home_dir=tmp_path,
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
assert len(snapshot.sources) == 1
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
def test_inventory_snapshot_extracts_mcp_tool_items(tmp_path: Path) -> None:
|
|
164
|
+
detection = HarnessDetection(
|
|
165
|
+
harness="hermes",
|
|
166
|
+
installed=True,
|
|
167
|
+
command_available=False,
|
|
168
|
+
config_paths=(),
|
|
169
|
+
artifacts=(
|
|
170
|
+
GuardArtifact(
|
|
171
|
+
artifact_id="hermes:mcp:json:tools",
|
|
172
|
+
name="tools",
|
|
173
|
+
harness="hermes",
|
|
174
|
+
artifact_type="mcp_server",
|
|
175
|
+
source_scope="global",
|
|
176
|
+
config_path=str(tmp_path / ".hermes" / "mcp_servers.json"),
|
|
177
|
+
metadata={
|
|
178
|
+
"tools": [
|
|
179
|
+
{
|
|
180
|
+
"name": "search_docs",
|
|
181
|
+
"title": "Search docs",
|
|
182
|
+
"description": "Read-only search over project documentation.",
|
|
183
|
+
"inputSchema": {"type": "object", "properties": {"query": {"type": "string"}}},
|
|
184
|
+
"outputSchema": {"type": "object"},
|
|
185
|
+
"annotations": {"readOnlyHint": True, "destructiveHint": False},
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "delete_file",
|
|
189
|
+
"description": "Delete a file from disk.",
|
|
190
|
+
"inputSchema": {"type": "object", "properties": {"path": {"type": "string"}}},
|
|
191
|
+
"annotations": {"destructiveHint": True},
|
|
192
|
+
},
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
),
|
|
196
|
+
),
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
snapshot = inventory_snapshot_from_detection(
|
|
200
|
+
detection,
|
|
201
|
+
generated_at="2026-05-10T00:00:00Z",
|
|
202
|
+
home_dir=tmp_path,
|
|
203
|
+
)
|
|
204
|
+
items = {item.item_id: item for item in snapshot.items}
|
|
205
|
+
|
|
206
|
+
assert "hermes:mcp:json:tools:tool:search_docs" in items
|
|
207
|
+
assert "hermes:mcp:json:tools:tool:delete_file" in items
|
|
208
|
+
assert items["hermes:mcp:json:tools:tool:search_docs"].capability_categories == ("reads_files",)
|
|
209
|
+
assert "writes_files" in items["hermes:mcp:json:tools:tool:delete_file"].capability_categories
|
|
210
|
+
assert items["hermes:mcp:json:tools:tool:delete_file"].risk_level == "high"
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def test_inventory_snapshot_handles_missing_mcp_tool_schema_and_scale(tmp_path: Path) -> None:
|
|
214
|
+
tools = [{"name": f"tool_{index}", "description": "No schema available."} for index in range(500)]
|
|
215
|
+
detection = HarnessDetection(
|
|
216
|
+
harness="openclaw",
|
|
217
|
+
installed=True,
|
|
218
|
+
command_available=False,
|
|
219
|
+
config_paths=(),
|
|
220
|
+
artifacts=(
|
|
221
|
+
GuardArtifact(
|
|
222
|
+
artifact_id="openclaw:mcp:bulk",
|
|
223
|
+
name="bulk",
|
|
224
|
+
harness="openclaw",
|
|
225
|
+
artifact_type="mcp_server",
|
|
226
|
+
source_scope="global",
|
|
227
|
+
config_path=str(tmp_path / ".openclaw" / "openclaw.json"),
|
|
228
|
+
metadata={"tools": tools},
|
|
229
|
+
),
|
|
230
|
+
),
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
snapshot = inventory_snapshot_from_detection(
|
|
234
|
+
detection,
|
|
235
|
+
generated_at="2026-05-10T00:00:00Z",
|
|
236
|
+
home_dir=tmp_path,
|
|
237
|
+
)
|
|
238
|
+
tool_items = [item for item in snapshot.items if item.item_kind == "mcp_tool"]
|
|
239
|
+
|
|
240
|
+
assert len(tool_items) == 500
|
|
241
|
+
assert all(item.capability_categories == ("unknown",) for item in tool_items)
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
def test_inventory_snapshot_preserves_empty_mcp_tool_schemas(tmp_path: Path) -> None:
|
|
245
|
+
detection = HarnessDetection(
|
|
246
|
+
harness="hermes",
|
|
247
|
+
installed=True,
|
|
248
|
+
command_available=False,
|
|
249
|
+
config_paths=(),
|
|
250
|
+
artifacts=(
|
|
251
|
+
GuardArtifact(
|
|
252
|
+
artifact_id="hermes:mcp:empty-schema",
|
|
253
|
+
name="empty-schema",
|
|
254
|
+
harness="hermes",
|
|
255
|
+
artifact_type="mcp_server",
|
|
256
|
+
source_scope="global",
|
|
257
|
+
config_path=str(tmp_path / ".hermes" / "mcp_servers.json"),
|
|
258
|
+
metadata={"tools": [{"name": "ping", "inputSchema": {}, "output_schema": {}}]},
|
|
259
|
+
),
|
|
260
|
+
),
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
snapshot = inventory_snapshot_from_detection(
|
|
264
|
+
detection,
|
|
265
|
+
generated_at="2026-05-10T00:00:00Z",
|
|
266
|
+
home_dir=tmp_path,
|
|
267
|
+
)
|
|
268
|
+
tool = next(item for item in snapshot.items if item.item_kind == "mcp_tool")
|
|
269
|
+
|
|
270
|
+
assert tool.metadata["schemaPresent"] is True
|
|
271
|
+
assert tool.metadata["inputSchemaHash"] == fingerprint_mapping({})
|
|
272
|
+
assert tool.metadata["outputSchemaHash"] == fingerprint_mapping({})
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
def test_inventory_snapshot_mcp_capabilities_avoid_substring_false_positives(tmp_path: Path) -> None:
|
|
276
|
+
detection = HarnessDetection(
|
|
277
|
+
harness="hermes",
|
|
278
|
+
installed=True,
|
|
279
|
+
command_available=False,
|
|
280
|
+
config_paths=(),
|
|
281
|
+
artifacts=(
|
|
282
|
+
GuardArtifact(
|
|
283
|
+
artifact_id="hermes:mcp:false-positive",
|
|
284
|
+
name="false-positive",
|
|
285
|
+
harness="hermes",
|
|
286
|
+
artifact_type="mcp_server",
|
|
287
|
+
source_scope="global",
|
|
288
|
+
config_path=str(tmp_path / ".hermes" / "mcp_servers.json"),
|
|
289
|
+
metadata={
|
|
290
|
+
"tools": [
|
|
291
|
+
{
|
|
292
|
+
"name": "thread_listener",
|
|
293
|
+
"description": "Returns execution_id for listened events.",
|
|
294
|
+
"inputSchema": {"type": "object", "properties": {"execution_id": {"type": "string"}}},
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "credential_probe",
|
|
298
|
+
"inputSchema": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"properties": {
|
|
301
|
+
"api_key": {"type": "string"},
|
|
302
|
+
"apiKey": {"type": "string"},
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
),
|
|
309
|
+
),
|
|
310
|
+
)
|
|
311
|
+
|
|
312
|
+
snapshot = inventory_snapshot_from_detection(
|
|
313
|
+
detection,
|
|
314
|
+
generated_at="2026-05-10T00:00:00Z",
|
|
315
|
+
home_dir=tmp_path,
|
|
316
|
+
)
|
|
317
|
+
tool_items = {item.display_name: item for item in snapshot.items if item.item_kind == "mcp_tool"}
|
|
318
|
+
|
|
319
|
+
assert tool_items["thread_listener"].capability_categories == ("unknown",)
|
|
320
|
+
assert tool_items["credential_probe"].capability_categories == ("reads_secrets",)
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
def test_inventory_snapshot_mcp_capabilities_ignore_schema_boilerplate(tmp_path: Path) -> None:
|
|
324
|
+
detection = HarnessDetection(
|
|
325
|
+
harness="hermes",
|
|
326
|
+
installed=True,
|
|
327
|
+
command_available=False,
|
|
328
|
+
config_paths=(),
|
|
329
|
+
artifacts=(
|
|
330
|
+
GuardArtifact(
|
|
331
|
+
artifact_id="hermes:mcp:schema-boilerplate",
|
|
332
|
+
name="schema-boilerplate",
|
|
333
|
+
harness="hermes",
|
|
334
|
+
artifact_type="mcp_server",
|
|
335
|
+
source_scope="global",
|
|
336
|
+
config_path=str(tmp_path / ".hermes" / "mcp_servers.json"),
|
|
337
|
+
metadata={
|
|
338
|
+
"tools": [
|
|
339
|
+
{
|
|
340
|
+
"name": "local_formatter",
|
|
341
|
+
"inputSchema": {
|
|
342
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
343
|
+
"type": "object",
|
|
344
|
+
"properties": {"format": {"type": "string"}},
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "remote_probe",
|
|
349
|
+
"inputSchema": {
|
|
350
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
351
|
+
"type": "object",
|
|
352
|
+
"properties": {"url": {"type": "string"}},
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
]
|
|
356
|
+
},
|
|
357
|
+
),
|
|
358
|
+
),
|
|
359
|
+
)
|
|
360
|
+
|
|
361
|
+
snapshot = inventory_snapshot_from_detection(
|
|
362
|
+
detection,
|
|
363
|
+
generated_at="2026-05-10T00:00:00Z",
|
|
364
|
+
home_dir=tmp_path,
|
|
365
|
+
)
|
|
366
|
+
tool_items = {item.display_name: item for item in snapshot.items if item.item_kind == "mcp_tool"}
|
|
367
|
+
|
|
368
|
+
assert tool_items["local_formatter"].capability_categories == ("unknown",)
|
|
369
|
+
assert tool_items["remote_probe"].capability_categories == ("network_egress",)
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
def test_inventory_snapshot_mcp_tool_fallback_skips_non_schema_tool_allowlist(tmp_path: Path) -> None:
|
|
373
|
+
detection = HarnessDetection(
|
|
374
|
+
harness="hermes",
|
|
375
|
+
installed=True,
|
|
376
|
+
command_available=False,
|
|
377
|
+
config_paths=(),
|
|
378
|
+
artifacts=(
|
|
379
|
+
GuardArtifact(
|
|
380
|
+
artifact_id="hermes:mcp:tool-schema-fallback",
|
|
381
|
+
name="tool-schema-fallback",
|
|
382
|
+
harness="hermes",
|
|
383
|
+
artifact_type="mcp_server",
|
|
384
|
+
source_scope="global",
|
|
385
|
+
config_path=str(tmp_path / ".hermes" / "mcp_servers.json"),
|
|
386
|
+
metadata={
|
|
387
|
+
"tools": ["*"],
|
|
388
|
+
"tool_schemas": [
|
|
389
|
+
{
|
|
390
|
+
"name": "search_repo",
|
|
391
|
+
"description": "Search local project files.",
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
},
|
|
395
|
+
),
|
|
396
|
+
),
|
|
397
|
+
)
|
|
398
|
+
|
|
399
|
+
snapshot = inventory_snapshot_from_detection(
|
|
400
|
+
detection,
|
|
401
|
+
generated_at="2026-05-10T00:00:00Z",
|
|
402
|
+
home_dir=tmp_path,
|
|
403
|
+
)
|
|
404
|
+
tool_items = [item for item in snapshot.items if item.item_kind == "mcp_tool"]
|
|
405
|
+
|
|
406
|
+
assert len(tool_items) == 1
|
|
407
|
+
assert tool_items[0].display_name == "search_repo"
|
|
408
|
+
assert tool_items[0].capability_categories == ("reads_files",)
|