#!/usr/bin/env python3 """Verify proton-pass skill module loads and all tools are registered.""" import sys sys.path.insert(0, 'skills/proton-pass/scripts') import tools import json # Verify all tools are in registry print("=== Tool Registry ===") for name, info in sorted(tools.TOOLS.items()): params = info["schema"].get("parameters", {}).get("properties", {}) print(f" \u2713 {name} \u2014 {len(params)} params") print(f"\nTotal tools: {len(tools.TOOLS)}") # Test dispatch for error cases (no CLI installed = expected) result = json.loads(tools.dispatch('proton_pass_auth_status')) print(f"\nAuth status dispatch (expected error \u2014 no CLI): success={result.get('success')}") print(f" error={str(result.get('error', result.get('message', '')))[:120]}") result2 = json.loads(tools.dispatch('nonexistent')) print(f"\nNonexistent tool: error={result2.get('error', '')[:80]}")