chore: archive development research artifacts and debug scripts
This commit is contained in:
26
plugins/debug/copilot_sdk_research/inspect_permissions.py
Normal file
26
plugins/debug/copilot_sdk_research/inspect_permissions.py
Normal file
@@ -0,0 +1,26 @@
|
||||
import inspect
|
||||
import json
|
||||
|
||||
try:
|
||||
import copilot
|
||||
from copilot import types
|
||||
|
||||
print(f"Copilot location: {copilot.__file__}")
|
||||
|
||||
print("\n=== Inspecting PermissionRequest types ===")
|
||||
# Look for definition of PermissionRequest or similar
|
||||
|
||||
# In the absence of direct access to the CLI output structure documentation,
|
||||
# we can check if there are type hints or typed dicts in copilot.types
|
||||
|
||||
for name, obj in inspect.getmembers(types):
|
||||
if "Permission" in name or "Request" in name:
|
||||
print(f"\nType: {name}")
|
||||
try:
|
||||
if hasattr(obj, "__annotations__"):
|
||||
print(obj.__annotations__)
|
||||
except:
|
||||
pass
|
||||
|
||||
except ImportError:
|
||||
print("copilot module not installed")
|
||||
Reference in New Issue
Block a user