feat(tools): add Google Docs, Drive, and Tasks read-only tools
Add three new Google service integrations following the established Gmail/GCal pattern: - Google Docs (docs.list, docs.search, docs.read): list, search, and read document content as plain text via Docs + Drive APIs - Google Drive (drive.list, drive.search, drive.read): list, search, and read files with export support for Workspace files (Docs→text, Sheets→CSV, Slides→text) - Google Tasks (tasks.lists, tasks.list): list task lists and tasks with status, due dates, and notes Each service has its own config section, OAuth auth command, tool policy group, and test suite (53 new tests). The setup wizard now offers to configure all Google services together and run OAuth auth flows automatically after saving config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,14 @@ const PROFILE_TOOLS: Record<ToolProfile, Set<string>> = {
|
||||
'calendar.today',
|
||||
'calendar.list',
|
||||
'calendar.search',
|
||||
'docs.list',
|
||||
'docs.search',
|
||||
'docs.read',
|
||||
'drive.list',
|
||||
'drive.search',
|
||||
'drive.read',
|
||||
'tasks.lists',
|
||||
'tasks.list',
|
||||
]),
|
||||
coding: new Set([
|
||||
'file.read',
|
||||
@@ -42,6 +50,14 @@ const PROFILE_TOOLS: Record<ToolProfile, Set<string>> = {
|
||||
'calendar.today',
|
||||
'calendar.list',
|
||||
'calendar.search',
|
||||
'docs.list',
|
||||
'docs.search',
|
||||
'docs.read',
|
||||
'drive.list',
|
||||
'drive.search',
|
||||
'drive.read',
|
||||
'tasks.lists',
|
||||
'tasks.list',
|
||||
'file.write',
|
||||
'file.edit',
|
||||
'file.patch',
|
||||
@@ -71,6 +87,9 @@ export const TOOL_GROUPS: Record<string, string[]> = {
|
||||
'group:memory': ['memory.read', 'memory.write', 'memory.search'],
|
||||
'group:gmail': ['gmail.list', 'gmail.search', 'gmail.read'],
|
||||
'group:gcal': ['calendar.today', 'calendar.list', 'calendar.search'],
|
||||
'group:gdocs': ['docs.list', 'docs.search', 'docs.read'],
|
||||
'group:gdrive': ['drive.list', 'drive.search', 'drive.read'],
|
||||
'group:gtasks': ['tasks.lists', 'tasks.list'],
|
||||
};
|
||||
|
||||
/** Expand group references in a list of tool names/patterns. */
|
||||
|
||||
Reference in New Issue
Block a user