plugin-scanner 2.0.65__tar.gz → 2.0.67__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.65 → plugin_scanner-2.0.67}/PKG-INFO +1 -1
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/pyproject.toml +1 -1
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/pyproject.toml.bak +1 -1
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/claude_code.py +1 -3
- plugin_scanner-2.0.67/src/codex_plugin_scanner/guard/cli/approval_commands.py +119 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/commands.py +100 -4
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/render.py +39 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/store.py +43 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/version.py +1 -1
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_approvals.py +266 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_claude_adapter.py +5 -15
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_cli.py +3 -3
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_runtime.py +72 -21
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_surface_server.py +1 -9
- plugin_scanner-2.0.65/src/codex_plugin_scanner/guard/cli/approval_commands.py +0 -63
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.clusterfuzzlite/Dockerfile +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.clusterfuzzlite/build.sh +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.clusterfuzzlite/project.yaml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.clusterfuzzlite/requirements-atheris.txt +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.dockerignore +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/CODEOWNERS +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/dependabot.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/workflows/ci.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/workflows/codeql.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/workflows/dependabot-uv-lock.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/workflows/fuzz.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/workflows/harness-smoke.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/workflows/publish.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.github/workflows/scorecard.yml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.gitignore +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/.pre-commit-hooks.yaml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/CONTRIBUTING.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/Dockerfile +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/LICENSE +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/README.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/SECURITY.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/index.html +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/package.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/pnpm-lock.yaml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/public/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/app.tsx +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/approval-center-layout.tsx +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/approval-center-primitives.tsx +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/approval-center-utils.ts +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/fleet-workspace.tsx +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/guard-api.ts +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/guard-demo.ts +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/guard-types.ts +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/main.tsx +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/receipts-workspace.tsx +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/runtime-overview.tsx +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/styles.css +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/src/vite-env.d.ts +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/tsconfig.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/dashboard/vite.config.ts +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/docker-requirements.txt +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/docs/guard/approval-audit.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/docs/guard/architecture.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/docs/guard/get-started.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/docs/guard/harness-support.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/docs/guard/local-vs-cloud.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/docs/guard/testing-matrix.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/docs/trust/mcp-trust-draft.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/docs/trust/plugin-trust-draft.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/docs/trust/skill-trust-local.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/fuzzers/manifest_fuzzer.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/requirements.txt +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/schemas/plugin-quality.v1.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/schemas/scan-result.v1.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/schemas/verify-result.v1.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/action_runner.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/argparse_utils.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/best_practices.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/claude.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/code_quality.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/ecosystem_common.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/gemini.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/manifest.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/manifest_support.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/marketplace.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/mcp_security.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/opencode.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/operational_security.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/security.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/skill_security.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/cli.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/cli_ui.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/config.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/base.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/claude.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/codex.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/detect.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/gemini.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/opencode.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/registry.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/types.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/github_reporting.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/antigravity.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/base.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/codex.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/copilot.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/cursor.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/gemini.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/hermes.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/mcp_servers.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/opencode.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/opencode_artifacts.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/approvals.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/bridge/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/capabilities.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/bootstrap.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/connect_flow.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/install_commands.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/product.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/prompt.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/update_commands.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/codex_config.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/config.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/consumer/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/consumer/service.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/client.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/manager.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/server.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/static/assets/guard-dashboard.js +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/static/assets/index.css +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/static/index.html +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/edge_events.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/incident.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/launcher.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/mcp_tool_calls.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/models.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/policy/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/policy/engine.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/protect.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/proxy/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/proxy/remote.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/proxy/runtime_mcp.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/proxy/stdio.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/receipts/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/receipts/manager.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/risk.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/runtime/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/runtime/runner.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/runtime/secret_file_requests.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/runtime/surface_server.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/schemas/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/schemas/consumer_mode.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/schemas/guard_event_v1.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/schemas/surface_server.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/shims.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/store_approvals.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/store_connect.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/types.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/integrations/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/integrations/cisco_mcp_scanner.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/integrations/cisco_skill_scanner.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/lint_fixes.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/marketplace_support.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/models.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/path_support.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/policy.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/quality_artifact.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/repo_detect.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/reporting.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/rules/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/rules/registry.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/rules/specs.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/scanner.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/submission.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/suppressions.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_domain_scoring.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_helpers.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_mcp_scoring.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_models.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_plugin_scoring.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_scoring.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_skill_scoring.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_specs.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/verification.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/conftest.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/__init__.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/bad-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/bad-plugin/.mcp.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/bad-plugin/secrets.js +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/.claude-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/LICENSE +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/README.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/hooks/hooks.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/code-quality-bad/evil.js +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/code-quality-bad/inject.js +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/GEMINI.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/LICENSE +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/README.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/commands/hello.toml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/gemini-extension.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/README.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/assets/icon.svg +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/assets/logo.svg +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/assets/screenshot.svg +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/guard-codex-malicious-mcp/.codex/config.toml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/config.yaml +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/mcp_servers.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/skills/security/malicious/SKILL.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/SKILL.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/references/api-setup.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/scripts/deploy.sh +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/skills/utils/benign/SKILL.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/malformed-json/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/README.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/skills/leaky-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/mcp-canary-server.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/minimal-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/missing-fields/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/mit-license/LICENSE +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/codex-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/codex-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/codex-plugin/README.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/codex-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/gemini-ext/README.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/gemini-ext/gemini-extension.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/.agents/plugins/marketplace.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/README.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/no-version/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/.opencode/commands/hello.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/.opencode/plugins/example.ts +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/LICENSE +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/README.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/opencode.jsonc +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/skills-missing-dir/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/skills-no-frontmatter/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/skills-no-frontmatter/skills/bad-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/with-marketplace/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/with-marketplace/marketplace-broken.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/fixtures/with-marketplace/marketplace.json +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test-trust-scoring.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test-trust-specs.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_action_runner.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_best_practices.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_cisco_install_surfaces.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_cli.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_code_quality.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_config.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_coverage_remaining.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_ecosystems.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_edge_cases.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_final_coverage.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_bootstrap.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_capabilities.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_codex_e2e.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_codex_install.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_codex_proxy.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_config_paths.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_connect_flow.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_consumer_mode.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_copilot_adapter.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_copilot_proxy.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_daemon_manager.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_event_schema_v1.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_events.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_launch_env.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_opencode_proxy.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_product_flow.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_protect.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_render.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_risk.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_store_migrations.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_guard_verdicts.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_hermes_adapter.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_integration.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_lint_fixes.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_live_cisco_smoke.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_manifest.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_marketplace.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_mcp_security.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_operational_security.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_policy.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_quality_artifact.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_rule_registry.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_scanner.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_schema_contracts.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_security.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_security_ops.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_skill_security.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_submission.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_trust_scoring.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_trust_specs.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_verification.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/tests/test_versioning.py +0 -0
- {plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/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.67
|
|
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.67"
|
|
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.67"
|
|
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"
|
|
@@ -23,7 +23,6 @@ CLAUDE_GUARD_POST_TOOL_MATCHER = f"{CLAUDE_GUARD_TOOL_MATCHER}|AskUserQuestion"
|
|
|
23
23
|
CLAUDE_GUARD_NOTIFICATION_MATCHER = "permission_prompt"
|
|
24
24
|
CLAUDE_GUARD_SESSION_START_MATCHERS = ("startup", "resume", "clear", "compact")
|
|
25
25
|
CLAUDE_GUARD_TOOL_TIMEOUT_SECONDS = 30
|
|
26
|
-
CLAUDE_GUARD_PROMPT_TIMEOUT_SECONDS = 20
|
|
27
26
|
CLAUDE_GUARD_NOTIFICATION_TIMEOUT_SECONDS = 10
|
|
28
27
|
CLAUDE_GUARD_SESSION_START_TIMEOUT_SECONDS = 10
|
|
29
28
|
CLAUDE_GUARD_STOP_TIMEOUT_SECONDS = 10
|
|
@@ -47,7 +46,6 @@ def _sync_runtime_hook_groups(hooks: dict[str, object], hook_command: str) -> No
|
|
|
47
46
|
("PreToolUse", CLAUDE_GUARD_TOOL_MATCHER, CLAUDE_GUARD_TOOL_TIMEOUT_SECONDS),
|
|
48
47
|
("PermissionRequest", CLAUDE_GUARD_TOOL_MATCHER, CLAUDE_GUARD_NOTIFICATION_TIMEOUT_SECONDS),
|
|
49
48
|
("PostToolUse", CLAUDE_GUARD_POST_TOOL_MATCHER, CLAUDE_GUARD_TOOL_TIMEOUT_SECONDS),
|
|
50
|
-
("UserPromptSubmit", None, CLAUDE_GUARD_PROMPT_TIMEOUT_SECONDS),
|
|
51
49
|
("Notification", CLAUDE_GUARD_NOTIFICATION_MATCHER, CLAUDE_GUARD_NOTIFICATION_TIMEOUT_SECONDS),
|
|
52
50
|
("Stop", None, CLAUDE_GUARD_STOP_TIMEOUT_SECONDS),
|
|
53
51
|
):
|
|
@@ -60,7 +58,7 @@ def _sync_runtime_hook_groups(hooks: dict[str, object], hook_command: str) -> No
|
|
|
60
58
|
|
|
61
59
|
|
|
62
60
|
def _remove_unsupported_guard_hook_groups(hooks: dict[str, object]) -> None:
|
|
63
|
-
for key in ("PermissionDenied",):
|
|
61
|
+
for key in ("PermissionDenied", "UserPromptSubmit"):
|
|
64
62
|
entries = hooks.get(key)
|
|
65
63
|
if not isinstance(entries, list):
|
|
66
64
|
continue
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"""CLI helpers for Guard approval queue workflows."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
from datetime import datetime, timezone
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from ..approvals import apply_approval_resolution, build_runtime_snapshot
|
|
10
|
+
from ..daemon import load_guard_daemon_url
|
|
11
|
+
from ..store import GuardStore
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def add_approval_parser(
|
|
15
|
+
guard_subparsers: argparse._SubParsersAction[argparse.ArgumentParser],
|
|
16
|
+
add_common_args,
|
|
17
|
+
) -> None:
|
|
18
|
+
approvals_parser = guard_subparsers.add_parser(
|
|
19
|
+
"approvals",
|
|
20
|
+
help="List, resolve, or clear Guard approval history",
|
|
21
|
+
)
|
|
22
|
+
approvals_subparsers = approvals_parser.add_subparsers(dest="approvals_command")
|
|
23
|
+
|
|
24
|
+
add_common_args(approvals_parser)
|
|
25
|
+
approvals_parser.add_argument("--json", action="store_true")
|
|
26
|
+
|
|
27
|
+
for name, action in (("approve", "allow"), ("deny", "block")):
|
|
28
|
+
decision_parser = approvals_subparsers.add_parser(name, help=f"{name.title()} a pending approval request")
|
|
29
|
+
decision_parser.add_argument("request_id")
|
|
30
|
+
decision_parser.add_argument(
|
|
31
|
+
"--scope",
|
|
32
|
+
choices=("artifact", "publisher", "workspace", "harness", "global"),
|
|
33
|
+
default="artifact",
|
|
34
|
+
)
|
|
35
|
+
decision_parser.add_argument("--reason")
|
|
36
|
+
add_common_args(decision_parser)
|
|
37
|
+
decision_parser.add_argument("--json", action="store_true")
|
|
38
|
+
decision_parser.set_defaults(approval_action=action)
|
|
39
|
+
|
|
40
|
+
clear_history_parser = approvals_subparsers.add_parser(
|
|
41
|
+
"clear-history",
|
|
42
|
+
help="Clear saved allow/deny history so flows can be re-tested",
|
|
43
|
+
)
|
|
44
|
+
clear_history_parser.add_argument(
|
|
45
|
+
"--harness",
|
|
46
|
+
help="The harness to clear history for (for example: codex, claude-code, opencode, copilot)",
|
|
47
|
+
)
|
|
48
|
+
clear_history_parser.add_argument(
|
|
49
|
+
"--all",
|
|
50
|
+
action="store_true",
|
|
51
|
+
help="Clear approval history across every harness; cannot be combined with --harness",
|
|
52
|
+
)
|
|
53
|
+
clear_history_parser.add_argument(
|
|
54
|
+
"--source",
|
|
55
|
+
help="Optional source filter for policy decisions (for example: manual, claude-ask-user-question)",
|
|
56
|
+
)
|
|
57
|
+
add_common_args(clear_history_parser)
|
|
58
|
+
clear_history_parser.add_argument("--json", action="store_true")
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def run_approval_command(
|
|
62
|
+
args: argparse.Namespace,
|
|
63
|
+
*,
|
|
64
|
+
store: GuardStore,
|
|
65
|
+
workspace: Path | None,
|
|
66
|
+
) -> dict[str, object]:
|
|
67
|
+
command = getattr(args, "approvals_command", None)
|
|
68
|
+
if command is None:
|
|
69
|
+
return build_runtime_snapshot(
|
|
70
|
+
store=store,
|
|
71
|
+
approval_center_url=load_guard_daemon_url(store.guard_home),
|
|
72
|
+
now=_now(),
|
|
73
|
+
)
|
|
74
|
+
if command == "clear-history":
|
|
75
|
+
harness = getattr(args, "harness", None)
|
|
76
|
+
clear_all = bool(getattr(args, "all", False))
|
|
77
|
+
if clear_all and harness is not None:
|
|
78
|
+
return {
|
|
79
|
+
"history_cleared": False,
|
|
80
|
+
"error": "Choose either --all or --harness <name> when clearing approval history.",
|
|
81
|
+
"cleared_policies": 0,
|
|
82
|
+
"cleared_resolved_requests": 0,
|
|
83
|
+
"exit_code": 2,
|
|
84
|
+
}
|
|
85
|
+
if not clear_all and harness is None:
|
|
86
|
+
return {
|
|
87
|
+
"history_cleared": False,
|
|
88
|
+
"error": "Choose --harness <name> or --all when clearing approval history.",
|
|
89
|
+
"cleared_policies": 0,
|
|
90
|
+
"cleared_resolved_requests": 0,
|
|
91
|
+
"exit_code": 2,
|
|
92
|
+
}
|
|
93
|
+
target_harness = None if clear_all else harness
|
|
94
|
+
source = getattr(args, "source", None)
|
|
95
|
+
cleared_resolved_requests = 0
|
|
96
|
+
if source is None:
|
|
97
|
+
cleared_resolved_requests = store.clear_approval_requests(harness=target_harness, status="resolved")
|
|
98
|
+
return {
|
|
99
|
+
"history_cleared": True,
|
|
100
|
+
"harness": target_harness,
|
|
101
|
+
"source": source,
|
|
102
|
+
"cleared_policies": store.clear_policy_decisions(target_harness, source),
|
|
103
|
+
"cleared_resolved_requests": cleared_resolved_requests,
|
|
104
|
+
"exit_code": 0,
|
|
105
|
+
}
|
|
106
|
+
item = apply_approval_resolution(
|
|
107
|
+
store=store,
|
|
108
|
+
request_id=args.request_id,
|
|
109
|
+
action=args.approval_action,
|
|
110
|
+
scope=args.scope,
|
|
111
|
+
workspace=str(workspace) if workspace is not None else None,
|
|
112
|
+
reason=args.reason,
|
|
113
|
+
now=_now(),
|
|
114
|
+
)
|
|
115
|
+
return {"resolved": True, "item": item}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def _now() -> str:
|
|
119
|
+
return datetime.now(timezone.utc).isoformat()
|
{plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/commands.py
RENAMED
|
@@ -311,8 +311,15 @@ def _configure_guard_parser(guard_parser: argparse.ArgumentParser) -> None:
|
|
|
311
311
|
policy_parser.add_argument("--json", action="store_true")
|
|
312
312
|
policy_parser.set_defaults(policy_action=action)
|
|
313
313
|
|
|
314
|
-
policies_parser = guard_subparsers.add_parser("policies", help="List stored Guard policy decisions")
|
|
314
|
+
policies_parser = guard_subparsers.add_parser("policies", help="List or clear stored Guard policy decisions")
|
|
315
|
+
policies_parser.add_argument("policies_command", nargs="?", choices=("clear",))
|
|
315
316
|
policies_parser.add_argument("--harness")
|
|
317
|
+
policies_parser.add_argument("--source")
|
|
318
|
+
policies_parser.add_argument(
|
|
319
|
+
"--all",
|
|
320
|
+
action="store_true",
|
|
321
|
+
help="Clear decisions across every harness; cannot be combined with --harness",
|
|
322
|
+
)
|
|
316
323
|
_add_guard_common_args(policies_parser)
|
|
317
324
|
policies_parser.add_argument("--json", action="store_true")
|
|
318
325
|
|
|
@@ -775,6 +782,46 @@ def run_guard_command(
|
|
|
775
782
|
return 0
|
|
776
783
|
|
|
777
784
|
if args.guard_command == "policies":
|
|
785
|
+
if getattr(args, "policies_command", None) == "clear":
|
|
786
|
+
harness = getattr(args, "harness", None)
|
|
787
|
+
clear_all = bool(getattr(args, "all", False))
|
|
788
|
+
if clear_all and harness is not None:
|
|
789
|
+
_emit(
|
|
790
|
+
"policies",
|
|
791
|
+
{
|
|
792
|
+
"error": "Choose either --all or --harness <name> when clearing Guard policy decisions.",
|
|
793
|
+
"cleared": 0,
|
|
794
|
+
"harness": harness,
|
|
795
|
+
"source": getattr(args, "source", None),
|
|
796
|
+
},
|
|
797
|
+
getattr(args, "json", False),
|
|
798
|
+
)
|
|
799
|
+
return 2
|
|
800
|
+
if not clear_all and harness is None:
|
|
801
|
+
_emit(
|
|
802
|
+
"policies",
|
|
803
|
+
{
|
|
804
|
+
"error": "Choose --harness <name> or --all when clearing Guard policy decisions.",
|
|
805
|
+
"cleared": 0,
|
|
806
|
+
},
|
|
807
|
+
getattr(args, "json", False),
|
|
808
|
+
)
|
|
809
|
+
return 2
|
|
810
|
+
cleared = store.clear_policy_decisions(
|
|
811
|
+
None if clear_all else harness,
|
|
812
|
+
getattr(args, "source", None),
|
|
813
|
+
)
|
|
814
|
+
_emit(
|
|
815
|
+
"policies",
|
|
816
|
+
{
|
|
817
|
+
"generated_at": _now(),
|
|
818
|
+
"cleared": cleared,
|
|
819
|
+
"harness": None if clear_all else harness,
|
|
820
|
+
"source": getattr(args, "source", None),
|
|
821
|
+
},
|
|
822
|
+
getattr(args, "json", False),
|
|
823
|
+
)
|
|
824
|
+
return 0
|
|
778
825
|
policy_items = store.list_policy_decisions(getattr(args, "harness", None))
|
|
779
826
|
items = _filter_policy_items(policy_items, active_only=True)
|
|
780
827
|
_emit("policies", {"generated_at": _now(), "items": items}, getattr(args, "json", False))
|
|
@@ -808,7 +855,7 @@ def run_guard_command(
|
|
|
808
855
|
if args.guard_command == "approvals":
|
|
809
856
|
payload = run_approval_command(args, store=store, workspace=workspace)
|
|
810
857
|
_emit("approvals", payload, getattr(args, "json", False))
|
|
811
|
-
return 0
|
|
858
|
+
return int(payload.get("exit_code", 0))
|
|
812
859
|
|
|
813
860
|
if args.guard_command == "explain":
|
|
814
861
|
payload = _build_explain_payload_with_mode(store, args.target, cisco_mode=args.cisco_mode)
|
|
@@ -1233,10 +1280,13 @@ def run_guard_command(
|
|
|
1233
1280
|
)
|
|
1234
1281
|
return 0
|
|
1235
1282
|
if _canonical_harness_name(args.harness) == "claude-code" and _hook_event_name(payload) == "Stop":
|
|
1236
|
-
|
|
1283
|
+
discarded = _discard_claude_pending_permissions(store, payload)
|
|
1237
1284
|
store.add_event(
|
|
1238
1285
|
"claude/turn_stop",
|
|
1239
|
-
{
|
|
1286
|
+
{
|
|
1287
|
+
"session_id": payload.get("session_id"),
|
|
1288
|
+
"discarded_pending_permissions": discarded,
|
|
1289
|
+
},
|
|
1240
1290
|
_now(),
|
|
1241
1291
|
)
|
|
1242
1292
|
return 0
|
|
@@ -1371,6 +1421,14 @@ def run_guard_command(
|
|
|
1371
1421
|
artifact=runtime_artifact,
|
|
1372
1422
|
artifact_hash=runtime_artifact_hash,
|
|
1373
1423
|
)
|
|
1424
|
+
if _should_allow_claude_user_prompt_submit_without_output(
|
|
1425
|
+
args,
|
|
1426
|
+
event_name=event_name,
|
|
1427
|
+
policy_action=policy_action,
|
|
1428
|
+
artifact=runtime_artifact,
|
|
1429
|
+
output_stream=output_stream,
|
|
1430
|
+
):
|
|
1431
|
+
return 0
|
|
1374
1432
|
if _should_emit_copilot_hook_response(args):
|
|
1375
1433
|
_emit_copilot_hook_response(
|
|
1376
1434
|
policy_action=policy_action,
|
|
@@ -1724,6 +1782,23 @@ def _should_emit_prequeue_native_hook_response(
|
|
|
1724
1782
|
return output_stream is not None
|
|
1725
1783
|
|
|
1726
1784
|
|
|
1785
|
+
def _should_allow_claude_user_prompt_submit_without_output(
|
|
1786
|
+
args: argparse.Namespace,
|
|
1787
|
+
*,
|
|
1788
|
+
event_name: str,
|
|
1789
|
+
policy_action: str,
|
|
1790
|
+
artifact: GuardArtifact,
|
|
1791
|
+
output_stream: TextIO | None,
|
|
1792
|
+
) -> bool:
|
|
1793
|
+
return (
|
|
1794
|
+
_canonical_harness_name(args.harness) == "claude-code"
|
|
1795
|
+
and event_name == "UserPromptSubmit"
|
|
1796
|
+
and policy_action == "require-reapproval"
|
|
1797
|
+
and not _prompt_requires_hard_block(artifact)
|
|
1798
|
+
and (not getattr(args, "json", False) or output_stream is not None)
|
|
1799
|
+
)
|
|
1800
|
+
|
|
1801
|
+
|
|
1727
1802
|
def _emit_claude_permission_request_passthrough(*, output_stream: TextIO | None = None) -> None:
|
|
1728
1803
|
if output_stream is not None:
|
|
1729
1804
|
output_stream.write("")
|
|
@@ -2044,6 +2119,27 @@ def _persist_claude_native_permission_for_runtime_artifact(
|
|
|
2044
2119
|
return True
|
|
2045
2120
|
|
|
2046
2121
|
|
|
2122
|
+
def _discard_claude_pending_permissions(store: GuardStore, payload: dict[str, object]) -> int:
|
|
2123
|
+
session_id = _optional_string(payload.get("session_id"))
|
|
2124
|
+
if session_id is None:
|
|
2125
|
+
return 0
|
|
2126
|
+
index_key = _claude_pending_permission_index_key(session_id)
|
|
2127
|
+
try:
|
|
2128
|
+
index_payload = store.get_sync_payload(index_key)
|
|
2129
|
+
except (OSError, sqlite3.Error):
|
|
2130
|
+
return 0
|
|
2131
|
+
if not isinstance(index_payload, list):
|
|
2132
|
+
return 0
|
|
2133
|
+
pending_keys = [str(item) for item in index_payload]
|
|
2134
|
+
if not pending_keys:
|
|
2135
|
+
return 0
|
|
2136
|
+
try:
|
|
2137
|
+
store.delete_sync_payloads([*pending_keys, index_key])
|
|
2138
|
+
except (OSError, sqlite3.Error):
|
|
2139
|
+
return 0
|
|
2140
|
+
return len(pending_keys)
|
|
2141
|
+
|
|
2142
|
+
|
|
2047
2143
|
def _persist_claude_pending_permission_denials(store: GuardStore, payload: dict[str, object]) -> int:
|
|
2048
2144
|
session_id = _optional_string(payload.get("session_id"))
|
|
2049
2145
|
if session_id is None:
|
{plugin_scanner-2.0.65 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/render.py
RENAMED
|
@@ -295,6 +295,24 @@ def _render_inventory(console: Console, payload: dict[str, object]) -> None:
|
|
|
295
295
|
|
|
296
296
|
|
|
297
297
|
def _render_policies(console: Console, payload: dict[str, object]) -> None:
|
|
298
|
+
if "cleared" in payload or "error" in payload:
|
|
299
|
+
error = payload.get("error")
|
|
300
|
+
cleared = int(payload.get("cleared", 0) or 0)
|
|
301
|
+
scope = str(payload.get("harness") or "all harnesses")
|
|
302
|
+
source = payload.get("source")
|
|
303
|
+
body = Table.grid(padding=(0, 1))
|
|
304
|
+
body.add_row("Outcome", str(error) if error else f"cleared {cleared} decision{'s' if cleared != 1 else ''}")
|
|
305
|
+
body.add_row("Harness", scope)
|
|
306
|
+
if source:
|
|
307
|
+
body.add_row("Source", str(source))
|
|
308
|
+
console.print(
|
|
309
|
+
Panel(
|
|
310
|
+
body,
|
|
311
|
+
title="Guard policy clear",
|
|
312
|
+
border_style="red" if error else "green",
|
|
313
|
+
)
|
|
314
|
+
)
|
|
315
|
+
return
|
|
298
316
|
items = _coerce_dict_list(payload.get("items"))
|
|
299
317
|
console.print(
|
|
300
318
|
Panel.fit(
|
|
@@ -374,6 +392,27 @@ def _render_events(console: Console, payload: dict[str, object]) -> None:
|
|
|
374
392
|
|
|
375
393
|
|
|
376
394
|
def _render_approvals(console: Console, payload: dict[str, object]) -> None:
|
|
395
|
+
if "history_cleared" in payload or "cleared_policies" in payload:
|
|
396
|
+
error = payload.get("error")
|
|
397
|
+
body = Table.grid(padding=(0, 1))
|
|
398
|
+
body.add_row(
|
|
399
|
+
"Outcome",
|
|
400
|
+
str(error) if error else "approval history reset",
|
|
401
|
+
)
|
|
402
|
+
body.add_row("Harness", str(payload.get("harness") or "all harnesses"))
|
|
403
|
+
source = payload.get("source")
|
|
404
|
+
if source:
|
|
405
|
+
body.add_row("Source", str(source))
|
|
406
|
+
body.add_row("Policy decisions", str(int(payload.get("cleared_policies", 0) or 0)))
|
|
407
|
+
body.add_row("Resolved requests", str(int(payload.get("cleared_resolved_requests", 0) or 0)))
|
|
408
|
+
console.print(
|
|
409
|
+
Panel(
|
|
410
|
+
body,
|
|
411
|
+
title="Approval history",
|
|
412
|
+
border_style="red" if error else "green",
|
|
413
|
+
)
|
|
414
|
+
)
|
|
415
|
+
return
|
|
377
416
|
if payload.get("resolved"):
|
|
378
417
|
item = payload.get("item")
|
|
379
418
|
if isinstance(item, dict):
|
|
@@ -1526,6 +1526,22 @@ class GuardStore:
|
|
|
1526
1526
|
with self._connect() as connection:
|
|
1527
1527
|
return count_pending_approval_requests(connection, status=status)
|
|
1528
1528
|
|
|
1529
|
+
def clear_approval_requests(self, *, harness: str | None = None, status: str | None = None) -> int:
|
|
1530
|
+
conditions: list[str] = []
|
|
1531
|
+
params: list[object] = []
|
|
1532
|
+
if harness is not None:
|
|
1533
|
+
conditions.append("harness = ?")
|
|
1534
|
+
params.append(harness)
|
|
1535
|
+
if status is not None:
|
|
1536
|
+
conditions.append("status = ?")
|
|
1537
|
+
params.append(status)
|
|
1538
|
+
query = "delete from approval_requests"
|
|
1539
|
+
if conditions:
|
|
1540
|
+
query += " where " + " and ".join(conditions)
|
|
1541
|
+
with self._connect() as connection:
|
|
1542
|
+
cursor = connection.execute(query, tuple(params))
|
|
1543
|
+
return int(cursor.rowcount if cursor.rowcount is not None else 0)
|
|
1544
|
+
|
|
1529
1545
|
def list_policy_decisions(self, harness: str | None = None) -> list[dict[str, object]]:
|
|
1530
1546
|
query = """
|
|
1531
1547
|
select harness, scope, artifact_id, artifact_hash, workspace, publisher, action, reason, owner, source,
|
|
@@ -1557,6 +1573,22 @@ class GuardStore:
|
|
|
1557
1573
|
for row in rows
|
|
1558
1574
|
]
|
|
1559
1575
|
|
|
1576
|
+
def clear_policy_decisions(self, harness: str | None = None, source: str | None = None) -> int:
|
|
1577
|
+
conditions: list[str] = []
|
|
1578
|
+
params: list[object] = []
|
|
1579
|
+
if harness is not None:
|
|
1580
|
+
conditions.append("harness = ?")
|
|
1581
|
+
params.append(harness)
|
|
1582
|
+
if source is not None:
|
|
1583
|
+
conditions.append("source = ?")
|
|
1584
|
+
params.append(source)
|
|
1585
|
+
query = "delete from policy_decisions"
|
|
1586
|
+
if conditions:
|
|
1587
|
+
query += " where " + " and ".join(conditions)
|
|
1588
|
+
with self._connect() as connection:
|
|
1589
|
+
cursor = connection.execute(query, tuple(params))
|
|
1590
|
+
return int(cursor.rowcount if cursor.rowcount is not None else 0)
|
|
1591
|
+
|
|
1560
1592
|
def get_latest_diff(self, harness: str, artifact_id: str) -> dict[str, object] | None:
|
|
1561
1593
|
with self._connect() as connection:
|
|
1562
1594
|
row = connection.execute(
|
|
@@ -1727,6 +1759,17 @@ class GuardStore:
|
|
|
1727
1759
|
(state_key,),
|
|
1728
1760
|
)
|
|
1729
1761
|
|
|
1762
|
+
def delete_sync_payloads(self, state_keys: list[str]) -> int:
|
|
1763
|
+
if not state_keys:
|
|
1764
|
+
return 0
|
|
1765
|
+
placeholders = ",".join("?" for _ in state_keys)
|
|
1766
|
+
with self._connect() as connection:
|
|
1767
|
+
cursor = connection.execute(
|
|
1768
|
+
f"delete from sync_state where state_key in ({placeholders})",
|
|
1769
|
+
tuple(state_keys),
|
|
1770
|
+
)
|
|
1771
|
+
return int(cursor.rowcount if cursor.rowcount is not None else 0)
|
|
1772
|
+
|
|
1730
1773
|
def add_guard_event_v1(self, event: GuardEventV1) -> None:
|
|
1731
1774
|
with self._connect() as connection:
|
|
1732
1775
|
self._add_guard_event_v1(connection, event)
|