plugin-scanner 2.0.68__tar.gz → 2.0.70__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.68 → plugin_scanner-2.0.70}/PKG-INFO +1 -1
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/index.html +1 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/package.json +2 -1
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/pnpm-lock.yaml +12 -0
- plugin_scanner-2.0.70/dashboard/public/apple-touch-icon.png +0 -0
- plugin_scanner-2.0.70/dashboard/public/brand/Logo_Icon_Dark.png +0 -0
- plugin_scanner-2.0.70/dashboard/public/favicon-16x16.png +0 -0
- plugin_scanner-2.0.70/dashboard/public/favicon-32x32.png +0 -0
- plugin_scanner-2.0.70/dashboard/public/favicon.ico +0 -0
- plugin_scanner-2.0.70/dashboard/src/app.tsx +493 -0
- plugin_scanner-2.0.70/dashboard/src/approval-center-layout.tsx +866 -0
- plugin_scanner-2.0.70/dashboard/src/approval-center-primitives.tsx +580 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/src/approval-center-utils.ts +50 -32
- plugin_scanner-2.0.70/dashboard/src/fleet-workspace.tsx +183 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/src/guard-api.ts +94 -3
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/src/guard-types.ts +56 -0
- plugin_scanner-2.0.70/dashboard/src/receipts-workspace.tsx +238 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/src/runtime-overview.tsx +9 -9
- plugin_scanner-2.0.70/dashboard/src/settings-workspace.tsx +479 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/src/styles.css +1 -9
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/pyproject.toml +1 -1
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/pyproject.toml.bak +1 -1
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/codex.py +100 -45
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/approvals.py +1 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/cli/commands.py +321 -86
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/config.py +279 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/daemon/manager.py +5 -1
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/daemon/server.py +118 -1
- plugin_scanner-2.0.70/src/codex_plugin_scanner/guard/daemon/static/apple-touch-icon.png +0 -0
- plugin_scanner-2.0.70/src/codex_plugin_scanner/guard/daemon/static/assets/guard-dashboard.js +9 -0
- plugin_scanner-2.0.70/src/codex_plugin_scanner/guard/daemon/static/assets/index.css +1 -0
- plugin_scanner-2.0.70/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Icon_Dark.png +0 -0
- plugin_scanner-2.0.70/src/codex_plugin_scanner/guard/daemon/static/favicon-16x16.png +0 -0
- plugin_scanner-2.0.70/src/codex_plugin_scanner/guard/daemon/static/favicon-32x32.png +0 -0
- plugin_scanner-2.0.70/src/codex_plugin_scanner/guard/daemon/static/favicon.ico +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/daemon/static/index.html +1 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/runtime/secret_file_requests.py +110 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/version.py +1 -1
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_approvals.py +1 -1
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_cli.py +133 -2
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_codex_install.py +61 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_config_paths.py +235 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_risk.py +41 -1
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_runtime.py +495 -15
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_surface_server.py +239 -1
- plugin_scanner-2.0.68/dashboard/src/app.tsx +0 -368
- plugin_scanner-2.0.68/dashboard/src/approval-center-layout.tsx +0 -531
- plugin_scanner-2.0.68/dashboard/src/approval-center-primitives.tsx +0 -373
- plugin_scanner-2.0.68/dashboard/src/fleet-workspace.tsx +0 -139
- plugin_scanner-2.0.68/dashboard/src/receipts-workspace.tsx +0 -70
- plugin_scanner-2.0.68/src/codex_plugin_scanner/guard/daemon/static/assets/guard-dashboard.js +0 -9
- plugin_scanner-2.0.68/src/codex_plugin_scanner/guard/daemon/static/assets/index.css +0 -1
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.clusterfuzzlite/Dockerfile +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.clusterfuzzlite/build.sh +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.clusterfuzzlite/project.yaml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.clusterfuzzlite/requirements-atheris.txt +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.dockerignore +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/CODEOWNERS +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/dependabot.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/workflows/ci.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/workflows/codeql.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/workflows/dependabot-uv-lock.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/workflows/fuzz.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/workflows/harness-smoke.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/workflows/publish.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.github/workflows/scorecard.yml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.gitignore +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/.pre-commit-hooks.yaml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/CONTRIBUTING.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/Dockerfile +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/LICENSE +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/README.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/SECURITY.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/public/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/src/guard-demo.ts +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/src/main.tsx +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/src/vite-env.d.ts +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/tsconfig.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/dashboard/vite.config.ts +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/docker-requirements.txt +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/docs/guard/approval-audit.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/docs/guard/architecture.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/docs/guard/get-started.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/docs/guard/harness-support.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/docs/guard/local-vs-cloud.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/docs/guard/testing-matrix.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/docs/trust/mcp-trust-draft.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/docs/trust/plugin-trust-draft.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/docs/trust/skill-trust-local.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/fuzzers/manifest_fuzzer.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/requirements.txt +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/schemas/plugin-quality.v1.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/schemas/scan-result.v1.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/schemas/verify-result.v1.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/action_runner.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/argparse_utils.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/best_practices.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/claude.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/code_quality.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/ecosystem_common.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/gemini.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/manifest.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/manifest_support.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/marketplace.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/mcp_security.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/opencode.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/operational_security.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/security.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/checks/skill_security.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/cli.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/cli_ui.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/config.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/ecosystems/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/ecosystems/base.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/ecosystems/claude.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/ecosystems/codex.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/ecosystems/detect.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/ecosystems/gemini.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/ecosystems/opencode.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/ecosystems/registry.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/ecosystems/types.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/github_reporting.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/antigravity.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/base.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/claude_code.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/copilot.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/cursor.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/gemini.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/hermes.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/mcp_servers.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/opencode.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/adapters/opencode_artifacts.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/bridge/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/capabilities.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/cli/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/cli/approval_commands.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/cli/bootstrap.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/cli/connect_flow.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/cli/install_commands.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/cli/product.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/cli/prompt.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/cli/render.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/cli/update_commands.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/codex_config.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/consumer/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/consumer/service.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/daemon/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/daemon/client.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/edge_events.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/incident.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/launcher.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/mcp_tool_calls.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/models.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/policy/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/policy/engine.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/protect.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/proxy/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/proxy/remote.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/proxy/runtime_mcp.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/proxy/stdio.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/receipts/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/receipts/manager.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/risk.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/runtime/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/runtime/runner.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/runtime/surface_server.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/schemas/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/schemas/consumer_mode.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/schemas/guard_event_v1.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/schemas/surface_server.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/shims.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/store.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/store_approvals.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/store_connect.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/guard/types.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/integrations/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/integrations/cisco_mcp_scanner.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/integrations/cisco_skill_scanner.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/lint_fixes.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/marketplace_support.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/models.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/path_support.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/policy.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/quality_artifact.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/repo_detect.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/reporting.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/rules/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/rules/registry.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/rules/specs.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/scanner.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/submission.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/suppressions.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/trust_domain_scoring.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/trust_helpers.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/trust_mcp_scoring.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/trust_models.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/trust_plugin_scoring.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/trust_scoring.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/trust_skill_scoring.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/trust_specs.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/src/codex_plugin_scanner/verification.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/conftest.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/__init__.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/bad-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/bad-plugin/.mcp.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/bad-plugin/secrets.js +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/claude-plugin-good/.claude-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/claude-plugin-good/LICENSE +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/claude-plugin-good/README.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/claude-plugin-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/claude-plugin-good/hooks/hooks.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/claude-plugin-good/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/code-quality-bad/evil.js +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/code-quality-bad/inject.js +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/gemini-extension-good/GEMINI.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/gemini-extension-good/LICENSE +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/gemini-extension-good/README.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/gemini-extension-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/gemini-extension-good/commands/hello.toml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/gemini-extension-good/gemini-extension.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/good-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/good-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/good-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/good-plugin/README.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/good-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/good-plugin/assets/icon.svg +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/good-plugin/assets/logo.svg +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/good-plugin/assets/screenshot.svg +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/good-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/guard-codex-malicious-mcp/.codex/config.toml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/hermes-plugin-evil/config.yaml +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/hermes-plugin-evil/mcp_servers.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/hermes-plugin-evil/skills/security/malicious/SKILL.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/SKILL.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/references/api-setup.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/scripts/deploy.sh +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/hermes-plugin-evil/skills/utils/benign/SKILL.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/malformed-json/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/malicious-skill-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/malicious-skill-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/malicious-skill-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/malicious-skill-plugin/README.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/malicious-skill-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/malicious-skill-plugin/skills/leaky-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/mcp-canary-server.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/minimal-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/missing-fields/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/mit-license/LICENSE +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-ecosystem-repo/codex-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-ecosystem-repo/codex-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-ecosystem-repo/codex-plugin/README.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-ecosystem-repo/codex-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-ecosystem-repo/gemini-ext/README.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-ecosystem-repo/gemini-ext/gemini-extension.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-plugin-repo/.agents/plugins/marketplace.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/README.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/no-version/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/opencode-good/.opencode/commands/hello.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/opencode-good/.opencode/plugins/example.ts +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/opencode-good/LICENSE +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/opencode-good/README.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/opencode-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/opencode-good/opencode.jsonc +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/skills-missing-dir/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/skills-no-frontmatter/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/skills-no-frontmatter/skills/bad-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/with-marketplace/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/with-marketplace/marketplace-broken.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/fixtures/with-marketplace/marketplace.json +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test-trust-scoring.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test-trust-specs.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_action_runner.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_best_practices.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_cisco_install_surfaces.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_cli.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_code_quality.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_config.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_coverage_remaining.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_ecosystems.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_edge_cases.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_final_coverage.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_bootstrap.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_capabilities.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_claude_adapter.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_codex_e2e.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_codex_proxy.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_connect_flow.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_consumer_mode.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_copilot_adapter.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_copilot_proxy.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_daemon_manager.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_event_schema_v1.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_events.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_launch_env.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_opencode_proxy.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_product_flow.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_protect.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_render.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_store_migrations.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_guard_verdicts.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_hermes_adapter.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_integration.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_lint_fixes.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_live_cisco_smoke.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_manifest.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_marketplace.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_mcp_security.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_operational_security.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_policy.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_quality_artifact.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_rule_registry.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_scanner.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_schema_contracts.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_security.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_security_ops.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_skill_security.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_submission.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_trust_scoring.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_trust_specs.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_verification.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/tests/test_versioning.py +0 -0
- {plugin_scanner-2.0.68 → plugin_scanner-2.0.70}/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.70
|
|
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
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
<link rel="icon" href="/favicon.ico" sizes="48x48" />
|
|
17
17
|
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32" />
|
|
18
18
|
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16" />
|
|
19
|
+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
19
20
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
20
21
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
21
22
|
<link
|
|
@@ -14,6 +14,9 @@ importers:
|
|
|
14
14
|
react-dom:
|
|
15
15
|
specifier: ^19.2.0
|
|
16
16
|
version: 19.2.5(react@19.2.5)
|
|
17
|
+
react-icons:
|
|
18
|
+
specifier: ^5.6.0
|
|
19
|
+
version: 5.6.0(react@19.2.5)
|
|
17
20
|
devDependencies:
|
|
18
21
|
'@tailwindcss/vite':
|
|
19
22
|
specifier: ^4.1.4
|
|
@@ -730,6 +733,11 @@ packages:
|
|
|
730
733
|
peerDependencies:
|
|
731
734
|
react: ^19.2.5
|
|
732
735
|
|
|
736
|
+
react-icons@5.6.0:
|
|
737
|
+
resolution: {integrity: sha512-RH93p5ki6LfOiIt0UtDyNg/cee+HLVR6cHHtW3wALfo+eOHTp8RnU2kRkI6E+H19zMIs03DyxUG/GfZMOGvmiA==}
|
|
738
|
+
peerDependencies:
|
|
739
|
+
react: '*'
|
|
740
|
+
|
|
733
741
|
react-refresh@0.18.0:
|
|
734
742
|
resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==}
|
|
735
743
|
engines: {node: '>=0.10.0'}
|
|
@@ -1375,6 +1383,10 @@ snapshots:
|
|
|
1375
1383
|
react: 19.2.5
|
|
1376
1384
|
scheduler: 0.27.0
|
|
1377
1385
|
|
|
1386
|
+
react-icons@5.6.0(react@19.2.5):
|
|
1387
|
+
dependencies:
|
|
1388
|
+
react: 19.2.5
|
|
1389
|
+
|
|
1378
1390
|
react-refresh@0.18.0: {}
|
|
1379
1391
|
|
|
1380
1392
|
react@19.2.5: {}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
ActionButton,
|
|
5
|
+
Badge,
|
|
6
|
+
EmptyState,
|
|
7
|
+
SectionLabel,
|
|
8
|
+
Surface,
|
|
9
|
+
Tag
|
|
10
|
+
} from "./approval-center-primitives";
|
|
11
|
+
import {
|
|
12
|
+
clearPolicy,
|
|
13
|
+
fetchDiff,
|
|
14
|
+
fetchInventory,
|
|
15
|
+
fetchLatestReceipt,
|
|
16
|
+
fetchPolicies,
|
|
17
|
+
fetchPolicy,
|
|
18
|
+
fetchReceipts,
|
|
19
|
+
fetchRequest,
|
|
20
|
+
fetchRuntimeSnapshot,
|
|
21
|
+
guardAwareHref,
|
|
22
|
+
resolveRequest
|
|
23
|
+
} from "./guard-api";
|
|
24
|
+
import { ApprovalCenterLayout } from "./approval-center-layout";
|
|
25
|
+
import { FleetWorkspace } from "./fleet-workspace";
|
|
26
|
+
import { SettingsWorkspace } from "./settings-workspace";
|
|
27
|
+
import type {
|
|
28
|
+
GuardApprovalRequest,
|
|
29
|
+
GuardArtifactDiff,
|
|
30
|
+
GuardPolicyDecision,
|
|
31
|
+
GuardReceipt,
|
|
32
|
+
GuardRuntimeSnapshot,
|
|
33
|
+
GuardInventoryItem
|
|
34
|
+
} from "./guard-types";
|
|
35
|
+
|
|
36
|
+
type RequestState =
|
|
37
|
+
| { kind: "loading" }
|
|
38
|
+
| { kind: "error"; message: string }
|
|
39
|
+
| { kind: "ready"; items: GuardApprovalRequest[] };
|
|
40
|
+
|
|
41
|
+
type DetailState =
|
|
42
|
+
| { kind: "idle" }
|
|
43
|
+
| { kind: "loading" }
|
|
44
|
+
| { kind: "error"; message: string }
|
|
45
|
+
| {
|
|
46
|
+
kind: "ready";
|
|
47
|
+
item: GuardApprovalRequest;
|
|
48
|
+
diff: GuardArtifactDiff | null;
|
|
49
|
+
receipt: GuardReceipt | null;
|
|
50
|
+
policy: GuardPolicyDecision[];
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
type ReceiptsState =
|
|
54
|
+
| { kind: "loading" }
|
|
55
|
+
| { kind: "error"; message: string }
|
|
56
|
+
| { kind: "ready"; items: GuardReceipt[] };
|
|
57
|
+
|
|
58
|
+
type RuntimeState =
|
|
59
|
+
| { kind: "loading" }
|
|
60
|
+
| { kind: "error"; message: string }
|
|
61
|
+
| { kind: "ready"; snapshot: GuardRuntimeSnapshot };
|
|
62
|
+
|
|
63
|
+
type PolicyState =
|
|
64
|
+
| { kind: "loading" }
|
|
65
|
+
| { kind: "error"; message: string }
|
|
66
|
+
| { kind: "ready"; items: GuardPolicyDecision[] };
|
|
67
|
+
type InventoryState =
|
|
68
|
+
| { kind: "idle" }
|
|
69
|
+
| { kind: "loading" }
|
|
70
|
+
| { kind: "error"; message: string }
|
|
71
|
+
| { kind: "ready"; items: GuardInventoryItem[] };
|
|
72
|
+
|
|
73
|
+
function usePathname(): string {
|
|
74
|
+
const [pathname, setPathname] = useState(window.location.pathname);
|
|
75
|
+
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
const onPopState = () => setPathname(window.location.pathname);
|
|
78
|
+
window.addEventListener("popstate", onPopState);
|
|
79
|
+
return () => window.removeEventListener("popstate", onPopState);
|
|
80
|
+
}, []);
|
|
81
|
+
|
|
82
|
+
return pathname;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function navigate(pathname: string): void {
|
|
86
|
+
window.history.pushState({}, "", guardAwareHref(pathname));
|
|
87
|
+
window.dispatchEvent(new PopStateEvent("popstate"));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function parseRequestId(pathname: string): string | null {
|
|
91
|
+
if (pathname.startsWith("/requests/")) {
|
|
92
|
+
return pathname.slice("/requests/".length);
|
|
93
|
+
}
|
|
94
|
+
if (pathname.startsWith("/approvals/")) {
|
|
95
|
+
return pathname.slice("/approvals/".length);
|
|
96
|
+
}
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function resolveView(pathname: string): "home" | "inbox" | "fleet" | "evidence" | "settings" {
|
|
101
|
+
if (pathname === "/settings") {
|
|
102
|
+
return "settings";
|
|
103
|
+
}
|
|
104
|
+
if (pathname === "/fleet") {
|
|
105
|
+
return "fleet";
|
|
106
|
+
}
|
|
107
|
+
if (pathname === "/evidence") {
|
|
108
|
+
return "evidence";
|
|
109
|
+
}
|
|
110
|
+
if (
|
|
111
|
+
pathname === "/inbox" ||
|
|
112
|
+
pathname === "/requests" ||
|
|
113
|
+
pathname === "/approvals" ||
|
|
114
|
+
pathname.startsWith("/requests/") ||
|
|
115
|
+
pathname.startsWith("/approvals/")
|
|
116
|
+
) {
|
|
117
|
+
return "inbox";
|
|
118
|
+
}
|
|
119
|
+
return "home";
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async function loadDetail(requestId: string): Promise<Exclude<DetailState, { kind: "idle" | "loading" }>> {
|
|
123
|
+
try {
|
|
124
|
+
const item = await fetchRequest(requestId);
|
|
125
|
+
const [diff, receipt, policy] = await Promise.all([
|
|
126
|
+
fetchDiff(item.artifact_id, item.harness),
|
|
127
|
+
fetchLatestReceipt(item.artifact_id, item.harness),
|
|
128
|
+
fetchPolicy(item.harness)
|
|
129
|
+
]);
|
|
130
|
+
return { kind: "ready", item, diff, receipt, policy };
|
|
131
|
+
} catch (error) {
|
|
132
|
+
return {
|
|
133
|
+
kind: "error",
|
|
134
|
+
message: error instanceof Error ? error.message : "Unable to load the approval request."
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function App() {
|
|
140
|
+
const pathname = usePathname();
|
|
141
|
+
const view = resolveView(pathname);
|
|
142
|
+
const requestId = parseRequestId(pathname);
|
|
143
|
+
const [requests, setRequests] = useState<RequestState>({ kind: "loading" });
|
|
144
|
+
const [detail, setDetail] = useState<DetailState>({ kind: "idle" });
|
|
145
|
+
const [receipts, setReceipts] = useState<ReceiptsState>({ kind: "loading" });
|
|
146
|
+
const [runtime, setRuntime] = useState<RuntimeState>({ kind: "loading" });
|
|
147
|
+
const [policies, setPolicies] = useState<PolicyState>({ kind: "loading" });
|
|
148
|
+
const [inventory, setInventory] = useState<InventoryState>({ kind: "idle" });
|
|
149
|
+
const [resolutionMessage, setResolutionMessage] = useState<string | null>(null);
|
|
150
|
+
|
|
151
|
+
useEffect(() => {
|
|
152
|
+
let cancelled = false;
|
|
153
|
+
let pollId: number | undefined;
|
|
154
|
+
const loadRuntimeSnapshot = () => {
|
|
155
|
+
fetchRuntimeSnapshot()
|
|
156
|
+
.then((snapshot) => {
|
|
157
|
+
if (!cancelled) {
|
|
158
|
+
setRuntime({ kind: "ready", snapshot });
|
|
159
|
+
setRequests({ kind: "ready", items: snapshot.items });
|
|
160
|
+
}
|
|
161
|
+
})
|
|
162
|
+
.catch((error: unknown) => {
|
|
163
|
+
if (!cancelled) {
|
|
164
|
+
const message =
|
|
165
|
+
error instanceof Error ? error.message : "Unable to load the local approval queue.";
|
|
166
|
+
setRuntime({ kind: "error", message });
|
|
167
|
+
setRequests({ kind: "error", message });
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
loadRuntimeSnapshot();
|
|
172
|
+
pollId = window.setInterval(loadRuntimeSnapshot, 4000);
|
|
173
|
+
return () => {
|
|
174
|
+
cancelled = true;
|
|
175
|
+
if (pollId !== undefined) {
|
|
176
|
+
window.clearInterval(pollId);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
}, []);
|
|
180
|
+
|
|
181
|
+
useEffect(() => {
|
|
182
|
+
let cancelled = false;
|
|
183
|
+
Promise.allSettled([fetchReceipts(), fetchPolicies()])
|
|
184
|
+
.then(([receiptsResult, policiesResult]) => {
|
|
185
|
+
if (cancelled) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (receiptsResult.status === "fulfilled") {
|
|
189
|
+
setReceipts({ kind: "ready", items: receiptsResult.value });
|
|
190
|
+
} else {
|
|
191
|
+
setReceipts({
|
|
192
|
+
kind: "error",
|
|
193
|
+
message: receiptsResult.reason instanceof Error ? receiptsResult.reason.message : "Unable to load local approval history."
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
if (policiesResult.status === "fulfilled") {
|
|
197
|
+
setPolicies({ kind: "ready", items: policiesResult.value });
|
|
198
|
+
} else {
|
|
199
|
+
setPolicies({
|
|
200
|
+
kind: "error",
|
|
201
|
+
message: policiesResult.reason instanceof Error ? policiesResult.reason.message : "Unable to load saved approvals."
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
return () => {
|
|
206
|
+
cancelled = true;
|
|
207
|
+
};
|
|
208
|
+
}, []);
|
|
209
|
+
|
|
210
|
+
useEffect(() => {
|
|
211
|
+
if (view !== "fleet") {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
let cancelled = false;
|
|
215
|
+
setInventory({ kind: "loading" });
|
|
216
|
+
fetchInventory()
|
|
217
|
+
.then((items) => {
|
|
218
|
+
if (!cancelled) {
|
|
219
|
+
setInventory({ kind: "ready", items });
|
|
220
|
+
}
|
|
221
|
+
})
|
|
222
|
+
.catch((error: unknown) => {
|
|
223
|
+
if (!cancelled) {
|
|
224
|
+
setInventory({
|
|
225
|
+
kind: "error",
|
|
226
|
+
message: error instanceof Error ? error.message : "Unable to load watched app inventory."
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
return () => {
|
|
231
|
+
cancelled = true;
|
|
232
|
+
};
|
|
233
|
+
}, [view]);
|
|
234
|
+
|
|
235
|
+
const queuedItems = requests.kind === "ready" ? requests.items : [];
|
|
236
|
+
const activeRequestId = requestId ?? queuedItems[0]?.request_id ?? null;
|
|
237
|
+
|
|
238
|
+
useEffect(() => {
|
|
239
|
+
if (activeRequestId === null) {
|
|
240
|
+
setDetail({ kind: "idle" });
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
let cancelled = false;
|
|
244
|
+
setDetail({ kind: "loading" });
|
|
245
|
+
loadDetail(activeRequestId).then((nextState) => {
|
|
246
|
+
if (!cancelled) {
|
|
247
|
+
setDetail(nextState);
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
return () => {
|
|
251
|
+
cancelled = true;
|
|
252
|
+
};
|
|
253
|
+
}, [activeRequestId]);
|
|
254
|
+
|
|
255
|
+
return (
|
|
256
|
+
<ApprovalCenterLayout
|
|
257
|
+
view={view}
|
|
258
|
+
requests={requests}
|
|
259
|
+
detail={detail}
|
|
260
|
+
receipts={receipts}
|
|
261
|
+
runtime={runtime}
|
|
262
|
+
activeRequestId={activeRequestId}
|
|
263
|
+
resolutionMessage={resolutionMessage}
|
|
264
|
+
homeContent={
|
|
265
|
+
<HomeWorkspace
|
|
266
|
+
requests={requests}
|
|
267
|
+
runtime={runtime}
|
|
268
|
+
policies={policies}
|
|
269
|
+
onOpenInbox={() => navigate("/inbox")}
|
|
270
|
+
onOpenFleet={() => navigate("/fleet")}
|
|
271
|
+
onOpenEvidence={() => navigate("/evidence")}
|
|
272
|
+
onOpenSettings={() => navigate("/settings")}
|
|
273
|
+
onClearPolicies={async (scope) => {
|
|
274
|
+
const target = scope.all ? "all saved approvals" : `${scope.harness ?? "this app"} approvals`;
|
|
275
|
+
if (!window.confirm(`Clear ${target}? Guard will ask again next time matching actions run.`)) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
await clearPolicy(scope);
|
|
279
|
+
const [snapshotResult, policiesResult] = await Promise.allSettled([fetchRuntimeSnapshot(), fetchPolicies()]);
|
|
280
|
+
if (snapshotResult.status === "fulfilled") {
|
|
281
|
+
setRuntime({ kind: "ready", snapshot: snapshotResult.value });
|
|
282
|
+
setRequests({ kind: "ready", items: snapshotResult.value.items });
|
|
283
|
+
}
|
|
284
|
+
if (policiesResult.status === "fulfilled") {
|
|
285
|
+
setPolicies({ kind: "ready", items: policiesResult.value });
|
|
286
|
+
} else {
|
|
287
|
+
setPolicies({
|
|
288
|
+
kind: "error",
|
|
289
|
+
message: policiesResult.reason instanceof Error ? policiesResult.reason.message : "Unable to load saved approvals."
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
}}
|
|
293
|
+
/>
|
|
294
|
+
}
|
|
295
|
+
onGoHome={() => navigate("/")}
|
|
296
|
+
onNavigate={navigate}
|
|
297
|
+
onOpenRequest={(nextRequestId) => navigate(`/requests/${nextRequestId}`)}
|
|
298
|
+
onResolve={async (payload) => {
|
|
299
|
+
await resolveRequest(payload);
|
|
300
|
+
setResolutionMessage("Decision saved. Return to the same chat and retry the command.");
|
|
301
|
+
navigate("/");
|
|
302
|
+
const [snapshotResult, receiptsResult, policiesResult] = await Promise.allSettled([fetchRuntimeSnapshot(), fetchReceipts(), fetchPolicies()]);
|
|
303
|
+
if (snapshotResult.status === "fulfilled") {
|
|
304
|
+
setRuntime({ kind: "ready", snapshot: snapshotResult.value });
|
|
305
|
+
setRequests({ kind: "ready", items: snapshotResult.value.items });
|
|
306
|
+
}
|
|
307
|
+
if (receiptsResult.status === "fulfilled") {
|
|
308
|
+
setReceipts({ kind: "ready", items: receiptsResult.value });
|
|
309
|
+
} else {
|
|
310
|
+
setReceipts({
|
|
311
|
+
kind: "error",
|
|
312
|
+
message: receiptsResult.reason instanceof Error ? receiptsResult.reason.message : "Unable to load local approval history."
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
if (policiesResult.status === "fulfilled") {
|
|
316
|
+
setPolicies({ kind: "ready", items: policiesResult.value });
|
|
317
|
+
} else {
|
|
318
|
+
setPolicies({
|
|
319
|
+
kind: "error",
|
|
320
|
+
message: policiesResult.reason instanceof Error ? policiesResult.reason.message : "Unable to load saved approvals."
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
}}
|
|
324
|
+
fleetContent={
|
|
325
|
+
runtime.kind === "ready" ? (
|
|
326
|
+
<FleetWorkspace
|
|
327
|
+
runtime={runtime.snapshot}
|
|
328
|
+
policies={policies.kind === "ready" ? policies.items : []}
|
|
329
|
+
inventory={inventory}
|
|
330
|
+
/>
|
|
331
|
+
) : null
|
|
332
|
+
}
|
|
333
|
+
settingsContent={<SettingsWorkspace />}
|
|
334
|
+
/>
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
function HomeWorkspace(props: {
|
|
339
|
+
requests: RequestState;
|
|
340
|
+
runtime: RuntimeState;
|
|
341
|
+
policies: PolicyState;
|
|
342
|
+
onOpenInbox: () => void;
|
|
343
|
+
onOpenFleet: () => void;
|
|
344
|
+
onOpenEvidence: () => void;
|
|
345
|
+
onOpenSettings: () => void;
|
|
346
|
+
onClearPolicies: (scope: { harness?: string; all?: boolean }) => Promise<void>;
|
|
347
|
+
}) {
|
|
348
|
+
if (props.runtime.kind === "loading" || props.requests.kind === "loading") {
|
|
349
|
+
return (
|
|
350
|
+
<div className="grid gap-4 lg:grid-cols-3">
|
|
351
|
+
<div className="guard-skeleton h-40 w-full" />
|
|
352
|
+
<div className="guard-skeleton h-40 w-full" />
|
|
353
|
+
<div className="guard-skeleton h-40 w-full" />
|
|
354
|
+
</div>
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
if (props.runtime.kind === "error") {
|
|
359
|
+
return (
|
|
360
|
+
<EmptyState
|
|
361
|
+
title="Local Home is waiting for the runtime"
|
|
362
|
+
body={props.runtime.message}
|
|
363
|
+
action={<ActionButton onClick={props.onOpenInbox}>Open Inbox anyway</ActionButton>}
|
|
364
|
+
/>
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
const snapshot = props.runtime.snapshot;
|
|
369
|
+
const queuedCount = props.requests.kind === "ready" ? props.requests.items.length : 0;
|
|
370
|
+
const policyItems = props.policies.kind === "ready" ? props.policies.items : [];
|
|
371
|
+
const managedInstalls = snapshot.managed_installs ?? [];
|
|
372
|
+
const activeInstalls = managedInstalls.filter((item) => item.active);
|
|
373
|
+
const observedHarnesses = Array.from(
|
|
374
|
+
new Set([
|
|
375
|
+
...snapshot.items.map((item) => item.harness),
|
|
376
|
+
...snapshot.latest_receipts.map((receipt) => receipt.harness),
|
|
377
|
+
...policyItems.map((policy) => policy.harness)
|
|
378
|
+
])
|
|
379
|
+
).sort();
|
|
380
|
+
const clearHarnesses = activeInstalls.length > 0 ? activeInstalls.map((install) => install.harness) : observedHarnesses;
|
|
381
|
+
const latestReceipts = snapshot.latest_receipts
|
|
382
|
+
.slice(0, 3)
|
|
383
|
+
.map((receipt) => receipt.artifact_name ?? receipt.artifact_id)
|
|
384
|
+
.filter((receiptName) => receiptName.length > 0);
|
|
385
|
+
const watchedAppsCount = activeInstalls.length > 0 ? activeInstalls.length : observedHarnesses.length;
|
|
386
|
+
const primaryActionLabel = queuedCount > 0 ? "Review blocked action" : "Open review queue";
|
|
387
|
+
|
|
388
|
+
return (
|
|
389
|
+
<div className="space-y-6">
|
|
390
|
+
<section className="guard-surface-in relative overflow-hidden rounded-[2rem] border border-brand-blue/15 bg-[radial-gradient(circle_at_top_left,rgba(85,153,254,0.12),transparent_32%),linear-gradient(135deg,#ffffff_0%,#ffffff_58%,rgba(72,223,123,0.10)_100%)] p-5 shadow-[0_20px_60px_rgba(63,65,116,0.08)] sm:p-6 lg:p-7">
|
|
391
|
+
<div className="pointer-events-none absolute right-10 top-8 h-24 w-24 rounded-full bg-brand-blue/20 blur-3xl" />
|
|
392
|
+
<div className="grid gap-6 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-start">
|
|
393
|
+
<div className="space-y-5">
|
|
394
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
395
|
+
<SectionLabel>Home</SectionLabel>
|
|
396
|
+
<Badge tone={queuedCount > 0 ? "warning" : "success"}>
|
|
397
|
+
{queuedCount > 0 ? `${queuedCount} waiting` : "Nothing waiting"}
|
|
398
|
+
</Badge>
|
|
399
|
+
<Tag tone={snapshot.cloud_state === "local_only" ? "slate" : "blue"}>
|
|
400
|
+
{snapshot.cloud_state_label}
|
|
401
|
+
</Tag>
|
|
402
|
+
</div>
|
|
403
|
+
<div className="space-y-2">
|
|
404
|
+
<h2 className="text-xl font-semibold tracking-tight text-brand-dark">
|
|
405
|
+
HOL Guard is watching this machine.
|
|
406
|
+
</h2>
|
|
407
|
+
<p className="max-w-3xl text-sm leading-relaxed text-brand-dark/80">
|
|
408
|
+
If Codex, Claude Code, Copilot, or another connected app tries something risky, Guard pauses it here before it runs.
|
|
409
|
+
</p>
|
|
410
|
+
</div>
|
|
411
|
+
<div className="grid gap-3 sm:grid-cols-3">
|
|
412
|
+
<HomeStat label="Needs your choice" value={queuedCount.toString()} />
|
|
413
|
+
<HomeStat label="Apps watched" value={watchedAppsCount.toString()} />
|
|
414
|
+
<HomeStat label="Saved choices" value={policyItems.length.toString()} />
|
|
415
|
+
</div>
|
|
416
|
+
</div>
|
|
417
|
+
<div className="flex flex-wrap gap-3">
|
|
418
|
+
<ActionButton onClick={props.onOpenInbox}>{primaryActionLabel}</ActionButton>
|
|
419
|
+
<ActionButton variant="outline" onClick={props.onOpenFleet}>
|
|
420
|
+
Watched apps
|
|
421
|
+
</ActionButton>
|
|
422
|
+
<ActionButton variant="outline" onClick={props.onOpenEvidence}>
|
|
423
|
+
History
|
|
424
|
+
</ActionButton>
|
|
425
|
+
<ActionButton variant="outline" onClick={props.onOpenSettings}>
|
|
426
|
+
Settings
|
|
427
|
+
</ActionButton>
|
|
428
|
+
{snapshot.cloud_state === "local_only" ? (
|
|
429
|
+
<ActionButton href={snapshot.connect_url} variant="secondary">
|
|
430
|
+
Connect this machine
|
|
431
|
+
</ActionButton>
|
|
432
|
+
) : null}
|
|
433
|
+
</div>
|
|
434
|
+
</div>
|
|
435
|
+
</section>
|
|
436
|
+
|
|
437
|
+
<div className="grid gap-4 lg:grid-cols-[minmax(0,1fr)_360px]">
|
|
438
|
+
<section className="rounded-[1.75rem] border border-slate-200/70 bg-white/80 p-5 shadow-sm sm:p-6">
|
|
439
|
+
<SectionLabel>Today</SectionLabel>
|
|
440
|
+
<h3 className="mt-2 text-lg font-semibold tracking-tight text-brand-dark">
|
|
441
|
+
{queuedCount > 0 ? "A blocked action needs your choice." : "No blocked actions right now."}
|
|
442
|
+
</h3>
|
|
443
|
+
<p className="mt-2 text-sm leading-relaxed text-muted-foreground">
|
|
444
|
+
{queuedCount > 0
|
|
445
|
+
? "Open the review queue to see exactly what app and command were paused."
|
|
446
|
+
: latestReceipts.length > 0
|
|
447
|
+
? `Recent choices: ${latestReceipts.join(", ")}.`
|
|
448
|
+
: "Guard will show the next risky action here before it runs."}
|
|
449
|
+
</p>
|
|
450
|
+
<div className="mt-4 flex flex-wrap gap-3">
|
|
451
|
+
<ActionButton onClick={props.onOpenInbox}>{primaryActionLabel}</ActionButton>
|
|
452
|
+
<ActionButton variant="outline" onClick={props.onOpenEvidence}>View history</ActionButton>
|
|
453
|
+
</div>
|
|
454
|
+
</section>
|
|
455
|
+
|
|
456
|
+
<section className="rounded-[1.75rem] border border-brand-blue/15 bg-brand-blue/[0.04] p-5 sm:p-6">
|
|
457
|
+
<details className="group">
|
|
458
|
+
<summary className="flex cursor-pointer select-none items-center justify-between gap-3 text-sm font-semibold text-brand-dark [&::-webkit-details-marker]:hidden">
|
|
459
|
+
<span>Reset saved approvals</span>
|
|
460
|
+
<span className="text-brand-blue transition-transform group-open:rotate-90">›</span>
|
|
461
|
+
</summary>
|
|
462
|
+
<p className="mt-3 text-sm leading-relaxed text-muted-foreground">
|
|
463
|
+
Clear saved choices when you want Guard to ask again. This does not remove your review history.
|
|
464
|
+
</p>
|
|
465
|
+
<div className="mt-4 flex flex-wrap gap-3">
|
|
466
|
+
<ActionButton variant="outline" onClick={() => props.onClearPolicies({ all: true })}>
|
|
467
|
+
Clear all approvals
|
|
468
|
+
</ActionButton>
|
|
469
|
+
{clearHarnesses.slice(0, 3).map((harness) => (
|
|
470
|
+
<ActionButton
|
|
471
|
+
key={harness}
|
|
472
|
+
variant="ghost"
|
|
473
|
+
onClick={() => props.onClearPolicies({ harness })}
|
|
474
|
+
>
|
|
475
|
+
Clear {harness}
|
|
476
|
+
</ActionButton>
|
|
477
|
+
))}
|
|
478
|
+
</div>
|
|
479
|
+
</details>
|
|
480
|
+
</section>
|
|
481
|
+
</div>
|
|
482
|
+
</div>
|
|
483
|
+
);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
function HomeStat(props: { label: string; value: string }) {
|
|
487
|
+
return (
|
|
488
|
+
<div className="rounded-[1.25rem] border border-white/80 bg-white/80 px-4 py-3 shadow-sm">
|
|
489
|
+
<p className="font-mono text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground">{props.label}</p>
|
|
490
|
+
<p className="mt-1 text-2xl font-semibold tracking-tight text-brand-dark">{props.value}</p>
|
|
491
|
+
</div>
|
|
492
|
+
);
|
|
493
|
+
}
|