plugin-scanner 2.0.125__tar.gz → 2.0.126__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.125 → plugin_scanner-2.0.126}/PKG-INFO +1 -1
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/pyproject.toml +1 -1
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/pyproject.toml.bak +1 -1
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/config.py +1 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/server.py +39 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/store.py +7 -0
- plugin_scanner-2.0.126/src/codex_plugin_scanner/guard/store_evidence.py +217 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/version.py +1 -1
- plugin_scanner-2.0.126/tests/test_guard_evidence_store.py +286 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.clusterfuzzlite/Dockerfile +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.clusterfuzzlite/build.sh +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.clusterfuzzlite/project.yaml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.clusterfuzzlite/requirements-atheris.txt +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.dockerignore +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/CODEOWNERS +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/dependabot.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/workflows/ci.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/workflows/codeql.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/workflows/dependabot-uv-lock.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/workflows/fuzz.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/workflows/harness-smoke.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/workflows/publish.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/workflows/scorecard.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.gitignore +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.pre-commit-hooks.yaml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/CONTRIBUTING.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/Dockerfile +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/LICENSE +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/README.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/SECURITY.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/index.html +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/package.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/pnpm-lock.yaml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/public/apple-touch-icon.png +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/public/brand/Logo_Icon_Dark.png +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/public/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/public/favicon-16x16.png +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/public/favicon-32x32.png +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/public/favicon.ico +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/app.tsx +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/approval-center-layout.tsx +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/approval-center-primitives.tsx +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/approval-center-utils.ts +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/data-flow-evidence-card.tsx +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/fleet-workspace.tsx +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/guard-api.test.ts +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/guard-api.ts +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/guard-demo.ts +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/guard-types.ts +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/main.tsx +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/receipts-workspace.tsx +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/runtime-overview.tsx +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/settings-workspace.tsx +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/styles.css +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/src/vite-env.d.ts +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/tsconfig.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/dashboard/vite.config.ts +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/docker-requirements.txt +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/docs/guard/approval-audit.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/docs/guard/architecture.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/docs/guard/get-started.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/docs/guard/harness-support.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/docs/guard/local-vs-cloud.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/docs/guard/testing-matrix.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/docs/trust/mcp-trust-draft.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/docs/trust/plugin-trust-draft.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/docs/trust/skill-trust-local.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/fuzzers/manifest_fuzzer.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/requirements.txt +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/schemas/plugin-quality.v1.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/schemas/scan-result.v1.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/schemas/verify-result.v1.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/action_runner.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/argparse_utils.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/best_practices.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/claude.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/code_quality.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/ecosystem_common.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/gemini.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/manifest.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/manifest_support.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/marketplace.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/mcp_security.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/opencode.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/operational_security.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/security.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/checks/skill_security.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/cli.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/cli_ui.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/config.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/ecosystems/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/ecosystems/base.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/ecosystems/claude.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/ecosystems/codex.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/ecosystems/detect.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/ecosystems/gemini.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/ecosystems/opencode.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/ecosystems/registry.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/ecosystems/types.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/github_reporting.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/access_graph_events.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/antigravity.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/base.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/claude_code.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/cloud_identity.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/codex.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/copilot.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/cursor.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/gemini.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/hermes.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/mcp_servers.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/openclaw.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/openclaw_config.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/openclaw_support.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/opencode.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/adapters/opencode_artifacts.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/advisory_model.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/approvals.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/bridge/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/capabilities.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/cli/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/cli/approval_commands.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/cli/bootstrap.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/cli/commands.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/cli/connect_flow.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/cli/install_commands.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/cli/product.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/cli/prompt.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/cli/render.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/cli/update_commands.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/codex_config.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/consumer/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/consumer/service.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/client.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/manager.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/static/apple-touch-icon.png +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/static/assets/guard-dashboard.js +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/static/assets/index.css +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Icon_Dark.png +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/static/favicon-16x16.png +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/static/favicon-32x32.png +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/static/favicon.ico +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/static/index.html +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/edge_events.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/incident.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/launcher.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/mcp_tool_calls.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/models.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/policy/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/policy/engine.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/protect.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/proxy/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/proxy/remote.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/proxy/runtime_mcp.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/proxy/stdio.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/receipts/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/receipts/manager.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/redaction.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/risk.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/actions.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/data_flow.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/data_flow_rules.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/data_flow_variables.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/decisions.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/detectors.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/mcp_protection.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/prompt_injection.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/runner.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/safe_decode.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/sandbox.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/secret_file_requests.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/secret_sensitivity.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/secret_sources.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/shell_commands.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/signals.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/skill_protection.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/supply_chain.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/surface_server.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/runtime/temp_files.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/schemas/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/schemas/consumer_mode.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/schemas/guard_event_v1.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/schemas/surface_server.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/shims.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/store_approvals.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/store_connect.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/types.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/integrations/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/integrations/cisco_mcp_scanner.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/integrations/cisco_skill_scanner.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/lint_fixes.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/marketplace_support.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/models.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/path_support.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/policy.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/quality_artifact.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/repo_detect.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/reporting.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/rules/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/rules/registry.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/rules/specs.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/scanner.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/submission.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/suppressions.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/trust_domain_scoring.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/trust_helpers.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/trust_mcp_scoring.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/trust_models.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/trust_plugin_scoring.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/trust_scoring.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/trust_skill_scoring.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/trust_specs.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/verification.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/conftest.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/__init__.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/bad-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/bad-plugin/.mcp.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/bad-plugin/secrets.js +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/claude-plugin-good/.claude-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/claude-plugin-good/LICENSE +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/claude-plugin-good/README.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/claude-plugin-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/claude-plugin-good/hooks/hooks.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/claude-plugin-good/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/code-quality-bad/evil.js +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/code-quality-bad/inject.js +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/gemini-extension-good/GEMINI.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/gemini-extension-good/LICENSE +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/gemini-extension-good/README.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/gemini-extension-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/gemini-extension-good/commands/hello.toml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/gemini-extension-good/gemini-extension.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/good-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/good-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/good-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/good-plugin/README.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/good-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/good-plugin/assets/icon.svg +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/good-plugin/assets/logo.svg +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/good-plugin/assets/screenshot.svg +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/good-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/guard-codex-malicious-mcp/.codex/config.toml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/hermes-plugin-evil/config.yaml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/hermes-plugin-evil/mcp_servers.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/hermes-plugin-evil/skills/security/malicious/SKILL.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/SKILL.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/references/api-setup.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/scripts/deploy.sh +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/hermes-plugin-evil/skills/utils/benign/SKILL.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/malformed-json/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/malicious-skill-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/malicious-skill-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/malicious-skill-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/malicious-skill-plugin/README.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/malicious-skill-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/malicious-skill-plugin/skills/leaky-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/mcp-canary-server.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/minimal-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/missing-fields/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/mit-license/LICENSE +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-ecosystem-repo/codex-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-ecosystem-repo/codex-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-ecosystem-repo/codex-plugin/README.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-ecosystem-repo/codex-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-ecosystem-repo/gemini-ext/README.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-ecosystem-repo/gemini-ext/gemini-extension.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-plugin-repo/.agents/plugins/marketplace.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/README.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/no-version/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/opencode-good/.opencode/commands/hello.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/opencode-good/.opencode/plugins/example.ts +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/opencode-good/LICENSE +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/opencode-good/README.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/opencode-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/opencode-good/opencode.jsonc +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/skills-missing-dir/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/skills-no-frontmatter/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/skills-no-frontmatter/skills/bad-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/supply-chain/benign-npm-package.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/supply-chain/benign-pnpm-package.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/supply-chain/benign-pyproject.toml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/supply-chain/malicious-Dockerfile +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/supply-chain/malicious-action.yml +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/supply-chain/malicious-npm-package.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/supply-chain/malicious-setup.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/with-marketplace/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/with-marketplace/marketplace-broken.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/fixtures/with-marketplace/marketplace.json +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test-trust-scoring.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test-trust-specs.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_action_runner.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_best_practices.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_cisco_install_surfaces.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_cli.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_code_quality.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_config.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_coverage_remaining.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_ecosystems.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_edge_cases.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_final_coverage.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_access_graph.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_approval_store_scale.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_approvals.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_bootstrap.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_capabilities.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_claude_adapter.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_cli.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_cloud_local_sync.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_codex_e2e.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_codex_install.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_codex_proxy.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_config_paths.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_connect_flow.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_consumer_mode.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_copilot_adapter.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_copilot_proxy.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_daemon_manager.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_data_flow.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_event_schema_v1.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_events.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_launch_env.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_mcp_protection.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_opencode_proxy.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_product_flow.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_prompt_injection.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_protect.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_render.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_risk.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_runtime.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_runtime_action_harnesses.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_runtime_actions.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_runtime_decisions.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_runtime_detectors.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_runtime_signals.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_safe_decode.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_sandbox.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_skill_protection.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_store_migrations.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_supply_chain.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_surface_server.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_guard_verdicts.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_hermes_adapter.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_integration.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_lint_fixes.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_live_cisco_smoke.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_manifest.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_marketplace.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_mcp_security.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_openclaw_adapter.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_operational_security.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_policy.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_quality_artifact.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_rule_registry.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_scanner.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_schema_contracts.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_security.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_security_ops.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_skill_security.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_submission.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_trust_scoring.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_trust_specs.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_verification.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/tests/test_versioning.py +0 -0
- {plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/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.126
|
|
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.126"
|
|
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.126"
|
|
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"
|
|
@@ -254,6 +254,7 @@ class GuardConfig:
|
|
|
254
254
|
harness_actions: dict[str, GuardAction] | None = None
|
|
255
255
|
publisher_actions: dict[str, GuardAction] | None = None
|
|
256
256
|
artifact_actions: dict[str, GuardAction] | None = None
|
|
257
|
+
evidence_retain_days: int = 90
|
|
257
258
|
|
|
258
259
|
def resolve_action_override(
|
|
259
260
|
self,
|
{plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/src/codex_plugin_scanner/guard/daemon/server.py
RENAMED
|
@@ -23,6 +23,11 @@ from ..config import editable_guard_settings, load_guard_config, update_guard_se
|
|
|
23
23
|
from ..models import DECISION_SCOPE_VALUES, GUARD_ACTION_VALUES
|
|
24
24
|
from ..runtime.surface_server import GuardSurfaceRuntime
|
|
25
25
|
from ..store import GuardStore
|
|
26
|
+
from ..store_evidence import (
|
|
27
|
+
count_evidence,
|
|
28
|
+
export_evidence_json,
|
|
29
|
+
list_evidence,
|
|
30
|
+
)
|
|
26
31
|
from .manager import (
|
|
27
32
|
GUARD_DAEMON_COMPATIBILITY_VERSION,
|
|
28
33
|
clear_guard_daemon_state,
|
|
@@ -182,6 +187,40 @@ class _GuardDaemonHandler(BaseHTTPRequestHandler):
|
|
|
182
187
|
{"items": store.list_policy_decisions(harness=harness if isinstance(harness, str) else None)}
|
|
183
188
|
)
|
|
184
189
|
return
|
|
190
|
+
if parsed.path == "/v1/evidence":
|
|
191
|
+
query = parse_qs(parsed.query)
|
|
192
|
+
harness_q = query.get("harness", [None])[-1]
|
|
193
|
+
category_q = query.get("category", [None])[-1]
|
|
194
|
+
severity_q = query.get("severity", [None])[-1]
|
|
195
|
+
before_q = query.get("before", [None])[-1]
|
|
196
|
+
limit_q = query.get("limit", ["100"])[-1]
|
|
197
|
+
try:
|
|
198
|
+
limit_v = min(int(limit_q), 500)
|
|
199
|
+
except (ValueError, TypeError):
|
|
200
|
+
limit_v = 100
|
|
201
|
+
with store._connect() as conn:
|
|
202
|
+
records = list_evidence(
|
|
203
|
+
conn,
|
|
204
|
+
harness=harness_q if isinstance(harness_q, str) else None,
|
|
205
|
+
category=category_q if isinstance(category_q, str) else None,
|
|
206
|
+
severity=severity_q if isinstance(severity_q, str) else None,
|
|
207
|
+
before_cursor=before_q if isinstance(before_q, str) else None,
|
|
208
|
+
limit=limit_v,
|
|
209
|
+
)
|
|
210
|
+
total = count_evidence(conn)
|
|
211
|
+
self._write_json({
|
|
212
|
+
"items": [vars(r) for r in records],
|
|
213
|
+
"total": total,
|
|
214
|
+
})
|
|
215
|
+
return
|
|
216
|
+
if parsed.path == "/v1/evidence/export":
|
|
217
|
+
with store._connect() as conn:
|
|
218
|
+
payload = export_evidence_json(conn, limit=10_000)
|
|
219
|
+
self.send_response(200)
|
|
220
|
+
self.send_header("Content-Type", "application/json")
|
|
221
|
+
self.end_headers()
|
|
222
|
+
self.wfile.write(payload.encode("utf-8"))
|
|
223
|
+
return
|
|
185
224
|
if len(path_parts) == 4 and path_parts[:3] == ["v1", "artifacts", path_parts[2]] and path_parts[3] == "diff":
|
|
186
225
|
query = parse_qs(parsed.query)
|
|
187
226
|
harness = query.get("harness", [None])[-1]
|
|
@@ -71,6 +71,10 @@ from .store_connect import (
|
|
|
71
71
|
from .store_connect import (
|
|
72
72
|
mark_connect_result as persist_connect_result,
|
|
73
73
|
)
|
|
74
|
+
from .store_evidence import (
|
|
75
|
+
evidence_index_statements,
|
|
76
|
+
evidence_schema_statement,
|
|
77
|
+
)
|
|
74
78
|
from .types import CapabilitySet
|
|
75
79
|
|
|
76
80
|
_SYNC_TOKEN_REF = "guard-cloud-token"
|
|
@@ -646,10 +650,13 @@ class GuardStore:
|
|
|
646
650
|
connect_request_schema_statement(),
|
|
647
651
|
connect_state_schema_statement(),
|
|
648
652
|
approval_schema_statement(),
|
|
653
|
+
evidence_schema_statement(),
|
|
649
654
|
)
|
|
650
655
|
with self._connect() as connection:
|
|
651
656
|
for statement in statements:
|
|
652
657
|
connection.execute(statement)
|
|
658
|
+
for idx_stmt in evidence_index_statements():
|
|
659
|
+
connection.execute(idx_stmt)
|
|
653
660
|
self._ensure_policy_column(connection, "publisher", "text")
|
|
654
661
|
self._ensure_policy_column(connection, "artifact_hash", "text")
|
|
655
662
|
self._ensure_policy_column(connection, "owner", "text")
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"""Phase 15: Evidence store — table, indexes, CRUD, search, export, compaction."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import sqlite3
|
|
7
|
+
from dataclasses import dataclass, field
|
|
8
|
+
from datetime import datetime, timedelta, timezone
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _now_iso() -> str:
|
|
12
|
+
return datetime.now(timezone.utc).isoformat(timespec="microseconds").replace("+00:00", "Z")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@dataclass(frozen=True, slots=True)
|
|
16
|
+
class EvidenceRecord:
|
|
17
|
+
evidence_id: str
|
|
18
|
+
action_id: str
|
|
19
|
+
request_id: str
|
|
20
|
+
harness: str
|
|
21
|
+
workspace: str
|
|
22
|
+
signal_id: str
|
|
23
|
+
category: str
|
|
24
|
+
severity: str
|
|
25
|
+
confidence: float
|
|
26
|
+
summary: str
|
|
27
|
+
details: dict[str, object] = field(default_factory=dict)
|
|
28
|
+
created_at: str = field(default_factory=_now_iso)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def evidence_schema_statement() -> str:
|
|
32
|
+
return """
|
|
33
|
+
create table if not exists guard_evidence (
|
|
34
|
+
evidence_id text not null primary key,
|
|
35
|
+
action_id text not null default '',
|
|
36
|
+
request_id text not null default '',
|
|
37
|
+
harness text not null default '',
|
|
38
|
+
workspace text not null default '',
|
|
39
|
+
signal_id text not null default '',
|
|
40
|
+
category text not null default '',
|
|
41
|
+
severity text not null default '',
|
|
42
|
+
confidence real not null default 0.0,
|
|
43
|
+
summary text not null default '',
|
|
44
|
+
details_json text not null default '{}',
|
|
45
|
+
created_at text not null
|
|
46
|
+
)
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def evidence_index_statements() -> list[str]:
|
|
51
|
+
return [
|
|
52
|
+
"create index if not exists idx_evidence_created on guard_evidence(created_at desc)",
|
|
53
|
+
"create index if not exists idx_evidence_request on guard_evidence(request_id)",
|
|
54
|
+
"create index if not exists idx_evidence_action on guard_evidence(action_id)",
|
|
55
|
+
"create index if not exists idx_evidence_category_severity on guard_evidence(category, severity)",
|
|
56
|
+
"create index if not exists idx_evidence_harness_workspace on guard_evidence(harness, workspace)",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def _row_to_record(row: sqlite3.Row) -> EvidenceRecord:
|
|
61
|
+
try:
|
|
62
|
+
details: dict[str, object] = json.loads(row["details_json"])
|
|
63
|
+
except (json.JSONDecodeError, TypeError):
|
|
64
|
+
details = {}
|
|
65
|
+
return EvidenceRecord(
|
|
66
|
+
evidence_id=row["evidence_id"],
|
|
67
|
+
action_id=row["action_id"],
|
|
68
|
+
request_id=row["request_id"],
|
|
69
|
+
harness=row["harness"],
|
|
70
|
+
workspace=row["workspace"],
|
|
71
|
+
signal_id=row["signal_id"],
|
|
72
|
+
category=row["category"],
|
|
73
|
+
severity=row["severity"],
|
|
74
|
+
confidence=row["confidence"],
|
|
75
|
+
summary=row["summary"],
|
|
76
|
+
details=details,
|
|
77
|
+
created_at=row["created_at"],
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def store_evidence(conn: sqlite3.Connection, record: EvidenceRecord) -> EvidenceRecord:
|
|
82
|
+
conn.execute(
|
|
83
|
+
"""
|
|
84
|
+
insert or replace into guard_evidence
|
|
85
|
+
(evidence_id, action_id, request_id, harness, workspace, signal_id,
|
|
86
|
+
category, severity, confidence, summary, details_json, created_at)
|
|
87
|
+
values (?,?,?,?,?,?,?,?,?,?,?,?)
|
|
88
|
+
""",
|
|
89
|
+
(
|
|
90
|
+
record.evidence_id,
|
|
91
|
+
record.action_id,
|
|
92
|
+
record.request_id,
|
|
93
|
+
record.harness,
|
|
94
|
+
record.workspace,
|
|
95
|
+
record.signal_id,
|
|
96
|
+
record.category,
|
|
97
|
+
record.severity,
|
|
98
|
+
record.confidence,
|
|
99
|
+
record.summary,
|
|
100
|
+
json.dumps(record.details),
|
|
101
|
+
record.created_at,
|
|
102
|
+
),
|
|
103
|
+
)
|
|
104
|
+
conn.commit()
|
|
105
|
+
return record
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def list_evidence(
|
|
109
|
+
conn: sqlite3.Connection,
|
|
110
|
+
*,
|
|
111
|
+
harness: str | None = None,
|
|
112
|
+
category: str | None = None,
|
|
113
|
+
severity: str | None = None,
|
|
114
|
+
request_id: str | None = None,
|
|
115
|
+
before_cursor: str | None = None,
|
|
116
|
+
limit: int = 100,
|
|
117
|
+
) -> list[EvidenceRecord]:
|
|
118
|
+
clauses: list[str] = []
|
|
119
|
+
params: list[object] = []
|
|
120
|
+
|
|
121
|
+
if harness is not None:
|
|
122
|
+
clauses.append("harness = ?")
|
|
123
|
+
params.append(harness)
|
|
124
|
+
if category is not None:
|
|
125
|
+
clauses.append("category = ?")
|
|
126
|
+
params.append(category)
|
|
127
|
+
if severity is not None:
|
|
128
|
+
clauses.append("severity = ?")
|
|
129
|
+
params.append(severity)
|
|
130
|
+
if request_id is not None:
|
|
131
|
+
clauses.append("request_id = ?")
|
|
132
|
+
params.append(request_id)
|
|
133
|
+
if before_cursor is not None:
|
|
134
|
+
clauses.append("created_at < ?")
|
|
135
|
+
params.append(before_cursor)
|
|
136
|
+
|
|
137
|
+
where = f"where {' and '.join(clauses)}" if clauses else ""
|
|
138
|
+
params.append(limit)
|
|
139
|
+
rows = conn.execute(
|
|
140
|
+
f"select * from guard_evidence {where} order by created_at desc limit ?",
|
|
141
|
+
params,
|
|
142
|
+
).fetchall()
|
|
143
|
+
return [_row_to_record(r) for r in rows]
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def search_evidence(
|
|
147
|
+
conn: sqlite3.Connection,
|
|
148
|
+
query: str,
|
|
149
|
+
*,
|
|
150
|
+
limit: int = 100,
|
|
151
|
+
) -> list[EvidenceRecord]:
|
|
152
|
+
pattern = f"%{query}%"
|
|
153
|
+
rows = conn.execute(
|
|
154
|
+
"select * from guard_evidence where lower(summary) like lower(?) order by created_at desc limit ?",
|
|
155
|
+
(pattern, limit),
|
|
156
|
+
).fetchall()
|
|
157
|
+
return [_row_to_record(r) for r in rows]
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
def count_evidence(
|
|
161
|
+
conn: sqlite3.Connection,
|
|
162
|
+
*,
|
|
163
|
+
harness: str | None = None,
|
|
164
|
+
category: str | None = None,
|
|
165
|
+
) -> int:
|
|
166
|
+
clauses: list[str] = []
|
|
167
|
+
params: list[object] = []
|
|
168
|
+
if harness is not None:
|
|
169
|
+
clauses.append("harness = ?")
|
|
170
|
+
params.append(harness)
|
|
171
|
+
if category is not None:
|
|
172
|
+
clauses.append("category = ?")
|
|
173
|
+
params.append(category)
|
|
174
|
+
where = f"where {' and '.join(clauses)}" if clauses else ""
|
|
175
|
+
row = conn.execute(f"select count(*) from guard_evidence {where}", params).fetchone()
|
|
176
|
+
return int(row[0])
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
def export_evidence_json(
|
|
180
|
+
conn: sqlite3.Connection,
|
|
181
|
+
*,
|
|
182
|
+
limit: int = 10_000,
|
|
183
|
+
) -> str:
|
|
184
|
+
records = list_evidence(conn, limit=limit)
|
|
185
|
+
return json.dumps(
|
|
186
|
+
[
|
|
187
|
+
{
|
|
188
|
+
"evidence_id": r.evidence_id,
|
|
189
|
+
"action_id": r.action_id,
|
|
190
|
+
"request_id": r.request_id,
|
|
191
|
+
"harness": r.harness,
|
|
192
|
+
"workspace": r.workspace,
|
|
193
|
+
"signal_id": r.signal_id,
|
|
194
|
+
"category": r.category,
|
|
195
|
+
"severity": r.severity,
|
|
196
|
+
"confidence": r.confidence,
|
|
197
|
+
"summary": r.summary,
|
|
198
|
+
"created_at": r.created_at,
|
|
199
|
+
}
|
|
200
|
+
for r in records
|
|
201
|
+
],
|
|
202
|
+
indent=2,
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
def compact_evidence(conn: sqlite3.Connection, *, retain_days: int = 90) -> int:
|
|
207
|
+
cutoff = (
|
|
208
|
+
(datetime.now(timezone.utc) - timedelta(days=retain_days))
|
|
209
|
+
.isoformat(timespec="microseconds")
|
|
210
|
+
.replace("+00:00", "Z")
|
|
211
|
+
)
|
|
212
|
+
cursor = conn.execute(
|
|
213
|
+
"delete from guard_evidence where created_at < ?",
|
|
214
|
+
(cutoff,),
|
|
215
|
+
)
|
|
216
|
+
conn.commit()
|
|
217
|
+
return cursor.rowcount
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
"""Phase 15: Evidence store scale — TDD tests."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import sqlite3
|
|
7
|
+
import time
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
from codex_plugin_scanner.guard.store_evidence import (
|
|
11
|
+
EvidenceRecord,
|
|
12
|
+
compact_evidence,
|
|
13
|
+
count_evidence,
|
|
14
|
+
evidence_index_statements,
|
|
15
|
+
evidence_schema_statement,
|
|
16
|
+
export_evidence_json,
|
|
17
|
+
list_evidence,
|
|
18
|
+
search_evidence,
|
|
19
|
+
store_evidence,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _db(tmp_path: Path) -> sqlite3.Connection:
|
|
24
|
+
conn = sqlite3.connect(str(tmp_path / "guard.db"))
|
|
25
|
+
conn.row_factory = sqlite3.Row
|
|
26
|
+
conn.execute("pragma journal_mode=wal")
|
|
27
|
+
conn.execute(evidence_schema_statement())
|
|
28
|
+
for stmt in evidence_index_statements():
|
|
29
|
+
conn.execute(stmt)
|
|
30
|
+
conn.commit()
|
|
31
|
+
return conn
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _rec(**kw: object) -> EvidenceRecord:
|
|
35
|
+
defaults: dict[str, object] = {
|
|
36
|
+
"evidence_id": "e1",
|
|
37
|
+
"action_id": "a1",
|
|
38
|
+
"request_id": "r1",
|
|
39
|
+
"harness": "codex",
|
|
40
|
+
"workspace": "/ws",
|
|
41
|
+
"signal_id": "s1",
|
|
42
|
+
"category": "exfiltration",
|
|
43
|
+
"severity": "high",
|
|
44
|
+
"confidence": 0.9,
|
|
45
|
+
"summary": "secret leaked",
|
|
46
|
+
"details": {"key": "val"},
|
|
47
|
+
}
|
|
48
|
+
defaults.update(kw)
|
|
49
|
+
return EvidenceRecord(**defaults) # type: ignore[arg-type]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class TestSchema:
|
|
53
|
+
def test_schema_creates_table(self, tmp_path: Path) -> None:
|
|
54
|
+
conn = _db(tmp_path)
|
|
55
|
+
rows = conn.execute("select name from sqlite_master where type='table' and name='guard_evidence'").fetchall()
|
|
56
|
+
assert rows
|
|
57
|
+
|
|
58
|
+
def test_schema_idempotent(self, tmp_path: Path) -> None:
|
|
59
|
+
conn = _db(tmp_path)
|
|
60
|
+
conn.execute(evidence_schema_statement())
|
|
61
|
+
rows = conn.execute("select name from sqlite_master where type='table' and name='guard_evidence'").fetchall()
|
|
62
|
+
assert len(rows) == 1
|
|
63
|
+
|
|
64
|
+
def test_indexes_created(self, tmp_path: Path) -> None:
|
|
65
|
+
conn = _db(tmp_path)
|
|
66
|
+
names = {r[0] for r in conn.execute("select name from sqlite_master where type='index'")}
|
|
67
|
+
assert "idx_evidence_created" in names
|
|
68
|
+
assert "idx_evidence_request" in names
|
|
69
|
+
assert "idx_evidence_action" in names
|
|
70
|
+
assert "idx_evidence_category_severity" in names
|
|
71
|
+
assert "idx_evidence_harness_workspace" in names
|
|
72
|
+
|
|
73
|
+
def test_indexes_idempotent(self, tmp_path: Path) -> None:
|
|
74
|
+
conn = _db(tmp_path)
|
|
75
|
+
for stmt in evidence_index_statements():
|
|
76
|
+
conn.execute(stmt)
|
|
77
|
+
names = [
|
|
78
|
+
r[0]
|
|
79
|
+
for r in conn.execute(
|
|
80
|
+
"select name from sqlite_master where type='index' and name like 'idx_evidence%'"
|
|
81
|
+
)
|
|
82
|
+
]
|
|
83
|
+
assert len(names) == len(set(names))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class TestStoreEvidence:
|
|
87
|
+
def test_store_basic(self, tmp_path: Path) -> None:
|
|
88
|
+
conn = _db(tmp_path)
|
|
89
|
+
store_evidence(conn, _rec())
|
|
90
|
+
rows = conn.execute("select * from guard_evidence").fetchall()
|
|
91
|
+
assert len(rows) == 1
|
|
92
|
+
|
|
93
|
+
def test_store_returns_record(self, tmp_path: Path) -> None:
|
|
94
|
+
conn = _db(tmp_path)
|
|
95
|
+
result = store_evidence(conn, _rec(evidence_id="ev-999"))
|
|
96
|
+
assert result.evidence_id == "ev-999"
|
|
97
|
+
|
|
98
|
+
def test_store_details_serialized(self, tmp_path: Path) -> None:
|
|
99
|
+
conn = _db(tmp_path)
|
|
100
|
+
store_evidence(conn, _rec(details={"x": 1, "y": [2, 3]}))
|
|
101
|
+
row = conn.execute("select details_json from guard_evidence").fetchone()
|
|
102
|
+
assert json.loads(row[0]) == {"x": 1, "y": [2, 3]}
|
|
103
|
+
|
|
104
|
+
def test_store_multiple(self, tmp_path: Path) -> None:
|
|
105
|
+
conn = _db(tmp_path)
|
|
106
|
+
for i in range(5):
|
|
107
|
+
store_evidence(conn, _rec(evidence_id=f"e{i}", action_id=f"a{i}"))
|
|
108
|
+
assert count_evidence(conn) == 5
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class TestListEvidence:
|
|
112
|
+
def test_list_all(self, tmp_path: Path) -> None:
|
|
113
|
+
conn = _db(tmp_path)
|
|
114
|
+
for i in range(3):
|
|
115
|
+
store_evidence(conn, _rec(evidence_id=f"e{i}", action_id=f"a{i}"))
|
|
116
|
+
records = list_evidence(conn)
|
|
117
|
+
assert len(records) == 3
|
|
118
|
+
|
|
119
|
+
def test_list_limit(self, tmp_path: Path) -> None:
|
|
120
|
+
conn = _db(tmp_path)
|
|
121
|
+
for i in range(10):
|
|
122
|
+
store_evidence(conn, _rec(evidence_id=f"e{i}", action_id=f"a{i}"))
|
|
123
|
+
records = list_evidence(conn, limit=3)
|
|
124
|
+
assert len(records) == 3
|
|
125
|
+
|
|
126
|
+
def test_list_filter_harness(self, tmp_path: Path) -> None:
|
|
127
|
+
conn = _db(tmp_path)
|
|
128
|
+
store_evidence(conn, _rec(evidence_id="e1", harness="codex"))
|
|
129
|
+
store_evidence(conn, _rec(evidence_id="e2", harness="claude"))
|
|
130
|
+
records = list_evidence(conn, harness="codex")
|
|
131
|
+
assert len(records) == 1
|
|
132
|
+
assert records[0].harness == "codex"
|
|
133
|
+
|
|
134
|
+
def test_list_filter_category(self, tmp_path: Path) -> None:
|
|
135
|
+
conn = _db(tmp_path)
|
|
136
|
+
store_evidence(conn, _rec(evidence_id="e1", category="exfiltration"))
|
|
137
|
+
store_evidence(conn, _rec(evidence_id="e2", category="injection"))
|
|
138
|
+
records = list_evidence(conn, category="injection")
|
|
139
|
+
assert len(records) == 1
|
|
140
|
+
assert records[0].category == "injection"
|
|
141
|
+
|
|
142
|
+
def test_list_filter_severity(self, tmp_path: Path) -> None:
|
|
143
|
+
conn = _db(tmp_path)
|
|
144
|
+
store_evidence(conn, _rec(evidence_id="e1", severity="high"))
|
|
145
|
+
store_evidence(conn, _rec(evidence_id="e2", severity="low"))
|
|
146
|
+
records = list_evidence(conn, severity="high")
|
|
147
|
+
assert len(records) == 1
|
|
148
|
+
|
|
149
|
+
def test_list_cursor_pagination(self, tmp_path: Path) -> None:
|
|
150
|
+
conn = _db(tmp_path)
|
|
151
|
+
for i in range(10):
|
|
152
|
+
store_evidence(conn, _rec(evidence_id=f"e{i:02d}", action_id=f"a{i}"))
|
|
153
|
+
time.sleep(0.01)
|
|
154
|
+
page1 = list_evidence(conn, limit=5)
|
|
155
|
+
assert len(page1) == 5
|
|
156
|
+
cursor = page1[-1].created_at
|
|
157
|
+
page2 = list_evidence(conn, limit=10, before_cursor=cursor)
|
|
158
|
+
assert len(page2) == 5
|
|
159
|
+
combined_ids = {r.evidence_id for r in page1} | {r.evidence_id for r in page2}
|
|
160
|
+
assert len(combined_ids) == 10
|
|
161
|
+
|
|
162
|
+
def test_list_filter_request_id(self, tmp_path: Path) -> None:
|
|
163
|
+
conn = _db(tmp_path)
|
|
164
|
+
store_evidence(conn, _rec(evidence_id="e1", request_id="req-A"))
|
|
165
|
+
store_evidence(conn, _rec(evidence_id="e2", request_id="req-B"))
|
|
166
|
+
records = list_evidence(conn, request_id="req-A")
|
|
167
|
+
assert len(records) == 1
|
|
168
|
+
|
|
169
|
+
def test_list_order_desc(self, tmp_path: Path) -> None:
|
|
170
|
+
conn = _db(tmp_path)
|
|
171
|
+
for i in range(5):
|
|
172
|
+
store_evidence(conn, _rec(evidence_id=f"e{i}", action_id=f"a{i}"))
|
|
173
|
+
time.sleep(0.01)
|
|
174
|
+
records = list_evidence(conn)
|
|
175
|
+
created_ats = [r.created_at for r in records]
|
|
176
|
+
assert created_ats == sorted(created_ats, reverse=True)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
class TestSearchEvidence:
|
|
180
|
+
def test_search_by_summary(self, tmp_path: Path) -> None:
|
|
181
|
+
conn = _db(tmp_path)
|
|
182
|
+
store_evidence(conn, _rec(evidence_id="e1", summary="secret key leaked"))
|
|
183
|
+
store_evidence(conn, _rec(evidence_id="e2", summary="benign output"))
|
|
184
|
+
results = search_evidence(conn, "secret")
|
|
185
|
+
assert len(results) == 1
|
|
186
|
+
assert results[0].evidence_id == "e1"
|
|
187
|
+
|
|
188
|
+
def test_search_case_insensitive(self, tmp_path: Path) -> None:
|
|
189
|
+
conn = _db(tmp_path)
|
|
190
|
+
store_evidence(conn, _rec(evidence_id="e1", summary="Secret Token Found"))
|
|
191
|
+
results = search_evidence(conn, "secret")
|
|
192
|
+
assert len(results) == 1
|
|
193
|
+
|
|
194
|
+
def test_search_no_match(self, tmp_path: Path) -> None:
|
|
195
|
+
conn = _db(tmp_path)
|
|
196
|
+
store_evidence(conn, _rec(evidence_id="e1", summary="benign output"))
|
|
197
|
+
results = search_evidence(conn, "malware")
|
|
198
|
+
assert len(results) == 0
|
|
199
|
+
|
|
200
|
+
def test_search_does_not_expose_details_json(self, tmp_path: Path) -> None:
|
|
201
|
+
conn = _db(tmp_path)
|
|
202
|
+
store_evidence(conn, _rec(evidence_id="e1", summary="clean", details={"password": "s3cr3t"}))
|
|
203
|
+
results = search_evidence(conn, "s3cr3t")
|
|
204
|
+
assert len(results) == 0
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
class TestCountEvidence:
|
|
208
|
+
def test_count_zero(self, tmp_path: Path) -> None:
|
|
209
|
+
conn = _db(tmp_path)
|
|
210
|
+
assert count_evidence(conn) == 0
|
|
211
|
+
|
|
212
|
+
def test_count_with_records(self, tmp_path: Path) -> None:
|
|
213
|
+
conn = _db(tmp_path)
|
|
214
|
+
for i in range(7):
|
|
215
|
+
store_evidence(conn, _rec(evidence_id=f"e{i}", action_id=f"a{i}"))
|
|
216
|
+
assert count_evidence(conn) == 7
|
|
217
|
+
|
|
218
|
+
def test_count_filter_harness(self, tmp_path: Path) -> None:
|
|
219
|
+
conn = _db(tmp_path)
|
|
220
|
+
store_evidence(conn, _rec(evidence_id="e1", harness="codex"))
|
|
221
|
+
store_evidence(conn, _rec(evidence_id="e2", harness="claude"))
|
|
222
|
+
store_evidence(conn, _rec(evidence_id="e3", harness="codex"))
|
|
223
|
+
assert count_evidence(conn, harness="codex") == 2
|
|
224
|
+
|
|
225
|
+
def test_count_filter_category(self, tmp_path: Path) -> None:
|
|
226
|
+
conn = _db(tmp_path)
|
|
227
|
+
store_evidence(conn, _rec(evidence_id="e1", category="exfiltration"))
|
|
228
|
+
store_evidence(conn, _rec(evidence_id="e2", category="injection"))
|
|
229
|
+
assert count_evidence(conn, category="exfiltration") == 1
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
class TestExportEvidence:
|
|
233
|
+
def test_export_returns_list(self, tmp_path: Path) -> None:
|
|
234
|
+
conn = _db(tmp_path)
|
|
235
|
+
for i in range(3):
|
|
236
|
+
store_evidence(conn, _rec(evidence_id=f"e{i}", action_id=f"a{i}"))
|
|
237
|
+
exported = export_evidence_json(conn)
|
|
238
|
+
data = json.loads(exported)
|
|
239
|
+
assert isinstance(data, list)
|
|
240
|
+
assert len(data) == 3
|
|
241
|
+
|
|
242
|
+
def test_export_fields_present(self, tmp_path: Path) -> None:
|
|
243
|
+
conn = _db(tmp_path)
|
|
244
|
+
store_evidence(conn, _rec(evidence_id="ev-X", category="exfil", summary="found token"))
|
|
245
|
+
data = json.loads(export_evidence_json(conn))
|
|
246
|
+
record = data[0]
|
|
247
|
+
assert record["evidence_id"] == "ev-X"
|
|
248
|
+
assert record["category"] == "exfil"
|
|
249
|
+
assert record["summary"] == "found token"
|
|
250
|
+
|
|
251
|
+
def test_export_limit(self, tmp_path: Path) -> None:
|
|
252
|
+
conn = _db(tmp_path)
|
|
253
|
+
for i in range(20):
|
|
254
|
+
store_evidence(conn, _rec(evidence_id=f"e{i}", action_id=f"a{i}"))
|
|
255
|
+
data = json.loads(export_evidence_json(conn, limit=5))
|
|
256
|
+
assert len(data) == 5
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
class TestCompactEvidence:
|
|
260
|
+
def test_compact_removes_old(self, tmp_path: Path) -> None:
|
|
261
|
+
conn = _db(tmp_path)
|
|
262
|
+
store_evidence(conn, _rec(evidence_id="old"))
|
|
263
|
+
conn.execute("update guard_evidence set created_at = '2020-01-01T00:00:00Z' where evidence_id = 'old'")
|
|
264
|
+
conn.commit()
|
|
265
|
+
store_evidence(conn, _rec(evidence_id="new", action_id="a2"))
|
|
266
|
+
removed = compact_evidence(conn, retain_days=30)
|
|
267
|
+
assert removed >= 1
|
|
268
|
+
remaining = count_evidence(conn)
|
|
269
|
+
assert remaining == 1
|
|
270
|
+
|
|
271
|
+
def test_compact_keeps_recent(self, tmp_path: Path) -> None:
|
|
272
|
+
conn = _db(tmp_path)
|
|
273
|
+
for i in range(5):
|
|
274
|
+
store_evidence(conn, _rec(evidence_id=f"e{i}", action_id=f"a{i}"))
|
|
275
|
+
removed = compact_evidence(conn, retain_days=90)
|
|
276
|
+
assert removed == 0
|
|
277
|
+
assert count_evidence(conn) == 5
|
|
278
|
+
|
|
279
|
+
def test_compact_idempotent(self, tmp_path: Path) -> None:
|
|
280
|
+
conn = _db(tmp_path)
|
|
281
|
+
store_evidence(conn, _rec(evidence_id="e1"))
|
|
282
|
+
conn.execute("update guard_evidence set created_at = '2020-01-01T00:00:00Z'")
|
|
283
|
+
conn.commit()
|
|
284
|
+
compact_evidence(conn, retain_days=30)
|
|
285
|
+
removed2 = compact_evidence(conn, retain_days=30)
|
|
286
|
+
assert removed2 == 0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plugin_scanner-2.0.125 → plugin_scanner-2.0.126}/.github/ISSUE_TEMPLATE/feature-request.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|