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:
+10
-1
@@ -25,7 +25,7 @@ import { initSkills, initMcp, loadSystemPrompt, initPairingManager, createGatewa
|
||||
import type { ModelRouter } from '../models/index.js';
|
||||
import { SessionStore, SessionManager, parseDuration } from '../session/index.js';
|
||||
import { HookEngine } from '../hooks/index.js';
|
||||
import { createSessionTools, createAgentsListTool, createMessageSendTool, createCronTools, createGmailTools, createGcalTools } from '../tools/index.js';
|
||||
import { createSessionTools, createAgentsListTool, createMessageSendTool, createCronTools, createGmailTools, createGcalTools, createGdocsTools, createGdriveTools, createGtasksTools } from '../tools/index.js';
|
||||
import { ChannelRegistry } from '../channels/index.js';
|
||||
import type { McpManager } from '../mcp/index.js';
|
||||
import type { SkillRegistry, SkillInstaller } from '../skills/index.js';
|
||||
@@ -143,6 +143,15 @@ export async function startDaemon(config: Config): Promise<DaemonContext> {
|
||||
if (config.automation.gcal?.enabled) {
|
||||
for (const tool of createGcalTools(config.automation.gcal)) { toolRegistry.register(tool); }
|
||||
}
|
||||
if (config.automation.gdocs?.enabled) {
|
||||
for (const tool of createGdocsTools(config.automation.gdocs)) { toolRegistry.register(tool); }
|
||||
}
|
||||
if (config.automation.gdrive?.enabled) {
|
||||
for (const tool of createGdriveTools(config.automation.gdrive)) { toolRegistry.register(tool); }
|
||||
}
|
||||
if (config.automation.gtasks?.enabled) {
|
||||
for (const tool of createGtasksTools(config.automation.gtasks)) { toolRegistry.register(tool); }
|
||||
}
|
||||
|
||||
// ── Lifecycle ──
|
||||
await startServices({ config, lifecycle, channelRegistry, gateway, modelRouter, memoryDir, dataDir });
|
||||
|
||||
Reference in New Issue
Block a user