plugin-scanner 2.0.91__tar.gz → 2.0.92__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.91 → plugin_scanner-2.0.92}/PKG-INFO +1 -1
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/pyproject.toml +1 -1
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/pyproject.toml.bak +1 -1
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/commands.py +206 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/version.py +1 -1
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_cli.py +283 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.clusterfuzzlite/Dockerfile +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.clusterfuzzlite/build.sh +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.clusterfuzzlite/project.yaml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.clusterfuzzlite/requirements-atheris.txt +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.dockerignore +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/CODEOWNERS +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/dependabot.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/workflows/ci.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/workflows/codeql.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/workflows/dependabot-uv-lock.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/workflows/fuzz.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/workflows/harness-smoke.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/workflows/publish.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.github/workflows/scorecard.yml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.gitignore +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/.pre-commit-hooks.yaml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/CONTRIBUTING.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/Dockerfile +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/LICENSE +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/README.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/SECURITY.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/index.html +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/package.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/pnpm-lock.yaml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/public/apple-touch-icon.png +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/public/brand/Logo_Icon_Dark.png +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/public/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/public/favicon-16x16.png +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/public/favicon-32x32.png +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/public/favicon.ico +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/app.tsx +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/approval-center-layout.tsx +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/approval-center-primitives.tsx +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/approval-center-utils.ts +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/fleet-workspace.tsx +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/guard-api.ts +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/guard-demo.ts +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/guard-types.ts +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/main.tsx +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/receipts-workspace.tsx +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/runtime-overview.tsx +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/settings-workspace.tsx +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/styles.css +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/vite-env.d.ts +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/tsconfig.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/vite.config.ts +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/docker-requirements.txt +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/docs/guard/approval-audit.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/docs/guard/architecture.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/docs/guard/get-started.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/docs/guard/harness-support.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/docs/guard/local-vs-cloud.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/docs/guard/testing-matrix.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/docs/trust/mcp-trust-draft.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/docs/trust/plugin-trust-draft.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/docs/trust/skill-trust-local.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/fuzzers/manifest_fuzzer.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/requirements.txt +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/schemas/plugin-quality.v1.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/schemas/scan-result.v1.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/schemas/verify-result.v1.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/action_runner.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/argparse_utils.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/best_practices.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/claude.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/code_quality.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/ecosystem_common.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/gemini.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/manifest.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/manifest_support.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/marketplace.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/mcp_security.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/opencode.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/operational_security.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/security.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/checks/skill_security.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/cli.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/cli_ui.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/config.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/ecosystems/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/ecosystems/base.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/ecosystems/claude.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/ecosystems/codex.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/ecosystems/detect.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/ecosystems/gemini.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/ecosystems/opencode.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/ecosystems/registry.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/ecosystems/types.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/github_reporting.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/antigravity.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/base.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/claude_code.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/codex.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/copilot.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/cursor.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/gemini.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/hermes.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/mcp_servers.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/openclaw.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/openclaw_config.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/openclaw_support.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/opencode.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/adapters/opencode_artifacts.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/advisory_model.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/approvals.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/bridge/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/capabilities.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/approval_commands.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/bootstrap.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/connect_flow.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/install_commands.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/product.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/prompt.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/render.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/update_commands.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/codex_config.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/config.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/consumer/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/consumer/service.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/client.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/manager.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/server.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/static/apple-touch-icon.png +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/static/assets/guard-dashboard.js +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/static/assets/index.css +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Icon_Dark.png +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/static/brand/Logo_Whole.png +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/static/favicon-16x16.png +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/static/favicon-32x32.png +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/static/favicon.ico +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/daemon/static/index.html +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/edge_events.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/incident.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/launcher.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/mcp_tool_calls.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/models.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/policy/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/policy/engine.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/protect.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/proxy/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/proxy/remote.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/proxy/runtime_mcp.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/proxy/stdio.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/receipts/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/receipts/manager.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/redaction.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/risk.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/runtime/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/runtime/runner.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/runtime/secret_file_requests.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/runtime/surface_server.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/schemas/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/schemas/consumer_mode.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/schemas/guard_event_v1.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/schemas/surface_server.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/shims.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/store.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/store_approvals.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/store_connect.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/types.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/integrations/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/integrations/cisco_mcp_scanner.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/integrations/cisco_skill_scanner.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/lint_fixes.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/marketplace_support.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/models.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/path_support.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/policy.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/quality_artifact.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/repo_detect.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/reporting.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/rules/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/rules/registry.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/rules/specs.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/scanner.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/submission.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/suppressions.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/trust_domain_scoring.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/trust_helpers.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/trust_mcp_scoring.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/trust_models.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/trust_plugin_scoring.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/trust_scoring.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/trust_skill_scoring.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/trust_specs.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/verification.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/conftest.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/__init__.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/bad-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/bad-plugin/.mcp.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/bad-plugin/secrets.js +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/claude-plugin-good/.claude-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/claude-plugin-good/LICENSE +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/claude-plugin-good/README.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/claude-plugin-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/claude-plugin-good/hooks/hooks.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/claude-plugin-good/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/code-quality-bad/evil.js +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/code-quality-bad/inject.js +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/gemini-extension-good/GEMINI.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/gemini-extension-good/LICENSE +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/gemini-extension-good/README.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/gemini-extension-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/gemini-extension-good/commands/hello.toml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/gemini-extension-good/gemini-extension.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/good-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/good-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/good-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/good-plugin/README.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/good-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/good-plugin/assets/icon.svg +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/good-plugin/assets/logo.svg +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/good-plugin/assets/screenshot.svg +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/good-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/guard-codex-malicious-mcp/.codex/config.toml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/hermes-plugin-evil/config.yaml +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/hermes-plugin-evil/mcp_servers.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/hermes-plugin-evil/skills/security/malicious/SKILL.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/SKILL.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/references/api-setup.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/hermes-plugin-evil/skills/stealth/sneaky/scripts/deploy.sh +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/hermes-plugin-evil/skills/utils/benign/SKILL.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/malformed-json/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/malicious-skill-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/malicious-skill-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/malicious-skill-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/malicious-skill-plugin/README.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/malicious-skill-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/malicious-skill-plugin/skills/leaky-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/mcp-canary-server.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/minimal-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/missing-fields/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/mit-license/LICENSE +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-ecosystem-repo/codex-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-ecosystem-repo/codex-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-ecosystem-repo/codex-plugin/README.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-ecosystem-repo/codex-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-ecosystem-repo/gemini-ext/README.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-ecosystem-repo/gemini-ext/gemini-extension.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-plugin-repo/.agents/plugins/marketplace.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/.codexignore +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/LICENSE +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/README.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/SECURITY.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-plugin-repo/plugins/alpha-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/multi-plugin-repo/plugins/beta-plugin/skills/example/SKILL.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/no-version/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/opencode-good/.opencode/commands/hello.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/opencode-good/.opencode/plugins/example.ts +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/opencode-good/LICENSE +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/opencode-good/README.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/opencode-good/SECURITY.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/opencode-good/opencode.jsonc +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/skills-missing-dir/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/skills-no-frontmatter/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/skills-no-frontmatter/skills/bad-skill/SKILL.md +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/with-marketplace/.codex-plugin/plugin.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/with-marketplace/marketplace-broken.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/fixtures/with-marketplace/marketplace.json +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test-trust-scoring.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test-trust-specs.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_action_runner.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_best_practices.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_cisco_install_surfaces.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_cli.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_code_quality.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_config.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_coverage_remaining.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_ecosystems.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_edge_cases.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_final_coverage.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_approvals.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_bootstrap.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_capabilities.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_claude_adapter.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_codex_e2e.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_codex_install.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_codex_proxy.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_config_paths.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_connect_flow.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_consumer_mode.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_copilot_adapter.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_copilot_proxy.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_daemon_manager.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_event_schema_v1.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_events.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_launch_env.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_opencode_proxy.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_product_flow.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_protect.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_render.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_risk.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_runtime.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_store_migrations.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_surface_server.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_guard_verdicts.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_hermes_adapter.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_integration.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_lint_fixes.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_live_cisco_smoke.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_manifest.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_marketplace.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_mcp_security.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_openclaw_adapter.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_operational_security.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_policy.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_quality_artifact.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_rule_registry.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_scanner.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_schema_contracts.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_security.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_security_ops.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_skill_security.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_submission.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_trust_scoring.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_trust_specs.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_verification.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/tests/test_versioning.py +0 -0
- {plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/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.92
|
|
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.92"
|
|
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.92"
|
|
8
8
|
description = "Protect local AI harnesses with HOL Guard and run scanner checks for Codex, Claude, Cursor, Gemini, and OpenCode."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
{plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/src/codex_plugin_scanner/guard/cli/commands.py
RENAMED
|
@@ -86,6 +86,7 @@ from ..runtime.runner import (
|
|
|
86
86
|
guard_run,
|
|
87
87
|
prompt_requests_to_artifacts,
|
|
88
88
|
sync_receipts,
|
|
89
|
+
sync_runtime_session,
|
|
89
90
|
)
|
|
90
91
|
from ..runtime.secret_file_requests import (
|
|
91
92
|
build_file_read_request_artifact,
|
|
@@ -108,6 +109,9 @@ from .product import build_guard_start_payload, build_guard_status_payload
|
|
|
108
109
|
from .update_commands import run_guard_update
|
|
109
110
|
|
|
110
111
|
_GUARD_CLIENT_VERSION = "2.0.0"
|
|
112
|
+
_SERVICE_RUNTIME_PROFILE_STATE_KEY = "service_runtime_profile"
|
|
113
|
+
_SERVICE_RUNTIME_CHOICES = ("hermes", "openclaw", "custom")
|
|
114
|
+
_SERVICE_RUNTIME_SURFACE = "agent-sdk"
|
|
111
115
|
_GUARD_HELP_GROUPS = (
|
|
112
116
|
"Everyday protection:\n"
|
|
113
117
|
" start First-run setup and the Guard operating loop\n"
|
|
@@ -121,6 +125,7 @@ _GUARD_HELP_GROUPS = (
|
|
|
121
125
|
" connect Pair this machine to Guard Cloud\n"
|
|
122
126
|
" login Compatibility alias for browser pairing\n"
|
|
123
127
|
" sync Send local decisions to Guard Cloud\n"
|
|
128
|
+
" service Manage hosted-runtime Guard Cloud login and sync\n"
|
|
124
129
|
" device Inspect or rotate this machine identity\n"
|
|
125
130
|
" bridge Forward Guard signals to external channels\n"
|
|
126
131
|
"\n"
|
|
@@ -437,6 +442,41 @@ def _configure_guard_parser(guard_parser: argparse.ArgumentParser) -> None:
|
|
|
437
442
|
sync_parser.add_argument("--guard-home")
|
|
438
443
|
sync_parser.add_argument("--json", action="store_true")
|
|
439
444
|
|
|
445
|
+
service_parser = guard_subparsers.add_parser(
|
|
446
|
+
"service",
|
|
447
|
+
help="Manage headless hosted-runtime Guard Cloud login, sync, and status",
|
|
448
|
+
)
|
|
449
|
+
service_subparsers = service_parser.add_subparsers(
|
|
450
|
+
dest="service_command",
|
|
451
|
+
required=True,
|
|
452
|
+
parser_class=FriendlyArgumentParser,
|
|
453
|
+
)
|
|
454
|
+
|
|
455
|
+
service_login_parser = service_subparsers.add_parser(
|
|
456
|
+
"login",
|
|
457
|
+
help="Save a hosted-runtime Guard Cloud token and runtime profile",
|
|
458
|
+
)
|
|
459
|
+
_add_guard_common_args(service_login_parser)
|
|
460
|
+
service_login_parser.add_argument("--runtime", choices=_SERVICE_RUNTIME_CHOICES, required=True)
|
|
461
|
+
service_login_parser.add_argument("--label", required=True)
|
|
462
|
+
service_login_parser.add_argument("--sync-url", required=True, type=_guard_http_url)
|
|
463
|
+
service_login_parser.add_argument("--token", required=True)
|
|
464
|
+
service_login_parser.add_argument("--json", action="store_true")
|
|
465
|
+
|
|
466
|
+
service_sync_parser = service_subparsers.add_parser(
|
|
467
|
+
"sync",
|
|
468
|
+
help="Publish the hosted runtime session, then sync receipts",
|
|
469
|
+
)
|
|
470
|
+
_add_guard_common_args(service_sync_parser)
|
|
471
|
+
service_sync_parser.add_argument("--json", action="store_true")
|
|
472
|
+
|
|
473
|
+
service_status_parser = service_subparsers.add_parser(
|
|
474
|
+
"status",
|
|
475
|
+
help="Show hosted-runtime Guard Cloud login state and latest sync summaries",
|
|
476
|
+
)
|
|
477
|
+
_add_guard_common_args(service_status_parser)
|
|
478
|
+
service_status_parser.add_argument("--json", action="store_true")
|
|
479
|
+
|
|
440
480
|
device_parser = guard_subparsers.add_parser("device", help="Manage local Guard installation identity")
|
|
441
481
|
_add_guard_common_args(device_parser)
|
|
442
482
|
device_parser.add_argument("--json", action="store_true")
|
|
@@ -1093,6 +1133,35 @@ def run_guard_command(
|
|
|
1093
1133
|
_emit("sync", payload, getattr(args, "json", False))
|
|
1094
1134
|
return 0
|
|
1095
1135
|
|
|
1136
|
+
if args.guard_command == "service":
|
|
1137
|
+
service_command = getattr(args, "service_command", None)
|
|
1138
|
+
if service_command == "login":
|
|
1139
|
+
payload, exit_code = _guard_service_login_payload(args=args, store=store)
|
|
1140
|
+
_emit("service-login", payload, getattr(args, "json", False))
|
|
1141
|
+
return exit_code
|
|
1142
|
+
if service_command == "sync":
|
|
1143
|
+
try:
|
|
1144
|
+
payload = _guard_service_sync_payload(store)
|
|
1145
|
+
except (GuardSyncNotConfiguredError, RuntimeError) as error:
|
|
1146
|
+
message = (
|
|
1147
|
+
_guard_service_sync_prerequisite_message()
|
|
1148
|
+
if isinstance(error, GuardSyncNotConfiguredError)
|
|
1149
|
+
else str(error)
|
|
1150
|
+
)
|
|
1151
|
+
if getattr(args, "json", False):
|
|
1152
|
+
_emit("service-sync", {"synced": False, "error": message}, True)
|
|
1153
|
+
else:
|
|
1154
|
+
print(message, file=sys.stderr)
|
|
1155
|
+
return 1
|
|
1156
|
+
_emit("service-sync", payload, getattr(args, "json", False))
|
|
1157
|
+
return 0
|
|
1158
|
+
if service_command == "status":
|
|
1159
|
+
payload = _guard_service_status_payload(store)
|
|
1160
|
+
_emit("service-status", payload, getattr(args, "json", False))
|
|
1161
|
+
return 0
|
|
1162
|
+
print("service subcommand is required", file=sys.stderr)
|
|
1163
|
+
return 2
|
|
1164
|
+
|
|
1096
1165
|
if args.guard_command == "device":
|
|
1097
1166
|
command = getattr(args, "device_command", None)
|
|
1098
1167
|
now = _now()
|
|
@@ -5218,6 +5287,143 @@ def _manual_guard_login_payload(
|
|
|
5218
5287
|
return {"logged_in": True, "sync_url": manual_sync_url}, 0
|
|
5219
5288
|
|
|
5220
5289
|
|
|
5290
|
+
def _guard_service_runtime_profile(
|
|
5291
|
+
store: GuardStore,
|
|
5292
|
+
) -> dict[str, str] | None:
|
|
5293
|
+
payload = store.get_sync_payload(_SERVICE_RUNTIME_PROFILE_STATE_KEY)
|
|
5294
|
+
if not isinstance(payload, dict):
|
|
5295
|
+
return None
|
|
5296
|
+
runtime = _optional_string(payload.get("runtime"))
|
|
5297
|
+
label = _optional_string(payload.get("label"))
|
|
5298
|
+
surface = _optional_string(payload.get("surface"))
|
|
5299
|
+
client_name = _optional_string(payload.get("client_name"))
|
|
5300
|
+
client_title = _optional_string(payload.get("client_title"))
|
|
5301
|
+
client_version = _optional_string(payload.get("client_version"))
|
|
5302
|
+
if (
|
|
5303
|
+
runtime not in _SERVICE_RUNTIME_CHOICES
|
|
5304
|
+
or label is None
|
|
5305
|
+
or surface is None
|
|
5306
|
+
or client_name is None
|
|
5307
|
+
or client_title is None
|
|
5308
|
+
or client_version is None
|
|
5309
|
+
):
|
|
5310
|
+
return None
|
|
5311
|
+
return {
|
|
5312
|
+
"runtime": runtime,
|
|
5313
|
+
"label": label,
|
|
5314
|
+
"workspace": _optional_string(payload.get("workspace")) or "",
|
|
5315
|
+
"surface": surface,
|
|
5316
|
+
"client_name": client_name,
|
|
5317
|
+
"client_title": client_title,
|
|
5318
|
+
"client_version": client_version,
|
|
5319
|
+
}
|
|
5320
|
+
|
|
5321
|
+
|
|
5322
|
+
def _guard_service_login_payload(
|
|
5323
|
+
*,
|
|
5324
|
+
args: argparse.Namespace,
|
|
5325
|
+
store: GuardStore,
|
|
5326
|
+
) -> tuple[dict[str, object], int]:
|
|
5327
|
+
now = _now()
|
|
5328
|
+
label = str(args.label).strip()
|
|
5329
|
+
workspace = _optional_string(args.workspace) or ""
|
|
5330
|
+
sync_url = str(args.sync_url).strip()
|
|
5331
|
+
token = str(args.token).strip()
|
|
5332
|
+
if not token:
|
|
5333
|
+
return {
|
|
5334
|
+
"logged_in": False,
|
|
5335
|
+
"error": "Hosted Guard runtime token cannot be empty.",
|
|
5336
|
+
}, 2
|
|
5337
|
+
runtime = str(args.runtime)
|
|
5338
|
+
service_profile = {
|
|
5339
|
+
"runtime": runtime,
|
|
5340
|
+
"label": label,
|
|
5341
|
+
"workspace": workspace,
|
|
5342
|
+
"surface": _SERVICE_RUNTIME_SURFACE,
|
|
5343
|
+
"client_name": "hol-guard",
|
|
5344
|
+
"client_title": label,
|
|
5345
|
+
"client_version": _GUARD_CLIENT_VERSION,
|
|
5346
|
+
}
|
|
5347
|
+
store.set_sync_credentials(sync_url, token, now)
|
|
5348
|
+
store.set_sync_payload(_SERVICE_RUNTIME_PROFILE_STATE_KEY, service_profile, now)
|
|
5349
|
+
device = store.set_device_label(label, now)
|
|
5350
|
+
store.add_event(
|
|
5351
|
+
"service_sign_in",
|
|
5352
|
+
{
|
|
5353
|
+
"runtime": runtime,
|
|
5354
|
+
"label": label,
|
|
5355
|
+
"workspace": workspace or None,
|
|
5356
|
+
"sync_url": sync_url,
|
|
5357
|
+
"source": "hosted-runtime-cli",
|
|
5358
|
+
},
|
|
5359
|
+
now,
|
|
5360
|
+
)
|
|
5361
|
+
return {
|
|
5362
|
+
"logged_in": True,
|
|
5363
|
+
"sync_url": sync_url,
|
|
5364
|
+
"service": service_profile,
|
|
5365
|
+
"device": device,
|
|
5366
|
+
}, 0
|
|
5367
|
+
|
|
5368
|
+
|
|
5369
|
+
def _guard_service_sync_prerequisite_message() -> str:
|
|
5370
|
+
return (
|
|
5371
|
+
"Hosted Guard runtime is not configured yet. Run `hol-guard service login --runtime <runtime> "
|
|
5372
|
+
'--label "<label>" --sync-url "<url>" --token "<token>"` first.'
|
|
5373
|
+
)
|
|
5374
|
+
|
|
5375
|
+
|
|
5376
|
+
def _guard_service_status_payload(store: GuardStore) -> dict[str, object]:
|
|
5377
|
+
credentials = store.get_sync_credentials()
|
|
5378
|
+
service_profile = _guard_service_runtime_profile(store)
|
|
5379
|
+
return {
|
|
5380
|
+
"configured": credentials is not None and service_profile is not None,
|
|
5381
|
+
"connection": {
|
|
5382
|
+
"configured": credentials is not None,
|
|
5383
|
+
"sync_url": credentials["sync_url"] if credentials is not None else None,
|
|
5384
|
+
},
|
|
5385
|
+
"service": service_profile,
|
|
5386
|
+
"runtime": store.get_sync_payload("runtime_session_summary") or {},
|
|
5387
|
+
"receipts": store.get_sync_payload("sync_summary") or {},
|
|
5388
|
+
}
|
|
5389
|
+
|
|
5390
|
+
|
|
5391
|
+
def _guard_service_sync_payload(store: GuardStore) -> dict[str, object]:
|
|
5392
|
+
service_profile = _guard_service_runtime_profile(store)
|
|
5393
|
+
if service_profile is None:
|
|
5394
|
+
raise GuardSyncNotConfiguredError(_guard_service_sync_prerequisite_message())
|
|
5395
|
+
runtime_summary = sync_runtime_session(
|
|
5396
|
+
store,
|
|
5397
|
+
session={
|
|
5398
|
+
"harness": service_profile["runtime"],
|
|
5399
|
+
"surface": service_profile["surface"],
|
|
5400
|
+
"status": "active",
|
|
5401
|
+
"client_name": service_profile["client_name"],
|
|
5402
|
+
"client_title": service_profile["client_title"],
|
|
5403
|
+
"client_version": service_profile["client_version"],
|
|
5404
|
+
"workspace": service_profile["workspace"],
|
|
5405
|
+
"capabilities": ["hosted-runtime", "guard-cloud-sync"],
|
|
5406
|
+
},
|
|
5407
|
+
)
|
|
5408
|
+
receipts_summary = sync_receipts(store)
|
|
5409
|
+
store.add_event(
|
|
5410
|
+
"service_sync",
|
|
5411
|
+
{
|
|
5412
|
+
"runtime": service_profile["runtime"],
|
|
5413
|
+
"workspace": service_profile["workspace"] or None,
|
|
5414
|
+
"runtime_session_id": runtime_summary.get("runtime_session_id"),
|
|
5415
|
+
"synced_at": receipts_summary.get("synced_at"),
|
|
5416
|
+
},
|
|
5417
|
+
_now(),
|
|
5418
|
+
)
|
|
5419
|
+
return {
|
|
5420
|
+
"synced": True,
|
|
5421
|
+
"service": service_profile,
|
|
5422
|
+
"runtime": runtime_summary,
|
|
5423
|
+
"receipts": receipts_summary,
|
|
5424
|
+
}
|
|
5425
|
+
|
|
5426
|
+
|
|
5221
5427
|
def _guard_sync_prerequisite_message() -> str:
|
|
5222
5428
|
return (
|
|
5223
5429
|
"Guard Cloud is not connected yet. Run `hol-guard connect` to sign in and pair this machine, "
|
|
@@ -5883,6 +5883,289 @@ url = http://127.0.0.1:8787/guard-canary
|
|
|
5883
5883
|
assert login_rc == 2
|
|
5884
5884
|
assert "Pass both --sync-url and --token to save credentials manually" in capsys.readouterr().err
|
|
5885
5885
|
|
|
5886
|
+
def test_guard_service_login_stores_hosted_runtime_profile(self, tmp_path, capsys):
|
|
5887
|
+
home_dir = tmp_path / "home"
|
|
5888
|
+
|
|
5889
|
+
login_rc = main(
|
|
5890
|
+
[
|
|
5891
|
+
"guard",
|
|
5892
|
+
"service",
|
|
5893
|
+
"login",
|
|
5894
|
+
"--home",
|
|
5895
|
+
str(home_dir),
|
|
5896
|
+
"--runtime",
|
|
5897
|
+
"hermes",
|
|
5898
|
+
"--label",
|
|
5899
|
+
"Hermes Telegram agent",
|
|
5900
|
+
"--workspace",
|
|
5901
|
+
"workspace_ops",
|
|
5902
|
+
"--sync-url",
|
|
5903
|
+
"https://hol.org/api/guard/receipts/sync",
|
|
5904
|
+
"--token",
|
|
5905
|
+
"guard_live_secretvalue",
|
|
5906
|
+
"--json",
|
|
5907
|
+
]
|
|
5908
|
+
)
|
|
5909
|
+
payload = json.loads(capsys.readouterr().out)
|
|
5910
|
+
store = GuardStore(home_dir)
|
|
5911
|
+
|
|
5912
|
+
assert login_rc == 0
|
|
5913
|
+
assert payload["logged_in"] is True
|
|
5914
|
+
assert payload["service"] == {
|
|
5915
|
+
"runtime": "hermes",
|
|
5916
|
+
"label": "Hermes Telegram agent",
|
|
5917
|
+
"workspace": "workspace_ops",
|
|
5918
|
+
"surface": "agent-sdk",
|
|
5919
|
+
"client_name": "hol-guard",
|
|
5920
|
+
"client_title": "Hermes Telegram agent",
|
|
5921
|
+
"client_version": guard_commands_module._GUARD_CLIENT_VERSION,
|
|
5922
|
+
}
|
|
5923
|
+
assert store.get_sync_credentials() == {
|
|
5924
|
+
"sync_url": "https://hol.org/api/guard/receipts/sync",
|
|
5925
|
+
"token": "guard_live_secretvalue",
|
|
5926
|
+
}
|
|
5927
|
+
assert store.get_sync_payload("service_runtime_profile") == {
|
|
5928
|
+
"runtime": "hermes",
|
|
5929
|
+
"label": "Hermes Telegram agent",
|
|
5930
|
+
"workspace": "workspace_ops",
|
|
5931
|
+
"surface": "agent-sdk",
|
|
5932
|
+
"client_name": "hol-guard",
|
|
5933
|
+
"client_title": "Hermes Telegram agent",
|
|
5934
|
+
"client_version": guard_commands_module._GUARD_CLIENT_VERSION,
|
|
5935
|
+
}
|
|
5936
|
+
assert store.get_device_metadata()["device_label"] == "Hermes Telegram agent"
|
|
5937
|
+
|
|
5938
|
+
def test_guard_service_login_trims_sync_url(self, tmp_path, capsys):
|
|
5939
|
+
home_dir = tmp_path / "home"
|
|
5940
|
+
|
|
5941
|
+
login_rc = main(
|
|
5942
|
+
[
|
|
5943
|
+
"guard",
|
|
5944
|
+
"service",
|
|
5945
|
+
"login",
|
|
5946
|
+
"--home",
|
|
5947
|
+
str(home_dir),
|
|
5948
|
+
"--runtime",
|
|
5949
|
+
"hermes",
|
|
5950
|
+
"--label",
|
|
5951
|
+
"Hermes Telegram agent",
|
|
5952
|
+
"--workspace",
|
|
5953
|
+
"workspace_ops",
|
|
5954
|
+
"--sync-url",
|
|
5955
|
+
"https://hol.org/api/guard/receipts/sync ",
|
|
5956
|
+
"--token",
|
|
5957
|
+
"guard_live_secretvalue",
|
|
5958
|
+
"--json",
|
|
5959
|
+
]
|
|
5960
|
+
)
|
|
5961
|
+
payload = json.loads(capsys.readouterr().out)
|
|
5962
|
+
store = GuardStore(home_dir)
|
|
5963
|
+
|
|
5964
|
+
assert login_rc == 0
|
|
5965
|
+
assert payload["sync_url"] == "https://hol.org/api/guard/receipts/sync"
|
|
5966
|
+
assert store.get_sync_credentials() == {
|
|
5967
|
+
"sync_url": "https://hol.org/api/guard/receipts/sync",
|
|
5968
|
+
"token": "guard_live_secretvalue",
|
|
5969
|
+
}
|
|
5970
|
+
|
|
5971
|
+
def test_guard_service_login_rejects_blank_token(self, tmp_path, capsys):
|
|
5972
|
+
home_dir = tmp_path / "home"
|
|
5973
|
+
|
|
5974
|
+
login_rc = main(
|
|
5975
|
+
[
|
|
5976
|
+
"guard",
|
|
5977
|
+
"service",
|
|
5978
|
+
"login",
|
|
5979
|
+
"--home",
|
|
5980
|
+
str(home_dir),
|
|
5981
|
+
"--runtime",
|
|
5982
|
+
"hermes",
|
|
5983
|
+
"--label",
|
|
5984
|
+
"Hermes Telegram agent",
|
|
5985
|
+
"--workspace",
|
|
5986
|
+
"workspace_ops",
|
|
5987
|
+
"--sync-url",
|
|
5988
|
+
"https://hol.org/api/guard/receipts/sync",
|
|
5989
|
+
"--token",
|
|
5990
|
+
" ",
|
|
5991
|
+
"--json",
|
|
5992
|
+
]
|
|
5993
|
+
)
|
|
5994
|
+
payload = json.loads(capsys.readouterr().out)
|
|
5995
|
+
store = GuardStore(home_dir)
|
|
5996
|
+
|
|
5997
|
+
assert login_rc == 2
|
|
5998
|
+
assert payload == {
|
|
5999
|
+
"logged_in": False,
|
|
6000
|
+
"error": "Hosted Guard runtime token cannot be empty.",
|
|
6001
|
+
}
|
|
6002
|
+
assert store.get_sync_credentials() is None
|
|
6003
|
+
|
|
6004
|
+
def test_guard_service_sync_publishes_runtime_session_before_receipts(self, tmp_path, capsys, monkeypatch):
|
|
6005
|
+
home_dir = tmp_path / "home"
|
|
6006
|
+
store = GuardStore(home_dir)
|
|
6007
|
+
now = "2026-05-01T00:00:00Z"
|
|
6008
|
+
store.set_sync_credentials("https://hol.org/api/guard/receipts/sync", "guard_live_secretvalue", now)
|
|
6009
|
+
store.set_sync_payload(
|
|
6010
|
+
"service_runtime_profile",
|
|
6011
|
+
{
|
|
6012
|
+
"runtime": "openclaw",
|
|
6013
|
+
"label": "OpenClaw Runner",
|
|
6014
|
+
"workspace": "workspace_ops",
|
|
6015
|
+
"surface": "agent-sdk",
|
|
6016
|
+
"client_name": "hol-guard",
|
|
6017
|
+
"client_title": "OpenClaw Runner",
|
|
6018
|
+
"client_version": "2.0.0",
|
|
6019
|
+
},
|
|
6020
|
+
now,
|
|
6021
|
+
)
|
|
6022
|
+
|
|
6023
|
+
captured_session: dict[str, object] = {}
|
|
6024
|
+
|
|
6025
|
+
def fake_sync_runtime_session(current_store: GuardStore, *, session: dict[str, object]) -> dict[str, object]:
|
|
6026
|
+
assert current_store is not None
|
|
6027
|
+
captured_session.update(session)
|
|
6028
|
+
return {
|
|
6029
|
+
"synced_at": now,
|
|
6030
|
+
"runtime_session_synced_at": now,
|
|
6031
|
+
"runtime_session_id": "runtime-session-1",
|
|
6032
|
+
"runtime_sessions_visible": 1,
|
|
6033
|
+
}
|
|
6034
|
+
|
|
6035
|
+
def fake_sync_receipts(current_store: GuardStore) -> dict[str, object]:
|
|
6036
|
+
assert current_store is not None
|
|
6037
|
+
return {
|
|
6038
|
+
"synced_at": now,
|
|
6039
|
+
"receipts_stored": 0,
|
|
6040
|
+
"inventory_stored": 0,
|
|
6041
|
+
"guard_events_v1": {"accepted": 0, "events": 0, "synced_at": now},
|
|
6042
|
+
}
|
|
6043
|
+
|
|
6044
|
+
monkeypatch.setattr(guard_commands_module, "sync_runtime_session", fake_sync_runtime_session)
|
|
6045
|
+
monkeypatch.setattr(guard_commands_module, "sync_receipts", fake_sync_receipts)
|
|
6046
|
+
|
|
6047
|
+
sync_rc = main(["guard", "service", "sync", "--home", str(home_dir), "--json"])
|
|
6048
|
+
payload = json.loads(capsys.readouterr().out)
|
|
6049
|
+
|
|
6050
|
+
assert sync_rc == 0
|
|
6051
|
+
assert payload["service"]["runtime"] == "openclaw"
|
|
6052
|
+
assert payload["runtime"]["runtime_session_id"] == "runtime-session-1"
|
|
6053
|
+
assert payload["receipts"]["receipts_stored"] == 0
|
|
6054
|
+
assert captured_session == {
|
|
6055
|
+
"harness": "openclaw",
|
|
6056
|
+
"surface": "agent-sdk",
|
|
6057
|
+
"status": "active",
|
|
6058
|
+
"client_name": "hol-guard",
|
|
6059
|
+
"client_title": "OpenClaw Runner",
|
|
6060
|
+
"client_version": "2.0.0",
|
|
6061
|
+
"workspace": "workspace_ops",
|
|
6062
|
+
"capabilities": ["hosted-runtime", "guard-cloud-sync"],
|
|
6063
|
+
}
|
|
6064
|
+
|
|
6065
|
+
def test_guard_service_sync_preserves_empty_workspace(self, tmp_path, capsys, monkeypatch):
|
|
6066
|
+
home_dir = tmp_path / "home"
|
|
6067
|
+
store = GuardStore(home_dir)
|
|
6068
|
+
now = "2026-05-01T00:00:00Z"
|
|
6069
|
+
store.set_sync_credentials("https://hol.org/api/guard/receipts/sync", "guard_live_secretvalue", now)
|
|
6070
|
+
store.set_sync_payload(
|
|
6071
|
+
"service_runtime_profile",
|
|
6072
|
+
{
|
|
6073
|
+
"runtime": "openclaw",
|
|
6074
|
+
"label": "OpenClaw Runner",
|
|
6075
|
+
"workspace": "",
|
|
6076
|
+
"surface": "agent-sdk",
|
|
6077
|
+
"client_name": "hol-guard",
|
|
6078
|
+
"client_title": "OpenClaw Runner",
|
|
6079
|
+
"client_version": "2.0.0",
|
|
6080
|
+
},
|
|
6081
|
+
now,
|
|
6082
|
+
)
|
|
6083
|
+
|
|
6084
|
+
captured_session: dict[str, object] = {}
|
|
6085
|
+
|
|
6086
|
+
def fake_sync_runtime_session(current_store: GuardStore, *, session: dict[str, object]) -> dict[str, object]:
|
|
6087
|
+
assert current_store is not None
|
|
6088
|
+
captured_session.update(session)
|
|
6089
|
+
return {
|
|
6090
|
+
"synced_at": now,
|
|
6091
|
+
"runtime_session_synced_at": now,
|
|
6092
|
+
"runtime_session_id": "runtime-session-1",
|
|
6093
|
+
"runtime_sessions_visible": 1,
|
|
6094
|
+
}
|
|
6095
|
+
|
|
6096
|
+
def fake_sync_receipts(current_store: GuardStore) -> dict[str, object]:
|
|
6097
|
+
assert current_store is not None
|
|
6098
|
+
return {
|
|
6099
|
+
"synced_at": now,
|
|
6100
|
+
"receipts_stored": 0,
|
|
6101
|
+
"inventory_stored": 0,
|
|
6102
|
+
"guard_events_v1": {"accepted": 0, "events": 0, "synced_at": now},
|
|
6103
|
+
}
|
|
6104
|
+
|
|
6105
|
+
monkeypatch.setattr(guard_commands_module, "sync_runtime_session", fake_sync_runtime_session)
|
|
6106
|
+
monkeypatch.setattr(guard_commands_module, "sync_receipts", fake_sync_receipts)
|
|
6107
|
+
|
|
6108
|
+
sync_rc = main(["guard", "service", "sync", "--home", str(home_dir), "--json"])
|
|
6109
|
+
payload = json.loads(capsys.readouterr().out)
|
|
6110
|
+
|
|
6111
|
+
assert sync_rc == 0
|
|
6112
|
+
assert payload["runtime"]["runtime_session_id"] == "runtime-session-1"
|
|
6113
|
+
assert captured_session["workspace"] == ""
|
|
6114
|
+
|
|
6115
|
+
def test_guard_service_status_reports_hosted_runtime_state(self, tmp_path, capsys):
|
|
6116
|
+
home_dir = tmp_path / "home"
|
|
6117
|
+
store = GuardStore(home_dir)
|
|
6118
|
+
now = "2026-05-01T00:00:00Z"
|
|
6119
|
+
store.set_sync_credentials("https://hol.org/api/guard/receipts/sync", "guard_live_secretvalue", now)
|
|
6120
|
+
store.set_sync_payload(
|
|
6121
|
+
"service_runtime_profile",
|
|
6122
|
+
{
|
|
6123
|
+
"runtime": "hermes",
|
|
6124
|
+
"label": "Hermes Telegram agent",
|
|
6125
|
+
"workspace": "workspace_ops",
|
|
6126
|
+
"surface": "agent-sdk",
|
|
6127
|
+
"client_name": "hol-guard",
|
|
6128
|
+
"client_title": "Hermes Telegram agent",
|
|
6129
|
+
"client_version": "2.0.0",
|
|
6130
|
+
},
|
|
6131
|
+
now,
|
|
6132
|
+
)
|
|
6133
|
+
store.set_sync_payload(
|
|
6134
|
+
"runtime_session_summary",
|
|
6135
|
+
{
|
|
6136
|
+
"runtime_session_id": "runtime-session-1",
|
|
6137
|
+
"runtime_session_synced_at": now,
|
|
6138
|
+
"runtime_sessions_visible": 1,
|
|
6139
|
+
},
|
|
6140
|
+
now,
|
|
6141
|
+
)
|
|
6142
|
+
store.set_sync_payload(
|
|
6143
|
+
"sync_summary",
|
|
6144
|
+
{
|
|
6145
|
+
"synced_at": now,
|
|
6146
|
+
"receipts_stored": 2,
|
|
6147
|
+
},
|
|
6148
|
+
now,
|
|
6149
|
+
)
|
|
6150
|
+
|
|
6151
|
+
status_rc = main(["guard", "service", "status", "--home", str(home_dir), "--json"])
|
|
6152
|
+
payload = json.loads(capsys.readouterr().out)
|
|
6153
|
+
|
|
6154
|
+
assert status_rc == 0
|
|
6155
|
+
assert payload["configured"] is True
|
|
6156
|
+
assert payload["service"] == {
|
|
6157
|
+
"runtime": "hermes",
|
|
6158
|
+
"label": "Hermes Telegram agent",
|
|
6159
|
+
"workspace": "workspace_ops",
|
|
6160
|
+
"surface": "agent-sdk",
|
|
6161
|
+
"client_name": "hol-guard",
|
|
6162
|
+
"client_title": "Hermes Telegram agent",
|
|
6163
|
+
"client_version": "2.0.0",
|
|
6164
|
+
}
|
|
6165
|
+
assert payload["runtime"]["runtime_session_id"] == "runtime-session-1"
|
|
6166
|
+
assert payload["receipts"]["receipts_stored"] == 2
|
|
6167
|
+
assert payload["connection"]["sync_url"] == "https://hol.org/api/guard/receipts/sync"
|
|
6168
|
+
|
|
5886
6169
|
def test_guard_connect_preserves_pairing_when_first_sync_fails(self, tmp_path, capsys, monkeypatch):
|
|
5887
6170
|
home_dir = tmp_path / "home"
|
|
5888
6171
|
workspace_dir = tmp_path / "workspace"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plugin_scanner-2.0.91 → plugin_scanner-2.0.92}/dashboard/src/approval-center-primitives.tsx
RENAMED
|
File without changes
|
|
File without changes
|