modularize comments, add smithery
This commit is contained in:
@@ -14,6 +14,7 @@ from googleapiclient.errors import HttpError
|
||||
from auth.service_decorator import require_google_service
|
||||
from core.server import server
|
||||
from core.utils import handle_http_errors
|
||||
from core.comments import create_comment_tools
|
||||
|
||||
# Configure module logger
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -338,3 +339,11 @@ async def create_sheet(
|
||||
return text_output
|
||||
|
||||
|
||||
# Create comment management tools for sheets
|
||||
_comment_tools = create_comment_tools("sheet", "spreadsheet_id")
|
||||
read_sheet_comments = _comment_tools['read_comments']
|
||||
create_sheet_comment = _comment_tools['create_comment']
|
||||
reply_to_sheet_comment = _comment_tools['reply_to_comment']
|
||||
resolve_sheet_comment = _comment_tools['resolve_comment']
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user