Fix Apps Script integration with main server
- Add appscript to --tools CLI choices, tool_imports, and tool_icons - Add script service to SERVICE_CONFIGS in service_decorator - Add script scope imports and SCOPE_GROUPS mappings - Fix variable shadowing in _get_script_project_impl These changes complete the Apps Script integration by adding the missing wiring in main.py and service_decorator.py that was needed to make the feature functional.
This commit is contained in:
@@ -42,6 +42,10 @@ from auth.scopes import (
|
||||
TASKS_SCOPE,
|
||||
TASKS_READONLY_SCOPE,
|
||||
CUSTOM_SEARCH_SCOPE,
|
||||
SCRIPT_PROJECTS_SCOPE,
|
||||
SCRIPT_PROJECTS_READONLY_SCOPE,
|
||||
SCRIPT_DEPLOYMENTS_SCOPE,
|
||||
SCRIPT_DEPLOYMENTS_READONLY_SCOPE,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -385,6 +389,7 @@ SERVICE_CONFIGS = {
|
||||
"slides": {"service": "slides", "version": "v1"},
|
||||
"tasks": {"service": "tasks", "version": "v1"},
|
||||
"customsearch": {"service": "customsearch", "version": "v1"},
|
||||
"script": {"service": "script", "version": "v1"},
|
||||
}
|
||||
|
||||
|
||||
@@ -425,6 +430,11 @@ SCOPE_GROUPS = {
|
||||
"tasks_read": TASKS_READONLY_SCOPE,
|
||||
# Custom Search scope
|
||||
"customsearch": CUSTOM_SEARCH_SCOPE,
|
||||
# Apps Script scopes
|
||||
"script_readonly": SCRIPT_PROJECTS_READONLY_SCOPE,
|
||||
"script_projects": SCRIPT_PROJECTS_SCOPE,
|
||||
"script_deployments": SCRIPT_DEPLOYMENTS_SCOPE,
|
||||
"script_deployments_readonly": SCRIPT_DEPLOYMENTS_READONLY_SCOPE,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user