plugin-scanner 2.0.66__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.66 → plugin_scanner-2.0.67}/PKG-INFO +1 -1
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/pyproject.toml +1 -1
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/pyproject.toml.bak +1 -1
- plugin_scanner-2.0.67/src/codex_plugin_scanner/guard/cli/approval_commands.py +119 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/commands.py +1 -1
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/render.py +21 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/store.py +16 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/version.py +1 -1
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_approvals.py +180 -0
- plugin_scanner-2.0.66/src/codex_plugin_scanner/guard/cli/approval_commands.py +0 -63
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.clusterfuzzlite/Dockerfile +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.clusterfuzzlite/build.sh +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.clusterfuzzlite/project.yaml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.clusterfuzzlite/requirements-atheris.txt +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.dockerignore +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/CODEOWNERS +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/dependabot.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/workflows/ci.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/workflows/codeql.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/workflows/dependabot-uv-lock.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/workflows/fuzz.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/workflows/harness-smoke.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/workflows/publish.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.github/workflows/scorecard.yml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.gitignore +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/.pre-commit-hooks.yaml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/CONTRIBUTING.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/Dockerfile +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/LICENSE +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/README.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/SECURITY.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/index.html +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/package.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/pnpm-lock.yaml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/public/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/app.tsx +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/approval-center-layout.tsx +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/approval-center-primitives.tsx +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/approval-center-utils.ts +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/fleet-workspace.tsx +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/guard-api.ts +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/guard-demo.ts +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/guard-types.ts +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/main.tsx +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/receipts-workspace.tsx +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/runtime-overview.tsx +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/styles.css +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/vite-env.d.ts +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/tsconfig.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/vite.config.ts +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/docker-requirements.txt +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/docs/guard/approval-audit.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/docs/guard/architecture.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/docs/guard/get-started.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/docs/guard/harness-support.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/docs/guard/local-vs-cloud.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/docs/guard/testing-matrix.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/docs/trust/mcp-trust-draft.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/docs/trust/plugin-trust-draft.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/docs/trust/skill-trust-local.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/fuzzers/manifest_fuzzer.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/requirements.txt +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/schemas/plugin-quality.v1.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/schemas/scan-result.v1.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/schemas/verify-result.v1.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/action_runner.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/argparse_utils.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/best_practices.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/claude.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/code_quality.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/ecosystem_common.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/gemini.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/manifest.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/manifest_support.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/marketplace.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/mcp_security.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/opencode.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/operational_security.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/security.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/skill_security.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/cli.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/cli_ui.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/config.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/base.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/claude.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/codex.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/detect.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/gemini.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/opencode.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/registry.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/ecosystems/types.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/github_reporting.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/antigravity.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/base.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/claude_code.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/codex.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/copilot.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/cursor.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/gemini.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/hermes.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/mcp_servers.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/opencode.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/adapters/opencode_artifacts.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/approvals.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/bridge/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/capabilities.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/bootstrap.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/connect_flow.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/install_commands.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/product.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/prompt.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/update_commands.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/codex_config.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/config.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/consumer/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/consumer/service.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/client.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/manager.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/server.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/static/assets/guard-dashboard.js +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/static/assets/index.css +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/daemon/static/index.html +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/edge_events.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/incident.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/launcher.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/mcp_tool_calls.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/models.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/policy/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/policy/engine.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/protect.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/proxy/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/proxy/remote.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/proxy/runtime_mcp.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/proxy/stdio.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/receipts/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/receipts/manager.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/risk.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/runtime/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/runtime/runner.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/runtime/secret_file_requests.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/runtime/surface_server.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/schemas/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/schemas/consumer_mode.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/schemas/guard_event_v1.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/schemas/surface_server.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/shims.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/store_approvals.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/store_connect.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/types.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/integrations/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/integrations/cisco_mcp_scanner.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/integrations/cisco_skill_scanner.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/lint_fixes.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/marketplace_support.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/models.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/path_support.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/policy.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/quality_artifact.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/repo_detect.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/reporting.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/rules/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/rules/registry.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/rules/specs.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/scanner.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/submission.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/suppressions.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_domain_scoring.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_helpers.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_mcp_scoring.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_models.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_plugin_scoring.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_scoring.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_skill_scoring.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/trust_specs.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/verification.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/conftest.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/__init__.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/bad-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/bad-plugin/.mcp.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/bad-plugin/secrets.js +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/.claude-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/LICENSE +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/README.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/hooks/hooks.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/claude-plugin-good/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/code-quality-bad/evil.js +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/code-quality-bad/inject.js +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/GEMINI.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/LICENSE +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/README.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/commands/hello.toml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/gemini-extension-good/gemini-extension.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/README.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/assets/icon.svg +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/assets/logo.svg +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/assets/screenshot.svg +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/good-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/guard-codex-malicious-mcp/.codex/config.toml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/config.yaml +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/mcp_servers.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/skills/security/malicious/SKILL.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/SKILL.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/references/api-setup.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/scripts/deploy.sh +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/hermes-plugin-evil/skills/utils/benign/SKILL.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/malformed-json/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/README.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/malicious-skill-plugin/skills/leaky-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/mcp-canary-server.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/minimal-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/missing-fields/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/mit-license/LICENSE +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/codex-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/codex-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/codex-plugin/README.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/codex-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/gemini-ext/README.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-ecosystem-repo/gemini-ext/gemini-extension.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/.agents/plugins/marketplace.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/README.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/no-version/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/.opencode/commands/hello.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/.opencode/plugins/example.ts +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/LICENSE +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/README.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/opencode-good/opencode.jsonc +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/skills-missing-dir/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/skills-no-frontmatter/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/skills-no-frontmatter/skills/bad-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/with-marketplace/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/with-marketplace/marketplace-broken.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/fixtures/with-marketplace/marketplace.json +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test-trust-scoring.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test-trust-specs.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_action_runner.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_best_practices.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_cisco_install_surfaces.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_cli.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_code_quality.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_config.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_coverage_remaining.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_ecosystems.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_edge_cases.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_final_coverage.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_bootstrap.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_capabilities.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_claude_adapter.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_cli.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_codex_e2e.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_codex_install.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_codex_proxy.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_config_paths.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_connect_flow.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_consumer_mode.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_copilot_adapter.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_copilot_proxy.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_daemon_manager.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_event_schema_v1.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_events.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_launch_env.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_opencode_proxy.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_product_flow.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_protect.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_render.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_risk.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_runtime.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_store_migrations.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_surface_server.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_guard_verdicts.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_hermes_adapter.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_integration.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_lint_fixes.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_live_cisco_smoke.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_manifest.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_marketplace.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_mcp_security.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_operational_security.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_policy.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_quality_artifact.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_rule_registry.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_scanner.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_schema_contracts.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_security.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_security_ops.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_skill_security.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_submission.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_trust_scoring.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_trust_specs.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_verification.py +0 -0
- {plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/tests/test_versioning.py +0 -0
- {plugin_scanner-2.0.66 → 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"
|
|
@@ -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.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/commands.py
RENAMED
|
@@ -855,7 +855,7 @@ def run_guard_command(
|
|
|
855
855
|
if args.guard_command == "approvals":
|
|
856
856
|
payload = run_approval_command(args, store=store, workspace=workspace)
|
|
857
857
|
_emit("approvals", payload, getattr(args, "json", False))
|
|
858
|
-
return 0
|
|
858
|
+
return int(payload.get("exit_code", 0))
|
|
859
859
|
|
|
860
860
|
if args.guard_command == "explain":
|
|
861
861
|
payload = _build_explain_payload_with_mode(store, args.target, cisco_mode=args.cisco_mode)
|
{plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/guard/cli/render.py
RENAMED
|
@@ -392,6 +392,27 @@ def _render_events(console: Console, payload: dict[str, object]) -> None:
|
|
|
392
392
|
|
|
393
393
|
|
|
394
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
|
|
395
416
|
if payload.get("resolved"):
|
|
396
417
|
item = payload.get("item")
|
|
397
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,
|
|
@@ -1632,6 +1632,98 @@ class TestGuardApprovals:
|
|
|
1632
1632
|
assert store.list_policy_decisions("claude-code") == []
|
|
1633
1633
|
assert len(store.list_policy_decisions("codex")) == 1
|
|
1634
1634
|
|
|
1635
|
+
def test_guard_approvals_clear_history_resets_saved_decisions(self, tmp_path, capsys):
|
|
1636
|
+
home_dir = tmp_path / "home"
|
|
1637
|
+
store = GuardStore(home_dir)
|
|
1638
|
+
store.upsert_policy(
|
|
1639
|
+
PolicyDecision(
|
|
1640
|
+
harness="claude-code",
|
|
1641
|
+
scope="artifact",
|
|
1642
|
+
action="block",
|
|
1643
|
+
artifact_id="claude-code:runtime:file-read:.env",
|
|
1644
|
+
artifact_hash="hash-env",
|
|
1645
|
+
reason="blocked during local test",
|
|
1646
|
+
source="claude-ask-user-question",
|
|
1647
|
+
),
|
|
1648
|
+
"2026-04-23T00:00:00+00:00",
|
|
1649
|
+
)
|
|
1650
|
+
store.upsert_policy(
|
|
1651
|
+
PolicyDecision(
|
|
1652
|
+
harness="codex",
|
|
1653
|
+
scope="artifact",
|
|
1654
|
+
action="allow",
|
|
1655
|
+
artifact_id="codex:project:workspace_skill",
|
|
1656
|
+
artifact_hash="hash-workspace",
|
|
1657
|
+
reason="keep codex allow",
|
|
1658
|
+
source="manual",
|
|
1659
|
+
),
|
|
1660
|
+
"2026-04-23T00:00:00+00:00",
|
|
1661
|
+
)
|
|
1662
|
+
store.add_approval_request(
|
|
1663
|
+
GuardApprovalRequest(
|
|
1664
|
+
request_id="req-claude-resolved",
|
|
1665
|
+
harness="claude-code",
|
|
1666
|
+
artifact_id="claude-code:runtime:file-read:.env",
|
|
1667
|
+
artifact_name=".env",
|
|
1668
|
+
artifact_hash="hash-env",
|
|
1669
|
+
policy_action="require-reapproval",
|
|
1670
|
+
recommended_scope="artifact",
|
|
1671
|
+
changed_fields=("first_seen",),
|
|
1672
|
+
source_scope="project",
|
|
1673
|
+
config_path=str(tmp_path / "workspace" / ".claude" / "settings.local.json"),
|
|
1674
|
+
review_command="hol-guard approvals approve req-claude-resolved",
|
|
1675
|
+
approval_url="http://127.0.0.1/pending/req-claude-resolved",
|
|
1676
|
+
),
|
|
1677
|
+
"2026-04-23T00:00:00+00:00",
|
|
1678
|
+
)
|
|
1679
|
+
store.resolve_approval_request(
|
|
1680
|
+
"req-claude-resolved",
|
|
1681
|
+
resolution_action="block",
|
|
1682
|
+
resolution_scope="artifact",
|
|
1683
|
+
reason="intentional block",
|
|
1684
|
+
resolved_at="2026-04-23T00:01:00+00:00",
|
|
1685
|
+
)
|
|
1686
|
+
store.add_approval_request(
|
|
1687
|
+
GuardApprovalRequest(
|
|
1688
|
+
request_id="req-claude-pending",
|
|
1689
|
+
harness="claude-code",
|
|
1690
|
+
artifact_id="claude-code:runtime:file-read:.npmrc",
|
|
1691
|
+
artifact_name=".npmrc",
|
|
1692
|
+
artifact_hash="hash-npmrc",
|
|
1693
|
+
policy_action="require-reapproval",
|
|
1694
|
+
recommended_scope="artifact",
|
|
1695
|
+
changed_fields=("first_seen",),
|
|
1696
|
+
source_scope="project",
|
|
1697
|
+
config_path=str(tmp_path / "workspace" / ".claude" / "settings.local.json"),
|
|
1698
|
+
review_command="hol-guard approvals approve req-claude-pending",
|
|
1699
|
+
approval_url="http://127.0.0.1/pending/req-claude-pending",
|
|
1700
|
+
),
|
|
1701
|
+
"2026-04-23T00:02:00+00:00",
|
|
1702
|
+
)
|
|
1703
|
+
|
|
1704
|
+
rc = main(
|
|
1705
|
+
[
|
|
1706
|
+
"guard",
|
|
1707
|
+
"approvals",
|
|
1708
|
+
"clear-history",
|
|
1709
|
+
"--home",
|
|
1710
|
+
str(home_dir),
|
|
1711
|
+
"--harness",
|
|
1712
|
+
"claude-code",
|
|
1713
|
+
"--json",
|
|
1714
|
+
]
|
|
1715
|
+
)
|
|
1716
|
+
output = json.loads(capsys.readouterr().out)
|
|
1717
|
+
|
|
1718
|
+
assert rc == 0
|
|
1719
|
+
assert output["history_cleared"] is True
|
|
1720
|
+
assert output["cleared_policies"] == 1
|
|
1721
|
+
assert output["cleared_resolved_requests"] == 1
|
|
1722
|
+
assert store.list_policy_decisions("claude-code") == []
|
|
1723
|
+
assert len(store.list_policy_decisions("codex")) == 1
|
|
1724
|
+
assert len(store.list_approval_requests(status="resolved", harness="claude-code", limit=None)) == 0
|
|
1725
|
+
assert len(store.list_approval_requests(status="pending", harness="claude-code", limit=None)) == 1
|
|
1726
|
+
|
|
1635
1727
|
def test_guard_policies_clear_renders_non_json_result(self, tmp_path, capsys):
|
|
1636
1728
|
home_dir = tmp_path / "home"
|
|
1637
1729
|
store = GuardStore(home_dir)
|
|
@@ -1684,6 +1776,94 @@ class TestGuardApprovals:
|
|
|
1684
1776
|
assert output["cleared"] == 0
|
|
1685
1777
|
assert "Choose either --all or --harness <name>" in output["error"]
|
|
1686
1778
|
|
|
1779
|
+
def test_guard_approvals_clear_history_requires_scope_selector(self, tmp_path, capsys):
|
|
1780
|
+
rc = main(["guard", "approvals", "clear-history", "--home", str(tmp_path / "home"), "--json"])
|
|
1781
|
+
output = json.loads(capsys.readouterr().out)
|
|
1782
|
+
|
|
1783
|
+
assert rc == 2
|
|
1784
|
+
assert output["history_cleared"] is False
|
|
1785
|
+
assert output["cleared_policies"] == 0
|
|
1786
|
+
assert output["cleared_resolved_requests"] == 0
|
|
1787
|
+
assert "Choose --harness <name> or --all" in output["error"]
|
|
1788
|
+
|
|
1789
|
+
def test_guard_approvals_clear_history_with_source_only_clears_matching_policies(self, tmp_path, capsys):
|
|
1790
|
+
home_dir = tmp_path / "home"
|
|
1791
|
+
store = GuardStore(home_dir)
|
|
1792
|
+
store.upsert_policy(
|
|
1793
|
+
PolicyDecision(
|
|
1794
|
+
harness="claude-code",
|
|
1795
|
+
scope="artifact",
|
|
1796
|
+
action="block",
|
|
1797
|
+
artifact_id="claude-code:runtime:file-read:.env",
|
|
1798
|
+
artifact_hash="hash-env",
|
|
1799
|
+
reason="blocked during local test",
|
|
1800
|
+
source="claude-ask-user-question",
|
|
1801
|
+
),
|
|
1802
|
+
"2026-04-23T00:00:00+00:00",
|
|
1803
|
+
)
|
|
1804
|
+
store.upsert_policy(
|
|
1805
|
+
PolicyDecision(
|
|
1806
|
+
harness="claude-code",
|
|
1807
|
+
scope="artifact",
|
|
1808
|
+
action="allow",
|
|
1809
|
+
artifact_id="claude-code:runtime:file-read:.npmrc",
|
|
1810
|
+
artifact_hash="hash-npmrc",
|
|
1811
|
+
reason="keep manual allow",
|
|
1812
|
+
source="manual",
|
|
1813
|
+
),
|
|
1814
|
+
"2026-04-23T00:00:00+00:00",
|
|
1815
|
+
)
|
|
1816
|
+
store.add_approval_request(
|
|
1817
|
+
GuardApprovalRequest(
|
|
1818
|
+
request_id="req-claude-resolved-source",
|
|
1819
|
+
harness="claude-code",
|
|
1820
|
+
artifact_id="claude-code:runtime:file-read:.env",
|
|
1821
|
+
artifact_name=".env",
|
|
1822
|
+
artifact_hash="hash-env",
|
|
1823
|
+
policy_action="require-reapproval",
|
|
1824
|
+
recommended_scope="artifact",
|
|
1825
|
+
changed_fields=("first_seen",),
|
|
1826
|
+
source_scope="project",
|
|
1827
|
+
config_path=str(tmp_path / "workspace" / ".claude" / "settings.local.json"),
|
|
1828
|
+
review_command="hol-guard approvals approve req-claude-resolved-source",
|
|
1829
|
+
approval_url="http://127.0.0.1/pending/req-claude-resolved-source",
|
|
1830
|
+
),
|
|
1831
|
+
"2026-04-23T00:00:00+00:00",
|
|
1832
|
+
)
|
|
1833
|
+
store.resolve_approval_request(
|
|
1834
|
+
"req-claude-resolved-source",
|
|
1835
|
+
resolution_action="block",
|
|
1836
|
+
resolution_scope="artifact",
|
|
1837
|
+
reason="intentional block",
|
|
1838
|
+
resolved_at="2026-04-23T00:01:00+00:00",
|
|
1839
|
+
)
|
|
1840
|
+
|
|
1841
|
+
rc = main(
|
|
1842
|
+
[
|
|
1843
|
+
"guard",
|
|
1844
|
+
"approvals",
|
|
1845
|
+
"clear-history",
|
|
1846
|
+
"--home",
|
|
1847
|
+
str(home_dir),
|
|
1848
|
+
"--harness",
|
|
1849
|
+
"claude-code",
|
|
1850
|
+
"--source",
|
|
1851
|
+
"claude-ask-user-question",
|
|
1852
|
+
"--json",
|
|
1853
|
+
]
|
|
1854
|
+
)
|
|
1855
|
+
output = json.loads(capsys.readouterr().out)
|
|
1856
|
+
|
|
1857
|
+
assert rc == 0
|
|
1858
|
+
assert output["history_cleared"] is True
|
|
1859
|
+
assert output["source"] == "claude-ask-user-question"
|
|
1860
|
+
assert output["cleared_policies"] == 1
|
|
1861
|
+
assert output["cleared_resolved_requests"] == 0
|
|
1862
|
+
remaining = store.list_policy_decisions("claude-code")
|
|
1863
|
+
assert len(remaining) == 1
|
|
1864
|
+
assert remaining[0]["source"] == "manual"
|
|
1865
|
+
assert len(store.list_approval_requests(status="resolved", harness="claude-code", limit=None)) == 1
|
|
1866
|
+
|
|
1687
1867
|
def test_guard_bridge_resolves_requests_against_guard_daemon_api(self, tmp_path, monkeypatch):
|
|
1688
1868
|
store = GuardStore(tmp_path / "guard-home")
|
|
1689
1869
|
bridge = GuardBridge(
|
|
@@ -1,63 +0,0 @@
|
|
|
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("approvals", help="List or resolve pending Guard approvals")
|
|
19
|
-
approvals_subparsers = approvals_parser.add_subparsers(dest="approvals_command")
|
|
20
|
-
|
|
21
|
-
add_common_args(approvals_parser)
|
|
22
|
-
approvals_parser.add_argument("--json", action="store_true")
|
|
23
|
-
|
|
24
|
-
for name, action in (("approve", "allow"), ("deny", "block")):
|
|
25
|
-
decision_parser = approvals_subparsers.add_parser(name, help=f"{name.title()} a pending approval request")
|
|
26
|
-
decision_parser.add_argument("request_id")
|
|
27
|
-
decision_parser.add_argument(
|
|
28
|
-
"--scope",
|
|
29
|
-
choices=("artifact", "publisher", "workspace", "harness", "global"),
|
|
30
|
-
default="artifact",
|
|
31
|
-
)
|
|
32
|
-
decision_parser.add_argument("--reason")
|
|
33
|
-
add_common_args(decision_parser)
|
|
34
|
-
decision_parser.add_argument("--json", action="store_true")
|
|
35
|
-
decision_parser.set_defaults(approval_action=action)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
def run_approval_command(
|
|
39
|
-
args: argparse.Namespace,
|
|
40
|
-
*,
|
|
41
|
-
store: GuardStore,
|
|
42
|
-
workspace: Path | None,
|
|
43
|
-
) -> dict[str, object]:
|
|
44
|
-
if getattr(args, "approvals_command", None) is None:
|
|
45
|
-
return build_runtime_snapshot(
|
|
46
|
-
store=store,
|
|
47
|
-
approval_center_url=load_guard_daemon_url(store.guard_home),
|
|
48
|
-
now=_now(),
|
|
49
|
-
)
|
|
50
|
-
item = apply_approval_resolution(
|
|
51
|
-
store=store,
|
|
52
|
-
request_id=args.request_id,
|
|
53
|
-
action=args.approval_action,
|
|
54
|
-
scope=args.scope,
|
|
55
|
-
workspace=str(workspace) if workspace is not None else None,
|
|
56
|
-
reason=args.reason,
|
|
57
|
-
now=_now(),
|
|
58
|
-
)
|
|
59
|
-
return {"resolved": True, "item": item}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
def _now() -> str:
|
|
63
|
-
return datetime.now(timezone.utc).isoformat()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/dashboard/src/approval-center-primitives.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/best_practices.py
RENAMED
|
File without changes
|
|
File without changes
|
{plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/code_quality.py
RENAMED
|
File without changes
|
{plugin_scanner-2.0.66 → plugin_scanner-2.0.67}/src/codex_plugin_scanner/checks/ecosystem_common.py
RENAMED
|
File without changes
|