plugin-scanner 2.0.169__tar.gz → 2.0.170__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.169 → plugin_scanner-2.0.170}/PKG-INFO +1 -1
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/pyproject.toml +1 -1
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/pyproject.toml.bak +1 -1
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/hermes.py +9 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/openclaw.py +9 -0
- plugin_scanner-2.0.170/src/codex_plugin_scanner/guard/inventory_contract.py +524 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/version.py +1 -1
- plugin_scanner-2.0.170/tests/test_guard_inventory_contract.py +159 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_hermes_adapter.py +37 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_openclaw_adapter.py +34 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.clusterfuzzlite/Dockerfile +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.clusterfuzzlite/build.sh +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.clusterfuzzlite/project.yaml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.clusterfuzzlite/requirements-atheris.txt +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.dockerignore +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/CODEOWNERS +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/dependabot.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/workflows/ci.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/workflows/codeql.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/workflows/dependabot-uv-lock.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/workflows/fuzz.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/workflows/harness-smoke.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/workflows/publish.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.github/workflows/scorecard.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.gitignore +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/.pre-commit-hooks.yaml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/CONTRIBUTING.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/Dockerfile +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/LICENSE +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/README.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/SECURITY.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/index.html +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/package.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/pnpm-lock.yaml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/public/apple-touch-icon.png +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/public/brand/Logo_Icon_Dark.png +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/public/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/public/favicon-16x16.png +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/public/favicon-32x32.png +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/public/favicon.ico +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/app.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/approval-center-layout.test.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/approval-center-layout.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/approval-center-mobile.test.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/approval-center-primitives.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/approval-center-review-cards.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/approval-center-utils.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/data-flow-evidence-card.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/fleet-workspace.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/guard-api.test.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/guard-api.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/guard-demo.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/guard-types.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/home-dashboard.test.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/home-dashboard.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/main.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/queue-chip-filter.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/queue-state.test.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/queue-state.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/receipts-workspace.test.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/receipts-workspace.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/risk-signal-cards.test.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/risk-signal-cards.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/runtime-overview.test.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/runtime-overview.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/scanner-evidence-badge.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/settings-workspace.test.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/settings-workspace.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/styles.css +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/vite-env.d.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/src/watched-app-card.tsx +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/tsconfig.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/dashboard/vite.config.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docker-requirements.txt +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/guard/approval-audit.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/guard/architecture.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/guard/get-started.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/guard/harness-support.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/guard/local-vs-cloud.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/guard/release-checklist.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/guard/release-notes.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/guard/smoke-tests.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/guard/testing-matrix.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/trust/mcp-trust-draft.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/trust/plugin-trust-draft.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/docs/trust/skill-trust-local.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/fuzzers/manifest_fuzzer.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/requirements.txt +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/schemas/plugin-quality.v1.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/schemas/scan-result.v1.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/schemas/verify-result.v1.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/action_runner.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/argparse_utils.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/best_practices.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/claude.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/code_quality.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/ecosystem_common.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/gemini.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/manifest.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/manifest_support.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/marketplace.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/mcp_security.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/opencode.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/operational_security.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/security.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/checks/skill_security.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/cli.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/cli_ui.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/config.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/ecosystems/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/ecosystems/base.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/ecosystems/claude.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/ecosystems/codex.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/ecosystems/detect.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/ecosystems/gemini.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/ecosystems/opencode.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/ecosystems/registry.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/ecosystems/types.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/github_reporting.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/access_graph_events.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/antigravity.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/base.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/claude_code.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/cloud_identity.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/codex.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/contracts.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/copilot.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/cursor.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/gemini.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/mcp_servers.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/openclaw_config.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/openclaw_support.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/opencode.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/opencode_artifacts.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/advisory_model.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/approvals.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/bridge/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/capabilities.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/cli/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/cli/approval_commands.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/cli/bootstrap.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/cli/commands.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/cli/connect_flow.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/cli/install_commands.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/cli/product.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/cli/prompt.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/cli/render.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/cli/update_commands.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/codex_config.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/config.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/consumer/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/consumer/service.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/client.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/manager.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/server.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/static/apple-touch-icon.png +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/static/assets/guard-dashboard.js +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/static/assets/index.css +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Icon_Dark.png +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/static/favicon-16x16.png +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/static/favicon-32x32.png +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/static/favicon.ico +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/daemon/static/index.html +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/edge_events.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/incident.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/insights.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/launcher.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/mcp_tool_calls.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/models.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/policy/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/policy/engine.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/protect.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/proxy/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/proxy/remote.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/proxy/runtime_mcp.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/proxy/stdio.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/receipts/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/receipts/manager.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/redaction.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/risk.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/action_identity.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/actions.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/advisory_escalation.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/advisory_matchers.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/cisco_evidence.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/cisco_preflight.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/composition_rules.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/data_flow.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/data_flow_rules.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/data_flow_variables.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/decisions.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/detectors.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/false_positive_rules.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/mcp_protection.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/persistence_rules.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/prompt_injection.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/runner.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/safe_decode.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/sandbox.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/scanner_cache.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/secret_file_requests.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/secret_sensitivity.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/secret_sources.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/shell_commands.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/signals.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/skill_protection.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/supply_chain.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/surface_server.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/temp_files.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/runtime/threat_intel.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/schemas/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/schemas/consumer_mode.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/schemas/guard_event_v1.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/schemas/surface_server.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/shims.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/store.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/store_approvals.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/store_connect.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/store_evidence.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/store_threat_intel.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/types.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/integrations/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/integrations/cisco_mcp_scanner.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/integrations/cisco_skill_scanner.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/lint_fixes.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/marketplace_support.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/models.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/path_support.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/policy.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/quality_artifact.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/repo_detect.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/reporting.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/rules/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/rules/registry.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/rules/specs.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/scanner.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/submission.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/suppressions.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/trust_domain_scoring.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/trust_helpers.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/trust_mcp_scoring.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/trust_models.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/trust_plugin_scoring.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/trust_scoring.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/trust_skill_scoring.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/trust_specs.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/verification.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/conftest.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/__init__.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/bad-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/bad-plugin/.mcp.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/bad-plugin/secrets.js +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/claude-plugin-good/.claude-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/claude-plugin-good/LICENSE +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/claude-plugin-good/README.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/claude-plugin-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/claude-plugin-good/hooks/hooks.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/claude-plugin-good/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/code-quality-bad/evil.js +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/code-quality-bad/inject.js +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/gemini-extension-good/GEMINI.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/gemini-extension-good/LICENSE +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/gemini-extension-good/README.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/gemini-extension-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/gemini-extension-good/commands/hello.toml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/gemini-extension-good/gemini-extension.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/good-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/good-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/good-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/good-plugin/README.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/good-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/good-plugin/assets/icon.svg +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/good-plugin/assets/logo.svg +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/good-plugin/assets/screenshot.svg +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/good-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-codex-malicious-mcp/.codex/config.toml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/README.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/benign-docs-fake-token.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/benign-health-endpoint.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/benign-nvmrc-fake-creds.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/benign-source-search.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/canary-exfil-encoded.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/canary-exfil.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/expected-decisions.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-dockerfile.txt +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-encoded-shell-exfil.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-github-action.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-mcp-delete.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-mcp-secret-read.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-mcp-skill-exfil.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-npm-postinstall.js +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-prompt-env-read.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-prompt-guard-bypass.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-prompt-npmrc-read.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/malicious-python-setup.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/guard-red-team/smoke-evidence-template.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/hermes-plugin-evil/config.yaml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/hermes-plugin-evil/mcp_servers.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/hermes-plugin-evil/skills/security/malicious/SKILL.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/SKILL.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/references/api-setup.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/scripts/deploy.sh +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/hermes-plugin-evil/skills/utils/benign/SKILL.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/malformed-json/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/malicious-skill-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/malicious-skill-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/malicious-skill-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/malicious-skill-plugin/README.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/malicious-skill-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/malicious-skill-plugin/skills/leaky-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/mcp-canary-server.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/minimal-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/missing-fields/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/mit-license/LICENSE +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-ecosystem-repo/codex-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-ecosystem-repo/codex-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-ecosystem-repo/codex-plugin/README.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-ecosystem-repo/codex-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-ecosystem-repo/gemini-ext/README.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-ecosystem-repo/gemini-ext/gemini-extension.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-plugin-repo/.agents/plugins/marketplace.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/README.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/no-version/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/opencode-good/.opencode/commands/hello.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/opencode-good/.opencode/plugins/example.ts +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/opencode-good/LICENSE +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/opencode-good/README.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/opencode-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/opencode-good/opencode.jsonc +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/skills-missing-dir/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/skills-no-frontmatter/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/skills-no-frontmatter/skills/bad-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/supply-chain/benign-npm-package.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/supply-chain/benign-pnpm-package.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/supply-chain/benign-pyproject.toml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/supply-chain/malicious-Dockerfile +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/supply-chain/malicious-action.yml +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/supply-chain/malicious-npm-package.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/supply-chain/malicious-setup.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/with-marketplace/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/with-marketplace/marketplace-broken.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/fixtures/with-marketplace/marketplace.json +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test-trust-scoring.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test-trust-specs.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_action_runner.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_best_practices.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_cisco_install_surfaces.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_cli.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_code_quality.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_config.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_coverage_remaining.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_ecosystems.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_edge_cases.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_final_coverage.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_access_graph.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_action_identity.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_advisory_escalation.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_approval_continuity.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_approval_copy_commands.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_approval_store_dedup.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_approval_store_scale.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_approvals.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_bootstrap.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_bypass_detector.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_canary_fixtures.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_capabilities.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_cisco_evidence.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_cisco_runtime_cli.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_claude_adapter.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_cli.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_cloud_local_sync.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_codex_e2e.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_codex_install.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_codex_proxy.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_config_paths.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_connect_flow.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_consumer_mode.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_copilot_adapter.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_copilot_proxy.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_daemon_cli.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_daemon_manager.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_daemon_perf.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_daemon_registry.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_daemon_repair_perf.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_daemon_wake.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_data_flow.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_decision_propagation.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_detector_fp.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_event_schema_v1.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_events.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_evidence_store.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_harness_contracts.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_harness_setup.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_harness_smoke.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_insights.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_launch_env.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_mcp_detectors.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_mcp_protection.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_opencode_proxy.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_policy_dedup.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_product_flow.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_prompt_injection.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_protect.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_queue_api_contract.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_queue_contract.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_red_team.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_red_team_e2e.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_redaction.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_render.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_resolution_copy.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_risk.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_runtime.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_runtime_action_harnesses.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_runtime_actions.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_runtime_decisions.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_runtime_detectors.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_runtime_signals.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_safe_decode.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_sandbox.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_settings_presets.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_skill_protection.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_store_migrations.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_supply_chain.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_surface_server.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_threat_intel.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_verdicts.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_guard_web_recovery.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_integration.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_lint_fixes.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_live_cisco_smoke.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_manifest.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_marketplace.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_mcp_security.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_operational_security.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_policy.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_quality_artifact.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_rule_registry.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_scanner.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_schema_contracts.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_security.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_security_ops.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_skill_security.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_submission.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_trust_scoring.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_trust_specs.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_verification.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/tests/test_versioning.py +0 -0
- {plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/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.170
|
|
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.170"
|
|
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.170"
|
|
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"
|
{plugin_scanner-2.0.169 → plugin_scanner-2.0.170}/src/codex_plugin_scanner/guard/adapters/hermes.py
RENAMED
|
@@ -13,6 +13,7 @@ import re
|
|
|
13
13
|
import sys
|
|
14
14
|
from pathlib import Path
|
|
15
15
|
|
|
16
|
+
from ..inventory_contract import GuardAgentInventorySnapshot, inventory_snapshot_from_detection
|
|
16
17
|
from ..models import GuardArtifact, HarnessDetection
|
|
17
18
|
from ..shims import install_guard_shim, remove_guard_shim
|
|
18
19
|
from .base import HarnessAdapter, HarnessContext, _command_available, _json_payload, _run_command_probe
|
|
@@ -246,6 +247,14 @@ class HermesHarnessAdapter(HarnessAdapter):
|
|
|
246
247
|
config_paths=tuple(found_paths),
|
|
247
248
|
)
|
|
248
249
|
|
|
250
|
+
def inventory_snapshot(self, context: HarnessContext, *, generated_at: str) -> GuardAgentInventorySnapshot:
|
|
251
|
+
return inventory_snapshot_from_detection(
|
|
252
|
+
self.detect(context),
|
|
253
|
+
generated_at=generated_at,
|
|
254
|
+
home_dir=context.home_dir,
|
|
255
|
+
workspace_dir=context.workspace_dir,
|
|
256
|
+
)
|
|
257
|
+
|
|
249
258
|
# ------------------------------------------------------------------
|
|
250
259
|
# Skill scanning
|
|
251
260
|
# ------------------------------------------------------------------
|
|
@@ -5,6 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
import json
|
|
6
6
|
from pathlib import Path
|
|
7
7
|
|
|
8
|
+
from ..inventory_contract import GuardAgentInventorySnapshot, inventory_snapshot_from_detection
|
|
8
9
|
from ..models import GuardArtifact, HarnessDetection
|
|
9
10
|
from ..shims import install_guard_shim, remove_guard_shim
|
|
10
11
|
from .base import (
|
|
@@ -64,6 +65,14 @@ class OpenClawHarnessAdapter(HarnessAdapter):
|
|
|
64
65
|
artifacts=tuple(artifacts),
|
|
65
66
|
)
|
|
66
67
|
|
|
68
|
+
def inventory_snapshot(self, context: HarnessContext, *, generated_at: str) -> GuardAgentInventorySnapshot:
|
|
69
|
+
return inventory_snapshot_from_detection(
|
|
70
|
+
self.detect(context),
|
|
71
|
+
generated_at=generated_at,
|
|
72
|
+
home_dir=context.home_dir,
|
|
73
|
+
workspace_dir=context.workspace_dir,
|
|
74
|
+
)
|
|
75
|
+
|
|
67
76
|
def install(self, context: HarnessContext) -> dict[str, object]:
|
|
68
77
|
shim_manifest = install_guard_shim(self.harness, context)
|
|
69
78
|
root = managed_root(context)
|
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
"""Structured Guard agent inventory contract and safe serializers."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import hashlib
|
|
6
|
+
import ipaddress
|
|
7
|
+
import json
|
|
8
|
+
import re
|
|
9
|
+
from dataclasses import asdict, dataclass, field
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
from typing import Literal
|
|
12
|
+
from urllib.parse import parse_qsl, urlencode, urlsplit, urlunsplit
|
|
13
|
+
|
|
14
|
+
InventoryItemKind = Literal[
|
|
15
|
+
"agent",
|
|
16
|
+
"skill",
|
|
17
|
+
"mcp_server",
|
|
18
|
+
"mcp_tool",
|
|
19
|
+
"plugin",
|
|
20
|
+
"channel",
|
|
21
|
+
"hook",
|
|
22
|
+
"overlay",
|
|
23
|
+
"repository",
|
|
24
|
+
"container_image",
|
|
25
|
+
"policy",
|
|
26
|
+
"secret_reference",
|
|
27
|
+
"network_endpoint",
|
|
28
|
+
]
|
|
29
|
+
InventoryCapability = Literal[
|
|
30
|
+
"reads_files",
|
|
31
|
+
"reads_secrets",
|
|
32
|
+
"writes_files",
|
|
33
|
+
"deletes_files",
|
|
34
|
+
"runs_shell",
|
|
35
|
+
"executes_code",
|
|
36
|
+
"network_egress",
|
|
37
|
+
"network_ingress",
|
|
38
|
+
"posts_messages",
|
|
39
|
+
"reads_messages",
|
|
40
|
+
"uses_browser",
|
|
41
|
+
"uses_clipboard",
|
|
42
|
+
"uses_model_sampling",
|
|
43
|
+
"changes_permissions",
|
|
44
|
+
"loads_remote_code",
|
|
45
|
+
"unknown",
|
|
46
|
+
]
|
|
47
|
+
InventoryFindingSource = Literal["cisco-mcp-scanner", "cisco-skill-scanner", "hol-detector", "docker-proof", "metadata"]
|
|
48
|
+
InventorySeverity = Literal["critical", "high", "medium", "low", "info"]
|
|
49
|
+
InventoryConfidence = Literal["high", "medium", "low", "unknown"]
|
|
50
|
+
InventoryDriftState = Literal["new", "changed", "removed", "unchanged"]
|
|
51
|
+
DockerProofStatus = Literal["passed", "failed", "skipped", "stale"]
|
|
52
|
+
AgentInventoryType = Literal["hermes", "openclaw", "codex", "claude-code", "cursor", "gemini", "opencode"]
|
|
53
|
+
_AGENT_INVENTORY_TYPES: tuple[AgentInventoryType, ...] = (
|
|
54
|
+
"hermes",
|
|
55
|
+
"openclaw",
|
|
56
|
+
"codex",
|
|
57
|
+
"claude-code",
|
|
58
|
+
"cursor",
|
|
59
|
+
"gemini",
|
|
60
|
+
"opencode",
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
_SENSITIVE_KEY_RE = re.compile(
|
|
64
|
+
r"(auth|authorization|bearer|token|secret|password|credential|api[^a-z0-9]?key)",
|
|
65
|
+
re.IGNORECASE,
|
|
66
|
+
)
|
|
67
|
+
_WHITESPACE_RE = re.compile(r"\s+")
|
|
68
|
+
_IGNORED_TREE_DIR_NAMES = {".git", ".hg", ".svn", "__pycache__", ".mypy_cache", ".ruff_cache", ".venv", "node_modules"}
|
|
69
|
+
_MAX_FINGERPRINT_FILE_BYTES = 1024 * 1024
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
@dataclass(frozen=True, slots=True)
|
|
73
|
+
class GuardAgentInventoryFinding:
|
|
74
|
+
finding_id: str
|
|
75
|
+
source: InventoryFindingSource
|
|
76
|
+
severity: InventorySeverity
|
|
77
|
+
confidence: InventoryConfidence
|
|
78
|
+
title: str
|
|
79
|
+
artifact_id: str
|
|
80
|
+
check_id: str
|
|
81
|
+
summary: str | None = None
|
|
82
|
+
evidence: dict[str, object] = field(default_factory=dict)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
@dataclass(frozen=True, slots=True)
|
|
86
|
+
class GuardAgentInventoryDrift:
|
|
87
|
+
drift_id: str
|
|
88
|
+
item_id: str
|
|
89
|
+
state: InventoryDriftState
|
|
90
|
+
previous_hash: str | None
|
|
91
|
+
current_hash: str | None
|
|
92
|
+
changed_fields: tuple[str, ...] = ()
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
@dataclass(frozen=True, slots=True)
|
|
96
|
+
class GuardAgentInventoryDockerProof:
|
|
97
|
+
proof_id: str
|
|
98
|
+
agent_id: str
|
|
99
|
+
agent_type: str
|
|
100
|
+
image_reference: str
|
|
101
|
+
status: DockerProofStatus
|
|
102
|
+
captured_at: str
|
|
103
|
+
log_hash: str
|
|
104
|
+
redaction_report: dict[str, object] = field(default_factory=dict)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
@dataclass(frozen=True, slots=True)
|
|
108
|
+
class GuardAgentIntegrationRun:
|
|
109
|
+
run_id: str
|
|
110
|
+
agent_id: str
|
|
111
|
+
agent_type: str
|
|
112
|
+
status: Literal["started", "completed", "failed"]
|
|
113
|
+
started_at: str
|
|
114
|
+
completed_at: str | None = None
|
|
115
|
+
message: str | None = None
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
@dataclass(frozen=True, slots=True)
|
|
119
|
+
class GuardHarnessSetupStep:
|
|
120
|
+
step_id: str
|
|
121
|
+
agent_type: str
|
|
122
|
+
status: Literal["not_started", "running", "completed", "failed"]
|
|
123
|
+
label: str
|
|
124
|
+
safe_command: str | None = None
|
|
125
|
+
detail: str | None = None
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
@dataclass(frozen=True, slots=True)
|
|
129
|
+
class GuardInventoryRiskComponent:
|
|
130
|
+
component_id: str
|
|
131
|
+
source: InventoryFindingSource
|
|
132
|
+
severity: InventorySeverity
|
|
133
|
+
confidence: InventoryConfidence
|
|
134
|
+
score_delta: int
|
|
135
|
+
summary: str
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
@dataclass(frozen=True, slots=True)
|
|
139
|
+
class GuardInventorySource:
|
|
140
|
+
source_id: str
|
|
141
|
+
source_type: Literal["config", "docker", "scanner", "runtime", "repository"]
|
|
142
|
+
status: Literal["available", "missing", "failed"]
|
|
143
|
+
captured_at: str | None = None
|
|
144
|
+
detail: str | None = None
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
@dataclass(frozen=True, slots=True)
|
|
148
|
+
class GuardAgentInventoryItem:
|
|
149
|
+
item_id: str
|
|
150
|
+
item_kind: InventoryItemKind
|
|
151
|
+
display_name: str
|
|
152
|
+
source_fingerprint: str
|
|
153
|
+
content_hash: str
|
|
154
|
+
capability_categories: tuple[InventoryCapability, ...]
|
|
155
|
+
risk_level: InventorySeverity = "info"
|
|
156
|
+
security_score: int = 100
|
|
157
|
+
scanner_sources: tuple[InventoryFindingSource, ...] = ()
|
|
158
|
+
drift_state: InventoryDriftState = "unchanged"
|
|
159
|
+
metadata: dict[str, object] = field(default_factory=dict)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
@dataclass(frozen=True, slots=True)
|
|
163
|
+
class GuardAgentInventorySnapshot:
|
|
164
|
+
snapshot_id: str
|
|
165
|
+
agent_id: str
|
|
166
|
+
agent_type: AgentInventoryType
|
|
167
|
+
generated_at: str
|
|
168
|
+
runtime_version: str | None = None
|
|
169
|
+
items: tuple[GuardAgentInventoryItem, ...] = ()
|
|
170
|
+
findings: tuple[GuardAgentInventoryFinding, ...] = ()
|
|
171
|
+
drift: tuple[GuardAgentInventoryDrift, ...] = ()
|
|
172
|
+
docker_proofs: tuple[GuardAgentInventoryDockerProof, ...] = ()
|
|
173
|
+
sources: tuple[GuardInventorySource, ...] = ()
|
|
174
|
+
redaction_report: dict[str, object] = field(default_factory=dict)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def serialize_inventory_snapshot(snapshot: GuardAgentInventorySnapshot) -> dict[str, object]:
|
|
178
|
+
payload = _safe_json(asdict(snapshot))
|
|
179
|
+
if not isinstance(payload, dict):
|
|
180
|
+
raise TypeError("Inventory snapshot serialization produced invalid payload.")
|
|
181
|
+
return payload
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
def inventory_snapshot_from_detection(
|
|
185
|
+
detection: object,
|
|
186
|
+
*,
|
|
187
|
+
generated_at: str,
|
|
188
|
+
home_dir: Path,
|
|
189
|
+
workspace_dir: Path | None = None,
|
|
190
|
+
runtime_version: str | None = None,
|
|
191
|
+
) -> GuardAgentInventorySnapshot:
|
|
192
|
+
harness = str(getattr(detection, "harness", "unknown"))
|
|
193
|
+
artifacts = tuple(getattr(detection, "artifacts", ()))
|
|
194
|
+
items = tuple(
|
|
195
|
+
_item_from_artifact(
|
|
196
|
+
harness,
|
|
197
|
+
artifact,
|
|
198
|
+
home_dir=home_dir,
|
|
199
|
+
workspace_dir=workspace_dir,
|
|
200
|
+
)
|
|
201
|
+
for artifact in artifacts
|
|
202
|
+
)
|
|
203
|
+
config_paths = tuple(dict.fromkeys(str(path) for path in getattr(detection, "config_paths", ())))
|
|
204
|
+
sources = tuple(
|
|
205
|
+
GuardInventorySource(
|
|
206
|
+
source_id=f"{harness}:config:{fingerprint_text(redact_local_path(path, home_dir=home_dir))[:12]}",
|
|
207
|
+
source_type="config",
|
|
208
|
+
status="available",
|
|
209
|
+
captured_at=generated_at,
|
|
210
|
+
detail=redact_local_path(path, home_dir=home_dir),
|
|
211
|
+
)
|
|
212
|
+
for path in config_paths
|
|
213
|
+
)
|
|
214
|
+
snapshot_hash = fingerprint_mapping(
|
|
215
|
+
{
|
|
216
|
+
"agent_type": harness,
|
|
217
|
+
"generated_at": generated_at,
|
|
218
|
+
"item_ids": [item.item_id for item in items],
|
|
219
|
+
}
|
|
220
|
+
)
|
|
221
|
+
return GuardAgentInventorySnapshot(
|
|
222
|
+
snapshot_id=f"{harness}:snapshot:{snapshot_hash[:24]}",
|
|
223
|
+
agent_id=f"{harness}:local",
|
|
224
|
+
agent_type=_agent_type(harness),
|
|
225
|
+
generated_at=generated_at,
|
|
226
|
+
runtime_version=runtime_version,
|
|
227
|
+
items=items,
|
|
228
|
+
sources=sources,
|
|
229
|
+
redaction_report={
|
|
230
|
+
"rawSecretsIncluded": False,
|
|
231
|
+
"redactedFields": ("headers", "env", "url", "paths"),
|
|
232
|
+
},
|
|
233
|
+
)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def fingerprint_text(value: str) -> str:
|
|
237
|
+
return hashlib.sha256(value.encode("utf-8")).hexdigest()
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
def fingerprint_mapping(value: object) -> str:
|
|
241
|
+
encoded = json.dumps(value, sort_keys=True, separators=(",", ":"), ensure_ascii=True)
|
|
242
|
+
return fingerprint_text(encoded)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def inventory_item_id(agent_type: str, item_kind: str, display_name: str, semantic_text: str) -> str:
|
|
246
|
+
normalized_text = _WHITESPACE_RE.sub(" ", semantic_text.strip())
|
|
247
|
+
digest = fingerprint_mapping(
|
|
248
|
+
{
|
|
249
|
+
"agent_type": agent_type,
|
|
250
|
+
"display_name": display_name.strip().lower(),
|
|
251
|
+
"item_kind": item_kind,
|
|
252
|
+
"semantic_text": normalized_text,
|
|
253
|
+
}
|
|
254
|
+
)
|
|
255
|
+
return f"{agent_type}:{item_kind}:{digest[:24]}"
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
def fingerprint_path_tree(root: Path, *, home_dir: Path | None = None) -> str:
|
|
259
|
+
entries: list[dict[str, str]] = []
|
|
260
|
+
if root.is_file():
|
|
261
|
+
paths = [root]
|
|
262
|
+
else:
|
|
263
|
+
paths = sorted(
|
|
264
|
+
path
|
|
265
|
+
for path in root.rglob("*")
|
|
266
|
+
if path.is_file()
|
|
267
|
+
and path.name != ".env"
|
|
268
|
+
and not any(part in _IGNORED_TREE_DIR_NAMES for part in path.parts)
|
|
269
|
+
)
|
|
270
|
+
for path in paths:
|
|
271
|
+
safe_path = redact_local_path(path, home_dir=home_dir)
|
|
272
|
+
content_hash = _fingerprint_file_bytes(path)
|
|
273
|
+
entries.append({"path": safe_path, "sha256": content_hash})
|
|
274
|
+
return fingerprint_mapping(entries)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
def redact_local_path(path: str | Path, *, home_dir: Path | None = None) -> str:
|
|
278
|
+
candidate = Path(path)
|
|
279
|
+
if home_dir is None:
|
|
280
|
+
return candidate.name
|
|
281
|
+
try:
|
|
282
|
+
relative = candidate.resolve().relative_to(home_dir.resolve())
|
|
283
|
+
except ValueError:
|
|
284
|
+
return candidate.name
|
|
285
|
+
return f"{{home}}/{relative.as_posix()}"
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
def redact_headers(headers: dict[str, str]) -> dict[str, str]:
|
|
289
|
+
return {key.lower(): "present_redacted" if _SENSITIVE_KEY_RE.search(key) else "present" for key in headers}
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
def redact_url(value: str) -> str:
|
|
293
|
+
try:
|
|
294
|
+
parsed = urlsplit(value)
|
|
295
|
+
except ValueError:
|
|
296
|
+
return "malformed_url_redacted"
|
|
297
|
+
hostname = parsed.hostname or parsed.netloc
|
|
298
|
+
if ":" in hostname and not hostname.startswith("["):
|
|
299
|
+
hostname = f"[{hostname}]"
|
|
300
|
+
netloc = hostname
|
|
301
|
+
try:
|
|
302
|
+
port = parsed.port
|
|
303
|
+
except ValueError:
|
|
304
|
+
port = None
|
|
305
|
+
if port is not None:
|
|
306
|
+
netloc = f"{netloc}:{port}"
|
|
307
|
+
redacted_pairs = [
|
|
308
|
+
(key, "redacted" if _SENSITIVE_KEY_RE.search(key) else item)
|
|
309
|
+
for key, item in parse_qsl(parsed.query.replace(";", "&"), keep_blank_values=True)
|
|
310
|
+
]
|
|
311
|
+
return urlunsplit((parsed.scheme, netloc, parsed.path, urlencode(redacted_pairs), parsed.fragment))
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
def classify_endpoint_host(value: str | None) -> Literal["none", "local_loopback", "local_private", "remote_public"]:
|
|
315
|
+
if not value:
|
|
316
|
+
return "none"
|
|
317
|
+
try:
|
|
318
|
+
parsed = urlsplit(value)
|
|
319
|
+
except ValueError:
|
|
320
|
+
return "remote_public"
|
|
321
|
+
host = (parsed.hostname or "").lower()
|
|
322
|
+
if host in {"localhost", "127.0.0.1", "::1"}:
|
|
323
|
+
return "local_loopback"
|
|
324
|
+
try:
|
|
325
|
+
if ipaddress.ip_address(host).is_private:
|
|
326
|
+
return "local_private"
|
|
327
|
+
except ValueError:
|
|
328
|
+
pass
|
|
329
|
+
return "remote_public"
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
def _item_from_artifact(
|
|
333
|
+
harness: str,
|
|
334
|
+
artifact: object,
|
|
335
|
+
*,
|
|
336
|
+
home_dir: Path,
|
|
337
|
+
workspace_dir: Path | None,
|
|
338
|
+
) -> GuardAgentInventoryItem:
|
|
339
|
+
artifact_id = str(getattr(artifact, "artifact_id", "artifact"))
|
|
340
|
+
artifact_type = str(getattr(artifact, "artifact_type", "unknown"))
|
|
341
|
+
name = str(getattr(artifact, "name", artifact_id))
|
|
342
|
+
safe_metadata = _safe_artifact_metadata(artifact, home_dir=home_dir, workspace_dir=workspace_dir)
|
|
343
|
+
item_kind = _item_kind(artifact_type)
|
|
344
|
+
semantic_text = fingerprint_mapping(
|
|
345
|
+
{
|
|
346
|
+
"artifact_id": artifact_id,
|
|
347
|
+
"artifact_type": artifact_type,
|
|
348
|
+
"name": name,
|
|
349
|
+
"metadata": safe_metadata,
|
|
350
|
+
}
|
|
351
|
+
)
|
|
352
|
+
return GuardAgentInventoryItem(
|
|
353
|
+
item_id=artifact_id,
|
|
354
|
+
item_kind=item_kind,
|
|
355
|
+
display_name=name,
|
|
356
|
+
source_fingerprint=fingerprint_mapping({"harness": harness, "artifact_id": artifact_id}),
|
|
357
|
+
content_hash=semantic_text,
|
|
358
|
+
capability_categories=_capabilities_for_artifact(artifact_type, safe_metadata),
|
|
359
|
+
risk_level=_risk_level(safe_metadata),
|
|
360
|
+
scanner_sources=("hol-detector",),
|
|
361
|
+
metadata=safe_metadata,
|
|
362
|
+
)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
def _agent_type(value: str) -> AgentInventoryType:
|
|
366
|
+
for agent_type in _AGENT_INVENTORY_TYPES:
|
|
367
|
+
if value == agent_type:
|
|
368
|
+
return agent_type
|
|
369
|
+
return "codex"
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
def _item_kind(artifact_type: str) -> InventoryItemKind:
|
|
373
|
+
if artifact_type in {"skill", "skill_file"}:
|
|
374
|
+
return "skill"
|
|
375
|
+
if artifact_type == "mcp_server":
|
|
376
|
+
return "mcp_server"
|
|
377
|
+
if artifact_type == "channel":
|
|
378
|
+
return "channel"
|
|
379
|
+
if artifact_type in {"gateway_config", "config"}:
|
|
380
|
+
return "agent"
|
|
381
|
+
return "plugin"
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
def _capabilities_for_artifact(
|
|
385
|
+
artifact_type: str,
|
|
386
|
+
metadata: dict[str, object],
|
|
387
|
+
) -> tuple[InventoryCapability, ...]:
|
|
388
|
+
capabilities: set[InventoryCapability] = set()
|
|
389
|
+
if artifact_type in {"skill", "skill_file"}:
|
|
390
|
+
capabilities.add("reads_files")
|
|
391
|
+
if artifact_type == "mcp_server":
|
|
392
|
+
capabilities.add("network_egress")
|
|
393
|
+
if metadata.get("transport") == "stdio":
|
|
394
|
+
capabilities.add("runs_shell")
|
|
395
|
+
if artifact_type == "channel":
|
|
396
|
+
capabilities.update({"reads_messages", "posts_messages", "network_ingress"})
|
|
397
|
+
if bool(metadata.get("has_env_secrets")) or bool(metadata.get("has_auth_headers")):
|
|
398
|
+
capabilities.add("reads_secrets")
|
|
399
|
+
return tuple(sorted(capabilities)) if capabilities else ("unknown",)
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
def _risk_level(metadata: dict[str, object]) -> InventorySeverity:
|
|
403
|
+
if metadata.get("has_auth_headers") or metadata.get("has_env_secrets"):
|
|
404
|
+
return "high"
|
|
405
|
+
if metadata.get("endpointHostClass") == "remote_public":
|
|
406
|
+
return "medium"
|
|
407
|
+
return "info"
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
def _safe_artifact_metadata(
|
|
411
|
+
artifact: object,
|
|
412
|
+
*,
|
|
413
|
+
home_dir: Path,
|
|
414
|
+
workspace_dir: Path | None,
|
|
415
|
+
) -> dict[str, object]:
|
|
416
|
+
artifact_type = str(getattr(artifact, "artifact_type", "unknown"))
|
|
417
|
+
raw_metadata = getattr(artifact, "metadata", {})
|
|
418
|
+
metadata = _sanitize_paths(raw_metadata if isinstance(raw_metadata, dict) else {}, home_dir, workspace_dir)
|
|
419
|
+
config_path = getattr(artifact, "config_path", None)
|
|
420
|
+
command = getattr(artifact, "command", None)
|
|
421
|
+
url = getattr(artifact, "url", None)
|
|
422
|
+
transport = getattr(artifact, "transport", None)
|
|
423
|
+
if isinstance(config_path, str) and config_path:
|
|
424
|
+
metadata["configPath"] = _redact_known_path(config_path, home_dir, workspace_dir)
|
|
425
|
+
if isinstance(command, str) and command:
|
|
426
|
+
metadata["command"] = _redact_command_value(command, home_dir, workspace_dir)
|
|
427
|
+
if isinstance(url, str) and url:
|
|
428
|
+
metadata["url"] = redact_url(url)
|
|
429
|
+
metadata["endpointHostClass"] = classify_endpoint_host(url)
|
|
430
|
+
if isinstance(transport, str) and transport:
|
|
431
|
+
metadata["transport"] = transport
|
|
432
|
+
metadata["artifactType"] = artifact_type
|
|
433
|
+
return metadata
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
def _sanitize_paths(value: object, home_dir: Path, workspace_dir: Path | None) -> object:
|
|
437
|
+
if isinstance(value, Path):
|
|
438
|
+
return _redact_known_path(str(value), home_dir, workspace_dir)
|
|
439
|
+
if isinstance(value, dict):
|
|
440
|
+
redacted: dict[str, object] = {}
|
|
441
|
+
for key, item in value.items():
|
|
442
|
+
string_key = str(key)
|
|
443
|
+
if _SENSITIVE_KEY_RE.search(string_key):
|
|
444
|
+
redacted[string_key] = item if isinstance(item, bool) else "present_redacted"
|
|
445
|
+
continue
|
|
446
|
+
redacted[string_key] = _sanitize_paths(item, home_dir, workspace_dir)
|
|
447
|
+
return redacted
|
|
448
|
+
if isinstance(value, (list, tuple)):
|
|
449
|
+
return [_sanitize_paths(item, home_dir, workspace_dir) for item in value]
|
|
450
|
+
if isinstance(value, str):
|
|
451
|
+
if "://" in value:
|
|
452
|
+
return redact_url(value)
|
|
453
|
+
return _redact_known_path(value, home_dir, workspace_dir)
|
|
454
|
+
return value
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
def _redact_known_path(value: str, home_dir: Path, workspace_dir: Path | None) -> str:
|
|
458
|
+
path = Path(value)
|
|
459
|
+
if path.is_absolute():
|
|
460
|
+
home_redacted = redact_local_path(path, home_dir=home_dir)
|
|
461
|
+
if home_redacted.startswith("{home}/"):
|
|
462
|
+
return home_redacted
|
|
463
|
+
if workspace_dir is not None:
|
|
464
|
+
try:
|
|
465
|
+
relative = path.resolve().relative_to(workspace_dir.resolve())
|
|
466
|
+
return f"{{workspace}}/{relative.as_posix()}"
|
|
467
|
+
except (OSError, RuntimeError, ValueError):
|
|
468
|
+
return path.name
|
|
469
|
+
return path.name
|
|
470
|
+
return value
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
def _redact_command_value(value: str, home_dir: Path, workspace_dir: Path | None) -> str:
|
|
474
|
+
redacted = re.sub(
|
|
475
|
+
r"(?i)\b[a-z][a-z0-9+.-]*://[^\s]+",
|
|
476
|
+
lambda match: redact_url(match.group(0)),
|
|
477
|
+
value,
|
|
478
|
+
)
|
|
479
|
+
redacted = re.sub(
|
|
480
|
+
r"(^|\s)(/[^\s]+)",
|
|
481
|
+
lambda match: f"{match.group(1)}{_redact_known_path(match.group(2), home_dir, workspace_dir)}",
|
|
482
|
+
redacted,
|
|
483
|
+
)
|
|
484
|
+
redacted = re.sub(
|
|
485
|
+
r"(?i)(authorization:\s*bearer\s+)\S+",
|
|
486
|
+
r"\1redacted",
|
|
487
|
+
redacted,
|
|
488
|
+
)
|
|
489
|
+
redacted = re.sub(
|
|
490
|
+
r"(?i)((?:api[_-]?key|auth|password|secret|token)=)\S+",
|
|
491
|
+
r"\1redacted",
|
|
492
|
+
redacted,
|
|
493
|
+
)
|
|
494
|
+
redacted = re.sub(
|
|
495
|
+
r"(?i)((?:--)?(?:api[_-]?key|auth|password|secret|token)\s+)\S+",
|
|
496
|
+
r"\1redacted",
|
|
497
|
+
redacted,
|
|
498
|
+
)
|
|
499
|
+
return redacted
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
def _safe_json(value: object) -> object:
|
|
503
|
+
if isinstance(value, dict):
|
|
504
|
+
return {str(key): _safe_json(item) for key, item in value.items()}
|
|
505
|
+
if isinstance(value, (list, tuple)):
|
|
506
|
+
return [_safe_json(item) for item in value]
|
|
507
|
+
if isinstance(value, Path):
|
|
508
|
+
return value.name
|
|
509
|
+
if isinstance(value, str):
|
|
510
|
+
return value
|
|
511
|
+
return value
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
def _fingerprint_file_bytes(path: Path) -> str:
|
|
515
|
+
digest = hashlib.sha256()
|
|
516
|
+
remaining = _MAX_FINGERPRINT_FILE_BYTES
|
|
517
|
+
with path.open("rb") as file_handle:
|
|
518
|
+
while remaining > 0:
|
|
519
|
+
chunk = file_handle.read(min(65536, remaining))
|
|
520
|
+
if not chunk:
|
|
521
|
+
break
|
|
522
|
+
digest.update(chunk)
|
|
523
|
+
remaining -= len(chunk)
|
|
524
|
+
return digest.hexdigest()
|